1 2013-12-11 Bin Cheng <bin.cheng@arm.com>
4 2013-12-10 Bin Cheng <bin.cheng@arm.com>
5 PR tree-optimization/41488
6 * tree-ssa-loop-ivopts.c (add_old_iv_candidates): Don't add cand
7 for PEELED_CHREC kind IV.
8 * tree-scalar-evolution.c: Include necessary header files.
9 (peeled_chrec_map, simplify_peeled_chrec): New.
10 (analyze_evolution_in_loop): New static variable.
11 Call simplify_peeled_chrec.
12 (scev_initialize): Initialize peeled_chrec_map.
13 (scev_reset, scev_finalize): Reset and release peeled_chrec_map.
15 2013-12-10 H.J. Lu <hongjiu.lu@intel.com>
18 * config/i386/i386.md (*movsf_internal): Set mode to SI for
21 2013-12-10 Eric Botcazou <ebotcazou@adacore.com>
23 PR rtl-optimization/58295
24 * simplify-rtx.c (simplify_truncation): Restrict the distribution for
25 WORD_REGISTER_OPERATIONS targets.
27 2013-12-10 Richard Sandiford <rdsandiford@googlemail.com>
29 * genrecog.c (validate_pattern): Treat all messages except missing
31 * config/epiphany/epiphany.md: Remove constraints from
33 * config/h8300/h8300.md: Remove constraints from define_splits.
34 * config/msp430/msp430.md: Likewise.
35 * config/mcore/mcore.md (movdi_i, movsf_i, movdf_k): Use
36 nonimmediate_operand rather than general_operand for operand 0.
37 * config/moxie/moxie.md (*movsi, *movqi, *movhi): Likewise.
38 * config/pdp11/predicates.md (float_operand, float_nonimm_operand):
39 Use match_operator rather than match_test to invoke general_operand.
40 * config/v850/v850.md (*movqi_internal, *movhi_internal)
41 (*movsi_internal_v850e, *movsi_internal, *movsf_internal): Likewise.
43 2013-12-10 Richard Sandiford <rdsandiford@googlemail.com>
45 * config/tilegx/tilegx.md (insn_ld_add<bitsuffix>): Use
46 register_operand rather than pointer_operand. Add modes to the
48 (insn_ldna_add<bitsuffix>): Likewise.
49 (insn_ld<I124MODE:n><s>_add<I48MODE:bitsuffix>): Likewise.
50 (insn_ldnt_add<bitsuffix>): Likewise.
51 (insn_ldnt<I124MODE:n><s>_add<I48MODE:bitsuffix>): Likewise.
52 (insn_ld_add_L2<bitsuffix>): Likewise.
53 (insn_ldna_add_L2<bitsuffix>): Likewise.
54 (insn_ld<I124MODE:n><s>_add_L2<I48MODE:bitsuffix>): Likewise.
55 (insn_ldnt_add_L2<bitsuffix>): Likewise.
56 (insn_ldnt<I124MODE:n><s>_add_L2<I48MODE:bitsuffix>): Likewise.
57 (insn_ld_add_miss<bitsuffix>): Likewise.
58 (insn_ldna_add_miss<bitsuffix>): Likewise.
59 (insn_ld<I124MODE:n><s>_add_miss<I48MODE:bitsuffix>): Likewise.
60 (insn_ldnt_add_miss<bitsuffix>): Likewise.
61 (insn_ldnt<I124MODE:n><s>_add_miss<I48MODE:bitsuffix>): Likewise.
62 (insn_st_add<bitsuffix>): Likewise.
63 (insn_st<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
64 (*insn_st<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
65 (insn_stnt_add<bitsuffix>): Likewise.
66 (insn_stnt<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
67 (*insn_stnt<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
68 (vec_pack_<pack_optab>_v4hi): Use register_operand rather than
69 reg_or_0_operand for operand 0.
70 (insn_v2<pack_insn>): Likewise.
71 (vec_pack_hipart_v4hi): Likewise.
72 (insn_v2packh): Likewise.
73 (vec_pack_ssat_v2si): Likewise.
74 (insn_v4packsc): Likewise.
76 2013-12-10 H.J. Lu <hongjiu.lu@intel.com>
78 * basic-block.h (gcov_working_set_t): Put back typedef.
79 * gcov-io.h (gcov_bucket_type): Likewise.
80 (gcov_working_set_info, gcov_working_set_t): Likewise.
82 2013-12-10 Oleg Endo <olegendo@gcc.gnu.org>
84 * cgraph.h (cgraph_node_set_iterator, varpool_node_set_iterator):
86 (cgraph_inline_failed_enum, cgraph_inline_failed_t): Remove typedef and
87 rename to cgraph_inline_failed_t.
88 * tree-ssa-alias.h (ao_ref_s, ao_ref): Remove typedef and rename
90 * reload.h (reg_equivs_s, reg_equivs_t): Remove typedef and rename
92 * conditions.h (CC_STATUS): Remove typedef.
93 * bitmap.h (bitmap_obstack): Remove typedef.
94 (bitmap_element_def, bitmap_element): Remove typedef and rename to
96 (bitmap_head_def, bitmap_head): Remove typedef and rename to
98 (bitmap_iterator): Remove typedef.
99 * target.h (cumulative_args_t, print_switch_type,
100 secondary_reload_info): Remove typedef.
101 * dwarf2out.h (dw_cfi_oprnd_struct, dw_cfi_oprnd): Remove
102 dw_cfi_oprnd_struct alias.
103 (dw_cfi_struct, dw_cfi_node): Remove typedef and rename to dw_cfi_node.
104 (dw_fde_struct, dw_fde_node): Remove typedef and rename to dw_fde_node.
105 (cfa_loc, dw_cfa_location): Remove typedef and rename to
107 (dw_vec_struct, dw_vec_const): Remove typedef and rename to
109 (dw_val_struct, dw_val_node): Remove typedef and rename to dw_val_node.
110 (dw_loc_descr_struct, dw_loc_descr_node): Remove typedef and rename to
112 * params.h (param_info, compiler_param): Remove typedef.
113 * opts.h (cl_deferred_param): Remove typedef.
114 * sreal.h (sreal): Remove typedef.
115 * ddg.h (dep_type, dep_data_type): Remove typedef.
116 * graphite-clast-to-gimple.h (cloog_prog_clast, bb_pbb_def): Remove
118 * lto-streamer.h (lto_decl_stream_e_t, lto_encoder_entry,
119 lto_symtab_encoder_iterator, res_pair): Remove typedef.
120 * tree-affine.h (affine_tree_combination, aff_tree): Remove typedef
121 and rename to aff_tree.
122 * sched-int.h (region): Remove typedef.
123 * diagnostic.h (diagnostic_info,
124 diagnostic_classification_change_t): Remove typedef.
125 * tree-ssa-loop.h (affine_iv_d): Remove typedef and rename to
127 * sbitmap.h (sbitmap_iterator): Remove typedef.
128 * ssa-iterators.h (immediate_use_iterator_d, imm_use_iterator):
129 Remove typedef and rename to imm_use_iterator.
130 (ssa_operand_iterator_d, ssa_op_iter): Remove typedef and rename to
132 * ggc-internal.h (ggc_statistics): Remove typedef.
133 * cselib.h (cselib_val_struct, cselib_val): Remove typedef and
134 rename to cselib_val.
135 * tree-core.h (alias_pair): Remove typedef.
136 (constructor_elt_d, constructor_elt): Remove typedef and rename to
138 (ssa_use_operand_d, ssa_use_operand_t): Remove typedef and rename to
140 * graphite-sese-to-poly.h (base_alias_pair): Remove typedef.
141 * tree-data-ref.h (conflict_function): Remove typedef.
142 * tree-inline.h (copy_body_data): Remove typedef.
143 * ipa-inline.h (condition, size_time_entry, inline_param_summary_t,
144 edge_growth_cache_entry): Remove typedef.
145 * regrename.h (operand_rr_info, insn_rr_info): Remove typedef.
146 * gimple-iterator.h (gimple_stmt_iterator_d, gimple_stmt_iterator):
147 Remove typedef and rename to gimple_stmt_iterator.
148 * basic-block.h (ce_if_block, ce_if_block_t): Remove typedef and
149 rename to ce_if_block.
150 (edge_iterator): Remove typedef.
151 * ipa-prop.h (ipa_agg_jf_item, ipa_agg_jf_item_t): Remove typedef
152 and rename to ipa_agg_jf_item.
153 (ipa_agg_jump_function_t, ipa_param_descriptor_t, ipa_node_params_t,
154 ipa_parm_adjustment_t): Remove typedef.
155 (ipa_jump_func, ipa_jump_func_t): Remove typedef and rename to
157 (ipa_edge_args, ipa_edge_args_t): Remove typedef and rename to
159 * gcov-io.h (gcov_bucket_type): Remove typedef.
160 (gcov_working_set_info, gcov_working_set_t): Remove typedef and rename
161 to gcov_working_set_t.
162 * ira-int.h (minmax_set_iterator, ira_allocno_iterator,
163 ira_object_iterator, ira_allocno_object_iterator, ira_pref_iterator,
164 ira_copy_iterator, ira_object_conflict_iterator): Remove typedef.
165 * tree-iterator.h (tree_stmt_iterator): Remove typedef.
166 * rtl.h (addr_diff_vec_flags, mem_attrs, reg_attrs,
167 replace_label_data): Remove typedef.
168 (rtunion_def, rtunion): Remove typedef and rename to rtunion.
169 * hard-reg-set.h (hard_reg_set_iterator): Remove typedef.
170 * sel-sched-ir.h (_list_iterator, sel_global_bb_info_def,
171 sel_region_bb_info_def, succ_iterator): Remove typedef.
172 (deps_where_def, deps_where_t): Remove typedef and rename to
174 * coretypes.h: Adapt forward declarations.
175 * tree-scalar-evolution.h: Likewise.
176 * tree-ssa-address.h: Likewise.
177 * tree-ssa-operands.h: Likewise.
178 * function.h: Likewise.
179 * config/frv/frv-protos.h: Likewise.
180 * targhooks.h: Likewise.
181 * basic_block.h: Likewise.
182 * rtl.def: Adapt documentation.
183 * doc/tm.texi: Likewise.
184 * ipa-cp.c: Adapt uses.
185 * bitmap.c: Likewise.
186 * dwarf2out.c: Likewise.
187 * target.def: Likewise.
188 * ipa-inline-analysis.c: Likewise.
189 * dwarf2cfi.c: Likewise.
190 * tree-ssa-loop-ivopts.c: Likewise.
191 * lto-cgraph.c: Likewise.
192 * config/frv/frv.c: Likewise.
194 * ipa-prop.c: Likewise.
196 2013-12-10 Kai Tietz <ktietz@redhat.com>
199 * config/i386/i386.c (ix86_expand_prologue): Address saved
200 registers stack-relative, not via frame-pointer.
202 2013-12-10 Richard Biener <rguenther@suse.de>
205 * tree-ssa-structalias.c (solution_set_expand): Expand into
206 a different possibly cached bitmap and return the result.
207 (set_union_with_increment): Pass in a shared expanded bitmap
209 (do_sd_constraint): Likewise.
210 (do_ds_constraint): Likewise.
211 (do_complex_constraint): Likewise.
212 (solve_graph): Manage the shared expanded bitmap.
214 2013-12-10 Jakub Jelinek <jakub@redhat.com>
216 * tree-vectorizer.h (struct _loop_vec_info): Add scalar_loop field.
217 (LOOP_VINFO_SCALAR_LOOP): Define.
218 (slpeel_tree_duplicate_loop_to_edge_cfg): Add scalar_loop argument.
219 * config/i386/sse.md (maskload<mode>, maskstore<mode>): New expanders.
220 * tree-data-ref.c (get_references_in_stmt): Handle MASK_LOAD and
222 * internal-fn.def (LOOP_VECTORIZED, MASK_LOAD, MASK_STORE): New
224 * tree-if-conv.c: Include expr.h, optabs.h, tree-ssa-loop-ivopts.h and
226 (release_bb_predicate): New function.
227 (free_bb_predicate): Use it.
228 (reset_bb_predicate): Likewise. Don't unallocate bb->aux
229 just to immediately allocate it again.
230 (add_to_predicate_list): Add loop argument. If basic blocks that
231 dominate loop->latch don't insert any predicate.
232 (add_to_dst_predicate_list): Adjust caller.
233 (if_convertible_phi_p): Add any_mask_load_store argument, if true,
234 handle it like flag_tree_loop_if_convert_stores.
235 (insert_gimplified_predicates): Likewise.
236 (ifcvt_can_use_mask_load_store): New function.
237 (if_convertible_gimple_assign_stmt_p): Add any_mask_load_store
238 argument, check if some conditional loads or stores can't be
239 converted into MASK_LOAD or MASK_STORE.
240 (if_convertible_stmt_p): Add any_mask_load_store argument,
241 pass it down to if_convertible_gimple_assign_stmt_p.
242 (predicate_bbs): Don't return bool, only check if the last stmt
243 of a basic block is GIMPLE_COND and handle that. Adjust
244 add_to_predicate_list caller.
245 (if_convertible_loop_p_1): Only call predicate_bbs if
246 flag_tree_loop_if_convert_stores and free_bb_predicate in that case
247 afterwards, check gimple_code of stmts here. Replace is_predicated
248 check with dominance check. Add any_mask_load_store argument,
249 pass it down to if_convertible_stmt_p and if_convertible_phi_p,
250 call if_convertible_phi_p only after all if_convertible_stmt_p
252 (if_convertible_loop_p): Add any_mask_load_store argument,
253 pass it down to if_convertible_loop_p_1.
254 (predicate_mem_writes): Emit MASK_LOAD and/or MASK_STORE calls.
255 (combine_blocks): Add any_mask_load_store argument, pass
256 it down to insert_gimplified_predicates and call predicate_mem_writes
257 if it is set. Call predicate_bbs.
258 (version_loop_for_if_conversion): New function.
259 (tree_if_conversion): Adjust if_convertible_loop_p and combine_blocks
260 calls. Return todo flags instead of bool, call
261 version_loop_for_if_conversion if if-conversion should be just
262 for the vectorized loops and nothing else.
263 (main_tree_if_conversion): Adjust caller. Don't call
264 tree_if_conversion for dont_vectorize loops if if-conversion
265 isn't explicitly enabled.
266 * tree-vect-data-refs.c (vect_check_gather): Handle
267 MASK_LOAD/MASK_STORE.
268 (vect_analyze_data_refs, vect_supportable_dr_alignment): Likewise.
269 * gimple.h (gimple_expr_type): Handle MASK_STORE.
270 * internal-fn.c (expand_LOOP_VECTORIZED, expand_MASK_LOAD,
271 expand_MASK_STORE): New functions.
272 * tree-vectorizer.c: Include tree-cfg.h and gimple-fold.h.
273 (vect_loop_vectorized_call, fold_loop_vectorized_call): New functions.
274 (vectorize_loops): Don't try to vectorize loops with
275 loop->dont_vectorize set. Set LOOP_VINFO_SCALAR_LOOP for if-converted
276 loops, fold LOOP_VECTORIZED internal call depending on if loop
277 has been vectorized or not.
278 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
280 (slpeel_tree_duplicate_loop_to_edge_cfg): Add scalar_loop argument.
281 If non-NULL, copy basic blocks from scalar_loop instead of loop, but
282 still to loop's entry or exit edge.
283 (slpeel_tree_peel_loop_to_edge): Add scalar_loop argument, pass it
284 down to slpeel_tree_duplicate_loop_to_edge_cfg.
285 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_loop_alignment):
287 (vect_loop_versioning): If LOOP_VINFO_SCALAR_LOOP, perform loop
288 versioning from that loop instead of LOOP_VINFO_LOOP, move it to the
289 right place in the CFG afterwards.
290 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
292 * cfgloop.h (struct loop): Add dont_vectorize field.
293 * tree-loop-distribution.c (copy_loop_before): Adjust
294 slpeel_tree_duplicate_loop_to_edge_cfg caller.
295 * optabs.def (maskload_optab, maskstore_optab): New optabs.
296 * passes.def: Add a note that pass_vectorize must immediately follow
298 * tree-predcom.c (split_data_refs_to_components): Give up if
300 * tree-vect-stmts.c (vect_mark_relevant): Don't crash if lhs
302 (exist_non_indexing_operands_for_use_p): Handle MASK_LOAD
304 (vectorizable_mask_load_store): New function.
305 (vectorizable_call): Call it for MASK_LOAD or MASK_STORE.
306 (vect_transform_stmt): Handle MASK_STORE.
307 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Ignore
308 DR_STMT where lhs is NULL.
309 * optabs.h (can_vec_perm_p): Fix up comment typo.
310 (can_vec_mask_load_store_p): New prototype.
311 * optabs.c (can_vec_mask_load_store_p): New function.
313 2013-12-10 Eric Botcazou <ebotcazou@adacore.com>
315 * expr.c (expand_expr_real_1) <normal_inner_ref>: Always return 0 for
316 the extraction of a bit-field of null size.
318 2013-12-10 Marek Polacek <polacek@redhat.com>
321 * vtable-verify.c (var_is_used_for_virtual_call_p): Check the
322 return value of gimple_call_fn. Use is_gimple_call/is_gimple_assign
323 instead of gimple_code.
325 2013-12-10 Maxim Kuvyrkov <maxim@kugelworks.com>
327 * config.gcc (mips*-mti-linux*, mips64*-*-linux*):
328 Add android definitions.
329 (s390x-*-linux*): Use linux-protos.h.
331 2013-12-10 Bin Cheng <bin.cheng@arm.com>
333 PR tree-optimization/41488
334 * tree-ssa-loop-ivopts.c (add_old_iv_candidates): Don't add cand
335 for PEELED_CHREC kind IV.
336 * tree-scalar-evolution.c: Include necessary header files.
337 (peeled_chrec_map, simplify_peeled_chrec): New.
338 (analyze_evolution_in_loop): New static variable.
339 Call simplify_peeled_chrec.
340 (scev_initialize): Initialize peeled_chrec_map.
341 (scev_reset, scev_finalize): Reset and release peeled_chrec_map.
343 2013-12-09 Andrew Pinski <apinski@cavium.com>
345 * config/aarch64/t-aarch64 (MULTILIB_OPTIONS): Fix definition so
346 that options are conflicting ones.
348 2013-12-09 Eric Botcazou <ebotcazou@adacore.com>
350 * optabs.c (gen_int_libfunc): Do not compare modes directly.
352 2013-12-09 David Malcolm <dmalcolm@redhat.com>
354 * basic-block.h (FOR_ALL_BB): Eliminate macro.
356 * cfg.c (alloc_aux_for_blocks, clear_aux_for_blocks): Replace
357 uses of FOR_ALL_BB with FOR_ALL_BB_FN, making uses of cfun explicit.
359 * cfganal.c (inverted_post_order_compute): Likewise.
360 * cfgcleanup.c (try_optimize_cfg): Likewise.
361 * cfgexpand.c (add_scope_conflicts): Likewise.
362 * cfghooks.c (dump_flow_info, account_profile_record): Likewise.
363 * cfgrtl.c (relink_block_chain): Likewise.
364 * dce.c (mark_artificial_uses): Likewise.
365 * df-core.c (df_set_blocks, df_compute_cfg_image, df_dump): Likewise.
366 * df-problems.c (df_lr_verify_solution_start,
367 df_lr_verify_solution_end, df_lr_verify_transfer_functions,
368 df_live_verify_solution_start, df_live_verify_solution_end,
369 df_live_set_all_dirty, df_live_verify_transfer_functions,
370 df_md_local_comput): Likewise.
371 * df-scan.c (df_scan_free_internal, df_scan_alloc)
372 df_reorganize_refs_by_insn, df_scan_verify): Likewise.
373 * dominance.c (compute_dom_fast_query, calculate_dominance_info,
374 free_dominance_info): Likewise.
375 * dse.c (dse_step1, dse_step3, dse_step4, dse_step6): Likewise.
376 * graph.c (draw_cfg_edges): Likewise.
377 * graphite-scop-detection.c (print_graphite_scop_statistics,
378 dot_all_scops_1): Likewise.
379 * graphite.c (print_global_statistics,
380 print_graphite_scop_statistics): Likewise.
381 * ira.c (do_reload): Likewise.
382 * loop-init.c (loop_optimizer_finalize): Likewise.
383 * lto-streamer-in.c (input_function): Likewise.
384 * lto-streamer-out.c (output_function): Likewise.
385 * mcf.c (adjust_cfg_counts): Likewise.
386 * predict.c (estimate_loops): Likewise.
387 * sched-rgn.c (haifa_find_rgns): Likewise.
388 * tree-cfg.c (split_critical_edges): Likewise.
389 * tree-dfa.c (renumber_gimple_stmt_uids): Likewise.
390 * tree-loop-distribution.c (tree_loop_distribution): Likewise.
391 * tree-ssa-pre.c (compute_antic, insert, init_pre): Likewise.
392 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
393 * var-tracking.c (vt_initialize, vt_finalize): Likewise.
394 * vtable-verify.c (vtable_verify_main): Likewise.
395 * web.c (web_main): Likewise.
397 2013-12-09 David Malcolm <dmalcolm@redhat.com>
399 * basic-block.h (FOR_EACH_BB_REVERSE): Eliminate macro.
401 * cfghooks.c (verify_flow_info): Replace uses of FOR_EACH_BB_REVERSE
402 with FOR_EACH_BB_REVERSE_FN, making uses of cfun explicit.
403 * cfgrtl.c (print_rtl_with_bb, rtl_verify_edges,
404 rtl_verify_bb_insns, rtl_verify_bb_pointers,
405 rtl_verify_bb_insn_chain, rtl_verify_fallthru): Likewise.
406 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
407 * config/sh/sh.c (sh_md_init_global): Likewise.
408 * config/sh/sh_optimize_sett_clrt.cc
409 (sh_optimize_sett_clrt::execute): Likewise.
410 * dce.c (reset_unmarked_insns_debug_uses, delete_unmarked_insns):
412 * dominance.c (calc_dfs_tree): Likewise.
413 * final.c (final): Likewise.
414 * function.c (thread_prologue_and_epilogue_insns): Likewise.
415 * gcse.c (compute_code_hoist_vbeinout): Likewise.
416 * ira.c (update_equiv_regs, build_insn_chain): Likewise.
417 * lcm.c (compute_antinout_edge): Likewise.
418 * mode-switching.c (optimize_mode_switching): Likewise.
419 * postreload.c (reload_combine): Likewise.
420 * recog.c (split_all_insns, peephole2_optimize): Likewise.
421 * tree-ssa-live.c (live_worklist): Likewise.
423 2013-12-09 David Malcolm <dmalcolm@redhat.com>
425 * basic-block.h (FOR_EACH_BB): Eliminate macro.
427 * asan.c (transform_statements, execute_sanopt): Eliminate
428 use of FOR_EACH_BB in favor of FOR_EACH_BB_FN, to make use of cfun
430 * auto-inc-dec.c (rest_of_handle_auto_inc_dec): Likewise.
431 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges,
432 set_edge_can_fallthru_flag, fix_up_fall_thru_edges,
433 fix_crossing_unconditional_branches, add_reg_crossing_jump_notes,
434 insert_section_boundary_note, rest_of_handle_reorder_blocks,
435 duplicate_computed_gotos): Likewise.
436 * cfg.c (clear_edges, compact_blocks, brief_dump_cfg): Likewise.
437 * cfganal.c (find_unreachable_blocks, add_noreturn_fake_exit_edges,
438 compute_dominance_frontiers_1, single_pred_before_succ_order): Likewise.
439 * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
440 * cfgcleanup.c (try_optimize_cfg, delete_dead_jumptables): Likewise.
441 * cfgexpand.c (add_scope_conflicts, discover_nonconstant_array_refs):
443 * cfgloop.c (flow_loops_cfg_dump, get_loop_body, record_loop_exits,
444 verify_loop_structure): Likewise.
445 * cfgloopanal.c (mark_loop_exit_edges): Likewise.
446 * cfgrtl.c (compute_bb_for_insn, find_partition_fixes,
447 verify_hot_cold_block_grouping, purge_all_dead_edges,
448 fixup_abnormal_edges, record_effective_endpoints,
449 outof_cfg_layout_mode, fixup_reorder_chain, force_one_exit_fallthru,
450 break_superblocks): Likewise.
451 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges,
452 cgraph_rebuild_references): Likewise.
453 * combine-stack-adj.c (combine_stack_adjustments): Likewise.
454 * combine.c (delete_noop_moves, create_log_links,
455 combine_instructions): Likewise.
456 * config/arm/arm.c (thumb1_reorg, thumb2_reorg): Likewise.
457 * config/bfin/bfin.c (bfin_gen_bundles, reorder_var_tracking_notes):
459 * config/c6x/c6x.c (c6x_gen_bundles, conditionalize_after_sched,
460 c6x_reorg): Likewise.
461 * config/epiphany/resolve-sw-modes.c (resolve_sw_modes): Likewise.
462 * config/frv/frv.c (frv_optimize_membar): Likewise.
463 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
464 * config/ia64/ia64.c (ia64_reorg): Likewise.
465 * config/mips/mips.c (mips_annotate_pic_calls): Likewise.
466 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
467 * config/rs6000/rs6000.c (rs6000_alloc_sdmode_stack_slot): Likewise.
468 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
469 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Likewise.
470 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
471 * config/tilegx/tilegx.c (tilegx_gen_bundles,
472 reorder_var_tracking_notes): Likewise.
473 * config/tilepro/tilepro.c (tilepro_gen_bundles,
474 reorder_var_tracking_notes): Likewise.
475 * coverage.c (coverage_compute_cfg_checksum): Likewise.
476 * cprop.c (compute_hash_table_work, compute_cprop_data,
477 local_cprop_pass, find_implicit_sets): Likewise.
478 * cse.c (cse_condition_code_reg): Likewise.
479 * dce.c (prescan_insns_for_dce): Likewise.
480 * df-core.c (df_compact_blocks): Likewise.
481 * df-problems.c (df_word_lr_alloc): Likewise.
482 * df-scan.c (df_scan_start_dump, df_scan_blocks, df_insn_rescan_all,
483 df_update_entry_exit_and_calls): Likewise.
484 * dominance.c (calculate_dominance_info, verify_dominators,
485 debug_dominance_info): Likewise.
486 * dse.c (dse_step5_nospill): Likewise.
487 * except.c (finish_eh_generation): Likewise.
488 * final.c (compute_alignments): Likewise.
489 * function.c (thread_prologue_and_epilogue_insns,
490 rest_of_match_asm_constraints): Likewise.
491 * gcse.c (compute_hash_table_work, prune_expressions,
492 compute_pre_data, compute_code_hoist_vbeinout, hoist_code,
493 calculate_bb_reg_pressure, compute_ld_motion_mems): Likewise.
494 * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
495 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour,
496 find_explicit_erroneous_behaviour): Likewise.
497 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa,
498 rewrite_cross_bb_scalar_deps_out_of_ssa): Likewise.
499 * haifa-sched.c (haifa_sched_init): Likewise.
500 * hw-doloop.c (discover_loops, set_bb_indices, reorder_loops):
502 * ifcvt.c (if_convert): Likewise.
503 * init-regs.c (initialize_uninitialized_regs): Likewise.
504 * ipa-prop.c (ipcp_transform_function): Likewise.
505 * ipa-pure-const.c (analyze_function): Likewise.
506 * ipa-split.c (find_split_points, execute_split_functions): Likewise.
507 * ira-build.c (form_loop_tree): Likewise.
508 * ira-costs.c (find_costs_and_classes): Likewise.
509 * ira-emit.c (emit_moves, add_ranges_and_copies, ira_emit): Likewise.
510 * ira.c (decrease_live_ranges_number, compute_regs_asm_clobbered,
511 mark_elimination, update_equiv_regs, find_moveable_pseudos,
512 split_live_ranges_for_shrink_wrap, allocate_initial_values): Likewise.
513 * jump.c (mark_all_labels): Likewise.
514 * lcm.c (compute_laterin, compute_insert_delete, compute_available,
515 compute_nearerout, compute_rev_insert_delete): Likewise.
516 * loop-init.c (fix_loop_structure): Likewise.
517 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
518 * lower-subreg.c (decompose_multiword_subregs,
519 decompose_multiword_subregs): Likewise.
520 * lra-assigns.c (assign_by_spills): Likewise.
521 * lra-coalesce.c (lra_coalesce): Likewise.
522 * lra-constraints.c (lra_inheritance, remove_inheritance_pseudos):
524 * lra-eliminations.c (lra_init_elimination): Likewise.
525 * lra-spills.c (assign_spill_hard_regs, spill_pseudos,
526 lra_final_code_change): Likewise.
527 * lra.c (remove_scratches, check_rtl, has_nonexceptional_receiver,
528 update_inc_notes): Likewise.
529 * mcf.c (adjust_cfg_counts): Likewise.
530 * mode-switching.c (optimize_mode_switching): Likewise.
531 * modulo-sched.c (rest_of_handle_sms): Likewise.
532 * omp-low.c (optimize_omp_library_calls, expand_omp_taskreg,
533 expand_omp_target): Likewise.
534 * postreload-gcse.c (alloc_mem, compute_hash_table): Likewise.
535 * postreload.c (reload_cse_regs_1): Likewise.
536 * predict.c (strip_predict_hints, tree_bb_level_predictions,
537 tree_estimate_probability, expensive_function_p,
538 estimate_bb_frequencies, compute_function_frequency): Likewise.
539 * profile.c (is_inconsistent, compute_branch_probabilities,
540 branch_prob): Likewise.
541 * ree.c (find_removable_extensions): Likewise.
542 * reg-stack.c (compensate_edges, convert_regs, reg_to_stack): Likewise.
543 * regcprop.c (copyprop_hardreg_forward): Likewise.
544 * reginfo.c (init_subregs_of_mode): Likewise.
545 * regrename.c (regrename_analyze): Likewise.
546 * regstat.c (regstat_compute_ri, regstat_compute_calls_crossed):
548 * reload1.c (has_nonexceptional_receiver, reload,
549 calculate_elim_costs_all_insns): Likewise.
550 * resource.c (init_resource_info, free_resource_info): Likewise.
551 * sched-ebb.c (schedule_ebbs): Likewise.
552 * sched-rgn.c (is_cfg_nonregular, find_single_block_region,
553 haifa_find_rgns, sched_rgn_local_init): Likewise.
554 * sel-sched-dump.c (sel_dump_cfg_2): Likewise.
555 * sel-sched-ir.c (init_lv_sets, free_lv_sets,
556 make_regions_from_the_rest): Likewise.
557 * sese.c (build_sese_loop_nests, sese_build_liveouts): Likewise.
558 * stack-ptr-mod.c (notice_stack_pointer_modification): Likewise.
559 * store-motion.c (compute_store_table, build_store_vectors,
560 one_store_motion_pass): Likewise.
561 * tracer.c (tail_duplicate): Likewise.
562 * trans-mem.c (compute_transaction_bits): Likewise.
563 * tree-call-cdce.c (tree_call_cdce): Likewise.
564 * tree-cfg.c (replace_loop_annotate, factor_computed_gotos,
565 fold_cond_expr_cond, make_edges, assign_discriminators,
566 make_abnormal_goto_edges, cleanup_dead_labels, group_case_labels,
567 dump_cfg_stats, gimple_verify_flow_info, print_loop,
568 execute_fixup_cfg): Likewise.
569 * tree-cfgcleanup.c (cleanup_tree_cfg_1, merge_phi_nodes): Likewise.
570 * tree-complex.c (init_dont_simulate_again, tree_lower_complex):
572 * tree-dfa.c (collect_dfa_stats, dump_enumerated_decls): Likewise.
573 * tree-eh.c (execute_lower_resx, execute_lower_eh_dispatch,
574 mark_reachable_handlers): Likewise.
575 * tree-emutls.c (lower_emutls_function_body): Likewise.
576 * tree-if-conv.c (main_tree_if_conversion): Likewise.
577 * tree-inline.c (optimize_inline_calls): Likewise.
578 * tree-into-ssa.c (rewrite_into_ssa, update_ssa): Likewise.
579 * tree-nrv.c (tree_nrv, execute_return_slot_opt): Likewise.
580 * tree-object-size.c (compute_object_sizes): Likewise.
581 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees,
582 insert_backedge_copies, tree_profiling): Likewise.
583 * tree-scalar-evolution.c (scev_const_prop): Likewise.
584 * tree-sra.c (scan_function, sra_modify_function_body,
585 propagate_dereference_distances, ipa_sra_modify_function_body,
586 convert_callers): Likewise.
587 * tree-ssa-ccp.c (ccp_initialize, execute_fold_all_builtins): Likewise.
588 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
589 create_outofssa_var_map, coalesce_partitions): Likewise.
590 * tree-ssa-copy.c (init_copy_prop): Likewise.
591 * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
592 * tree-ssa-dce.c (find_obviously_necessary_stmts,
593 eliminate_unnecessary_stmts): Likewise.
594 * tree-ssa-dom.c (free_all_edge_infos, tree_ssa_dominator_optimize):
596 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
597 * tree-ssa-live.c (clear_unused_block_pointer, remove_unused_locals,
598 new_tree_live_info, calculate_live_on_exit, dump_live_info,
599 analyze_memory_references, fill_always_executed_in,
600 tree_ssa_lim_finalize): Likewise.
601 * tree-ssa-loop-manip.c (find_uses_to_rename, verify_loop_closed_ssa):
603 * tree-ssa-math-opts.c (execute_cse_reciprocals, execute_cse_sincos,
604 execute_optimize_bswap, execute_optimize_widening_mul): Likewise.
605 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
606 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
607 * tree-ssa-tail-merge.c (find_same_succ, reset_cluster_vectors):
609 * tree-ssa-ter.c (find_replaceable_exprs): Likewise.
610 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
611 * tree-ssa-uncprop.c (associate_equivalences_with_edges,
612 tree_ssa_uncprop): Likewise.
613 * tree-ssa-uninit.c (warn_uninitialized_vars,
614 execute_late_warn_uninitialized): Likewise.
615 * tree-ssa.c (verify_ssa, execute_update_addresses_taken): Likewise.
616 * tree-stdarg.c (check_all_va_list_escapes, execute_optimize_stdarg):
618 * tree-switch-conversion.c (do_switchconv): Likewise.
619 * tree-vect-generic.c (expand_vector_operations): Likewise.
620 * tree-vectorizer.c (adjust_simduid_builtins, note_simd_array_uses,
621 execute_vect_slp): Likewise.
622 * tree-vrp.c (check_all_array_refs, remove_range_assertions,
623 vrp_initialize, identify_jump_threads, instrument_memory_accesses):
625 * ubsan.c (ubsan_pass): Likewise.
626 * value-prof.c (verify_histograms, gimple_value_profile_transformations,
627 gimple_find_values_to_profile): Likewise.
628 * var-tracking.c (vt_find_locations, dump_dataflow_sets, vt_emit_notes,
629 vt_initialize, delete_debug_insns, vt_finalize): Likewise.
631 2013-12-09 David Malcolm <dmalcolm@redhat.com>
633 * basic-block.h (last_basic_block): Eliminate macro.
635 * asan.c (transform_statements): Eliminate use of last_basic_block
636 in favor of last_basic_block_for_fn, in order to make use of cfun
638 * bb-reorder.c (copy_bb, reorder_basic_blocks): Likewise.
639 * bt-load.c (compute_defs_uses_and_gen, compute_kill, compute_out,
640 link_btr_uses, build_btr_def_use_webs, migrate_btr_defs): Likewise.
641 * cfg.c (compact_blocks): Likewise.
642 * cfganal.c (mark_dfs_back_edges,
643 control_dependences::control_dependences, post_order_compute,
644 pre_and_rev_post_order_compute_fn, dfs_enumerate_from, compute_idf,
645 single_pred_before_succ_order): Likewise.
646 * cfgbuild.c (make_edges): Likewise.
647 * cfgexpand.c (add_scope_conflicts, gimple_expand_cfg): Likewise.
648 * cfghooks.c (verify_flow_info): Likewise.
649 * cfgloop.c (verify_loop_structure): Likewise.
650 * cfgloopanal.c (just_once_each_iteration_p,
651 mark_irreducible_loops): Likewise.
652 * cfgloopmanip.c (fix_bb_placements, remove_path,
653 update_dominators_in_loop): Likewise.
654 * cfgrtl.c (create_basic_block_structure, rtl_create_basic_block,
655 break_superblocks, rtl_flow_call_edges_add): Likewise.
656 * config/epiphany/resolve-sw-modes.c (resolve_sw_modes): Likewise.
657 * config/frv/frv.c (frv_optimize_membar): Likewise.
658 * config/mips/mips.c (r10k_insert_cache_barriers): Likewise.
659 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
660 * cprop.c (compute_local_properties, find_implicit_sets,
661 bypass_conditional_jumps, one_cprop_pass): Likewise.
662 * cse.c (cse_main): Likewise.
663 * df-core.c (rest_of_handle_df_initialize, df_worklist_dataflow,
664 df_analyze, df_grow_bb_info, df_compact_blocks): Likewise.
665 * df-problems.c (df_lr_verify_solution_start,
666 df_live_verify_solution_start, df_md_local_compute): Likewise.
667 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
668 calc_idoms): Likewise.
669 * domwalk.c (dom_walker::walk): Likewise.
670 * dse.c (dse_step0, dse_step3): Likewise.
671 * function.c (epilogue_done): Likewise.
672 * gcse.c (alloc_gcse_mem, compute_local_properties,
673 prune_insertions_deletions, compute_pre_data,
674 pre_expr_reaches_here_p, one_pre_gcse_pass,
675 compute_code_hoist_vbeinout, should_hoist_expr_to_dom, hoist_code,
676 one_code_hoisting_pass): Likewise.
677 * graph.c (draw_cfg_nodes_no_loops): Likewise.
678 * graphite-sese-to-poly.c (build_scop_bbs): Likewise.
679 * haifa-sched.c (unlink_bb_notes): Likewise.
680 * ipa-split.c (execute_split_functions): Likewise.
681 * ira-build.c (create_loop_tree_nodes,
682 remove_unnecessary_regions): Likewise.
683 * ira-emit.c (ira_emit): Likewise.
684 * ira.c (find_moveable_pseudos, ira): Likewise.
685 * lcm.c (compute_antinout_edge, compute_laterin,
686 compute_insert_delete, pre_edge_lcm, compute_available,
687 compute_nearerout, compute_rev_insert_delete,
688 pre_edge_rev_lcm): Likewise.
689 * loop-unroll.c (opt_info_start_duplication,
690 apply_opt_in_copies): Likewise.
691 * lower-subreg.c (decompose_multiword_subregs): Likewise.
692 * lra-lives.c (lra_create_live_ranges): Likewise.
693 * lra.c (lra): Likewise.
694 * mode-switching.c (optimize_mode_switching): Likewise.
695 * recog.c (split_all_insns): Likewise.
696 * regcprop.c (copyprop_hardreg_forward): Likewise.
697 * regrename.c (regrename_analyze): Likewise.
698 * reload1.c (reload): Likewise.
699 * resource.c (init_resource_info): Likewise.
700 * sched-rgn.c (haifa_find_rgns, extend_rgns, compute_trg_info,
701 realloc_bb_state_array, schedule_region, extend_regions): Likewise.
702 * sel-sched-ir.c (sel_extend_global_bb_info, extend_region_bb_info,
703 recompute_rev_top_order, sel_init_pipelining,
704 make_regions_from_the_rest): Likewise.
705 * store-motion.c (remove_reachable_equiv_notes,build_store_vectors)
707 * tracer.c (tail_duplicate): Likewise.
708 * trans-mem.c (tm_region_init, get_bb_regions_instrumented): Likewise.
709 * tree-cfg.c (create_bb, cleanup_dead_labels, gimple_dump_cfg,
710 gimple_flow_call_edges_add): Likewise.
711 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls,
712 cleanup_tree_cfg_1): Likewise.
713 * tree-complex.c (tree_lower_complex): Likewise.
714 * tree-inline.c (copy_cfg_body): Likewise.
715 * tree-into-ssa.c (mark_phi_for_rewrite, rewrite_into_ssa,
716 prepare_def_site_for, update_ssa): Likewise.
717 * tree-ssa-dce.c (tree_dce_init, perform_tree_ssa_dce): Likewise.
718 * tree-ssa-dom.c (record_edge_info): Likewise.
719 * tree-ssa-live.c (new_tree_live_info, live_worklist): Likewise.
720 * tree-ssa-loop-im.c (fill_always_executed_in_1): Likewise.
721 * tree-ssa-loop-manip.c (copy_phi_node_args
722 gimple_duplicate_loop_to_header_edge): Likewise.
723 * tree-ssa-pre.c (compute_antic): Likewise.
724 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
725 * tree-ssa-reassoc.c (init_reassoc): Likewise.
726 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
727 * tree-ssa-tail-merge.c (init_worklist): Likewise.
728 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
729 * tree-stdarg.c (reachable_at_most_once): Likewise.
730 * tree-vrp.c (find_assert_locations): Likewise.
731 * var-tracking.c (vt_find_locations): Likewise.
733 2013-12-09 David Malcolm <dmalcolm@redhat.com>
735 * basic-block.h (profile_status): Eliminate macro.
737 * cfgbuild.c (find_many_sub_basic_blocks): Eliminate use of
738 profile_status macro in favor of profile_status_for_fn, making
739 use of cfun explicit.
740 * cfghooks.c (account_profile_record): Likewise.
741 * cfgloopanal.c (single_likely_exit):
742 * cfgrtl.c (rtl_verify_edges, rtl_account_profile_record): Likewise.
743 * graphite.c (graphite_finalize):
744 * internal-fn.c (ubsan_expand_si_overflow_addsub_check,
745 ubsan_expand_si_overflow_neg_check,
746 ubsan_expand_si_overflow_mul_check): Likewise.
747 * ipa-split.c (consider_split, execute_split_functions):
748 * loop-unroll.c (decide_peel_simple):
749 * optabs.c (emit_cmp_and_jump_insn_1):
750 * predict.c (maybe_hot_edge_p, probably_never_executed,
751 predictable_edge_p, probability_reliable_p, gimple_predict_edge,
752 tree_estimate_probability_driver, estimate_bb_frequencies,
753 compute_function_frequency, rebuild_frequencies): Likewise.
754 * profile.c (compute_branch_probabilities): Likewise.
755 * tree-cfg.c (gimple_account_profile_record): Likewise.
756 * tree-inline.c (optimize_inline_calls): Likewise.
758 2013-12-09 David Malcolm <dmalcolm@redhat.com>
760 * basic-block.h (label_to_block_map): Eliminate macro.
762 * gimple.c (gimple_set_bb): Replace uses of label_to_block_map
763 with uses of label_to_block_map_for_fn, making uses of cfun be
765 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
766 (verify_gimple_label): Likewise.
768 2013-12-09 David Malcolm <dmalcolm@redhat.com>
770 * basic-block.h (basic_block_info): Eliminate macro.
772 * cfgrtl.c (rtl_create_basic_block): Replace uses of
773 basic_block_info with basic_block_info_for_fn, making uses
775 * tree-cfg.c (build_gimple_cfg, create_bb): Likewise.
777 2013-12-09 David Malcolm <dmalcolm@redhat.com>
779 * basic-block.h (BASIC_BLOCK): Eliminate macro.
781 * alias.c (init_alias_analysis): Eliminate BASIC_BLOCK macro in
782 favor of uses of BASIC_BLOCK_FOR_FN, making uses of cfun explicit.
783 * bt-load.c (compute_defs_uses_and_gen, compute_out, link_btr_uses,
784 block_at_edge_of_live_range_p, migrate_btr_defs): Likewise.
785 * caller-save.c (insert_one_insn): Likewise.
786 * cfg.c (debug_bb, get_bb_original, get_bb_copy): Likewise.
787 * cfgexpand.c (add_scope_conflicts): Likewise.
788 * cfghooks.c (verify_flow_info): Likewise.
789 * cfgloop.c (flow_loops_find): Likewise.
790 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
791 * config/mips/mips.c (r10k_insert_cache_barriers): Likewise.
792 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
793 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
794 * cse.c (cse_main): Likewise.
795 * dce.c (fast_dce): Likewise.
796 * df-core.c (df_set_blocks, df_worklist_propagate_forward,
797 df_worklist_propagate_backward, df_worklist_dataflow_doublequeue,
798 df_bb_replace, df_dump_region): Likewise.
799 * df-problems.c (df_rd_bb_local_compute, df_lr_bb_local_compute,
800 df_live_bb_local_compute, df_chain_remove_problem)
801 df_chain_create_bb, df_word_lr_bb_local_compute, df_note_bb_compute,
802 df_md_bb_local_compute, df_md_local_compute,
803 df_md_transfer_function): Likewise.
804 * df-scan.c (df_scan_blocks, df_reorganize_refs_by_reg_by_insn,
805 df_reorganize_refs_by_insn, df_bb_refs_collect,
806 df_record_entry_block_defs, df_update_entry_block_defs,
807 df_record_exit_block_uses): Likewise.
808 * dominance.c (nearest_common_dominator_for_set): Likewise.
809 * gcse.c (hoist_code): Likewise.
810 * graph.c (draw_cfg_nodes_no_loops): Likewise.
811 * ipa-inline-analysis.c (param_change_prob,
812 estimate_function_body_sizes): Likewise.
813 * ipa-split.c (dominated_by_forbidden): Likewise.
814 * loop-unroll.c (apply_opt_in_copies): Likewise.
815 * lower-subreg.c (decompose_multiword_subregs): Likewise.
816 * lra-lives.c (lra_create_live_ranges): Likewise.
817 * predict.c (propagate_freq): Likewise.
818 * regrename.c (regrename_analyze): Likewise.
819 * regstat.c (regstat_bb_compute_ri,
820 regstat_bb_compute_calls_crossed): Likewise.
821 * resource.c (mark_target_live_regs): Likewise.
822 * sched-ebb.c (ebb_fix_recovery_cfg): Likewise.
823 * sched-int.h (EBB_FIRST_BB, EBB_LAST_BB): Likewise.
824 * sched-rgn.c (debug_region, dump_region_dot, too_large,
825 haifa_find_rgns, extend_rgns, compute_dom_prob_ps, update_live,
826 propagate_deps, sched_is_disabled_for_current_region_p): Likewise.
827 * sched-vis.c (debug_bb_n_slim): Likewise.
828 * sel-sched-ir.c (sel_finish_global_and_expr, verify_backedges,
829 purge_empty_blocks, sel_remove_loop_preheader): Likewise.
830 * sel-sched.c (remove_insns_that_need_bookkeeping)
831 (current_region_empty_p, sel_region_init,
832 simplify_changed_insns): Likewise.
833 * trans-mem.c (execute_tm_mark, execute_tm_edges,
834 tm_memopt_compute_antic, ipa_tm_scan_irr_function): Likewise.
835 * tree-cfg.c (make_edges, end_recording_case_labels,
836 label_to_block_fn, gimple_debug_bb, gimple_flow_call_edges_add,
837 remove_edge_and_dominated_blocks, remove_edge_and_dominated_blocks,
838 gimple_purge_all_dead_eh_edges,
839 gimple_purge_all_dead_abnormal_call_edges): Likewise.
840 * tree-cfgcleanup.c (fixup_noreturn_call,
841 split_bbs_on_noreturn_calls, cleanup_tree_cfg_1): Likewise.
842 * tree-inline.c (copy_cfg_body, fold_marked_statements): Likewise.
843 * tree-into-ssa.c (set_livein_block, prune_unused_phi_nodes,
844 insert_phi_nodes_for, insert_updated_phi_nodes_for): Likewise.
845 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
846 * tree-ssa-live.c (live_worklist): Likewise.
847 * tree-ssa-loop-manip.c (compute_live_loop_exits,
848 add_exit_phis_var, find_uses_to_rename, copy_phi_node_args): Likewise.
849 * tree-ssa-pre.c (compute_antic): Likewise.
850 * tree-ssa-reassoc.c (update_range_test, optimize_range_tests): Likewise.
851 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
852 * tree-ssa-tail-merge.c (same_succ_hash, same_succ_def::equal,
853 same_succ_flush_bbs, update_worklist, set_cluster,
854 same_phi_alternatives, find_clusters_1, apply_clusters,
855 update_debug_stmts): Likewise.
856 * tree-ssa-threadupdate.c (mark_threaded_blocks,
857 thread_through_all_blocks): Likewise.
858 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
859 * tree-vrp.c (find_assert_locations): Likewise.
861 2013-12-09 David Malcolm <dmalcolm@redhat.com>
863 * basic-block.h (SET_BASIC_BLOCK): Eliminate macro.
865 * cfg.c (compact_blocks): Replace uses of SET_BASIC_BLOCK
866 with SET_BASIC_BLOCK_FOR_FN, making use of cfun explicit.
867 (expunge_block): Likewise.
868 * cfgrtl.c (create_basic_block_structure): Likewise.
869 * df-core.c (df_compact_blocks, df_bb_replace): Likewise.
870 * sel-sched.c (create_block_for_bookkeeping): Likewise.
871 * tree-cfg.c (create_bb): Likewise.
873 2013-12-09 David Malcolm <dmalcolm@redhat.com>
875 * basic-block.h (profile_status_for_function): Rename to...
876 (profile_status_for_fn): ...this.
878 * cfg.c (check_bb_profile): Update for renaming.
879 * cgraphbuild.c (compute_call_stmt_bb_frequency): Likewise.
880 * lto-streamer-in.c (input_cfg): Likewise.
881 * lto-streamer-out.c (output_cfg): Likewise.
882 * predict.c (maybe_hot_frequency_p, maybe_hot_count_p,
883 maybe_hot_bb_p, probably_never_executed)
884 (handle_missing_profiles): Likewise.
885 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
886 * tree-inline.c (copy_bb, initialize_cfun): Likewise.
888 2013-12-09 David Malcolm <dmalcolm@redhat.com>
890 * basic-block.h (label_to_block_map_for_function): Rename to...
891 (label_to_block_map_for_fn): ...this.
893 * lto-streamer-in.c (input_cfg): Update for renaming.
894 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
896 2013-12-09 David Malcolm <dmalcolm@redhat.com>
898 * basic-block.h (last_basic_block_for_function): Rename to...
899 (last_basic_block_for_fn): ...this.
901 * ipa-utils.c (ipa_merge_profiles): Update for renaming of
902 last_basic_block_for_function to last_basic_block_for_fn.
903 * lto-streamer-in.c (input_cfg): Likewise.
904 * lto-streamer-out.c (output_cfg): Likewise.
905 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
906 * tree-sra.c (propagate_dereference_distances, ipa_early_sra):
909 2013-12-09 David Malcolm <dmalcolm@redhat.com>
911 * basic-block.h (basic_block_info_for_function): Rename to...
912 (basic_block_info_for_fn): ...this.
913 (BASIC_BLOCK_FOR_FUNCTION): Rename to...
914 (BASIC_BLOCK_FOR_FN): ...this.
915 (SET_BASIC_BLOCK_FOR_FUNCTION): Rename to...
916 (SET_BASIC_BLOCK_FOR_FN): ...this.
918 * gimple-streamer-in.c (input_phi, input_bb): Update for renaming
919 of BASIC_BLOCK_FOR_FUNCTION to BASIC_BLOCK_FOR_FN.
920 * ipa-utils.c (ipa_merge_profiles): Likewise.
921 * lto-streamer-in.c (make_new_block): Update for renaming of
922 SET_BASIC_BLOCK_FOR_FUNCTION to SET_BASIC_BLOCK_FOR_FN.
923 (input_cfg): Update for renamings.
924 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
925 (dump_function_to_file): Update for renaming of
926 basic_block_info_for_function to basic_block_info_for_fn.
928 2013-12-09 Richard Biener <rguenther@suse.de>
931 * tree-ssa-structalias.c (set_union_with_increment): Remove
933 (do_complex_constraint): Call set_union_with_increment with
934 the solution delta, not the full solution.
935 (make_transitive_closure_constraints): Merge the two
938 2013-12-09 Richard Earnshaw <rearnsha@arm.com>
940 * arm.c (mem_ok_for_ldrd_strd): Rename first argument as MEM. Do
941 more address validation checks.
943 2013-12-09 Marek Polacek <polacek@redhat.com>
946 * vtable-verify.c (verify_bb_vtables): Check the return value
947 of gimple_call_fn. Use is_gimple_call instead of gimple_code.
949 2013-12-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
951 * config/arm/arm.md (generic_sched): Add cortexa12.
952 (generic_vfp): Likewise.
953 * config/arm/arm.c (cortexa12_extra_costs): New cost table.
954 (arm_cortex_a12_tune): New tuning struct.
955 * config/arm/arm-cores.def: Add cortex-a12.
956 * config/arm/arm-tables.opt: Regenerate.
957 * config/arm/arm-tune.md: Likewise.
958 * config/arm/bpabi.h: Add cortex-a12.
959 * doc/invoke.texi: Document -mcpu=cortex-a12.
961 2013-12-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
963 * doc/install.texi (Prerequisites): Explicitly mention C library
964 and its headers for multilib builds.
966 2013-12-08 Oleg Endo <olegendo@gcc.gnu.org>
970 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
971 OPT_mcbranchdi entry.
972 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Mark as undocumented and
974 * config/sh/sh.c (sh_option_override): Initialize TARGET_CBRANCHDI4
975 and TARGET_CMPEQDI_T variables.
976 * doc/invoke.texi (SH options): Undocument -mcbranchdi and -mcmpeqdi.
978 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
980 * config/linux.h: Fix typo in a comment.
982 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
984 * config.gcc (*linux*): Split libc selection from Android support.
985 Add libc selection to all *linux* targets. Add Android support to
986 architectures that support it.
987 (arm*-*-linux-*, i[34567]86-*-linux*, x86_64-*-linux*,)
988 (mips*-*-linux*): Add Android support.
990 2013-12-07 Alexander Ivchenko <alexander.ivchenko@intel.com>
991 Maxim Kuvyrkov <maxim@kugelworks.com>
993 * config/bfin/uclinux.h, config/c6x/uclinux-elf.h,
994 * config/lm32/uclinux-elf.h, config/m68k/uclinux.h,
995 * config/moxie/uclinux.h (TARGET_LIBC_HAS_FUNCTION): Move definitions
997 * config/linux-android.h (TARGET_HAS_IFUNC_P): Move definition
999 * config/linux.h (TARGET_LIBC_HAS_FUNCTION, TARGET_HAS_IFUNC_P):
1000 Define appropriately for Linux and uClinux targets.
1002 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
1004 * config/linux.c (linux_has_ifunc_p): Use correct test.
1006 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
1008 * config/linux.c (linux_android_has_ifunc_p): Rename to
1010 (linux_android_libc_has_function): Rename to linux_libc_has_function.
1011 * config/linux-protos.h (linux_android_has_ifunc_p,)
1012 (linux_android_libc_has_function): Update declarations.
1013 * config/linux.h, config/linux-android.h, config/alpha/linux.h,
1014 * config/rs6000/linux.h, config/rs6000/linux64.h: Update.
1016 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
1018 * linux-android.c: Rename to linux.c.
1019 * t-linux-android: Rename to t-linux. Update references
1021 * config.gcc: Update references to t-linux-android and linux-android.o.
1023 2013-12-07 Alan Modra <amodra@gmail.com>
1025 * config/rs6000/rs6000.md (bswapdi2_32bit): Remove ?? from r->r
1028 2013-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>
1030 * config.gcc (microblaze*-*-rtems*): Add TARGET_BIG_ENDIAN_DEFAULT.
1032 2013-12-06 Vladimir Makarov <vmakarov@redhat.com>
1034 * config/rs6000/rs600.md (*bswapdi2_64bit): Remove ?? from the
1037 2013-12-06 Caroline Tice <cmtice@google.com>
1039 Submitting patch from Stephen Checkoway, s@cs.jhu.edu
1040 * vtable-verify.c (verify_bb_vtables): Replace all uses of verified
1041 vtable pointer with the results of the verification call, rather than
1042 only the uses in the next statement.
1044 2013-12-06 Andrew Pinski <apinski@cavium.com>
1047 * config/aarch64/aarch64.md (trap): New pattern.
1049 2013-12-06 Jakub Jelinek <jakub@redhat.com>
1051 PR tree-optimization/59388
1052 * tree-ssa-reassoc.c (update_range_test): If op == range->exp,
1053 gimplify tem after stmt rather than before it.
1055 * tree-data-ref.c (struct data_ref_loc_d): Replace pos field with ref.
1056 (get_references_in_stmt): Don't record operand addresses, but
1057 operands themselves.
1058 (find_data_references_in_stmt, graphite_find_data_references_in_stmt):
1059 Adjust for the pos -> ref change.
1061 2013-12-06 H.J. Lu <hongjiu.lu@intel.com>
1063 * config.gcc: Change --with-cpu=ia to --with-cpu=intel.
1065 * config/i386/i386.c (cpu_names): Replace "ia" with "intel".
1066 (processor_alias_table): Likewise.
1067 (ix86_option_override_internal): Likewise.
1068 * config/i386/i386.h (target_cpu_default): Replace
1069 TARGET_CPU_DEFAULT_ia with TARGET_CPU_DEFAULT_intel.
1071 * doc/invoke.texi: Replace -mtune=ia with -mtune=intel.
1073 2013-12-06 Uros Bizjak <ubizjak@gmail.com>
1076 * config/i386/i386.c (type_natural_mode): Properly handle
1077 size 8 for !TARGET_64BIT.
1079 2013-12-06 Trevor Saunders <tsaunders@mozilla.com>
1081 * tree-ssa-pre.c (compute_antic_aux): Remove redundant call to
1084 2013-12-06 Ian Bolton <ian.bolton@arm.com>
1085 Mark Mitchell <mark@codesourcery.com>
1088 * config/arm/arm.md (trap): New pattern.
1089 * config/arm/types.md: Added a type for trap.
1091 2013-12-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
1093 * expr.c (expand_assignment): Update bitregion_start and bitregion_end.
1095 2013-12-06 Eric Botcazou <ebotcazou@adacore.com>
1098 * config/sparc/sparc.h (SPARC_LOW_FE_EXCEPT_VALUES): Define.
1099 * config/sparc/sol2.h (SPARC_LOW_FE_EXCEPT_VALUES): Redefine.
1100 * config/sparc/sparc.c (TARGET_INIT_BUILTINS): Move around.
1101 (TARGET_BUILTIN_DECL): Define.
1102 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Likewise.
1103 (sparc32_initialize_trampoline): Adjust call to gen_flush.
1104 (enum sparc_builtins): New enumeral type.
1105 (sparc_builtins): New static array.
1106 (sparc_builtins_icode): Likewise.
1107 (def_builtin): Accept a separate icode and save the result.
1108 (def_builtin_const): Likewise.
1109 (sparc_fpu_init_builtins): New function.
1110 (sparc_vis_init_builtins): Pass the builtin code.
1111 (sparc_init_builtins): Call it if TARGET_FPU.
1112 (sparc_builtin_decl): New function.
1113 (sparc_expand_builtin): Deal with SPARC_BUILTIN_{LD,ST}FSR.
1114 (sparc_handle_vis_mul8x16): Use the builtin code.
1115 (sparc_fold_builtin): Likewise. Deal with SPARC_BUILTIN_{LD,ST}FSR
1116 and SPARC_BUILTIN_PDISTN.
1117 (compound_expr): New helper function.
1118 (sparc_atomic_assign_expand_fenv): New function.
1119 * config/sparc/sparc.md (unspecv): Reorder values, add UNSPECV_LDFSR
1121 (flush, flushdi): Merge into single pattern.
1122 (ldfsr): New instruction.
1125 2013-12-06 Oleg Endo <olegendo@gcc.gnu.org>
1127 * asan.c: Remove struct tags when referring to class varpool_node.
1128 * cgraph.h: Likewise.
1129 * cgraphbuild.c: Likewise.
1130 * cgraphunit.c: Likewise.
1131 * dbxout.c: Likewise.
1132 * dwarf2out.c: Likewise.
1133 * gimple-fold.c: Likewise.
1134 * ipa-devirt.c: Likewise.
1135 * ipa-ref-inline.h: Likewise.
1136 * ipa-ref.h: Likewise.
1137 * ipa-reference.c: Likewise.
1138 * ipa-utils.c: Likewise.
1140 * lto-cgraph.c: Likewise.
1141 * lto-streamer-out.c: Likewise.
1142 * lto-streamer.h: Likewise.
1143 * passes.c: Likewise.
1144 * toplev.c: Likewise.
1145 * tree-eh.c: Likewise.
1146 * tree-emutls.c: Likewise.
1147 * tree-pass.h: Likewise.
1148 * tree-ssa-structalias.c: Likewise.
1149 * tree-vectorizer.c: Likewise.
1151 * varasm.c: Likewise.
1152 * varpool.c: Likewise.
1154 2013-12-06 Oleg Endo <olegendo@gcc.gnu.org>
1156 * cgraphunit.c: Remove struct tags when referring to class
1157 ipa_opt_pass_d or class opt_pass.
1158 * function.h: Likewise.
1159 * lto-cgraph.c: Likewise.
1160 * pass_manager.h: Likewise.
1161 * passes.c: Likewise.
1162 * tree-pass.h: Likewise.
1164 2013-12-06 Richard Biener <rguenther@suse.de>
1166 PR tree-optimization/59058
1167 * tree-vectorizer.h (struct _loop_vec_info): Add num_itersm1 member.
1168 (LOOP_VINFO_NITERSM1): New macro.
1169 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Express
1170 the vector loop entry test in terms of scalar latch executions.
1171 (vect_do_peeling_for_alignment): Update LOOP_VINFO_NITERSM1.
1172 * tree-vect-loop.c (vect_get_loop_niters): Also return the
1173 number of latch executions.
1174 (new_loop_vec_info): Initialize LOOP_VINFO_NITERSM1.
1175 (vect_analyze_loop_form): Likewise.
1176 (vect_generate_tmps_on_preheader): Compute the number of
1177 vectorized iterations differently.
1179 2013-12-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1181 * config/score/score.c (score_force_temporary): Delete function.
1182 (score_split_symbol): Ditto.
1183 * config/score/score.h (ASM_OUTPUT_ADDR_DIFF_ELT): Add extra
1184 parentheses to silence ambiguity warning and reindent.
1186 2013-12-05 Marek Polacek <polacek@redhat.com>
1188 * doc/invoke.texi: Document -fsanitize=signed-integer-overflow.
1190 2013-12-05 H.J. Lu <hongjiu.lu@intel.com>
1192 * config.gcc: Support --with-cpu=ia.
1194 * config/i386/i386.c (cpu_names): Add "ia".
1195 (processor_alias_table): Likewise.
1196 (ix86_option_override_internal): Disallow -march=ia.
1197 * config/i386/i386.h (target_cpu_default): Add TARGET_CPU_DEFAULT_ia.
1199 * doc/invoke.texi: Document -mtune=ia.
1201 2013-12-05 Vladimir Makarov <vmakarov@redhat.com>
1203 PR rtl-optimization/59317
1204 * lra-constraints.c (in_class_p): Don't ignore insn with constant
1207 2013-12-05 Martin Jambor <mjambor@suse.cz>
1210 * ipa-prop.c (ipa_modify_formal_parameters): Create decls of
1211 non-BLKmode in their naturally aligned type.
1213 2013-12-05 Marek Polacek <polacek@redhat.com>
1217 * ubsan.c: Include rtl.h and expr.h.
1218 (ubsan_encode_value): Add new parameter. If expanding, assign
1219 a stack slot for DECL_RTL of the temporary and call expand_assignment.
1220 Handle BOOLEAN_TYPE and ENUMERAL_TYPE.
1221 (ubsan_build_overflow_builtin): Adjust ubsan_encode_value call.
1222 * ubsan.h (ubsan_encode_value): Adjust declaration.
1223 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Move
1224 ubsan_build_overflow_builtin above expand_normal call. Surround
1225 this call with push_temp_slots and pop_temp_slots.
1226 (ubsan_expand_si_overflow_neg_check): Likewise.
1227 (ubsan_expand_si_overflow_mul_check): Likewise.
1229 2013-12-05 Yufeng Zhang <yufeng.zhang@arm.com>
1231 * gimple-ssa-strength-reduction.c (find_basis_for_candidate): Guard
1232 the get_alternative_base call with flag_expensive_optimizations.
1233 (alloc_cand_and_find_basis): Likewise.
1235 2013-12-05 Tejas Belagod <tejas.belagod@arm.com>
1237 * rtlanal.c (set_noop_p): Return nonzero in case of redundant
1238 vec_select for overlapping register lanes.
1240 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
1242 * config/i386/i386.c (ix86_expand_builtin): Generate
1243 reg for readflags built-in when optimizing.
1244 * config/i386/i386.md (*pushfl<mode>): Rename to ...
1245 (pushfl<mode>2): This. Fix iterator.
1246 (*popfl<mode>): Rename to ...
1247 (*popfl<mode>1): This. Fix iterator.
1249 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
1251 * config/i386/i386.c (IX86_BUILTIN_READ_FLAGS): New.
1252 (IX86_BUILTIN_WRITE_FLAGS): Ditto.
1253 (ix86_init_mmx_sse_builtins): Define
1254 __builtin_ia32_writeeflags_u32, __builtin_ia32_writeeflags_u64,
1255 __builtin_ia32_readeflags_u32, __builtin_ia32_readeflags_u64.
1256 (ix86_expand_builtin): Expand them.
1257 * config/i386/ia32intrin.h (__readeflags): New.
1258 (__writeeflags): Ditto.
1259 * gcc/config/i386/i386.md (*pushfl<mode>): Ditto.
1260 (*popfl<mode>1): Ditto.
1262 2013-12-05 Richard Biener <rguenther@suse.de>
1264 PR tree-optimization/59374
1265 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
1266 Commonize known and unknown dependence case fixing the allowed
1267 read-write dependence case and dropping code that should not matter.
1269 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
1271 * config/ia64/ia64.md (prologue_allocate_stack): Block auto-
1272 generation of predicated version.
1273 (epilogue_deallocate_stack): Ditto.
1274 (prologue_allocate_stack_pr): Add explicit predicated version.
1275 (epilogue_deallocate_stack_pr): Ditto.
1276 * config/ia64/ia64.c (ia64_single_set): Use explicit version.
1278 2013-12-05 Alan Modra <amodra@gmail.com>
1280 * configure.ac (BUILD_CXXFLAGS) Don't use ALL_CXXFLAGS for
1282 <recursive call for build != host>: Clear GMPINC. Don't bother
1285 2013-12-04 Jakub Jelinek <jakub@redhat.com>
1286 Marek Polacek <polacek@redhat.com>
1288 * opts.c (common_handle_option): Handle
1289 -fsanitize=signed-integer-overflow.
1290 * config/i386/i386.md (addv<mode>4, subv<mode>4, mulv<mode>4,
1291 negv<mode>3, negv<mode>3_1): Define expands.
1292 (*addv<mode>4, *subv<mode>4, *mulv<mode>4, *negv<mode>3): Define insns.
1293 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW,
1294 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW,
1295 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW,
1296 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW): Define.
1297 * ubsan.h (PROB_VERY_UNLIKELY, PROB_EVEN, PROB_VERY_LIKELY,
1298 PROB_ALWAYS): Define.
1299 (ubsan_build_overflow_builtin): Declare.
1300 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Add folding of
1302 * ubsan.c (PROB_VERY_UNLIKELY): Don't define here.
1303 (ubsan_build_overflow_builtin): New function.
1304 (instrument_si_overflow): Likewise.
1305 (ubsan_pass): Add signed integer overflow checking.
1306 (gate_ubsan): Enable the pass also when SANITIZE_SI_OVERFLOW.
1307 * flag-types.h (enum sanitize_code): Add SANITIZE_SI_OVERFLOW.
1308 * internal-fn.c: Include ubsan.h and target.h.
1309 (ubsan_expand_si_overflow_addsub_check): New function.
1310 (ubsan_expand_si_overflow_neg_check): Likewise.
1311 (ubsan_expand_si_overflow_mul_check): Likewise.
1312 (expand_UBSAN_CHECK_ADD): Likewise.
1313 (expand_UBSAN_CHECK_SUB): Likewise.
1314 (expand_UBSAN_CHECK_MUL): Likewise.
1315 * fold-const.c (fold_binary_loc): Don't fold A + (-B) -> A - B and
1316 (-A) + B -> B - A when doing the signed integer overflow checking.
1317 * internal-fn.def (UBSAN_CHECK_ADD, UBSAN_CHECK_SUB, UBSAN_CHECK_MUL):
1319 * tree-vrp.c (extract_range_basic): Handle internal calls.
1320 * optabs.def (addv4_optab, subv4_optab, mulv4_optab, negv4_optab): New
1322 * asan.c: Include predict.h.
1323 (PROB_VERY_UNLIKELY, PROB_ALWAYS): Don't define here.
1324 * predict.c: Move the PROB_* macros...
1325 * predict.h (enum br_predictor): ...here.
1326 (PROB_LIKELY, PROB_UNLIKELY): Define.
1327 * trans-mem.c: Include predict.h.
1328 (PROB_VERY_UNLIKELY, PROB_ALWAYS, PROB_VERY_LIKELY,
1329 PROB_LIKELY, PROB_UNLIKELY): Don't define here.
1331 2013-12-04 Jeff Law <law@redhat.com>
1333 * common.opt: Split up -fisolate-erroneous-paths into
1334 -fisolate-erroneous-paths-dereference and
1335 -fisolate-erroneous-paths-attribute.
1336 * invoke.texi: Corresponding changes.
1337 * gimple.c (infer_nonnull_range): Add and use new arguments to control
1338 what kind of statements can be used to infer a non-null range.
1339 * gimple.h (infer_nonnull_range): Update prototype.
1340 * tree-vrp.c (infer_value_range): Corresponding changes.
1341 * opts.c (default_options_table): Update due to option split.
1342 * gimple-ssa-isolate-paths.c: Fix trailing whitespace.
1343 (find_implicit_erroneous_behaviour): Pass additional arguments
1344 to infer_nonnull_range.
1345 (find_explicit_erroneous_behaviour): Similarly.
1346 (gate_isolate_erroneous_paths): Check both of the new options.
1348 2013-12-04 Jeff Law <law@redhat.com>
1350 * expr.c (expand_assignment): Update comments.
1352 2013-12-04 Tobias Burnus <burnus@net-b.de>
1355 * lto-streamer.h (LTO_tags): Add LTO_namelist_decl_ref.
1356 * tree.def (NAMELIST_DECL): Add.
1357 * tree.h (NAMELIST_DECL_ASSOCIATED_DECL): New macro.
1358 * tree.c (initialize_tree_contains_struct): Add asserts for it.
1359 * dwarf2out.c (gen_namelist_decl): New function.
1360 (gen_decl_die, dwarf2out_decl): Call it.
1361 (dwarf2out_imported_module_or_decl_1): Handle NAMELIST_DECL.
1362 * lto-streamer-in.c (lto_input_tree_ref): Handle NAMELIST_DECL.
1363 (lto_input_tree_ref, lto_input_tree_1): Update lto_tag_check_range
1365 * lto-streamer-out.c (lto_output_tree_ref): Handle NAMELIST_DECL.
1367 2013-12-03 Xinliang David Li <davidxl@google.com>
1369 * tree-ssa-structalias.c (constraint_set_union): Change return type
1371 (merge_node_constraints): Ditto.
1372 (unify_nodes): Update changed set when constraints set changes.
1374 2013-12-04 H.J. Lu <hongjiu.lu@intel.com>
1376 * configure.ac: Append gdbasan.in to .gdbinit if CFLAGS contains
1378 * configure: Regenerated.
1380 * gdbasan.in: New file.
1382 2013-12-04 Jakub Jelinek <jakub@redhat.com>
1384 PR rtl-optimization/58726
1385 * combine.c (force_to_mode): Fix comment typo. Don't destructively
1386 modify x for ROTATE, ROTATERT and IF_THEN_ELSE.
1388 2013-12-04 Jakub Jelinek <jakub@redhat.com>
1389 Uros Bizjak <ubizjak@gmail.com>
1392 * config/i386/i386.c (ix86_legitimate_combined_insn): If for
1393 !TARGET_AVX there is misaligned MEM operand with vector mode
1394 and get_attr_ssememalign is 0, return false.
1395 (ix86_expand_special_args_builtin): Add get_pointer_alignment
1396 computed alignment and for non-temporal loads/stores also
1397 at least GET_MODE_ALIGNMENT as MEM_ALIGN.
1398 * config/i386/sse.md
1399 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
1400 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
1401 <sse2_avx_avx512f>_loaddqu<mode><mask_name>,
1402 <sse2_avx_avx512f>_storedqu<mode>, <sse3>_lddqu<avxsizesuffix>,
1403 sse_vmrcpv4sf2, sse_vmrsqrtv4sf2, sse2_cvtdq2pd, sse_movhlps,
1404 sse_movlhps, sse_storehps, sse_loadhps, sse_loadlps,
1405 *vec_interleave_highv2df, *vec_interleave_lowv2df,
1406 *vec_extractv2df_1_sse, sse2_movsd, sse4_1_<code>v8qiv8hi2,
1407 sse4_1_<code>v4qiv4si2, sse4_1_<code>v4hiv4si2,
1408 sse4_1_<code>v2qiv2di2, sse4_1_<code>v2hiv2di2,
1409 sse4_1_<code>v2siv2di2, sse4_2_pcmpestr, *sse4_2_pcmpestr_unaligned,
1410 sse4_2_pcmpestri, sse4_2_pcmpestrm, sse4_2_pcmpestr_cconly,
1411 sse4_2_pcmpistr, *sse4_2_pcmpistr_unaligned, sse4_2_pcmpistri,
1412 sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Add ssememalign attribute.
1413 * config/i386/i386.md (ssememalign): New define_attr.
1415 2013-12-04 Jakub Jelinek <jakub@redhat.com>
1417 PR tree-optimization/59355
1418 * ipa-devirt.c (gate_ipa_devirt): Return false if !flag_devirtualize.
1419 * opts.c (common_handle_option): Fix comment spelling.
1421 2013-12-04 Yufeng Zhang <yufeng.zhang@arm.com>
1423 * gimple-ssa-strength-reduction.c: Include tree-affine.h.
1424 (name_expansions): New static variable.
1425 (alt_base_map): Ditto.
1426 (get_alternative_base): New function.
1427 (find_basis_for_candidate): For CAND_REF, optionally call
1428 find_basis_for_base_expr with the returned value from
1429 get_alternative_base.
1430 (record_potential_basis): Add new parameter 'base' of type 'tree';
1431 add an assertion of non-NULL base; use base to set node->base_expr.
1432 (alloc_cand_and_find_basis): Update; call record_potential_basis
1433 for CAND_REF with the returned value from get_alternative_base.
1434 (replace_refs): Dump details on the replacing.
1435 (execute_strength_reduction): Call pointer_map_create for
1436 alt_base_map; call free_affine_expand_cache with &name_expansions.
1438 2013-12-03 Wei Mi <wmi@google.com>
1440 PR rtl-optimization/59020
1441 * sched-deps.c (try_group_insn): Move it from haifa-sched.c to here.
1442 (sched_analyze_insn): Call try_group_insn.
1443 (sched_analyze): Cleanup SCHED_GROUP_P before start the analysis.
1444 * haifa-sched.c (try_group_insn): Moved to sched-deps.c.
1445 (group_insns_for_macro_fusion): Removed.
1446 (sched_init): Remove calling group_insns_for_macro_fusion.
1448 2013-12-03 Peter Bergner <bergner@vnet.ibm.com>
1450 * config/rs6000/htmintrin.h (_TEXASR_INSTRUCTION_FETCH_CONFLICT): Fix
1452 (_TEXASRU_INSTRUCTION_FETCH_CONFLICT): Likewise.
1454 2013-12-03 Vladimir Makarov <vmakarov@redhat.com>
1456 * config/aarch64/aarch64.c (aarch64_frame_pointer_required): Check
1458 (aarch64_can_eliminate): Don't check elimination source when
1459 frame_pointer_required is false.
1461 2013-12-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1463 * config/avr/avr.c (avr_option_override): Warn if asked to generate
1464 position independent code.
1465 * config/avr/avr.h: Modify LINK_SPEC to reject -shared.
1467 2013-12-03 H.J. Lu <hongjiu.lu@intel.com>
1470 * config/i386/i386.c (emit_memset): Adjust destination address
1472 (expand_setmem_epilogue): Likewise.
1474 2013-12-03 Marek Polacek <polacek@redhat.com>
1477 * calls.c (expand_call): Disallow passing huge arguments by value.
1479 2013-12-03 Jakub Jelinek <jakub@redhat.com>
1481 PR tree-optimization/59362
1482 * tree-object-size.c (object_sizes): Change into array of
1483 vec<unsigned HOST_WIDE_INT>.
1484 (compute_builtin_object_size): Check computed bitmap for
1485 non-NULL instead of object_sizes. Call safe_grow on object_sizes
1486 vector if new SSA_NAMEs appeared.
1487 (init_object_sizes): Check computed bitmap for non-NULL.
1488 Call safe_grow on object_sizes elements instead of initializing
1490 (fini_object_sizes): Call release on object_sizes elements, don't
1494 * gimplify.c (nonlocal_vla_vars): New variable.
1495 (gimplify_var_or_parm_decl): Put VAR_DECLs for VLAs into
1496 nonlocal_vla_vars chain.
1497 (gimplify_body): Call declare_vars on nonlocal_vla_vars chain
1498 if outer_bind has DECL_INITIAL (current_function_decl) block.
1501 * dojump.c (save_pending_stack_adjust, restore_pending_stack_adjust):
1503 * expr.h (struct saved_pending_stack_adjust): New type.
1504 (save_pending_stack_adjust, restore_pending_stack_adjust): New
1506 * optabs.c (emit_conditional_move): Call save_pending_stack_adjust
1507 and get_last_insn before do_pending_stack_adjust, call
1508 restore_pending_stack_adjust after delete_insns_since.
1509 * expr.c (expand_expr_real_2): Don't call do_pending_stack_adjust
1510 before calling emit_conditional_move.
1511 * expmed.c (expand_sdiv_pow2): Likewise.
1512 * calls.c (expand_call): Use {save,restore}_pending_stack_adjust.
1514 2013-12-02 Jeff Law <law@redhat.com>
1516 PR tree-optimization/59322
1517 * tree-ssa-threadedge.c (create_edge_and_update_destination_phis):
1518 Remove code which copied jump threading paths.
1520 2013-12-02 Sriraman Tallam <tmsriram@google.com>
1523 * config/i386/i386.opt (ix86_arch_string): Mark this variable
1524 for saving in cl_target_option.
1525 (ix86_tune_string): Ditto.
1526 (ix86_cmodel): Ditto.
1528 (ix86_asm_dialect): Ditto.
1529 (ix86_branch_cost): Ditto.
1530 (ix86_dump_tunes): Ditto.
1531 (ix86_force_align_arg_pointer): Ditto.
1532 (ix86_force_drap): Ditto.
1533 (ix86_incoming_stack_boundary_arg): Ditto.
1534 (ix86_pmode): Ditto.
1535 (ix86_preferred_stack_boundary_arg): Ditto.
1536 (ix86_recip_name): Ditto.
1537 (ix86_regparm): Ditto.
1538 (ix86_section_threshold): Ditto.
1539 (ix86_sse2avx): Ditto.
1540 (ix86_stack_protector_guard): Ditto.
1541 (ix86_stringop_alg): Ditto.
1542 (ix86_tls_dialect): Ditto.
1543 (ix86_tune_ctrl_string): Ditto.
1544 (ix86_tune_memcpy_strategy): Ditto.
1545 (ix86_tune_memset_strategy): Ditto.
1546 (ix86_tune_no_default): Ditto.
1547 (ix86_veclibabi_type): Ditto.
1548 * config/i386/i386.c (function_specific_save): Save the above
1549 variables in gcc_options to cl_target_option.
1550 (function_specific_restore): Do the reverse done in
1551 function_specific_save.
1552 (ix86_valid_target_attribute_tree): Change ix86_arch_string
1553 and ix86_tune_string to use the opts structure.
1554 (ix86_option_override_internal):Change
1555 ix86_incoming_stack_boundary_arg to
1556 opts->x_ix86_incoming_stack_boundary_arg
1558 2013-12-02 Joern Rennecke <joern.rennecke@embecosm.com>
1560 * config/epiphany/epiphany.h: Wrap rtl_opt_pass declarations
1561 in #ifndef IN_LIBGCC2 / #endif.
1563 2013-12-02 Jakub Jelinek <jakub@redhat.com>
1565 PR tree-optimization/59358
1566 * tree-vrp.c (union_ranges): To check for the partially overlapping
1567 ranges or adjacent ranges, also compare *vr0max with vr1max.
1569 2013-12-02 Sterling Augustine  <saugustine@google.com>
1571 * dwarf2out.c (output_pubnames): Use comp_unit_die ()->die_offset
1572 when there isn't a skeleton die.
1574 2013-12-02 Marek Polacek <polacek@redhat.com>
1577 * doc/invoke.texi: Document -fsanitize=return.
1579 2013-12-02 Tobias Burnus <burnus@net-b.de>
1580 Manuel López-Ibáñez <manu@gcc.gnu.org>
1583 * doc/invoke.texi: Add missing @opindex.
1584 (-fsanitize=): Use @gcctabopt instead of @itemize.
1586 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
1588 Fix C++0x memory model for unaligned fields in packed, aligned(4)
1589 structures with -fno-strict-volatile-bitfields on STRICT_ALIGNMENT
1590 targets like arm-none-eabi.
1591 * expr.c (expand_assignment): Handle normal fields like bit regions.
1593 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
1596 * function.c (invoke_set_current_function_hook): Call
1597 targetm.set_current_function after setting this_fn_optabs.
1599 2013-12-02 Richard Biener <rguenther@suse.de>
1601 PR tree-optimization/59139
1602 * tree-ssa-loop-niter.c (chain_of_csts_start): Properly match
1603 code in get_val_for.
1604 (get_val_for): Use gcc_checking_asserts.
1606 2013-12-02 Richard Biener <rguenther@suse.de>
1609 * tree-ssa-operands.c (opf_implicit): Remove.
1610 (opf_address_taken): New flag.
1611 (get_expr_operands): Remove early out, pass down opf_address_taken for
1612 ADDR_EXPRs, add a use operand only for non-opf_address_taken bases.
1613 (get_indirect_ref_operands): Rename to ...
1614 (get_mem_ref_operands): ... this.
1615 (get_asm_expr_operands): Rename to ...
1616 (get_asm_stmt_operands): ... this.
1618 2013-12-02 Yuri Rumyantsev <ysrumyan@gmail.com>
1620 * ipa-inline.c (check_callers): Add missed pointer de-reference.
1622 2013-12-02 Eric Botcazou <ebotcazou@adacore.com>
1624 PR tree-optimization/59356
1625 * tree-dfa.h (get_addr_base_and_unit_offset_1) <case ARRAY_REF>: Do the
1626 offset computation using the precision of the index type.
1628 2013-12-02 Yvan Roux <yvan.roux@linaro.org>
1631 * config/arm/arm.c (arm_preferred_reload_class): Only return LO_REGS
1632 when rclass is GENERAL_REGS.
1634 2013-12-02 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1636 * loop-unroll.c (decide_unroll_constant_iterations): Check macro
1637 TARGET_LOOP_UNROLL_ADJUST while deciding unroll factor.
1639 2013-12-01 Eric Botcazou <ebotcazou@adacore.com>
1641 * config/i386/winnt.c (i386_pe_asm_named_section): Be prepared for an
1644 2013-12-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
1646 * expr.c (emit_group_store): Fix off-by-one BITFIELD_END argument.
1648 2013-11-30 Paulo Matos <pmatos@broadcom.com>
1649 Eric Botcazou <ebotcazou@adacore.com>
1651 * combine.c (reg_nonzero_bits_for_combine): Apply mask transformation
1652 as applied to nonzero_sign_valid when last_set_mode has less precision
1655 2013-11-30 Tobias Burnus <burnus@net-b.de>
1658 * doc/invoke.texi (-fsanitize=address,leak): Mention the associated
1659 environment variable and link to a list with flags.
1660 (-fsanitize=thread): Ditto and update link.
1662 2013-11-29 Vladimir Makarov <vmakarov@redhat.com>
1664 PR rtl-optimization/59340
1665 * lra.c (check_rtl): Use recog_memoized instead of insn_invalid_p.
1668 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
1670 * lra.c (lra): Set lra_in_progress before check_rtl call.
1671 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
1672 adding clobber regs when LRA is running.
1674 2013-11-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1677 * config/arm/arm.c (cortexa15_extra_costs): Adjust costs.
1679 2013-11-29 Richard Biener <rguenther@suse.de>
1682 * tree-ssa-operands.h (fini_ssa_operands, verify_ssa_operands,
1683 free_stmt_operands, update_stmt_operands): Add struct function
1685 * tree-ssa-operands.c: Remove uses of cfun, propagate struct
1686 function argument from fini_ssa_operands, verify_ssa_operands,
1687 free_stmt_operands and update_stmt_operands everywhere.
1688 * tree-ssanames.h (release_ssa_name_fn): New.
1689 (release_ssa_name): Inline wrapper around release_ssa_name_fn.
1690 * tree-ssanames.c (release_ssa_name): Rename to ...
1691 (release_ssa_name_fn): ... this and add struct function argument.
1692 * gimple-ssa.h (update_stmt, update_stmt_if_modified): Adjust.
1693 (update_stmt_fn): New function.
1694 * tree-cfg.c (move_block_to_fn): Adjust.
1695 * tree-if-conv.c (free_bb_predicate): Likewise.
1696 * tree-ssa.c (verify_ssa): Likewise.
1697 (delete_tree_ssa): Likewise.
1698 * gimple-pretty-print.c (dump_gimple_mem_ops): Remove guard.
1699 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Call
1700 update_stmt_fn instead of update_stmt.
1702 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
1704 * config/arm/arm.h (THUMB_SECONDARY_INPUT_RELOAD_CLASS): Return NO_REGS
1707 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
1709 * config/arm/arm.md (store_minmaxsi): Use only when
1710 optimize_function_for_size_p.
1712 2013-11-29 Jakub Jelinek <jakub@redhat.com>
1713 Yury Gribov <y.gribov@samsung.com>
1716 * config/gnu-user.h: Removed old code for setting up sanitizer libs.
1717 * gcc.c: Using libsanitizer spec instead of explicit libs.
1719 2013-11-29 Ilya Enkovich <ilya.enkovich@intel.com>
1722 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
1723 * cgraph.h (varpool_node): Add need_bounds_init field.
1724 * lto-cgraph.c (lto_output_varpool_node): Output
1725 need_bounds_init value.
1726 (input_varpool_node): Read need_bounds_init value.
1727 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
1730 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
1731 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
1732 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
1733 (gen_type_die_with_usage): Skip pointer bounds.
1734 (dwarf2out_global_decl): Likewise.
1737 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
1738 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
1739 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
1740 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
1741 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
1742 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
1743 (gimple_call_with_bounds_p): New.
1744 (gimple_call_set_with_bounds): New.
1745 (gimple_call_num_nobnd_args): Remove.
1746 (gimple_call_nobnd_arg): Remove.
1747 * tree.h (CALL_WITH_BOUNDS_P): New.
1748 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
1751 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
1752 * common.opt (fcheck-pointer-bounds): Move to ...
1753 * c-family/c.opt: ... here.
1754 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
1755 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
1756 * langhooks.h (lang_hooks): Remove chkp_supported field.
1757 * toplev.c (process_options): Remove chkp_supported check.
1760 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
1761 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
1762 * tree.h (POINTER_BOUNDS_P): New.
1763 (BOUNDED_TYPE_P): New.
1765 (pointer_bounds_type_node): New.
1766 * tree.c (build_common_tree_nodes): Initialize
1767 pointer_bounds_type_node.
1768 * gimple.h (gimple_call_get_nobnd_arg_index): New.
1769 (gimple_call_num_nobnd_args): New.
1770 (gimple_call_nobnd_arg): New.
1771 (gimple_return_retbnd): New.
1772 (gimple_return_set_retbnd): New
1773 * gimple.c (gimple_build_return): Increase number of ops
1774 for return statement.
1775 (gimple_call_get_nobnd_arg_index): New.
1776 * gimple-pretty-print.c (dump_gimple_return): Print second op.
1779 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
1780 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
1781 with "chkp ctor" and "bnd_legacy" attributes.
1782 * gimplify.c (gimplify_init_constructor): Avoid infinite
1783 loop during gimplification of bounds initializer.
1786 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
1787 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
1788 (handle_bnd_legacy): New.
1789 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
1790 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
1794 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
1795 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
1796 (BT_FN_PTR_CONST_PTR): New.
1797 (BT_FN_CONST_PTR_CONST_PTR): New.
1798 (BT_FN_PTR_CONST_PTR_SIZE): New.
1799 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
1800 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
1801 (BT_FN_VOID_CONST_PTR_SIZE): New.
1802 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
1803 * chkp-builtins.def: New.
1804 * builtins.def: include chkp-builtins.def.
1805 (DEF_CHKP_BUILTIN): New.
1806 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
1807 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
1808 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
1809 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
1810 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
1811 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
1812 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
1813 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
1814 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
1815 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
1816 * common.opt (fcheck-pointer-bounds): New.
1817 * toplev.c (process_options): Check Pointer Bounds Checker is
1819 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
1822 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
1823 * target.def (builtin_chkp_function): New.
1824 (chkp_bound_type): New.
1825 (chkp_bound_mode): New.
1826 (fn_abi_va_list_bounds_size): New.
1827 (load_bounds_for_arg): New.
1828 (store_bounds_for_arg): New.
1829 * targhooks.h (default_load_bounds_for_arg): New.
1830 (default_store_bounds_for_arg): New.
1831 (default_fn_abi_va_list_bounds_size): New.
1832 (default_chkp_bound_type): New.
1833 (default_chkp_bound_mode): New.
1834 (default_builtin_chkp_function): New.
1835 * targhooks.c (default_load_bounds_for_arg): New.
1836 (default_store_bounds_for_arg): New.
1837 (default_fn_abi_va_list_bounds_size): New.
1838 (default_chkp_bound_type): New.
1839 (default_chkp_bound_mode); New.
1840 (default_builtin_chkp_function): New.
1841 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
1842 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
1843 (TARGET_STORE_BOUNDS_FOR_ARG): New.
1844 (TARGET_BUILTIN_CHKP_FUNCTION): New.
1845 (TARGET_CHKP_BOUND_TYPE): New.
1846 (TARGET_CHKP_BOUND_MODE): New.
1847 * doc/tm.texi: Regenerated.
1848 * langhooks.h (lang_hooks): Add chkp_supported field.
1849 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
1850 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
1853 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
1854 * config/i386/constraints.md (B): New.
1857 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
1858 * config/i386/i386-modes.def (BND32): New.
1860 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
1861 * config/i386/i386.c (isa_opts): Add mmpx.
1862 (regclass_map): Add bound registers.
1863 (dbx_register_map): Likewise.
1864 (dbx64_register_map): Likewise.
1865 (svr4_dbx_register_map): Likewise.
1867 (ix86_option_override_internal): Support MPX ISA.
1868 (ix86_conditional_register_usage): Support bound registers.
1869 (print_reg): Likewise.
1870 (ix86_code_end): Add MPX bnd prefix.
1871 (output_set_got): Likewise.
1872 (ix86_output_call_insn): Likewise.
1873 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
1874 (ix86_print_operand_punct_valid_p): Likewise.
1875 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
1877 (ix86_class_likely_spilled_p): Add bound regs support.
1878 (ix86_hard_regno_mode_ok): Likewise.
1879 (x86_order_regs_for_local_alloc): Likewise.
1880 (ix86_bnd_prefixed_insn_p): New.
1881 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
1882 (FIXED_REGISTERS): Add bound registers.
1883 (CALL_USED_REGISTERS): Likewise.
1884 (REG_ALLOC_ORDER): Likewise.
1885 (HARD_REGNO_NREGS): Likewise.
1887 (VALID_BND_REG_MODE): New.
1888 (FIRST_BND_REG): New.
1889 (LAST_BND_REG): New.
1890 (reg_class): Add BND_REGS.
1891 (REG_CLASS_NAMES): Likewise.
1892 (REG_CLASS_CONTENTS): Likewise.
1894 (ANY_BND_REG_P): New.
1896 (HI_REGISTER_NAMES): Add bound registers.
1897 * config/i386/i386.md (UNSPEC_BNDMK): New.
1898 (UNSPEC_BNDMK_ADDR): New.
1899 (UNSPEC_BNDSTX): New.
1900 (UNSPEC_BNDLDX): New.
1901 (UNSPEC_BNDLDX_ADDR): New.
1902 (UNSPEC_BNDCL): New.
1903 (UNSPEC_BNDCU): New.
1904 (UNSPEC_BNDCN): New.
1905 (UNSPEC_MPX_FENCE): New.
1908 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
1909 (length_immediate): Likewise.
1910 (prefix_0f): Likewise.
1912 (prefix_rep): Check for bnd prefix.
1913 (length_nobnd): New.
1914 (length): Use length_nobnd if specified.
1919 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
1922 (simple_return_internal): Likewise.
1923 (simple_return_pop_internal): Likewise.
1924 (*indirect_jump): Add MPX bnd prefix.
1925 (*tablejump_1): Likewise.
1926 (simple_return_internal_long): Likewise.
1927 (simple_return_indirect_internal): Likewise.
1931 (*mov<mode>_internal_mpx): New.
1932 (<mode>_<bndcheck>): New.
1933 (*<mode>_<bndcheck>): New.
1938 * config/i386/predicates.md (lea_address_operand): Rename to...
1939 (address_no_seg_operand): ... this.
1940 (address_mpx_no_base_operand): New.
1941 (address_mpx_no_index_operand): New.
1942 (bnd_mem_operator): New.
1943 * config/i386/i386.opt (mmpx): New.
1944 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
1945 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
1948 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
1949 * mode-classes.def (MODE_POINTER_BOUNDS): New.
1950 * tree.def (POINTER_BOUNDS_TYPE): New.
1951 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
1952 (POINTER_BOUNDS_MODE): New.
1953 (make_pointer_bounds_mode): New.
1954 * machmode.h (POINTER_BOUNDS_MODE_P): New.
1955 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
1956 (layout_type): Support POINTER_BOUNDS_TYPE.
1957 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
1958 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
1959 (type_contains_placeholder_1): Likewise.
1960 * tree.h (POINTER_BOUNDS_TYPE_P): New.
1961 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
1962 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
1964 2013-11-29 Richard Biener <rguenther@suse.de>
1967 * tree-cfg.c (verify_expr): Restrict bounds verification of
1968 BIT_FIELD_REF arguments to non-aggregate typed base objects.
1970 2013-11-29 Richard Biener <rguenther@suse.de>
1972 PR tree-optimization/59334
1973 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Fix bug
1976 2013-11-29 Jakub Jelinek <jakub@redhat.com>
1977 Richard Biener <rguenther@suse.de>
1980 * omp-low.c (simd_clone_create): Return NULL if for definition
1981 !cgraph_function_with_gimple_body_p (old_node). Call cgraph_get_body
1982 before calling cgraph_function_versioning.
1983 (expand_simd_clones): Look for "omp declare simd" attribute first.
1984 Don't check targetm.simd_clone.compute_vecsize_and_simdlen here.
1985 Punt if node->global.inlined_to.
1986 (pass_omp_simd_clone::gate): Also enable if in_lto_p && !flag_wpa.
1987 Disable pass if targetm.simd_clone.compute_vecsize_and_simdlen is NULL.
1988 * lto-streamer-out.c (hash_tree): Handle OMP_CLAUSE.
1990 2013-11-29 Jakub Jelinek <jakub@redhat.com>
1993 * tree-core.h (enum omp_clause_schedule_kind): Add
1994 OMP_CLAUSE_SCHEDULE_LAST.
1995 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_LAST.
1996 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_LAST.
1997 (enum omp_clause_map_kind): Add OMP_CLAUSE_MAP_LAST.
1998 (enum omp_clause_proc_bind_kind): Add OMP_CLAUSE_PROC_BIND_LAST.
1999 * lto-streamer-out.c (lto_is_streamable): Allow streaming OMP_CLAUSE.
2000 (DFS_write_tree_body): Handle OMP_CLAUSE.
2001 * tree-streamer-out.c (pack_ts_omp_clause_value_fields): New function.
2002 (streamer_pack_tree_bitfields): Call it for OMP_CLAUSE.
2003 (write_ts_omp_clause_tree_pointers): New function.
2004 (streamer_write_tree_body): Call it for OMP_CLAUSE.
2005 (streamer_write_tree_header): For OMP_CLAUSE stream OMP_CLAUSE_CODE.
2006 * tree-streamer-in.c (unpack_ts_omp_clause_value_fields): New function.
2007 (unpack_value_fields): Call it for OMP_CLAUSE.
2008 (streamer_alloc_tree): Handle OMP_CLAUSE.
2009 (lto_input_ts_omp_clause_tree_pointers): New function.
2010 (streamer_read_tree_body): Call it for OMP_CLAUSE.
2012 2013-11-29 Joseph Myers <joseph@codesourcery.com>
2014 * doc/implement-c.texi: Document C11 implementation-defined
2015 behavior. Refer to -ffp-contract=fast for contraction behavior.
2016 * doc/invoke.texi (-std=c99, std=c11): Update description of
2018 (-std=gnu99): Don't mention as future default.
2019 (-std=gnu11): Mention as intended future default.
2020 * doc/standards.texi: Update descriptions of C99 and C11 support.
2021 Limit statement about C99 facilities for freestanding
2022 implementations to some platforms only.
2024 2013-11-28 Jakub Jelinek <jakub@redhat.com>
2027 * cfgexpand.c (expand_used_vars): Avoid warning on 32-bit HWI hosts.
2029 2013-11-28 Vladimir Makarov <vmakarov@redhat.com>
2032 * ira.h (ira_setup_eliminable_regset): Remove parameter.
2033 * ira.c (ira_setup_eliminable_regset): Ditto. Add
2034 SUPPORTS_STACK_ALIGNMENT for crtl->stack_realign_needed.
2035 Don't call lra_init_elimination.
2036 (ira): Call ira_setup_eliminable_regset without arguments.
2037 * loop-invariant.c (calculate_loop_reg_pressure): Remove argument
2038 from ira_setup_eliminable_regset call.
2039 * gcse.c (calculate_bb_reg_pressure): Ditto.
2040 * haifa-sched.c (sched_init): Ditto.
2041 * lra.h (lra_init_elimination): Remove the prototype.
2042 * lra-int.h (lra_insn_recog_data): New member sp_offset. Move
2043 used_insn_alternative upper.
2044 (lra_eliminate_regs_1): Add one more parameter.
2045 (lra-eliminate): Ditto.
2046 * lra.c (lra_invalidate_insn_data): Set sp_offset.
2047 (setup_sp_offset): New.
2048 (lra_process_new_insns): Call setup_sp_offset.
2049 (lra): Add argument to lra_eliminate calls.
2050 * lra-constraints.c (get_equiv_substitution): Rename to get_equiv.
2051 (get_equiv_with_elimination): New.
2052 (process_addr_reg): Call get_equiv_with_elimination instead of
2053 get_equiv_substitution.
2054 (equiv_address_substitution): Ditto.
2055 (loc_equivalence_change_p): Ditto.
2056 (loc_equivalence_callback, lra_constraints): Ditto.
2057 (curr_insn_transform): Ditto. Print the sp offset
2058 (process_alt_operands): Prevent stack pointer reloads.
2059 (lra_constraints): Remove one argument from lra_eliminate call.
2060 Move it up. Mark used hard regs bfore it. Use
2061 get_equiv_with_elimination instead of get_equiv_substitution.
2062 * lra-eliminations.c (lra_eliminate_regs_1): Add parameter and
2063 assert for param values combination. Use sp offset. Add argument
2064 to lra_eliminate_regs_1 calls.
2065 (lra_eliminate_regs): Add argument to lra_eliminate_regs_1 call.
2066 (curr_sp_change): New static var.
2067 (mark_not_eliminable): Add parameter. Update curr_sp_change.
2068 Don't prevent elimination to sp if we can calculate its change.
2069 Pass the argument to mark_not_eliminable calls.
2070 (eliminate_regs_in_insn): Add a parameter. Use sp offset. Add
2071 argument to lra_eliminate_regs_1 call.
2072 (update_reg_eliminate): Move calculation of hard regs for spill
2073 lower. Switch off lra_in_progress temporarily to generate regs
2074 involved into elimination.
2075 (lra_init_elimination): Rename to init_elimination. Make it
2076 static. Set up insn sp offset, check the offsets at the end of BBs.
2077 (process_insn_for_elimination): Add parameter. Pass its value to
2078 eliminate_regs_in_insn.
2079 (lra_eliminate): : Add parameter. Pass its value to
2080 process_insn_for_elimination. Add assert for param values
2081 combination. Call init_elimination. Don't update offsets in
2082 equivalence substitutions.
2083 * lra-spills.c (assign_mem_slot): Don't call lra_eliminate_regs_1
2084 for created stack slot.
2085 (remove_pseudos): Call lra_eliminate_regs_1 before changing memory
2088 2013-11-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2090 * config/arm/iterators.md (vrint_conds): New int attribute.
2091 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2): Set conds attribute.
2092 (smax<mode>3): Likewise.
2093 (smin<mode>3): Likewise.
2095 2013-11-28 Richard Sandiford <rdsandiford@googlemail.com>
2097 * tree-core.h (tree_base): Document use of static_flag for SSA_NAME.
2098 * tree.h (SSA_NAME_ANTI_RANGE_P, SSA_NAME_RANGE_TYPE): New macros.
2099 * tree-ssanames.h (set_range_info): Add range_type argument.
2100 (duplicate_ssa_name_range_info): Likewise.
2101 * tree-ssanames.c (set_range_info): Take the range type as argument
2102 and store it in SSA_NAME_ANTI_RANGE_P.
2103 (duplicate_ssa_name_range_info): Likewise.
2104 (get_range_info): Use SSA_NAME_ANTI_RANGE_P.
2105 (set_nonzero_bits): Update call to set_range_info.
2106 (duplicate_ssa_name_fn): Update call to duplicate_ssa_name_range_info.
2107 * tree-ssa-copy.c (fini_copy_prop): Likewise.
2108 * tree-vrp.c (remove_range_assertions): Update call to set_range_info.
2109 (vrp_finalize): Likewise, passing anti-ranges directly.
2111 2013-11-28 Richard Biener <rguenther@suse.de>
2113 PR tree-optimization/59330
2114 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Simplify
2115 and fix delayed marking of free calls not necessary.
2117 2013-11-28 Andrew MacLeod <amacleod@redhat.com>
2119 * tree-ssa-propagate.c (valid_gimple_call_p): Pass TREE_TYPE to
2121 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
2123 2013-11-28 Terry Guo <terry.guo@arm.com>
2125 * config/arm/arm.c (v7m_extra_costs): New table.
2126 (arm_v7m_tune): Use it.
2128 2013-11-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2130 * config/sol2.h (TIME_LIBRARY): Define.
2132 2013-11-28 Richard Biener <rguenther@suse.de>
2135 * lto-streamer-out.c (tree_is_indexable): TYPE_DECLs and
2136 CONST_DECLs in function context are not indexable.
2138 2013-11-28 Chung-Ju Wu <jasonwucj@gmail.com>
2140 * config/nds32/nds32.c (nds32_rtx_costs): Adjust MULT cost if it is
2141 not optimized for size.
2143 2013-11-28 Jakub Jelinek <jakub@redhat.com>
2145 * cfgexpand.c (struct stack_vars_data): Add asan_base and asan_alignb
2147 (expand_stack_vars): For -fsanitize=address, use (and set initially)
2148 data->asan_base as base for vars and update asan_alignb.
2149 (expand_used_vars): Initialize data.asan_base and data.asan_alignb.
2150 Pass them to asan_emit_stack_protection.
2151 * asan.c (asan_detect_stack_use_after_return): New variable.
2152 (asan_emit_stack_protection): Add pbase and alignb arguments.
2153 Implement use after return sanitization.
2154 * asan.h (asan_emit_stack_protection): Adjust prototype.
2155 (ASAN_STACK_MAGIC_USE_AFTER_RET, ASAN_STACK_RETIRED_MAGIC): Define.
2157 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
2159 * common.opt: Introduced a new option -fsimd-cost-model.
2160 * doc/invoke.texi: Introduced a new openmp-simd warning and
2161 a new -fsimd-cost-model option.
2162 * tree-vectorizer.h (unlimited_cost_model): Interface updated
2163 to rely on the particular loop info.
2164 * tree-vect-data-refs.c (vect_peeling_hash_insert): Ditto.
2165 (vect_peeling_hash_choose_best_peeling): Ditto.
2166 (vect_enhance_data_refs_alignment): Ditto.
2167 * tree-vect-slp.c (vect_slp_analyze_bb_1): Ditto.
2168 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Ditto
2169 plus added openmp-simd warining.
2171 2013-11-27 H.J. Lu <hongjiu.lu@intel.com>
2173 PR rtl-optimization/59311
2174 * dwarf2cfi.c (dwf_regno): Assert reg isn't pseudo register.
2175 * lra-spills.c (spill_pseudos): Handle REG_XXX notes.
2177 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
2179 * var-tracking.c (track_expr_p): Do not track declarations for parts
2180 of tracked parameters.
2181 (add_stores): Do not track values for tracked parameters passed in
2183 (vt_get_decl_and_offset): Handle PARALLEL.
2184 (vt_add_function_parameter): Handle parameters with incoming PARALLEL.
2186 2013-11-27 Jeff Law <law@redhat.com>
2188 * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
2189 clobber the loop structure thread_block was unsuccessful. If
2190 thread_block was unsuccessful, cleanup appropriately.
2192 2013-11-27 Chen Liqin <liqin.gcc@gmail.com>
2194 * config/score/score.h (REG_CLASS_FROM_LETTER): Delete.
2195 (score_char_to_class): Likewise.
2197 2013-11-27 Kenneth Zadeck <zadeck@naturalbridge.com>
2199 * fold-const.c (int_const_binop_1): Make INT_MIN % -1 return 0 with
2200 the overflow bit set.
2202 2013-11-27 Richard Biener <rguenther@suse.de>
2205 * cgraphbuild.c (build_cgraph_edges): Do not build edges
2207 (rebuild_cgraph_edges): Likewise.
2208 * ipa-inline-analysis.c (estimate_function_body_sizes):
2209 Skip internal calls.
2210 * tree-inline.c (estimate_num_insns): Estimate size of internal
2212 (gimple_expand_calls_inline): Do not try inline-expanding
2214 * lto-streamer-in.c (input_cfg): Stream loop safelen,
2215 force_vect and simduid.
2216 (input_struct_function_base): Stream has_force_vect_loops
2217 and has_simduid_loops.
2218 (input_function): Adjust.
2219 * lto-streamer-out.c (output_cfg): Stream loop safelen,
2220 force_vect and simduid.
2221 (output_struct_function_base): Stream has_force_vect_loops
2222 and has_simduid_loops.
2224 2013-11-27 Kai Tietz <ktietz@redhat.com>
2226 * config/i386/winnt.c (i386_pe_section_type_flags): Use const
2229 2013-11-27 Kugan Vivekanandarajah <kuganv@linaro.org>
2231 * doc/tm.texi.in (TARGET_HAS_NO_HW_DIVIDE): Define.
2232 * doc/tm.texi (TARGET_HAS_NO_HW_DIVIDE): Regenerate.
2234 2013-11-27 Marek Polacek <polacek@redhat.com>
2237 * ubsan.c (instrument_null): Use gimple_store_p/gimple_assign_load_p
2238 instead of walk_gimple_op.
2239 (ubsan_pass): Adjust. Call instrument_null only if SANITIZE_NULL.
2241 2013-11-27 Aldy Hernandez <aldyh@redhat.com>
2242 Jakub Jelinek <jakub@redhat.com>
2244 * cgraph.h (enum cgraph_simd_clone_arg_type): New.
2245 (struct cgraph_simd_clone_arg, struct cgraph_simd_clone): New.
2246 (struct cgraph_node): Add simdclone and simd_clones fields.
2247 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen,
2248 ix86_simd_clone_adjust, ix86_simd_clone_usable): New functions.
2249 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
2250 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Define.
2251 * doc/tm.texi.in (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
2252 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Add.
2253 * doc/tm.texi: Regenerated.
2254 * ggc.h (ggc_alloc_cleared_simd_clone_stat): New function.
2255 * ipa-cp.c (determine_versionability): Fail if "omp declare simd"
2256 attribute is present.
2257 * omp-low.c: Include pretty-print.h, ipa-prop.h and tree-eh.h.
2258 (simd_clone_vector_of_formal_parm_types): New function.
2259 (simd_clone_struct_alloc, simd_clone_struct_copy,
2260 simd_clone_vector_of_formal_parm_types, simd_clone_clauses_extract,
2261 simd_clone_compute_base_data_type, simd_clone_mangle,
2262 simd_clone_create, simd_clone_adjust_return_type,
2263 create_tmp_simd_array, simd_clone_adjust_argument_types,
2264 simd_clone_init_simd_arrays): New functions.
2265 (struct modify_stmt_info): New type.
2266 (ipa_simd_modify_stmt_ops, ipa_simd_modify_function_body,
2267 simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone): New
2269 (pass_data_omp_simd_clone): New variable.
2270 (pass_omp_simd_clone): New class.
2271 (make_pass_omp_simd_clone): New function.
2272 * passes.def (pass_omp_simd_clone): New.
2273 * target.def (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
2274 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): New target hooks.
2275 * target.h (struct cgraph_node, struct cgraph_simd_node): Declare.
2276 * tree-core.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Document.
2277 * tree.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Define.
2278 * tree-pass.h (make_pass_omp_simd_clone): New prototype.
2279 * tree-vect-data-refs.c: Include cgraph.h.
2280 (vect_analyze_data_refs): Inline by hand find_data_references_in_loop
2281 and find_data_references_in_bb, if find_data_references_in_stmt
2282 fails, still allow calls to #pragma omp declare simd functions
2283 in #pragma omp simd loops unless they contain data references among
2284 the call arguments or in lhs.
2285 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
2287 (vect_transform_loop): Allow NULL STMT_VINFO_VECTYPE for calls
2289 * tree-vectorizer.h (enum stmt_vec_info_type): Add
2290 call_simd_clone_vec_info_type.
2291 (struct _stmt_vec_info): Add simd_clone_fndecl field.
2292 (STMT_VINFO_SIMD_CLONE_FNDECL): Define.
2293 * tree-vect-stmts.c: Include tree-ssa-loop.h,
2294 tree-scalar-evolution.h and cgraph.h.
2295 (vectorizable_call): Handle calls without lhs. Assert
2296 !stmt_can_throw_internal instead of failing for it. Don't update
2298 (struct simd_call_arg_info): New.
2299 (vectorizable_simd_clone_call): New function.
2300 (vect_transform_stmt): Call it.
2301 (vect_analyze_stmt): Likewise. Allow NULL STMT_VINFO_VECTYPE for
2303 * ipa-prop.c (ipa_add_new_function): Only call ipa_analyze_node
2304 if cgraph_function_with_gimple_body_p is true.
2306 2013-11-27 Tom de Vries <tom@codesourcery.com>
2307 Marc Glisse <marc.glisse@inria.fr>
2310 * fold-const.c (fold_indirect_ref_1): Don't create out-of-bounds
2312 * gimple-fold.c (gimple_fold_indirect_ref): Same.
2313 * tree-cfg.c (verify_expr): Give error if BIT_FIELD_REF is
2316 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
2319 * expr.c (emit_group_store): Don't write past the end of the structure.
2320 (store_bit_field): Fix formatting.
2322 2013-11-27 Richard Biener <rguenther@suse.de>
2324 PR tree-optimization/59288
2325 * tree-vect-loop.c (get_initial_def_for_induction): Do not
2326 re-analyze the PHI but use STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
2328 2013-11-27 Marek Polacek <polacek@redhat.com>
2330 * ubsan.c (ubsan_type_descriptor): If varpool_get_node returns NULL
2331 for a decl, recreate that decl. Save into the hash table VAR_DECLs
2332 rather than ADDR_EXPRs.
2334 2013-11-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
2336 * config/ia64/hpux.h (TARGET_LIBC_HAS_FUNCTION): Fix typo.
2338 2013-11-26 David Malcolm <dmalcolm@redhat.com>
2340 * gengtype.c (struct seen_tag): New.
2341 (already_seen_tag): New.
2342 (mark_tag_as_seen): New.
2343 (walk_subclasses): Support having multiple subclasses using the
2344 same tag by tracking which tags have already been seen, and using
2345 this to avoid adding duplicate cases to the "switch" statement.
2346 The call to already_seen_tag introduces an O(N^2) when running
2347 gengtype on N, the number of tags, due to the repeated linear
2348 search, but currently max(N) is relatively small (the number of
2349 GSS codes, which is 26).
2350 (walk_type): Pass in a seen_tag for use by the walk_subclasses
2353 * gimple.def (GIMPLE_OMP_ATOMIC_STORE, GIMPLE_OMP_RETURN): Rename
2354 underlying GSS values for these codes (from GSS_OMP_ATOMIC_STORE to
2355 GSS_OMP_ATOMIC_STORE_LAYOUT) to make clear that although
2356 GIMPLE_OMP_RETURN happens to share the data layout of
2357 GIMPLE_OMP_ATOMIC_STORE, they are not otherwise related.
2358 (GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TARGET): Likewise, rename
2359 underlying GSS value from GSS_OMP_PARALLEL to
2360 GSS_OMP_PARALLEL_LAYOUT to make clear that these gimple codes are
2361 not directly related; they merely share in-memory layout.
2362 (GIMPLE_OMP_SINGLE, GIMPLE_OMP_TEAMS): Likewise, rename GSS values
2363 for these two codes from GSS_OMP_SINGLE to GSS_OMP_SINGLE_LAYOUT.
2365 * gsstruct.def (GSS_OMP_PARALLEL, gimple_statement_omp_parallel):
2367 (GSS_OMP_PARALLEL_LAYOUT, gimple_statement_omp_parallel_layout):
2369 (GSS_OMP_SINGLE, gimple_statement_omp_single): Rename to...
2370 (GSS_OMP_SINGLE_LAYOUT, gimple_statement_omp_single_layout): ...these.
2371 (GSS_OMP_ATOMIC_STORE, gimple_statement_omp_atomic_store): Rename to...
2372 (GSS_OMP_ATOMIC_STORE_LAYOUT, gimple_statement_omp_atomic_store):
2375 * gimple.h (gimple_statement_resx): New subclass of
2376 gimple_statement_eh_ctrl, with the invariant that
2377 stmt->code == GIMPLE_RESX.
2378 (gimple_statement_eh_dispatch): New subclass of
2379 gimple_statement_eh_ctrl, with the invariant that
2380 stmt->code == GIMPLE_EH_DISPATH.
2382 (gimple_statement_omp_parallel): The existing class expressed
2383 a layout (GSS_OMP_PARALLEL), but the codes with that layout
2384 are not all related, so it makes more sense for this class to
2385 express a *code* (GIMPLE_OMP_PARALLEL). GSS_OMP_PARALLEL has
2386 been renamed to GSS_OMP_PARALLEL_LAYOUT to express this, so
2387 rename the existing gimple_statement_omp_parallel class to...
2388 (gimple_statement_omp_parallel_layout): ...this, expressing
2389 a statement of structure layout GSS_OMP_PARALLEL_LAYOUT.
2390 (gimple_statement_omp_taskreg): New subclass of
2391 gimple_statement_omp_parallel_layout, expressing the invariant
2392 that the code is one of GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK,
2393 as used by the various gimple_omp_taskreg_ accessors.
2394 (gimple_statement_omp_parallel): Reintroduce this class, this time
2395 as a subclass of gimple_statement_omp_taskreg to express the
2396 invariant stmt->code == GIMPLE_OMP_PARALLEL.
2397 (gimple_statement_omp_target) New class, subclassing
2398 gimple_statement_omp_parallel_layout, to express the invariant
2399 stmt->code == GIMPLE_OMP_TARGET.
2400 (gimple_statement_omp_task): Update to inherit from
2401 gimple_statement_omp_taskreg rather than
2402 gimple_statement_omp_parallel.
2404 (gimple_statement_omp_single): Rename to...
2405 (gimple_statement_omp_single_layout): ...this, expressing the
2406 invariant that the layout is GSS_OMP_SINGLE_LAYOUT.
2407 (gimple_statement_omp_single): ...and reintroduce this name as
2408 a subclass of gimple_statement_omp_single_layout, expressing
2409 the invariant that code == GIMPLE_OMP_SINGLE.
2410 (gimple_statement_omp_teams): New class, subclassing
2411 gimple_statement_omp_single_layout, for the code GIMPLE_OMP_TEAMS.
2413 (gimple_statement_omp_atomic_store): Rename to...
2414 (gimple_statement_omp_atomic_store_layout): ...this, expressing
2415 the invariant that the layout is GSS_OMP_ATOMIC_STORE_LAYOUT.
2416 (gimple_statement_omp_atomic_store): ...and reintroduce this
2417 name as a subclass of gimple_statement_omp_atomic_store_layout
2418 with code == GIMPLE_OMP_ATOMIC_STORE.
2419 (gimple_statement_omp_return): New class, subclassing
2420 gimple_statement_omp_atomic_store_layout for the code
2423 (is_a_helper <gimple_statement_eh_ctrl>::test): Delete.
2424 (is_a_helper <gimple_statement_resx>::test): New.
2425 (is_a_helper <gimple_statement_eh_dispatch>::test): New.
2426 (is_a_helper <gimple_statement_omp_atomic_store>::test): Only
2427 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
2428 (is_a_helper <gimple_statement_omp_return>::test): New.
2429 (is_a_helper <gimple_statement_omp_taskreg>::test): New.
2430 (is_a_helper <gimple_statement_omp_parallel>::test): Only check
2431 for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
2433 (is_a_helper <gimple_statement_omp_target>::test): New.
2434 (is_a_helper <gimple_statement_omp_single>::test): Only check
2435 for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
2436 (is_a_helper <gimple_statement_omp_teams>::test): New.
2438 (is_a_helper <const gimple_statement_eh_ctrl>::test): Delete.
2439 (is_a_helper <const gimple_statement_resx>::test): New.
2440 (is_a_helper <const gimple_statement_eh_dispatch>::test): New.
2441 (is_a_helper <const gimple_statement_omp_atomic_store>::test): Only
2442 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
2443 (is_a_helper <const gimple_statement_omp_return>::test): New.
2444 (is_a_helper <const gimple_statement_omp_taskreg>::test): New.
2445 (is_a_helper <const gimple_statement_omp_parallel>::test): Only
2446 check for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
2448 (is_a_helper <const gimple_statement_omp_target>::test): New.
2449 (is_a_helper <const gimple_statement_omp_single>::test): Only
2450 check for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
2451 (is_a_helper <const gimple_statement_omp_teams>::test): New.
2453 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
2454 gimple_omp_return_lhs_ptr): Replace bogus downcasts to
2455 gimple_statement_omp_atomic_store with downcasts to
2456 gimple_statement_omp_return, thus requiring that the code be
2458 (gimple_resx_region, gimple_resx_set_region): Replace bogus
2459 downcasts to gimple_statement_eh_ctrl with downcasts to
2460 gimple_statement_resx, thus requiring that the code be GIMPLE_RESX.
2461 (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region):
2462 Replace bogus downcasts to const gimple_statement_eh_ctrl with
2463 downcasts to gimple_statement_eh_dispatch, thus requiring that
2464 the code be GIMPLE_EH_DISPATCH.
2465 (gimple_omp_taskreg_clauses, gimple_omp_taskreg_clauses_ptr)
2466 gimple_omp_taskreg_set_clauses, gimple_omp_taskreg_child_fn,
2467 gimple_omp_taskreg_child_fn_ptr, gimple_omp_taskreg_set_child_fn,
2468 gimple_omp_taskreg_data_arg, gimple_omp_taskreg_data_arg_ptr,
2469 gimple_omp_taskreg_set_data_arg): Replace bogus downcasts to
2470 gimple_statement_omp_parallel with downcasts to
2471 gimple_statement_omp_taskreg, thus requiring that the code be
2472 either GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK.
2473 (gimple_omp_target_clauses, gimple_omp_target_clauses_ptr
2474 gimple_omp_target_set_clauses, gimple_omp_target_child_fn
2475 gimple_omp_target_child_fn_ptr, gimple_omp_target_set_child_fn
2476 gimple_omp_target_data_arg, gimple_omp_target_data_arg_ptr
2477 gimple_omp_target_set_data_arg): Replace bogus downcasts to
2478 gimple_statement_omp_parallel with downcasts to
2479 gimple_statement_omp_target, thus requiring that the code be
2481 (gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr
2482 gimple_omp_teams_set_clauses): Replace bogus downcasts to
2483 gimple_statement_omp_single with downcasts to
2484 gimple_statement_omp_teams, thus requiring that the code be
2487 * gimple.c (gimple_build_resx): Fix bogus as_a<> to use
2488 gimple_statement_resx.
2489 (gimple_build_eh_dispatch): Fix bogus as_a<> to use
2490 gimple_statement_eh_dispatch.
2492 2013-11-26 Jakub Jelinek <jakub@redhat.com>
2494 PR tree-optimization/59014
2495 * tree-vrp.c (register_edge_assert_for_1): Don't look
2496 through conversions from non-integral types or through
2497 narrowing conversions.
2500 * config/i386/i386.c (device_alg): Fix up formatting.
2501 (ix86_expand_set_or_movmem): Handle max_size < epilogue_size_needed
2502 similarly to count && count < epilogue_size_needed. Fix up
2504 * builtins.c (determine_block_size): Fix comment typo.
2507 * ubsan.c (ubsan_source_location): Don't add any location
2508 to ADDR_EXPR in the ctor. Revert 2013-11-22 change.
2509 (ubsan_create_data): Strip block info from LOC.
2512 * tree-vect-generic.c (optimize_vector_constructor): Don't optimize
2513 if there isn't optab handler for the corresponding vector PLUS_EXPR.
2515 PR rtl-optimization/59166
2516 * ira.c (find_moveable_pseudos): Use DF_REF_REAL_LOC instead of
2517 DF_REF_LOC in validate_change call.
2518 (split_live_ranges_for_shrink_wrap): Likewise.
2521 * omp-low.c (lower_rec_input_clause): For reduction with placeholder
2522 of references to constant size types in simd loops, defer emitting
2523 initializer for the new_var, emit it later on only if not using
2527 * omp-low.c (expand_omp_for_static_chunk): Don't set loop->latch
2528 for the inner loop if collapse_bb is non-NULL.
2529 (expand_omp_simd): Use cont_bb rather than e->dest as latch.
2531 2013-11-26 Yufeng Zhang <yufeng.zhang@arm.com>
2533 * config/arm/arm.c (arm_legitimize_address): Check xop1 is not
2534 a constant immediate before force_reg.
2536 2013-11-26 Richard Biener <rguenther@suse.de>
2538 PR tree-optimization/59245
2539 * tree-vrp.c (set_value_range): Assert that we don't have
2540 overflowed constants (but our infinities).
2541 (set_value_range_to_value): Drop all overflow flags.
2542 (vrp_visit_phi_node): Likewise.
2543 (vrp_visit_assignment_or_call): Use set_value_range_to_value
2544 to set a constant range.
2546 2013-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2549 * config/arm/arm.md (*zextendsidi_negsi): New pattern.
2550 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost correctly
2551 for zero_extend case.
2553 2013-11-26 H.J. Lu <hongjiu.lu@intel.com>
2556 * configure.ac (install_gold_as_default): New. Set to yes for
2557 --disable-ld or --enable-gold=default.
2558 (gcc_cv_ld_gold_srcdir): New.
2559 (gcc_cv_ld): Also check in-tree gold if install_gold_as_default is yes.
2560 (ORIGINAL_LD_BFD_FOR_TARGET): New AC_SUBST.
2561 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
2562 * configure: Regenerated.
2564 * exec-tool.in (ORIGINAL_LD_BFD_FOR_TARGET): New variable.
2565 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
2566 (original) [collect-ld && -fuse-ld=bfd]: Set to
2567 $ORIGINAL_LD_BFD_FOR_TARGET.
2568 (original) [collect-ld && -fuse-ld=gold]: Set to
2569 $ORIGINAL_LD_GOLD_FOR_TARGET.
2570 (dir) [collect-ld && ../gold/ld-new]: Set to gold.
2571 (fast_install) [collect-ld && ../gold/ld-new]: Set to yes.
2573 2013-11-26 Terry Guo <terry.guo@arm.com>
2575 * config/arm/arm.c (require_pic_register): Handle high pic base
2576 register for thumb-1.
2577 (arm_load_pic_register): Also initialize high pic base register.
2578 * doc/invoke.texi: Update documentation for option -mpic-register.
2580 2013-11-26 Oleg Endo <olegendo@gcc.gnu.org>
2584 * config/sh/sh.c (max_mov_insn_displacement, disp_addr_displacement):
2585 Prefix function names with 'sh_'. Make them non-static.
2586 * config/sh/sh-protos.h (sh_disp_addr_displacement,
2587 sh_max_mov_insn_displacement): Add declarations.
2588 * config/sh/constraints.md (Q): Reject QImode.
2589 (Sdd): Use match_code "mem".
2590 (Snd): Fix erroneous matching of non-memory operands.
2591 * config/sh/predicates.md (short_displacement_mem_operand): New
2593 (general_movsrc_operand): Disallow PC relative QImode loads.
2594 * config/sh/sh.md (*mov<mode>_reg_reg): Remove it.
2595 (*movqi, *movhi): Merge both insns into...
2596 (*mov<mode>): ... this new insn. Replace generic 'm' constraints with
2597 'Snd' and 'Sdd' constraints. Calculate insn length dynamically based
2598 on the operand types.
2600 2013-11-26 Joern Rennecke <joern.rennecke@embecosm.com>
2602 * config/epiphany/epiphany.c (epiphany_expand_prologue):
2603 Remove unused variable save_config.
2604 (epiphany_compute_frame_size): Avoid signed/unsigned comparison in
2607 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
2609 * config/aarch64/arm_neon.h (vtbx1_<psu>8): Emulate behaviour
2610 using other intrinsics.
2611 (vtbx3_<psu>8): Likewise.
2613 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
2615 * config/aarch64/aarch64-builtins.c
2616 (aarch64_types_bsl_p_qualifiers): New.
2617 (aarch64_types_bsl_s_qualifiers): Likewise.
2618 (aarch64_types_bsl_u_qualifiers): Likewise.
2619 (TYPES_BSL_P): Likewise.
2620 (TYPES_BSL_S): Likewise.
2621 (TYPES_BSL_U): Likewise.
2622 (BUILTIN_VALLDIF): Likewise.
2623 (BUILTIN_VDQQH): Likewise.
2624 * config/aarch64/aarch64-simd-builtins.def (simd_bsl): New.
2625 * config/aarch64/aarch64-simd.md
2626 (aarch64_simd_bsl<mode>_internal): Handle more modes.
2627 (aarch64_simd_bsl<mode>): Likewise.
2628 * config/aarch64/arm_neon.h
2629 (vbsl<q>_<fpsu><8,16,32,64): Implement using builtins.
2630 * config/aarch64/iterators.md (VALLDIF): New.
2631 (Vbtype): Handle more modes.
2633 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
2635 * config/aarch64/aarch64-builtins.c
2636 (aarch64_type_qualifiers): Add qualifier_poly.
2637 (aarch64_build_scalar_type): Also build Poly types.
2638 (aarch64_build_vector_type): Likewise.
2639 (aarch64_build_type): Likewise.
2640 (aarch64_build_signed_type): New.
2641 (aarch64_build_unsigned_type): Likewise.
2642 (aarch64_build_poly_type): Likewise.
2643 (aarch64_init_simd_builtins): Also handle Poly types.
2645 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
2647 * config/aarch64/aarch64-builtins.c
2648 (VAR1): Use new naming scheme for aarch64_builtins.
2649 (aarch64_builtin_vectorized_function): Use new aarch64_builtins names.
2651 2013-11-26 Richard Biener <rguenther@suse.de>
2653 PR tree-optimization/59287
2654 * tree-ssa-structalias.c (get_constraint_for_component_ref):
2655 Remove no longer necessary special-casing of union accesses.
2657 2013-11-26 Richard Biener <rguenther@suse.de>
2659 * pretty-print.c (output_buffer::~output_buffer): Really
2662 2013-11-25 Jeff Law <law@redhat.com>
2664 * tree-ssa-threadupdate.c (thread_through_all_blocks): Selectively
2665 invalidate loop information.
2667 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
2669 * config/sh/sh.md (doloop_end_split): Add missing SI mode.
2671 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
2675 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value): Update
2677 (sh_optimize_sett_clrt::find_last_ccreg_values): Check stack of
2678 previously visited basic blocks before recursing instead of only one
2681 2013-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2683 * config/aarch64/aarch64.c (cortexa53_tuning): New struct.
2684 * config/aarch64/aarch64-cores.def (cortex-a53):
2685 Use cortexa53 tuning struct.
2687 2013-11-25 Andrew Macleod <amacleod@redhat.com>
2690 * fold-const.c: Include hash-table.h.
2692 2013-11-25 Marek Polacek <polacek@redhat.com>
2695 * ubsan.c (ubsan_create_data): Increase the size of the fields array.
2697 2013-11-25 Richard Biener <rguenther@suse.de>
2699 * tree-dfa.c: Remove unused convert.h include.
2701 2013-11-25 Terry Guo <terry.guo@arm.com>
2703 * doc/invoke.texi (-mslow-flash-data): Document new option.
2704 * config/arm/arm.opt (mslow-flash-data): New option.
2705 * config/arm/arm-protos.h (arm_max_const_double_inline_cost):
2707 * config/arm/arm.h (TARGET_USE_MOVT): Always true when literal pools
2709 (arm_disable_literal_pool): Declare it.
2710 * config/arm/arm.c (arm_disable_literal_pool): New variable.
2711 (arm_option_override): Handle new option.
2712 (thumb2_legitimate_address_p): Don't allow symbol references when
2713 literal pools are disabled.
2714 (arm_max_const_double_inline_cost): New function.
2715 * config/arm/arm.md (types.md): Include it before ...
2716 (use_literal_pool): New attribute.
2717 (enabled): Use new attribute.
2718 (split pattern): Replace symbol+offset with MOVW/MOVT.
2720 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
2723 Revert previous commit.
2725 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
2727 * jump.c (reset_insn_reg_label_operand_notes): New function,
2729 (init_label_info): ... here. Reset LABEL_NUSES in cfglayout mode.
2730 * cfgcleanup.c (delete_dead_jump_tables_between): New function,
2732 (delete_dead_jumptables): ... here. Handle cfglayout mode.
2733 (cleanup_cfg): Delete dead jump tables in cfglayout mode if an
2734 expensive CFG cleanup is called for.
2735 * cfgrtl.c (fixup_reorder_chain): Remove BARRIERs from fallthru paths.
2736 (cfg_layout_finalize): Delete dead jump tables before re-building
2738 * ira.c (ira): Rebuild jump labels *after* deleting unreachable
2739 basic blocks, not before.
2740 * loop-init.c (rtl_loop_done): Call for an expensive CFG cleanup.
2742 * modulo-sched.c (sms_schedule): Do not look for BARRIERs in the
2743 insns chain of a scheduling extended basic block, they cannot appear
2744 there in cfglayout mode.
2746 2013-11-24 Tobias Burnus <burnus@net-b.de>
2748 * doc/invoke.texi (-fsanitize=leak): Add link to the wiki page.
2750 2013-11-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2752 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Correct
2755 2013-11-24 H.J. Lu <hongjiu.lu@intel.com>
2757 * graphite-sese-to-poly.c: Don't include extra "expr.h".
2759 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
2761 * cilk-common.c (expand_builtin_cilk_detach): Dereference worker.
2763 2013-11-23 David Edelson <dje.gcc@gmail.com>
2764 Andrew Dixie <andrewd@gentrack.com>
2767 * config/rs6000/aix.h (COLLECT_SHARED_INIT_FUNC): Define.
2768 (COLLECT_SHARED_FINI_FUNC): Define.
2770 * collect2.c (aix_shared_initname): Declare.
2771 (aix_shared_fininame): Declare.
2772 (symkind): Add SYM_AIXI and SYM_AIXD.
2773 (scanfilter_masks): Add SCAN_AIXI and SCAN_AIXD.
2774 (struct names special): Add GLOBAL__AIXI_ and GLOBAL__AIXD_.
2775 (aixlazy_flag): Parse.
2776 (extract_init_priority): SYM_AIXI and SYM_AIXD have highest priority.
2777 (scan_prog_file, COFF): Handle SYM_AIXI and SYM_AIXD.
2779 2013-11-23 David Edelsohn <dje.gcc@gmail.com>
2781 * config/rs6000/rs6000.c (IN_NAMED_SECTION): New macro.
2782 (rs6000_xcoff_select_section): Place decls with stricter alignment
2783 into named sections.
2784 (rs6000_xcoff_unique_section): Allow unique sections for
2785 uninitialized data with strict alignment.
2787 2013-11-23 Jakub Jelinek <jakub@redhat.com>
2789 PR tree-optimization/59154
2790 * tree-ssa-reassoc.c (maybe_optimize_range_tests): When changing
2791 rhs1 of a cast and new_op is invariant, fold_convert it.
2792 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Only call
2793 simplify_conversion_from_bitmask if rhs1 is a SSA_NAME.
2795 2013-11-23 Uros Bizjak <ubizjak@gmail.com>
2798 * config/i386/i386.c (bdesc_multi_arg) <IX86_BUILTIN_VFRCZSS>:
2799 Declare as MULTI_ARG_1_SF instruction.
2800 <IX86_BUILTIN_VFRCZSD>: Decleare as MULTI_ARG_1_DF instruction.
2801 * config/i386/sse.md (*xop_vmfrcz<mode>2): Rename
2802 from *xop_vmfrcz_<mode>.
2803 * config/i386/xopintrin.h (_mm_frcz_ss): Use __builtin_ia32_movss
2804 to merge scalar result with __A.
2805 (_mm_frcz_sd): Use __builtin_ia32_movsd to merge scalar
2808 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
2810 * gimplify.h (recalculate_side_effects): Delete.
2811 * gimplify.c (recalculate_side_effects): Make static and add comment.
2813 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
2815 * config/sh/sh.md: Use nonimmediate_operand rather than general_operand
2816 for the destination of a define_peephole2. Likewise register_operand
2817 rather than arith_reg_operand. Remove constraints from
2820 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
2822 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation):
2824 (mn10300_store_multiple_operation_p): Declare.
2825 * config/mn10300/mn10300.c (mn10300_store_multiple_operation):
2827 (mn10300_store_multiple_operation_p): ...this and remove mode
2829 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
2832 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
2834 * config/bfin/bfin-protos.h (push_multiple_operation): Delete.
2835 (pop_multiple_operation): Delete.
2836 (analyze_push_multiple_operation): Declare.
2837 (analyze_pop_multiple_operation): Declare.
2838 * config/bfin/bfin.c (push_multiple_operation): Rename to...
2839 (analyze_push_multiple_operation): ...this and remove mode argument.
2840 (pop_multiple_operation): Rename to...
2841 (analyze_pop_multiple_operation): ...this and remove mode argument.
2842 * config/bfin/predicates.md (push_multiple_operation): Define.
2843 (pop_multiple_operation): Likewise.
2845 2013-11-23 Alan Modra <amodra@gmail.com>
2847 * config/rs6000/vsx.md (fusion peepholes): Disable when !TARGET_VSX.
2849 2013-11-22 Jakub Jelinek <jakub@redhat.com>
2852 * common.opt (static-liblsan): Add.
2853 * config/gnu-user.h (STATIC_LIBLSAN_LIBS, STATIC_LIBUBSAN_LIBS):
2855 * flag-types.h (enum sanitize_code): Add SANITIZE_LEAK. Renumber
2856 SANITIZE_SHIFT, SANITIZE_DIVIDE, SANITIZE_UNREACHABLE, SANITIZE_VLA,
2858 * opts.c (common_handle_option): Handle -fsanitize=leak.
2859 * gcc.c (ADD_STATIC_LIBLSAN_LIBS, LIBLSAN_SPEC): Define.
2860 (LIBUBSAN_SPEC): Don't test LIBUBSAN_EARLY_SPEC.
2861 (LIBUBSAN_EARLY_SPEC): Remove.
2862 (SANITIZER_EARLY_SPEC): Don't do anything for libubsan.
2863 (SANITIZER_SPEC): Add -fsanitize=leak handling.
2864 (sanitize_spec_function): Handle %sanitize(leak).
2865 * doc/invoke.texi (-static-liblsan, -fsanitize=leak): Document.
2867 2013-11-22 Aldy Hernandez <aldyh@redhat.com>
2868 Jakub Jelinek <jakub@redhat.com>
2870 * ipa.c (symtab_remove_unreachable_nodes): Fix up comment typos.
2871 * ipa-prop.c (get_vector_of_formal_parm_types): Renamed to ...
2872 (ipa_get_vector_of_formal_parm_types): ... this. No longer static.
2873 (ipa_modify_formal_parameters): Adjust caller. Remove
2874 synth_parm_prefix argument. Use operator enum instead of bit fields.
2875 Add assert for properly handling vector of references. Handle
2876 creating brand new parameters.
2877 (ipa_modify_call_arguments): Use operator enum instead of bit
2879 (ipa_combine_adjustments): Same. Assert that IPA_PARM_OP_NEW is not
2881 (ipa_modify_expr, get_ssa_base_param, ipa_get_adjustment_candidate):
2883 (ipa_dump_param_adjustments): Rename reduction to new_decl.
2884 Use operator enum instead of bit fields.
2885 * ipa-prop.h (enum ipa_parm_op): New.
2886 (struct ipa_parm_adjustment): New field op. Rename reduction
2887 to new_decl, new_arg_prefix to arg_prefix and remove remove_param
2889 (ipa_modify_formal_parameters): Remove last argument.
2890 (ipa_get_vector_of_formal_parm_types, ipa_modify_expr,
2891 ipa_get_adjustment_candidate): New prototypes.
2892 * tree-sra.c (turn_representatives_into_adjustments): Use operator
2893 enum. Set arg_prefix.
2894 (get_adjustment_for_base): Use operator enum.
2895 (sra_ipa_modify_expr): Rename to ipa_modify_expr and move to
2897 (sra_ipa_modify_assign): Rename sra_ipa_modify_expr to ipa_modify_expr.
2898 (ipa_sra_modify_function_body): Same. No longer static.
2899 (sra_ipa_reset_debug_stmts): Use operator enum.
2900 (modify_function): Do not pass prefix argument.
2902 2013-11-22 Jakub Jelinek <jakub@redhat.com>
2904 * ubsan.c (ubsan_source_location): Don't crash on unknown locations.
2905 (ubsan_pass): Ignore clobber stmts.
2907 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_MISSING_RETURN): New built-in.
2908 * opts.c (common_handle_option): Add -fsanitize=return.
2909 * flag-types.h (enum sanitize_code): Add SANITIZE_RETURN and
2910 or it into SANITIZE_UNDEFINED.
2912 * sanitizer.def (BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT,
2913 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT): New.
2914 * asan.c (instrument_derefs): Handle also VAR_DECL loads/stores.
2915 Don't instrument accesses to VAR_DECLs which are known to fit
2916 into their bounds and the vars are known to have shadow bytes
2917 indicating allowed access.
2918 (asan_dynamic_init_call): New function.
2919 (asan_add_global): If vnode->dynamically_initialized,
2920 set __has_dynamic_init to 1 instead of 0.
2921 (initialize_sanitizer_builtins): Add BT_FN_VOID_CONST_PTR var.
2922 * asan.h (asan_dynamic_init_call): New prototype.
2923 * cgraph.h (varpool_node): Add dynamically_initialized bitfield.
2925 2013-11-22 Martin Jambor <mjambor@suse.cz>
2927 PR rtl-optimization/10474
2928 * ira.c (interesting_dest_for_shprep_1): New function.
2929 (interesting_dest_for_shprep): Use interesting_dest_for_shprep_1,
2930 also check parallels.
2932 2013-11-22 Jeff Law <law@redhat.com>
2934 * tree-ssa-threadedge.c (record_temporary_equivalence): Handle
2935 NULL for RHS, which we used to invalidate equivalences.
2936 (record_temporary_equivalences_from_phis): New bitmap arguments
2937 and a boolean indicating if we have passed a backedge. If we
2938 have passed a backedge, then set the appropriate bit in the
2939 bitmaps for the SRC & DEST of PHIs creating equivalences.
2940 (invalidate_equivalences, dummy_simplify): New functions.
2941 (cond_arg_set_in_b): Remove.
2942 (record_temporary_equivalences_from_stmts_at_dest): New bitmap
2943 arguments and a boolean indicating if we have passed a backedge.
2944 If we have passed a backedge, then perform invalidations as needed.
2945 (thread_around_empty_blocks): If we have seen a backedge, then
2946 use the dummy simplify routine.
2947 (thread_through_normal_block): Likewise. Pass bitmaps and
2948 backedge status to children. Do not pessimize so much when
2949 traversing backedges in the CFG.
2950 (thread_across_edge): Manage the SRC_MAP/DST_MAP bitmaps.
2951 If we have seen a backedge, then use the dummy simplify routine.
2952 Do not pessimize so much when traversing backedges.
2954 2013-11-22 Hans-Peter Nilsson <hp@axis.com>
2956 * config/cris/cris.c (cris_atomic_align_for_mode): New function.
2957 (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
2959 2013-11-22 Yuri Rumyantsev <ysrumyan@gmail.com>
2961 * config/i386/i386.c (processor_alias_table): Enable PTA_AES,
2962 PTA_PCLMUL and PTA_RDRND for Silvermont.
2963 * config/i386/driver-i386.c (host_detect_local_cpu): Set up cpu
2966 * doc/invoke.texi: Mention AES, PCLMUL and RDRND for Silvermont.
2968 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
2970 * hooks.h (hook_uint_mode_0): Add Prototype.
2971 * hooks.c (hook_uint_mode_0): New default function.
2972 * target.def (atomic_align_for_mode): New target hook.
2973 * tree.c (build_atomic_base): Add alignment override parameter.
2974 (build_common_tree_nodes): Use atomic alignment override.
2975 * doc/tm.texi.in (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
2976 * doc/tm.texi (TARGET_ATOMIC_ALIGN_FOR_MODE): Add description.
2978 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
2980 * gimple.h: Remove all includes.
2981 (recalculate_side_effects): Move prototype to gimplify.h.
2982 * Makefile.in (PLUGIN_HEADERS): Add flattened gimple.h includes.
2983 * gengtype.c (open_base_files): Add gimple.h include list.
2984 * gimplify.h (recalculate_side_effects): Relocate prototype here.
2985 * gimple.c: Adjust include list.
2986 (recalculate_side_effects): Move to gimplify.c.
2987 * gimplify.c: Adjust include list.
2988 (recalculate_side_effects): Relocate from gimple.c.
2989 * alias.c: Add required include files removed from gimple.h.
2991 * builtins.c: Likewise.
2992 * calls.c: Likewise.
2993 * cfgexpand.c: Likewise.
2994 * cfgloop.c: Likewise.
2995 * cfgloopmanip.c: Likewise.
2996 * cgraphbuild.c: Likewise.
2997 * cgraph.c: Likewise.
2998 * cgraphclones.c: Likewise.
2999 * cgraphunit.c: Likewise.
3000 * cilk-common.c: Likewise.
3001 * data-streamer.c: Likewise.
3002 * data-streamer-in.c: Likewise.
3003 * data-streamer-out.c: Likewise.
3005 * dwarf2out.c: Likewise.
3006 * emit-rtl.c: Likewise.
3007 * except.c: Likewise.
3009 * fold-const.c: Likewise.
3010 * function.c: Likewise.
3011 * gimple-builder.c: Likewise.
3012 * gimple-expr.c: Likewise.
3013 * gimple-fold.c: Likewise.
3014 * gimple-iterator.c: Likewise.
3015 * gimple-low.c: Likewise.
3016 * gimple-pretty-print.c: Likewise.
3017 * gimple-ssa-isolate-paths.c: Likewise.
3018 * gimple-ssa-strength-reduction.c: Likewise.
3019 * gimple-streamer-in.c: Likewise.
3020 * gimple-streamer-out.c: Likewise.
3021 * gimple-walk.c: Likewise.
3022 * gimplify-me.c: Likewise.
3023 * graphite-blocking.c: Likewise.
3024 * graphite.c: Likewise.
3025 * graphite-clast-to-gimple.c: Likewise.
3026 * graphite-dependences.c: Likewise.
3027 * graphite-interchange.c: Likewise.
3028 * graphite-optimize-isl.c: Likewise.
3029 * graphite-poly.c: Likewise.
3030 * graphite-scop-detection.c: Likewise.
3031 * graphite-sese-to-poly.c: Likewise.
3032 * internal-fn.c: Likewise.
3034 * ipa-cp.c: Likewise.
3035 * ipa-devirt.c: Likewise.
3036 * ipa-inline-analysis.c: Likewise.
3037 * ipa-inline.c: Likewise.
3038 * ipa-profile.c: Likewise.
3039 * ipa-prop.c: Likewise.
3040 * ipa-pure-const.c: Likewise.
3041 * ipa-reference.c: Likewise.
3042 * ipa-split.c: Likewise.
3043 * ipa-utils.c: Likewise.
3044 * langhooks.c: Likewise.
3045 * lto-cgraph.c: Likewise.
3046 * lto-compress.c: Likewise.
3047 * lto-opts.c: Likewise.
3048 * lto-section-in.c: Likewise.
3049 * lto-section-out.c: Likewise.
3050 * lto-streamer.c: Likewise.
3051 * lto-streamer-in.c: Likewise.
3052 * lto-streamer-out.c: Likewise.
3053 * omp-low.c: Likewise.
3054 * opts-global.c: Likewise.
3055 * passes.c: Likewise.
3056 * predict.c: Likewise.
3057 * profile.c: Likewise.
3060 * stor-layout.c: Likewise.
3061 * symtab.c: Likewise.
3062 * targhooks.c: Likewise.
3063 * toplev.c: Likewise.
3064 * tracer.c: Likewise.
3065 * trans-mem.c: Likewise.
3066 * tree-affine.c: Likewise.
3068 * tree-call-cdce.c: Likewise.
3069 * tree-cfg.c: Likewise.
3070 * tree-cfgcleanup.c: Likewise.
3071 * tree-chrec.c: Likewise.
3072 * tree-complex.c: Likewise.
3073 * tree-data-ref.c: Likewise.
3074 * tree-dfa.c: Likewise.
3075 * tree-eh.c: Likewise.
3076 * tree-emutls.c: Likewise.
3077 * tree-if-conv.c: Likewise.
3078 * tree-inline.c: Likewise.
3079 * tree-into-ssa.c: Likewise.
3080 * tree-loop-distribution.c: Likewise.
3081 * tree-nested.c: Likewise.
3082 * tree-nrv.c: Likewise.
3083 * tree-object-size.c: Likewise.
3084 * tree-outof-ssa.c: Likewise.
3085 * tree-parloops.c: Likewise.
3086 * tree-phinodes.c: Likewise.
3087 * tree-predcom.c: Likewise.
3088 * tree-pretty-print.c: Likewise.
3089 * tree-profile.c: Likewise.
3090 * tree-scalar-evolution.c: Likewise.
3091 * tree-sra.c: Likewise.
3092 * tree-ssa-address.c: Likewise.
3093 * tree-ssa-alias.c: Likewise.
3094 * tree-ssa.c: Likewise.
3095 * tree-ssa-ccp.c: Likewise.
3096 * tree-ssa-coalesce.c: Likewise.
3097 * tree-ssa-copy.c: Likewise.
3098 * tree-ssa-copyrename.c: Likewise.
3099 * tree-ssa-dce.c: Likewise.
3100 * tree-ssa-dom.c: Likewise.
3101 * tree-ssa-dse.c: Likewise.
3102 * tree-ssa-forwprop.c: Likewise.
3103 * tree-ssa-ifcombine.c: Likewise.
3104 * tree-ssa-live.c: Likewise.
3105 * tree-ssa-loop.c: Likewise.
3106 * tree-ssa-loop-ch.c: Likewise.
3107 * tree-ssa-loop-im.c: Likewise.
3108 * tree-ssa-loop-ivcanon.c: Likewise.
3109 * tree-ssa-loop-ivopts.c: Likewise.
3110 * tree-ssa-loop-manip.c: Likewise.
3111 * tree-ssa-loop-niter.c: Likewise.
3112 * tree-ssa-loop-prefetch.c: Likewise.
3113 * tree-ssa-loop-unswitch.c: Likewise.
3114 * tree-ssa-math-opts.c: Likewise.
3115 * tree-ssanames.c: Likewise.
3116 * tree-ssa-operands.c: Likewise.
3117 * tree-ssa-phiopt.c: Likewise.
3118 * tree-ssa-phiprop.c: Likewise.
3119 * tree-ssa-pre.c: Likewise.
3120 * tree-ssa-propagate.c: Likewise.
3121 * tree-ssa-reassoc.c: Likewise.
3122 * tree-ssa-sccvn.c: Likewise.
3123 * tree-ssa-sink.c: Likewise.
3124 * tree-ssa-strlen.c: Likewise.
3125 * tree-ssa-structalias.c: Likewise.
3126 * tree-ssa-tail-merge.c: Likewise.
3127 * tree-ssa-ter.c: Likewise.
3128 * tree-ssa-threadedge.c: Likewise.
3129 * tree-ssa-threadupdate.c: Likewise.
3130 * tree-ssa-uncprop.c: Likewise.
3131 * tree-ssa-uninit.c: Likewise.
3132 * tree-stdarg.c: Likewise.
3133 * tree-streamer.c: Likewise.
3134 * tree-streamer-in.c: Likewise.
3135 * tree-streamer-out.c: Likewise.
3136 * tree-switch-conversion.c: Likewise.
3137 * tree-tailcall.c: Likewise.
3138 * tree-vect-data-refs.c: Likewise.
3139 * tree-vect-generic.c: Likewise.
3140 * tree-vect-loop.c: Likewise.
3141 * tree-vect-loop-manip.c: Likewise.
3142 * tree-vectorizer.c: Likewise.
3143 * tree-vect-patterns.c: Likewise.
3144 * tree-vect-slp.c: Likewise.
3145 * tree-vect-stmts.c: Likewise.
3146 * tree-vrp.c: Likewise.
3148 * ubsan.c: Likewise.
3149 * value-prof.c: Likewise.
3150 * varpool.c: Likewise.
3151 * var-tracking.c: Likewise.
3152 * vtable-verify.c: Likewise.
3153 * config/darwin.c: Likewise.
3154 * config/aarch64/aarch64-builtins.c: Likewise.
3155 * config/aarch64/aarch64.c: Likewise.
3156 * config/alpha/alpha.c: Likewise.
3157 * config/i386/i386.c: Likewise.
3158 * config/i386/winnt.c: Likewise.
3159 * config/ia64/ia64.c: Likewise.
3160 * config/m32c/m32c.c: Likewise.
3161 * config/mep/mep.c: Likewise.
3162 * config/mips/mips.c: Likewise.
3163 * config/rs6000/rs6000.c: Likewise.
3164 * config/s390/s390.c: Likewise.
3165 * config/sh/sh.c: Likewise.
3166 * config/sparc/sparc.c: Likewise.
3167 * config/spu/spu.c: Likewise.
3168 * config/stormy16/stormy16.c: Likewise.
3169 * config/tilegx/tilegx.c: Likewise.
3170 * config/tilepro/tilepro.c: Likewise.
3171 * config/xtensa/xtensa.c: Likewise.
3173 2013-11-22 Richard Earnshaw <rearnsha@arm.com>
3176 * arm.md (negdi_extendsidi): Fix invalid split.
3178 2013-11-22 Alex Velenko <Alex.Velenko@arm.com>
3180 * config/aarch64/arm_neon.h (vmov_n_f32): Implemented in C.
3181 (vmov_n_f64): Likewise.
3182 (vmov_n_p8): Likewise.
3183 (vmov_n_p16): Likewise.
3184 (vmov_n_s8): Likewise.
3185 (vmov_n_s16): Likewise.
3186 (vmov_n_s32): Likewise.
3187 (vmov_n_s64): Likewise.
3188 (vmov_n_u8): Likewise.
3189 (vmov_n_u16): Likewise.
3190 (vmov_n_u32): Likewise.
3191 (vmov_n_u64): Likewise.
3192 (vmovq_n_f32): Likewise.
3193 (vmovq_n_f64): Likewise.
3194 (vmovq_n_p8): Likewise.
3195 (vmovq_n_p16): Likewise.
3196 (vmovq_n_s8): Likewise.
3197 (vmovq_n_s16): Likewise.
3198 (vmovq_n_s32): Likewise.
3199 (vmovq_n_s64): Likewise.
3200 (vmovq_n_u8): Likewise.
3201 (vmovq_n_u16): Likewise.
3202 (vmovq_n_u32): Likewise.
3203 (vmovq_n_u64): Likewise.
3205 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
3207 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
3208 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap for big-endian.
3209 (reduc_<sur>plus_<mode>): Factorize V2DI into this.
3210 (reduc_<sur>plus_<mode>): Change this to reduc_splus_<mode> for floats
3211 and also change to float UNSPEC.
3212 (reduc_maxmin_uns>_<mode>): Remove V2DI.
3213 * config/aarch64/arm_neon.h (vaddv<q>_<suf><8,16,32,64>,
3214 vmaxv<q>_<suf><8,16,32,64>, vminv<q>_<suf><8,16,32,64>): Fix up scalar
3215 result access for big-endian.
3216 (__LANE0): New macro used to fix up lane access of 'across-lanes'
3217 intrinsics for big-endian.
3218 * config/aarch64/iterators.md (VDQV): Add V2DI.
3220 (vp): New mode attribute.
3222 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
3224 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
3225 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap source ops for
3228 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
3230 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Adjust
3231 for big-endian element order.
3232 (aarch64_simd_vec_setv2di): Likewise.
3233 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>,
3234 *aarch64_get_lane_zero_extendsi<mode>, aarch64_get_lane): Likewise.
3235 (vec_extract): Expand using aarch64_get_lane.
3236 * config/aarch64/aarch64.h (ENDIAN_LANE_N): New.
3238 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
3240 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Fix loads
3241 and stores to be ABI compliant.
3243 2013-11-22 David Malcolm <dmalcolm@redhat.com>
3245 * input.h (input_line): Remove.
3246 (input_filename): Likewise.
3247 (in_system_header): Likewise.
3248 * tree.h (EXPR_LOC_OR_HERE): Remove.
3249 * config/bfin/bfin.c (output_file_start): Remove use of
3250 input_filename macro.
3251 * builtins.c (c_strlen): Remove use of EXPR_LOC_OR_HERE macro.
3252 * gimplify.c (internal_get_tmp_var): Likewise.
3253 EXPR_LOC_OR_HERE macro.
3254 (shortcut_cond_expr): Likewise.
3255 * tree-diagnostic.c (diagnostic_report_current_function): Remove
3256 use of input_filename macro.
3257 * tree.c (get_file_function_name): Likewise.
3259 2013-11-22 Kenneth Zadeck <zadeck@naturalbridge.com>
3261 * store-layout.c (place-field): Fix hwi test and accessor mismatch.
3263 2013-11-22 Jakub Jelinek <jakub@redhat.com>
3265 * expr.c (store_constructor): Allow CONSTRUCTOR with VECTOR_TYPE
3266 (same sized) elements even if the type of the CONSTRUCTOR has
3267 vector mode and target is a REG.
3269 2013-11-22 Richard Biener <rguenther@suse.de>
3272 2013-11-21 Richard Biener <rguenther@suse.de>
3274 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
3275 nb_iterations_upper_bound by one.
3277 2013-11-22 H.J. Lu <hongjiu.lu@intel.com>
3279 * config/i386/i386.c (processor_alias_table): Enable PTA_POPCNT
3282 * doc/invoke.texi: Mention POPCNT for corei7, corei7-avx,
3283 core-avx-i, core-avx2 and slm.
3285 2013-11-22 Eric Botcazou <ebotcazou@adacore.com>
3287 * print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.
3289 2013-11-22 Richard Sandiford <rdsandiford@googlemail.com>
3291 * config/m32c/cond.md (stzx_16): Use register_operand for operand 0.
3292 (stzx_24_<mode>): Likewise mra_operand.
3294 2013-11-22 Jeff Law <law@redhat.com>
3296 * tree-ssa-threadupdate.c: Include tree-cfg.h and tree-pass.h
3297 (thread_block_1): Do not cancel jump threads which go from
3298 inside a loop, through the header, then back inside the loop.
3299 (bb_ends_with_multiway_branch): New function.
3300 (thread_through_all_blocks): Handle threading cases which start
3301 in a loop through the loop header to a point in the loop.
3303 * tree-ssa-threadedge.c (thread_across_edge): Mark the start of the
3304 jump thread path properly.
3306 2013-11-22 Trevor Saunders <tsaunders@mozilla.com>
3308 * vec.h (auto_vec): New class.
3309 * cfganal.c, cfgloop.c, cgraphunit.c, config/i386/i386.c, dwarf2out.c,
3310 function.c, genautomata.c, gimple.c, haifa-sched.c, ipa-inline.c,
3311 ira-build.c, loop-unroll.c, omp-low.c, ree.c, trans-mem.c,
3312 tree-call-cdce.c, tree-eh.c, tree-if-conv.c, tree-into-ssa.c,
3313 tree-loop-distribution.c, tree-predcom.c, tree-sra.c,
3314 tree-sssa-forwprop.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
3315 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
3316 tree-vect-loop.c, tree-vect-stmts.c: Use auto_vec and stack_vec as
3317 appropriate instead of vec for local variables.
3319 2013-11-21 Teresa Johnson <tejohnson@google.com>
3322 * cfgcleanup.c (outgoing_edges_match): Walk up past note instructions
3323 not understood by old_insns_match_p.
3325 2013-11-21 Bill Schmidt <wschmidt@vnet.ibm.com>
3327 * config/rs6000/vector.md (vec_pack_trunc_v2df): Revert previous
3328 little endian change.
3329 (vec_pack_sfix_trunc_v2df): Likewise.
3330 (vec_pack_ufix_trunc_v2df): Likewise.
3331 * config/rs6000/rs6000.c (rs6000_expand_interleave): Correct
3332 double checking of endianness.
3334 2013-11-22 Jakub Jelinek <jakub@redhat.com>
3336 * tree-vect-generic.c (optimize_vector_constructor): New function.
3337 (expand_vector_operations_1): Call it.
3339 2013-11-21 Uros Bizjak <ubizjak@gmail.com>
3341 * config/i386/i386.c (ix86_expand_special_args_builtin): Use
3342 ix86_zero_extend_to_Pmode where appropriate.
3343 (ix86_expand_builtin): Ditto.
3345 2013-11-21 Cary Coutant <ccoutant@google.com>
3347 * dwarf2out.c (want_pubnames): Don't do pubnames for -g1.
3348 (add_linkage_name): Don't add linkage name for -g1.
3349 (decls_for_scope): Process subblocks for -g1.
3350 (dwarf2out_source_line): Output line tables for -g1.
3351 (dwarf2out_finish): Likewise.
3352 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
3353 unused scopes for -g1.
3354 * opts.c (common_handle_option): Handle -g same as -g2.
3355 * doc/invoke.texi: Update description for -g1.
3357 2013-11-21 Peter Bergner <bergner@vnet.ibm.com>
3359 * doc/extend.texi: Document htm builtins.
3361 2013-11-21 Jeff Law <law@redhat.com>
3363 PR tree-optimization/59221
3364 * tree-ssa-threadedge.c (thread_across_edge): Properly manage
3365 temporary equivalences when threading through joiner blocks.
3367 2013-11-21 Joseph Myers <joseph@codesourcery.com>
3369 PR rtl-optimization/55950
3370 * real.c (real_sqrt): Remove function.
3371 * real.h (real_sqrt): Remove prototype.
3372 * simplify-rtx.c (simplify_const_unary_operation): Do not fold
3373 SQRT using real_sqrt.
3375 2013-11-21 Richard Biener <rguenther@suse.de>
3377 PR tree-optimization/59058
3378 * tree-scalar-evolution.h (number_of_exit_cond_executions): Remove.
3379 * tree-scalar-evolution.c (number_of_exit_cond_executions): Likewise.
3380 * tree-vectorizer.h (LOOP_PEELING_FOR_ALIGNMENT): Rename to ...
3381 (LOOP_VINFO_PEELING_FOR_ALIGNMENT): ... this.
3382 (NITERS_KNOWN_P): Fold into ...
3383 (LOOP_VINFO_NITERS_KNOWN_P): ... this.
3384 (LOOP_VINFO_PEELING_FOR_NITER): Add.
3385 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
3386 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
3387 (vect_do_peeling_for_alignment): Re-use precomputed niter
3388 instead of re-emitting it.
3389 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3390 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
3391 * tree-vect-loop.c (vect_get_loop_niters): Use
3392 number_of_latch_executions.
3393 (new_loop_vec_info): Initialize LOOP_VINFO_PEELING_FOR_NITER.
3394 (vect_analyze_loop_form): Simplify.
3395 (vect_analyze_loop_operations): Move epilogue peeling code ...
3396 (vect_analyze_loop_2): ... here and adjust it to compute
3397 LOOP_VINFO_PEELING_FOR_NITER.
3398 (vect_estimate_min_profitable_iters): Use
3399 LOOP_VINFO_PEELING_FOR_ALIGNMENT.
3400 (vect_build_loop_niters): Emit on the preheader.
3401 (vect_generate_tmps_on_preheader): Likewise.
3402 (vect_transform_loop): Use LOOP_VINFO_PEELING_FOR_NITER instead
3403 of recomputing it. Adjust.
3405 2013-11-21 Richard Biener <rguenther@suse.de>
3407 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
3408 LOC_LINE): Remove wrappers and fix all users.
3409 (struct _loop_vec_info): Remove loop_line_number member.
3410 (LOOP_VINFO_LOC): Remove.
3411 * tree-parloops.c, tree-vect-loop-manip.c, tree-vect-slp.c,
3412 tree-vectorizer.c: Fix users of LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE
3415 2013-11-21 Richard Biener <rguenther@suse.de>
3417 * tree-ssa-forwprop.c (simplify_vce): New function.
3418 (ssa_forward_propagate_and_combine): Call it.
3420 2013-11-21 Richard Biener <rguenther@suse.de>
3422 * tree-vect-loop-manip.c (vect_build_loop_niters,
3423 vect_generate_tmps_on_preheader): Move ...
3424 * tree-vect-loop.c (vect_build_loop_niters,
3425 vect_generate_tmps_on_preheader): ... here and simplify.
3426 (vect_transform_loop): Call them here and pass down results
3428 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound):
3429 Get niter variables from caller.
3430 (vect_do_peeling_for_alignment): Likewise.
3431 * tree-vectorizer.h (vect_generate_tmps_on_preheader): Remove.
3432 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
3435 2013-11-21 Richard Biener <rguenther@suse.de>
3437 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
3438 nb_iterations_upper_bound by one.
3440 2013-11-21 Richard Biener <rguenther@suse.de>
3442 PR tree-optimization/59058
3443 * tree-loop-distribution.c (struct partition_s): Add plus_one member.
3444 (build_size_arg_loc): Apply niter adjustment here.
3445 (generate_memset_builtin): Adjust.
3446 (generate_memcpy_builtin): Likewise.
3447 (classify_partition): Do not use number_of_exit_cond_executions
3448 but record whether niter needs to be adjusted.
3450 2013-11-21 Eric Botcazou <ebotcazou@adacore.com>
3452 * tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
3455 2013-11-21 Oleg Endo <olegendo@gcc.gnu.org>
3458 * config/sh/sh_optimize_sett_clrt.cc: New SH specific RTL pass.
3459 * config/sh/sh.c (register_sh_passes): Add sh_optimize_sett_clrt pass.
3460 * config/sh/sh/t-sh (sh_optimize_sett_clrt pass.o): New entry.
3461 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add
3462 sh_optimize_sett_clrt pass.o to extra_objs.
3464 2013-11-20 David Malcolm <dmalcolm@redhat.com>
3466 * cfg.c (dump_edge_info): Remove redundant comment.
3467 * cfgcleanup.c (outgoing_edges_match): Reword reference to
3468 EXIT_BLOCK_PTR in comment.
3469 (try_optimize_cfg): Likewise.
3470 * cfgrtl.c (last_bb_in_partition): Likewise.
3471 * cgraph.c (cgraph_node_cannot_return): Likewise.
3472 * function.c (thread_prologue_and_epilogue_insns): Likewise.
3473 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
3474 * ipa-split.c (consider_split): Likewise.
3475 * profile.c (find_spanning_tree): Likewise.
3476 * sched-int.h (common_sched_info_def.add_block): Likewise.
3477 * dominance.c (calc_dfs_tree_nonrec): Reword references in
3478 comments to now removed ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros.
3479 * tree-cfgcleanup.c (cleanup_control_flow_bb): Reword references
3480 in comments to now removed ENTRY_BLOCK_PTR macro.
3481 (tree_forwarder_block_p): Reword reference in comment to
3483 * tree-inline.c (copy_cfg_body): Reword references in comments to
3484 now removed ENTRY_BLOCK_PTR macro.
3485 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
3486 * tree-scalar-evolution.h ( block_before_loop): Likewise. Add
3487 a comma to the comment to clarify the meaning.
3489 2013-11-20 Andrew MacLeod <amacleod@redhat.com>
3491 * gimplify.h (gimplify_hasher:typed_free_remove, struct gimplify_ctx):
3493 (free_gimplify_stack): Add prototype.
3494 * gimplify.c (gimplify_hasher:typed_free_remove): Relocate here.
3495 (struct gimplify_ctx): Relocate here.
3496 (gimplify_ctxp): Make static.
3497 (ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New. Manage a
3498 list of struct gimplify_ctx.
3499 (push_gimplify_context): Add default parameters and allocate a struct
3501 (pop_gimplify_context): Free a struct back to the pool.
3502 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
3503 gimplify_omp_workshare, gimplify_transaction, gimplify_body): Don't
3504 use a local 'struct gimplify_ctx'.
3505 * cgraphunit.c (expand_all_functions): call free_gimplify_stack.
3506 * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
3508 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
3509 lower_omp_ordered, lower_omp_critical, lower_omp_for,
3510 create_task_copyfn, lower_omp_taskreg, lower_omp_target,
3511 lower_omp_teams, execute_lower_omp): Likewise.
3512 * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
3513 * tree-inline.c (optimize_inline_calls): Likewise.
3515 2013-11-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3517 * config/rs6000/vsx.md (vsx_set_<mode>): Adjust for little endian.
3518 (vsx_extract_<mode>): Likewise.
3519 (*vsx_extract_<mode>_one_le): New LE variant on
3520 *vsx_extract_<mode>_zero.
3521 (vsx_extract_v4sf): Adjust for little endian.
3523 2013-11-20 Vladimir Makarov <vmakarov@redhat.com>
3525 PR rtl-optimization/59133
3526 * lra.c (expand_reg_data): Add new argument. Set up ALL_REGS for
3528 (lra_create_new_reg_with_unique_value): Pass new argument value.
3529 (lra_emit_add, lra_emit_move): Ditto.
3530 * lra-constraints.c (in_class_p): Add check for move for a new insn.
3531 (change_class): Rename to lra_change_class. Move to lra-int.h.
3532 (get_reload_reg, narrow_reload_pseudo_class): Adjust calls of
3534 (process_addr_reg, process_addr): Ditto.
3535 (curr_insn_transform): Ditto. Add check on old pseudo for
3537 * lra-int.h (lra_get_regno_hard_regno): Move below.
3538 (lra_change_class): Renamed change_class from lra.c.
3540 2013-11-20 David Malcolm <dmalcolm@redhat.com>
3542 * gdbhooks.py (VecPrinter.children): Don't attempt to iterate
3543 the children of a NULL pointer.
3545 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
3547 * lra.c (lra): Set lra_in_progress before check_rtl call.
3548 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
3549 adding clobber regs when LRA is running.
3551 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
3553 * config/mips/mips.h (ISA_HAS_FP4): Remove TARGET_FLOAT64
3554 restriction for ISA_MIPS32R2.
3555 (ISA_HAS_LXC1_SXC1): New macro.
3556 (ISA_HAS_FP_MADD4_MSUB4): Remove ISA_MIPS32R2 special-casing.
3557 (ISA_HAS_NMADD4_NMSUB4): Likewise.
3558 (ISA_HAS_FP_RECIP_RSQRT): Likewise.
3559 (ISA_HAS_PREFETCHX): Redefine in terms of ISA_HAS_FP4.
3560 * config/mips/mips.md (*<ANYF:loadx>_<P:mode>): Use
3561 ISA_HAS_LXC1_SXC1 rather than ISA_HAS_FP4.
3562 (*<ANYF:storex>_<P:mode>): Likewise.
3564 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
3566 * config/mips/mips.h (ISA_HAS_FP_RECIP_RSQRT): New macro.
3567 * config/mips/mips.c (mips_rtx_costs) <DIV>: Check for
3568 ISA_HAS_FP_RECIP_RSQRT rather than ISA_HAS_FP4.
3569 * config/mips/mips.md (recip_condition): Remove mode attribute.
3570 (div<mode>3): Use ISA_HAS_FP_RECIP_RSQRT rather than
3572 (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Likewise.
3574 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
3577 * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
3578 Make sure neg2_ovf is set before being used.
3580 2013-11-20 Basile Starynkevitch <basile@starynkevitch.net>
3582 * plugin.def: Add comment about register_callback and
3583 invoke_plugin_callbacks_full.
3585 * plugin.c (register_callback, invoke_plugin_callbacks_full):
3586 Handle PLUGIN_INCLUDE_FILE event.
3588 2013-11-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3590 * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
3591 allow subregs of TDmode in FPRs of smaller size in little-endian.
3592 (rs6000_split_multireg_move): When splitting an access to TDmode
3593 in FPRs, do not use simplify_gen_subreg.
3595 2013-11-20 Joseph Myers <joseph@codesourcery.com>
3598 * real.c: Remove comment about decimal string conversion and
3600 (real_from_string): Use MPFR to convert nonzero decimal constant
3603 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
3605 * config/arm/arm.c (arm_dwarf_register_span): Take into account the
3606 endianness of the D registers for the legacy encodings.
3608 2013-11-20 Richard Earnshaw <rearnsha@arm.com>
3610 PR rtl-optimization/54300
3611 * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
3612 outputs in a single-set are killed from the value chains.
3614 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
3616 * cgraph.h (varpool_node): Add need_bounds_init field.
3617 * lto-cgraph.c (lto_output_varpool_node): Output
3618 need_bounds_init value.
3619 (input_varpool_node): Read need_bounds_init value.
3620 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
3622 2013-11-20 Jan Hubicka <jh@suse.cz>
3624 * opts.c (finish_options): Imply -ffat-lto-objects with
3625 -fno-use-linker-plugin.
3626 * common.opt (fuse-linker-plugin): Add var.
3628 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
3630 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
3631 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
3632 (gen_type_die_with_usage): Skip pointer bounds.
3633 (dwarf2out_global_decl): Likewise.
3635 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
3637 * config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes
3640 2013-11-20 Yuri Rumyantsev <ysrumyan@gmail.com>
3643 * config/i386/i386.c (ix86_option_override_internal): Add missed
3644 argument prefix for 'ix86_fpmath'.
3645 * config/i386/ssemath.h: Add missed definition of
3646 TARGET_FPMATH_DEFAULT_P macros.
3648 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
3649 Mike Stump <mikestump@comcast.net>
3650 Richard Sandiford <rdsandiford@googlemail.com>
3652 * alias.c (ao_ref_from_mem): Use tree_to_shwi and tree_to_uhwi
3653 instead of TREE_INT_CST_LOW, in cases where there is a protecting
3654 tree_fits_shwi_p or tree_fits_uhwi_p.
3655 * builtins.c (fold_builtin_powi): Likewise.
3656 * config/epiphany/epiphany.c (epiphany_special_round_type_align):
3658 * dbxout.c (dbxout_symbol): Likewise.
3659 * expr.c (expand_expr_real_1): Likewise.
3660 * fold-const.c (fold_single_bit_test, fold_plusminus_mult_expr)
3661 (fold_binary_loc): Likewise.
3662 * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
3663 * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
3664 * omp-low.c (lower_omp_for_lastprivate): Likewise.
3665 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
3666 * stor-layout.c (compute_record_mode): Likewise.
3667 * tree-cfg.c (verify_expr): Likewise.
3668 * tree-dfa.c (get_ref_base_and_extent): Likewise.
3669 * tree-pretty-print.c (dump_array_domain): Likewise.
3670 * tree-sra.c (build_user_friendly_ref_for_offset): Likewise.
3671 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
3672 * tree-ssa-loop-ivopts.c (get_loop_invariant_expr_id): Likewise.
3673 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
3674 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
3675 * tree-ssa-reassoc.c (acceptable_pow_call): Likewise.
3676 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
3677 (ao_ref_init_from_vn_reference, vn_reference_fold_indirect): Likewise.
3678 (vn_reference_lookup_3, simplify_binary_expression): Likewise.
3679 * tree-ssa-structalias.c (bitpos_of_field): Likewise.
3680 (get_constraint_for_1, push_fields_onto_fieldstack): Likewise.
3681 (create_variable_info_for_1): Likewise.
3682 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
3683 (vect_verify_datarefs_alignment): Likewise.
3684 (vect_analyze_data_ref_accesses): Likewise.
3685 (vect_prune_runtime_alias_test_list): Likewise.
3686 * tree-vectorizer.h (NITERS_KNOWN_P): Likewise.
3688 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
3690 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Avoid signed
3691 overflow. Use tree_to_shwi.
3693 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
3695 * fold-const.c (fold_binary_loc): Use unsigned rather than signed
3696 HOST_WIDE_INTs when folding (x >> c) << c.
3698 2013-11-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3699 Dominik Vogt <vogt@linux.vnet.ibm.com>
3701 * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
3702 int comparisons with an out of range condition code.
3703 (s390_optimize_nonescaping_tx): Skip empty BBs.
3704 Generate the new tbegin RTX when removing the FPR clobbers (with
3706 (s390_expand_tbegin): Fix the retry loop counter. Copy CC to the
3707 result before doing the retry calculations.
3708 (s390_init_builtins): Make tbegin "returns_twice" and tabort
3710 * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
3711 the TDB setting part of an tbegin.
3712 ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
3713 ("tx_assist"): Set unused argument to an immediate zero instead of
3714 loading zero into a GPR and pass it as argument.
3715 * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
3716 Remove inline and related attributes.
3717 (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
3718 (__TM_is_illegal, __TM_is_footprint_exceeded)
3719 (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value check.
3721 2013-11-20 Richard Biener <rguenther@suse.de>
3724 * lto-opts.c (lto_write_options): Write defaults only if
3725 they were not explicitely specified. Also write
3726 -ffp-contract default.
3727 * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
3729 (run_gcc): Pass through -ffp-contract.
3731 2013-11-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
3733 * config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.
3735 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
3737 * gcc/config/aarch64/aarch64-builtins.c
3738 (aarch64_simd_itype): Remove.
3739 (aarch64_simd_builtin_datum): Remove itype, add qualifiers pointer.
3740 (VAR1): Use qualifiers.
3741 (aarch64_build_scalar_type): New.
3742 (aarch64_build_vector_type): Likewise.
3743 (aarch64_build_type): Likewise.
3744 (aarch64_init_simd_builtins): Refactor, remove special cases,
3745 consolidate main loop.
3746 (aarch64_simd_expand_args): Likewise.
3748 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
3751 * doc/invoke.texi: Adding documentation about -Wfloat-conversion.
3753 2013-11-19 Miro Kropacek <miro.kropacek@gmail.com>
3755 * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
3757 2013-11-19 David Malcolm <dmalcolm@redhat.com>
3759 * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
3760 to "vec<>" instances.
3761 (build_pretty_printer): Register the vec<>* prettyprinter.
3763 2013-11-19 David Malcolm <dmalcolm@redhat.com>
3765 * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
3766 (GdbSubprinter.handles_type): New.
3767 (GdbSubprinterTypeList): New subclass of GdbSubprinter.
3768 (GdbSubprinterRegex): New subclass of GdbSubprinter.
3769 (GdbPrettyPrinters.add_printer): Remove in favor of...
3770 (GdbPrettyPrinters.add_printer_for_types): ...this new method and...
3771 (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
3772 (GdbPrettyPrinters.__call__): Update search for subprinter
3773 to use handles_type method.
3774 (build_pretty_printer): Update registration of subprinters to
3775 use the new API above, supporting multiple spelling of each type,
3776 and allowing for future regex-based subprinters.
3778 2013-11-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3780 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
3781 V16QI vector splat case for little endian.
3783 2013-11-19 Jeff Law <law@redhat.com>
3785 * tree-ssa-threadedge.c (thread_across_edge): After threading
3786 through a joiner, allow threading a normal block requiring duplication.
3788 * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
3789 jump threading requests that would muck up the loop structures.
3791 * tree-ssa-threadupdate.c: Fix trailing whitespace.
3792 * tree-ssa-threadupdate.h: Likewise.
3794 2013-11-19 Mike Stump <mikestump@comcast.net>
3796 * gdbinit.in: Add pmz to print out mpz values.
3798 2013-11-20 Jan Hubicka <jh@suse.cz>
3800 * common.opt (ffat-lto-objects): Disable by default.
3801 * doc/invoke.texi (fat-lto-objects): Update documentation.
3802 * opts.c: Enable fat-lto-objects on lto plugin disable setups.
3804 2013-11-19 Martin Jambor <mjambor@suse.cz>
3806 PR rtl-optimization/59099
3807 * ira.c (find_moveable_pseudos): Put back various analyses from ira()
3809 (ira): Move init_reg_equiv and call to
3810 split_live_ranges_for_shrink_wrap up, remove analyses around call
3811 to find_moveable_pseudos.
3813 2013-11-20 Alan Modra <amodra@gmail.com>
3815 * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
3816 * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
3817 to strict alignment on older processors when little-endian.
3818 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
3821 2013-11-19 Teresa Johnson <tejohnson@google.com>
3823 * common/config/i386/i386-common.c: Enable
3824 -freorder-blocks-and-partition at -O2 and up for x86.
3825 * doc/invoke.texi: Update -freorder-blocks-and-partition default.
3826 * opts.c (finish_options): Only warn if
3827 -freorder-blocks-and-partition was set on command line.
3829 2013-11-19 Sriraman Tallam <tmsriram@google.com>
3831 * final.c (final_scan_insn): Emit a label for the split
3832 cold function part. Label name is formed by suffixing
3833 the original function name with "cold".
3835 2013-11-19 David Malcolm <dmalcolm@redhat.com>
3837 * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
3838 (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
3839 (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
3840 (EXIT_BLOCK_PTR_FOR_FN): ...this.
3841 (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
3843 (EXIT_BLOCK_PTR): Likewise.
3844 (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
3845 (FOR_ALL_BB_FN): Update for renaming of
3846 "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
3848 * cfg.c (init_flow): Likewise.
3849 (check_bb_profile): Likewise.
3850 * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
3851 * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
3852 * cfghooks.c (account_profile_record): Likewise.
3853 * cfgloop.c (init_loops_structure): Likewise.
3854 * cgraphbuild.c (record_eh_tables): Likewise.
3855 (compute_call_stmt_bb_frequency): Likewise.
3856 * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
3857 * lto-streamer-in.c (input_cfg): Likewise.
3858 * predict.c (maybe_hot_frequency_p): Likewise.
3859 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
3860 * tree-inline.c (initialize_cfun): Likewise.
3861 (copy_cfg_body): Likewise.
3862 (copy_body): Likewise.
3863 (tree_function_versioning): Likewise.
3865 * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
3866 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3867 (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
3868 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
3869 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3870 (connect_traces): Likewise.
3871 (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
3872 (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
3873 (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
3875 (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
3877 (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
3878 (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
3879 (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
3880 (rotate_loop): Likewise.
3881 * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
3882 * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
3884 (alloc_aux_for_edges): Likewise.
3885 (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
3886 (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
3888 (compact_blocks): Likewise.
3889 (clear_edges): Likewise.
3890 * cfganal.c (single_pred_before_succ_order): Remove usage of
3891 ENTRY_BLOCK_PTR macro.
3892 (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
3893 (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
3894 (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
3895 (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
3896 (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
3898 (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR macro.
3899 (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
3901 (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR macro.
3902 (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
3903 (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
3904 (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3905 (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
3906 (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
3908 (print_edge_list): Likewise.
3909 (create_edge_list): Likewise.
3910 (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
3911 (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
3913 * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
3915 (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
3916 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3917 * cfgcleanup.c (delete_unreachable_blocks): Likewise.
3918 (try_optimize_cfg): Likewise.
3919 (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
3920 (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
3921 (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
3922 (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
3923 (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
3924 (try_forward_edges): Likewise.
3925 (try_simplify_condjump): Likewise.
3926 * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
3927 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3928 (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
3929 (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
3931 (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
3932 (expand_gimple_tailcall): Likewise.
3933 * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
3934 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3935 (tidy_fallthru_edges): Likewise.
3936 (verify_flow_info): Likewise.
3937 * cfgloop.c (flow_bb_inside_loop_p): Likewise.
3938 (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
3939 (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR macro.
3940 (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
3941 (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
3942 (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
3943 (get_loop_body_in_dom_order): Likewise.
3944 (get_loop_body): Likewise.
3945 * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
3946 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3947 * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
3949 (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
3950 (fix_bb_placement): Likewise.
3951 * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
3952 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3953 (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
3954 (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
3956 (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
3957 (cfg_layout_can_merge_blocks_p): Remove uses of macros:
3958 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3959 (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
3961 (fixup_fallthru_exit_predecessor): Remove uses of macros:
3962 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3963 (fixup_reorder_chain): Likewise.
3964 (relink_block_chain): Likewise.
3965 (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
3966 (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
3967 (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
3968 (force_one_exit_fallthru): Likewise.
3969 (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
3971 (rtl_verify_edges): Likewise.
3972 (commit_edge_insertions): Likewise.
3973 (commit_one_edge_insertion): Likewise.
3974 (rtl_split_edge): Likewise.
3975 (force_nonfallthru_and_redirect): Likewise.
3976 (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
3977 (skip_insns_after_block): Likewise.
3978 (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
3980 (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
3981 (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
3983 (contains_no_active_insn_p): Likewise.
3984 (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
3985 (entry_of_function): Likewise.
3986 (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
3987 (fixup_new_cold_bb): Likewise.
3988 (patch_jump_insn): Likewise.
3989 (try_redirect_by_replacing_jump): Likewise.
3990 (block_label): Likewise.
3991 (could_fall_through): Likewise.
3992 (can_fallthru): Likewise.
3993 * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
3994 ENTRY_BLOCK_PTR macro.
3995 (rebuild_cgraph_edges): Likewise.
3996 * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
3997 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3998 (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
3999 * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
4000 (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
4001 (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
4002 (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
4003 (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
4005 (reg_nonzero_bits_for_combine): Likewise.
4006 (set_nonzero_bits_and_sign_copies): Likewise.
4007 (combine_instructions): Likewise.
4008 * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
4010 (bypass_conditional_jumps): Likewise.
4011 (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
4012 (find_implicit_sets): Likewise.
4013 (cprop_jump): Likewise.
4014 * cse.c (cse_cc_succs): Likewise.
4015 (cse_find_path): Likewise.
4016 * df-problems.c (df_lr_confluence_0): Likewise.
4017 * df-scan.c (df_entry_block_defs_collect): Remove usage of
4018 ENTRY_BLOCK_PTR macro.
4019 (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
4020 * dominance.c (iterate_fix_dominators): Remove usage of
4021 ENTRY_BLOCK_PTR macro.
4022 (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4023 (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR macro.
4024 (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
4026 (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
4028 (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
4030 * domwalk.c (cmp_bb_postorder): Likewise.
4031 * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
4032 * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
4034 (sjlj_emit_function_enter): Likewise.
4035 * final.c (compute_alignments): Likewise.
4036 * function.c (thread_prologue_and_epilogue_insns): Remove uses of
4037 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4038 (reposition_prologue_and_epilogue_notes): Remove usage of
4039 EXIT_BLOCK_PTR macro.
4040 (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
4042 (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
4043 (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
4044 * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
4045 (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
4046 (compute_code_hoist_vbeinout): Likewise.
4047 (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
4048 (pre_expr_reaches_here_p_work): Likewise.
4049 * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
4050 (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
4052 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
4053 ENTRY_BLOCK_PTR macro.
4054 * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
4056 * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
4057 ENTRY_BLOCK_PTR macro.
4058 * graphite-scop-detection.c (build_scops): Likewise.
4059 (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
4060 (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
4061 * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
4063 (unlink_bb_notes): Likewise.
4064 (create_check_block_twin): Likewise.
4065 (init_before_recovery): Likewise.
4066 (sched_extend_bb): Likewise.
4067 (priority): Likewise.
4068 * hw-doloop.c (reorder_loops): Likewise.
4069 (discover_loop): Likewise.
4070 * ifcvt.c (dead_or_predicable): Remove uses of macros:
4071 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4072 (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
4073 (block_has_only_trap): Likewise.
4074 (cond_exec_find_if_block): Likewise.
4075 (merge_if_block): Likewise.
4076 * ipa-inline-analysis.c (param_change_prob): Remove usage of
4077 ENTRY_BLOCK_PTR macro.
4078 (record_modified): Likewise.
4079 * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
4080 EXIT_BLOCK_PTR macro.
4081 (local_pure_const): Likewise.
4082 * ipa-split.c (split_function): Remove uses of macros:
4083 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4084 (find_split_points): Likewise.
4085 (consider_split): Likewise.
4086 (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
4087 (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
4088 * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
4089 * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR macro.
4090 * ira-emit.c (entered_from_non_parent_p): Remove usage of
4091 ENTRY_BLOCK_PTR macro.
4092 (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
4093 * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
4094 * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
4095 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4096 * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
4098 (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
4100 (compute_farthest): Likewise.
4101 (compute_available): Likewise.
4102 (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
4103 (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
4105 (compute_earliest): Likewise.
4106 (compute_antinout_edge): Likewise.
4107 * loop-iv.c (simplify_using_initial_values): Remove usage of
4108 ENTRY_BLOCK_PTR macro.
4109 * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
4111 * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
4113 * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
4115 * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
4116 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4117 * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
4119 * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
4121 * lto-streamer-out.c (output_cfg): Likewise.
4122 * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
4124 (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
4125 * mode-switching.c (optimize_mode_switching): Likewise.
4126 (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
4127 * modulo-sched.c (rest_of_handle_sms): Likewise.
4128 (canon_loop): Likewise.
4129 * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR macro.
4130 * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
4131 of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4132 * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
4134 (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
4135 (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
4136 (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
4137 (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
4138 (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
4139 (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
4140 (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
4141 (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
4142 (gimple_predict_edge): Likewise.
4143 (probably_never_executed): Likewise.
4144 * profile.c (find_spanning_tree): Remove uses of macros:
4145 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4146 (branch_prob): Likewise.
4147 (compute_branch_probabilities): Likewise.
4148 (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
4149 (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
4150 (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
4151 (set_bb_counts): Likewise.
4152 (correct_negative_edge_counts): Likewise.
4153 (get_exec_counts): Likewise.
4154 (instrument_values): Likewise.
4155 (instrument_edges): Likewise.
4156 * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
4158 (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
4159 (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
4160 (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
4161 (reg_to_stack): Likewise.
4162 * regs.h (REG_N_SETS): Likewise.
4163 * reload.c (find_dummy_reload): Likewise.
4164 (combine_reloads): Likewise.
4165 (push_reload): Likewise.
4166 * reload1.c (has_nonexceptional_receiver): Remove usage of
4167 EXIT_BLOCK_PTR macro.
4168 * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
4170 (find_basic_block): Likewise.
4171 * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
4172 (schedule_ebbs): Likewise.
4173 * sched-int.h (sel_sched_p): Likewise.
4174 * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
4176 (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
4177 (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
4179 (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
4180 (extend_rgns): Likewise.
4181 (find_single_block_region): Likewise.
4182 * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
4183 ENTRY_BLOCK_PTR macro.
4184 (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
4185 (sel_create_recovery_block): Likewise.
4186 (bb_ends_ebb_p): Likewise.
4187 (sel_bb_end): Likewise.
4188 (sel_bb_head): Likewise.
4189 (free_lv_sets): Likewise.
4190 (init_lv_sets): Likewise.
4191 (tidy_control_flow): Likewise.
4192 (maybe_tidy_empty_bb): Likewise.
4193 * sel-sched-ir.h (_succ_iter_cond): Likewise.
4194 (_succ_iter_start): Likewise.
4195 (sel_bb_empty_or_nop_p): Likewise.
4196 (get_loop_exit_edges_unique_dests): Likewise.
4197 (inner_loop_header_p): Likewise.
4198 * sel-sched.c (create_block_for_bookkeeping): Likewise.
4199 (find_block_for_bookkeeping): Likewise.
4200 * store-motion.c (remove_reachable_equiv_notes): Likewise.
4201 (insert_store): Likewise.
4202 * trans-mem.c (ipa_tm_transform_clone): Remove usage of
4203 ENTRY_BLOCK_PTR macro.
4204 (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
4205 (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
4206 (gate_tm_init): Likewise.
4207 (tm_region_init): Likewise.
4208 * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
4209 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4210 (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
4211 (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
4213 (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
4214 (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
4216 (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
4218 (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
4220 (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
4222 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4223 (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
4224 (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
4225 (build_gimple_cfg): Likewise.
4226 (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
4227 (gimple_can_merge_blocks_p): Likewise.
4228 * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
4229 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4230 * tree-complex.c (update_parameter_components): Remove usage of
4231 ENTRY_BLOCK_PTR macro.
4232 * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
4233 EXIT_BLOCK_PTR macro.
4234 * tree-inline.c (tree_function_versioning): Remove uses of macros:
4235 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4236 (delete_unreachable_blocks_update_callgraph): Likewise.
4237 (initialize_cfun): Likewise.
4238 (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
4239 (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
4240 (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
4241 * tree-into-ssa.c (update_ssa): Likewise.
4242 (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
4243 (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
4244 (rewrite_into_ssa): Likewise.
4245 (rewrite_debug_stmt_uses): Likewise.
4246 * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
4247 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4248 * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
4249 ENTRY_BLOCK_PTR macro.
4250 * tree-scalar-evolution.h (block_before_loop): Likewise.
4251 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
4252 (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
4254 (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
4256 (propagate_dereference_distances): Remove uses of macros:
4257 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4258 (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
4260 * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
4261 (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
4262 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
4263 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
4264 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4265 (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
4266 (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
4267 (mark_control_dependent_edges_necessary): Remove uses of macros:
4268 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4269 * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
4270 ENTRY_BLOCK_PTR macro.
4271 (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
4272 * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
4273 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4274 (calculate_live_on_exit): Likewise.
4275 (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
4276 (loe_visit_block): Likewise.
4277 * tree-ssa-live.h (live_on_exit): Remove uses of macros:
4278 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4279 (live_on_entry): Likewise.
4280 * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
4281 EXIT_BLOCK_PTR macro.
4282 * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
4283 ENTRY_BLOCK_PTR macro.
4284 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
4285 (bound_difference): Likewise.
4286 * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
4287 of EXIT_BLOCK_PTR macro.
4288 * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
4289 of ENTRY_BLOCK_PTR macro.
4290 * tree-ssa-math-opts.c (register_division_in): Likewise.
4291 * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
4292 * tree-ssa-pre.c (compute_avail): Likewise.
4293 (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
4294 (insert): Remove usage of ENTRY_BLOCK_PTR macro.
4295 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
4296 (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
4297 (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
4299 (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
4300 * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
4301 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4302 (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
4303 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
4304 (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
4305 * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
4306 (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
4307 (find_pdom): Likewise.
4308 (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
4309 * tree-stdarg.c (reachable_at_most_once): Likewise.
4310 * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
4311 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4312 (eliminate_tail_call): Likewise.
4313 * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
4315 (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
4316 * var-tracking.c (vt_initialize): Remove uses of macros:
4317 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4318 (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
4319 (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
4320 (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
4322 * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
4324 * config/bfin/bfin.c (hwloop_optimize): Likewise.
4325 * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
4326 of EXIT_BLOCK_PTR macro.
4327 * config/arm/arm.c (require_pic_register): Remove usage of
4328 ENTRY_BLOCK_PTR macro.
4329 (arm_r3_live_at_start_p): Likewise.
4330 (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
4331 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
4332 * config/frv/frv.c (frv_optimize_membar_global): Likewise.
4333 * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
4334 ENTRY_BLOCK_PTR macro.
4335 * config/i386/i386.c (ix86_count_insn): Likewise.
4336 (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
4337 (ix86_pad_short_function): Likewise.
4338 (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
4339 (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
4340 (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
4341 (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
4342 (ix86_expand_epilogue): Likewise.
4343 * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
4344 (ia64_expand_prologue): Likewise.
4346 2013-11-19 Catherine Moore <clm@codesourcery.com>
4348 * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
4349 * config/mips/mips.opt (mfix-rm7000): New option.
4350 * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
4351 * config/mips/mips.c (mips_reorg_process_insns): Disable
4352 noreorder for TARGET_FIX_RM7000.
4354 2013-11-19 Oleg Endo <olegendo@gcc.gnu.org>
4356 * config/sh/sh-c.c: Fix typo in include of file attribs.h.
4358 2013-11-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4360 * config/arm/arm.c (arm_new_rtx_costs):
4361 Handle narrow mode add-shifts properly.
4362 * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
4363 * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
4366 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
4368 * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
4370 2013-11-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4372 * config/rs6000/vector.md ("mov<mode>"): Do not call
4373 rs6000_emit_le_vsx_move to move into or out of GPRs.
4374 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
4375 source and destination are not GPR hard regs.
4377 2013-11-19 David Malcolm <dmalcolm@redhat.com>
4379 * basic-block.h (n_edges_for_function): Rename macro to...
4380 (n_edges_for_fn): ...this.
4381 (n_edges): Eliminate macro as work towards making uses of
4384 * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
4385 to "n_edges_for_fn".
4387 * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
4388 (clear_edges): Likewise.
4389 (free_edge): Likewise.
4390 * cfghooks.c (dump_flow_info): Likewise.
4391 * cprop.c (is_too_expensive): Likewise.
4392 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
4393 * gcse.c (is_too_expensive): Likewise.
4394 (prune_insertions_deletions): Likewise.
4395 * mcf.c (create_fixup_graph): Likewise.
4396 * sched-rgn.c (haifa_find_rgns): Likewise.
4397 * tree-cfg.c (gimple_dump_cfg): Likewise.
4398 * var-tracking.c (variable_tracking_main_1): Likewise.
4400 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
4402 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
4405 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
4407 * config/aarch64/aarch64.md
4408 (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw): Adjust whitespace.
4410 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
4412 * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
4414 2013-11-19 Joseph Myers <joseph@codesourcery.com>
4416 * varasm.c (align_variable): Give error instead of warning for
4417 unsupported alignment.
4418 (assemble_noswitch_variable): Likewise.
4420 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
4422 * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
4425 2013-11-19 Peter Bergner <bergner@vnet.ibm.com>
4427 * loop-doloop.c (doloop_optimize_loops): Remove unused
4428 loop iterator argument from FOR_EACH_LOOP.
4430 2013-11-19 David Malcolm <dmalcolm@redhat.com>
4432 Convert gimple types from a union to C++ inheritance.
4433 * Makefile.in (GIMPLE_H): Add dep on is-a.h.
4434 * coretypes.h (union gimple_statement_d): Remove declaration.
4435 (gimple): Convert from being a "union gimple_statement_d *"
4436 to a "struct gimple_statement_base *".
4437 (const_gimple): Likewise (with "const").
4438 * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace with...
4439 (ggc_alloc_cleared_gimple_statement_stat): ...this.
4440 * gimple-pretty-print.c (debug): Change parameter from a
4441 "gimple_statement_d &" to a "gimple_statement_base &".
4442 (debug): Change parameter from a "gimple_statement_d *" to
4443 a "gimple_statement_base *".
4444 * gimple-pretty-print.h (debug): Update declarations as above.
4445 * gimple.c (gimple_alloc_stat): Update for renaming of
4446 ggc_alloc_cleared_gimple_statement_d_stat to
4447 ggc_alloc_cleared_gimple_statement_stat.
4448 * gimple.h: Include "is-a.h" for use by is_a_helper
4449 specializations in followup autogenerated patch.
4450 (struct gimple statement_base): Make this type usable as a base
4451 class by adding "desc", "tag" and "variable_size" to GTY, thus
4452 using opting-in to gengtype's support for simple inheritance.
4453 (gimple_statement_with_ops_base): Convert to a subclass of
4454 gimple_statement_base, dropping initial "gsbase" field. Note that
4455 this type is abstract, with no GSS_ value, and thus no GTY tag value.
4456 (gimple_statement_with_ops): Convert to a subclass of
4457 gimple_statement_with_ops_base, dropping initial "opbase" field.
4458 Add tag value to GTY marking. Update marking of op field to
4459 reflect how num_ops field is accessed via inheritance.
4460 (gimple_statement_with_memory_ops_base): Convert to a subclass of
4461 gimple_statement_with_ops_base, dropping initial "opbase" field.
4462 Add tag value to GTY marking.
4463 (gimple_statement_with_memory_ops): Convert to a subclass of
4464 public gimple_statement_with_memory_ops_base, dropping initial
4465 "membase" field. Add tag value to GTY marking. Update marking
4466 of op field to reflect how num_ops field is accessed via inheritance.
4467 (gimple_statement_call): Analogous changes that also update the
4468 marking of the "u" union.
4469 (gimple_statement_omp): Convert to a subclass of
4470 gimple_statement_base, dropping initial "gsbase" field, adding
4471 tag value to GTY marking.
4472 (gimple_statement_bind): Likewise.
4473 (gimple_statement_catch): Likewise.
4474 (gimple_statement_eh_filter): Likewise.
4475 (gimple_statement_eh_else): Likewise.
4476 (gimple_statement_eh_mnt): Likewise.
4477 (gimple_statement_phi): Likewise.
4478 (gimple_statement_eh_ctrl): Likewise.
4479 (gimple_statement_try): Likewise.
4480 (gimple_statement_wce): Likewise.
4481 (gimple_statement_asm): Convert to a subclass of
4482 gimple_statement_with_memory_ops_base, dropping initial
4483 "membase" field, adding tag value to GTY marking, and updating
4484 marking of op field.
4485 (gimple_statement_omp_critical): Convert to a subclass of
4486 gimple_statement_omp, dropping initial "omp" field, adding tag
4487 value to GTY marking.
4488 (gimple_statement_omp_for): Likewise.
4489 (gimple_statement_omp_parallel): Likewise.
4490 (gimple_statement_omp_task): Convert to a subclass of
4491 gimple_statement_omp_parallel, dropping initial "par" field,
4492 adding tag value to GTY marking.
4493 (gimple_statement_omp_sections): Convert to a subclass of
4494 gimple_statement_omp, dropping initial "omp" field, adding
4495 tag value to GTY marking.
4496 (gimple_statement_omp_continue): Convert to a subclass of
4497 gimple_statement_base, dropping initial "gsbase" field, adding
4498 tag value to GTY marking.
4499 (gimple_statement_omp_single): Convert to a subclass of
4500 gimple_statement_omp, dropping initial "omp" field, adding
4501 tag value to GTY marking.
4502 (gimple_statement_omp_atomic_load): Convert to a subclass of
4503 gimple_statement_base, dropping initial "gsbase" field, adding
4504 tag value to GTY marking.
4505 (gimple_statement_omp_atomic_store): Convert to a subclass of
4506 gimple_statement_base, dropping initial "gsbase" field, adding
4507 tag value to GTY marking.
4508 (gimple_statement_transaction): Convert to a subclass of
4509 gimple_statement_with_memory_ops_base, dropping initial "gsbase"
4510 field, adding tag value to GTY marking.
4511 (union gimple_statement_d): Remove.
4512 * system.h (CONST_CAST_GIMPLE): Update to use
4513 "struct gimple_statement_base *" rather than
4514 "union gimple_statement_d *".
4515 * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
4516 gimple_statement_d to gimple_statement_base.
4518 * gimple.h (gimple_use_ops): Port from union to usage of dyn_cast.
4519 (gimple_set_use_ops): Port from union to usage of as_a.
4520 (gimple_set_vuse): Likewise.
4521 (gimple_set_vdef): Likewise.
4522 (gimple_call_internal_fn): Port from union to a static_cast,
4523 given that the type has already been asserted.
4524 (gimple_omp_body_ptr): Port from unchecked union usage to
4526 (gimple_omp_set_body): Likewise.
4528 * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
4529 gimple types to a true class hierarchy.
4530 (update_call_edge_frequencies): Likewise.
4531 (gsi_insert_seq_nodes_before): Likewise.
4532 (gsi_insert_seq_nodes_after): Likewise.
4533 (gsi_split_seq_after): Likewise.
4534 (gsi_set_stmt): Likewise.
4535 (gsi_split_seq_before): Likewise.
4536 (gsi_remove): Likewise.
4537 * gimple-iterator.h (gsi_one_before_end_p): Likewise.
4538 (gsi_next): Likewise.
4539 (gsi_prev): Likewise.
4540 * gimple-pretty-print.c (dump_gimple_debug): Likewise.
4541 * gimple-ssa.h (gimple_vuse_op): Likewise.
4542 (gimple_vdef_op): Likewise.
4543 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
4544 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
4545 * gimple.c (gimple_set_code): Likewise.
4546 (gimple_alloc_stat): Likewise.
4547 (gimple_set_subcode): Likewise.
4548 (gimple_build_call_internal_1): Likewise.
4549 (gimple_check_failed): Likewise.
4550 (gimple_call_flags): Likewise.
4551 (gimple_set_bb): Likewise.
4552 * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
4553 (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
4554 (is_a_helper <gimple_statement_call> (gimple)): Likewise.
4555 (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
4556 (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
4557 (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
4558 (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
4559 (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
4560 (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
4561 (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
4562 (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
4563 (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
4564 (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
4565 (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
4566 (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
4567 (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
4568 (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
4569 (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
4570 (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
4571 (is_a_helper <gimple_statement_try> (gimple)): Likewise.
4572 (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
4573 (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
4574 (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
4575 (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
4576 (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
4577 (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
4579 (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
4581 (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
4583 (is_a_helper <const gimple_statement_omp_atomic_store>
4584 (const_gimple)): Likewise.
4585 (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
4587 (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
4589 (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
4591 (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
4593 (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
4595 (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
4597 (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
4599 (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
4600 (is_a_helper <const gimple_statement_transaction> (const_gimple)):
4602 (gimple_seq_last): Update for conversion of gimple types to a true
4604 (gimple_seq_set_last): Likewise.
4605 (gimple_code): Likewise.
4606 (gimple_bb): Likewise.
4607 (gimple_block): Likewise.
4608 (gimple_set_block): Likewise.
4609 (gimple_location): Likewise.
4610 (gimple_location_ptr): Likewise.
4611 (gimple_set_location): Likewise.
4612 (gimple_no_warning_p): Likewise.
4613 (gimple_set_no_warning): Likewise.
4614 (gimple_set_visited): Likewise.
4615 (gimple_visited_p): Likewise.
4616 (gimple_set_plf): Likewise.
4617 (gimple_plf): Likewise.
4618 (gimple_set_uid): Likewise.
4619 (gimple_uid): Likewise.
4620 (gimple_init_singleton): Likewise.
4621 (gimple_modified_p): Likewise.
4622 (gimple_set_modified): Likewise.
4623 (gimple_expr_code): Likewise.
4624 (gimple_has_volatile_ops): Likewise.
4625 (gimple_set_has_volatile_ops): Likewise.
4626 (gimple_omp_subcode): Likewise.
4627 (gimple_omp_set_subcode): Likewise.
4628 (gimple_omp_return_set_nowait): Likewise.
4629 (gimple_omp_section_set_last): Likewise.
4630 (gimple_omp_parallel_set_combined_p): Likewise.
4631 (gimple_omp_atomic_set_need_value): Likewise.
4632 (gimple_omp_atomic_set_seq_cst): Likewise.
4633 (gimple_num_ops): Likewise.
4634 (gimple_set_num_ops): Likewise.
4635 (gimple_assign_nontemporal_move_p): Likewise.
4636 (gimple_assign_set_nontemporal_move): Likewise.
4637 (gimple_assign_rhs_code): Likewise.
4638 (gimple_assign_set_rhs_code): Likewise.
4639 (gimple_call_internal_p): Likewise.
4640 (gimple_call_with_bounds_p): Likewise.
4641 (gimple_call_set_with_bounds): Likewise.
4642 (gimple_call_set_tail): Likewise.
4643 (gimple_call_tail_p): Likewise.
4644 (gimple_call_set_return_slot_opt): Likewise.
4645 (gimple_call_return_slot_opt_p): Likewise.
4646 (gimple_call_set_from_thunk): Likewise.
4647 (gimple_call_from_thunk_p): Likewise.
4648 (gimple_call_set_va_arg_pack): Likewise.
4649 (gimple_call_va_arg_pack_p): Likewise.
4650 (gimple_call_set_nothrow): Likewise.
4651 (gimple_call_set_alloca_for_var): Likewise.
4652 (gimple_call_alloca_for_var_p): Likewise.
4653 (gimple_call_copy_flags): Likewise.
4654 (gimple_cond_code): Likewise.
4655 (gimple_cond_set_code): Likewise.
4656 (gimple_cond_make_false): Likewise.
4657 (gimple_cond_make_true): Likewise.
4658 (gimple_asm_volatile_p): Likewise.
4659 (gimple_asm_set_volatile): Likewise.
4660 (gimple_asm_set_input): Likewise.
4661 (gimple_asm_input_p): Likewise.
4662 (gimple_try_kind): Likewise.
4663 (gimple_try_set_kind): Likewise.
4664 (gimple_try_catch_is_cleanup): Likewise.
4665 (gimple_try_set_catch_is_cleanup): Likewise.
4666 (gimple_wce_cleanup_eh_only): Likewise.
4667 (gimple_wce_set_cleanup_eh_only): Likewise.
4668 (gimple_debug_bind_p): Likewise.
4669 (gimple_debug_source_bind_p): Likewise.
4670 (gimple_omp_for_set_kind): Likewise.
4671 (gimple_omp_for_set_combined_p): Likewise.
4672 (gimple_omp_for_set_combined_into_p): Likewise.
4673 (gimple_omp_target_set_kind): Likewise.
4674 (gimple_transaction_subcode): Likewise.
4675 (gimple_transaction_set_subcode): Likewise.
4676 (gimple_predict_predictor): Likewise.
4677 (gimple_predict_set_predictor): Likewise.
4678 (gimple_predict_outcome): Likewise.
4679 (gimple_predict_set_outcome): Likewise.
4680 (gimple_transaction_set_label): Likewise.
4681 (gimple_transaction_set_body): Likewise.
4682 (gimple_transaction_label_ptr): Likewise.
4683 (gimple_transaction_label): Likewise.
4684 (gimple_transaction_body_ptr): Likewise.
4685 (gimple_omp_continue_set_control_use): Likewise.
4686 (gimple_omp_continue_control_use_ptr): Likewise.
4687 (gimple_omp_continue_control_use): Likewise.
4688 (gimple_omp_continue_set_control_def): Likewise.
4689 (gimple_omp_continue_control_def_ptr): Likewise.
4690 (gimple_omp_continue_control_def): Likewise.
4691 (gimple_omp_atomic_load_rhs_ptr): Likewise.
4692 (gimple_omp_atomic_load_rhs): Likewise.
4693 (gimple_omp_atomic_load_set_rhs): Likewise.
4694 (gimple_omp_atomic_load_lhs_ptr): Likewise.
4695 (gimple_omp_atomic_load_lhs): Likewise.
4696 (gimple_omp_atomic_load_set_lhs): Likewise.
4697 (gimple_omp_atomic_store_val_ptr): Likewise.
4698 (gimple_omp_atomic_store_val): Likewise.
4699 (gimple_omp_atomic_store_set_val): Likewise.
4700 (gimple_omp_for_cond): Likewise.
4701 (gimple_omp_for_set_cond): Likewise.
4702 (gimple_omp_sections_set_control): Likewise.
4703 (gimple_omp_sections_control_ptr): Likewise.
4704 (gimple_omp_sections_control): Likewise.
4705 (gimple_omp_sections_set_clauses): Likewise.
4706 (gimple_omp_sections_clauses_ptr): Likewise.
4707 (gimple_omp_sections_clauses): Likewise.
4708 (gimple_omp_teams_set_clauses): Likewise.
4709 (gimple_omp_teams_clauses_ptr): Likewise.
4710 (gimple_omp_teams_clauses): Likewise.
4711 (gimple_omp_target_set_data_arg): Likewise.
4712 (gimple_omp_target_data_arg_ptr): Likewise.
4713 (gimple_omp_target_data_arg): Likewise.
4714 (gimple_omp_target_set_child_fn): Likewise.
4715 (gimple_omp_target_child_fn_ptr): Likewise.
4716 (gimple_omp_target_child_fn): Likewise.
4717 (gimple_omp_target_set_clauses): Likewise.
4718 (gimple_omp_target_clauses_ptr): Likewise.
4719 (gimple_omp_target_clauses): Likewise.
4720 (gimple_omp_single_set_clauses): Likewise.
4721 (gimple_omp_single_clauses_ptr): Likewise.
4722 (gimple_omp_single_clauses): Likewise.
4723 (gimple_omp_task_set_arg_align): Likewise.
4724 (gimple_omp_task_arg_align_ptr): Likewise.
4725 (gimple_omp_task_arg_align): Likewise.
4726 (gimple_omp_task_set_arg_size): Likewise.
4727 (gimple_omp_task_arg_size_ptr): Likewise.
4728 (gimple_omp_task_arg_size): Likewise.
4729 (gimple_omp_task_set_copy_fn): Likewise.
4730 (gimple_omp_task_copy_fn_ptr): Likewise.
4731 (gimple_omp_task_copy_fn): Likewise.
4732 (gimple_omp_task_set_data_arg): Likewise.
4733 (gimple_omp_task_data_arg_ptr): Likewise.
4734 (gimple_omp_task_data_arg): Likewise.
4735 (gimple_omp_task_set_child_fn): Likewise.
4736 (gimple_omp_task_child_fn_ptr): Likewise.
4737 (gimple_omp_task_child_fn): Likewise.
4738 (gimple_omp_task_set_clauses): Likewise.
4739 (gimple_omp_task_clauses_ptr): Likewise.
4740 (gimple_omp_task_clauses): Likewise.
4741 (gimple_omp_parallel_set_data_arg): Likewise.
4742 (gimple_omp_parallel_data_arg_ptr): Likewise.
4743 (gimple_omp_parallel_data_arg): Likewise.
4744 (gimple_omp_parallel_set_child_fn): Likewise.
4745 (gimple_omp_parallel_child_fn_ptr): Likewise.
4746 (gimple_omp_parallel_child_fn): Likewise.
4747 (gimple_omp_parallel_set_clauses): Likewise.
4748 (gimple_omp_parallel_clauses_ptr): Likewise.
4749 (gimple_omp_parallel_clauses): Likewise.
4750 (gimple_omp_for_set_pre_body): Likewise.
4751 (gimple_omp_for_pre_body_ptr): Likewise.
4752 (gimple_omp_for_set_incr): Likewise.
4753 (gimple_omp_for_incr_ptr): Likewise.
4754 (gimple_omp_for_incr): Likewise.
4755 (gimple_omp_for_set_final): Likewise.
4756 (gimple_omp_for_final_ptr): Likewise.
4757 (gimple_omp_for_final): Likewise.
4758 (gimple_omp_for_set_initial): Likewise.
4759 (gimple_omp_for_initial_ptr): Likewise.
4760 (gimple_omp_for_initial): Likewise.
4761 (gimple_omp_for_set_index): Likewise.
4762 (gimple_omp_for_index_ptr): Likewise.
4763 (gimple_omp_for_index): Likewise.
4764 (gimple_omp_for_collapse): Likewise.
4765 (gimple_omp_for_set_clauses): Likewise.
4766 (gimple_omp_for_clauses_ptr): Likewise.
4767 (gimple_omp_for_clauses): Likewise.
4768 (gimple_omp_critical_set_name): Likewise.
4769 (gimple_omp_critical_name_ptr): Likewise.
4770 (gimple_omp_critical_name): Likewise.
4771 (gimple_eh_dispatch_set_region): Likewise.
4772 (gimple_eh_dispatch_region): Likewise.
4773 (gimple_resx_set_region): Likewise.
4774 (gimple_resx_region): Likewise.
4775 (gimple_phi_set_arg): Likewise.
4776 (gimple_phi_arg): Likewise.
4777 (gimple_phi_set_result): Likewise.
4778 (gimple_phi_result_ptr): Likewise.
4779 (gimple_phi_result): Likewise.
4780 (gimple_phi_num_args): Likewise.
4781 (gimple_phi_capacity): Likewise.
4782 (gimple_wce_set_cleanup): Likewise.
4783 (gimple_wce_cleanup_ptr): Likewise.
4784 (gimple_try_set_cleanup): Likewise.
4785 (gimple_try_set_eval): Likewise.
4786 (gimple_try_cleanup_ptr): Likewise.
4787 (gimple_try_eval_ptr): Likewise.
4788 (gimple_eh_else_set_e_body): Likewise.
4789 (gimple_eh_else_set_n_body): Likewise.
4790 (gimple_eh_else_e_body_ptr): Likewise.
4791 (gimple_eh_else_n_body_ptr): Likewise.
4792 (gimple_eh_must_not_throw_set_fndecl): Likewise.
4793 (gimple_eh_must_not_throw_fndecl): Likewise.
4794 (gimple_eh_filter_set_failure): Likewise.
4795 (gimple_eh_filter_set_types): Likewise.
4796 (gimple_eh_filter_failure_ptr): Likewise.
4797 (gimple_eh_filter_types_ptr): Likewise.
4798 (gimple_eh_filter_types): Likewise.
4799 (gimple_catch_set_handler): Likewise.
4800 (gimple_catch_set_types): Likewise.
4801 (gimple_catch_handler_ptr): Likewise.
4802 (gimple_catch_types_ptr): Likewise.
4803 (gimple_catch_types): Likewise.
4804 (gimple_asm_string): Likewise.
4805 (gimple_asm_set_label_op): Likewise.
4806 (gimple_asm_label_op): Likewise.
4807 (gimple_asm_set_clobber_op): Likewise.
4808 (gimple_asm_clobber_op): Likewise.
4809 (gimple_asm_set_output_op): Likewise.
4810 (gimple_asm_output_op_ptr): Likewise.
4811 (gimple_asm_output_op): Likewise.
4812 (gimple_asm_set_input_op): Likewise.
4813 (gimple_asm_input_op_ptr): Likewise.
4814 (gimple_asm_input_op): Likewise.
4815 (gimple_asm_nlabels): Likewise.
4816 (gimple_asm_nclobbers): Likewise.
4817 (gimple_asm_noutputs): Likewise.
4818 (gimple_asm_ninputs): Likewise.
4819 (gimple_bind_set_block): Likewise.
4820 (gimple_bind_block): Likewise.
4821 (gimple_bind_add_seq): Likewise.
4822 (gimple_bind_add_stmt): Likewise.
4823 (gimple_bind_set_body): Likewise.
4824 (gimple_bind_body_ptr): Likewise.
4825 (gimple_bind_append_vars): Likewise.
4826 (gimple_bind_set_vars): Likewise.
4827 (gimple_bind_vars): Likewise.
4828 (gimple_call_clobber_set): Likewise.
4829 (gimple_call_use_set): Likewise.
4830 (gimple_call_set_internal_fn): Likewise.
4831 (gimple_call_set_fntype): Likewise.
4832 (gimple_call_fntype): Likewise.
4833 (gimple_omp_return_lhs_ptr): Likewise.
4834 (gimple_omp_return_lhs): Likewise.
4835 (gimple_omp_return_set_lhs): Likewise.
4836 (gimple_omp_taskreg_set_data_arg): Likewise.
4837 (gimple_omp_taskreg_data_arg_ptr): Likewise.
4838 (gimple_omp_taskreg_data_arg): Likewise.
4839 (gimple_omp_taskreg_set_child_fn): Likewise.
4840 (gimple_omp_taskreg_child_fn_ptr): Likewise.
4841 (gimple_omp_taskreg_child_fn): Likewise.
4842 (gimple_omp_taskreg_set_clauses): Likewise.
4843 (gimple_omp_taskreg_clauses_ptr): Likewise.
4844 (gimple_omp_taskreg_clauses): Likewise.
4845 (gimple_vuse): Likewise.
4846 (gimple_vdef): Likewise.
4847 (gimple_vuse_ptr): Likewise.
4848 (gimple_vdef_ptr): Likewise.
4849 * tree-inline.c (copy_debug_stmt): Likewise.
4850 * tree-phinodes.c (make_phi_node): Likewise.
4852 * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
4853 (is_a_helper <gimple_statement_with_ops>::test): New.
4854 (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
4855 (is_a_helper <gimple_statement_with_memory_ops>::test): New.
4857 * gimple-streamer-in.c (input_gimple_stmt): Port from union
4858 access to use of as_a.
4859 * gimple.c (gimple_build_asm_1): Likewise.
4860 (gimple_build_try): Likewise. Also, return a specific subclass
4861 rather than just gimple.
4862 (gimple_build_resx): Port from union access to use of as_a.
4863 (gimple_build_eh_dispatch): Likewise.
4864 (gimple_build_omp_for): Likewise. Also, convert allocation of iter
4865 now that gengtype no longer provides a typed allocator function.
4866 (gimple_copy): Likewise.
4867 * gimple.h (gimple_build_try): Return a specific subclass rather
4869 * gimplify.c (gimplify_cleanup_point_expr): Replace union access
4870 with subclass access by making use of new return type of
4872 * tree-phinodes.c: (allocate_phi_node): Return a
4873 "gimple_statement_phi *" rather than just a gimple.
4874 (resize_phi_node): Likewise.
4875 (make_phi_node): Replace union access with subclass access by
4876 making use of new return type of allocate_phi_node.
4877 (reserve_phi_args_for_new_edge): Replace union access with as_a.
4878 (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
4880 (remove_phi_args): Update for change to remove_phi_arg_num.
4882 * gdbhooks.py (GimplePrinter.to_string): Update lookup of
4883 code field to reflect inheritance, rather than embedding of
4884 the base gimple type.
4886 2013-11-19 Richard Biener <rguenther@suse.de>
4888 * cfgloop.h (struct loop_iterator): C++-ify, add constructor
4889 and destructor and make fel_next a member function.
4890 (fel_next): Transform into ...
4891 (loop_iterator::next): ... this.
4892 (fel_init): Transform into ...
4893 (loop_iterator::loop_iterator): ... this.
4894 (loop_iterator::~loop_iterator): New.
4895 (FOR_EACH_LOOP): Remove loop-iterator argument.
4896 (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
4897 * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
4898 graphite-clast-to-gimple.c, graphite-scop-detection.c,
4899 graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
4900 loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
4901 modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
4902 tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
4903 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
4904 tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
4905 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
4906 tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
4907 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
4908 uses of FOR_EACH_LOOP and remove loop_iterator variables. Replace
4909 FOR_EACH_LOOP_BREAK with break.
4911 2013-11-19 Richard Biener <rguenther@suse.de>
4913 PR tree-optimization/59164
4914 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
4916 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust check
4917 whether we can create an epilogue loop to reflect thecases where
4920 2013-11-19 Andrew MacLeod <amacleod@redhat.com>
4922 * graphite-sese-to-poly.c: Include expr.h.
4924 2013-11-19 Richard Biener <rguenther@suse.de>
4927 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
4928 loads into stmts that may clobber it.
4930 2013-11-19 Bernd Schmidt <bernds@codesourcery.com>
4932 * cgraphunit.c (symtab_terminator): New variable.
4933 (queued_nodes): Renamed from first. Use symtab_terminator as
4935 (analyze_functions): Adjust accordingly.
4936 (cgraph_process_new_functions): Return void.
4937 * cgraph.h (cgraph_process_new_functions): Adjust declaration.
4939 2013-11-19 Marek Polacek <polacek@redhat.com>
4941 * opts.c (common_handle_option): Add -fsanitize=null option.
4942 Turn off -fdelete-null-pointer-checks option when doing the
4943 NULL pointer checking.
4944 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
4945 * tree-pass.h (make_pass_ubsan): Declare.
4946 (make_pass_sanopt): Declare.
4947 * timevar.def (TV_TREE_UBSAN): New timevar.
4948 * passes.def: Add pass_sanopt and pass_ubsan.
4949 * ubsan.h (ubsan_null_ckind): New enum.
4950 (ubsan_mismatch_data): New struct.
4951 (ubsan_expand_null_ifn): Declare.
4952 (ubsan_create_data): Adjust declaration.
4953 (ubsan_type_descriptor): Likewise.
4954 * asan.c: Include "ubsan.h".
4955 (pass_data_sanopt): New pass.
4956 (execute_sanopt): New function.
4957 (gate_sanopt): Likewise.
4958 (make_pass_sanopt): Likewise.
4959 (class pass_sanopt): New class.
4960 * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
4961 gimple-iterator.h and cfgloop.h.
4962 (PROB_VERY_UNLIKELY): Define.
4963 (tree_type_map_hash): New function.
4964 (ubsan_type_descriptor): Add new parameter.
4965 Improve type name generation.
4966 (ubsan_create_data): Add new parameter. Add pointer data into
4968 (ubsan_expand_null_ifn): New function.
4969 (instrument_member_call): Likewise.
4970 (instrument_mem_ref): Likewise.
4971 (instrument_null): Likewise.
4972 (ubsan_pass): Likewise.
4973 (gate_ubsan): Likewise.
4974 (make_pass_ubsan): Likewise.
4975 (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
4976 (class pass_ubsan): New class.
4977 (pass_data_ubsan): New pass.
4978 * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
4979 * internal-fn.c (expand_UBSAN_NULL): New function.
4980 * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
4981 even when !flag_toplevel_reorder.
4982 * internal-fn.def (UBSAN_NULL): New.
4984 2013-11-19 Jan Hubicka <jh@suse.cz>
4986 * cgraph.c (cgraph_create_indirect_edge): Use
4987 get_polymorphic_call_info.
4988 * cgraph.h (cgraph_indirect_call_info): Add outer_type,
4989 maybe_in_construction and maybe_derived_type.
4990 * ipa-utils.h (ipa_polymorphic_call_context): New structure.
4991 (ipa_dummy_polymorphic_call_context): New global var.
4992 (possible_polymorphic_call_targets): Add context paramter.
4993 (dump_possible_polymorphic_call_targets): Likewise; update wrappers.
4994 (possible_polymorphic_call_target_p): Likewise.
4995 (get_polymorphic_call_info): New function.
4996 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
4997 (add_type_duplicate): Remove forgotten debug output.
4998 (method_class_type): Add sanity check.
4999 (maybe_record_node): Add FINALP parameter.
5000 (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
5001 by info by get_binfo_at_offset.
5002 (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET
5003 parameters; pass them to record-binfo.
5004 (polymorphic_call_target_d): Add context and FINAL.
5005 (polymorphic_call_target_hasher::hash): Hash context.
5006 (polymorphic_call_target_hasher::equal): Compare context.
5007 (free_polymorphic_call_targets_hash):
5008 (get_class_context): New function.
5009 (contains_type_p): New function.
5010 (get_polymorphic_call_info): New function.
5011 (walk_bases): New function.
5012 (possible_polymorphic_call_targets): Add context parameter; honnor it.
5013 (dump_possible_polymorphic_call_targets): Dump context.
5014 (possible_polymorphic_call_target_p): Add context.
5015 (update_type_inheritance_graph): Update comment.s
5016 (ipa_set_jf_known_type): Assert that compoentn type is known.
5017 (ipa_note_param_call): Do not tamper with offsets.
5018 (ipa_analyze_indirect_call_uses): When offset is being changed; clear
5020 (update_indirect_edges_after_inlining): Likewise.
5021 (ipa_write_indirect_edge_info): Stream new fields.
5022 (ipa_read_indirect_edge_info): Stream in new fields.
5024 2013-11-19 Jan Hubicka <jh@suse.cz>
5026 * tree-pretty-print.c (dump_generic_node): Print class type of
5029 2013-11-19 Joey Ye <joey.ye@arm.com>
5031 * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
5032 * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
5034 * config/arm/arm.c (arm_option_override): By default disable
5035 -marm-pic-data-is-text-relative.
5036 (legitimize_pic_address): Use arm_pic_data_is_text_relative.
5037 (arm_assemble_integer): Likewise.
5038 * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
5039 New macro to initialize -marm-pic-data-is-text-relative.
5041 2013-11-19 Bin Cheng <bin.cheng@arm.com>
5043 * tree-ssa-loop-ivopts.c (enum ainc_type): New.
5044 (address_cost_data): New field.
5045 (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
5046 Use ainc_costs for auto-increment rtx patterns. Cleanup TWS.
5048 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
5050 * config/aarch64/aarch64.md: Remove v8type from all insns.
5052 2013-11-19 Richard Biener <rguenther@suse.de>
5054 PR tree-optimization/57517
5055 * tree-predcom.c (combinable_refs_p): Verify the combination
5056 is always executed when the refs are.
5058 2013-11-19 Jeff Law <law@redhat.com>
5060 * tree-ssa-threadupdate.c: Include ssa-iterators.h
5061 (copy_phi_arg_into_existing_phi): New function.
5062 (any_remaining_duplicated_blocks): Likewise.
5063 (ssa_fix_duplicate_block_edges): Handle multiple duplicated
5064 blocks on a jump threading path.
5066 * tree-ssa-threadupdate.c (thread_through_loop_header): Do not
5067 thread through a joiner which has the latch edge.
5069 2013-11-19 Jan Hubicka <jh@suse.cz>
5071 * md.texi (setmem): Document new parameter.
5072 * optabs.c (maybe_gen_insn): Support 9 operands.
5073 * builtins.c (determine_block_size): Add probable_max_size;
5074 support anti-ranges.
5075 (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
5077 * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
5078 emit_block_move, clear_storage_hints, set_storage_via_setmem):
5080 * expr.h (emit_block_move_hints, clear_storage_hints,
5081 set_storage_via_setmem): Update prototype.
5082 * i386.md (setmem, movmem patterns): Add 9th operand.
5083 * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
5084 * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
5085 argument; pass it to decide_alg.
5087 2013-11-19 David Malcolm <dmalcolm@redhat.com>
5089 * basic-block.h (n_basic_blocks_for_function): Rename macro to...
5090 (n_basic_blocks_for_fn): ...this.
5092 (n_basic_blocks): Eliminate macro as work towards making uses of
5095 * cfgloop.c (init_loops_structure): Update for renaming of
5096 "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
5097 * graph.c (draw_cfg_nodes_no_loops): Likewise.
5098 * ipa-utils.c (ipa_merge_profiles): Likewise.
5099 * lto-streamer-in.c (make_new_block): Likewise.
5100 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
5101 (dump_function_to_file): Likewise.
5103 * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
5104 macro with "n_basic_blocks_for_fn (cfun)".
5105 * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
5106 (duplicate_computed_gotos): Likewise.
5107 (reorder_basic_blocks): Likewise.
5108 * bt-load.c (augment_live_range): Likewise.
5109 * cfg.c (expunge_block): Likewise.
5110 (compact_blocks): Likewise.
5111 * cfganal.c (single_pred_before_succ_order): Likewise.
5112 (compute_idf): Likewise.
5113 (flow_dfs_compute_reverse_init): Likewise.
5114 (pre_and_rev_post_order_compute): Likewise.
5115 (pre_and_rev_post_order_compute_fn): Likewise.
5116 (inverted_post_order_compute): Likewise.
5117 (post_order_compute): Likewise.
5118 (print_edge_list): Likewise.
5119 (find_unreachable_blocks): Likewise.
5120 (mark_dfs_back_edges): Likewise.
5121 * cfgcleanup.c (try_optimize_cfg): Likewise.
5122 (try_forward_edges): Likewise.
5123 * cfghooks.c (dump_flow_info): Likewise.
5124 * cfgloop.c (verify_loop_structure): Likewise.
5125 (get_loop_body): Likewise.
5126 (flow_loops_find): Likewise.
5127 * cfgloopmanip.c (add_loop): Likewise.
5128 (remove_path): Likewise.
5129 (find_path): Likewise.
5130 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
5131 (rtl_verify_bb_layout): Likewise.
5132 (entry_of_function): Likewise.
5133 (rtl_create_basic_block): Likewise.
5134 * coverage.c (coverage_compute_cfg_checksum): Likewise.
5135 * cprop.c (one_cprop_pass): Likewise.
5136 (is_too_expensive): Likewise.
5137 * df-core.c (df_compute_cfg_image): Likewise.
5138 (df_compact_blocks): Likewise.
5139 (df_worklist_dataflow_doublequeue): Likewise.
5140 * dominance.c (calculate_dominance_info): Likewise.
5141 (calc_dfs_tree): Likewise.
5142 (calc_dfs_tree_nonrec): Likewise.
5143 (init_dom_info): Likewise.
5144 * domwalk.c (cmp_bb_postorder): Likewise.
5145 * function.c (thread_prologue_and_epilogue_insns): Likewise.
5146 (generate_setjmp_warnings): Likewise.
5147 * fwprop.c (build_single_def_use_links): Likewise.
5148 * gcse.c (is_too_expensive): Likewise.
5149 (one_code_hoisting_pass): Likewise.
5150 (one_pre_gcse_pass): Likewise.
5151 * graphite.c (graphite_initialize): Likewise.
5152 * haifa-sched.c (haifa_sched_init): Likewise.
5153 * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
5154 * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
5155 * ira-build.c (ira_build): Likewise.
5156 * lcm.c (compute_nearerout): Likewise.
5157 (compute_available): Likewise.
5158 (compute_laterin): Likewise.
5159 (compute_antinout_edge): Likewise.
5160 * lra-lives.c (lra_create_live_ranges): Likewise.
5161 * lra.c (has_nonexceptional_receiver): Likewise.
5162 * mcf.c (create_fixup_graph): Likewise.
5163 * profile.c (branch_prob): Likewise.
5164 * reg-stack.c (convert_regs_2): Likewise.
5165 * regrename.c (regrename_analyze): Likewise.
5166 * reload1.c (has_nonexceptional_receiver): Likewise.
5167 * reorg.c (dbr_schedule): Likewise.
5168 * sched-deps.c (sched_deps_init): Likewise.
5169 * sched-ebb.c (schedule_ebbs): Likewise.
5170 * sched-rgn.c (extend_regions): Likewise.
5171 (schedule_insns): Likewise.
5172 (sched_rgn_init): Likewise.
5173 (extend_rgns): Likewise.
5174 (haifa_find_rgns): Likewise.
5175 * sel-sched-ir.c (recompute_rev_top_order): Likewise.
5176 (sel_recompute_toporder): Likewise.
5177 * sel-sched.c (run_selective_scheduling): Likewise.
5178 * store-motion.c (one_store_motion_pass): Likewise.
5179 (remove_reachable_equiv_notes): Likewise.
5180 * tracer.c (tracer): Likewise.
5181 (tail_duplicate): Likewise.
5182 * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
5183 (dump_cfg_stats): Likewise.
5184 (gimple_dump_cfg): Likewise.
5185 (create_bb): Likewise.
5186 (build_gimple_cfg): Likewise.
5187 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
5188 * tree-inline.c (optimize_inline_calls): Likewise.
5189 (fold_marked_statements): Likewise.
5190 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
5191 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
5192 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
5193 * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
5194 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
5195 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
5196 * tree-ssa-pre.c (do_pre): Likewise.
5197 (init_pre): Likewise.
5198 (compute_avail): Likewise.
5199 * tree-ssa-reassoc.c (init_reassoc): Likewise.
5200 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
5201 * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
5202 (init_worklist): Likewise.
5203 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
5204 * var-tracking.c (variable_tracking_main_1): Likewise.
5205 (vt_find_locations): Likewise.
5206 (vt_stack_adjustments): Likewise.
5207 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
5208 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
5210 2013-11-18 Jan Hubicka <jh@suse.cz>
5212 * profile.c (compute_branch_probabilities): Do not sanity check
5215 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
5217 * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
5219 * fold-const.c (fold_single_bit_test_into_sign_test)
5220 (fold_binary_loc): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
5222 2013-11-18 Teresa Johnson <tejohnson@google.com>
5224 * cfgrtl.c (cfg_layout_initialize): Assert if we try to go into
5225 cfglayout after bb reordering.
5226 * passes.def: Move compgotos before bb reordering since it goes into
5229 2013-11-18 Bernd Schmidt <bernds@codesourcery.com>
5231 * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
5232 * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
5234 (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
5235 make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
5236 pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
5237 * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
5238 * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
5239 Remove all_lto_gen_passes.
5240 * passes.c (pass_manager::dump_passes): Remove its use.
5241 (pass_manager::register_pass): Likewise.
5242 (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
5243 (pass_manager::pass_manager): Don't initialize or use it.
5244 (write_lto): New static function.
5245 (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
5246 instead of using all_lto_gen_passes.
5247 * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
5248 pass_ipa_lto_finish_out): Delete.
5249 * tree-pass.h (make_pass_ipa_lto_gimple_out,
5250 make_pass_ipa_lto_finish_out): Don't declare.
5252 2013-11-18 Jeff Law <law@redhat.com>
5254 * tree-ssa-threadupdate.c (redirection_data): Record two
5255 duplicated blocks instead of just one.
5256 (local_info): Explain why we don't create a template for the
5257 second duplicated block in a thread path.
5258 (create_block_for_threading): Accept argument indicating array
5259 index into redirection_data to store its result.
5260 (lookup_redirection_data): Initialize both duplicate blocks.
5261 (ssa_create_duplicates): If a jump threading path needs multiple
5262 blocks duplicated, then duplicate them.
5263 (ssa_fix_duplicate_block_edges): Corresponding changes.
5264 (ssa_fixup_template_block, thread_single_edge): Likewise.
5266 2013-11-18 Marek Polacek <polacek@redhat.com>
5268 * doc/invoke.texi: Extend -fsanitize=undefined documentation.
5270 2013-11-18 Andrew Pinski <apinski@cavium.com>
5271 Steve Ellcey <sellcey@mips.com>
5274 * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
5275 type restriction from equality_operator on conditonal move.
5276 (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
5277 (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
5279 2013-11-18 Jeff Law <law@redhat.com>
5281 * tree-ssa-threadupdate.c: Fix file block comment.
5282 Fix minor indention issue.
5284 2013-11-18 Uros Bizjak <ubizjak@gmail.com>
5286 * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
5287 ix86_address_subreg_operand. Move subreg checks to
5288 ix86_validate_address_register. Move address override check to
5289 ix86_legitimate_address_p.
5290 (ix86_validate_address_register): New function.
5291 (ix86_legitimate_address_p): Call ix86_validate_address_register
5292 to validate base and index registers. Add address override check
5293 from ix86_decompose_address.
5294 (ix86_decompose_address): Remove.
5296 2013-11-18 Richard Biener <rguenther@suse.de>
5298 PR tree-optimization/59125
5299 PR tree-optimization/54570
5300 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
5301 is not complete do not treat component-references with offset zero
5302 but different fields as equal.
5303 * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
5304 (compute_object_sizes): Apply TLC. Propagate the constant
5305 results into all uses and fold their stmts.
5306 * passes.def (pass_all_optimizations): Move pass_object_sizes
5307 after the first pass_forwprop and before pass_fre.
5309 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5311 * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
5312 * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
5313 (tree_ctz): Remove cast to unsigned type.
5314 * builtins.c (fold_builtin_memory_op): Likewise.
5315 * dwarf2out.c (descr_info_loc): Likewise.
5316 * godump.c (go_output_typedef): Likewise.
5317 * omp-low.c (expand_omp_simd): Likewise.
5318 * stor-layout.c (excess_unit_span): Likewise.
5319 * tree-object-size.c (addr_object_size): Likewise.
5320 * tree-sra.c (analyze_all_variable_accesses): Likewise.
5321 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
5322 (simplify_rotate): Likewise.
5323 * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
5324 (handle_pointer_plus): Likewise.
5325 * tree-switch-conversion.c (check_range): Likewise.
5326 * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
5327 * tsan.c (instrument_builtin_call): Likewise.
5328 * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
5329 * trans-mem.c (tm_log_add): Likewise.
5330 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
5331 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
5332 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
5333 * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
5335 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5337 * tree.h (host_integerp, tree_low_cst): Delete.
5338 * tree.c (host_integerp, tree_low_cst): Delete.
5340 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5342 * expr.h: Update comments to refer to tree_to_[su]hwi rather
5344 * fold-const.c (fold_binary_loc): Likewise.
5345 * expr.c (store_constructor): Use tree_to_uhwi rather than
5347 * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
5348 * stmt.c (emit_case_dispatch_table): Likewise.
5349 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
5351 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5353 * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
5354 config/aarch64/aarch64.c, config/alpha/predicates.md,
5355 config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
5356 config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
5357 config/mep/mep-pragma.c, config/mips/mips.c,
5358 config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
5359 dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
5360 function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
5361 predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
5362 tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
5363 tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
5364 tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
5365 tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
5366 tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
5367 Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
5369 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5371 * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
5372 config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
5373 config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
5374 coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
5375 fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
5376 predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
5377 tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
5378 tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
5379 tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
5380 tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
5381 Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
5383 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5385 * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
5386 * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
5388 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5390 * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
5393 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5395 * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
5396 config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
5397 gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
5398 tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
5399 tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
5400 tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
5401 tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
5402 config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
5403 config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
5404 config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
5405 gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
5406 tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
5407 tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
5408 tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
5409 tree_fits_uhwi_p throughout.
5411 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5413 * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
5414 config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
5415 config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
5416 expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
5417 gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
5418 omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
5419 stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
5420 tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
5421 tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
5422 tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
5423 tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
5424 tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
5425 varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
5428 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5430 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
5431 * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
5433 2013-11-18 Kirill Yukhin <kirill.yukhin@intel.com>
5435 * config/ia64/ia64.c (ia64_split_tmode_move): Mark load with `dead'
5436 flag if it kills its address, not its post-increment.
5438 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
5440 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
5441 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
5442 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
5443 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
5444 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
5445 (gimple_call_with_bounds_p): New.
5446 (gimple_call_set_with_bounds): New.
5447 (gimple_call_num_nobnd_args): Remove.
5448 (gimple_call_nobnd_arg): Remove.
5449 * tree.h (CALL_WITH_BOUNDS_P): New.
5450 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
5452 2013-11-18 Trevor Saunders <tsaunders@mozilla.com>
5454 * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
5455 (symtab_node_name): Rename to symtab_node::name.
5456 (cgraph_node_asm_name): Remove.
5457 (varpool_node_asm_name): Remove.
5458 * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
5459 ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
5460 ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
5461 ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
5462 tree-ssa-structalias.c value-prof.c varpool.c Adjust.
5464 2013-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5466 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
5467 * config/arm/arm.c (arm_cortex_a53_tune): New.
5468 * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
5470 2013-11-12 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
5472 * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
5473 (case ${target}): Add bdver4.
5474 * config/i386/bdver3.md: Add bdver4.
5475 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
5476 -march=native recognize bdver4 processors.
5477 * config/i386/i386-c.c (ix86_target_macros_internal): Add
5478 bdver4 def_and_undef
5479 * config/i386/i386.c (struct processor_costs bdver4_cost): New.
5480 (m_BDVER4): New definition.
5481 (m_AMD_MULTIPLE): Includes m_BDVER4.
5482 (processor_target_table): Add bdver4 entry.
5483 (static const char *const cpu_names): Add bdver4 entry.
5484 (software_prefetching_beneficial_p): Add bdver3.
5485 (ix86_option_override_internal): Add bdver4 instruction sets.
5486 (ix86_issue_rate): Add bdver4.
5487 (ix86_adjust_cost): Add bdver4.
5488 (ia32_multipass_dfa_lookahead): Add bdver4.
5489 (enum processor_model): Add M_AMDFAM15H_BDVER4.
5490 (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
5491 (has_dispatch): Add bdver4.
5492 * config/i386/i386.h (TARGET_BDVER4): New definition.
5493 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
5494 (enum processor_type): Add PROCESSOR_BDVER4.
5495 * config/i386/i386.md (define_attr "cpu"): Add bdver4.
5496 * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
5497 * doc/extend.texi: Add details about bdver4.
5498 * doc/invoke.texi: Add details about bdver4. Add
5499 fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
5501 2013-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5503 * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
5504 sdmode_stack_slot also in little-endian mode.
5506 2013-11-17 Jan Hubicka <jh@suse.cz>
5508 * doc/md.texi (setmem, movstr): Update documentation.
5509 * builtins.c (determine_block_size): New function.
5510 (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
5511 (expand_builtin_memset_args): Use it and pass it to
5512 set_storage_via_setmem.
5513 * expr.c (emit_block_move_via_movmem): Add min_size/max_size
5514 parameters; update call to expander.
5515 (emit_block_move_hints): Add min_size/max_size parameters.
5516 (clear_storage_hints): Likewise.
5517 (set_storage_via_setmem): Likewise.
5518 (clear_storage): Update.
5519 * expr.h (emit_block_move_hints, clear_storage_hints,
5520 set_storage_via_setmem): Update prototypes.
5521 * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
5522 (ix86_expand_movmem, ix86_expand_setmem): Remove.
5523 (ix86_expand_movmem, ix86_expand_setmem): Remove.
5524 * i386.md (movmem, setmem): Pass parameters.
5526 2013-11-17 Uros Bizjak <ubizjak@gmail.com>
5529 * config/i386/i386.c (ix86_address_subreg_operand): Do not
5530 reject non-integer subregs.
5531 (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
5532 Move check for invalid x32 constant addresses ...
5533 (ix86_legitimate_address_p): ... here.
5535 2011-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5537 * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
5538 parameter and use it in REG_FRAME_RELATED_EXPR note.
5539 (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
5541 (rs6000_emit_prologue): Likewise, but for little endian VSX
5542 stores, pass the source register of the store instead.
5544 2013-11-17 Andrew MacLeod <amacleod@redhat.com>
5546 * gimple.h: Reorder prototypes to match .c declaration order, and
5547 remove protyotypes for functions not in gimple.c.
5548 (LABEL): Move to tree-into-ssa.c.
5549 * gimple.c: Remove unused prototypes.
5550 (get_base_address): Move to tree.c.
5551 * tree.c (get_base_address): Relocate from gimple.c.
5552 * builtins.h (validate_gimple_arglist): Add prototype.
5553 * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
5554 * cfgexpand.h: New File.
5555 (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
5556 * tree.h (build_addr): Move to tree-nested.h.
5557 * tree-nested.h: New File.
5558 (build_addr, lower_nested_functions, insert_field_into_struct): Add
5560 * tree-inline.h (estimated_stack_frame_size): Remove prototype.
5561 * ipa-inline-analysis.c: Include cfgexpand.h.
5562 * cgraphunit.c: Include tree-nested.h.
5563 * omp-low.c: Likewise.
5564 * tree-parloops.c: Likewise.
5565 * gimple-low.h: Likewise.
5566 * tree-profile.h: Likewise.
5567 * expr.c: Include cfgexpand.h.
5568 * tree-affine.c: Likewise.
5569 * tree-ssa.c: Likewise.
5570 * tree-ssa-loop-im.c: Include trans-mem.h.
5571 * tree-ssa-tail-merge.c: Likewise.
5572 * value-prof.c: Include builtins.h and tree-nested.h.
5573 * tree-into-ssa.c (LABEL): Define here.
5575 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
5577 * config/arc/arc.c (arc_predicate_delay_insns): New function.
5578 (pass_data_arc_predicate_delay_insns): New pass_data instance.
5579 (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
5580 (make_pass_arc_predicate_delay_insns): New function.
5581 (arc_init): Register pass_arc_predicate_delay_insns if
5582 flag_delayed_branch is active.
5584 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
5586 * config/arc/constraints.md (Rcq): Simplify register number test.
5588 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
5590 * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
5592 2013-11-15 Kaz Kojima <kkojima@gcc.gnu.org>
5594 * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
5597 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
5599 * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
5600 * gimple-pretty-print.c (dump_omp_for): Add case for
5601 GF_OMP_FOR_KIND_CILKSIMD.
5602 * gimple.h (enum gf_mask): Restructure entries to add
5603 GF_OMP_FOR_KIND_CILKSIMD.
5604 * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
5605 (gimplify_omp_for): Handle CILK_SIMD.
5606 (gimplify_expr): Add ccase for CILK_SIMD.
5607 * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
5608 (build_outer_var_ref): Same.
5609 (check_omp_nesting_restrictions): Same.
5610 (lower_rec_input_clauses): Same.
5611 (lower_lastprivate_clauses): Same.
5612 (expand_omp_for): Same.
5613 (execute_expand_omp): Check flag_enable_cilkplus.
5614 (execute_lower_omp): Same.
5615 (diagnose_sb_0): Handle CILK_SIMD.
5616 (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
5617 (setjmp_or_longjmp_p): New.
5618 (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
5619 * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
5620 * tree.def: Add tree code for CILK_SIMD.
5622 2013-11-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5624 * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
5626 (altivec_vperm_<mode>): Revert earlier little endian change.
5627 (*altivec_vperm_<mode>_internal): Remove.
5628 (altivec_vperm_<mode>_uns): Revert earlier little endian change.
5629 (*altivec_vperm_<mode>_uns_internal): Remove.
5630 * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
5632 2013-11-15 Jeff Law <law@redhat.com>
5634 * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
5635 has_abnormal_or_outgoing_edge. Check for EH edges as well.
5636 * gimple-ssa-isolate-paths.c
5637 (find_implicit_erroneous_behaviour): Corresponding changes.
5638 Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
5639 (find_explicit_erroneous_behaviour): Likewise.
5641 2013-11-15 Jeff Law <law@redhat.com>
5643 * ifcvt.c (find_cond_trap): Properly handle case where
5646 2013-11-15 Andreas Schwab <schwab@linux-m68k.org>
5648 * configure: Regenerate.
5650 2013-11-15 James Greenhalgh <james.greenhalgh@arm.com>
5652 * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
5653 * config/aarch64/aarch64.md: Likewise, correct "type" attribute
5654 where it is incorrect or missing.
5656 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
5658 * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
5660 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
5661 Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
5663 * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
5664 pair with a TREE_CODE test and TREE_INT_CST_LOW.
5665 * tree-vect-generic.c (expand_vector_divmod): Likewise.
5667 2013-11-15 Richard Biener <rguenther@suse.de>
5669 PR tree-optimization/50262
5670 * tree-ssa-alias.h (struct pt_solution): Split
5671 vars_contains_global into vars_contains_nonlocal,
5672 vars_contains_escaped and vars_contains_escaped_heap.
5673 * tree-ssa-structalias.c (label_visit): Expand comment.
5674 (handle_lhs_call): Adjust comment.
5675 (set_uids_in_ptset): Set the new flags appropriately.
5676 (pt_solution_set): Adjust.
5677 (pt_solution_set_var): Likewise.
5678 (pt_solution_ior_into): Likewise.
5679 (pt_solution_includes_global): Likewise.
5680 (pt_solutions_intersect_1): Optimize escaped handling.
5681 (compute_points_to_sets): Remove heap variable globalization.
5682 (ipa_escaped_pt): Adjust initializer.
5683 (pass_data_ipa_pta): Do not run TODO_update_ssa.
5684 * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
5685 * tree-ssa-alias.c (dump_points_to_solution): Likewise.
5687 2013-11-15 Richard Biener <rguenther@suse.de>
5689 * tree-loop-distribution.c (tree_loop_distribution): Make sure
5690 to distribute all stores.
5692 2013-11-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5694 * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
5696 2013-11-15 Joseph Myers <joseph@codesourcery.com>
5698 * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
5699 * configure.ac: Determine target_header_dir earlier.
5700 (--with-glibc-version): New configure option.
5701 Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
5702 gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
5703 * configure: Regenerate.
5704 * doc/install.texi (--enable-gnu-unique-object): Don't refer to
5705 native toolchains for default.
5706 (--with-glibc-version): Document.
5708 2013-11-15 Eric Botcazou <ebotcazou@adacore.com>
5710 * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
5712 2013-11-15 Uros Bizjak <ubizjak@gmail.com>
5714 * lto-streamer-in.c (input function): Call cgraph_create_node if
5715 cgraph_get_node failed.
5717 2013-11-14 Olivier Hainque <hainque@adacore.com>
5719 * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
5720 defer allocation of DECL_IGNORED_P variables at toplevel unless really
5721 small. Factorize size threshold computation from the existing one.
5722 (expand_used_vars): Refine comment.
5724 2013-11-14 Cong Hou <congh@google.com>
5726 * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
5727 address field as it can be obtained from dr. Rename the struct.
5728 * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
5729 steps of data references during sort.
5730 (vect_prune_runtime_alias_test_list): Adjust with the change to
5731 struct dr_with_seg_len.
5732 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
5733 Adjust with the change to struct dr_with_seg_len.
5735 2013-11-14 Jeff Law <law@redhat.com>
5738 * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
5739 * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
5740 * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
5741 (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
5742 edges, then ignore it. If the statement exhibiting erroneous
5743 behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
5744 then we can not optimize.
5745 (find_explicit_erroneous_behaviour): Likewise.
5747 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
5749 * gimplify-me.h: New file. Add prototypes.
5750 * gimplify.h: Don't include gimple.h.
5751 (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
5752 Relocate from gimple.h.
5753 * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
5754 is_gimple_sizepos): Move to gimplify.h.
5755 (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
5756 (enum gsi_iterator_update): Move to gimple-iterator.h.
5757 * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
5758 * gimplify-me.c: New File.
5759 (force_gimple_operand_1, force_gimple_operand,
5760 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
5761 gimple_regimplify_operands): Relocate from gimplify.c.
5762 * gimplify.c (force_gimple_operand_1, force_gimple_operand,
5763 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
5764 gimple_regimplify_operands): Move to gimplify-me.c.
5765 (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
5767 * Makefile.in (OBJS): Add gimplify-me.o
5768 * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
5770 * cfgloopmanip.c: Likewise.
5771 * cgraphunit.c: Likewise.
5772 * cilk-common.c: Likewise.
5773 * fold-const.c: Likewise.
5774 * function.c: Likewise.
5775 * gimple-expr.c: Likewise.
5776 * gimple-fold.c: Likewise.
5777 * gimple-ssa-strength-reduction.c: Likewise.
5778 * gimple.c: Likewise.
5779 * graphite-clast-to-gimple.c: Likewise.
5780 * graphite-sese-to-poly.c: Likewise.
5781 * ipa-prop.c: Likewise.
5782 * ipa-split.c: Likewise.
5784 * langhooks.c: Likewise.
5785 * omp-low.c: Likewise.
5787 * stor-layout.c: Likewise.
5788 * targhooks.c: Likewise.
5789 * trans-mem.c: Likewise.
5790 * tree-affine.c: Likewise.
5791 * tree-cfg.c: Likewise.
5792 * tree-cfgcleanup.c: Likewise.
5793 * tree-complex.c: Likewise.
5794 * tree-if-conv.c: Likewise.
5795 * tree-inline.c: Likewise.
5796 * tree-loop-distribution.c: Likewise.
5797 * tree-nested.c: Likewise.
5798 * tree-parloops.c: Likewise.
5799 * tree-predcom.c: Likewise.
5800 * tree-profile.c: Likewise.
5801 * tree-scalar-evolution.c: Likewise.
5802 * tree-sra.c: Likewise.
5803 * tree-ssa-address.c: Likewise.
5804 * tree-ssa-ccp.c: Likewise.
5805 * tree-ssa-dce.c: Likewise.
5806 * tree-ssa-forwprop.c: Likewise.
5807 * tree-ssa-ifcombine.c: Likewise.
5808 * tree-ssa-loop-im.c: Likewise.
5809 * tree-ssa-loop-ivopts.c: Likewise.
5810 * tree-ssa-loop-manip.c: Likewise.
5811 * tree-ssa-loop-niter.c: Likewise.
5812 * tree-ssa-loop-prefetch.c: Likewise.
5813 * tree-ssa-loop-unswitch.c: Likewise.
5814 * tree-ssa-math-opts.c: Likewise.
5815 * tree-ssa-phiopt.c: Likewise.
5816 * tree-ssa-phiprop.c: Likewise.
5817 * tree-ssa-pre.c: Likewise.
5818 * tree-ssa-propagate.c: Likewise.
5819 * tree-ssa-reassoc.c: Likewise.
5820 * tree-ssa-sccvn.c: Likewise.
5821 * tree-ssa-strlen.c: Likewise.
5822 * tree-ssa.c: Likewise.
5823 * tree-switch-conversion.c: Likewise.
5824 * tree-tailcall.c: Likewise.
5825 * tree-vect-data-refs.c: Likewise.
5826 * tree-vect-generic.c: Likewise.
5827 * tree-vect-loop-manip.c: Likewise.
5828 * tree-vect-loop.c: Likewise.
5829 * tree-vect-patterns.c: Likewise.
5830 * tree-vect-stmts.c: Likewise.
5833 * value-prof.c: Likewise.
5834 * config/aarch64/aarch64.c: Likewise.
5835 * config/alpha/alpha.c: Likewise.
5836 * config/darwin.c: Likewise.
5837 * config/i386/i386.c: Likewise.
5838 * config/ia64/ia64.c: Likewise.
5839 * config/mep/mep.c: Likewise.
5840 * config/mips/mips.c: Likewise.
5841 * config/rs6000/rs6000.c: Likewise.
5842 * config/s390/s390.c: Likewise.
5843 * config/sh/sh.c: Likewise.
5844 * config/sparc/sparc.c: Likewise.
5845 * config/spu/spu.c: Likewise.
5846 * config/stormy16/stormy16.c: Likewise.
5847 * config/tilegx/tilegx.c: Likewise.
5848 * config/tilepro/tilepro.c: Likewise.
5849 * config/xtensa/xtensa.c: Likewise.
5851 2013-11-14 Diego Novillo <dnovillo@google.com>
5853 * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
5855 2013-11-14 Diego Novillo <dnovillo@google.com>
5857 * tree.h: Include fold-const.h.
5858 (aggregate_value_p): Moved to function.h.
5859 (alloca_call_p): Moved to calls.h.
5860 (allocate_struct_function): Moved to function.h.
5861 (apply_tm_attr): Moved to attribs.h.
5862 (array_at_struct_end_p): Moved to expr.h.
5863 (array_ref_element_size): Moved to tree-dfa.h.
5864 (array_ref_low_bound): Moved to tree-dfa.h.
5865 (array_ref_up_bound): Moved to tree.h.
5866 (assemble_alias): Moved to cgraph.h.
5867 (bit_from_pos): Moved to stor-layout.h.
5868 (build_addr): Moved to tree-nested.h.
5869 (build_duplicate_type): Moved to tree-inline.h.
5870 (build_fold_addr_expr): Moved to fold-const.h.
5871 (build_fold_addr_expr_with_type): Moved to fold-const.h.
5872 (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
5873 (build_fold_indirect_ref): Moved to fold-const.h.
5874 (build_fold_indirect_ref_loc): Moved to fold-const.h.
5875 (build_personality_function): Moved to tree.h.
5876 (build_range_check): Moved to fold-const.h.
5877 (build_simple_mem_ref): Moved to fold-const.h.
5878 (build_simple_mem_ref_loc): Moved to fold-const.h.
5879 (build_tm_abort_call): Moved to trans-mem.h.
5880 (byte_from_pos): Moved to stor-layout.h.
5881 (call_expr_flags): Moved to calls.h.
5882 (can_move_by_pieces): Moved to expr.h.
5883 (categorize_ctor_elements): Moved to expr.h.
5884 (change_decl_assembler_name): Moved to gcc-symtab.h.
5885 (combine_comparisons): Moved to fold-const.h.
5886 (complete_ctor_at_level_p): Moved to tree.h.
5887 (component_ref_field_offset): Moved to tree-dfa.h.
5888 (compute_builtin_object_size): Moved to tree-object-size.h.
5889 (compute_record_mode): Moved to stor-layout.h.
5890 (constant_boolean_node): Moved to fold-const.h.
5891 (constructor_static_from_elts_p): Moved to varasm.h.
5892 (cxx11_attribute_p): Moved to attribs.h.
5893 (debug_body): Moved to print-tree.h.
5894 (debug_find_tree): Moved to tree-inline.h.
5895 (debug_fold_checksum): Moved to fold-const.h.
5896 (debug_head): Moved to print-tree.h.
5897 (debug_head): Moved to print-tree.h.
5898 (debug_raw): Moved to print-tree.h.
5899 (debug_tree): Moved to print-tree.h.
5900 (debug_vec_tree): Moved to print-tree.h.
5901 (debug_verbose): Moved to print-tree.h.
5902 (debug_verbose): Moved to print-tree.h.
5903 (decl_attributes): Moved to attribs.h.
5904 (decl_binds_to_current_def_p): Moved to varasm.h.
5905 (decl_default_tls_model): Moved to varasm.h.
5906 (decl_replaceable_p): Moved to varasm.h.
5907 (div_if_zero_remainder): Moved to fold-const.h.
5908 (double_int mem_ref_offset): Moved to fold-const.h.
5909 (dump_addr): Moved to print-tree.h.
5910 (element_precision): Moved to machmode.h.
5911 (expand_dummy_function_end): Moved to function.h.
5912 (expand_function_end): Moved to function.h.
5913 (expand_function_start): Moved to function.h.
5914 (expand_label): Moved to stmt.h.
5915 (expr_first): Moved to tree-iterator.h.
5916 (expr_last): Moved to tree-iterator.h.
5917 (finalize_size_functions): Moved to stor-layout.h.
5918 (finish_builtin_struct): Moved to stor-layout.h.
5919 (finish_record_layout): Moved to stor-layout.h.
5920 (fixup_signed_type): Moved to stor-layout.h.
5921 (fixup_unsigned_type): Moved to stor-layout.h.
5922 (flags_from_decl_or_type): Moved to calls.h.
5923 (fold): Moved to fold-const.h.
5924 (fold_abs_const): Moved to fold-const.h.
5925 (fold_binary): Moved to fold-const.h.
5926 (fold_binary_loc): Moved to fold-const.h.
5927 (fold_binary_to_constant): Moved to fold-const.h.
5928 (fold_build1): Moved to fold-const.h.
5929 (fold_build1_initializer_loc): Moved to fold-const.h.
5930 (fold_build1_loc): Moved to fold-const.h.
5931 (fold_build1_stat_loc): Moved to fold-const.h.
5932 (fold_build2): Moved to fold-const.h.
5933 (fold_build2_initializer_loc): Moved to fold-const.h.
5934 (fold_build2_loc): Moved to fold-const.h.
5935 (fold_build2_stat_loc): Moved to fold-const.h.
5936 (fold_build3): Moved to fold-const.h.
5937 (fold_build3_loc): Moved to fold-const.h.
5938 (fold_build3_stat_loc): Moved to fold-const.h.
5939 (fold_build_call_array): Moved to fold-const.h.
5940 (fold_build_call_array_initializer): Moved to fold-const.h.
5941 (fold_build_call_array_initializer_loc): Moved to fold-const.h.
5942 (fold_build_call_array_loc): Moved to fold-const.h.
5943 (fold_build_cleanup_point_expr): Moved to fold-const.h.
5944 (fold_convert): Moved to fold-const.h.
5945 (fold_convert_loc): Moved to fold-const.h.
5946 (fold_convertible_p): Moved to fold-const.h.
5947 (fold_defer_overflow_warnings): Moved to fold-const.h.
5948 (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
5949 (fold_fma): Moved to fold-const.h.
5950 (fold_ignored_result): Moved to fold-const.h.
5951 (fold_indirect_ref): Moved to fold-const.h.
5952 (fold_indirect_ref_1): Moved to fold-const.h.
5953 (fold_indirect_ref_loc): Moved to fold-const.h.
5954 (fold_read_from_constant_string): Moved to fold-const.h.
5955 (fold_real_zero_addition_p): Moved to fold-const.h.
5956 (fold_single_bit_test): Moved to fold-const.h.
5957 (fold_strip_sign_ops): Moved to fold-const.h.
5958 (fold_ternary): Moved to fold-const.h.
5959 (fold_ternary_loc): Moved to fold-const.h.
5960 (fold_unary): Moved to tree-data-ref.h.
5961 (fold_unary_ignore_overflow): Moved to fold-const.h.
5962 (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
5963 (fold_unary_loc): Moved to fold-const.h.
5964 (fold_unary_to_constant): Moved to fold-const.h.
5965 (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
5966 (fold_undefer_overflow_warnings): Moved to fold-const.h.
5967 (folding_initializer): Moved to fold-const.h.
5968 (free_temp_slots): Moved to function.h.
5969 (generate_setjmp_warnings): Moved to function.h.
5970 (get_attribute_name): Moved to attribs.h.
5971 (get_identifier): Moved to stringpool.h.
5972 (get_identifier_with_length): Moved to stringpool.h.
5973 (get_inner_reference): Moved to tree.h.
5974 (gimple_alloca_call_p): Moved to calls.h.
5975 (gimplify_parameters): Moved to function.h.
5976 (highest_pow2_factor): Moved to expr.h.
5977 (indent_to): Moved to print-tree.h.
5978 (init_attributes): Moved to attribs.h.
5979 (init_dummy_function_start): Moved to function.h.
5980 (init_function_start): Moved to function.h.
5981 (init_inline_once): Moved to tree-inline.h.
5982 (init_object_sizes): Moved to tree-object-size.h.
5983 (init_temp_slots): Moved to function.h.
5984 (init_tree_optimization_optabs): Moved to optabs.h.
5985 (initialize_sizetypes): Moved to stor-layout.h.
5986 (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
5987 (initializer_constant_valid_p): Moved to varasm.h.
5988 (int_const_binop): Moved to fold-const.h.
5989 (internal_reference_types): Moved to stor-layout.h.
5990 (invert_tree_comparison): Moved to fold-const.h.
5991 (invert_truthvalue): Moved to fold-const.h.
5992 (invert_truthvalue_loc): Moved to fold-const.h.
5993 (is_tm_ending_fndecl): Moved to trans-mem.h.
5994 (is_tm_may_cancel_outer): Moved to trans-mem.h.
5995 (is_tm_pure): Moved to trans-mem.h.
5996 (is_tm_safe): Moved to trans-mem.h.
5997 (layout_decl): Moved to stor-layout.h.
5998 (layout_type): Moved to stor-layout.h.
5999 (lookup_attribute_spec): Moved to attribs.h.
6000 (make_accum_type): Moved to stor-layout.h.
6001 (make_decl_one_only): Moved to varasm.h.
6002 (make_decl_rtl): Moved to tree.h.
6003 (make_decl_rtl_for_debug): Moved to varasm.h.
6004 (make_fract_type): Moved to stor-layout.h.
6005 (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
6006 (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
6007 (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
6008 (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
6009 (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
6010 (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
6011 (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
6012 (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
6013 (make_range): Moved to fold-const.h.
6014 (make_range_step): Moved to fold-const.h.
6015 (make_sat_signed_accum_type): Moved to stor-layout.h.
6016 (make_sat_signed_fract_type): Moved to stor-layout.h.
6017 (make_sat_unsigned_accum_type): Moved to stor-layout.h.
6018 (make_sat_unsigned_fract_type): Moved to stor-layout.h.
6019 (make_signed_accum_type): Moved to stor-layout.h.
6020 (make_signed_fract_type): Moved to stor-layout.h.
6021 (make_signed_type): Moved to stor-layout.h.
6022 (make_unsigned_accum_type): Moved to stor-layout.h.
6023 (make_unsigned_fract_type): Moved to stor-layout.h.
6024 (make_unsigned_type): Moved to stor-layout.h.
6025 (mark_decl_referenced): Moved to varasm.h.
6026 (mark_referenced): Moved to varasm.h.
6027 (may_negate_without_overflow_p): Moved to fold-const.h.
6028 (maybe_get_identifier): Moved to stringpool.h.
6029 (merge_ranges): Moved to fold-const.h.
6030 (merge_weak): Moved to varasm.h.
6031 (mode_for_size_tree): Moved to stor-layout.h.
6032 (multiple_of_p): Moved to fold-const.h.
6033 (must_pass_in_stack_var_size): Moved to calls.h.
6034 (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
6035 (native_encode_expr): Moved to fold-const.h.
6036 (native_interpret_expr): Moved to fold-const.h.
6037 (non_lvalue): Moved to fold-const.h.
6038 (non_lvalue_loc): Moved to fold-const.h.
6039 (normalize_offset): Moved to stor-layout.h.
6040 (normalize_rli): Moved to stor-layout.h.
6041 (notice_global_symbol): Moved to varasm.h.
6042 (omit_one_operand): Moved to fold-const.h.
6043 (omit_one_operand_loc): Moved to fold-const.h.
6044 (omit_two_operands): Moved to fold-const.h.
6045 (omit_two_operands_loc): Moved to fold-const.h.
6046 (operand_equal_p): Moved to tree-data-ref.h.
6047 (parse_input_constraint): Moved to stmt.h.
6048 (parse_output_constraint): Moved to stmt.h.
6049 (place_field): Moved to stor-layout.h.
6050 (pop_function_context): Moved to function.h.
6051 (pop_temp_slots): Moved to function.h.
6052 (pos_from_bit): Moved to stor-layout.h.
6053 (preserve_temp_slots): Moved to function.h.
6054 (print_node): Moved to print-tree.h.
6055 (print_node_brief): Moved to print-tree.h.
6056 (print_rtl): Moved to rtl.h.
6057 (process_pending_assemble_externals): Moved to varasm.h.
6058 (ptr_difference_const): Moved to fold-const.h.
6059 (push_function_context): Moved to function.h.
6060 (push_struct_function): Moved to function.h.
6061 (push_temp_slots): Moved to function.h.
6062 (record_tm_replacement): Moved to trans-mem.h.
6063 (relayout_decl): Moved to stor-layout.h.
6064 (resolve_asm_operand_names): Moved to stmt.h.
6065 (resolve_unique_section): Moved to varasm.h.
6066 (rli_size_so_far): Moved to stor-layout.h.
6067 (rli_size_unit_so_far): Moved to stor-layout.h.
6068 (round_down): Moved to fold-const.h.
6069 (round_down_loc): Moved to fold-const.h.
6070 (round_up): Moved to fold-const.h.
6071 (round_up_loc): Moved to fold-const.h.
6072 (set_decl_incoming_rtl): Moved to emit-rtl.h.
6073 (set_decl_rtl): Moved to tree.h.
6074 (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
6075 (set_user_assembler_name): Moved to varasm.h.
6076 (setjmp_call_p): Moved to calls.h.
6077 (size_binop): Moved to fold-const.h.
6078 (size_binop_loc): Moved to fold-const.h.
6079 (size_diffop): Moved to fold-const.h.
6080 (size_diffop_loc): Moved to fold-const.h.
6081 (size_int_kind): Moved to fold-const.h.
6082 (stack_protect_epilogue): Moved to function.h.
6083 (start_record_layout): Moved to stor-layout.h.
6084 (supports_one_only): Moved to varasm.h.
6085 (swap_tree_comparison): Moved to fold-const.h.
6086 (tm_malloc_replacement): Moved to trans-mem.h.
6087 (tree build_fold_addr_expr_loc): Moved to fold-const.h.
6088 (tree build_invariant_address): Moved to fold-const.h.
6089 (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
6090 (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
6091 (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
6092 (tree_expr_nonnegative_p): Moved to fold-const.h.
6093 (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
6094 (tree_output_constant_def): Moved to varasm.h.
6095 (tree_overlaps_hard_reg_set): Moved to stmt.h.
6096 (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
6097 (tree_single_nonzero_warnv_p): Moved to fold-const.h.
6098 (tree_swap_operands_p): Moved to fold-const.h.
6099 (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
6100 (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
6101 (update_alignment_for_field): Moved to stor-layout.h.
6102 (use_register_for_decl): Moved to function.h.
6103 (variable_size): Moved to rtl.h.
6104 (vector_type_mode): Moved to stor-layout.h.
6105 * cgraph.h: Corresponding changes.
6106 * emit-rtl.h: Corresponding changes.
6107 * expr.h: Corresponding changes.
6108 * function.h: Corresponding changes.
6109 * optabs.h: Corresponding changes.
6110 * trans-mem.h: Corresponding changes.
6111 Protect against multiple inclusion.
6112 * tree-inline.h: Corresponding changes.
6113 * tree-iterator.h: Corresponding changes.
6114 * tree-dfa.h: Include expr.h.
6115 * tree-ssanames.h: Include stringpool.h.
6116 * attribs.h: New file.
6117 * calls.h: New file.
6118 * fold-const.h: New file.
6119 * gcc-symtab.h: New file.
6120 * print-rtl.h: New file.
6121 * print-tree.h: New file.
6123 * stor-layout.h: New file.
6124 * strinpool.h: New file.
6125 * tree-nested.h: New file
6126 * tree-object-size.h: New file.
6127 * varasm.h: New file.
6129 2013-11-14 Diego Novillo <dnovillo@google.com>
6131 * alias.c: Include varasm.h.
6133 * asan.c: Include calls.h.
6134 Include stor-layout.h.
6136 * attribs.c: Include stringpool.h.
6138 Include stor-layout.h.
6139 * builtins.c: Include stringpool.h.
6140 Include stor-layout.h.
6143 Include tree-object-size.h.
6144 * calls.c: Include stor-layout.h.
6146 Include stringpool.h.
6148 * cfgexpand.c: Include stringpool.h.
6150 Include stor-layout.h.
6152 Include print-tree.h.
6153 * cgraph.c: Include varasm.h.
6155 Include print-tree.h.
6156 * cgraphclones.c: Include stringpool.h.
6159 Move inclusion of rtl.h earlier in the file.
6160 * cgraphunit.c: Include varasm.h.
6161 Include stor-layout.h.
6162 Include stringpool.h.
6163 * cilk-common.c: Include stringpool.h.
6164 Include stor-layout.h.
6165 * combine.c: Include stor-layout.h.
6166 * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
6167 Include stringpool.h.
6169 * config/aarch64/aarch64.c: Include stringpool.h.
6170 Include stor-layout.h.
6173 * config/alpha/alpha.c: Include stor-layout.h.
6176 * config/arc/arc.c: Include varasm.h.
6177 Include stor-layout.h.
6178 Include stringpool.h.
6180 * config/arm/arm.c: Include stringpool.h.
6181 Include stor-layout.h.
6184 * config/avr/avr-c.c: Include stor-layout.h.
6185 * config/avr/avr-log.c: Include print-tree.h.
6186 * config/avr/avr.c: Include print-tree.h.
6188 Include stor-layout.h.
6189 Include stringpool.h.
6190 * config/bfin/bfin.c: Include varasm.h.
6192 * config/c6x/c6x.c: Include stor-layout.h.
6195 Include stringpool.h.
6196 * config/cr16/cr16.c: Include stor-layout.h.
6198 * config/cris/cris.c: Include varasm.h.
6199 Include stor-layout.h.
6202 * config/darwin.c: Include stringpool.h.
6204 Include stor-layout.h.
6205 * config/epiphany/epiphany.c: Include stor-layout.h.
6208 Include stringpool.h.
6209 * config/fr30/fr30.c: Include stor-layout.h.
6211 * config/frv/frv.c: Include varasm.h.
6212 Include stor-layout.h.
6213 Include stringpool.h.
6214 * config/h8300/h8300.c: Include stor-layout.h.
6217 Include stringpool.h.
6218 * config/i386/i386.c: Include stringpool.h.
6221 Include stor-layout.h.
6223 * config/i386/winnt-cxx.c: Include stringpool.h.
6225 * config/i386/winnt.c: Include stringpool.h.
6227 * config/ia64/ia64-c.c: Include stringpool.h.
6228 * config/ia64/ia64.c: Include stringpool.h.
6229 Include stor-layout.h.
6232 * config/iq2000/iq2000.c: Include stor-layout.h.
6235 * config/lm32/lm32.c: Include calls.h.
6236 * config/m32c/m32c.c: Include stor-layout.h.
6239 * config/m32r/m32r.c: Include stor-layout.h.
6241 Include stringpool.h.
6243 * config/m68k/m68k.c: Include calls.h.
6244 Include stor-layout.h.
6246 * config/mcore/mcore.c: Include stor-layout.h.
6248 Include stringpool.h.
6250 * config/mep/mep.c: Include varasm.h.
6252 Include stringpool.h.
6253 Include stor-layout.h.
6254 * config/microblaze/microblaze.c: Include varasm.h.
6255 Include stor-layout.h.
6257 * config/mips/mips.c: Include varasm.h.
6258 Include stringpool.h.
6259 Include stor-layout.h.
6261 * config/mmix/mmix.c: Include varasm.h.
6262 Include stor-layout.h.
6264 * config/mn10300/mn10300.c: Include stor-layout.h.
6267 * config/moxie/moxie.c: Include stor-layout.h.
6270 * config/msp430/msp430.c: Include stor-layout.h.
6272 * config/nds32/nds32.c: Include stor-layout.h.
6275 * config/pa/pa.c: Include stor-layout.h.
6276 Include stringpool.h.
6279 * config/pdp11/pdp11.c: Include stor-layout.h.
6282 * config/picochip/picochip.c: Include calls.h.
6283 Include stor-layout.h.
6284 Include stringpool.h.
6286 * config/rl78/rl78.c: Include varasm.h.
6287 Include stor-layout.h.
6289 * config/rs6000/rs6000-c.c: Include stor-layout.h.
6290 Include stringpool.h.
6291 * config/rs6000/rs6000.c: Include stringpool.h.
6292 Include stor-layout.h.
6294 Include print-tree.h.
6296 * config/rx/rx.c: Include varasm.h.
6297 Include stor-layout.h.
6299 * config/s390/s390.c: Include print-tree.h.
6300 Include stringpool.h.
6301 Include stor-layout.h.
6304 * config/score/score.c: Include stringpool.h.
6307 Include stor-layout.h.
6308 * config/sh/sh-c.c: Include stringpool.h.
6309 Include attribs.h.h.
6310 * config/sh/sh.c: Include stringpool.h.
6311 Include stor-layout.h.
6314 * config/sol2-c.c: Include stringpool.h.
6316 * config/sol2-cxx.c: Include stringpool.h.
6317 * config/sol2.c: Include stringpool.h.
6319 * config/sparc/sparc.c: Include stringpool.h.
6320 Include stor-layout.h.
6323 * config/spu/spu-c.c: Include stringpool.h.
6324 * config/spu/spu.c: Include stringpool.h.
6325 Include stor-layout.h.
6328 * config/stormy16/stormy16.c: Include stringpool.h.
6329 Include stor-layout.h.
6332 * config/tilegx/tilegx.c: Include stringpool.h.
6333 Include stor-layout.h.
6336 * config/tilepro/tilepro.c: Include stringpool.h.
6337 Include stor-layout.h.
6340 * config/v850/v850-c.c: Include stringpool.h.
6342 * config/v850/v850.c: Include stringpool.h.
6343 Include stor-layout.h.
6346 * config/vax/vax.c: Include calls.h.
6348 * config/vms/vms.c: Include stringpool.h.
6349 * config/vxworks.c: Include stringpool.h.
6350 * config/xtensa/xtensa.c: Include stringpool.h.
6351 Include stor-layout.h.
6354 * convert.c: Include stor-layout.h.
6355 * coverage.c: Include stringpool.h.
6356 Include stor-layout.h.
6357 * dbxout.c: Include varasm.h.
6358 Include stor-layout.h.
6359 * dojump.c: Include stor-layout.h.
6360 * dse.c: Include stor-layout.h.
6361 * dwarf2asm.c: Include stringpool.h.
6363 * dwarf2cfi.c: Include stor-layout.h.
6364 * dwarf2out.c: Include rtl.h.
6365 Include stringpool.h.
6366 Include stor-layout.h.
6370 Move inclusion of rtl.h earlier in the file.
6371 * emit-rtl.c: Include varasm.h.
6372 * except.c: Include stringpool.h.
6373 Include stor-layout.h.
6374 * explow.c: Include stor-layout.h.
6375 * expmed.c: Include stor-layout.h.
6376 * expr.c: Include stringpool.h.
6377 Include stor-layout.h.
6380 * final.c: Include varasm.h.
6381 * fold-const.c: Include stor-layout.h.
6383 Include tree-iterator.h.
6384 * function.c: Include stor-layout.h.
6386 Include stringpool.h.
6387 * genattrtab.c (write_header): Emit includes for varasm.h,
6388 stor-layout.h and calls.h.
6389 * genautomata.c (main): Likewise.
6390 * genemit.c: Likewise.
6391 * genopinit.c: Likewise.
6392 * genoutput.c (output_prologue): Likewise.
6393 * genpeep.c: Likewise.
6394 * genpreds.c (write_insn_preds_c): Likewise.
6395 * gengtype.c (open_base_files): Add stringpool.h.
6396 * gimple-expr.c: Include stringpool.h.
6397 Include stor-layout.h.
6398 * gimple-fold.c: Include stringpool.h.
6401 Include stor-layout.h.
6402 * gimple-low.c: Include tree-nested.h.
6404 * gimple-pretty-print.c: Include stringpool.h.
6405 * gimple-ssa-strength-reduction.c: Include stor-layout.h.
6407 * gimple-walk.c: Include stmt.h.
6408 * gimple.c: Include calls.h.
6410 Include stor-layout.h.
6411 * gimplify.c: Include stringpool.h.
6414 Include stor-layout.h.
6416 Include print-tree.h.
6418 * gimplify-me.c: Include stmt.h
6419 Include stor-layout.h
6420 * internal-fn.c: Include stor-layout.h.
6421 * ipa-devirt.c: Include print-tree.h.
6423 * ipa-inline-analysis.c: Include stor-layout.h.
6424 Include stringpool.h.
6425 Include print-tree.h.
6426 * ipa-inline.c: Include trans-mem.h.
6428 * ipa-prop.c: Include expr.h.
6429 Include stor-layout.h.
6430 Include print-tree.h.
6431 * ipa-pure-const.c: Include print-tree.h.
6433 * ipa-reference.c: Include calls.h.
6434 * ipa-split.c: Include stringpool.h.
6437 * ipa.c: Include calls.h.
6438 Include stringpool.h.
6439 * langhooks.c: Include stringpool.h.
6441 * lto-cgraph.c: Include stringpool.h.
6442 * lto-streamer-in.c: Include stringpool.h.
6443 * lto-streamer-out.c: Include stor-layout.h.
6444 Include stringpool.h.
6445 * omp-low.c: Include stringpool.h.
6446 Include stor-layout.h.
6448 * optabs.c: Include stor-layout.h.
6449 Include stringpool.h.
6451 * passes.c: Include varasm.h.
6452 * predict.c: Include calls.h.
6453 * print-rtl.c: Include print-tree.h.
6454 * print-tree.c: Include varasm.h.
6455 Include print-rtl.h.
6456 Include stor-layout.h.
6457 * realmpfr.c: Include stor-layout.h.
6458 * reg-stack.c: Include varasm.h.
6459 * sdbout.c: Include varasm.h.
6460 Include stor-layout.h.
6461 * simplify-rtx.c: Include varasm.h.
6462 * stmt.c: Include varasm.h.
6463 Include stor-layout.h.
6464 * stor-layout.c: Include stor-layout.h.
6465 Include stringpool.h.
6467 Include print-tree.h.
6468 * symtab.c: Include rtl.h.
6469 Include print-tree.h.
6473 * targhooks.c: Include stor-layout.h.
6475 * toplev.c: Include varasm.h.
6476 Include tree-inline.h.
6477 * trans-mem.c: Include calls.h.
6481 * tree-affine.c: Include expr.h.
6482 * tree-browser.c: Include print-tree.h.
6483 * tree-call-cdce.c: Include stor-layout.h.
6484 * tree-cfg.c: Include trans-mem.h.
6485 Include stor-layout.h.
6486 Include print-tree.h.
6487 * tree-complex.c: Include stor-layout.h.
6488 * tree-data-ref.c: Include expr.h.
6489 * tree-dfa.c: Include stor-layout.h.
6490 * tree-eh.c: Include expr.h.
6492 * tree-emutls.c: Include stor-layout.h.
6494 * tree-if-conv.c: Include stor-layout.h.
6495 * tree-inline.c: Include stor-layout.h.
6497 * tree-loop-distribution.c: Include stor-layout.h.
6498 * tree-nested.c: Include stringpool.h.
6499 Include stor-layout.h.
6500 * tree-object-size.c: Include tree-object-size.h.
6501 * tree-outof-ssa.c: Include stor-layout.h.
6502 * tree-parloops.c: Include stor-layout.h.
6503 Include tree-nested.h.
6504 * tree-pretty-print.c: Include stor-layout.h.
6506 * tree-profile.c: Include varasm.h.
6507 Include tree-nested.h.
6508 * tree-scalar-evolution.c: Include expr.h.
6509 * tree-sra.c: Include stor-layout.h.
6510 * tree-ssa-address.c: Include stor-layout.h.
6511 * tree-ssa-ccp.c: Include stor-layout.h.
6512 * tree-ssa-dce.c: Include calls.h.
6513 * tree-ssa-dom.c: Include stor-layout.h.
6514 * tree-ssa-forwprop.c: Include stor-layout.h.
6515 * tree-ssa-ifcombine.c: Include stor-layout.h.
6516 * tree-ssa-loop-ivopts.c: Include stor-layout.h.
6517 * tree-ssa-loop-niter.c: Include calls.h.
6519 * tree-ssa-loop-prefetch.c: Include stor-layout.h.
6520 * tree-ssa-math-opts.c: Include stor-layout.h.
6521 * tree-ssa-operands.c: Include stmt.h.
6522 Include print-tree.h.
6523 * tree-ssa-phiopt.c: Include stor-layout.h.
6524 * tree-ssa-reassoc.c: Include stor-layout.h.
6525 * tree-ssa-sccvn.c: Include stor-layout.h.
6526 * tree-ssa-sink.c: Include stor-layout.h.
6527 * tree-ssa-strlen.c: Include stor-layout.h.
6528 * tree-ssa-structalias.c: Include stor-layout.h.
6530 * tree-ssa-tail-merge.c: Include stor-layout.h.
6531 Include trans-mem.h.
6532 * tree-ssa-uncprop.c: Include stor-layout.h.
6533 * tree-ssa.c: Include stor-layout.h.
6534 * tree-ssanames.c: Include stor-layout.h.
6535 * tree-streamer-in.c: Include stringpool.h.
6536 * tree-streamer-out.c: Include stor-layout.h.
6537 * tree-switch-conversion.c: Include varasm.h.
6538 Include stor-layout.h.
6539 * tree-tailcall.c: Include stor-layout.h.
6540 * tree-vect-data-refs.c: Include stor-layout.h.
6541 * tree-vect-generic.c: Include stor-layout.h.
6542 * tree-vect-loop.c: Include stor-layout.h.
6543 * tree-vect-patterns.c: Include stor-layout.h.
6544 * tree-vect-slp.c: Include stor-layout.h.
6545 * tree-vect-stmts.c: Include stor-layout.h.
6546 * tree-vectorizer.c: Include stor-layout.h.
6547 * tree-vrp.c: Include stor-layout.h.
6549 * tree.c: Include stor-layout.h.
6553 * tsan.c: Include expr.h.
6554 * ubsan.c: Include stor-layout.h.
6555 Include stringpool.h.
6556 * value-prof.c: Include tree-nested.h.
6558 * var-tracking.c: Include varasm.h.
6559 Include stor-layout.h.
6560 * varasm.c: Include stor-layout.h.
6561 Include stringpool.h.
6562 Include gcc-symtab.h.
6564 * varpool.c: Include varasm.h.
6565 * vmsdbgout.c: Include varasm.h.
6566 * xcoffout.c: Include varasm.h.
6568 2013-11-14 Joern Rennecke <joern.rennecke@embecosm.com>
6570 * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
6573 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6575 * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
6577 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6578 Alan Modra <amodra@gmail.com>
6580 * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
6581 (RS6000_SAVE_TOC): Remove.
6582 (RS6000_TOC_SAVE_SLOT): New macro.
6583 * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
6584 (rs6000_parm_start): Use it.
6585 (rs6000_function_arg_advance_1): Likewise.
6586 (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
6587 (rs6000_emit_epilogue): Likewise.
6588 (rs6000_call_aix): Likewise.
6589 (rs6000_output_function_prologue): Do not save/restore r11
6590 around calling _mcount for ABI_ELFv2.
6592 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6593 Alan Modra <amodra@gmail.com>
6595 * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
6597 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
6598 (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
6599 * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
6600 (rs6000_function_parms_need_stack): Likewise.
6601 (rs6000_reg_parm_stack_space): Likewise.
6602 (rs6000_function_arg): Do not replace BLKmode by Pmode when
6603 returning a register argument.
6605 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6606 Michael Gschwind <mkg@us.ibm.com>
6608 * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
6609 (ALTIVEC_ARG_MAX_RETURN): Likewise.
6610 (FUNCTION_VALUE_REGNO_P): Use them.
6611 * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
6612 (rs6000_return_in_msb): New function.
6613 (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
6614 Handle aggregates of up to 16 bytes for ELFv2.
6615 (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
6617 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6618 Michael Gschwind <mkg@us.ibm.com>
6620 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
6621 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
6622 (rs6000_discover_homogeneous_aggregate): Likewise.
6623 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
6624 (rs6000_function_arg_advance_1): Likewise.
6625 (rs6000_function_arg): Likewise.
6626 (rs6000_arg_partial_bytes): Likewise.
6627 (rs6000_psave_function_arg): Handle BLKmode arguments.
6629 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6630 Michael Gschwind <mkg@us.ibm.com>
6632 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
6633 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
6634 (rs6000_discover_homogeneous_aggregate): Likewise.
6635 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
6636 (rs6000_function_arg_advance_1): Likewise.
6637 (rs6000_function_arg): Likewise.
6638 (rs6000_arg_partial_bytes): Likewise.
6639 (rs6000_psave_function_arg): Handle BLKmode arguments.
6641 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6643 * config/rs6000/rs6000.c (machine_function): New member
6645 (rs6000_emit_prologue): Set r2_setup_needed if necessary.
6646 (rs6000_output_mi_thunk): Set r2_setup_needed.
6647 (rs6000_output_function_prologue): Output global entry point
6648 prologue and local entry point marker if needed for ABI_ELFv2.
6649 Output -mprofile-kernel code here.
6650 (output_function_profiler): Do not output -mprofile-kernel
6651 code here; moved to rs6000_output_function_prologue.
6652 (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
6654 (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
6655 (rs6000_output_function_entry): Likewise.
6656 (rs6000_assemble_integer): Likewise.
6657 (rs6000_elf_encode_section_info): Likewise.
6658 (rs6000_elf_declare_function_name): Do not create dot symbols
6659 or .opd section for ABI_ELFv2.
6661 (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
6662 (rs6000_trampoline_init): Likewise.
6663 (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
6665 (rs6000_call_aix): Handle ELFv2 indirect calls. Do not check
6666 for function descriptors in ABI_ELFv2.
6668 * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
6669 on ABI_AIX only, not ABI_ELFv2.
6670 ("*call_value_indirect_aix<mode>"): Likewise.
6671 ("*call_indirect_elfv2<mode>"): New pattern.
6672 ("*call_value_indirect_elfv2<mode>"): Likewise.
6674 * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
6675 check for function descriptors in ABI_ELFv2.
6676 ("current_file_function_operand"): Likewise.
6678 * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
6680 (FUNC_NAME): Define ELFv2 variant.
6681 (JUMP_TARGET): Likewise.
6682 (FUNC_START): Likewise.
6683 (HIDDEN_FUNC): Likewise.
6684 (FUNC_END): Likeiwse.
6686 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6688 * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
6689 and --with-abi=elfv2.
6690 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
6691 * config/rs6000/rs6000.opt (mabi=elfv1): New option.
6692 (mabi=elfv2): Likewise.
6693 * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
6694 * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
6696 (ELFv2_ABI_CHECK): New macro.
6697 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
6698 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
6699 (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
6700 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
6701 _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
6703 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
6704 (debug_stack_info): Likewise.
6705 (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
6706 (rs6000_legitimize_tls_address): Likewise.
6707 (rs6000_conditional_register_usage): Likewise.
6708 (rs6000_emit_move): Likewise.
6709 (init_cumulative_args): Likewise.
6710 (rs6000_function_arg_advance_1): Likewise.
6711 (rs6000_function_arg): Likewise.
6712 (rs6000_arg_partial_bytes): Likewise.
6713 (rs6000_output_function_entry): Likewise.
6714 (rs6000_assemble_integer): Likewise.
6715 (rs6000_savres_strategy): Likewise.
6716 (rs6000_stack_info): Likewise.
6717 (rs6000_function_ok_for_sibcall): Likewise.
6718 (rs6000_emit_load_toc_table): Likewise.
6719 (rs6000_savres_routine_name): Likewise.
6720 (ptr_regno_for_savres): Likewise.
6721 (rs6000_emit_prologue): Likewise.
6722 (rs6000_emit_epilogue): Likewise.
6723 (rs6000_output_function_epilogue): Likewise.
6724 (output_profile_hook): Likewise.
6725 (output_function_profiler): Likewise.
6726 (rs6000_trampoline_size): Likewise.
6727 (rs6000_trampoline_init): Likewise.
6728 (rs6000_elf_output_toc_section_asm_op): Likewise.
6729 (rs6000_elf_encode_section_info): Likewise.
6730 (rs6000_elf_reloc_rw_mask): Likewise.
6731 (rs6000_elf_declare_function_name): Likewise.
6732 (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
6733 except that rs6000_compat_align_parm is always assumed false.
6734 (rs6000_gimplify_va_arg): Likewise.
6735 (rs6000_call_aix): Update comment.
6736 (rs6000_sibcall_aix): Likewise.
6737 * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
6738 Treat ABI_ELFv2 the same as ABI_AIX.
6739 ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
6740 ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
6741 ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
6742 ("load_toc_aix_si"): Likewise.
6743 ("load_toc_aix_di"): Likewise.
6745 ("call_value"): Likewise.
6746 ("*call_local_aix<mode>"): Likewise.
6747 ("*call_value_local_aix<mode>"): Likewise.
6748 ("*call_nonlocal_aix<mode>"): Likewise.
6749 ("*call_value_nonlocal_aix<mode>"): Likewise.
6750 ("*call_indirect_aix<mode>"): Likewise.
6751 ("*call_value_indirect_aix<mode>"): Likewise.
6752 ("sibcall"): Likewise.
6753 ("sibcall_value"): Likewise.
6754 ("*sibcall_aix<mode>"): Likewise.
6755 ("*sibcall_value_aix<mode>"): Likewise.
6756 * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
6757 ("current_file_function_operand"): Likewise.
6759 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6761 * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
6762 by making use of the fact that for vector / floating point arguments
6763 passed both in VRs/FPRs and in the fixed parameter area, the partial
6764 bytes mechanism is in fact not used.
6766 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6768 * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
6769 (rs6000_finish_function_arg): Likewise.
6770 (rs6000_function_arg): Use rs6000_psave_function_arg and
6771 rs6000_finish_function_arg to handle both vector and floating
6772 point arguments that are also passed in GPRs / the stack.
6774 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6776 * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
6777 (USE_ALTIVEC_FOR_ARG_P): Likewise.
6778 (rs6000_darwin64_record_arg_advance_recurse): Update uses.
6779 (rs6000_function_arg_advance_1):Likewise.
6780 (rs6000_darwin64_record_arg_recurse): Likewise.
6781 (rs6000_function_arg): Likewise.
6782 (rs6000_arg_partial_bytes): Likewise.
6784 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6786 * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
6787 "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
6788 (rs6000_savres_strategy): Likewise.
6789 (rs6000_return_addr): Likewise.
6790 (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
6791 testing for ABI_V4 (since ABI_DARWIN is impossible here).
6792 (rs6000_emit_prologue): Likewise.
6793 (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
6794 (rs6000_elf_declare_function_name): Remove duplicated test.
6795 * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
6796 for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
6797 ("load_toc_v4_PIC_1_normal"): Likewise.
6798 ("load_toc_v4_PIC_1_476"): Likewise.
6799 ("load_toc_v4_PIC_1b"): Likewise.
6800 ("load_toc_v4_PIC_1b_normal"): Likewise.
6801 ("load_toc_v4_PIC_1b_476"): Likewise.
6802 ("load_toc_v4_PIC_2"): Likewise.
6803 ("load_toc_v4_PIC_3b"): Likewise.
6804 ("load_toc_v4_PIC_3c"): Likewise.
6805 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
6806 (RS6000_SAVE_AREA): Likewise.
6807 (FP_ARG_MAX_REG): Likewise.
6808 (RETURN_ADDRESS_OFFSET): Likewise.
6809 * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
6811 (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
6812 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
6814 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6816 * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
6817 (rs6000_call_aix): ... this. Handle both direct and indirect calls.
6818 Create call insn directly instead of via various gen_... routines.
6819 Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
6820 (rs6000_sibcall_aix): New function.
6821 * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
6822 (TOC_SAVE_OFFSET_64BIT): Likewise.
6823 (AIX_FUNC_DESC_TOC_32BIT): Likewise.
6824 (AIX_FUNC_DESC_TOC_64BIT): Likewise.
6825 (AIX_FUNC_DESC_SC_32BIT): Likewise.
6826 (AIX_FUNC_DESC_SC_64BIT): Likewise.
6827 ("call" expander): Call rs6000_call_aix.
6828 ("call_value" expander): Likewise.
6829 ("call_indirect_aix<ptrsize>"): Replace this pattern ...
6830 ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
6831 ("*call_indirect_aix<mode>"): ... by this insn pattern.
6832 ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
6833 ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
6834 ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
6835 ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
6836 ("*call_nonlocal_aix<mode>"): ... this pattern.
6837 ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
6838 ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
6839 ("*call_local_aix<mode>"): New insn pattern.
6840 ("*call_value_local_aix<mode>"): Likewise.
6841 ("sibcall" expander): Call rs6000_sibcall_aix.
6842 ("sibcall_value" expander): Likewise. Move earlier in file.
6843 ("*sibcall_nonlocal_aix<mode>"): Replace by ...
6844 ("*sibcall_aix<mode>"): ... this pattern.
6845 ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
6846 ("*sibcall_value_aix<mode>"): ... this pattern.
6847 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
6848 (rs6000_call_aix): Add prototype.
6849 (rs6000_sibcall_aix): Likewise.
6851 2013-11-14 Jakub Jelinek <jakub@redhat.com>
6854 * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
6855 isn't confused by the artificial decl.
6857 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6859 * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
6860 RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
6861 Instead, add USEs of all modified call-saved CR fields to the
6862 insn storing the result to the stack slot, and provide an
6863 appropriate REG_FRAME_RELATED_EXPR for that insn.
6864 * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
6865 * config/rs6000/predicates.md ("crsave_operation"): New predicate.
6867 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6868 Alan Modra <amodra@gmail.com>
6870 * function.c (assign_parms): Use all.reg_parm_stack_space instead
6871 of re-evaluating REG_PARM_STACK_SPACE target macro.
6872 (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE. Use it
6873 instead of evaluating target macro REG_PARM_STACK_SPACE every time.
6874 (assign_parm_find_entry_rtl): Update call.
6875 * calls.c (initialize_argument_information): Update call.
6876 (emit_library_call_value_1): Likewise.
6877 * expr.h (locate_and_pad_parm): Update prototype.
6879 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6881 * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
6884 2013-11-14 DJ Delorie <dj@redhat.com>
6886 * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
6889 2013-11-14 Jeff Law <law@redhat.com>
6891 * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
6892 EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
6894 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
6896 * doc/invoke.texi: Update documentation for AArch64's -mcpu
6899 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
6901 * config/aarch64/aarch64-cores.def (example-1): Remove.
6902 (example-2): Likewise.
6903 * config/aarch64/aarch64-tune.md: Regenerate.
6904 * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
6905 (generic_sched): Remove "large", "small".
6906 * config/aarch64/large.md: Delete.
6907 * config/aarch64/small.md: Delete.
6909 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
6911 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
6912 * config/aarch64/aarch64-tune.md: Regenerate.
6913 * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
6914 (generic_sched): "no" if we are tuning for cortexa15.
6915 * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
6918 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
6920 * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
6921 * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
6922 * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
6923 (all_cores): Use cortexa53 when tuning for "generic".
6924 (aarch64_override_options): Fix comment.
6925 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
6926 * config/aarch64/aarch64-generic.md: Delete.
6928 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
6930 * config/aarch64/aarch64.c (all_architectures): Remove "generic".
6932 2013-11-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6934 * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
6935 (generic_rtx_cost_table): Remove.
6936 (aarch64_rtx_costs): Use fields from cpu_cost_table.
6937 * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
6939 (cpu_rtx_cost_table): Remove.
6941 2013-11-14 Julian Brown <julian@codesourcery.com>
6942 Joey Ye <joey.ye@arm.com>
6944 * config/arm/arm.c (arm_cortex_m_branch_cost): New.
6945 (arm_v7m_tune): New.
6946 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
6947 arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
6948 arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
6949 * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
6951 2013-11-14 Kirill Yukhin <kirill.yukhin@intel.com>
6954 * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
6957 2013-11-14 Jakub Jelinek <jakub@redhat.com>
6958 Uros Bizjak <ubizjak@gmail.com>
6961 * config/i386/i386.md (*anddi_2): Only allow CCZmode if
6962 operands[2] satisfies_constraint_Z that might have bit 31 set.
6964 2013-11-13 Jeff Law <law@redhat.com>
6966 PR tree-optimization/59102
6967 * gimple-ssa-isolate-paths.c
6968 (insert_trap_and_remove_trailing_statments): Ensure STMT is a
6969 gimple assignment before looking at gimple_assign_lhs.
6971 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
6973 * ira.c: Add comment about threads at the top of file.
6975 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
6977 * ira-color.c (coalesce_allocnos): Don't allocate and free
6980 2013-11-14 Tom de Vries <tom@codesourcery.com>
6982 * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
6983 equality for GIMPLE_ASSIGN.
6985 2013-11-14 Tom de Vries <tom@codesourcery.com>
6987 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
6989 (gimple_equal_p): ... here.
6991 2013-11-14 Tom de Vries <tom@codesourcery.com>
6993 * trans-mem.c (is_tm_ending): New function.
6994 * gimple.h (is_tm_ending): Declare.
6995 * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
6997 (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
6999 2013-11-14 Tom de Vries <tom@codesourcery.com>
7001 * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
7003 2013-11-13 Andrew MacLeod <amacleod@redhat.com>
7005 * gimple-walk.h: New File. Relocate prototypes from gimple.h.
7006 (struct walk_stmt_info): Relocate here from gimple.h.
7007 * gimple-iterator.h: New File. Relocate prototypes from gimple.h.
7008 (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
7009 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
7010 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
7011 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
7012 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
7013 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
7014 * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
7015 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
7016 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
7017 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
7018 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
7019 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
7020 (struct walk_stmt_info): Move to gimple-walk.h.
7021 (gimple_seq_set_location): Move to gimple.c
7022 * gimple-walk.c: New File.
7023 (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
7024 walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
7025 walk_stmt_load_store_ops): Relocate here from gimple.c.
7026 * gimple-iterator.c: Include gimple-iterator.h.
7027 * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
7028 walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
7029 walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
7031 (gimple_seq_set_location): Relocate from gimple.h.
7032 * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
7033 * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
7034 * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
7035 * Makefile.in (OBJS): Add gimple-walk.o
7036 * asan.c: Update Include list as required for gimple-iterator.h and
7038 * cfgexpand.c: Likewise.
7039 * cfgloop.c: Likewise.
7040 * cfgloopmanip.c: Likewise.
7041 * cgraph.c: Likewise.
7042 * cgraphbuild.c: Likewise.
7043 * cgraphunit.c: Likewise.
7044 * gimple-fold.c: Likewise.
7045 * gimple-low.c: Likewise.
7046 * gimple-pretty-print.c: Likewise.
7047 * gimple-ssa-isolate-paths.c: Likewise.
7048 * gimple-ssa-strength-reduction.c: Likewise.
7049 * gimple-streamer-in.c: Likewise.
7050 * gimple-streamer-out.c: Likewise.
7051 * gimplify.c: Likewise.
7052 * graphite-blocking.c: Likewise.
7053 * graphite-clast-to-gimple.c: Likewise.
7054 * graphite-dependences.c: Likewise.
7055 * graphite-interchange.c: Likewise.
7056 * graphite-optimize-isl.c: Likewise.
7057 * graphite-poly.c: Likewise.
7058 * graphite-scop-detection.c: Likewise.
7059 * graphite-sese-to-poly.c: Likewise.
7060 * graphite.c: Likewise.
7061 * ipa-inline-analysis.c: Likewise.
7062 * ipa-profile.c: Likewise.
7063 * ipa-prop.c: Likewise.
7064 * ipa-pure-const.c: Likewise.
7065 * ipa-split.c: Likewise.
7066 * lto-streamer-in.c: Likewise.
7067 * lto-streamer-out.c: Likewise.
7068 * omp-low.c: Likewise.
7069 * predict.c: Likewise.
7070 * profile.c: Likewise.
7072 * tracer.c: Likewise.
7073 * trans-mem.c: Likewise.
7074 * tree-call-cdce.c: Likewise.
7075 * tree-cfg.c: Likewise.
7076 * tree-cfgcleanup.c: Likewise.
7077 * tree-complex.c: Likewise.
7078 * tree-data-ref.c: Likewise.
7079 * tree-dfa.c: Likewise.
7080 * tree-eh.c: Likewise.
7081 * tree-emutls.c: Likewise.
7082 * tree-if-conv.c: Likewise.
7083 * tree-inline.c: Likewise.
7084 * tree-into-ssa.c: Likewise.
7085 * tree-loop-distribution.c: Likewise.
7086 * tree-nested.c: Likewise.
7087 * tree-nrv.c: Likewise.
7088 * tree-object-size.c: Likewise.
7089 * tree-outof-ssa.c: Likewise.
7090 * tree-parloops.c: Likewise.
7091 * tree-predcom.c: Likewise.
7092 * tree-profile.c: Likewise.
7093 * tree-scalar-evolution.c: Likewise.
7094 * tree-sra.c: Likewise.
7095 * tree-ssa-ccp.c: Likewise.
7096 * tree-ssa-coalesce.c: Likewise.
7097 * tree-ssa-copy.c: Likewise.
7098 * tree-ssa-copyrename.c: Likewise.
7099 * tree-ssa-dce.c: Likewise.
7100 * tree-ssa-dom.c: Likewise.
7101 * tree-ssa-dse.c: Likewise.
7102 * tree-ssa-forwprop.c: Likewise.
7103 * tree-ssa-ifcombine.c: Likewise.
7104 * tree-ssa-live.c: Likewise.
7105 * tree-ssa-loop-ch.c: Likewise.
7106 * tree-ssa-loop-im.c: Likewise.
7107 * tree-ssa-loop-ivcanon.c: Likewise.
7108 * tree-ssa-loop-ivopts.c: Likewise.
7109 * tree-ssa-loop-manip.c: Likewise.
7110 * tree-ssa-loop-niter.c: Likewise.
7111 * tree-ssa-loop-prefetch.c: Likewise.
7112 * tree-ssa-loop.c: Likewise.
7113 * tree-ssa-math-opts.c: Likewise.
7114 * tree-ssa-phiopt.c: Likewise.
7115 * tree-ssa-phiprop.c: Likewise.
7116 * tree-ssa-pre.c: Likewise.
7117 * tree-ssa-propagate.c: Likewise.
7118 * tree-ssa-reassoc.c: Likewise.
7119 * tree-ssa-sink.c: Likewise.
7120 * tree-ssa-strlen.c: Likewise.
7121 * tree-ssa-structalias.c: Likewise.
7122 * tree-ssa-tail-merge.c: Likewise.
7123 * tree-ssa-ter.c: Likewise.
7124 * tree-ssa-threadedge.c: Likewise.
7125 * tree-ssa-threadupdate.c: Likewise.
7126 * tree-ssa-uncprop.c: Likewise.
7127 * tree-ssa-uninit.c: Likewise.
7128 * tree-ssa.c: Likewise.
7129 * tree-stdarg.c: Likewise.
7130 * tree-switch-conversion.c: Likewise.
7131 * tree-tailcall.c: Likewise.
7132 * tree-vect-data-refs.c: Likewise.
7133 * tree-vect-generic.c: Likewise.
7134 * tree-vect-loop-manip.c: Likewise.
7135 * tree-vect-loop.c: Likewise.
7136 * tree-vect-patterns.c: Likewise.
7137 * tree-vect-slp.c: Likewise.
7138 * tree-vect-stmts.c: Likewise.
7139 * tree-vectorizer.c: Likewise.
7140 * tree-vrp.c: Likewise.
7143 * value-prof.c: Likewise.
7144 * vtable-verify.c: Likewise.
7146 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
7148 * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
7151 2013-11-13 Jeff Law <law@redhat.com>
7153 * PR middle-end/59119
7154 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
7155 function, extracted from gimple_ssa_isolate_erroneous_paths.
7156 (find_explicit_erroneous_behaviour): Similarly.
7157 (insert_trap_and_remove_trailing_statements): Remove statements
7160 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
7162 * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
7163 Make that check explicit. BB_HEAD cannot be NULL, remove check for it.
7164 * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
7165 looking at INSN_CODE.
7166 * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
7167 active_insn_p object, respect basic block boundaries.
7168 * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
7169 follows immediately after the jump table data label.
7170 * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
7171 * config/sh/sh.c (barrier_align): Likewise. Rearrange code such
7172 that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
7174 2013-11-13 Teresa Johnson <tejohnson@google.com>
7177 * predict.c (drop_profile): Error is currently too strict.
7178 (handle_missing_profiles): Pass call_count to drop_profile.
7180 2013-11-13 Teresa Johnson <tejohnson@google.com>
7183 * ipa-inline.c (edge_badness): Fix overflow.
7185 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
7187 PR rtl-optimization/59036
7188 * ira-color.c (struct allocno_color_data): Add new members
7189 first_thread_allocno, next_thread_allocno, thread_freq.
7190 (sorted_copies): New static var.
7191 (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
7192 (allocno_thread_conflict_p, merge_threads)
7193 (form_threads_from_copies, form_threads_from_bucket)
7194 (form_threads_from_colorable_allocno, init_allocno_threads): New
7196 (bucket_allocno_compare_func): Add comparison by thread frequency
7198 (add_allocno_to_ordered_bucket): Rename to
7199 add_allocno_to_ordered_colorable_bucket. Remove parameter.
7200 (push_only_colorable): Call form_threads_from_bucket.
7201 (color_pass): Call init_allocno_threads. Use
7202 consideration_allocno_bitmap instead of coloring_allocno_bitmap
7203 for nuillify allocno color data.
7204 (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
7205 (coalesce_allocnos): Use static sorted copies.
7207 2013-11-13 Jakub Jelinek <jakub@redhat.com>
7209 * passes.c (execute_todo): Don't call do_per_function if
7211 (execute_one_ipa_transform_pass, execute_one_pass): Don't call
7212 execute_function_dump if dump_file is NULL.
7214 2013-11-13 Martin Jambor <mjambor@suse.cz>
7216 * cgraph.c (cgraph_get_create_node): Do what
7217 cgraph_get_create_real_symbol_node used to do.
7218 (cgraph_get_create_real_symbol_node): Removed. Changed all users to
7219 call cgraph_get_create_node.
7220 * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
7221 * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
7222 cgraph_get_create_node. Assert we get a node.
7224 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
7226 * config/aarch64/aarch64-simd.md (vec_extract): New.
7228 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
7230 * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
7233 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
7235 * cfgexpand.c (expand_used_vars): Allocate space for partitions based
7236 on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
7237 or if optimization is enabled.
7238 * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
7239 require that all the names based on a PARM_DECL or a RESULT_DECL that
7240 isn't ignored for debug info be coalesced.
7242 2013-11-13 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7244 * config/c6x/c6x.c: Include "gimple-expr.h".
7246 2013-11-13 Richard Biener <rguenther@suse.de>
7248 * gimple-streamer-out.c (output_gimple_stmt): Also wrap
7249 decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
7250 * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
7251 dealing with type mismatches inside component reference chains.
7253 2013-11-13 Marc Glisse <marc.glisse@inria.fr>
7255 PR tree-optimization/59077
7256 * ipa-pure-const.c (better_state): Update *state.
7258 2013-11-13 Christophe Lyon <christophe.lyon@linaro.org>
7260 * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
7261 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
7262 Update offset calculations.
7264 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
7267 * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
7268 for fields. Do not add the attribute if the size is negative.
7270 2013-11-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7272 * config/arm/arm.c: Include aarch-cost-tables.h.
7273 (generic_extra_costs): Move from here...
7274 * config/arm/aarch-cost-tables.h: ... To here. New file.
7276 2013-11-13 Alexander Ivchenko <alexander.ivchenko@intel.com>
7277 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7278 Sergey Lega <sergey.s.lega@intel.com>
7279 Anna Tikhonova <anna.tikhonova@intel.com>
7280 Ilya Tocar <ilya.tocar@intel.com>
7281 Andrey Turetskiy <andrey.turetskiy@intel.com>
7282 Ilya Verbin <ilya.verbin@intel.com>
7283 Kirill Yukhin <kirill.yukhin@intel.com>
7284 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7286 * config/i386/i386.c (ix86_print_operand): Support z-masking.
7287 * config/i386/predicate.md (const_0_to_4_operand): New.
7288 (const_0_to_5_operand): Ditto.
7289 * config/i386/sse.md (UNSPEC_COMPRESS): New.
7290 (UNSPEC_COMPRESS_STORE): Ditto.
7291 (UNSPEC_EXPAND): Ditto.
7292 (UNSPEC_EMBEDDED_ROUNDING): Ditto.
7293 (define_mode_attr ssescalarsize): Ditto.
7294 (avx512f_load<mode>_mask): Ditto.
7295 (avx512f_store<mode>_mask): Ditto.
7296 (avx512f_storedqu<mode>_mask): Ditto.
7297 (avx512f_vmcmp<mode>3_mask): Ditto.
7298 (avx512f_fmadd_<mode>_mask): Ditto.
7299 (avx512f_fmadd_<mode>_mask3): Ditto.
7300 (avx512f_fmsub_<mode>_mask): Ditto.
7301 (avx512f_fmsub_<mode>_mask3): Ditto.
7302 (avx512f_fnmadd_<mode>_mask): Ditto.
7303 (avx512f_fnmadd_<mode>_mask3): Ditto.
7304 (avx512f_fnmsub_<mode>_mask): Ditto.
7305 (avx512f_fnmsub_<mode>_mask3): Ditto.
7306 (avx512f_fmaddsub_<mode>_mask): Ditto.
7307 (avx512f_fmaddsub_<mode>_mask3): Ditto.
7308 (avx512f_fmsubadd_<mode>_mask): Ditto.
7309 (avx512f_fmsubadd_<mode>_mask3): Ditto.
7310 (vec_unpacku_float_lo_v16si): Ditto.
7311 (avx512f_vextract<shuffletype>32x4_mask): Ditto.
7312 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
7313 (avx512f_vextract<shuffletype>64x4_mask): Ditto.
7314 (vec_extract_lo_<mode>_maskm): Ditto.
7315 (vec_extract_hi_<mode>_maskm): Ditto.
7316 (avx512f_vternlog<mode>_mask): Ditto.
7317 (avx512f_shufps512_mask): Ditto.
7318 (avx512f_fixupimm<mode>_mask): Ditto.
7319 (avx512f_shufpd512_mask): Ditto.
7320 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
7321 (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
7322 (*avx512f_<code>v8div16qi2_store_mask): Ditto.
7323 (ashr<mode>3<mask_name>): Ditto.
7324 (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
7325 (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
7326 (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
7327 (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
7328 (avx512f_pshufdv3_mask): Ditto.
7329 (avx512f_perm<mode>_mask): Ditto.
7330 (avx512f_vpermi2var<mode>3_mask): Ditto.
7331 (avx512f_vpermt2var<mode>3_mask): Ditto.
7332 (avx512f_compress<mode>_mask): Ditto.
7333 (avx512f_compressstore<mode>_mask): Ditto.
7334 (avx512f_expand<mode>_mask): Ditto.
7335 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
7337 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
7338 (<plusminus_insn><mode>3<mask_name>): Ditto.
7339 (*<plusminus_insn><mode>3<mask_name>): Ditto.
7340 (mul<mode>3<mask_name>): Ditto.
7341 (*mul<mode>3<mask_name>): Ditto.
7342 (<sse>_div<mode>3<mask_name>): Ditto.
7343 (<mask_codefor>rcp14<mode><mask_name>): Ditto.
7344 (<sse>_sqrt<mode>2<mask_name>): Ditto.
7345 (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
7346 (<code><mode>3<mask_name>/smaxmin): Ditto.
7347 (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
7348 (*<code><mode>3<mask_name>/smaxmin): Ditto.
7349 (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
7350 (ufloatv16siv16sf2<mask_name>): Ditto.
7351 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
7352 (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
7353 (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
7354 (float<si2dfmodelower><mode>2<mask_name>): Ditto.
7355 (ufloatv8siv8df<mask_name>): Ditto.
7356 (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
7357 (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
7358 (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
7359 (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
7360 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
7361 (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
7362 (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
7363 (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
7364 (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
7365 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
7366 (vec_extract_lo_<mode><mask_name>): Ditto.
7367 (vec_extract_hi_<mode><mask_name>): Ditto.
7368 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
7369 (avx512f_movddup512<mask_name>): Ditto.
7370 (avx512f_unpcklpd512<mask_name>): Ditto.
7371 (*avx512f_unpcklpd512<mask_name>): Ditto.
7372 (*avx512f_vmscalef<mode>): Ditto.
7373 (avx512f_scalef<mode><mask_name>): Ditto.
7374 (avx512f_getexp<mode><mask_name>): Ditto.
7375 (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
7376 (avx512f_rndscale<mode><mask_name>): Ditto.
7377 (avx512f_shufps512_1<mask_name>): Ditto.
7378 (avx512f_shufpd512_1<mask_name>): Ditto.
7379 (<plusminus_insn><mode>3<mask_name>): Ditto.
7380 (*<plusminus_insn><mode>3<mask_name>): Ditto.
7381 (vec_widen_umult_even_v16si<mask_name>): Ditto.
7382 (*vec_widen_umult_even_v16si<mask_name>): Ditto.
7383 (vec_widen_smult_even_v16si<mask_name>): Ditto.
7384 (*vec_widen_smult_even_v16si<mask_name>): Ditto.
7385 (mul<mode>3<mask_name>): Ditto.
7386 (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
7387 (<shift_insn><mode>3<mask_name>): Ditto.
7388 (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
7389 (avx512f_<rotate><mode><mask_name>): Ditto.
7390 (<code><mode>3<mask_name>/maxmin): Ditto.
7391 (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
7392 (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
7393 (*andnot<mode>3<mask_name>): Ditto.
7394 (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
7395 (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
7396 (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
7397 (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
7398 (vec_set_lo_<mode><mask_name>): Ditto.
7399 (vec_set_hi_<mode><mask_name>): Ditto.
7400 (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
7401 (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
7402 (avx512f_pshufd_1<mask_name>): Ditto.
7403 (<mask_codefor>abs<mode>2<mask_name>): Ditto.
7404 (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
7405 (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
7406 (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
7407 (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
7408 (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
7409 (avx512er_exp2<mode><mask_name>): Ditto.
7410 (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
7411 (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
7412 (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
7413 (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
7414 (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
7415 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
7416 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
7417 (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
7418 (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
7419 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
7420 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
7421 (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
7422 (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
7423 (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
7424 (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
7425 (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
7426 (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
7427 (avx512f_getmant<mode><mask_name>): Ditto.
7428 (clz<mode>2<mask_name>): Ditto.
7429 (<mask_codefor>conflict<mode><mask_name>): Ditto.
7430 (*srcp14<mode>): Remove visibility.
7431 (*rsqrt14<mode>): Ditto.
7432 (*fma_fmsub_<mode>): Ditto.
7433 (*fma_fnmadd_<mode>): Ditto.
7434 (*avx512f_rndscale<mode>): Ditto.
7435 * config/i386/subst.md: New file.
7437 2013-11-13 Joseph Myers <joseph@codesourcery.com>
7439 * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
7440 * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
7441 (atomic_load_explicit, atomic_exchange_explicit)
7442 (atomic_compare_exchange_strong_explicit)
7443 (atomic_compare_exchange_weak_explicit): Use __auto_type to
7444 declare variable initialized with PTR argument.
7446 2013-11-12 Jeff Law <law@redhat.com>
7448 * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
7449 backedge_seen_p. Set, use and pass it to children appropriately.
7450 (thread_through_normal_block): Similarly.
7451 (thread_across_edge): Similarly.
7453 * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
7454 memory references as volatile.
7455 (insert_trap_and_remove_trailing_statements): Fix comment.
7457 2013-11-12 Vladimir Makarov <vmakarov@redhat.com>
7460 * ira-costs.c (record_operand_costs): Check operands number for
7463 2013-11-12 Michael Meissner <meissner@linux.vnet.ibm.com>
7466 * config/rs6000/rs6000.md (movdi_internal32): Eliminate
7467 constraints that would allow DImode into the traditional Altivec
7468 registers, but cause undesirable code generation when loading 0 as
7470 (movdi_internal64): Likewise.
7471 (cmp<mode>_fpr): Do not use %x for CR register output.
7472 (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
7473 -mallow-upper-sf debug switches are used.
7475 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
7477 * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
7478 create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
7479 Relocate prototypes from gimple.h.
7480 * gimplify.h: New File. Relocate some prototypes from gimple.h here.
7481 (gimple_predicate, enum fallback, enum gimplify_status): Relocate
7483 * gimple.h: Move some prototypes to gimplify.h.
7484 (gimple_predicate, enum fallback, enum gimplify_status): Move to
7486 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
7487 Relocate from gimpify.c.
7488 * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
7489 create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
7490 is_gimple_reg_rhs) Relocate from gimplify.c.
7491 * gimplify.c (mark_addressable): Move to gimple-expr.c.
7492 (gimple_seq_add_stmt_without_update): Move to gimple.c.
7493 (remove_suffix, tmp_var_id_num, create_tmp_var_name,
7494 create_tmp_var_raw, create_tmp_var, create_tmp_reg,
7495 is_gimple_reg_rhs): Move to gimple-expr.c.
7496 (should_carry_location_p): Move to gimple.c.
7497 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
7499 (annotate_one_with_location, annotate_all_with_location_after,
7500 annotate_all_with_location): Move to gimple.c.
7501 (compare_case_labels, sort_case_labels,
7502 preprocess_case_label_vec_for_gimple): Move to gimple.c.
7503 (rhs_predicate_for): Make static.
7504 (gimplify_assign): Relocate from gimple.c.
7505 * gimple.c (gimplify_assign): Move to gimplify.c.
7506 (gimple_seq_add_stmt_without_update, should_carry_location_p,
7507 annotate_one_with_location, annotate_all_with_location_after,
7508 annotate_all_with_location, compare_case_labels, sort_case_labels,
7509 preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
7510 * tree.h (unshare_expr, unshare_expr_without_location,
7511 mark_addressable): Move prototypes to gimplify.h.
7512 * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
7514 * asan.c: Include gimplify.h rather than gimple.h.
7515 * cfgloopmanip.c: Likewise.
7516 * cgraphunit.c: Likewise.
7517 * cilk-common.c: Likewise.
7518 * dwarf2out.c: Dont include gimple.h.
7519 * fold-const.c: Include gimplify.h rather than gimple.h.
7520 * function.c: Likewise.
7521 * gimple-fold.c: Likewise.
7522 * gimple-ssa-strength-reduction.c: Likewise.
7523 * graphite-clast-to-gimple.c: Likewise.
7524 * graphite-sese-to-poly.c: Likewise.
7525 * ipa-prop.c: Likewise.
7526 * ipa-split.c: Likewise.
7528 * langhooks.c: Dont include gimple.h.
7529 * loop-init.c: Include gimplify.h rather than gimple.h.
7530 * omp-low.c: Likewise.
7532 * stor-layout.c: Likewise.
7533 * targhooks.c: Likewise.
7534 * trans-mem.c: Likewise.
7535 * tree-affine.c: Likewise.
7536 * tree-cfg.c: Likewise.
7537 * tree-cfgcleanup.c: Likewise.
7538 * tree-complex.c: Likewise.
7539 * tree-if-conv.c: Likewise.
7540 * tree-inline.c: Likewise.
7541 * tree-iterator.c: Likewise.
7542 * tree-loop-distribution.c: Likewise.
7543 * tree-nested.c: Likewise.
7544 * tree-parloops.c: Likewise.
7545 * tree-predcom.c: Likewise.
7546 * tree-profile.c: Likewise.
7547 * tree-scalar-evolution.c: Likewise.
7548 * tree-sra.c: Likewise.
7549 * tree-ssa-address.c: Likewise.
7550 * tree-ssa-ccp.c: Likewise.
7551 * tree-ssa-dce.c: Likewise.
7552 * tree-ssa-forwprop.c: Likewise.
7553 * tree-ssa-ifcombine.c: Likewise.
7554 * tree-ssa-loop-im.c: Likewise.
7555 * tree-ssa-loop-ivopts.c: Likewise.
7556 * tree-ssa-loop-manip.c: Likewise.
7557 * tree-ssa-loop-niter.c: Likewise.
7558 * tree-ssa-loop-prefetch.c: Likewise.
7559 * tree-ssa-loop-unswitch.c: Likewise.
7560 * tree-ssa-math-opts.c: Likewise.
7561 * tree-ssa-phiopt.c: Likewise.
7562 * tree-ssa-phiprop.c: Likewise.
7563 * tree-ssa-pre.c: Likewise.
7564 * tree-ssa-propagate.c: Likewise.
7565 * tree-ssa-reassoc.c: Likewise.
7566 * tree-ssa-sccvn.c: Likewise.
7567 * tree-ssa-strlen.c: Likewise.
7568 * tree-ssa.c: Likewise.
7569 * tree-switch-conversio: Likewise.n.c
7570 * tree-tailcall.c: Likewise.
7571 * tree-vect-data-refs.c: Likewise.
7572 * tree-vect-generic.c: Likewise.
7573 * tree-vect-loop-manip.c: Likewise.
7574 * tree-vect-loop.c: Likewise.
7575 * tree-vect-patterns.c: Likewise.
7576 * tree-vect-stmts.c: Likewise.
7578 * value-prof.c: Likewise.
7579 * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
7580 * config/alpha/alpha.c: Likewise.
7581 * config/darwin.c: Likewise.
7582 * config/i386/i386.c: Likewise.
7583 * config/ia64/ia64.c: Likewise.
7584 * config/mep/mep.c: Likewise.
7585 * config/mips/mips.c: Likewise.
7586 * config/rs6000/rs6000.c: Likewise.
7587 * config/s390/s390.c: Likewise.
7588 * config/sh/sh.c: Likewise.
7589 * config/sparc/sparc.c: Likewise.
7590 * config/spu/spu.c: Likewise.
7591 * config/stormy16/stormy16.c: Likewise.
7592 * config/tilegx/tilegx.c: Likewise.
7593 * config/tilepro/tilepro.c: Likewise.
7594 * config/xtensa/xtensa.c: Likewise.
7596 2013-11-12 Adam Butcher <adam@jessamine.co.uk>
7598 * tree.c (grow_tree_vec_stat): New function ...
7599 * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
7600 and macro front-end.
7602 2013-11-12 Marek Polacek <polacek@redhat.com>
7604 * final.c (update_alignments): Initialize label to NULL_RTX.
7606 2013-11-12 Jeff Law <law@redhat.com>
7608 * gimple-ssa-isolate-paths.c (check_loadstore): New function.
7609 (insert_trap_and_remove_trailing_statements): New argument OP which
7610 is the NULL pointer. Emit the trap after the load/store through
7611 the NULL pointer. Simplify the RHS of a store through a NULL pointer
7612 when trivial to do so.
7613 (isolate_path): Corresponding changes.
7614 (gimple_ssa_isolate_erroneous_path): Likewise.
7616 2013-11-12 Teresa Johnson <tejohnson@google.com>
7617 Jan Hubicka <jh@suse.cz>
7619 * predict.c (drop_profile): New function.
7620 (handle_missing_profiles): Ditto.
7621 (counts_to_freqs): Don't overwrite estimated frequencies
7622 when function has no profile counts.
7623 * predict.h (handle_missing_profiles): Declare.
7624 * tree-inline.c (freqs_to_counts): New function.
7625 (copy_cfg_body): Invoke freqs_to_counts as needed.
7626 * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
7628 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
7631 * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
7633 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
7635 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
7638 * config/i386/i386.c (ix86_option_override_internal): Check
7639 X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
7640 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
7641 MASK_AVX256_SPLIT_UNALIGNED_LOAD and
7642 MASK_AVX256_SPLIT_UNALIGNED_STORE.
7644 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
7645 Clear m_COREI7_AVX and update comments.
7646 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
7648 2013-11-12 Martin Jambor <mjambor@suse.cz>
7650 PR rtl-optimization/10474
7651 * ira.c (interesting_dest_for_shprep): New function.
7652 (split_live_ranges_for_shrink_wrap): Likewise.
7653 (find_moveable_pseudos): Move calculation of dominance info,
7654 df_analysios and the final anlyses to...
7655 (ira): ...here, call split_live_ranges_for_shrink_wrap.
7657 2013-11-12 Bin Cheng <bin.cheng@arm.com>
7659 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
7660 Handle type conversion.
7662 2013-11-11 Martin Liska <marxin.liska@gmail.com>
7663 Jan Hubicka <jh@suse.cz>
7665 * cgraph.c (dump_cgraph_node): Profile dump added.
7666 * cgraph.h (struct cgraph_node): New time profile variable added.
7667 * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
7668 * gcov-io.h (gcov_type): New profiler type introduced.
7669 * ipa-profile.c (lto_output_node): Streaming for time profile added.
7670 (input_node): Time profiler is read from LTO stream.
7671 * predict.c (maybe_hot_count_p): Hot prediction changed.
7672 * profile.c (instrument_values): New case for time profiler added.
7673 (compute_value_histograms): Read of time profile.
7674 * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
7675 * tree-profile.c (init_ic_make_global_vars): Time profiler
7677 (gimple_init_edge_profiler): TP function instrumentation.
7678 (gimple_gen_time_profiler): New.
7679 * value-prof.c (gimple_add_histogram_value): Support for time profiler
7681 (dump_histogram_value): TP type added to dumps.
7682 (visit_hist): More sensitive check that takes TP into account.
7683 (gimple_find_values_to_profile): TP instrumentation.
7684 * value-prof.h (hist_type): New histogram type added.
7685 (struct histogram_value_t): Pointer to struct function added.
7686 * libgcc/Makefile.in: New GCOV merge function for TP added.
7687 * libgcov.c: function_counter variable introduced.
7688 (_gcov_merge_time_profile): New.
7689 (_gcov_time_profiler): New.
7691 2013-11-11 Marc Glisse <marc.glisse@inria.fr>
7692 Jeff Law <law@redhat.com>
7694 * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
7695 ao_ref_init_from_ptr_and_size for builtins.
7697 2013-11-11 Uros Bizjak <ubizjak@gmail.com>
7698 H.J. Lu <hongjiu.lu@intel.com>
7701 * config/i386/x86-tune.def
7702 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
7703 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
7704 * config/i386/i386.h
7705 (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
7706 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES. Update for renamed
7707 X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
7708 * config/i386/i386.c (ix86_expand_set_or_movmem): Use
7709 TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
7710 misaligned_prologue_used. Check that
7711 desired_aling <= epilogue_size_needed.
7713 2013-11-11 Cong Hou <congh@google.com>
7715 PR tree-optimization/59050
7716 * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
7718 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
7721 * expmed.c (emit_store_flag): Fail for const-const comparison.
7723 2013-11-11 Tristan Gingold <gingold@adacore.com>
7724 Eric Botcazou <ebotcazou@adacore.com>
7726 * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
7727 * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
7728 * tree.def (CONSTRUCTOR): Likewise.
7729 * doc/generic.texi (CONSTRUCTOR): Likewise. Update description.
7730 * gimplify.c (gimplify_init_constructor): Do not clear the object when
7731 the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
7733 2013-11-11 Basile Starynkevitch <basile@starynkevitch.net>
7735 * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
7738 2013-11-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7740 * config/arm/arm.c (arm_new_rtx_costs): Return after handling
7743 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
7745 * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
7747 2013-11-08 Jeff Law <law@redhat.com>
7749 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
7750 threading paths first, then perform PHI node checks if applicable.
7752 2013-11-10 Karlson2k <k2k@narod.ru>
7753 Kai Tietz <ktietz@redhat.com>
7756 * configure.ac: Adding for exported symbols check
7757 and for rdynamic-check executable-extension.
7758 * configure: Regenerated.
7760 2013-11-10 Uros Bizjak <ubizjak@gmail.com>
7762 * mode-switching.c (optimize_mode_switching): Mark block as
7763 nontransparent, if last_mode at block exit is different from no_mode.
7765 2013-11-09 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7767 * function.c (NAME__MAIN): Move to...
7768 * cfgexpand.c (NAME__MAIN): ...here.
7770 2013-11-09 Richard Sandiford <rdsandiford@googlemail.com>
7772 * target.def (can_use_doloop_p): New hook.
7773 * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
7774 * doc/tm.texi: Regenerate.
7775 * doc/md.texi (doloop_begin, doloop_end): Update documentation.
7776 * hooks.h (hook_bool_dint_dint_uint_true): Declare.
7777 * hooks.c (hook_bool_dint_dint_uint_true): New function.
7778 * targhooks.h (can_use_doloop_if_innermost): Declare.
7779 * targhooks.c (can_use_doloop_if_innermost): New function.
7780 * target.h: Include double-int.h.
7781 * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
7782 Remove iteration count, maximum iteration count, loop depth and
7783 enter-at-top inputs from doloop_begin and doloop_end.
7784 * config/arc/arc.md (doloop_begin, doloop_end): Update for new
7786 * config/arc/arc.c (arc_can_use_doloop_p): New function.
7787 (TARGET_CAN_USE_DOLOOP_P): Define.
7788 * config/arm/thumb2.md (doloop_end): Update for new interface.
7789 * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
7790 * config/bfin/bfin.md (doloop_end): Update for new interface.
7791 * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
7792 (TARGET_CAN_USE_DOLOOP_P): Define.
7793 * config/c6x/c6x.md (doloop_end): Update for new interface.
7794 * config/ia64/ia64.md (doloop_end): Update for new interface.
7795 * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
7796 * config/mep/mep.md (doloop_begin, doloop_end): Update for new
7798 * config/mep/mep.c (mep_emit_doloop): Likewise.
7799 (TARGET_CAN_USE_DOLOOP_P): Define.
7800 * config/rs6000/rs6000.md (doloop_end): Update for new interface.
7801 * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
7802 * config/s390/s390.md (doloop_end): Update for new interface.
7803 * config/sh/sh.md (doloop_end): Likewise.
7804 * config/spu/spu.md (doloop_end): Likewise.
7805 * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
7806 * config/tilegx/tilegx.md (doloop_end): Update for new interface.
7807 * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
7808 * config/tilepro/tilepro.md (doloop_end): Update for new interface.
7809 * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
7810 * config/v850/v850.md (doloop_begin, doloop_end): Update for new
7812 * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
7814 2013-11-08 H.J. Lu <hongjiu.lu@intel.com>
7817 * doc/extend.texi: Move Cilk Plus Builtins node before Other
7820 2013-11-08 Andrew MacLeod <amacleod@redhat.com>
7821 Joseph Myers <joseph@codesourcery.com>
7823 * ginclude/stdatomic.h: New file.
7824 * Makefile.in (USER_H): Add stdatomic.h.
7826 2013-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7828 * config/arm/arm.c (arm_new_rtx_costs): Break after handling
7831 2013-11-08 Jeff Law <law@redhat.com>
7833 * tree-ssa-threadupdate.h (delete_thread_path): Declare.
7834 * tree-ssa-threadupdate.c (delete_thread_path): New function.
7835 (ssa_redirect_edges, thread_block_1): Use it.
7836 (thread_through_loop_header, mark_threaded_blocks): Likewise.
7837 (thread_through_all_blocks, register_jump_thread): Likewise.
7838 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
7840 2013-11-08 James Greenhalgh <james.greenhalgh@arm.com>
7842 * config/arm/aarch-common.c
7843 (search_term): New typedef.
7844 (shift_rtx_costs): New array.
7845 (arm_rtx_shift_left_p): New.
7846 (arm_find_sub_rtx_with_search_term): Likewise.
7847 (arm_find_sub_rtx_with_code): Likewise.
7848 (arm_early_load_addr_dep): Add sanity checking.
7849 (arm_no_early_alu_shift_dep): Likewise.
7850 (arm_no_early_alu_shift_value_dep): Likewise.
7851 (arm_no_early_mul_dep): Likewise.
7852 (arm_no_early_store_addr_dep): Likewise.
7854 2013-11-08 Richard Biener <rguenther@suse.de>
7856 PR tree-optimization/59047
7857 * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
7859 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
7861 * common.opt (fcheck-pointer-bounds): Move to ...
7862 * c-family/c.opt: ... here.
7863 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
7864 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
7865 * langhooks.h (lang_hooks): Remove chkp_supported field.
7866 * toplev.c (process_options): Remove chkp_supported check.
7868 2013-11-08 Richard Biener <rguenther@suse.de>
7870 PR tree-optimization/59038
7871 PR tree-optimization/58955
7872 * tree-loop-distribution.c (pg_add_dependence_edges): Revert
7873 previous change. Handle known dependences correctly.
7875 2013-11-08 Tom de Vries <tom@codesourcery.com>
7877 * config/rs6000/t-xilinx: Remove duplicate contents.
7879 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
7880 Joseph Myers <joseph@codesourcery.com>
7882 * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
7883 (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
7884 TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
7885 (struct tree_base): Add atomic_flag field.
7886 * tree.h (TYPE_ATOMIC): New accessor macro.
7887 (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
7888 (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
7889 (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
7890 (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
7891 * tree.c (set_type_quals): Set TYPE_ATOMIC.
7892 (find_atomic_core_type): New function.
7893 (build_qualified_type): Adjust alignment for qualified types.
7894 (build_atomic_base): New function
7895 (build_common_tree_nodes): Build atomicQI_type_node,
7896 atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
7898 * print-tree.c (print_node): Print atomic qualifier.
7899 * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
7900 * target.def (atomic_assign_expand_fenv): New hook.
7901 * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
7902 * doc/tm.texi: Regenerate.
7903 * targhooks.c (default_atomic_assign_expand_fenv): New function.
7904 * targhooks.h (default_atomic_assign_expand_fenv): Declare.
7905 * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
7906 * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
7908 * config/i386/i386.c (enum ix86_builtins): Add
7909 IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
7910 IX86_BUILTIN_FNCLEX.
7911 (bdesc_special_args): Add __builtin_ia32_fnstenv,
7912 __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
7913 (ix86_expand_builtin): Handle the new built-in functions.
7914 (ix86_atomic_assign_expand_fenv): New function.
7915 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
7916 * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
7917 (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
7918 (fnstenv, fldenv, fnstsw, fnclex): New insns.
7920 2013-11-07 Steve Ellcey <sellcey@mips.com>
7922 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
7923 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
7924 (MULTILIB_DIRNAMES): Add fp64 directory.
7925 (MULTILIB_EXCEPTIONS): Add new exclusions.
7927 2013-11-07 Aldy Hernandez <aldyh@redhat.com>
7929 * gimplify.c (gimple_regimplify_operands): Do not set
7931 * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
7932 (rewrite_close_phi_out_of_ssa): Same.
7933 (rewrite_phi_out_of_ssa): Same.
7934 (rewrite_degenerate_phi): Same.
7935 (handle_scalar_deps_crossing_scop_limits): Same.
7936 * tree-if-conv.c (predicate_scalar_phi): Same.
7937 * tree-parloops.c (create_loads_for_reductions): Same.
7938 (create_final_loads_for_reduction): Same.
7939 (create_loads_and_stores_for_name): Same.
7940 (transform_to_exit_first_loop): Same.
7941 (create_parallel_loop): Same.
7942 * tree-ssa-loop-im.c
7943 (move_computations_dom_walker::before_dom_children): Same.
7944 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
7945 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
7946 * tree-ssa-propagate.c (substitute_and_fold): Same.
7947 * tree-vect-loop.c (vect_finalize_reduction): Same.
7948 * tree-vect-stmts.c (vectorizable_call): Same.
7950 2013-11-07 Mike Stump <mikestump@comcast.net>
7952 * config/pdp11/pdp11.c: Include dbxout.h.
7953 * config/picochip/picochip.c: Likewise.
7955 2013-11-07 Cong Hou <congh@google.com>
7957 PR tree-optimization/56764
7958 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
7959 Combine alias checks if it is possible to amortize the runtime
7960 overhead. Return the number of alias checks after merging.
7961 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
7962 Use the function vect_create_cond_for_alias_checks () to check
7963 the number of alias checks.
7965 2013-11-07 Jeff Law <law@redhat.com>
7967 * varpool.c (ctor_for_folding): Fix typo in comment.
7969 2013-11-07 Joern Rennecke <joern.rennecke@embecosm.com>
7971 * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
7972 reg_a := reg_b + reg_a ==> reg_a := reg_a + reg_b
7974 2013-11-07 Jeff Law <law@redhat.com>
7976 * doc/invoke.texi (-fisolate-erroneous-paths): Document.
7978 * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
7979 No longer check if we have __builtin_trap, assume it's available.
7981 2013-11-07 Diego Novillo <dnovillo@google.com>
7983 * attribs.c (lookup_scoped_attribute_spec): Make static.
7984 (get_attribute_namespace): Likewise.
7985 * builtins.c (more_const_call_expr_args_p): Move from tree.h.
7986 (validate_arglist): Move earlier in the file. Make static.
7987 (expand_stack_restore): Move from stmt.c
7988 (expand_stack_save): Move from stmt.c
7989 (rewrite_call_expr_array): Move earlier in the file.
7990 (rewrite_call_expr_valist): Likewise.
7991 * cfgexpand.c: Include hard-reg-set.h before tree.h
7994 (expand_asm_loc): Move from stmt.c.
7995 (n_occurrences): Move from stmt.c.
7996 (check_operand_nalternatives): Move from stmt.c.
7997 (tree_conflicts_with_clobbers_p): Move from stmt.c.
7998 (expand_asm_operands): Move from stmt.c
7999 (expand_asm_stmt): Move from stmt.c
8000 (expand_computed_goto): Move from stmt.c
8001 (expand_goto): Move from stmt.c
8002 (expand_null_return_1): Move from stmt.c
8003 (expand_null_return): Move from stmt.c
8004 (expand_value_return): Move from stmt.c
8005 (expand_return): Move from stmt.c
8006 (expand_main_function): Move from function.c
8007 (stack_protect_prologue): Move from function.c
8008 * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
8009 (build_function_decl_skip_args): Move from tree.c.
8010 * explow.c (tree_expr_size): Move from tree.c.
8011 * expr.c (addr_expr_of_non_mem_decl_p): Remove.
8012 (fields_length): Move from tree.c.
8013 * fold-const.c (size_low_cst): Move from tree.c.
8014 (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
8015 (tree_expr_nonzero_p): Make static. Move earlier in the file.
8016 (fold_build3_initializer_loc): Remove.
8017 (tree_invalid_nonnegative_warnv_p): Make static.
8018 * function.c (expand_main_function): Move to cfgexpand.c.
8019 (stack_protect_prologue): Move to cfgexpand.c.
8020 (set_insn_locations): Move earlier in the file.
8021 * gimple-fold.c: Include langhooks.h.
8022 (truth_type_for): Move from tree.c.
8023 * print-tree.c (print_vec_tree): Remove.
8024 * stmt.c (expand_computed_goto): Move to cfgexpand.c.
8025 (expand_goto): Move to cfgexpand.c.
8026 (n_occurrences): Move to cfgexpand.c.
8027 (expand_asm_loc): Move to cfgexpand.c
8028 (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
8029 (expand_asm_operands): Move to cfgexpand.c.
8030 (expand_asm_stmt): Move to cfgexpand.c.
8031 (check_operand_nalternatives): Move to cfgexpand.c
8032 (expand_null_return): Move to cfgexpand.c.
8033 (expand_value_return): Move to cfgexpand.c.
8034 (expand_null_return_1): Move to cfgexpand.c.
8035 (expand_return): Move to cfgexpand.c.
8036 (expand_stack_save): Move to builtins.c.
8037 (expand_stack_restore): Move to builtins.c
8038 * symtab.c: Include output.h.
8039 (decl_assembler_name_hash): Move from tree.c.
8040 (decl_assembler_name_equal): Move from tree.c.
8041 * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
8042 * tree-eh.c (in_array_bounds_p): Move from tree.c.
8043 (range_in_array_bounds_p): Move from tree.c.
8044 * tree-object-size.c (fini_object_sizes): Make static.
8045 * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
8046 * tree-vrp.c (ssa_name_nonnegative_p): Remove.
8047 * tree.c (decl_assembler_name_equal): Move to symtab.c.
8048 (tree_expr_size): Move to explow.c.
8049 (decl_assembler_name_hash): Move to symtab.c.
8050 (real_twop): Remove.
8051 (tree_expr_size): Move to explow.c.
8052 (stabilize_reference_1): Move earlier in the file. Make static.
8053 (omp_remove_redundant_declare_simd_attrs): Remove.
8054 (simple_cst_list_equal): Move earlier in the file. Make static.
8055 (size_low_cst): Move to fold-const.c.
8056 (build_type_no_quals): Remove.
8057 (build_function_type_skip_args): Move to cgraphclones.c.
8058 (build_function_decl_skip_args): Move to cgraphclones.c.
8059 (in_array_bounds_p): Move to tree-eh.c.
8060 (range_in_array_bounds_p): Move to tree-eh.c.
8061 (truth_type_for): Move to gimple-fold.c.
8062 (list_equal_p): Remove.
8063 * tree.h (decl_assembler_name_equal): Remove.
8064 (decl_assembler_name_hash): Remove.
8065 (truth_type_for): Remove.
8066 (build_type_no_quals): Remove.
8067 (build_function_decl_skip_args): Remove.
8068 (in_array_bounds_p): Remove.
8069 (range_in_array_bounds_p): Remove.
8070 (size_low_cst): Remove.
8071 (omp_remove_redundant_declare_simd_attrs): Remove.
8072 (tree_expr_size): Remove.
8073 (fields_length): Remove.
8074 (stabilize_reference_1): Remove.
8075 (expand_goto): Remove.
8076 (expand_stack_save): Remove.
8077 (expand_stack_restore): Remove.
8078 (expand_return): Remove.
8079 (fold_build3_initializer_loc): Remove.
8080 (tree_expr_nonzero_p): Remove.
8081 (tree_invalid_nonnegative_warnv_p): Remove.
8082 (tree_expr_nonzero_warnv_p): Remove.
8083 (fold_builtin_snprintf_chk): Remove.
8084 (validate_arglist): Remove.
8085 (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
8086 (simple_cst_list_equal): Remove.
8087 (real_twop): Remove.
8088 (expand_main_function): Remove.
8089 (stack_protect_prologue): Remove.
8090 (print_vec_tree): Remove.
8091 (lookup_scoped_attribute_spec): Remove.
8092 (get_attribute_namespace): Remove.
8093 (expand_computed_goto): Remove.
8094 (expand_asm_stmt): Remove.
8095 (list_equal_p): Remove.
8096 (ssa_name_nonnegative_p): Remove.
8097 (fini_object_sizes): Remove.
8098 (addr_expr_of_non_mem_decl_p): Remove.
8099 (is_tm_safe_or_pure): Move to trans-mem.c.
8100 (more_const_call_expr_args_p): Remove.
8101 (save_vtable_map_decl): Remove.
8103 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
8105 * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
8106 linker plugins, too.
8108 * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
8109 link to libgomp and its dependencies.
8110 * config/ia64/hpux.h (LIB_SPEC): Likewise.
8111 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
8112 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
8113 * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
8115 2013-11-07 Jakub Jelinek <jakub@redhat.com>
8117 * tree-ssa-loop-niter.c: Include tree-ssanames.h.
8118 (determine_value_range): Add loop argument. Use get_range_info to
8120 (bound_difference): Adjust caller.
8122 2013-11-07 Richard Biener <rguenther@suse.de>
8123 Jakub Jelinek <jakub@redhat.com>
8125 * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
8126 latches from header PHI arguments from the latch edge.
8128 2013-11-07 Paolo Carlini <paolo.carlini@oracle.com>
8131 * varasm.c (output_constant): Handle NULLPTR_TYPE.
8133 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
8135 * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
8136 misaligned_prologue_used when it has been set.
8138 2013-11-07 Yury Gribov <y.gribov@samsung.com>
8139 Jakub Jelinek <jakub@redhat.com>
8142 * asan.c (get_mem_refs_of_builtin_call): Allow
8143 integer literals as addresses in instrumented builtins.
8145 2013-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8147 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
8148 Explain why plus_constant is not used.
8150 2013-11-07 Richard Biener <rguenther@suse.de>
8152 * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
8153 (canonicalize_value): ... this. Also handle stripping of
8155 (get_value, set_lattice_value, get_value_for_expr): Adjust.
8156 * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
8157 * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
8159 2013-11-07 Richard Biener <rguenther@suse.de>
8161 * tree-dfa.c (get_ref_base_and_extent): Fix casting.
8163 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
8166 * config/i386/i386.md (push peepholer/splitter): Use Pmode
8167 with stack_pointer_rtx.
8169 2013-11-07 Bin Cheng <bin.cheng@arm.com>
8171 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
8172 using operand_equal_p.
8174 2013-11-07 Bin Cheng <bin.cheng@arm.com>
8176 * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
8177 * tree-affine.c (get_inner_reference_aff): Return base.
8178 * tree-affine.h (get_inner_reference_aff): Change prototype.
8180 2013-11-06 Tobias Burnus <burnus@net-b.de>
8182 * doc/invoke.texi (Wdate-time): Fix typo.
8184 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
8186 * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
8187 cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
8188 fp_arith_reg_operand instead of arith_reg_operand.
8190 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
8192 * config/sh/sh.md (adddi3): Remove empty constraints.
8193 Remove can_create_pseudo_p and arith_reg_operand check.
8194 (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
8195 Split before reload.
8197 2013-11-06 Jeff Law <law@redhat.com>
8198 Tom Tromey <tromey@redhat.com>
8200 * gdbinit.in: Disable strict type checking.
8202 2013-11-06 Vladimir Makarov <vmakarov@redhat.com>
8204 * tree-pass.h (make_pass_live_range_shrinkage): New external.
8205 * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
8206 * sched-rgn.c (gate_handle_live_range_shrinkage): New.
8207 (rest_of_handle_live_range_shrinkage): Ditto
8208 (class pass_live_range_shrinkage): Ditto.
8209 (pass_data_live_range_shrinkage): Ditto.
8210 (make_pass_live_range_shrinkage): Ditto.
8211 * sched-int.h (initialize_live_range_shrinkage): New prototype.
8212 (finish_live_range_shrinkage): Ditto.
8213 * sched-deps.c (create_insn_reg_set): Make void return value.
8214 * passes.def: Add pass_live_range_shrinkage.
8215 * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
8216 * haifa-sched.c (live_range_shrinkage_p): New.
8217 (initialize_live_range_shrinkage, finish_live_range_shrinkage):
8219 (rank_for_schedule): Add code for pressure relief through live
8221 (schedule_insn): Print more debug info.
8222 (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
8223 through live range shrinkage.
8224 * doc/invoke.texi (-flive-range-shrinkage): New.
8225 * common.opt (flive-range-shrinkage): New.
8227 2013-11-06 Uros Bizjak <ubizjak@gmail.com>
8230 * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
8231 AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
8232 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
8233 RTXes that return in AVX256 register.
8235 2013-11-06 Richard Biener <rguenther@suse.de>
8237 PR tree-optimization/58653
8238 * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
8239 (prepare_initializers_chain): Adjust.
8241 2013-11-06 Andrew MacLeod <amacleod@redhat.com>
8243 * gimple.h (block_in_transaction): Move to basic-block.h and rename.
8244 (gimple_in_transaction): Use bb_in_transaction.
8245 * basic-block.h (bb_in_transaction): Relocate here and rename.
8246 * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
8248 2013-11-06 Richard Biener <rguenther@suse.de>
8250 * tree.c (drop_tree_overflow): New function.
8251 * tree.h (drop_tree_overflow): Declare.
8252 * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
8253 * tree-vrp.c (range_int_cst_singleton_p): Use
8254 is_overflow_infinity instead of testing TREE_OVERFLOW.
8255 (extract_range_from_assert): Likewise.
8256 (zero_nonzero_bits_from_vr): Likewise.
8257 (extract_range_basic): Likewise.
8258 (register_new_assert_for): Use drop_tree_overflow.
8259 (vrp_visit_phi_node): Likewise.
8261 2013-11-06 Eric Botcazou <ebotcazou@adacore.com>
8263 * config/i386/i386.c (ix86_expand_prologue): Optimize stack
8264 checking for leaf functions without dynamic stack allocation.
8265 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
8266 (ia64_expand_prologue): Likewise.
8267 * config/mips/mips.c (mips_expand_prologue): Likewise.
8268 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
8269 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
8270 (sparc_flat_expand_prologue): Likewise.
8272 2013-11-06 James Greenhalgh <james.greenhalgh@arm.com>
8274 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
8275 (__ST3_LANE_FUNC): Likewise.
8276 (__ST4_LANE_FUNC): Likewise.
8278 2013-11-06 Nick Clifton <nickc@redhat.com>
8280 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
8281 name returned by msp430_mcu_name.
8282 (LIB_SPEC): If a -T option has not been specified then set a
8283 default, mcu-specific, linker script.
8284 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
8285 * config/msp430/msp430.c (msp430x_names): Likewise.
8286 Alpha sort the names for ease of comparison.
8287 (msp430_mcu_name): New function: Returns a string suitable for
8288 use as a C preprocessor symbol based upon the name of the MCU
8290 (msp430_option_override): Accept msp430x and msp430xv2 as generic
8292 * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
8294 * gcc.c (do_spec_1): Do not insert a space after a %* substitution
8295 unless it is the last part of a spec substring.
8296 * doc/invoke.texi (Spec Files): Document space insertion
8299 2013-11-06 Christian Bruel <christian.bruel@st.com>
8301 * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
8302 Factorize probabilities, Use adjust_address instead of
8303 adjust_automodify_address when possible. Enable for optimize.
8304 (sh_expand_strlen): New function.
8305 * config/sh/sh-protos.h (sh_expand_strlen): Declare.
8306 * config/sh/sh.md (strlensi): New pattern.
8307 (UNSPEC_BUILTIN_STRLEN): Define.
8309 2013-11-06 Jakub Jelinek <jakub@redhat.com>
8312 * expr.c (get_bit_range): Handle *offset == NULL_TREE.
8313 (expand_assignment): If *bitpos is negative, set *offset
8314 and adjust *bitpos, so that it is not negative.
8316 2013-11-06 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
8318 * config/i386/bdver3.md : Added two additional decoder units
8319 to support issue rate of 4 and remodeled vector unit.
8320 * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
8321 architectures is set to 4.
8322 * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
8323 lookahead is set to 4 for BD architectures.
8325 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8327 * config/rs6000/rs6000.c (rs6000_option_override_internal):
8328 Remove restriction against use of VSX instructions when generating
8329 code for little endian mode.
8331 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8333 * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
8334 for both big and little endian.
8335 (mulv8hi3): Swap input operands for merge high and merge low
8336 instructions for little endian.
8338 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8340 * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
8341 define_insn to define_expand that uses even patterns for big
8342 endian and odd patterns for little endian.
8343 (vec_widen_smult_even_v16qi): Likewise.
8344 (vec_widen_umult_even_v8hi): Likewise.
8345 (vec_widen_smult_even_v8hi): Likewise.
8346 (vec_widen_umult_odd_v16qi): Likewise.
8347 (vec_widen_smult_odd_v16qi): Likewise.
8348 (vec_widen_umult_odd_v8hi): Likewise.
8349 (vec_widen_smult_odd_v8hi): Likewise.
8350 (altivec_vmuleub): New define_insn.
8351 (altivec_vmuloub): Likewise.
8352 (altivec_vmulesb): Likewise.
8353 (altivec_vmulosb): Likewise.
8354 (altivec_vmuleuh): Likewise.
8355 (altivec_vmulouh): Likewise.
8356 (altivec_vmulesh): Likewise.
8357 (altivec_vmulosh): Likewise.
8359 2013-11-05 Mike Stump <mikestump@comcast.net>
8361 * Makefile.in (mostlyclean): Remove c-family objects.
8363 2013-11-05 Ian Lance Taylor <iant@google.com>
8365 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
8366 If possible, add .cfi directives to record change to bx.
8367 * config/i386/i386.c (ix86_emit_cfi): New function.
8368 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
8370 2013-11-05 Steven Bosscher <steven@gcc.gnu.org>
8372 * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
8373 immediately after a label for a tablejump pattern.
8375 * config/arm/arm.c (is_jump_table): Remove.
8376 (create_fix_barrier): Use tablejump_p instead.
8377 (arm_reorg): Likewise.
8378 (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
8379 (thumb2_output_casesi): Likewise.
8380 * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
8381 * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
8382 casesi_shift_media, casesi_load_media): Likewise.
8383 * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
8384 * config/microblaze/microblaze.md: Likewise.
8386 2013-11-05 Tobias Burnus <burnus@net-b.de>
8388 * doc/invoke.texi (-Wdate-time): Document.
8390 2013-11-05 Richard Sandiford <rdsandiford@googlemail.com>
8392 * double-int.c (lshift_double, rshift_double): Remove
8393 SHIFT_COUNT_TRUNCATED handling.
8395 2013-11-05 Jeff Law <law@redhat.com>
8397 * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
8398 * common.opt (-fisolate-erroneous-paths): Add option and documentation.
8399 * gimple-ssa-isolate-paths.c: New file.
8400 * gimple.c (check_loadstore): New function.
8401 (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
8402 Verify OP is in the argument list and the argument corresponding
8403 to OP is a pointer type. Use operand_equal_p rather than
8404 pointer equality when testing if OP is on the nonnull list.
8405 Use check_loadstore rather than count_ptr_derefs. Handle
8406 GIMPLE_RETURN statements.
8407 * tree-vrp.c (infer_nonnull_range): Remove.
8408 * gimple.h (infer_nonnull_range): Declare.
8409 * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
8410 * passes.def: Add pass_isolate_erroneous_paths.
8411 * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
8412 * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
8413 * tree-ssa.c (struct count_ptr_d): Remove.
8414 (count_ptr_derefs, count_uses_and_derefs): Remove.
8415 * tree-ssa.h (count_uses_and_derefs): Remove.
8417 2013-11-05 Jakub Jelinek <jakub@redhat.com>
8419 PR rtl-optimization/58997
8420 * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
8421 get_iv_value to be in iv->mode rather than iv->extend_mode.
8422 (iv_extend): Likewise. Otherwise, if iv->extend != extend,
8423 use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
8424 * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
8427 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
8429 * gimple.h: Move some prototypes to gimple-expr.h and add to include
8431 (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
8432 Move to gimple-expr.h.
8433 * gimple-expr.h: New file. Relocate some prototypes from gimple.h.
8434 (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
8435 is_gimple_id, virtual_operand_p, is_gimple_addressable,
8436 is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
8438 * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
8439 gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
8440 is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
8441 is_gimple_address, is_gimple_invariant_address,
8442 is_gimple_ip_invariant_address, is_gimple_min_invariant,
8443 is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
8444 virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
8445 is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
8446 gimple_decl_printable_name, useless_type_conversion_p,
8447 types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
8449 * gimple-expr.c: New File.
8450 (useless_type_conversion_p, gimple_set_body, gimple_body,
8451 gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
8452 gimple_can_coalesce_p, extract_ops_from_tree_1,
8453 gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
8454 is_gimple_address, is_gimple_invariant_address,
8455 is_gimple_ip_invariant_address, is_gimple_min_invariant,
8456 is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
8457 is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
8458 is_gimple_mem_ref_addr): Relocate here.
8459 * Makefile.in (OBJS): Add gimple-expr.o.
8461 2013-11-05 David Malcolm <dmalcolm@redhat.com>
8463 * gengtype-parse.c (struct_field_seq): Support empty structs.
8465 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
8467 * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
8469 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
8471 * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
8473 * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
8475 (LONG_DOUBLE_TYPE_SIZE): New define.
8476 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
8478 2013-11-05 Paolo Carlini <paolo.carlini@oracle.com>
8481 * doc/extend.texi [visibility ("visibility_type")]: Add example
8482 about visibility attribute on namespace declaration.
8484 2013-11-05 Richard Biener <rguenther@suse.de>
8487 * passes.def (all_passes): Start with pass_fixup_cfg again.
8489 2013-11-05 Richard Biener <rguenther@suse.de>
8491 PR tree-optimization/58955
8492 * tree-loop-distribution.c (pg_add_dependence_edges): Fix
8495 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8497 * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
8499 (vec_pack_ufix_trunc_v2df): Likewise.
8501 2013-11-05 H.J. Lu <hongjiu.lu@intel.com>
8504 * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
8505 pattern, instead of word_mode.
8507 * expr.c (emit_block_move_via_movmem): Don't use mode wider than
8509 (set_storage_via_setmem): Likewise.
8511 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
8513 * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
8514 gimple.h and the rest of the condition in eliminate_build.
8515 (eliminate_build): Call new routine.
8516 * gimple.h (phi_ssa_name_p): Delete.
8518 2013-11-05 Trevor Saunders <tsaunders@mozilla.com>
8520 * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
8521 case of no prefix and reserving zero slots, because when that's the
8522 case we'll never get here.
8523 * vec.h (va_heap::reserve): Don't try and handle
8524 vec_prefix::calculate_allocation returning zero because that should
8527 2013-11-05 Richard Biener <rguenther@suse.de>
8530 * tree-dfa.c (get_ref_base_and_extent): Merge common code
8531 in MEM_REF and TARGET_MEM_REF handling. Make sure to
8532 process trailing array detection before diving into the
8533 view-converted object (and possibly apply some extra offset).
8535 2013-11-05 Joseph Myers <joseph@codesourcery.com>
8537 * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
8539 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
8541 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
8543 PR tree-optimization/58958
8544 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
8545 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
8547 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
8549 * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
8550 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
8552 2013-11-05 Jakub Jelinek <jakub@redhat.com>
8554 PR tree-optimization/58984
8555 * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
8556 set *SIZE_P if non-NULL on success.
8557 (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
8559 (ipcp_transform_function): Likewise. Punt if size of access
8560 is different from TYPE_SIZE on v->value's type.
8562 2013-11-05 Tobias Burnus <burnus@net-b.de>
8564 * doc/invoke.texi (-fopenmp-simd): Document new option.
8565 * gimplify.c (gimplify_body): Accept -fopenmp-simd.
8566 * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
8567 * tree.c (attribute_value_equal): Ditto.
8569 2013-11-04 Wei Mi <wmi@google.com>
8571 * sched-rgn.c (add_branch_dependences): Keep insns in
8572 a SCHED_GROUP at the end of BB to remain their location.
8574 2013-11-04 Wei Mi <wmi@google.com>
8576 * config/i386/i386.c (memory_address_length): Extract a part
8577 of code to rip_relative_addr_p.
8578 (rip_relative_addr_p): New Function.
8579 (ix86_macro_fusion_p): Ditto.
8580 (ix86_macro_fusion_pair_p): Ditto.
8581 * config/i386/i386.h: Add new tune features about macro-fusion.
8582 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
8583 * doc/tm.texi: Generated.
8584 * doc/tm.texi.in: Ditto.
8585 * haifa-sched.c (try_group_insn): New Function.
8586 (group_insns_for_macro_fusion): Ditto.
8587 (sched_init): Call group_insns_for_macro_fusion.
8588 * target.def: Add two hooks: macro_fusion_p and
8589 macro_fusion_pair_p.
8591 2013-11-04 Kostya Serebryany <kcc@google.com>
8593 Update to match the changed asan API.
8594 * asan.c (asan_function_start): New function.
8595 (asan_emit_stack_protection): Update the string stored in the
8596 stack red zone to match new API. Store the PC of the current
8597 function in the red zone.
8598 (asan_global_struct): Update the __asan_global definition to match
8600 (asan_add_global): Ditto.
8601 * asan.h (asan_function_start): New prototype.
8602 * final.c (final_start_function): Call asan_function_start.
8603 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
8606 2013-11-04 Wei Mi <wmi@google.com>
8608 * config/i386/i386-c.c (ix86_target_macros_internal): Separate
8609 PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
8610 * config/i386/i386.c (ix86_option_override_internal): Ditto.
8611 (ix86_issue_rate): Ditto.
8612 (ix86_adjust_cost): Ditto.
8613 (ia32_multipass_dfa_lookahead): Ditto.
8614 (ix86_sched_init_global): Ditto.
8615 (get_builtin_code_for_version): Ditto.
8616 * config/i386/i386.h (enum target_cpu_default): Ditto.
8617 (enum processor_type): Ditto.
8618 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
8620 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
8622 PR rtl-optimization/58967
8623 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
8624 !lra_in_progress for mode sizes bigger word.
8626 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8628 * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
8629 arguments to merge instruction for little endian.
8630 (vec_widen_umult_lo_v16qi): Likewise.
8631 (vec_widen_smult_hi_v16qi): Likewise.
8632 (vec_widen_smult_lo_v16qi): Likewise.
8633 (vec_widen_umult_hi_v8hi): Likewise.
8634 (vec_widen_umult_lo_v8hi): Likewise.
8635 (vec_widen_smult_hi_v8hi): Likewise.
8636 (vec_widen_smult_lo_v8hi): Likewise.
8638 2013-11-04 Ian Lance Taylor <iant@google.com>
8640 * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
8641 * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
8642 builtins that take pointers.
8643 * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
8644 * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
8645 (run_gcc): Pass -fnon-call-exceptions.
8647 2013-11-04 Jakub Jelinek <jakub@redhat.com>
8649 * optabs.c (expand_vec_perm): Revert one incorrect line from
8652 PR tree-optimization/58978
8653 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
8654 use_stmt by single_imm_use directly. Only call single_imm_use
8657 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
8659 PR rtl-optimization/58968
8660 * lra-spills.c (return_regno_p): New function.
8661 (lra_final_code_change): Use it.
8663 2013-11-04 Joseph Myers <joseph@codesourcery.com>
8665 * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
8666 * target.def (float_exceptions_rounding_supported_p): New hook.
8667 * targhooks.c (default_float_exceptions_rounding_supported_p): New
8669 * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
8670 * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
8672 * doc/tm.texi: Regenerate.
8673 * config.gcc (powerpc*-*-linux*): Set extra_objs.
8674 * config/rs6000/rs6000-linux.c: New file.
8675 * config/rs6000/rs6000-protos.h
8676 (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
8677 * config/rs6000/linux.h
8678 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
8679 * config/rs6000/linux64.h
8680 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
8681 * config/rs6000/t-linux (rs6000-linux.o): New rule.
8682 * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
8684 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8686 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
8687 Replace the define_insn_and_split with a define_insn and two
8688 define_splits, with the split after reload re-permuting the source
8689 register to its original value.
8690 (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
8691 (*vsx_le_perm_store_v8hi): Likewise.
8692 (*vsx_le_perm_store_v16qi): Likewise.
8694 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8696 * config/rs6000/vector.md (vec_pack_trunc_v2df): Adjust for
8699 2013-11-04 Jakub Jelinek <jakub@redhat.com>
8701 PR tree-optimization/58946
8702 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
8703 bbs with bbinfo[idx].op != NULL before all blocks with
8704 bbinfo[idx].op == NULL.
8706 2013-11-04 Richard Sandiford <rdsandiford@googlemail.com>
8708 * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
8709 (avr_dump_double_int_hex): Likewise.
8710 (avr_log_vadump): Remove %D and %X handling.
8711 * config/avr/avr.c (avr_double_int_push_digit): Delete.
8712 (avr_map_op_t): Change map from double_int to unsigned int.
8713 (avr_map_op): Update accordingly.
8714 (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
8715 (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
8716 unsigned ints rather than double_ints.
8718 2013-11-03 Marek Polacek <polacek@redhat.com>
8720 Implement -fsanitize=vla-bound.
8721 * opts.c (common_handle_option): Handle vla-bound.
8722 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
8723 * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
8724 * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
8726 2013-11-02 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
8728 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
8731 2013-11-02 Uros Bizjak <ubizjak@gmail.com>
8733 * config/i386/constraints.md (Ts, Tv): New address constrains.
8734 * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
8735 constraint for address_no_seg_operand.
8736 * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
8737 (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
8738 (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
8739 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
8740 (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
8741 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
8742 (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
8743 (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
8744 constraint for vsib_address_operand.
8746 2013-11-02 Steven Bosscher <steven@gcc.gnu.org>
8748 * gcse.c (pre_delete): Remove references to regmove from comments.
8749 * recog.c: (validate_replace_rtx_1): Likewise.
8750 * config/rl78/rl78.c: Likewise.
8751 * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
8752 * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
8753 * common/config/mmix/mmix-common.c: Likewise.
8755 2013-11-01 Trevor Saunders <tsaunders@mozilla.com>
8757 * function.c (reorder_blocks): Convert block_stack to a stack_vec.
8758 * gimplify.c (gimplify_compound_lval): Likewise.
8759 * graphite-clast-to-gimple.c (gloog): Likewise.
8760 * graphite-dependences.c (loop_is_parallel_p): Likewise.
8761 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
8762 (limit_scop); Likewise.
8763 (build_scops): Likewise.
8764 (dot_scop): Likewise.
8765 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
8766 (build_scop_drs): Likewise.
8767 (insert_stmts): Likewise.
8768 (insert_out_of_ssa_copy): Likewise.
8769 (remove_phi): Likewise.
8770 (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
8771 * hw-doloop.c (discover_loop): Likewise.
8772 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
8773 * tree-dfa.c (dump_enumerated_decls): Likewise.
8774 * tree-if-conv.c (if_convertable_loop_p): Likewise.
8775 * tree-inline.c (tree_function_versioning): Likewise.
8776 * tree-loop-distribution.c (build_rdg): Likewise.
8777 (rdg_flag_vertex_and_dependent): Likewise.
8778 (distribute_loop): Likewise.
8779 * tree-parloops.c (loop_parallel_p): Likewise.
8780 (eliminate_local_variables): Likewise.
8781 (separate_decls_in_region): Likewise.
8782 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
8783 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
8784 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
8785 * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
8786 * tree-vect-patterns.c (vect_pattern_recog): Likewise.
8787 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
8788 (vectorizable_condition): Likewise.
8790 2013-11-01 Uros Bizjak <ubizjak@gmail.com>
8792 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
8793 * configure: Regenerate.
8794 * config/i386/i386.md (*movdi_internal): Change
8795 HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
8796 (*movdf_internal): Ditto.
8797 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
8798 * config/i386/sse.md (vec_concatv2di): Output interunit movq
8799 for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
8801 2013-10-31 Robert Suchanek <Robert.Suchanek@imgtec.com>
8803 * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
8806 2013-10-31 David Malcolm <dmalcolm@redhat.com>
8808 Automated part of renaming of symtab_node_base to symtab_node.
8810 Patch autogenerated by rename_symtab.py from
8811 https://github.com/davidmalcolm/gcc-refactoring-scripts
8812 revision 58bb219cc090b2f4516a9297d868c245495ee622
8813 with ChangeLog entry fixed up by hand.
8815 * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
8817 (cgraph_node_for_asm): Likewise.
8818 * cgraph.h (symtab_node_base): Likewise.
8819 (cgraph_node): Likewise.
8820 (varpool_node): Likewise.
8821 (is_a_helper <cgraph_node>::test): Likewise.
8822 (is_a_helper <varpool_node>::test): Likewise.
8823 (symtab_nodes): Likewise.
8824 (symtab_register_node): Likewise.
8825 (symtab_unregister_node): Likewise.
8826 (symtab_remove_node): Likewise.
8827 (symtab_get_node): Likewise.
8828 (symtab_node_for_asm): Likewise.
8829 (symtab_node_asm_name): Likewise.
8830 (symtab_node_name): Likewise.
8831 (symtab_insert_node_to_hashtable): Likewise.
8832 (symtab_add_to_same_comdat_group): Likewise.
8833 (symtab_dissolve_same_comdat_group_list): Likewise.
8834 (dump_symtab_node): Likewise.
8835 (debug_symtab_node): Likewise.
8836 (dump_symtab_base): Likewise.
8837 (verify_symtab_node): Likewise.
8838 (verify_symtab_base): Likewise.
8839 (symtab_used_from_object_file_p): Likewise.
8840 (symtab_alias_ultimate_target): Likewise.
8841 (symtab_resolve_alias): Likewise.
8842 (fixup_same_cpp_alias_visibility): Likewise.
8843 (symtab_for_node_and_aliases): Likewise.
8844 (symtab_nonoverwritable_alias): Likewise.
8845 (availability symtab_node_availability): Likewise.
8846 (symtab_semantically_equivalent_p): Likewise.
8847 (fixup_same_cpp_alias_visibility): Likewise.
8848 (symtab_prevail_in_asm_name_hash): Likewise.
8850 (varpool): Likewise.
8851 (varpool_first_variable): Likewise.
8852 (varpool_next_variable): Likewise.
8853 (varpool_first_static_initializer): Likewise.
8854 (varpool_next_static_initializer): Likewise.
8855 (varpool_first_defined_variable): Likewise.
8856 (varpool_next_defined_variable): Likewise.
8857 (cgraph_first_defined_function): Likewise.
8858 (cgraph_next_defined_function): Likewise.
8859 (cgraph_first_function): Likewise.
8860 (cgraph_next_function): Likewise.
8861 (cgraph_first_function_with_gimple_body): Likewise.
8862 (cgraph_next_function_with_gimple_body): Likewise.
8863 (symtab_alias_target): Likewise.
8864 (symtab_real_symbol_p): Likewise.
8865 (symtab_can_be_discarded): Likewise.
8866 * cgraphbuild.c (mark_address): Likewise.
8867 (mark_load): Likewise.
8868 (mark_store): Likewise.
8869 * cgraphunit.c (decide_is_symbol_needed): Likewise.
8871 (enqueue_node): Likewise.
8872 (referred_to_p): Likewise.
8873 (cgraph_process_same_body_aliases): Likewise.
8874 (analyze_functions): Likewise.
8875 (handle_alias_pairs): Likewise.
8876 (output_weakrefs): Likewise.
8877 (compile): Likewise.
8878 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
8879 * ipa-inline-analysis.c (inline_write_summary): Likewise.
8880 * ipa-prop.c (remove_described_reference): Likewise.
8881 (try_decrement_rdesc_refcount): Likewise.
8882 (ipa_edge_duplication_hook): Likewise.
8883 * ipa-ref.c (ipa_record_reference): Likewise.
8884 (ipa_maybe_record_reference): Likewise.
8885 (ipa_clone_ref): Likewise.
8886 (ipa_clone_references): Likewise.
8887 (ipa_clone_referring): Likewise.
8888 (ipa_find_reference): Likewise.
8889 (ipa_remove_stmt_references): Likewise.
8890 (ipa_clear_stmts_in_references): Likewise.
8891 * ipa-ref.h (symtab_node_base): Likewise.
8892 (ipa_ref): Likewise.
8893 (ipa_record_reference): Likewise.
8894 (ipa_maybe_record_reference): Likewise.
8895 (ipa_clone_references): Likewise.
8896 (ipa_clone_referring): Likewise.
8897 (ipa_clone_ref): Likewise.
8898 (ipa_find_reference): Likewise.
8899 (ipa_remove_stmt_references): Likewise.
8900 (ipa_clear_stmts_in_references): Likewise.
8901 * ipa-reference.c (ipa_reference_write_optimization_summary):
8903 * ipa.c (enqueue_node): Likewise.
8904 (process_references): Likewise.
8905 (walk_polymorphic_call_targets): Likewise.
8906 (symtab_remove_unreachable_nodes): Likewise.
8907 (address_taken_from_non_vtable_p): Likewise.
8908 (comdat_can_be_unshared_p_1): Likewise.
8909 (comdat_can_be_unshared_p): Likewise.
8910 (can_replace_by_local_alias): Likewise.
8911 (function_and_variable_visibility): Likewise.
8912 * is-a.h: Likewise (within example in comment).
8913 * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
8914 (lto_symtab_encoder_encode): Likewise.
8915 (lto_symtab_encoder_delete_node): Likewise.
8916 (lto_symtab_encoder_in_partition_p): Likewise.
8917 (lto_set_symtab_encoder_in_partition): Likewise.
8918 (output_refs): Likewise.
8919 (compute_ltrans_boundary): Likewise.
8920 (output_symtab): Likewise.
8921 (input_node): Likewise.
8922 (input_ref): Likewise.
8923 (input_edge): Likewise.
8924 (input_cgraph_1): Likewise.
8925 (input_refs): Likewise.
8926 (output_cgraph_opt_summary): Likewise.
8927 (input_node_opt_summary): Likewise.
8928 (input_cgraph_opt_section): Likewise.
8929 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
8931 * lto-streamer-out.c (lto_output): Likewise.
8932 (output_symbol_p): Likewise.
8933 (produce_symtab): Likewise.
8934 * lto-streamer.h (lto_encoder_entry): Likewise.
8935 (lto_free_function_in_decl_state_for_node): Likewise.
8936 (lto_symtab_encoder_encode): Likewise.
8937 (lto_symtab_encoder_delete_node): Likewise.
8938 (lto_symtab_encoder_in_partition_p): Likewise.
8939 (lto_set_symtab_encoder_in_partition): Likewise.
8940 (lto_symtab_encoder_lookup): Likewise.
8941 (lsei_node): Likewise.
8942 (lto_symtab_encoder_deref): Likewise.
8943 * symtab.c (symtab_hash): Likewise.
8944 (assembler_name_hash): Likewise.
8945 (symtab_nodes): Likewise.
8946 (hash_node): Likewise.
8947 (eq_node): Likewise.
8948 (hash_node_by_assembler_name): Likewise.
8949 (eq_assembler_name): Likewise.
8950 (insert_to_assembler_name_hash): Likewise.
8951 (unlink_from_assembler_name_hash): Likewise.
8952 (symtab_prevail_in_asm_name_hash): Likewise.
8953 (symtab_register_node): Likewise.
8954 (symtab_insert_node_to_hashtable): Likewise.
8955 (symtab_unregister_node): Likewise.
8956 (symtab_get_node): Likewise.
8957 (symtab_remove_node): Likewise.
8958 (symtab_initialize_asm_name_hash): Likewise.
8959 (symtab_node_for_asm): Likewise.
8960 (symtab_add_to_same_comdat_group): Likewise.
8961 (symtab_dissolve_same_comdat_group_list): Likewise.
8962 (symtab_node_asm_name): Likewise.
8963 (symtab_node_name): Likewise.
8964 (dump_symtab_base): Likewise.
8965 (dump_symtab_node): Likewise.
8966 (dump_symtab): Likewise.
8967 (debug_symtab_node): Likewise.
8968 (verify_symtab_base): Likewise.
8969 (verify_symtab_node): Likewise.
8970 (verify_symtab): Likewise.
8971 (symtab_used_from_object_file_p): Likewise.
8972 (symtab_node_availability): Likewise.
8973 (symtab_alias_ultimate_target): Likewise.
8974 (fixup_same_cpp_alias_visibility): Likewise.
8975 (symtab_resolve_alias): Likewise.
8976 (symtab_for_node_and_aliases): Likewise.
8977 (symtab_for_node_and_aliases): Likewise.
8978 (symtab_nonoverwritable_alias_1): Likewise.
8979 (symtab_nonoverwritable_alias): Likewise.
8980 (symtab_semantically_equivalent_p): Likewise.
8981 * value-prof.c (init_node_map): Likewise.
8982 * varasm.c (find_decl): Likewise.
8983 * varpool.c (varpool_node_for_asm): Likewise.
8984 (varpool_remove_unreferenced_decls): Likewise.
8986 2013-10-31 David Malcolm <dmalcolm@redhat.com>
8988 Manual part of renaming of symtab_node_base to symtab_node.
8990 * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
8991 clashes with the preferred name for the base class.
8992 (const_symtab_node): Remove redundant typedef.
8994 2013-10-31 Jakub Jelinek <jakub@redhat.com>
8996 * optabs.c (expand_vec_perm): Avoid vector mode punning
8997 SUBREGs in SET_DEST.
8998 * expmed.c (store_bit_field_1): Likewise.
8999 * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
9000 vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
9001 vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
9002 * config/i386/i386.c (ix86_expand_vector_move_misalign,
9003 ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
9004 ix86_expand_sse_unpack, ix86_expand_args_builtin,
9005 ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
9006 emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
9007 expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
9008 expand_vec_perm_vpshufb2_vpermq,
9009 expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
9010 expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
9011 ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
9012 (expand_vec_perm_palignr): Likewise. Modify a copy of *d rather
9015 2013-10-31 Uros Bizjak <ubizjak@gmail.com>
9017 * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
9018 Use gcc_unreachable for unhandled modes. Do not check results of
9019 expand_simple_binop. If not expanded to target, move the result.
9021 2013-10-31 Chung-Ju Wu <jasonwucj@gmail.com>
9022 Shiva Chen <shiva0217@gmail.com>
9024 * config.gcc (nds32*-*-*): Add nds32 target.
9025 * config/nds32/nds32.c: New file.
9026 * config/nds32/nds32.h: New file.
9027 * config/nds32/nds32.md: New file.
9028 * config/nds32/constants.md: New file.
9029 * config/nds32/constraints.md: New file.
9030 * config/nds32/iterators.md: New file.
9031 * config/nds32/nds32-doubleword.md: New file.
9032 * config/nds32/nds32-intrinsic.md: New file.
9033 * config/nds32/nds32_intrinsic.h: New file.
9034 * config/nds32/nds32-modes.def: New file.
9035 * config/nds32/nds32-multiple.md: New file.
9036 * config/nds32/nds32.opt: New file.
9037 * config/nds32/nds32-opts.h: New file.
9038 * config/nds32/nds32-protos.h: New file.
9039 * config/nds32/nds32-peephole2.md: New file.
9040 * config/nds32/pipelines.md: New file.
9041 * config/nds32/predicates.md: New file.
9042 * config/nds32/t-mlibs: New file.
9043 * common/config/nds32: New directory and files.
9045 * doc/invoke.texi (NDS32 options): Document nds32 specific options.
9046 * doc/md.texi (NDS32 family): Document nds32 specific constraints.
9047 * doc/install.texi (Cross-Compiler-Specific Options): Document
9048 --with-nds32-lib for nds32 target.
9049 * doc/extend.texi (Function Attributes, Target Builtins): Document
9050 nds32 specific attributes.
9052 2013-10-31 Vladimir Makarov <vmakarov@redhat.com>
9054 * lra-constraints (process_alt_operands): Use the result
9055 elimination register for operand when matching constraints.
9057 2013-10-31 Jakub Jelinek <jakub@redhat.com>
9059 * tree-vrp.c (maybe_set_nonzero_bits): New function.
9060 (remove_range_assertions): Call it.
9062 * tree.c (tree_ctz): New function.
9063 * tree.h (tree_ctz): New prototype.
9064 * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
9065 first argument from tree to const_tree.
9066 * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
9067 * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
9068 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
9070 * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
9071 * tree-vect-loop.c (vect_analyze_loop_operations,
9072 vect_transform_loop): Don't force scalar loop for bound just because
9073 number of iterations is unknown, only do it if it is not known to be
9074 a multiple of vectorization_factor.
9075 * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
9077 * gimple-pretty-print.c (dump_ssaname_info): Print newline also
9078 in case of VR_VARYING. Print get_nonzero_bits if not all ones.
9079 * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
9080 (set_nonzero_bits, get_nonzero_bits): New prototypes.
9081 * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
9082 a default def isn't partially constant.
9083 (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
9084 is known to be partially zero.
9085 (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
9086 to see if a default def isn't partially constant.
9087 * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
9088 creation of a range, if VR_RANGE, try to improve nonzero_bits from
9090 (set_nonzero_bits, get_nonzero_bits): New functions.
9092 * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
9093 * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
9094 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
9095 (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
9096 uses but in the condition and ASSERT_EXPR and the other successor of
9097 the predecessor bb is __builtin_unreachable (), set_range_info of the
9098 ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
9100 2013-10-31 Martin Jambor <mjambor@suse.cz>
9102 PR rtl-optimization/58934
9104 2013-10-30 Martin Jambor <mjambor@suse.cz>
9105 PR rtl-optimization/10474
9106 * ira.c (find_moveable_pseudos): Do not calculate dominance info
9108 (interesting_dest_for_shprep): New function.
9109 (split_live_ranges_for_shrink_wrap): Likewise.
9110 (ira): Calculate dominance info and df analysis. Call
9111 split_live_ranges_for_shrink_wrap.
9113 2013-10-31 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
9114 Yury Gribov <y.gribov@samsung.com>
9117 * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
9118 shadow pointer to avoid clobbering the main one.
9120 2013-10-31 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9122 * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
9124 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
9127 * ira-color.c (update_costs_from_copies): Add new parameter. Use
9128 it for calling update_costs_from_allocno.
9129 (assign_hard_reg): Call restore_costs_from_copies only for
9130 !retry_p. Pass new argument to update_costs_from_copies.
9131 (color_pass): Pass new argument to update_costs_from_copies.
9132 (ira_mark_allocation_change): Ditto.
9134 2013-10-30 Sharad Singhai <singhai@google.com>
9137 * opts.c (common_handle_option): Remove deprecated option
9138 -ftree-vectorizer-verbose.
9139 * doc/invoke.texi (Debugging Options): Ditto.
9140 * opts-global.c (handle_common_deferred_options): Ditto.
9141 (dump_remap_tree_vectorizer_verbose): Delete.
9142 * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
9144 2013-10-30 DJ Delorie <dj@redhat.com>
9146 * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
9147 that take no arguments.
9149 2013-10-30 Joern Rennecke <joern.rennecke@embecosm.com>
9152 * reload1.c (update_eliminables_and_spill): New function, broken
9154 (reload): Use it. Check for frame size change after frame size
9155 alignment, and call update_eliminables_and_spill first if continue-ing.
9157 2013-10-30 Cong Hou <congh@google.com>
9160 * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
9161 * config/i386/i386.c (ix86_expand_sse2_abs): New function.
9162 * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
9164 2013-10-18 Mikael Pettersson <mikpelinux@gmail.com>
9166 PR rtl-optimization/58369
9167 * reload1.c (compute_reload_subreg_offset): New function.
9168 (choose_reload_regs): Use it to pass endian-correct
9169 offset to subreg_regno_offset.
9171 2013-10-30 Tobias Burnus <burnus@net-b.de>
9174 * tree-cfg.c (replace_loop_annotate): Replace warning by
9177 2013-10-30 Jason Merrill <jason@redhat.com>
9179 * configure.ac (loose_warn): Add -Wno-format if
9180 --disable-build-format-warnings.
9182 2013-10-30 David Malcolm <dmalcolm@redhat.com>
9184 * cgraphunit.c (analyze_functions): Split symtab_node declarations
9185 onto multiple lines to make things easier for rename_symtab.py.
9187 * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
9188 (symtab_semantically_equivalent_p): Likewise.
9190 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
9193 * lra.c (check_rtl): Remove address check before LRA work.
9195 2013-10-30 Marc Glisse <marc.glisse@inria.fr>
9197 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
9198 POINTER_PLUS_EXPR in the defining statement.
9200 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
9202 * regmove.c: Remove.
9203 * tree-pass.h (make_pass_regmove): Remove.
9204 * timevar.def (TV_REGMOVE): Remove.
9205 * passes.def (pass_regmove): Remove.
9206 * opts.c (default_options_table): Remove entry for regmove.
9207 * doc/passes.texi: Remove regmove pass description.
9208 * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
9210 (-fdump-rtl-regmove): Ditto.
9211 * common.opt (foptimize-register-move, fregmove): Ignore.
9212 * Makefile.in (OBJS): Remove regmove.o.
9213 * regmove.c: Remove.
9214 * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
9216 (struct ira_allocno) New member allocno_prefs.
9217 (ALLOCNO_PREFS): New macro.
9218 (ira_prefs, ira_prefs_num): New external vars.
9219 (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
9220 (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
9221 (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
9223 (ira_add_allocno_copy_to_list): Remove prototype.
9224 (ira_swap_allocno_copy_ends_if_necessary): Ditto.
9225 (ira_pref_iterator): New type.
9226 (ira_pref_iter_init, ira_pref_iter_cond): New functions.
9227 (FOR_EACH_PREF): New macro.
9228 * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
9229 (ira_get_dup_out_num): Ditto. Rename from get_dup_num. Modify the
9231 (ira_setup_alts): New function.
9232 (decrease_live_ranges_number): New function.
9233 (ira): Call the above function.
9234 * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
9235 (ira_create_allocno): Initialize allocno prefs.
9236 (pref_pool, pref_vec): New static vars.
9237 (initiate_prefs, find_allocno_pref, ira_create_pref): New
9239 (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
9240 (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
9241 (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
9242 (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
9243 (ira_add_allocno_copy_to_list): Make static. Rename to
9244 add_allocno_copy_to_list.
9245 (ira_swap_allocno_copy_ends_if_necessary): Make static. Rename to
9246 swap_allocno_copy_ends_if_necessary.
9247 (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
9248 ira_remove_allocno_prefs.
9249 (ira_flattening): Ditto.
9250 (ira_build): Call initiate_prefs, print_prefs.
9251 (ira_destroy): Call finish_prefs.
9252 * ira-color.c (struct update_cost_record): New.
9253 (struct allocno_color_data): Add new member update_cost_records.
9254 (update_cost_record_pool): New static var.
9255 (init_update_cost_records, get_update_cost_record): New functions.
9256 (free_update_cost_record_list, finish_update_cost_records): Ditto.
9257 (struct update_cost_queue_elem): Add member from.
9258 (initiate_cost_update): Call init_update_cost_records.
9259 (finish_cost_update): Call finish_update_cost_records.
9260 (queue_update_cost, get_next_update_cost): Add new param from.
9261 (Update_allocno_cost, update_costs_from_allocno): New functions.
9262 (update_costs_from_prefs): Ditto.
9263 (update_copy_costs): Rename to update_costs_from_copies.
9264 (restore_costs_from_copies): New function.
9265 (update_conflict_hard_regno_costs): Don't go back.
9266 (assign_hard_reg): Call restore_costs_from_copies. Add printing
9268 (pop_allocnos): Add priniting more debug info.
9269 (color_allocnos): Remove prefs for conflicting hard regs.
9270 Call update_costs_from_prefs.
9271 * ira-conflicts.c (commutative_constraint_p): Move to ira.c
9272 (get_dup_num): Rename, modify, and move to ira.c
9273 (process_regs_for_copy): Add prefs.
9274 (add_insn_allocno_copies): Put src as first arg of
9275 process_regs_for_copy. Remove dead code. Call ira_setup_alts.
9276 * ira-costs.c (record_reg_classes): Modify and move code into
9277 record_operands_costs.
9278 (find_costs_and_classes): Create prefs for the hard reg of small
9280 (process_bb_node_for_hard_reg_moves): Add prefs.
9282 2013-10-30 Richard Biener <rguenther@suse.de>
9285 * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
9286 * cfganal.c (pre_and_rev_post_order_compute_fn): New function
9288 (pre_and_rev_post_order_compute): ... which now wraps it.
9289 * graph.c (draw_cfg_nodes_no_loops): Use
9290 pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
9293 2013-10-30 Christian Bruel <christian.bruel@st.com>
9295 * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
9296 (sh_expand_cmpstr): Handle known align and schedule improvements.
9297 * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
9298 * config/sh/sh.md (cmpstrnsi): New pattern.
9300 2013-10-30 Martin Jambor <mjambor@suse.cz>
9302 PR rtl-optimization/10474
9303 * ira.c (find_moveable_pseudos): Do not calculate dominance info
9305 (interesting_dest_for_shprep): New function.
9306 (split_live_ranges_for_shrink_wrap): Likewise.
9307 (ira): Calculate dominance info and df analysis. Call
9308 split_live_ranges_for_shrink_wrap.
9310 2013-10-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9313 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
9315 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
9317 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
9318 * tree.h (POINTER_BOUNDS_P): New.
9319 (BOUNDED_TYPE_P): New.
9321 (pointer_bounds_type_node): New.
9322 * tree.c (build_common_tree_nodes): Initialize
9323 pointer_bounds_type_node.
9324 * gimple.h (gimple_call_get_nobnd_arg_index): New.
9325 (gimple_call_num_nobnd_args): New.
9326 (gimple_call_nobnd_arg): New.
9327 (gimple_return_retbnd): New.
9328 (gimple_return_set_retbnd): New
9329 * gimple.c (gimple_build_return): Increase number of ops
9330 for return statement.
9331 (gimple_call_get_nobnd_arg_index): New.
9332 * gimple-pretty-print.c (dump_gimple_return): Print second op.
9334 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
9336 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
9337 with "chkp ctor" and "bnd_legacy" attributes.
9338 * gimplify.c (gimplify_init_constructor): Avoid infinite
9339 loop during gimplification of bounds initializer.
9341 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
9343 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
9344 (handle_bnd_legacy): New.
9345 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
9346 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
9349 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
9351 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
9352 (BT_FN_PTR_CONST_PTR): New.
9353 (BT_FN_CONST_PTR_CONST_PTR): New.
9354 (BT_FN_PTR_CONST_PTR_SIZE): New.
9355 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
9356 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
9357 (BT_FN_VOID_CONST_PTR_SIZE): New.
9358 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
9359 * chkp-builtins.def: New.
9360 * builtins.def: include chkp-builtins.def.
9361 (DEF_CHKP_BUILTIN): New.
9362 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
9363 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
9364 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
9365 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
9366 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
9367 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
9368 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
9369 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
9370 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
9371 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
9372 * common.opt (fcheck-pointer-bounds): New.
9373 * toplev.c (process_options): Check Pointer Bounds Checker is
9375 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
9377 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
9379 * target.def (builtin_chkp_function): New.
9380 (chkp_bound_type): New.
9381 (chkp_bound_mode): New.
9382 (fn_abi_va_list_bounds_size): New.
9383 (load_bounds_for_arg): New.
9384 (store_bounds_for_arg): New.
9385 * targhooks.h (default_load_bounds_for_arg): New.
9386 (default_store_bounds_for_arg): New.
9387 (default_fn_abi_va_list_bounds_size): New.
9388 (default_chkp_bound_type): New.
9389 (default_chkp_bound_mode): New.
9390 (default_builtin_chkp_function): New.
9391 * targhooks.c (default_load_bounds_for_arg): New.
9392 (default_store_bounds_for_arg): New.
9393 (default_fn_abi_va_list_bounds_size): New.
9394 (default_chkp_bound_type): New.
9395 (default_chkp_bound_mode); New.
9396 (default_builtin_chkp_function): New.
9397 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
9398 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
9399 (TARGET_STORE_BOUNDS_FOR_ARG): New.
9400 (TARGET_BUILTIN_CHKP_FUNCTION): New.
9401 (TARGET_CHKP_BOUND_TYPE): New.
9402 (TARGET_CHKP_BOUND_MODE): New.
9403 * doc/tm.texi: Regenerated.
9404 * langhooks.h (lang_hooks): Add chkp_supported field.
9405 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
9406 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
9408 2013-10-29 Andrew Pinski <apinski@cavium.com>
9410 * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
9411 (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
9412 fails, combining the branches anyways.
9413 (tree_ssa_ifcombine): Inverse the order of the basic block walk,
9414 increases the number of combinings.
9415 * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
9417 2013-10-29 Mike Stump <mikestump@comcast.net>
9419 * machmode.def (PARTIAL_INT_MODE): Add precision and name.
9420 * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
9421 (make_vector_mode): Increase namebuf to 16.
9422 (emit_insn_modes_h): When processing BImode, don't
9423 also match partial int modes.
9424 (emit_class_narrowest_mode): Likewise.
9426 * config/bfin/bfin-modes.def: Add precision to PDI.
9427 * config/m32c/m32c-modes.def: Add precision to PSI.
9428 * config/msp430/msp430-modes.def: Add precision to PSI.
9429 * config/rs6000/rs6000-modes.def: Add precision to PTI.
9430 * config/sh/sh-modes.def: Add precision to PSI and PDI.
9432 2013-10-29 Oleg Endo <olegendo@gcc.gnu.org>
9435 * config/sh/sh.md (*addc): Rename existing variations to ...
9436 (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
9437 (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
9438 *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
9439 * config/sh/sh.c (addsubcosts): Handle some addc special cases.
9441 2013-10-29 Teresa Johnson <tejohnson@google.com>
9444 * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
9445 insanities when updating probabilities.
9447 2013-10-29 David Malcolm <dmalcolm@redhat.com>
9449 * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
9450 prettyprinter for cgraph_node to reflect the conversion of the
9451 symtable types to a C++ class hierarchy: it now *is* a
9452 symtab_node_base, rather than having one (named "symbol").
9454 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
9456 * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
9457 __cilkrts_pop_frame. If matched, then return true for built-in
9459 (expand_builtin): Added BUILT_IN_CILK_DETACH and
9460 BUILT_IN_CILK_POP_FRAME case.
9461 * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
9462 (lhs_cilk_detect_spawn): Likewise.
9463 (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
9464 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
9465 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
9466 (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
9467 (LANG_HOOKS_CILKPLUS): Likewise.
9468 * tree.h (CILK_SPAWN_FN): Likewise.
9469 * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
9470 * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
9471 (OBJS): Added cilk-common.o.
9472 (BUILTINS_DEF): Added cilk-builtins.def.
9473 * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
9474 (lhd_cilk_detect_spawn): Likewise.
9475 * langhooks.h (lang_hooks_for_cilkplus): New struct.
9476 (struct lang_hooks): Added new field called "cilkplus."
9477 * cilk-common.c: New file.
9479 * cilk-builtins.def: Likewise.
9480 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
9481 "__cilk" macro and set it to 200.
9482 * function.h (struct function::cilk_frame_decl): New field.
9483 (struct function::is_cilk_function): Likewise.
9484 (struct function::calls_cilk_spawn): Likewise.
9485 * gimplify.c (gimplify_call_expr): Added a check if the function call
9486 being gimplified is a spawn detach point. If so, then add pop_frame
9487 and detach function calls.
9488 (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
9489 for gimplifying _Cilk_spawn and _Cilk_sync statements.
9490 (gimplify_return_expr): Added a check for _Cilk_spawn usage in
9491 function. If so, added a _Cilk_sync and gimplified it.
9492 (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
9493 INIT_EXPRs. If so, then call gimplify_cilk_spawn.
9494 * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
9496 (can_inline_edge_p): Prevent inling of spawnee function.
9497 * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
9498 for functions that use Cilk keywords.
9499 * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
9500 * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
9501 CILK_SYNC_STMT cases.
9502 * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
9504 * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
9505 (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
9506 * passes.texi (Cilk Keywords): New section that describes the compiler
9507 code changes for handling Cilk Keywords.
9509 2013-10-29 David Malcolm <dmalcolm@redhat.com>
9511 Patch autogenerated by refactor_symtab.py from
9512 https://github.com/davidmalcolm/gcc-refactoring-scripts
9513 revision 58bb219cc090b2f4516a9297d868c245495ee622
9515 * asan.c (asan_finish_file): Update for conversion of symtab types to
9516 a true class hierarchy.
9517 * cfgexpand.c (estimated_stack_frame_size): Likewise.
9518 * cgraph.c (cgraph_get_body): Likewise.
9519 (cgraph_get_create_real_symbol_node): Likewise.
9520 (verify_cgraph_node): Likewise.
9521 (verify_edge_corresponds_to_fndecl): Likewise.
9522 (verify_edge_count_and_frequency): Likewise.
9523 (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
9524 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
9525 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
9526 (cgraph_node_cannot_return): Likewise.
9527 (cgraph_set_pure_flag_1): Likewise.
9528 (cgraph_set_const_flag_1): Likewise.
9529 (cgraph_set_nothrow_flag_1): Likewise.
9530 (cgraph_make_node_local_1): Likewise.
9531 (cgraph_for_node_and_aliases): Likewise.
9532 (cgraph_for_node_thunks_and_aliases): Likewise.
9533 (cgraph_node_can_be_local_p): Likewise.
9534 (cgraph_node_cannot_be_local_p_1): Likewise.
9535 (cgraph_function_body_availability): Likewise.
9536 (dump_cgraph_node): Likewise.
9537 (cgraph_rtl_info): Likewise.
9538 (cgraph_mark_address_taken_node): Likewise.
9539 (cgraph_remove_node): Likewise.
9540 (cgraph_release_function_body): Likewise.
9541 (cgraph_update_edges_for_call_stmt_node): Likewise.
9542 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
9543 (cgraph_make_edge_direct): Likewise.
9544 (cgraph_resolve_speculation): Likewise.
9545 (cgraph_speculative_call_info): Likewise.
9546 (cgraph_turn_edge_to_speculative): Likewise.
9547 (cgraph_create_edge_1): Likewise.
9548 (cgraph_set_call_stmt): Likewise.
9549 (cgraph_node_for_asm): Likewise.
9550 (cgraph_add_thunk): Likewise.
9551 (cgraph_same_body_alias): Likewise.
9552 (cgraph_create_function_alias): Likewise.
9553 (cgraph_create_node): Likewise.
9554 (cgraph_create_empty_node): Likewise.
9555 (record_function_versions): Likewise.
9556 (used_from_object_file_p): Likewise.
9557 * cgraph.h (symtab_can_be_discarded): Likewise.
9558 (symtab_real_symbol_p): Likewise.
9559 (cgraph_mark_force_output_node): Likewise.
9560 (cgraph_edge_recursive_p): Likewise.
9561 (symtab_alias_target): Likewise.
9562 (varpool_all_refs_explicit_p): Likewise.
9563 (varpool_can_remove_if_no_refs): Likewise.
9564 (cgraph_only_called_directly_or_aliased_p): Likewise.
9565 (cgraph_next_function_with_gimple_body): Likewise.
9566 (cgraph_first_function_with_gimple_body): Likewise.
9567 (cgraph_function_with_gimple_body_p): Likewise.
9568 (cgraph_next_function): Likewise.
9569 (cgraph_first_function): Likewise.
9570 (cgraph_next_defined_function): Likewise.
9571 (cgraph_first_defined_function): Likewise.
9572 (varpool_next_defined_variable): Likewise.
9573 (varpool_first_defined_variable): Likewise.
9574 (varpool_next_static_initializer): Likewise.
9575 (varpool_first_static_initializer): Likewise.
9576 (varpool_next_variable): Likewise.
9577 (varpool_first_variable): Likewise.
9578 (varpool_node_name): Likewise.
9579 (varpool): Likewise.
9581 (is_a_helper <varpool_node>::test): Likewise.
9582 (is_a_helper <cgraph_node>::test): Likewise.
9583 (varpool_variable_node): Likewise.
9584 (cgraph_function_or_thunk_node): Likewise.
9585 (varpool_alias_target): Likewise.
9586 (cgraph_alias_target): Likewise.
9587 (cgraph_node_name): Likewise.
9588 (varpool_node_asm_name): Likewise.
9589 (cgraph_node_asm_name): Likewise.
9590 * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
9591 (cgraph_rebuild_references): Likewise.
9592 (rebuild_cgraph_edges): Likewise.
9593 (record_eh_tables): Likewise.
9594 (build_cgraph_edges): Likewise.
9595 (mark_store): Likewise.
9596 (mark_load): Likewise.
9597 (mark_address): Likewise.
9598 (record_type_list): Likewise.
9599 (record_reference): Likewise.
9600 * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
9601 (cgraph_materialize_clone): Likewise.
9602 (cgraph_function_versioning): Likewise.
9603 (cgraph_copy_node_for_versioning): Likewise.
9604 (update_call_expr): Likewise.
9605 (cgraph_find_replacement_node): Likewise.
9606 (cgraph_create_virtual_clone): Likewise.
9607 (cgraph_clone_node): Likewise.
9608 * cgraphunit.c (compile): Likewise.
9609 (output_weakrefs): Likewise.
9610 (output_in_order): Likewise.
9611 (expand_function): Likewise.
9612 (assemble_thunks_and_aliases): Likewise.
9613 (expand_thunk): Likewise.
9614 (mark_functions_to_output): Likewise.
9615 (handle_alias_pairs): Likewise.
9616 (analyze_functions): Likewise.
9617 (walk_polymorphic_call_targets): Likewise.
9618 (varpool_finalize_decl): Likewise.
9619 (process_function_and_variable_attributes): Likewise.
9620 (cgraph_process_same_body_aliases): Likewise.
9621 (analyze_function): Likewise.
9622 (cgraph_add_new_function): Likewise.
9623 (cgraph_finalize_function): Likewise.
9624 (referred_to_p): Likewise.
9625 (cgraph_reset_node): Likewise.
9626 (cgraph_process_new_functions): Likewise.
9627 (enqueue_node): Likewise.
9628 (decide_is_symbol_needed): Likewise.
9629 * coverage.c (coverage_compute_profile_id): Likewise.
9630 * dbxout.c (dbxout_expand_expr): Likewise.
9631 * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
9632 (reference_to_unused): Likewise.
9633 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
9634 * gimplify.c (unvisit_body): Likewise.
9635 (unshare_body): Likewise.
9636 * ipa-cp.c (ipcp_generate_summary): Likewise.
9637 (ipcp_decision_stage): Likewise.
9638 (identify_dead_nodes): Likewise.
9639 (decide_whether_version_node): Likewise.
9640 (decide_about_value): Likewise.
9641 (perhaps_add_new_callers): Likewise.
9642 (create_specialized_node): Likewise.
9643 (update_profiling_info): Likewise.
9644 (ipcp_propagate_stage): Likewise.
9645 (estimate_local_effects): Likewise.
9646 (good_cloning_opportunity_p): Likewise.
9647 (devirtualization_time_bonus): Likewise.
9648 (propagate_constants_accross_call): Likewise.
9649 (initialize_node_lattices): Likewise.
9650 (ipcp_cloning_candidate_p): Likewise.
9651 (determine_versionability): Likewise.
9652 (print_all_lattices): Likewise.
9653 (print_lattice): Likewise.
9654 (ipcp_discover_new_direct_edges): Likewise.
9655 * ipa-devirt.c (ipa_devirt): Likewise.
9656 (likely_target_p): Likewise.
9657 (update_type_inheritance_graph): Likewise.
9658 (possible_polymorphic_call_target_p): Likewise.
9659 (dump_possible_polymorphic_call_targets): Likewise.
9660 (devirt_variable_node_removal_hook): Likewise.
9661 (record_binfo): Likewise.
9662 (maybe_record_node): Likewise.
9663 (build_type_inheritance_graph): Likewise.
9664 * ipa-inline-analysis.c (inline_write_summary): Likewise.
9665 (inline_generate_summary): Likewise.
9666 (inline_analyze_function): Likewise.
9667 (do_estimate_growth): Likewise.
9668 (simple_edge_hints): Likewise.
9669 (estimate_node_size_and_time): Likewise.
9670 (estimate_edge_devirt_benefit): Likewise.
9671 (compute_inline_parameters): Likewise.
9672 (estimate_function_body_sizes): Likewise.
9673 (compute_bb_predicates): Likewise.
9674 (initialize_inline_failed): Likewise.
9675 (dump_inline_summary): Likewise.
9676 (dump_inline_edge_summary): Likewise.
9677 * ipa-inline-transform.c (inline_transform): Likewise.
9678 (preserve_function_body_p): Likewise.
9679 (save_inline_function_body): Likewise.
9680 (inline_call): Likewise.
9681 (clone_inlined_nodes): Likewise.
9682 (can_remove_node_now_p): Likewise.
9683 (can_remove_node_now_p_1): Likewise.
9684 * ipa-inline.c (early_inliner): Likewise.
9685 (early_inline_small_functions): Likewise.
9686 (inline_always_inline_functions): Likewise.
9687 (ipa_inline): Likewise.
9688 (flatten_function): Likewise.
9689 (inline_small_functions): Likewise.
9690 (speculation_useful_p): Likewise.
9691 (recursive_inlining): Likewise.
9692 (update_caller_keys): Likewise.
9693 (reset_edge_caches): Likewise.
9694 (update_edge_key): Likewise.
9695 (edge_badness): Likewise.
9696 (relative_time_benefit): Likewise.
9697 (want_inline_self_recursive_call_p): Likewise.
9698 (want_inline_small_function_p): Likewise.
9699 (want_early_inline_function_p): Likewise.
9700 (num_calls): Likewise.
9701 (can_early_inline_edge_p): Likewise.
9702 (can_inline_edge_p): Likewise.
9703 (report_inline_failed_reason): Likewise.
9704 * ipa-profile.c (ipa_profile): Likewise.
9705 (ipa_propagate_frequency): Likewise.
9706 (ipa_propagate_frequency_1): Likewise.
9707 (ipa_profile_generate_summary): Likewise.
9708 * ipa-prop.c (ipcp_transform_function): Likewise.
9709 (read_replacements_section): Likewise.
9710 (ipa_prop_read_section): Likewise.
9711 (ipa_modify_call_arguments): Likewise.
9712 (ipa_print_node_params): Likewise.
9713 (propagate_controlled_uses): Likewise.
9714 (update_indirect_edges_after_inlining): Likewise.
9715 (remove_described_reference): Likewise.
9716 (ipa_make_edge_direct_to_target): Likewise.
9717 (ipa_analyze_node): Likewise.
9718 (ipa_analyze_params_uses): Likewise.
9719 (ipa_compute_jump_functions): Likewise.
9720 (ipa_get_callee_param_type): Likewise.
9721 (ipa_print_node_jump_functions): Likewise.
9722 (ipa_initialize_node_params): Likewise.
9723 (ipa_populate_param_decls): Likewise.
9724 (ipa_func_spec_opts_forbid_analysis_p): Likewise.
9725 (write_agg_replacement_chain): Likewise.
9726 (ipa_write_node_info): Likewise.
9727 (ipa_edge_duplication_hook): Likewise.
9728 (try_decrement_rdesc_refcount): Likewise.
9729 * ipa-pure-const.c (propagate_nothrow): Likewise.
9730 (propagate_pure_const): Likewise.
9731 (pure_const_read_summary): Likewise.
9732 (pure_const_write_summary): Likewise.
9733 (analyze_function): Likewise.
9734 * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
9735 (ipa_ref_referring_ref_list): Likewise.
9736 * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
9737 (ipa_remove_stmt_references): Likewise.
9738 (ipa_find_reference): Likewise.
9739 (ipa_dump_referring): Likewise.
9740 (ipa_dump_references): Likewise.
9741 (ipa_record_reference): Likewise.
9742 * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
9743 (ipa_reference_write_optimization_summary): Likewise.
9744 (write_node_summary_p): Likewise.
9745 (propagate): Likewise.
9746 (read_write_all_from_decl): Likewise.
9747 (generate_summary): Likewise.
9748 (analyze_function): Likewise.
9749 (propagate_bits): Likewise.
9750 (ipa_reference_get_not_written_global): Likewise.
9751 (ipa_reference_get_not_read_global): Likewise.
9752 * ipa-split.c (execute_split_functions): Likewise.
9753 (split_function): Likewise.
9754 * ipa-utils.c (ipa_merge_profiles): Likewise.
9755 (dump_cgraph_node_set): Likewise.
9756 (ipa_reverse_postorder): Likewise.
9757 (ipa_edge_within_scc): Likewise.
9758 (ipa_get_nodes_in_cycle): Likewise.
9759 (ipa_free_postorder_info): Likewise.
9760 (ipa_reduced_postorder): Likewise.
9761 (searchc): Likewise.
9762 (recursive_call_p): Likewise.
9763 * ipa.c (ipa_cdtor_merge): Likewise.
9764 (record_cdtor_fn): Likewise.
9765 (function_and_variable_visibility): Likewise.
9766 (varpool_externally_visible_p): Likewise.
9767 (cgraph_externally_visible_p): Likewise.
9768 (comdat_can_be_unshared_p): Likewise.
9769 (comdat_can_be_unshared_p_1): Likewise.
9770 (address_taken_from_non_vtable_p): Likewise.
9771 (ipa_discover_readonly_nonaddressable_vars): Likewise.
9772 (symtab_remove_unreachable_nodes): Likewise.
9773 (walk_polymorphic_call_targets): Likewise.
9774 (process_references): Likewise.
9775 (enqueue_node): Likewise.
9776 (has_addr_references_p): Likewise.
9777 (cgraph_non_local_node_p_1): Likewise.
9778 * is-a.h (varpool_analyze_node): Likewise.
9779 * lto-cgraph.c (input_symtab): Likewise.
9780 (merge_profile_summaries): Likewise.
9781 (input_cgraph_1): Likewise.
9782 (input_edge): Likewise.
9783 (input_varpool_node): Likewise.
9784 (input_node): Likewise.
9785 (input_overwrite_node): Likewise.
9786 (compute_ltrans_boundary): Likewise.
9787 (output_refs): Likewise.
9788 (lto_output_varpool_node): Likewise.
9789 (lto_output_node): Likewise.
9790 (reachable_from_other_partition_p): Likewise.
9791 (referenced_from_other_partition_p): Likewise.
9792 (lto_output_edge): Likewise.
9793 (output_node_opt_summary): Likewise.
9794 (add_node_to): Likewise.
9795 (reachable_from_this_partition_p): Likewise.
9796 (lto_set_symtab_encoder_in_partition): Likewise.
9797 (lto_symtab_encoder_in_partition_p): Likewise.
9798 (lto_set_symtab_encoder_encode_initializer): Likewise.
9799 (lto_symtab_encoder_encode_initializer_p): Likewise.
9800 (lto_set_symtab_encoder_encode_body): Likewise.
9801 (lto_symtab_encoder_encode_body_p): Likewise.
9802 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
9804 * lto-streamer-in.c (lto_read_body): Likewise.
9805 (fixup_call_stmt_edges): Likewise.
9806 (fixup_call_stmt_edges_1): Likewise.
9807 * lto-streamer-out.c (produce_symtab): Likewise.
9808 (output_symbol_p): Likewise.
9809 (write_symbol): Likewise.
9810 (lto_output): Likewise.
9811 (copy_function): Likewise.
9812 (output_function): Likewise.
9813 * passes.c (function_called_by_processed_nodes_p): Likewise.
9814 (ipa_write_optimization_summaries): Likewise.
9815 (ipa_write_summaries): Likewise.
9816 (do_per_function_toporder): Likewise.
9817 (do_per_function): Likewise.
9818 (dump_passes): Likewise.
9819 * symtab.c (symtab_semantically_equivalent_p): Likewise.
9820 (symtab_nonoverwritable_alias): Likewise.
9821 (symtab_nonoverwritable_alias_1): Likewise.
9822 (symtab_for_node_and_aliases): Likewise.
9823 (symtab_resolve_alias): Likewise.
9824 (fixup_same_cpp_alias_visibility): Likewise.
9825 (symtab_alias_ultimate_target): Likewise.
9826 (symtab_used_from_object_file_p): Likewise.
9827 (verify_symtab_base): Likewise.
9828 (dump_symtab_base): Likewise.
9829 (symtab_node_name): Likewise.
9830 (symtab_node_asm_name): Likewise.
9831 (symtab_dissolve_same_comdat_group_list): Likewise.
9832 (symtab_add_to_same_comdat_group): Likewise.
9833 (symtab_unregister_node): Likewise.
9834 (symtab_insert_node_to_hashtable): Likewise.
9835 (symtab_register_node): Likewise.
9836 (unlink_from_assembler_name_hash): Likewise.
9837 (insert_to_assembler_name_hash): Likewise.
9838 (eq_assembler_name): Likewise.
9839 (hash_node_by_assembler_name): Likewise.
9840 (eq_node): Likewise.
9841 (hash_node): Likewise.
9842 * toplev.c (wrapup_global_declaration_2): Likewise.
9843 * trans-mem.c (ipa_tm_execute): Likewise.
9844 (ipa_tm_transform_clone): Likewise.
9845 (ipa_tm_transform_transaction): Likewise.
9846 (ipa_tm_transform_calls_redirect): Likewise.
9847 (ipa_tm_insert_gettmclone_call): Likewise.
9848 (ipa_tm_insert_irr_call): Likewise.
9849 (ipa_tm_create_version): Likewise.
9850 (ipa_tm_create_version_alias): Likewise.
9851 (ipa_tm_mark_forced_by_abi_node): Likewise.
9852 (ipa_tm_mark_force_output_node): Likewise.
9853 (ipa_tm_diagnose_tm_safe): Likewise.
9854 (ipa_tm_mayenterirr_function): Likewise.
9855 (ipa_tm_scan_irr_function): Likewise.
9856 (ipa_tm_note_irrevocable): Likewise.
9857 (ipa_tm_scan_calls_clone): Likewise.
9858 (get_cg_data): Likewise.
9859 * tree-eh.c (tree_could_trap_p): Likewise.
9860 * tree-emutls.c (ipa_lower_emutls): Likewise.
9861 (create_emultls_var): Likewise.
9862 (lower_emutls_function_body): Likewise.
9863 (gen_emutls_addr): Likewise.
9864 (emutls_decl): Likewise.
9865 (new_emutls_decl): Likewise.
9866 * tree-inline.c (tree_function_versioning): Likewise.
9867 (optimize_inline_calls): Likewise.
9868 (expand_call_inline): Likewise.
9869 (estimate_num_insns): Likewise.
9870 (copy_bb): Likewise.
9871 (delete_unreachable_blocks_update_callgraph): Likewise.
9872 * tree-nested.c (gimplify_all_functions): Likewise.
9873 (create_nesting_tree): Likewise.
9874 (check_for_nested_with_variably_modified): Likewise.
9875 * tree-pretty-print.c (dump_function_header): Likewise.
9876 * tree-profile.c (tree_profiling): Likewise.
9877 * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
9878 (modify_function): Likewise.
9879 (convert_callers): Likewise.
9880 (convert_callers_for_node): Likewise.
9881 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
9882 (associate_varinfo_to_alias): Likewise.
9883 (create_variable_info_for): Likewise.
9884 (get_constraint_for_ssa_var): Likewise.
9885 * tree-vectorizer.c (increase_alignment): Likewise.
9886 * tree.c (find_decls_types_in_var): Likewise.
9887 (find_decls_types_in_node): Likewise.
9888 (free_lang_data_in_decl): Likewise.
9889 * value-prof.c (gimple_ic_transform): Likewise.
9890 (gimple_ic): Likewise.
9891 (check_ic_target): Likewise.
9892 (init_node_map): Likewise.
9893 * varasm.c (decl_binds_to_current_def_p): Likewise.
9894 (default_binds_local_p_1): Likewise.
9895 (dump_tm_clone_pairs): Likewise.
9896 (assemble_alias): Likewise.
9897 (find_decl): Likewise.
9898 (mark_decl_referenced): Likewise.
9899 * varpool.c (varpool_for_node_and_aliases): Likewise.
9900 (varpool_extra_name_alias): Likewise.
9901 (varpool_create_variable_alias): Likewise.
9902 (add_new_static_var): Likewise.
9903 (varpool_finalize_named_section_flags): Likewise.
9904 (varpool_remove_unreferenced_decls): Likewise.
9905 (enqueue_node): Likewise.
9906 (varpool_assemble_decl): Likewise.
9907 (assemble_aliases): Likewise.
9908 (varpool_analyze_node): Likewise.
9909 (cgraph_variable_initializer_availability): Likewise.
9910 (varpool_add_new_variable): Likewise.
9911 (ctor_for_folding): Likewise.
9912 (dump_varpool_node): Likewise.
9913 (varpool_remove_initializer): Likewise.
9914 (varpool_remove_node): Likewise.
9915 (varpool_node_for_decl): Likewise.
9916 (varpool_create_empty_node): Likewise.
9917 * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
9918 (ix86_get_function_versions_dispatcher): Likewise.
9920 2013-10-29 David Malcolm <dmalcolm@redhat.com>
9922 * cgraph.h (symtab_node_base): Convert to a class;
9923 add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
9924 chain_next/prev from symtab_node_def.
9925 (cgraph_node): Inherit from symtab_node; add GTY option
9926 tag ("SYMTAB_FUNCTION").
9927 (varpool_node): Inherit from symtab_node; add GTY option
9928 tag ("SYMTAB_VARIABLE").
9929 (symtab_node_def): Remove.
9930 (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
9931 (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
9932 (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
9933 (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
9935 * ipa-ref.h (symtab_node_def): Drop.
9936 (symtab_node): Change underlying type from symtab_node_def to
9938 (const_symtab_node): Likwise.
9940 * is-a.h: Update examples in comment.
9942 * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
9943 (assembler_name_hash): Likewise.
9945 2013-10-29 Martin Liska <marxin.liska@gmail.com>
9947 * doc/tree-ssa.texi (gimple_phi_result): Document.
9948 (gimple_phi_num_args, gimple_phi_arg): Likewise.
9949 (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
9950 (PHI_RESULT, PHI_NUM_ARGS): Remove.
9951 (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
9953 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
9955 * expr.h: Revert change and include tree-core.h.
9956 * rtl.h: Revert change and don't include tree-core.h.
9958 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
9960 * config/darwin.c: Include gimple.h.
9961 * config/i386/winnt.c: Likewise.
9963 2013-10-29 Marc Glisse <marc.glisse@inria.fr>
9965 PR tree-optimization/19831
9966 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
9968 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
9970 * tree-outof-ssa.h: Remove include files.
9971 * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
9973 * tree-ssa-coalesce.c: Likewise.
9974 * cfgexpand.c: Likewise.
9975 * tree-ssa-ter.c: Likewise.
9976 * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
9977 * lto-streamer.h: Likewise.
9978 * cgraphbuild.c: Add gimple.h to include list.
9979 * data-streamer-in.c: Likewise.
9980 * ipa-cp.c: Likewise.
9981 * tree-streamer.c: Likewise.
9982 * lto-compress.c: Likewise.
9983 * ipa-reference.c: Likewise.
9984 * data-streamer-out.c: Likewise.
9985 * lto-cgraph.c: Likewise.
9986 * cgraphclones.c: Likewise.
9987 * ipa-utils.c: Likewise.
9988 * data-streamer.c: Likewise.
9989 * ipa-split.c: Likewise.
9990 * lto-section-in.c: Likewise.
9991 * tree-streamer-out.c: Likewise.
9992 * ipa-prop.c: Likewise.
9993 * tree-streamer-in.c: Likewise.
9994 * symtab.c: Likewise.
9995 * opts-global.c: Likewise.
9996 * lto-opts.c: Likewise.
9997 * lto-section-out.c: Likewise.
9998 * lto-streamer.c: Likewise.
9999 * rtl.h: Add tree-core.h to include list.
10000 * expr.h: Remove tree-core.h from include list.
10001 * gimple.h: Likewise.
10002 * ipa-utils.h: Likewise.
10003 * streamer-hooks.h: Likewise.
10004 * streamer-hooks.c: Include input.h.
10006 2013-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10008 * config/arm/arm.c (cortexa7_extra_costs): New table.
10009 (arm_cortex_a7_tune): New.
10010 * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
10012 2013-10-29 Eric Botcazou <ebotcazou@adacore.com>
10014 * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
10016 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10018 * doc/gty.texi ("Inheritance and GTY"): Make it clear that
10019 to use autogenerated markers for a class-hierarchy, every class
10020 must have a GTY marker.
10021 * gengtype.h (struct type): Add linked list of subclasses to
10022 the "s" member of the union.
10023 (add_subclass): New decl.
10024 * gengtype-state.c (read_state_struct_type): Set up subclass
10026 * gengtype.c (get_ultimate_base_class): New.
10027 (add_subclass): New.
10028 (new_structure): Set up subclass linked list.
10029 (set_gc_used_type): Propagate usage information to subclasses.
10030 (output_mangled_typename): Use get_ultimate_base_class.
10031 (walk_subclasses): Use the subclass linked list, avoiding an
10032 O(N^2) when writing out all types.
10033 (walk_type): Issue an error if the base class is missing a tag,
10034 rather than generating bogus C code. Add a gcc_unreachable
10035 default case, in case people omit tags from concrete subclasses,
10036 or get the values wrong.
10037 (write_func_for_structure): Issue an error for subclasses for
10038 which the base doesn't have a "desc", since otherwise the
10039 autogenerated routines for the base would silently fail to visit
10040 any subclass fields.
10041 (write_root): Use get_ultimate_base_class, tweaking constness of
10042 tp to match that function's signature.
10044 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10046 * doc/gty.texi (GTY Options): Add note about inheritance to
10047 description of desc and tag.
10048 (Inheritance and GTY): New.
10050 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10052 * gengtype-parse.c (opts_have): Drop "static" so that
10053 we can use this from gengtype.c.
10054 * gengtype.c (set_gc_used_type): Mark any base class as used;
10055 update field traversal to visit inherited fields.
10056 (output_mangled_typename): Convert references to classes within
10057 an inheritance hierarchy to reference the ultimate base class,
10058 since only it will have gt_ functions.
10059 (get_string_option): New.
10060 (walk_subclasses): New.
10061 (walk_type): Treat GTY structs that have a "desc" as being the
10062 root of an inheritance hierarchy. Generate a switch on it
10063 within the marking function which walks all subclasses, adding
10064 cases for them via walk_subclasses. For subclasses, visit all
10065 fields of the type (including inherited ones).
10066 (write_func_for_structure): Don't write fns for subclasses, only
10067 for the ultimate base class within an inheritance hierarchy.
10068 Subclasses-marking will be handled by the base class marking functions.
10069 (write_types): Likewise.
10070 (write_local_func_for_structure): Likewise.
10071 (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
10072 a "tag" option (and are thus concrete subclasses).
10073 (write_root): Use the marker function for the ultimate base class.
10074 * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
10075 (opts_have): Add declaration.
10077 2013-10-28 Vladimir Makarov <vmakarov@redhat.com>
10079 * lra-spills.c (lra_final_code_change): Remove useless move insns
10080 originated from moves of pseudos.
10082 2013-10-28 Jeff Law <law@redhat.com>
10084 * lower-subreg.c (resolve_simple_move): Fix comment typo.
10086 2013-10-28 Trevor Saunders <tsaunders@mozilla.com>
10088 * df-scan.c (df_collection_rec): Adjust.
10089 (copy_defs): New constant.
10090 (copy_uses): Likewise.
10091 (copy_eq_uses): Likewise.
10092 (copy_mw): Likewise.
10093 (copy_all): Likewise.
10094 (df_insn_rescan): Adjust.
10095 (df_notes_rescan): Likewise.
10096 (df_swap_refs): Likewise.
10097 (df_sort_and_compress_refs): Likewise.
10098 (df_sort_and_compress_mws): Likewise.
10099 (df_install_refs): Likewise.
10100 (df_install_mws): Likewise.
10101 (df_refs_add_to_chains): Add flags parameter controlling which vectors
10103 (df_bb_refs_record): Adjust.
10104 (df_record_entry_block_defs): Likewise.
10105 (df_record_exit_block_defs): Likewise.
10106 (df_refs_verify): Likewise.
10107 (df_mws_verify): Likewise.
10108 (df_insn_refs_verify): Likewise.
10109 (df_bb_verify): Likewise.
10110 * ipa-pure-const.c (finish_state): Remove.
10111 (propagate): Adjust.
10112 * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
10113 tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
10114 var-tracking.c: Adjust.
10115 * vec.c (stack_vecs): Remove.
10116 (register_stack_vec): Likewise.
10117 (stack_vec_register_index): Likewise.
10118 (unregister_stack_vec): Likewise.
10119 * vec.h (struct va_stack): Remove.
10120 (struct vec<T, A, vl_ptr>): Specialize as
10121 struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
10122 allocation strategy compatable with the vl_ptr layout.
10123 (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
10124 specialization anyway.
10125 (class stack_vec): New class.
10126 (vec_stack_alloc): Remove.
10127 (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
10129 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
10130 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10131 Sergey Lega <sergey.s.lega@intel.com>
10132 Anna Tikhonova <anna.tikhonova@intel.com>
10133 Ilya Tocar <ilya.tocar@intel.com>
10134 Andrey Turetskiy <andrey.turetskiy@intel.com>
10135 Ilya Verbin <ilya.verbin@intel.com>
10136 Kirill Yukhin <kirill.yukhin@intel.com>
10137 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10139 * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
10140 (*prefetch_avx512pf_<mode>): New.
10141 * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
10142 (avx512f_maskcmp<mode>3): Ditto.
10143 (vashrv16si3): Ditto.
10145 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
10146 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10147 Sergey Lega <sergey.s.lega@intel.com>
10148 Anna Tikhonova <anna.tikhonova@intel.com>
10149 Ilya Tocar <ilya.tocar@intel.com>
10150 Andrey Turetskiy <andrey.turetskiy@intel.com>
10151 Ilya Verbin <ilya.verbin@intel.com>
10152 Kirill Yukhin <kirill.yukhin@intel.com>
10153 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10155 * config/i386/i386.md (any_truncate): New.
10156 (trunsuffix): Ditto.
10157 * config/i386/predicates.md (const_8_to_9_operand): New.
10158 (const_10_to_11_operand): Ditto.
10159 (const_12_to_13_operand): Ditto.
10160 (const_14_to_15_operand): Ditto.
10161 (const_16_to_19_operand): Ditto.
10162 (const_20_to_23_operand): Ditto.
10163 (const_24_to_27_operand): Ditto.
10164 (const_28_to_31_operand): Ditto.
10165 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
10166 (cvtusi2<ssescalarmodesuffix>32): New.
10167 (cvtusi2<ssescalarmodesuffix>64): Ditto.
10168 (ufloatv16siv16sf2): Ditto.
10169 (avx512f_fix_notruncv16sfv16si): Ditto.
10170 (avx512f_ufix_notruncv16sfv16si): Ditto.
10171 (avx512f_vcvtss2usi): Ditto.
10172 (avx512f_vcvtss2usiq): Ditto.
10173 (avx512f_vcvttss2usi): Ditto.
10174 (avx512f_vcvttss2usiq): Ditto.
10175 (avx512f_vcvtsd2usi): Ditto.
10176 (avx512f_vcvtsd2usiq): Ditto.
10177 (avx512f_vcvttsd2usi): Ditto.
10178 (avx512f_vcvttsd2usiq): Ditto.
10179 (ufloatv8siv8df): Ditto.
10180 (avx512f_cvtdq2pd512_2): Ditto.
10181 (avx512f_cvtpd2dq512): Ditto.
10182 (avx512f_ufix_notruncv8dfv8si): Ditto.
10183 (avx512f_cvtpd2ps512): Ditto.
10184 (vec_unpacks_lo_v16sf): Ditto.
10185 (vec_unpacks_hi_v16sf): Ditto.
10186 (vec_unpacks_float_hi_v16si): Ditto.
10187 (vec_unpacks_float_lo_v16si): Ditto.
10188 (avx512f_unpckhps512): Ditto.
10189 (avx512f_unpcklps512): Ditto.
10190 (avx512f_movshdup512): Ditto.
10191 (avx512f_movsldup512): Ditto.
10192 (vec_extract_lo_v32hi): Ditto.
10193 (vec_extract_hi_v32hi): Ditto.
10194 (vec_extract_lo_v64qi): Ditto.
10195 (vec_extract_hi_v64qi): Ditto.
10196 (avx512f_unpckhpd512): Ditto.
10197 (avx512f_movddup512): Ditto.
10198 (avx512f_unpcklpd512): Ditto.
10199 (*avx512f_unpcklpd512): Ditto.
10200 (avx512f_shufps512_1): Ditto.
10201 (avx512f_shufpd512_1): Ditto.
10202 (avx512f_interleave_highv8di): Ditto.
10203 (avx512f_interleave_lowv8di): Ditto.
10204 (PMOV_DST_MODE): Ditto.
10205 (pmov_src_mode): Ditto.
10206 (pmov_src_lower): Ditto.
10207 (pmov_suff): Ditto.
10208 (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
10209 (*avx512f_<code>v8div16qi2): Ditto.
10210 (*avx512f_<code>v8div16qi2_store): Ditto.
10211 (vec_widen_umult_even_v16si): Ditto.
10212 (*vec_widen_umult_even_v16si): Ditto.
10213 (vec_widen_smult_even_v16si): Ditto.
10214 (*vec_widen_smult_even_v16si): Ditto.
10215 (avx512f_interleave_highv16si): Ditto.
10216 (avx512f_interleave_lowv16si): Ditto.
10217 (avx512f_<code>v16qiv16si2): Ditto.
10218 (avx512f_<code>v16hiv16si2): Ditto.
10219 (avx512f_<code>v8qiv8di2): Ditto.
10220 (avx512f_<code>v8hiv8di2): Ditto.
10221 (avx512f_<code>v8siv8di2): Ditto.
10222 (avx512cd_maskb_vec_dupv8di): Ditto.
10223 (avx512cd_maskw_vec_dupv16si): Ditto.
10224 (avx512f_vcvtph2ps512): Ditto.
10225 (avx512f_vcvtps2ph512): Ditto.
10226 (VEC_EXTRACT_MODE): Extened with wider modes.
10227 (VEC_PERM_AVX2): Ditto.
10228 (VEC_PERM_CONST): Ditto.
10230 2013-10-28 Joern Rennecke <joern.rennecke@embecosm.com>
10232 * config/arc/arc.c (arc_ccfsm_post_advance):
10233 Add comment about TYPE_RETURN.
10235 2013-10-28 Bin Cheng <bin.cheng@arm.com>
10237 * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
10238 Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
10239 (strip_offset): Convert offset to unsigned number.
10241 2013-10-27 Tom de Vries <tom@codesourcery.com>
10243 * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
10244 Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
10246 2013-10-27 Oleg Endo <olegendo@gcc.gnu.org>
10248 * config/sh/sh.c (MSW, LSW): Move and rename macros to...
10249 * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
10250 (TARGET_BIG_ENDIAN): New macro.
10251 * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
10252 Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
10253 * config/sh/sh.c: Likewise.
10254 * config/sh/sh.h: Likewise.
10256 2013-10-27 Hans-Peter Nilsson <hp@axis.com>
10258 * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
10259 removed PRED_MUDFLAP with PRED_NORETURN. Correct file-path in comment.
10261 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
10263 * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
10265 (cmpstr_t, cmpstrsi): Fix formatting.
10267 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
10270 * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
10271 addressing, do not use general_operand for memory operands.
10273 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
10276 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
10277 * lra-spills.c (lra_final_code_change): Remove useless move insns.
10279 2013-10-26 Jeff Law <law@redhat.com>
10281 * predict.c (PRED_MUDFLAP): Remove.
10282 * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
10284 * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
10285 (OBJS): Remove tree-nomudflap.o
10286 (GTFILES): Remove tree-mudflap.c
10287 * builtins.c (expand_builtin_alloc): Remove mudflap support.
10288 * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
10289 (mfwrap_spec, mflib_spec): Likewise.
10290 (cpp_unique_options, cc1_options, static_specs): Likewise.
10291 * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
10292 * passes.def: Likewise.
10293 * toplev.c (compile_file, process_options): Likewise.
10294 * tree-inline.c (copy_tree_r): Likewise.
10295 * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
10296 * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
10297 (build_constant_desc, output_constant_def_contents): Likewise.
10298 (categorize_decl_for_section): Likewise.
10299 * tree-mudflap.c: Removed.
10300 * tree-mudflap.h: Removed.
10301 * tree-nomudflap.c: Removed.
10302 * bfin/uclinux.h (MFWRAP_SPEC): Remove.
10303 * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
10304 * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
10305 * config/sol2.h (MFLIB_SPEC): Likewise.
10306 * doc/install.texi: Remove mudflap references.
10307 * doc/passes.texi: Similarly.
10308 * doc/sourcebuild.texi: Similarly.
10309 * doc/invoke.texi: Remove mudlfap related options.
10311 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
10313 PR rtl-optimization/58759
10314 * lra-constraints.c (lra_constraints): Remove wrong condition to
10315 remove insn setting up an equivalent pseudo.
10317 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
10319 * config/rs6000/rs6000-protos.h
10320 (rs6000_secondary_memory_needed_mode): New prototype.
10321 * config/rs6000/rs6000.c: Include ira.h.
10322 (TARGET_LRA_P): Redefine.
10323 (rs6000_legitimate_offset_address_p): Call
10324 legitimate_constant_pool_address_p in strict mode for LRA.
10325 (rs6000_legitimate_address_p): Ditto.
10326 (legitimate_lo_sum_address_p): Add code for LRA. Use lra_in_progress.
10327 (rs6000_emit_move): Add LRA version of code to generate load/store
10329 (rs6000_secondary_memory_needed_mode): New.
10330 (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
10331 (rs6000_secondary_reload_class): Return NO_REGS for LRA for
10332 constants, memory, and FP registers.
10333 (rs6000_lra_p): New.
10334 * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
10335 * config/rs6000/rs6000.opt (mlra): New option.
10336 * lra-spills.c (lra_final_code_change): Remove useless move insns.
10338 2013-10-25 Yufeng Zhang <yufeng.zhang@arm.com>
10340 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
10341 has_single_use () and not do the conversion if has_single_use ()
10342 returns false for the multiplication result.
10344 2013-10-25 David Malcolm <dmalcolm@redhat.com>
10346 * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
10347 to "NODE", since this works on a "tree", not an
10349 (CONSTANT_CLASS_P): Likewise.
10350 (TYPE_P): Likewise.
10351 (DECL_P): Likewise.
10352 (INDIRECT_REF_P): Likewise.
10353 (REFERENCE_CLASS_P): Likewise.
10354 (COMPARISON_CLASS_P): Likewise.
10355 (UNARY_CLASS_P): Likewise.
10356 (BINARY_CLASS_P): Likewise.
10357 (STATEMENT_CLASS_P): Likewise.
10358 (VL_EXP_CLASS_P): Likewise.
10359 (EXPRESSION_CLASS_P): Likewise.
10360 (IS_TYPE_OR_DECL_P): Likewise.
10362 2013-10-25 Marc Glisse <marc.glisse@inria.fr>
10364 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
10365 ADDR_EXPR in the defining statement.
10367 2013-10-25 Richard Biener <rguenther@suse.de>
10369 PR tree-optimization/58626
10370 * tree-loop-distribution.c (enum rdg_dep_type): Remove
10371 anti_dd, output_dd and input_dd.
10372 (struct rdg_edge): Remove level and relation members.
10373 (RDGE_LEVEL, RDGE_RELATION): Remove.
10374 (dot_rdg_1): Adjust.
10375 (create_rdg_edge_for_ddr): Remove.
10376 (create_rdg_edges_for_scalar): Adjust.
10377 (create_edge_for_control_dependence): Likewise.
10378 (create_rdg_edges): Split into ...
10379 (create_rdg_flow_edges): ... this
10380 (create_rdg_cd_edges): ... and this.
10381 (free_rdg): Adjust.
10382 (build_rdg): Likewise, do not compute data dependences or
10383 add edges for them.
10384 (pg_add_dependence_edges): New function.
10386 (distribute_loop): First apply all non-dependence based
10387 partition mergings. Then compute dependences between partitions
10388 and merge and order partitions according to them.
10390 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
10392 PR rtl-optimization/58831
10393 * alias.c (init_alias_analysis): At the beginning of each iteration,
10394 set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
10396 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
10398 * recog.c (search_ofs): New static variable moved from...
10399 (peep2_find_free_register): ...here.
10400 (peephole2_optimize): Initialize it.
10402 2013-10-25 Tobias Burnus <burnus@net-b.de>
10404 * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
10406 2013-10-25 Uros Bizjak <ubizjak@gmail.com>
10408 * config/i386/i386.h (TARGET_MPX): New define.
10409 (TARGET_MPX_P): Ditto.
10411 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
10413 * config/i386/constraints.md (B): New.
10416 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
10417 * config/i386/i386-modes.def (BND32): New.
10419 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
10420 * config/i386/i386.c (isa_opts): Add mmpx.
10421 (regclass_map): Add bound registers.
10422 (dbx_register_map): Likewise.
10423 (dbx64_register_map): Likewise.
10424 (svr4_dbx_register_map): Likewise.
10426 (ix86_option_override_internal): Support MPX ISA.
10427 (ix86_conditional_register_usage): Support bound registers.
10428 (print_reg): Likewise.
10429 (ix86_code_end): Add MPX bnd prefix.
10430 (output_set_got): Likewise.
10431 (ix86_output_call_insn): Likewise.
10432 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
10433 (ix86_print_operand_punct_valid_p): Likewise.
10434 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
10436 (ix86_class_likely_spilled_p): Add bound regs support.
10437 (ix86_hard_regno_mode_ok): Likewise.
10438 (x86_order_regs_for_local_alloc): Likewise.
10439 (ix86_bnd_prefixed_insn_p): New.
10440 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
10441 (FIXED_REGISTERS): Add bound registers.
10442 (CALL_USED_REGISTERS): Likewise.
10443 (REG_ALLOC_ORDER): Likewise.
10444 (HARD_REGNO_NREGS): Likewise.
10446 (VALID_BND_REG_MODE): New.
10447 (FIRST_BND_REG): New.
10448 (LAST_BND_REG): New.
10449 (reg_class): Add BND_REGS.
10450 (REG_CLASS_NAMES): Likewise.
10451 (REG_CLASS_CONTENTS): Likewise.
10452 (BND_REGNO_P): New.
10453 (ANY_BND_REG_P): New.
10455 (HI_REGISTER_NAMES): Add bound registers.
10456 * config/i386/i386.md (UNSPEC_BNDMK): New.
10457 (UNSPEC_BNDMK_ADDR): New.
10458 (UNSPEC_BNDSTX): New.
10459 (UNSPEC_BNDLDX): New.
10460 (UNSPEC_BNDLDX_ADDR): New.
10461 (UNSPEC_BNDCL): New.
10462 (UNSPEC_BNDCU): New.
10463 (UNSPEC_BNDCN): New.
10464 (UNSPEC_MPX_FENCE): New.
10467 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
10468 (length_immediate): Likewise.
10469 (prefix_0f): Likewise.
10470 (memory): Likewise.
10471 (prefix_rep): Check for bnd prefix.
10472 (length_nobnd): New.
10473 (length): Use length_nobnd if specified.
10478 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
10479 (*jcc_2): Likewise.
10481 (simple_return_internal): Likewise.
10482 (simple_return_pop_internal): Likewise.
10483 (*indirect_jump): Add MPX bnd prefix.
10484 (*tablejump_1): Likewise.
10485 (simple_return_internal_long): Likewise.
10486 (simple_return_indirect_internal): Likewise.
10490 (*mov<mode>_internal_mpx): New.
10491 (<mode>_<bndcheck>): New.
10492 (*<mode>_<bndcheck>): New.
10494 (*<mode>_ldx): New.
10496 (*<mode>_stx): New.
10497 * config/i386/predicates.md (lea_address_operand): Rename to...
10498 (address_no_seg_operand): ... this.
10499 (address_mpx_no_base_operand): New.
10500 (address_mpx_no_index_operand): New.
10501 (bnd_mem_operator): New.
10502 * config/i386/i386.opt (mmpx): New.
10503 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
10504 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
10506 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
10508 * mode-classes.def (MODE_POINTER_BOUNDS): New.
10509 * tree.def (POINTER_BOUNDS_TYPE): New.
10510 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
10511 (POINTER_BOUNDS_MODE): New.
10512 (make_pointer_bounds_mode): New.
10513 * machmode.h (POINTER_BOUNDS_MODE_P): New.
10514 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
10515 (layout_type): Support POINTER_BOUNDS_TYPE.
10516 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
10517 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
10518 (type_contains_placeholder_1): Likewise.
10519 * tree.h (POINTER_BOUNDS_TYPE_P): New.
10520 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
10521 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
10523 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
10525 * expr.c (expand_expr_real_1): Use mode of memory reference rather than
10526 mode of address computation when calling memory_address_addr_space.
10528 2013-08-24 Richard Henderson <rth@twiddle.net>
10531 * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
10532 instead of create_convert_operand_to.
10533 (maybe_emit_sync_lock_test_and_set): Likewise.
10534 (expand_atomic_compare_and_swap): Likewise.
10535 (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
10537 2013-08-24 Sriraman Tallam <tmsriram@google.com>
10539 * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
10540 Change param_is to use the struct and not the pointer to the struct.
10542 2013-10-24 Andrew MacLeod <amacleod@redhat.com>
10544 * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
10545 * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
10546 Move to targhooks.c.
10547 (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
10548 * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
10549 Relocate from gimplify.c.
10550 * targhooks.h: Add 2 prototypes.
10551 * tree.h: Delete 2 prototypes.
10553 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
10555 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
10556 [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
10558 2013-10-24 Cong Hou <congh@google.com>
10560 * convert.c (convert_to_real): Guard those unsafe math function
10561 convertions with flag_unsafe_math_optimizations. Handle sqrt()
10564 2013-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
10567 * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
10569 (cgraph_create_edge): Use the new argument.
10570 (cgraph_create_indirect_edge): Likewise.
10572 2013-10-24 Joern Rennecke <joern.rennecke@embecosm.com>
10574 * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
10575 TYPE_UNCOND_BRANCH.
10576 (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
10577 changes statep->state.
10579 2013-10-24 Tobias Burnus <burnus@net-b.de>
10582 * tree-cfg.c (replace_loop_annotate): New function.
10583 (execute_build_cfg): Call it.
10584 * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
10585 * internal-fn.c (expand_ANNOTATE): New function.
10586 * internal-fn.def (ANNOTATE): Define as new internal function.
10587 * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
10588 * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
10589 * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
10590 * doc/extend.texi (Pragmas): Document #pragma ivdep.
10591 * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
10593 2013-10-17 Ian Bolton <ian.bolton@arm.com>
10594 Marcus Shawcroft <marcus.shawcroft@arm.com>
10596 * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
10597 Special case reload SP+C into none GENERAL_REGS.
10599 2013-10-24 Michael Matz <matz@suse.de>
10601 * gengtype.c (is_file_equal): Check that files will be same length.
10603 2013-10-25 Christian Bruel <christian.bruel@st.com>
10605 * config.gcc (sh-*): Add sh-mem.o to extra_obj.
10606 * config/sh/t-sh (sh-mem.o): New rule.
10607 * config/sh/sh-mem.cc (expand_block_move): Moved here.
10608 (sh_expand_cmpstr): New function.
10609 * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
10610 * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
10611 * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
10612 (rotlhi3_8): Rename.
10614 2013-10-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10616 * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
10617 * Makefile.in (CXXDEPMODE): Assign and change users.
10618 (CCDEPMODE): Delete.
10619 * configure: Regenerate.
10621 2013-10-23 David Malcolm <dmalcolm@redhat.com>
10623 * gengtype-parse.c (require_without_advance): New.
10624 (type): For GTY-marked types that are not GTY((user)), parse any
10625 base classes, requiring them to be single-inheritance, and not
10626 be templates. For non-GTY-marked types and GTY((user)),
10627 continue to skip over any C++ inheritance specification.
10628 * gengtype-state.c (state_writer::write_state_struct_type):
10629 Write base class of type (if any).
10630 (read_state_struct_type): Read base class of type (if any).
10631 * gengtype.c (new_structure): Add a "base_class" parameter.
10632 (create_optional_field_): Update for new parameter to new_structure.
10633 (adjust_field_rtx_def): Likewise.
10634 (adjust_field_tree_exp): Likewise.
10635 * gengtype.h (struct type): Add "base_class" field to the s
10637 (new_structure): Add "base" parameter.
10639 2013-10-23 Sriraman Tallam <tmsriram@google.com>
10642 * config/i386/i386.c (ix86_option_override_internal):
10643 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
10644 (ix86_valid_target_attribute_tree):
10645 Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
10646 Change TARGET_SSE to TARGET_SSE_P (opts->...)
10648 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
10650 * tree-ssa-loop.h: Remove include files.
10651 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
10652 * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
10653 * graphite-clast-to-gimple.c: Likewise.
10654 * graphite-scop-detection.c: Likewise.
10655 * graphite-sese-to-poly.c: Likewise.
10656 * ipa-inline-analysis.c: Likewise.
10657 * ipa-pure-const.c: Likewise.
10658 * loop-init.c: Likewise.
10659 * passes.c: Likewise.
10660 * predict.c: Likewise.
10661 * tree-cfg.c: Likewise.
10662 * tree-cfgcleanup.c: Likewise.
10663 * tree-chrec.c: Likewise.
10664 * tree-data-ref.c: Likewise.
10665 * tree-loop-distribution.c: Likewise.
10666 * tree-parloops.c: Likewise.
10667 * tree-predcom.c: Likewise.
10668 * tree-scalar-evolution.c: Likewise.
10669 * tree-ssa-address.c: Likewise.
10670 * tree-ssa.c: Likewise.
10671 * tree-ssa-dce.c: Likewise.
10672 * tree-ssa-loop.c: Likewise.
10673 * tree-ssa-loop-im.c: Likewise.
10674 * tree-ssa-loop-ivcanon.c: Likewise.
10675 * tree-ssa-loop-ivopts.c: Likewise.
10676 * tree-ssa-loop-manip.c: Likewise.
10677 * tree-ssa-loop-niter.c: Likewise.
10678 * tree-ssa-loop-prefetch.c: Likewise.
10679 * tree-ssa-loop-unswitch.c: Likewise.
10680 * tree-ssa-reassoc.c: Likewise.
10681 * tree-vect-data-refs.c: Likewise.
10682 * tree-vect-loop.c: Likewise.
10683 * tree-vect-loop-manip.c: Likewise.
10684 * tree-vectorizer.c: Likewise.
10685 * tree-vect-stmts.c: Likewise.
10686 * tree-vrp.c: Likewise.
10688 2013-10-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10690 * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
10692 2013-10-23 Jakub Jelinek <jakub@redhat.com>
10694 PR tree-optimization/58775
10695 PR tree-optimization/58791
10696 * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
10697 (insert_stmt_after): Rewritten, don't move the stmt, but really
10699 (get_stmt_uid_with_default): Remove.
10700 (build_and_add_sum): Use insert_stmt_after and
10701 reassoc_stmt_dominates_stmt_p. Fix up uid if bb contains only labels.
10702 (update_range_test): Set uid on stmts added by
10703 force_gimple_operand_gsi. Don't immediately modify statements
10704 in inter-bb optimization, just update oe->op values.
10705 (optimize_range_tests): Return bool whether any changed have been made.
10706 (update_ops): New function.
10707 (struct inter_bb_range_test_entry): New type.
10708 (maybe_optimize_range_tests): Perform statement changes here.
10709 (not_dominated_by, appears_later_in_bb, get_def_stmt,
10710 ensure_ops_are_available): Remove.
10711 (find_insert_point): Rewritten.
10712 (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
10713 return LHS of the (new resp. old) stmt. Don't call
10714 ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
10715 instead of last, move new stmt at the right place.
10716 (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
10717 (negate_value): Likewise. Set uids.
10718 (break_up_subtract_bb): Initialize uids.
10719 (reassociate_bb): Adjust rewrite_expr_tree caller.
10720 (do_reassoc): Don't call renumber_gimple_stmt_uids.
10722 2013-10-23 David Edelsohn <dje.gcc@gmail.com>
10725 * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
10726 TARGET_32BIT final condition.
10727 (mulsi3_internal2 and splitter): Same.
10729 2013-10-23 Jeff Law <law@redhat.com>
10731 * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
10732 through joiner blocks with abnormal outgoing edges.
10734 * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
10735 Add parameter JOINERS, to allow/disallow threading through joiner
10737 (thread_block): New. Call thread_block_1.
10738 (mark_threaded_blocks): Remove code to filter out certain cases
10739 of threading through joiner blocks.
10740 (thread_through_all_blocks): Document how we can have a dangling
10741 edge AUX field and clear it.
10743 2013-10-23 Ian Lance Taylor <iant@google.com>
10745 * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
10746 (C++ Dialect Options): Likewise.
10747 (Optimize Options): Likewise.
10749 2013-10-23 Tom de Vries <tom@codesourcery.com>
10751 PR tree-optimization/58805
10752 * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
10754 2013-10-23 Jakub Jelinek <jakub@redhat.com>
10756 * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
10757 sequence based on get_range_info returned range.
10759 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
10761 * tree-ssa.h: Remove all #include's
10762 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
10763 * alias.c: Move required includes from tree-ssa.h.
10764 * asan.c: Likewise.
10765 * builtins.c: Likewise.
10766 * calls.c: Likewise.
10767 * cfgexpand.c: Likewise.
10768 * cfghooks.c: Likewise.
10769 * cfgloop.c: Likewise.
10770 * cfgloopmanip.c: Likewise.
10771 * cgraph.c: Likewise.
10772 * cgraphbuild.c: Likewise.
10773 * cgraphclones.c: Likewise.
10774 * cgraphunit.c: Likewise.
10776 * except.c: Likewise.
10777 * expr.c: Likewise.
10778 * final.c: Likewise.
10779 * fold-const.c: Likewise.
10780 * ggc-page.c: Likewise.
10781 * gimple-builder.c: Likewise.
10782 * gimple-fold.c: Likewise.
10783 * gimple-iterator.c: Likewise.
10784 * gimple-low.c: Likewise.
10785 * gimple-pretty-print.c: Likewise.
10786 * gimple-ssa-strength-reduction.c: Likewise.
10787 * gimple-streamer-in.c: Likewise.
10788 * gimple-streamer-out.c: Likewise.
10789 * gimplify.c: Likewise.
10790 * graphite-blocking.c: Likewise.
10791 * graphite-clast-to-gimple.c: Likewise.
10792 * graphite-dependences.c: Likewise.
10793 * graphite-interchange.c: Likewise.
10794 * graphite-optimize-isl.c: Likewise.
10795 * graphite-poly.c: Likewise.
10796 * graphite-scop-detection.c: Likewise.
10797 * graphite-sese-to-poly.c: Likewise.
10798 * graphite.c: Likewise.
10799 * ipa-cp.c: Likewise.
10800 * ipa-inline-analysis.c: Likewise.
10801 * ipa-inline-transform.c: Likewise.
10802 * ipa-inline.c: Likewise.
10803 * ipa-prop.c: Likewise.
10804 * ipa-pure-const.c: Likewise.
10805 * ipa-reference.c: Likewise.
10806 * ipa-split.c: Likewise.
10807 * ipa-utils.c: Likewise.
10808 * loop-init.c: Likewise.
10809 * lto-cgraph.c: Likewise.
10810 * lto-section-in.c: Likewise.
10811 * lto-section-out.c: Likewise.
10812 * lto-streamer-in.c: Likewise.
10813 * lto-streamer-out.c: Likewise.
10814 * lto-streamer.c: Likewise.
10815 * omp-low.c: Likewise.
10816 * passes.c: Likewise.
10817 * predict.c: Likewise.
10818 * print-tree.c: Likewise.
10819 * profile.c: Likewise.
10820 * sese.c: Likewise.
10821 * targhooks.c: Likewise.
10822 * tracer.c: Likewise.
10823 * trans-mem.c: Likewise.
10824 * tree-call-cdce.c: Likewise.
10825 * tree-cfg.c: Likewise.
10826 * tree-cfgcleanup.c: Likewise.
10827 * tree-chrec.c: Likewise.
10828 * tree-complex.c: Likewise.
10829 * tree-data-ref.c: Likewise.
10830 * tree-dfa.c: Likewise.
10831 * tree-eh.c: Likewise.
10832 * tree-emutls.c: Likewise.
10833 * tree-if-conv.c: Likewise.
10834 * tree-inline.c: Likewise.
10835 * tree-into-ssa.c: Likewise.
10836 * tree-loop-distribution.c: Likewise.
10837 * tree-mudflap.c: Likewise.
10838 * tree-nested.c: Likewise.
10839 * tree-nrv.c: Likewise.
10840 * tree-object-size.c: Likewise.
10841 * tree-outof-ssa.c: Likewise.
10842 * tree-parloops.c: Likewise.
10843 * tree-phinodes.c: Likewise.
10844 * tree-predcom.c: Likewise.
10845 * tree-pretty-print.c: Likewise.
10846 * tree-profile.c: Likewise.
10847 * tree-scalar-evolution.c: Likewise.
10848 * tree-sra.c: Likewise.
10849 * tree-ssa-address.c: Likewise.
10850 * tree-ssa-alias.c: Likewise.
10851 * tree-ssa-ccp.c: Likewise.
10852 * tree-ssa-coalesce.c: Likewise.
10853 * tree-ssa-copy.c: Likewise.
10854 * tree-ssa-copyrename.c: Likewise.
10855 * tree-ssa-dce.c: Likewise.
10856 * tree-ssa-dom.c: Likewise.
10857 * tree-ssa-dse.c: Likewise.
10858 * tree-ssa-forwprop.c: Likewise.
10859 * tree-ssa-ifcombine.c: Likewise.
10860 * tree-ssa-live.c: Likewise.
10861 * tree-ssa-loop-ch.c: Likewise.
10862 * tree-ssa-loop-im.c: Likewise.
10863 * tree-ssa-loop-ivcanon.c: Likewise.
10864 * tree-ssa-loop-ivopts.c: Likewise.
10865 * tree-ssa-loop-manip.c: Likewise.
10866 * tree-ssa-loop-niter.c: Likewise.
10867 * tree-ssa-loop-prefetch.c: Likewise.
10868 * tree-ssa-loop-unswitch.c: Likewise.
10869 * tree-ssa-loop.c: Likewise.
10870 * tree-ssa-math-opts.c: Likewise.
10871 * tree-ssa-operands.c: Likewise.
10872 * tree-ssa-phiopt.c: Likewise.
10873 * tree-ssa-phiprop.c: Likewise.
10874 * tree-ssa-pre.c: Likewise.
10875 * tree-ssa-propagate.c: Likewise.
10876 * tree-ssa-reassoc.c: Likewise.
10877 * tree-ssa-sccvn.c: Likewise.
10878 * tree-ssa-sink.c: Likewise.
10879 * tree-ssa-strlen.c: Likewise.
10880 * tree-ssa-structalias.c: Likewise.
10881 * tree-ssa-tail-merge.c: Likewise.
10882 * tree-ssa-ter.c: Likewise.
10883 * tree-ssa-threadedge.c: Likewise.
10884 * tree-ssa-threadupdate.c: Likewise.
10885 * tree-ssa-uncprop.c: Likewise.
10886 * tree-ssa-uninit.c: Likewise.
10887 * tree-ssa.c: Likewise.
10888 * tree-ssanames.c: Likewise.
10889 * tree-stdarg.c: Likewise.
10890 * tree-streamer-in.c: Likewise.
10891 * tree-switch-conversion.c: Likewise.
10892 * tree-tailcall.c: Likewise.
10893 * tree-vect-data-refs.c: Likewise.
10894 * tree-vect-generic.c: Likewise.
10895 * tree-vect-loop-manip.c: Likewise.
10896 * tree-vect-loop.c: Likewise.
10897 * tree-vect-patterns.c: Likewise.
10898 * tree-vect-slp.c: Likewise.
10899 * tree-vect-stmts.c: Likewise.
10900 * tree-vectorizer.c: Likewise.
10901 * tree-vrp.c: Likewise.
10902 * tree.c: Likewise.
10903 * tsan.c: Likewise.
10904 * value-prof.c: Likewise.
10905 * var-tracking.c: Likewise.
10906 * varpool.c: Likewise.
10907 * vtable-verify.c: Likewise.
10909 2013-10-23 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10911 * config/tilegx/tilegx.c: Include "tree.h".
10913 2013-10-23 Jakub Jelinek <jakub@redhat.com>
10915 * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
10916 the info, not after it.
10917 (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
10918 dump_ssaname_info call.
10919 (pp_gimple_stmt_1): Adjust caller.
10920 (dump_phi_nodes): Likewise. Don't print "# " here.
10922 2013-10-22 Jan Hubicka <jh@suse.cz>
10924 * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
10926 * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
10927 * i386.c (expand_small_movmem_or_setmem): New function.
10928 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
10930 (alg_usable_p): Add support for value ranges; cleanup.
10931 (ix86_expand_set_or_movmem): Add support for misaligned moves.
10933 2013-10-22 Sterling Augustine <saugustine@google.com>
10935 * doc/invoke.texi: Document -ggnu-pubnames.
10936 * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
10938 * dwarf2out.c: Include gdb/gdb-index.h.
10939 (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
10940 debug_generate_pub_sections.
10941 (is_java, output_pubtables, output_pubname): New functions.
10942 (include_pubname_in_output): Handle debug_generate_pub_sections at
10944 (size_of_pubnames): Use new local space_for_flags based on
10945 debug_generate_pub_sections.
10946 (output_pubnames): Unify pubnames and pubtypes output logic.
10947 Genericize comments. Call output_pubname.
10948 (dwarf2out_finish): Move logic to output_pubnames and call it.
10950 2013-10-22 Uros Bizjak <ubizjak@gmail.com>
10953 * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
10954 Remove CCCmode handling.
10955 <case LTU>: Return 'c' suffix for CCCmode.
10956 <case GEU>: Return 'nc' suffix for CCCmode.
10957 (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
10958 * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
10959 (*sub<mode>3_cc_overflow): Ditto.
10960 (*subsi3_zext_cc_overflow): Ditto.
10962 2013-10-22 Steve Ellcey <sellcey@mips.com>
10964 * config/mips/mips.c (mips_rtx_costs): Fix cost estimate for nor
10965 (AND (NOT OP1) (NOT OP2)).
10967 2013-10-22 Bill Schmidt <wschmidt@vnet.ibm.com>
10969 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
10970 meaning of merge-high and merge-low masks for little endian; avoid
10971 use of vector-pack masks for little endian for mismatched modes.
10973 2013-10-22 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10975 * config/tilepro/tilepro.c: Include "tree.h".
10977 2013-10-22 Andreas Schwab <schwab@suse.de>
10979 * config/m68k/m68k.c (notice_update_cc): Handle register conflict
10982 2013-10-22 Paolo Carlini <paolo.carlini@oracle.com>
10984 * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
10985 [Ed Smith-Rowland]): New entries.
10986 ([Stephen M. Webb]): Update.
10988 2013-10-22 Andrew MacLeod <amacleod@redhat.com>
10990 * tree-ssa-ter.h: Remove duplicate copy of file contents.
10992 2013-10-21 Marek Polacek <polacek@redhat.com>
10994 PR middle-end/58809
10995 * fold-const.c (fold_range_test): Return 0 if the type is not
10998 2013-10-21 Richard Sandiford <rdsandiford@googlemail.com>
11000 * system.h: Move hwint.h include further down.
11001 * hwint.h (sext_hwi, zext_hwi): Define unconditionally. Add
11002 gcc_checking_asserts.
11003 * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
11005 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
11007 Fix volatile issues in optimize_bit_field_compare.
11008 * fold-const.c (optimize_bit_field_compare): Bail out if
11009 lvolatilep or rvolatilep.
11011 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
11013 Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
11014 and get_inner_reference returning different pmode for non-volatile
11015 bit-field members dependent on flag_strict_volatile_bitfields.
11016 * stor-layout.c (layout_decl): Remove special handling of
11017 flag_strict_volatile_bitfields.
11018 * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
11019 if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
11021 2013-10-21 Paulo Matos <pmatos@broadcom.com>
11023 * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
11026 2013-10-21 Jeff Law <law@redhat.com>
11028 * tree-ssa-threadedge.c (thread_through_normal_block): New
11029 argument VISITED. Remove VISISTED as a local variable. When we
11030 have a threadable jump, verify the destination of the jump has not
11032 (thread_across_edge): Allocate VISITED bitmap once at function
11033 scope and use it throughout. Make sure to set appropriate bits in
11034 VISITED for E (start of jump thread path).
11035 * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
11036 through a joiner if any edge on the path has a recorded jump thread.
11038 2013-10-21 Ian Lance Taylor <iant@google.com>
11040 * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
11041 don't imply that attributes can solve all problems.
11042 (Directory Options): Fix typo.
11044 2013-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11046 * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
11047 extend and extend_add.
11049 2013-10-21 Richard Biener <rguenther@suse.de>
11051 PR tree-optimization/58794
11052 * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
11053 of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
11055 2013-10-21 Richard Biener <rguenther@suse.de>
11057 PR middle-end/58742
11058 * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
11059 to (T) X for sign-changing conversions (or no conversion).
11061 2013-10-20 Uros Bizjak <ubizjak@gmail.com>
11063 * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
11065 2013-10-20 Jan Hubicka <jh@suse.cz>
11067 * config/i386/i386-tune.def: Add comment; organize into categories
11069 2013-10-21 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
11071 * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
11072 argument. Update function comment.
11073 (expand_set_or_movmem_via_rep): New function combining
11074 expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
11075 (expand_movmem_via_rep_mov): Remove.
11076 expand_setmem_via_rep_stos): Remove.
11077 (expand_movmem_epilogue): Update calls correspondingly.
11078 (expand_setmem_epilogue_via_loop): Likewise.
11079 (emit_memset): New.
11080 (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
11081 (expand_set_or_movmem_prologue): New function combining
11082 expand_movmem_prologue and expand_setmem_prologue.
11083 (expand_movmem_prologue): Remove.
11084 (expand_setmem_prologue): Remove.
11085 (expand_set_or_movmem_constant_prologue): New function combining
11086 expand_constant_movmem_prologue and expand_constant_setmem_prologue.
11087 (expand_constant_movmem_prologue): Remove.
11088 (expand_constant_setmem_prologue): Remove.
11089 (promote_duplicated_reg): Allow vector-const0 value.
11090 (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
11091 and ix86_expand_setmem.
11092 (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
11093 (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
11095 2013-10-21 Diego Novillo <dnovillo@google.com>
11097 * asan.c: Include tree.h
11098 * bb-reorder.c: Likewise.
11099 * cfgcleanup.c: Likewise.
11100 * cfgloopmanip.c: Likewise.
11101 * data-streamer-in.c: Likewise.
11102 * data-streamer-out.c: Likewise.
11103 * data-streamer.c: Likewise.
11104 * dwarf2cfi.c: Likewise.
11105 * graphite-blocking.c: Likewise.
11106 * graphite-clast-to-gimple.c: Likewise.
11107 * graphite-dependences.c: Likewise.
11108 * graphite-interchange.c: Likewise.
11109 * graphite-optimize-isl.c: Likewise.
11110 * graphite-poly.c: Likewise.
11111 * graphite-scop-detection.c: Likewise.
11112 * graphite-sese-to-poly.c: Likewise.
11113 * graphite.c: Likewise.
11114 * ipa-devirt.c: Likewise.
11115 * ipa-profile.c: Likewise.
11118 * loop-init.c: Likewise.
11119 * loop-unroll.c: Likewise.
11120 * lower-subreg.c: Likewise.
11121 * lto/lto-object.c: Likewise.
11122 * recog.c: Likewise.
11123 * reginfo.c: Likewise.
11124 * tree-loop-distribution.c: Likewise.
11125 * tree-parloops.c: Likewise.
11126 * tree-ssa-strlen.c: Likewise.
11127 * tree-streamer.c: Likewise.
11128 * value-prof.c: Likewise.
11129 * target-globals.c: Likewise.
11130 * expr.h: Include tree-core.h instead of tree.h.
11131 * gimple.h: Likewise.
11132 * ipa-prop.h: Likewise.
11133 * ipa-utils.h: Likewise.
11134 * lto-streamer.h: Likewise.
11135 * streamer-hooks.h: Likewise.
11136 * ipa-reference.h: Include cgraph.h instead of tree.h.
11137 * cgraph.h: Include basic-block.h instead of tree.h.
11138 * tree-streamer.h: Do not include tree.h.
11139 * genattrtab.c (write_header): Generate inclusion of tree.h.
11140 * genautomata.c (main): Likewise.
11141 * genemit.c: Likewise.
11142 * genopinit.c: Likewise.
11143 * genoutput.c (output_prologue): Likewise.
11144 * genpeep.c: Likewise.
11146 2013-10-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11148 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
11150 (vec_unpacku_hi_v8hi): Likewise.
11151 (vec_unpacku_lo_v16qi): Likewise.
11152 (vec_unpacku_lo_v8hi): Likewise.
11154 2013-10-20 Jan Hubicka <jh@suse.cz>
11156 * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
11157 X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
11158 (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
11160 2013-10-20 Richard Sandiford <rdsandiford@googlemail.com>
11162 * config/mips/mips.h (ISA_HAS_WSBH): Define.
11163 * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
11165 (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
11167 2013-10-19 John David Anglin <danglin@gcc.gnu.org>
11170 * system.h: Undef m_slot.
11172 2013-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11174 * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
11175 all elements for both endian flavors.
11177 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
11180 * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
11181 ST1_REG and XMM1_REG for 32bit and 64bit targets. Also add DI_REG
11182 and SI_REG for 64bit SYSV ABI targets.
11184 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
11186 * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
11187 to multi_reg_return. Clarify that we are skipping USEs of multiple
11188 return registers. Use bool type where appropriate.
11190 2013-10-18 Jan Hubicka <jh@suse.cz>
11192 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
11193 for cold functions.
11194 * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
11195 (X86_TUNE_PUSH_MEMORY): Likewise.
11196 (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
11197 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
11198 (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
11200 * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
11201 x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
11203 (ix86_option_override_internal): Update to use tune features instead
11206 2013-10-18 Cong Hou <congh@google.com>
11208 PR tree-optimization/58508
11209 * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
11210 statement that contains data refs with zero-step.
11212 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
11214 * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
11215 sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
11216 * gimple-low.c (gimple_check_call_arg,
11217 gimple_check_call_matching_types): Move to cgraph.c.
11218 * gimple-low.h: Remove prototype.
11219 * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
11220 Relocate from gimple-low.c.
11221 * cgraph.h: Add prototype. Don't include basic-block.h.
11222 * gimplify.c: Add gimple-low to include list.
11223 * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
11224 * tree-eh.c: Add gimple-low to include list.
11225 * tree-nested.c: Likewise.
11226 * cfgexpand.c: Add tree-ssa-address.h to include list.
11227 * expr.c: Likewise.
11228 * gimple-fold.c: Likewise.
11229 * gimple-ssa-strength-reduction.c: Likewise.
11230 * trans-mem.c: Likewise.
11231 * tree-mudflap.c: Likewise.
11232 * tree-ssa-loop-ivopts.c: Likewise.
11233 * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
11234 (degenerate_phi_result): Move to tree-phinodes.c.
11235 * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
11236 * tree-ssa-threadedge.c: Likewise.
11237 * tree-vrp.c: Likewise.
11238 * tree-phinodes.c (degenerate_phi_result): Relocate here.
11239 * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
11240 * tree-phinodes.h (degenerate_phi_result): Add prototype.
11241 * tree-ssa-copy.c: Include tree-ssa-dom.h.
11242 * tree-ssa-forwprop.c: Likewise.
11243 * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
11244 pass_data_cleanup_cfg_post_optimizing,
11245 make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
11246 * tree-optimize.c: Delete File.
11247 * graphite.c: Include tree-cfgcleanup.h.
11248 * passes.c: Likewise.
11249 * tree-cfg.c: Likewise.
11250 * tree-profile.c: Likewise.
11251 * tree-ssa-dse.c: Likewise.
11252 * tree-ssa-loop-ivcanon.c: Likewise.
11253 * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
11254 * tree-outof-ssa.c: Include sbitmap.h.
11255 * tree-ssa-live.c: Likewise.
11256 * tree-ssa-propagate.c: Likewise.
11257 * tree-ssa-structalias.c: Likewise.
11258 * tree-stdarg.c: Likewise.
11259 * Makefile.in (OBJS): Delete tree-optimize.o.
11260 * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
11261 * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
11262 * varasm.c: Include basic-block.h.
11263 * cfgloop.h: Include function.h instead of basic-block.h
11264 (bb_loop_depth): Move to cfgloop.c.
11265 * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
11267 2013-10-18 Teresa Johnson <tejohnson@google.com>
11269 * predict.c (probably_never_executed): Compare frequency-based
11270 count to number of training runs.
11271 * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
11273 2013-10-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11275 * config/arm/arm.c (cortexa9_extra_costs): New table.
11276 (arm_cortex_a9_tune): Use cortexa9_extra_costs.
11278 2013-10-18 Jeff Law <law@redhat.com>
11280 * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
11282 * tree-ssa-threadupdate.c: Include "dbgcnt.h".
11283 (register_jump_thread): Add "registered_jump_thread" debug
11285 * dbgcnt.def (registered_jump_thread): New debug counter.
11287 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
11289 * config/rs6000/rs6000.c: Include cgraph.h.
11291 2013-10-18 Teresa Johnson <tejohnson@google.com>
11293 * tree-ssa-tail-merge.c (replace_block_by): Update edge
11294 weights during merging.
11296 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
11298 * tree-cfg.h: Rename from tree-flow.h. Remove #includes.
11299 * tree-ssa.h: Relocate required #includes from tree-cfg.h.
11300 * tree-ssa-operands.h: Remove prototype.
11301 * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
11302 * gimple.c (virtual_operand_p): Relocate from gimple.c.
11303 * gimple.h: Add prototype.
11304 * gimple-ssa.h: Include tree-ssa-operands.h.
11305 * tree-dump.c: Add tree-cfg.h to include list.
11306 * tree-ssa-alias.c: Add ipa-reference.h to include list.
11307 * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
11308 * config/i386/i386.c: Don't include tree-flow.h.
11309 * config/rs6000/rs6000.c: Likewise.
11311 2013-10-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11313 * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
11315 2013-10-18 Richard Biener <rguenther@suse.de>
11317 * stor-layout.c (layout_type): Do not change TYPE_PRECISION
11318 or TYPE_UNSIGNED of integral types.
11319 (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
11320 NULL_TREE for zero-precision integral types.
11322 2013-10-18 James Greenhalgh <james.greenhalgh@arm.com>
11324 * config/aarch64/arm_neon.h
11325 (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
11327 2013-10-17 Sriraman Tallam <tmsriram@google.com>
11330 * opth-gen.awk: Define target_flags_explicit.
11332 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
11334 * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
11335 fields to the reg_addr array that describes the valid addressing
11336 mode for any register, general purpose registers, floating point
11337 registers, and Altivec registers.
11338 (FIRST_RELOAD_REG_CLASS): Likewise.
11339 (LAST_RELOAD_REG_CLASS): Likewise.
11340 (struct reload_reg_map_type): Likewise.
11341 (reload_reg_map_type): Likewise.
11342 (RELOAD_REG_VALID): Likewise.
11343 (RELOAD_REG_MULTIPLE): Likewise.
11344 (RELOAD_REG_INDEXED): Likewise.
11345 (RELOAD_REG_OFFSET): Likewise.
11346 (RELOAD_REG_PRE_INCDEC): Likewise.
11347 (RELOAD_REG_PRE_MODIFY): Likewise.
11348 (reg_addr): Likewise.
11349 (mode_supports_pre_incdec_p): New helper functions to say whether
11350 a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
11351 (mode_supports_pre_modify_p): Likewise.
11352 (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
11353 print the valid address mode bits for each mode.
11354 (rs6000_debug_print_mode): Likewise.
11355 (rs6000_debug_reg_global): Likewise.
11356 (rs6000_setup_reg_addr_masks): New function to set up the address
11357 mask bits for each type.
11358 (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
11359 Call rs6000_setup_reg_addr_masks to set up the address mask bits.
11360 (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
11361 mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
11362 PRE_MODIFY are supported.
11363 (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
11364 registers, instead of {src,dest}_av_p.
11365 (rs6000_print_options_internal): Tweak the debug output slightly.
11367 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
11369 * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
11372 2013-10-17 Andrew MacLeod <amacleod@redhat.com>
11374 * tree-flow.h (struct omp_region): Move to omp-low.c.
11375 Remove omp_ prototypes and variables.
11376 * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
11377 (copy_var_decl): Relocate prototype from tree-flow.h.
11378 * gimple.c (copy_var_decl): Relocate from omp-low.c.
11379 * tree.h: Move prototype to omp-low.h.
11380 * omp-low.h: New File. Relocate prototypes here.
11381 * omp-low.c (struct omp_region): Make local here.
11382 (root_omp_region): Make static.
11383 (copy_var_decl) Move to gimple.c.
11384 (new_omp_region): Make static.
11385 (make_gimple_omp_edges): New. Refactored from tree-cfg.c make_edges.
11386 * tree-cfg.c: Include omp-low.h.
11387 (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
11388 * gimplify.c: Include omp-low.h.
11389 * tree-parloops.c: Likewise.
11391 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
11393 * config/i386/i386.c (ix86_fixup_binary_operands): When both source
11394 operands are in memory, prefer to force non-matched operand 1 to
11397 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
11400 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
11401 restrict TImode addresses to single indirect registers if both
11402 -mquad-memory and -mvsx-timode are used.
11403 (rs6000_output_move_128bit): Use quad_load_store_p to determine if
11404 we should emit load/store quad. Remove using %y for quad memory
11407 * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
11408 constraints to allow load/store quad on machines where TImode is
11409 not allowed in VSX registers. Use 'n' instead of 'F' constraint
11410 for TImode to load integer constants.
11412 2013-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11414 * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
11416 2013-10-17 Marcus Shawcroft <marcus.shawcroft@arm.com>
11418 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
11419 handling of STACK_REG.
11421 2013-10-17 Richard Biener <rguenther@suse.de>
11423 PR tree-optimization/58143
11424 * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
11426 (rewrite_to_defined_overflow): Likewise.
11427 (move_computations_dom_walker::before_dom): Rewrite stmts
11428 with undefined signed overflow that are not always executed
11429 into unsigned arithmetic.
11431 2013-10-16 Michael Meissner <meissner@linux.vnet.ibm.com>
11434 * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
11435 explicit isa flag to be an options variable, instead of using
11436 global_options_set. Remove define from rs6000.h.
11437 * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
11439 * config/rs6000/rs6000.c (rs6000_option_override_internal):
11440 Initialize rs6000_isa_flags_explicit.
11441 (rs6000_function_specific_save): Add gcc_options* parameter, so
11442 that the powerpc builds after the 2013-10-15 changes.
11443 (rs6000_function_specific_restore): Likewise.
11445 2013-10-16 DJ Delorie <dj@redhat.com>
11447 * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
11448 op is a REG before checking REGNO.
11449 (rl78_alloc_physical_registers): Verify pattern is a SET before
11452 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11454 * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
11456 (vec_unpacks_lo_v4sf): Likewise.
11457 (vec_unpacks_float_hi_v4si): Likewise.
11458 (vec_unpacks_float_lo_v4si): Likewise.
11459 (vec_unpacku_float_hi_v4si): Likewise.
11460 (vec_unpacku_float_lo_v4si): Likewise.
11462 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11464 * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
11465 (vsx_concat_v2sf): Likewise.
11467 2013-10-16 James Greenhalgh <james.greenhalgh@arm.com>
11469 * config/aarch64/aarch64.md
11470 (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
11472 2013-10-16 Andrew MacLeod <amacleod@redhat.com>
11474 PR tree-optimization/58697
11475 * cfgloop.c (get_estimated_loop_iterations_int): Rename from
11476 estimated_loop_iterations_int.
11477 (max_stmt_executions_int): Call get_max_loop_iterations_int.
11478 (get_max_loop_iterations_int): New. HWINT version of
11479 get_max_loop_iterations.
11480 * cfgloop.h: Add prototypes.
11481 * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
11482 * loop-unroll.c (decide_peel_once_rolling): Call
11483 get_estimated_loop_iterations_int.
11484 * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
11485 * tree-ssa-loop-niter.h: Tweak prototypes.
11487 2013-10-16 David Malcolm <dmalcolm@redhat.com>
11489 * gengtype-parse.c (struct_field_seq): Ignore access-control
11490 keywords ("public:" etc).
11492 2013-10-16 Marcus Shawcroft <marcus.shawcroft@arm.com>
11494 * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
11495 FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
11497 2013-10-16 Yvan Roux <yvan.roux@linaro.org>
11499 * config/arm/arm.opt (mlra): New option.
11500 * config/arm/arm.c (arm_lra_p): New function.
11501 (TARGET_LRA_P): Define.
11503 2013-10-16 Paulo Matos <pmatos@broadcom.com>
11505 * tree-core.h (tree_code_name): Remove.
11506 * tree.h (get_tree_code_name): New prototype.
11507 * tree.c (tree_code_name): Make static.
11508 (get_tree_code_name): New function.
11509 (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
11510 tree_class_check_failed, tree_range_check_failed,
11511 tree_not_class_check_failed, omp_clause_check_failed,
11512 tree_contains_struct_check_failed, tree_operand_check_failed): Use new
11513 wrapper get_tree_code_name instead of calling tree_code_name directly.
11514 * tree-vrp.c (dump_asserts_for): Likewise.
11515 * tree-dump.c (dequeue_and_dump): Likewise.
11516 * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
11517 * tree-pretty-print.h (pp_unsupported_tree): Likewise.
11518 * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
11519 * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
11520 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
11521 dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
11522 dump_gimple_omp_for): Likewise.
11523 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
11524 * tree-ssa-pre.c (print_pre_expr): Likewise.
11525 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
11526 * print-tree.c (print_node_brief, print_node): Likewise.
11527 * gimple.c (gimple_check_failed): Likewise.
11528 * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
11529 * config/frv/frv.c (frv_init_cumulative_args): Likewise.
11530 * config/mep/mep.c (mep_validate_vliw): Likewise.
11531 * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
11532 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
11534 2013-10-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11536 * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
11539 2013-10-16 Hans-Peter Nilsson <hp@axis.com>
11541 * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
11542 (MULTILIB_MATCHES): Add multilib for -march=v8.
11544 2013-10-15 Sriraman Tallam <tmsriram@google.com>
11547 * optc-save-gen.awk: Add extra parameter to the save and restore
11549 * opth-gen.awk: Generate new TARGET_* macros to accept a parameter.
11550 * tree.c (build_optimization_node): New parameter. Add extra parameter
11551 to call to cl_optimization_save.
11552 (build_target_option_node): New parameter. Add extra parameter
11553 to call to cl_target_option_save.
11554 * tree.h (build_optimization_node): New parameter.
11555 (build_target_option_node): New parameter.
11556 * c-family/c-common.c (handle_optimize_attribute): Fix calls to
11557 build_optimization_node and build_target_option_node.
11558 * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
11559 (handle_pragma_push_options): Ditto.
11560 * toplev.c (process_options): Ditto.
11561 * opts.c (init_options_struct): Check for opts_set non-null.
11562 * target.def (target_option.save): New parameter.
11563 (target_option.restore): New parameter.
11564 * tm.texi: Generate.
11565 * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
11566 (ix86_pragma_target_parse): Ditto.
11567 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
11569 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
11570 to build_optimization_node and build_target_option_node.
11571 (rs6000_valid_attribute_p): Ditto.
11572 (rs6000_pragma_target_parse): Ditto.
11573 * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
11575 * config/i386/i386.h:
11576 TARGET_64BIT_P: New Macro
11577 TARGET_MMX_P: New Macro.
11578 TARGET_3DNOW_P: New Macro.
11579 TARGET_3DNOW_A_P: New Macro.
11580 TARGET_SSE_P: New Macro.
11581 TARGET_SSE2_P: New Macro.
11582 TARGET_SSE3_P: New Macro.
11583 TARGET_SSSE3_P: New Macro.
11584 TARGET_SSE4_1_P: New Macro.
11585 TARGET_SSE4_2_P: New Macro.
11586 TARGET_AVX_P: New Macro.
11587 TARGET_AVX2_P: New Macro.
11588 TARGET_AVX512F_P: New Macro.
11589 TARGET_AVX512PF_P: New Macro.
11590 TARGET_AVX512ER_P: New Macro.
11591 TARGET_AVX512CD_P: New Macro.
11592 TARGET_FMA_P: New Macro.
11593 TARGET_SSE4A_P: New Macro.
11594 TARGET_FMA4_P: New Macro.
11595 TARGET_XOP_P: New Macro.
11596 TARGET_LWP_P: New Macro.
11597 TARGET_ABM_P: New Macro.
11598 TARGET_BMI_P: New Macro.
11599 TARGET_BMI2_P: New Macro.
11600 TARGET_LZCNT_P: New Macro.
11601 TARGET_TBM_P: New Macro.
11602 TARGET_POPCNT_P: New Macro.
11603 TARGET_SAHF_P: New Macro.
11604 TARGET_MOVBE_P: New Macro.
11605 TARGET_CRC32_P: New Macro.
11606 TARGET_AES_P: New Macro.
11607 TARGET_PCLMUL_P: New Macro.
11608 TARGET_CMPXCHG16B_P: New Macro.
11609 TARGET_FSGSBASE_P: New Macro.
11610 TARGET_RDRND_P: New Macro.
11611 TARGET_F16C_P: New Macro.
11612 TARGET_RTM_P: New Macro.
11613 TARGET_HLE_P: New Macro.
11614 TARGET_RDSEED_P: New Macro.
11615 TARGET_PRFCHW_P: New Macro.
11616 TARGET_ADX_P: New Macro.
11617 TARGET_FXSR_P: New Macro.
11618 TARGET_XSAVE_P: New Macro.
11619 TARGET_XSAVEOPT_P: New Macro.
11620 TARGET_LP64_P: New Macro.
11621 TARGET_X32_P: New Macro.
11622 TARGET_FPMATH_DEFAULT_P: New Macro.
11623 TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
11624 * config/i386/i386.c (ix86_option_override_internal): New parameters.
11626 Change ix86_tune_string to access opts->x_ix86_tune_string.
11627 Change ix86_isa_flags to access opts->x_ix86_isa_flags.
11628 Change ix86_arch_string to access opts->x_ix86_arch_string.
11629 Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
11630 Change ix86_pmode to access opts->x_ix86_pmode.
11631 Change ix86_abi to access opts->x_ix86_abi.
11632 Change ix86_cmodel to access opts->x_ix86_cmodel.
11633 Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
11634 Change ix86_isa_flags_explicit to access
11635 opts->x_ix86_isa_flags_explicit.
11636 Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
11637 Change ix86_regparm to access opts->x_ix86_regparm.
11638 Change ix86_branch_cost to access opts->x_ix86_branch_cost.
11639 Change ix86_preferred_stack_boundary_arg to access
11640 opts->x_ix86_preferred_stack_boundary_arg.
11641 Change ix86_force_align_arg_pointer to access
11642 opts->x_ix86_force_align_arg_pointer.
11643 Change ix86_incoming_stack_boundar_arg to access
11644 opts->x_ix86_incoming_stack_boundar_arg.
11645 Change ix86_fpmath to access opts->x_ix86_fpmath.
11646 Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
11647 Change ix86_recip_name to access opts->x_ix86_recip_name.
11648 Change ix86_stack_protector_guard to access
11649 opts->x_ix86_stack_protector_guard.
11650 Change ix86_tune_memcpy_strategy to access
11651 opts->x_ix86_tune_memcpy_strategy.
11652 Change ix86_tune_memset_strategy to access
11653 opts->x_ix86_tune_memset_strategy.
11654 Change global_options to access opts.
11655 Change global_options_set to access opts_set.
11656 Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
11657 Change TARGET_MMX to TARGET_MMX_P (opts->...).
11658 Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
11659 Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
11660 Change TARGET_SSE to TARGET_SSE_P (opts->...).
11661 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
11662 Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
11663 Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
11664 Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
11665 Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
11666 Change TARGET_AVX to TARGET_AVX_P (opts->...).
11667 Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
11668 Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
11669 Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
11670 Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
11671 Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
11672 Change TARGET_FMA to TARGET_FMA_P (opts->...).
11673 Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
11674 Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
11675 Change TARGET_XOP to TARGET_XOP_P (opts->...).
11676 Change TARGET_LWP to TARGET_LWP_P (opts->...).
11677 Change TARGET_ABM to TARGET_ABM_P (opts->...).
11678 Change TARGET_BMI to TARGET_BMI_P (opts->...).
11679 Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
11680 Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
11681 Change TARGET_TBM to TARGET_TBM_P (opts->...).
11682 Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
11683 Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
11684 Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
11685 Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
11686 Change TARGET_AES to TARGET_AES_P (opts->...).
11687 Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
11688 Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
11689 Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
11690 Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
11691 Change TARGET_F16C to TARGET_F16C_P (opts->...).
11692 Change TARGET_RTM to TARGET_RTM_P (opts->...).
11693 Change TARGET_HLE to TARGET_HLE_P (opts->...).
11694 Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
11695 Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
11696 Change TARGET_ADX to TARGET_ADX_P (opts->...).
11697 Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
11698 Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
11699 Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
11700 Change TARGET_LP64 to TARGET_LP64_P (opts->...).
11701 Change TARGET_X32 to TARGET_X32_P (opts->...).
11702 Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
11703 Change TARGET_FLOAT_RETURNS_IN_80387 to
11704 TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
11705 (ix86_function_specific_save): New parameter. Use opts-> fields
11706 to replace global fields.
11707 (ix86_function_specific_restore): Ditto.
11708 (ix86_valid_target_attribute_inner_p): New parameters.
11709 Fix recursive call.
11710 Fix call to ix86_handle_option and set_option.
11711 (ix86_valid_target_attribute_tree): New parameters.
11712 Change global_options to access opts.
11713 Change global_options_set to access opts_set.
11714 Fix call to ix86_valid_target_attribute_inner_p.
11715 Change ix86_tune_string to access opts->x_ix86_tune_string.
11716 Change ix86_arch_string to access opts->x_ix86_arch_string.
11717 Change ix86_fpmath to access opts->x_ix86_fpmath
11718 Fix call to ix86_option_override_internal.
11719 Fix call to ix86_add_new_builtins.
11720 Fix calls to build_optimization_node and build_target_option_node.
11721 (ix86_valid_target_attribute_p): Remove access to global_options.
11722 Use new gcc_options structure func_options.
11723 Fix call to ix86_valid_target_attribute_tree.
11724 Fix call to build_optimization_node.
11725 (get_builtin_code_for_version): Fix call to
11726 ix86_valid_target_attribute_tree.
11728 2013-10-15 David Malcolm <dmalcolm@redhat.com>
11730 * Makefile.in (PICFLAG): New.
11731 (enable_host_shared): New.
11732 (INTERNAL_CFLAGS): Use PICFLAG.
11733 (LIBIBERTY): Use pic build of libiberty.a if configured with
11734 --enable-host-shared.
11735 * configure.ac: Add --enable-host-shared, setting up new
11737 * configure: Regenerate.
11738 * doc/install.texi (--enable-shared): Add note contrasting it with ...
11739 (--enable-host-shared): New option.
11741 2013-10-15 Richard Biener <rguenther@suse.de>
11743 * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
11744 for built-in functions.
11746 2013-10-15 Zhenqiang Chen <zhenqiang.chen@arm.com>
11748 * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
11749 (optimize_range_tests_1): New function,
11750 extracted from optimize_range_tests.
11751 (optimize_range_tests_xor): Similarly.
11752 (optimize_range_tests_diff): New function.
11753 (optimize_range_tests): Use optimize_range_tests_1.
11755 2013-10-15 Cong Hou <congh@google.com>
11757 * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
11758 requirement of the reduction pattern so that one operand of the
11759 reduction operation can come from outside of the loop.
11761 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
11763 * config/arm/neon-schedgen.ml: Remove.
11764 * config/arm/cortex-a9-neon.md: Remove comment regarding
11767 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
11769 * config/arm/types: Remove old neon types.
11771 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
11773 * config/arm/cortex-a7.md
11774 (cortex_a7_neon_type): New.
11775 (cortex_a7_neon_mul): Update for new types.
11776 (cortex_a7_neon_mla): Likewise.
11777 (cortex_a7_neon): Likewise.
11779 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
11781 * config/arm/cortex-a15-neon.md
11782 (cortex_a15_neon_type): New,
11784 (cortex_a15_neon_int_1): Remove.
11785 (cortex_a15_neon_int_2): Likewise.
11786 (cortex_a15_neon_int_3): Likewise.
11787 (cortex_a15_neon_int_4): Likewise.
11788 (cortex_a15_neon_int_5): Likewise.
11789 (cortex_a15_neon_vqneg_vqabs): Likewise.
11790 (cortex_a15_neon_vmov): Likewise.
11791 (cortex_a15_neon_vaba): Likewise.
11792 (cortex_a15_neon_vaba_qqq): Likewise.
11793 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
11794 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
11795 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
11797 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
11798 (cortex_a15_neon_mla_qqq_8_16): Likewise.
11799 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
11800 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
11801 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
11802 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
11803 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
11804 (cortex_a15_neon_shift_1): Likewise.
11805 (cortex_a15_neon_shift_2): Likewise.
11806 (cortex_a15_neon_shift_3): Likewise.
11807 (cortex_a15_neon_vshl_ddd): Likewise.
11808 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
11809 (cortex_a15_neon_vsra_vrsra): Likewise.
11810 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
11811 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
11812 (cortex_a15_neon_bp_3cycle): Likewise.
11813 (cortex_a15_neon_ldm_2): Likewise.
11814 (cortex_a15_neon_stm_2): Likewise.
11815 (cortex_a15_neon_mcr): Likewise.
11816 (cortex_a15_neon_mrc): Likewise.
11817 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
11818 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
11819 (cortex_a15_neon_fp_vmul_ddd): Likewise.
11820 (cortex_a15_neon_fp_vmul_qqd): Likewise.
11821 (cortex_a15_neon_fp_vmla_ddd): Likewise.
11822 (cortex_a15_neon_fp_vmla_qqq): Likewise.
11823 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
11824 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
11825 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
11826 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
11827 (cortex_a15_neon_bp_simple): Likewise.
11828 (cortex_a15_neon_bp_2cycle): Likewise.
11829 (cortex_a15_neon_bp_3cycle): Likewise.
11830 (cortex_a15_neon_vld1_1_2_regs): Likewise.
11831 (cortex_a15_neon_vld1_3_4_regs): Likewise.
11832 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
11833 (cortex_a15_neon_vld2_4_regs): Likewise.
11834 (cortex_a15_neon_vld3_vld4): Likewise.
11835 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
11836 (cortex_a15_neon_vst1_3_4_regs): Likewise.
11837 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
11838 (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
11839 (cortex_a15_neon_vst3_vst4): Rename to...
11840 (cortex_a15_neon_vst4): This, update for new attributes.
11841 (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
11842 (cortex_a15_neon_vld3_vld4_lane): Likewise.
11843 (cortex_a15_neon_vst1_vst2_lane): Likewise.
11844 (cortex_a15_neon_vst3_vst4_lane): Likewise.
11845 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
11846 (cortex_a15_neon_ldm_2): Likewise.
11847 (cortex_a15_neon_stm_2): Likewise.
11848 (cortex_a15_neon_mcr): Likewise.
11849 (cortex_a15_neon_mcr_2_mcrr): Likewise.
11850 (cortex_a15_neon_mrc): Likewise.
11851 (cortex_a15_neon_mrrc): Likewise.
11853 (cortex_a15_neon_abd): New.
11854 (cortex_a15_neon_abd_q): Likewise.
11855 (cortex_a15_neon_aba): Likewise.
11856 (cortex_a15_neon_aba_q): Likewise.
11857 (cortex_a15_neon_acc): Likewise.
11858 (cortex_a15_neon_acc_q): Likewise.
11859 (cortex_a15_neon_arith_basic): Likewise.
11860 (cortex_a15_neon_arith_complex): Likewise.
11861 (cortex_a15_neon_multiply): Likewise.
11862 (cortex_a15_neon_multiply_q): Likewise.
11863 (cortex_a15_neon_mla): Likewise.
11864 (cortex_a15_neon_mla_q): Likewise.
11865 (cortex_a15_neon_sat_mla_long): Likewise.
11866 (cortex_a15_neon_shift_acc): Likewise.
11867 (cortex_a15_neon_shift_imm_basic): Likewise.
11868 (cortex_a15_neon_shift_imm_complex): Likewise.
11869 (cortex_a15_neon_shift_reg_basic): Likewise.
11870 (cortex_a15_neon_shift_reg_basic_q): Likewise.
11871 (cortex_a15_neon_shift_reg_complex): Likewise.
11872 (cortex_a15_neon_shift_reg_complex_q): Likewise.
11873 (cortex_a15_neon_fp_negabs): Likewise
11874 (cortex_a15_neon_fp_arith): Likewise
11875 (cortex_a15_neon_fp_arith_q): Likewise
11876 (cortex_a15_neon_fp_cvt_int): Likewise
11877 (cortex_a15_neon_fp_cvt_int_q): Likewise
11878 (cortex_a15_neon_fp_cvt_16): Likewise
11879 (cortex_a15_neon_fp_mul): Likewise
11880 (cortex_a15_neon_fp_mul_q): Likewise
11881 (cortex_a15_neon_fp_mla): Likewise
11882 (cortex_a15_neon_fp_mla_q): Likewise
11883 (cortex_a15_neon_fp_recps_rsqrte): Likewise.
11884 (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
11885 (cortex_a15_neon_bitops): Likewise.
11886 (cortex_a15_neon_bitops_q): Likewise.
11887 (cortex_a15_neon_from_gp): Likewise.
11888 (cortex_a15_neon_from_gp_q): Likewise.
11889 (cortex_a15_neon_tbl3_tbl4): Likewise.
11890 (cortex_a15_neon_zip_q): Likewise.
11891 (cortex_a15_neon_to_gp): Likewise.
11892 (cortex_a15_neon_load_a): Likewise.
11893 (cortex_a15_neon_load_b): Likewise.
11894 (cortex_a15_neon_load_c): Likewise.
11895 (cortex_a15_neon_load_d): Likewise.
11896 (cortex_a15_neon_load_e): Likewise.
11897 (cortex_a15_neon_load_f): Likewise.
11898 (cortex_a15_neon_store_a): Likewise.
11899 (cortex_a15_neon_store_b): Likewise.
11900 (cortex_a15_neon_store_c): Likewise.
11901 (cortex_a15_neon_store_d): Likewise.
11902 (cortex_a15_neon_store_e): Likewise.
11903 (cortex_a15_neon_store_f): Likewise.
11904 (cortex_a15_neon_store_g): Likewise.
11905 (cortex_a15_neon_store_h): Likewise.
11906 (cortex_a15_vfp_to_from_gp): Likewise.
11908 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
11910 * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
11912 (cortex_a9_neon_vshl_ddd): Remove.
11913 (cortex_a9_neon_vst3_vst4): Likewise.
11914 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
11916 (cortex_a9_neon_bit_ops_q): New.
11918 (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
11919 (cortex_a9_neon_int_2): Likewise.
11920 (cortex_a9_neon_int_3): Likewise.
11921 (cortex_a9_neon_int_4): Likewise.
11922 (cortex_a9_neon_int_5): Likewise.
11923 (cortex_a9_neon_vqneg_vqabs): Likewise.
11924 (cortex_a9_neon_vmov): Likewise.
11925 (cortex_a9_neon_vaba): Likewise.
11926 (cortex_a9_neon_vaba_qqq): Likewise.
11927 (cortex_a9_neon_shift_1): Likewise.
11928 (cortex_a9_neon_shift_2): Likewise.
11929 (cortex_a9_neon_shift_3): Likewise.
11930 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
11931 (cortex_a9_neon_vsra_vrsra): Likewise.
11932 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
11933 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
11934 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
11936 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
11937 (cortex_a9_neon_mla_qqq_8_16): Likewise.
11938 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
11940 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
11941 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
11942 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
11943 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
11944 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
11945 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
11946 (cortex_a9_neon_fp_vsum): Likewise.
11947 (cortex_a9_neon_fp_vmul_ddd): Likewise.
11948 (cortex_a9_neon_fp_vmul_qqd): Likewise.
11949 (cortex_a9_neon_fp_vmla_ddd): Likewise.
11950 (cortex_a9_neon_fp_vmla_qqq): Likewise.
11951 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
11952 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
11953 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
11954 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
11955 (cortex_a9_neon_bp_simple): Likewise.
11956 (cortex_a9_neon_bp_2cycle): Likewise.
11957 (cortex_a9_neon_bp_3cycle): Likewise.
11958 (cortex_a9_neon_ldr): Likewise.
11959 (cortex_a9_neon_str): Likewise.
11960 (cortex_a9_neon_vld1_1_2_regs): Likewise.
11961 (cortex_a9_neon_vld1_3_4_regs): Likewise.
11962 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
11963 (cortex_a9_neon_vld2_4_regs): Likewise.
11964 (cortex_a9_neon_vld3_vld4): Likewise.
11965 (cortex_a9_neon_vld1_vld2_lane): Likewise.
11966 (cortex_a9_neon_vld3_vld4_lane): Likewise.
11967 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
11968 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
11969 (cortex_a9_neon_vst1_3_4_regs): Likewise.
11970 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
11971 (cortex_a9_neon_vst1_vst2_lane): Likewise.
11972 (cortex_a9_neon_vst3_vst4_lane): Likewise.
11973 (cortex_a9_neon_mcr): Likewise.
11974 (cortex_a9_neon_mcr_2_mcrr): Likewise.
11975 (cortex_a9_neon_mrc): Likewise.
11976 (cortex_a9_neon_mrrc): Likewise.
11978 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
11980 * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
11982 (cortex_a8_neon_vshl_ddd): Remove.
11983 (cortex_a8_neon_vst3_vst4): Likewise.
11984 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
11986 (cortex_a8_neon_bit_ops_q): New.
11988 (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
11989 (cortex_a8_neon_int_2): Likewise..
11990 (cortex_a8_neon_int_3): Likewise.
11991 (cortex_a8_neon_int_5): Likewise.
11992 (cortex_a8_neon_vqneg_vqabs): Likewise.
11993 (cortex_a8_neon_int_4): Likewise.
11994 (cortex_a8_neon_vaba): Likewise.
11995 (cortex_a8_neon_vaba_qqq): Likewise.
11996 (cortex_a8_neon_shift_1): Likewise.
11997 (cortex_a8_neon_shift_2): Likewise.
11998 (cortex_a8_neon_shift_3): Likewise.
11999 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
12000 (cortex_a8_neon_vsra_vrsra): Likewise.
12001 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12002 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
12003 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
12005 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12006 (cortex_a8_neon_mla_qqq_8_16): Likewise.
12007 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
12009 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
12010 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
12011 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
12012 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
12013 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
12014 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
12015 (cortex_a8_neon_fp_vsum): Likewise.
12016 (cortex_a8_neon_fp_vmul_ddd): Likewise.
12017 (cortex_a8_neon_fp_vmul_qqd): Likewise.
12018 (cortex_a8_neon_fp_vmla_ddd): Likewise.
12019 (cortex_a8_neon_fp_vmla_qqq): Likewise.
12020 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
12021 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
12022 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
12023 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
12024 (cortex_a8_neon_bp_simple): Likewise.
12025 (cortex_a8_neon_bp_2cycle): Likewise.
12026 (cortex_a8_neon_bp_3cycle): Likewise.
12027 (cortex_a8_neon_ldr): Likewise.
12028 (cortex_a8_neon_str): Likewise.
12029 (cortex_a8_neon_vld1_1_2_regs): Likewise.
12030 (cortex_a8_neon_vld1_3_4_regs): Likewise.
12031 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
12032 (cortex_a8_neon_vld2_4_regs): Likewise.
12033 (cortex_a8_neon_vld3_vld4): Likewise.
12034 (cortex_a8_neon_vld1_vld2_lane): Likewise.
12035 (cortex_a8_neon_vld3_vld4_lane): Likewise.
12036 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
12037 (cortex_a8_neon_vst1_3_4_regs): Likewise.
12038 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
12039 (cortex_a8_neon_vst1_vst2_lane): Likewise.
12040 (cortex_a8_neon_vst3_vst4_lane): Likewise.
12041 (cortex_a8_neon_mcr): Likewise.
12042 (cortex_a8_neon_mcr_2_mcrr): Likewise.
12043 (cortex_a8_neon_mrc): Likewise.
12044 (cortex_a8_neon_mrrc): Likewise.
12046 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12048 * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
12050 * config/aarch64/aarch64-simd.md (neon_type): Remove.
12051 (aarch64_simd_dup<mode>): Add "type" attribute.
12052 (aarch64_dup_lane<mode>): Likewise.
12053 (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
12054 (*aarch64_simd_mov<mode>): Likewise.
12055 (aarch64_simd_mov_from_<mode>low): Likewise.
12056 (aarch64_simd_mov_from_<mode>high): Likewise.
12057 (orn<mode>3): Likewise.
12058 (bic<mode>3): Likewise.
12059 (add<mode>3): Likewise.
12060 (sub<mode>3): Likewise.
12061 (mul<mode>3): Likewise.
12062 (*aarch64_mul3_elt<mode>): Likewise.
12063 (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
12064 (*aarch64_mul3_elt_to_128df): Likewise.
12065 (*aarch64_mul3_elt_to_64v2df): Likewise.
12066 (neg<mode>2): Likewise.
12067 (abs<mode>2): Likewise.
12068 (abd<mode>_3): Likewise.
12069 (aba<mode>_3): Likewise.
12070 (fabd<mode>_3): Likewise.
12071 (*fabd_scalar<mode>3): Likewise.
12072 (and<mode>3): Likewise.
12073 (ior<mode>3): Likewise.
12074 (xor<mode>3): Likewise.
12075 (one_cmpl<mode>2): Likewise.
12076 (aarch64_simd_vec_set<mode>): Likewise.
12077 (aarch64_simd_lshr<mode>): Likewise.
12078 (aarch64_simd_ashr<mode>): Likewise.
12079 (aarch64_simd_imm_shl<mode>): Likewise.
12080 (aarch64_simd_reg_sshl<mode): Likewise.
12081 (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
12082 (aarch64_simd_reg_shl<mode>_signed): Likewise.
12083 (aarch64_simd_vec_setv2di): Likewise.
12084 (aarch64_simd_vec_set<mode>): Likewise.
12085 (aarch64_mla<mode>): Likewise.
12086 (*aarch64_mla_elt<mode>): Likewise.
12087 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
12088 (aarch64_mls<mode>): Likewise.
12089 (*aarch64_mls_elt<mode>): Likewise.
12090 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
12091 (<su><maxmin><mode>3): Likewise.
12092 (move_lo_quad_<mode>): Likewise.
12093 (aarch64_simd_move_hi_quad_<mode>): Likewise.
12094 (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
12095 (vec_pack_trunc_<mode>): Likewise.
12096 (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
12097 (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
12098 (*aarch64_<su>mlal_lo<mode>): Likewise.
12099 (*aarch64_<su>mlal_hi<mode>): Likewise.
12100 (*aarch64_<su>mlsl_lo<mode>): Likewise.
12101 (*aarch64_<su>mlsl_hi<mode>): Likewise.
12102 (*aarch64_<su>mlal<mode>): Likewise.
12103 (*aarch64_<su>mlsl<mode>): Likewise.
12104 (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
12105 (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
12106 (add<mode>3): Likewise.
12107 (sub<mode>3): Likewise.
12108 (mul<mode>3): Likewise.
12109 (div<mode>3): Likewise.
12110 (neg<mode>2): Likewise.
12111 (abs<mode>2): Likewise.
12112 (fma<mode>4): Likewise.
12113 (*aarch64_fma4_elt<mode>): Likewise.
12114 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
12115 (*aarch64_fma4_elt_to_128df): Likewise.
12116 (*aarch64_fma4_elt_to_64v2df): Likewise.
12117 (fnma<mode>4): Likewise.
12118 (*aarch64_fnma4_elt<mode>): Likewise.
12119 (*aarch64_fnma4_elt_<vswap_width_name><mode>
12120 (*aarch64_fnma4_elt_to_128df): Likewise.
12121 (*aarch64_fnma4_elt_to_64v2df): Likewise.
12122 (<frint_pattern><mode>2): Likewise.
12123 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
12124 (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
12125 (vec_unpacks_lo_v4sf): Likewise.
12126 (aarch64_float_extend_lo_v2df): Likewise.
12127 (vec_unpacks_hi_v4sf): Likewise.
12128 (aarch64_float_truncate_lo_v2sf): Likewise.
12129 (aarch64_float_truncate_hi_v4sf): Likewise.
12130 (aarch64_vmls<mode>): Likewise.
12131 (<su><maxmin><mode>3): Likewise.
12132 (<maxmin_uns><mode>3): Likewise.
12133 (reduc_<sur>plus_<mode>): Likewise.
12134 (reduc_<sur>plus_v2di): Likewise.
12135 (reduc_<sur>plus_v2si): Likewise.
12136 (reduc_<sur>plus_<mode>): Likewise.
12137 (aarch64_addpv4sf): Likewise.
12138 (clz<mode>2): Likewise.
12139 (reduc_<maxmin_uns>_<mode>): Likewise.
12140 (reduc_<maxmin_uns>_v2di): Likewise.
12141 (reduc_<maxmin_uns>_v2si): Likewise.
12142 (reduc_<maxmin_uns>_<mode>): Likewise.
12143 (reduc_<maxmin_uns>_v4sf): Likewise.
12144 (aarch64_simd_bsl<mode>_internal): Likewise.
12145 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
12146 (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
12147 (aarch64_get_lane<mode>): Likewise.
12148 (*aarch64_combinez<mode>): Likewise.
12149 (aarch64_combine<mode>): Likewise.
12150 (aarch64_simd_combine<mode>): Likewise.
12151 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
12152 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
12153 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
12154 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
12155 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
12156 (aarch64_<sur>h<addsub><mode>): Likewise.
12157 (aarch64_<sur><addsub>hn<mode>): Likewise.
12158 (aarch64_<sur><addsub>hn2<mode>): Likewise.
12159 (aarch64_pmul<mode>): Likewise.
12160 (aarch64_<su_optab><optab><mode>): Likewise.
12161 (aarch64_<sur>qadd<mode>): Likewise.
12162 (aarch64_sqmovun<mode>): Likewise.
12163 (aarch64_<sur>qmovn<mode>): Likewise.
12164 (aarch64_s<optab><mode>): Likewise.
12165 (aarch64_sq<r>dmulh<mode>): Likewise.
12166 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
12167 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
12168 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
12169 (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
12170 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
12171 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
12172 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
12173 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
12174 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
12175 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
12176 (aarch64_sqdmull<mode>): Likewise.
12177 (aarch64_sqdmull_lane<mode>_internal): Likewise.
12178 (aarch64_sqdmull_n<mode>): Likewise.
12179 (aarch64_sqdmull2<mode>_internal): Likewise.
12180 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
12181 (aarch64_sqdmull2_n<mode>_internal): Likewise.
12182 (aarch64_<sur>shl<mode>): Likewise.
12183 (aarch64_<sur>q<r>shl<mode>
12184 (aarch64_<sur>shll_n<mode>): Likewise.
12185 (aarch64_<sur>shll2_n<mode>): Likewise.
12186 (aarch64_<sur>shr_n<mode>): Likewise.
12187 (aarch64_<sur>sra_n<mode>): Likewise.
12188 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
12189 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
12190 (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
12191 (aarch64_cm<optab><mode>): Likewise.
12192 (aarch64_cm<optab>di): Likewise.
12193 (aarch64_cm<optab><mode>): Likewise.
12194 (aarch64_cm<optab>di): Likewise.
12195 (aarch64_cmtst<mode>): Likewise.
12196 (aarch64_cmtstdi): Likewise.
12197 (aarch64_cm<optab><mode>): Likewise.
12198 (*aarch64_fac<optab><mode>): Likewise.
12199 (aarch64_addp<mode>): Likewise.
12200 (aarch64_addpdi): Likewise.
12201 (sqrt<mode>2): Likewise.
12202 (vec_load_lanesoi<mode>): Likewise.
12203 (vec_store_lanesoi<mode>): Likewise.
12204 (vec_load_lanesci<mode>): Likewise.
12205 (vec_store_lanesci<mode>): Likewise.
12206 (vec_load_lanesxi<mode>): Likewise.
12207 (vec_store_lanesxi<mode>): Likewise.
12208 (*aarch64_mov<mode>): Likewise.
12209 (aarch64_ld2<mode>_dreg): Likewise.
12210 (aarch64_ld2<mode>_dreg): Likewise.
12211 (aarch64_ld3<mode>_dreg): Likewise.
12212 (aarch64_ld3<mode>_dreg): Likewise.
12213 (aarch64_ld4<mode>_dreg): Likewise.
12214 (aarch64_ld4<mode>_dreg): Likewise.
12215 (aarch64_tbl1<mode>): Likewise.
12216 (aarch64_tbl2v16qi): Likewise.
12217 (aarch64_combinev16qi): Likewise.
12218 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
12219 (aarch64_st2<mode>_dreg): Likewise.
12220 (aarch64_st2<mode>_dreg): Likewise.
12221 (aarch64_st3<mode>_dreg): Likewise.
12222 (aarch64_st3<mode>_dreg): Likewise.
12223 (aarch64_st4<mode>_dreg): Likewise.
12224 (aarch64_st4<mode>_dreg): Likewise.
12225 (*aarch64_simd_ld1r<mode>): Likewise.
12226 (aarch64_frecpe<mode>): Likewise.
12227 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
12228 (aarch64_frecps<mode>): Likewise.
12230 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12232 * config/arm/iterators.md (V_elem_ch): New.
12234 (VQH_type): Likewise.
12235 * config/arm/arm.md (is_neon_type): New.
12236 (conds): Use is_neon_type.
12237 (anddi3_insn): Update type attribute.
12238 (xordi3_insn): Likewise.
12239 (one_cmpldi2): Likewise.
12240 * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
12241 * config/arm/neon.md (neon_mov): Update type attribute.
12242 (*movmisalign<mode>_neon_store): Likewise.
12243 (*movmisalign<mode>_neon_load): Likewise.
12244 (vec_set<mode>_internal): Likewise.
12245 (vec_set<mode>_internal): Likewise.
12246 (vec_setv2di_internal): Likewise.
12247 (vec_extract<mode>): Likewise.
12248 (vec_extract<mode>): Likewise.
12249 (vec_extractv2di): Likewise.
12250 (*add<mode>3_neon): Likewise.
12251 (adddi3_neon): Likewise.
12252 (*sub<mode>3_neon): Likewise.
12253 (subdi3_neon): Likewise.
12254 (fma<VCVTF:mode>4): Likewise.
12255 (fma<VCVTF:mode>4_intrinsic): Likewise.
12256 (*fmsub<VCVTF:mode>4): Likewise.
12257 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
12258 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
12259 (ior<mode>3): Likewise.
12260 (and<mode>3): Likewise.
12261 (orn<mode>3_neon): Likewise.
12262 (orndi3_neon): Likewise.
12263 (bic<mode>3_neon): Likewise.
12264 (bicdi3_neon): Likewise.
12265 (xor<mode>3): Likewise.
12266 (one_cmpl<mode>2): Likewise.
12267 (abs<mode>2): Likewise.
12268 (neg<mode>2): Likewise.
12269 (negdi2_neon): Likewise.
12270 (*umin<mode>3_neon): Likewise.
12271 (*umax<mode>3_neon): Likewise.
12272 (*smin<mode>3_neon): Likewise.
12273 (*smax<mode>3_neon): Likewise.
12274 (vashl<mode>3): Likewise.
12275 (vashr<mode>3_imm): Likewise.
12276 (vlshr<mode>3_imm): Likewise.
12277 (ashl<mode>3_signed): Likewise.
12278 (ashl<mode>3_unsigned): Likewise.
12279 (neon_load_count): Likewise.
12280 (ashldi3_neon_noclobber): Likewise.
12281 (ashldi3_neon): Likewise.
12282 (signed_shift_di3_neon): Likewise.
12283 (unsigned_shift_di3_neon): Likewise.
12284 (ashrdi3_neon_imm_noclobber): Likewise.
12285 (lshrdi3_neon_imm_noclobber): Likewise.
12286 (<shift>di3_neon): Likewise.
12287 (widen_ssum<mode>3): Likewise.
12288 (widen_usum<mode>3): Likewise.
12289 (quad_halves_<code>v4si): Likewise.
12290 (quad_halves_<code>v4sf): Likewise.
12291 (quad_halves_<code>v8hi): Likewise.
12292 (quad_halves_<code>v16qi): Likewise.
12293 (reduc_splus_v2di): Likewise.
12294 (neon_vpadd_internal<mode>): Likewise.
12295 (neon_vpsmin<mode>): Likewise.
12296 (neon_vpsmax<mode>): Likewise.
12297 (neon_vpumin<mode>): Likewise.
12298 (neon_vpumax<mode>): Likewise.
12299 (*ss_add<mode>_neon): Likewise.
12300 (*us_add<mode>_neon): Likewise.
12301 (*ss_sub<mode>_neon): Likewise.
12302 (*us_sub<mode>_neon): Likewise.
12303 (neon_vadd<mode>_unspec): Likewise.
12304 (neon_vaddl<mode>): Likewise.
12305 (neon_vaddw<mode>): Likewise.
12306 (neon_vhadd<mode>): Likewise.
12307 (neon_vqadd<mode>): Likewise.
12308 (neon_vaddhn<mode>): Likewise.
12309 (neon_vmul<mode>): Likewise.
12310 (neon_vfms<VCVTF:mode>): Likewise.
12311 (neon_vmlal<mode>): Likewise.
12312 (neon_vmls<mode>): Likewise.
12313 (neon_vmlsl<mode>): Likewise.
12314 (neon_vqdmulh<mode>): Likewise.
12315 (neon_vqdmlal<mode>): Likewise.
12316 (neon_vqdmlsl<mode>): Likewise.
12317 (neon_vmull<mode>): Likewise.
12318 (neon_vqdmull<mode>): Likewise.
12319 (neon_vsub<mode>_unspec): Likewise.
12320 (neon_vsubl<mode>): Likewise.
12321 (neon_vsubw<mode>): Likewise.
12322 (neon_vqsub<mode>): Likewise.
12323 (neon_vhsub<mode>): Likewise.
12324 (neon_vsubhn<mode>): Likewise.
12325 (neon_vceq<mode>): Likewise.
12326 (neon_vcge<mode>): Likewise.
12327 (neon_vcgeu<mode>): Likewise.
12328 (neon_vcgt<mode>): Likewise.
12329 (neon_vcgtu<mode>): Likewise.
12330 (neon_vcle<mode>): Likewise.
12331 (neon_vclt<mode>): Likewise.
12332 (neon_vcage<mode>): Likewise.
12333 (neon_vcagt<mode>): Likewise.
12334 (neon_vtst<mode>): Likewise.
12335 (neon_vabd<mode>): Likewise.
12336 (neon_vabdl<mode>): Likewise.
12337 (neon_vaba<mode>): Likewise.
12338 (neon_vabal<mode>): Likewise.
12339 (neon_vmax<mode>): Likewise.
12340 (neon_vmin<mode>): Likewise.
12341 (neon_vpaddl<mode>): Likewise.
12342 (neon_vpadal<mode>): Likewise.
12343 (neon_vpmax<mode>): Likewise.
12344 (neon_vpmin<mode>): Likewise.
12345 (neon_vrecps<mode>): Likewise.
12346 (neon_vrsqrts<mode>): Likewise.
12347 (neon_vqabs<mode>): Likewise.
12348 (neon_vqneg<mode>): Likewise.
12349 (neon_vcls<mode>): Likewise.
12350 (clz<mode>2): Likewise.
12351 (popcount<mode>2): Likewise.
12352 (neon_vrecpe<mode>): Likewise.
12353 (neon_vrsqrte<mode>): Likewise.
12354 (neon_vget_lane<mode>_sext_internal): Likewise.
12355 (neon_vget_lane<mode>_zext_internal): Likewise.
12356 (neon_vdup_n<mode>): Likewise.
12357 (neon_vdup_n<mode>): Likewise.
12358 (neon_vdup_nv2di): Likewise.
12359 (neon_vdup_lane<mode>_interal): Likewise.
12360 (*neon_vswp<mode>): Likewise.
12361 (neon_vcombine<mode>): Likewise.
12362 (float<mode><V_cvtto>2): Likewise.
12363 (floatuns<mode><V_cvtto>2): Likewise.
12364 (fix_trunc<mode><V_cvtto>2): Likewise.
12365 (fixuns_trunc<mode><V_cvtto>2
12366 (neon_vcvt<mode>): Likewise.
12367 (neon_vcvt<mode>): Likewise.
12368 (neon_vcvtv4sfv4hf): Likewise.
12369 (neon_vcvtv4hfv4sf): Likewise.
12370 (neon_vcvt_n<mode>): Likewise.
12371 (neon_vcvt_n<mode>): Likewise.
12372 (neon_vmovn<mode>): Likewise.
12373 (neon_vqmovn<mode>): Likewise.
12374 (neon_vqmovun<mode>): Likewise.
12375 (neon_vmovl<mode>): Likewise.
12376 (neon_vmul_lane<mode>): Likewise.
12377 (neon_vmul_lane<mode>): Likewise.
12378 (neon_vmull_lane<mode>): Likewise.
12379 (neon_vqdmull_lane<mode>): Likewise.
12380 (neon_vqdmulh_lane<mode>): Likewise.
12381 (neon_vqdmulh_lane<mode>): Likewise.
12382 (neon_vmla_lane<mode>): Likewise.
12383 (neon_vmla_lane<mode>): Likewise.
12384 (neon_vmlal_lane<mode>): Likewise.
12385 (neon_vqdmlal_lane<mode>): Likewise.
12386 (neon_vmls_lane<mode>): Likewise.
12387 (neon_vmls_lane<mode>): Likewise.
12388 (neon_vmlsl_lane<mode>): Likewise.
12389 (neon_vqdmlsl_lane<mode>): Likewise.
12390 (neon_vext<mode>): Likewise.
12391 (neon_vrev64<mode>): Likewise.
12392 (neon_vrev32<mode>): Likewise.
12393 (neon_vrev16<mode>): Likewise.
12394 (neon_vbsl<mode>_internal): Likewise.
12395 (neon_vshl<mode>): Likewise.
12396 (neon_vqshl<mode>): Likewise.
12397 (neon_vshr_n<mode>): Likewise.
12398 (neon_vshrn_n<mode>): Likewise.
12399 (neon_vqshrn_n<mode>): Likewise.
12400 (neon_vqshrun_n<mode>): Likewise.
12401 (neon_vshl_n<mode>): Likewise.
12402 (neon_vqshl_n<mode>): Likewise.
12403 (neon_vqshlu_n<mode>): Likewise.
12404 (neon_vshll_n<mode>): Likewise.
12405 (neon_vsra_n<mode>): Likewise.
12406 (neon_vsri_n<mode>): Likewise.
12407 (neon_vsli_n<mode>): Likewise.
12408 (neon_vtbl1v8qi): Likewise.
12409 (neon_vtbl2v8qi): Likewise.
12410 (neon_vtbl3v8qi): Likewise.
12411 (neon_vtbl4v8qi): Likewise.
12412 (neon_vtbl1v16qi): Likewise.
12413 (neon_vtbl2v16qi): Likewise.
12414 (neon_vcombinev16qi): Likewise.
12415 (neon_vtbx1v8qi): Likewise.
12416 (neon_vtbx2v8qi): Likewise.
12417 (neon_vtbx3v8qi): Likewise.
12418 (neon_vtbx4v8qi): Likewise.
12419 (*neon_vtrn<mode>_insn): Likewise.
12420 (*neon_vzip<mode>_insn): Likewise.
12421 (*neon_vuzp<mode>_insn): Likewise.
12422 (neon_vld1<mode>): Likewise.
12423 (neon_vld1_lane<mode>): Likewise.
12424 (neon_vld1_lane<mode>): Likewise.
12425 (neon_vld1_dup<mode>): Likewise.
12426 (neon_vld1_dup<mode>): Likewise.
12427 (neon_vld1_dupv2di): Likewise.
12428 (neon_vst1<mode>): Likewise.
12429 (neon_vst1_lane<mode>): Likewise.
12430 (neon_vst1_lane<mode>): Likewise.
12431 (neon_vld2<mode>): Likewise.
12432 (neon_vld2<mode>): Likewise.
12433 (neon_vld2_lane<mode>): Likewise.
12434 (neon_vld2_lane<mode>): Likewise.
12435 (neon_vld2_dup<mode>): Likewise.
12436 (neon_vst2<mode>): Likewise.
12437 (neon_vst2<mode>): Likewise.
12438 (neon_vst2_lane<mode>): Likewise.
12439 (neon_vst2_lane<mode>): Likewise.
12440 (neon_vld3<mode>): Likewise.
12441 (neon_vld3qa<mode>): Likewise.
12442 (neon_vld3qb<mode>): Likewise.
12443 (neon_vld3_lane<mode>): Likewise.
12444 (neon_vld3_lane<mode>): Likewise.
12445 (neon_vld3_dup<mode>): Likewise.
12446 (neon_vst3<mode>): Likewise.
12447 (neon_vst3qa<mode>): Likewise.
12448 (neon_vst3qb<mode>): Likewise.
12449 (neon_vst3_lane<mode>): Likewise.
12450 (neon_vst3_lane<mode>): Likewise.
12451 (neon_vld4<mode>): Likewise.
12452 (neon_vld4qa<mode>): Likewise.
12453 (neon_vld4qb<mode>): Likewise.
12454 (neon_vld4_lane<mode>): Likewise.
12455 (neon_vld4_lane<mode>): Likewise.
12456 (neon_vld4_dup<mode>): Likewise.
12457 (neon_vst4<mode>): Likewise.
12458 (neon_vst4qa<mode>): Likewise.
12459 (neon_vst4qb<mode>): Likewise.
12460 (neon_vst4_lane<mode>): Likewise.
12461 (neon_vst4_lane<mode>): Likewise.
12462 (neon_vec_unpack<US>_lo_<mode>): Likewise.
12463 (neon_vec_unpack<US>_hi_<mode>): Likewise.
12464 (neon_vec_<US>mult_lo_<mode>): Likewise.
12465 (neon_vec_<US>mult_hi_<mode>): Likewise.
12466 (neon_vec_<US>shiftl_<mode>): Likewise.
12467 (neon_unpack<US>_<mode>): Likewise.
12468 (neon_vec_<US>mult_<mode>): Likewise.
12469 (vec_pack_trunc_<mode>): Likewise.
12470 (neon_vec_pack_trunc_<mode>): Likewise.
12471 (neon_vabd<mode>_2): Likewise.
12472 (neon_vabd<mode>_3): Likewise.
12474 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12476 * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
12477 (load_pair): Update type attribute.
12478 (store_pair): Update type attribute.
12479 * config/aarch64/iterators.md (q): New.
12481 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12483 * config/arm/types.md: Add new types for Neon insns.
12485 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
12486 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12487 Sergey Lega <sergey.s.lega@intel.com>
12488 Anna Tikhonova <anna.tikhonova@intel.com>
12489 Ilya Tocar <ilya.tocar@intel.com>
12490 Andrey Turetskiy <andrey.turetskiy@intel.com>
12491 Ilya Verbin <ilya.verbin@intel.com>
12492 Kirill Yukhin <kirill.yukhin@intel.com>
12493 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12495 * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
12496 UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
12497 UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
12498 (rcp14<mode>): New.
12499 (srcp14<mode>): Ditto.
12500 (rsqrt14<mode>): Ditto.
12501 (rsqrt14<mode>): Ditto.
12502 (avx512f_vmscalef<mode>): Ditto.
12503 (avx512f_scalef<mode>): Ditto.
12504 (avx512f_getexp<mode>): Ditto.
12505 (avx512f_sgetexp<mode>): Ditto.
12506 (avx512f_fixupimm<mode>): Ditto.
12507 (avx512f_sfixupimm<mode>): Ditto.
12508 (avx512f_rndscale<mode>): Ditto.
12509 (*avx512er_exp2<mode>): Ditto.
12510 (*avx512er_rcp28<mode>): Ditto.
12511 (avx512er_rsqrt28<mode>): Ditto.
12512 (avx512f_getmant<mode>): Ditto.
12513 (avx512f_getmant<mode>): Ditto.
12514 (avx512f_rndscale<mode>): Fix formatting.
12516 2013-10-15 Martin Jambor <mjambor@suse.cz>
12518 * ipa-utils.h (ipa_edge_within_scc): Declare.
12519 * ipa-cp.c (edge_within_scc): Moved...
12520 * ipa-utils.c (ipa_edge_within_scc): ...here. Updated all callers.
12522 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
12523 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12524 Sergey Lega <sergey.s.lega@intel.com>
12525 Anna Tikhonova <anna.tikhonova@intel.com>
12526 Ilya Tocar <ilya.tocar@intel.com>
12527 Andrey Turetskiy <andrey.turetskiy@intel.com>
12528 Ilya Verbin <ilya.verbin@intel.com>
12529 Kirill Yukhin <kirill.yukhin@intel.com>
12530 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12532 * config/i386/predicates.md (const_8_to_15_operand): New.
12533 (const_16_to_31_operand): Ditto.
12534 * config/i386/sse.md (V8FI): New.
12536 (reduc_splus_v8df): Ditto.
12537 (reduc_splus_v16sf): Ditto.
12538 (avx512f_vextract<shuffletype>32x4_1): Ditto.
12539 (vec_extract_hi_<mode>): Ditto.
12540 (avx512f_vinsert<shuffletype>32x4_1): Ditto.
12541 (vec_set_lo_<mode>): Ditto.
12542 (vec_set_hi_<mode>): Ditto.
12543 (avx512f_shuf_<shuffletype>64x2_1): Ditto.
12544 (avx512f_shuf_<shuffletype>32x4_1): Ditto.
12545 (avx512f_pshufd_1): Ditto.
12546 (avx512f_broadcast<mode>): Ditto.
12547 (avx512f_broadcast<mode>): Ditto.
12548 (define_split): Split vec_extract_lo into move.
12549 (ssequartermode): Ditto.
12550 (ssedoublemode): Extened with wider modes.
12551 (vec_extract_lo_<mode>): Ditto.
12553 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
12554 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12555 Sergey Lega <sergey.s.lega@intel.com>
12556 Anna Tikhonova <anna.tikhonova@intel.com>
12557 Ilya Tocar <ilya.tocar@intel.com>
12558 Andrey Turetskiy <andrey.turetskiy@intel.com>
12559 Ilya Verbin <ilya.verbin@intel.com>
12560 Kirill Yukhin <kirill.yukhin@intel.com>
12561 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12563 * config/i386/predicates.md (register_or_constm1_operand): New.
12564 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
12565 UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
12566 UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
12567 UNSPEC_SCATTER_PREFETCH
12569 (avx512f_ucmp<mode>3): Ditto.
12570 (avx512f_vternlog<mode>): Ditto.
12571 (avx512f_align<mode>): Ditto.
12572 (<shift_insn><mode>3): Ditto.
12573 (avx512f_<rotate>v<mode>): Ditto.
12574 (avx512f_<rotate><mode>): Ditto.
12575 (avx512f_eq<mode>3): Ditto.
12576 (avx512f_eq<mode>3_1): Ditto.
12577 (avx512f_gt<mode>3): Ditto.
12578 (avx512f_testm<mode>3): Ditto.
12579 (avx512f_testnm<mode>3): Ditto.
12580 (avx512pf_gatherpf<mode>): Ditto.
12581 (*avx512pf_gatherpf<mode>_mask): Ditto.
12582 (*avx512pf_gatherpf<mode>): Ditto.
12583 (avx512pf_scatterpf<mode>): Ditto.
12584 (*avx512pf_scatterpf<mode>_mask): Ditto.
12585 (*avx512pf_scatterpf<mode>): Ditto.
12586 (avx512f_vec_dup_gpr<mode>): Ditto.
12587 (clz<mode>2): Ditto.
12588 (conflict<mode>): Ditto.
12589 (REDUC_SMINMAX_MODE): Extened with wider modes.
12590 (reduc_<code>_<mode>): Ditto.
12591 (vlshr<mode>3): Ditto.
12592 (vashl<mode>3): Ditto.
12594 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
12595 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12596 Sergey Lega <sergey.s.lega@intel.com>
12597 Anna Tikhonova <anna.tikhonova@intel.com>
12598 Ilya Tocar <ilya.tocar@intel.com>
12599 Andrey Turetskiy <andrey.turetskiy@intel.com>
12600 Ilya Verbin <ilya.verbin@intel.com>
12601 Kirill Yukhin <kirill.yukhin@intel.com>
12602 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12604 * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
12607 (avx512fmaskmode): Ditto.
12608 (bcstscalarsuff): Ditto.
12609 (avx512f_blendm<mode>): Ditto.
12610 (cmp_imm_predicate): Ditto.
12611 (avx512f_cmp<mode>3): Ditto.
12612 (avx512f_vec_dup<mode>): Ditto.
12613 (avx512f_vec_dup_mem<mode>): Ditto.
12614 (avx512f_vpermi2var<mode>3): Ditto.
12615 (avx512f_vpermt2var<mode>3): Ditto.
12616 (vec_init<mode>): Ditto.
12617 (avx512f_gathersi<mode>): Ditto.
12618 (*avx512f_gathersi<mode>): Ditto.
12619 (*avx512f_gathersi<mode>_2): Ditto.
12620 (avx512f_gatherdi<mode>): Ditto.
12621 (*avx512f_gatherdi<mode>): Ditto.
12622 (*avx512f_gatherdi<mode>_2): Ditto.
12623 (avx512f_scattersi<mode>): Ditto.
12624 (*avx512f_scattersi<mode>): Ditto.
12625 (avx512f_scatterdi<mode>): Ditto.
12626 (*avx512f_scatterdi<mode>): Ditto.
12627 (sseintprefix): Extened with wider modes.
12628 (VEC_GATHER_IDXSI): Ditto.
12629 (VEC_GATHER_IDXDI): Ditto.
12630 (VEC_GATHER_SRCDI): Ditto.
12632 2013-10-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
12633 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12635 * config/arm/t-aprofile: New file.
12636 * config.gcc: Handle --with-multilib-list option.
12638 2013-10-15 Bernd Schmidt <bernds@codesourcery.com>
12640 * reload1.c (reloads_unique_chain_p): Ensure that r1 is
12643 2013-10-15 Richard Biener <rguenther@suse.de>
12645 * tree-loop-distribution.c (build_empty_rdg): Inline into
12647 (rdg_flag_vertex): Inline into single user.
12648 (rdg_flag_vertex_and_dependent): Likewise.
12649 (build_rdg_partition_for_vertex): Remove processed bitmap.
12650 (rdg_build_partitions): Simplify.
12652 2013-10-15 Richard Biener <rguenther@suse.de>
12654 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
12655 Restructure forwarding through conversions and copies to
12656 avoid performing copy-propagation the wrong way. Adjust
12657 recursion invocations.
12658 (forward_propagate_addr_expr): Add argument stating if we
12659 are recursing from a single-use.
12660 (ssa_forward_propagate_and_combine): Adjust.
12662 2013-10-14 David Malcolm <dmalcolm@redhat.com>
12664 * dumpfile.h (gcc::dump_manager): New class, to hold state
12665 relating to dumpfile management.
12666 (get_dump_file_name): Remove in favor of method of dump_manager.
12667 (dump_initialized_p): Likewise.
12668 (dump_start): Likewise.
12669 (dump_finish): Likewise.
12670 (dump_switch_p): Likewise.
12671 (dump_register): Likewise.
12672 (get_dump_file_info): Likewise.
12673 * context.c (gcc::context::context): Construct the dump_manager
12675 * context.h (gcc::context::get_dumps): New.
12676 (gcc::context::m_dumps): New.
12677 * coverage.c (coverage_init): Port to dump_manager API.
12678 * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
12679 (extra_dump_files_in_use): Likewise.
12680 (extra_dump_files_alloced): Likewise.
12681 (gcc::dump_manager::dump_manager): New.
12682 (dump_register): Convert to...
12683 (gcc::dump_manager::dump_register): ...method, replacing
12684 function-static next_dump with m_next_dump field.
12685 (get_dump_file_info): Convert to...
12686 (gcc::dump_manager::get_dump_file_info): ...method.
12687 (get_dump_file_name): Convert to...
12688 (gcc::dump_manager::get_dump_file_name): ...method.
12689 (dump_start): Convert to...
12690 (gcc::dump_manager::dump_start): ...method.
12691 (dump_finish): Convert to...
12692 (gcc::dump_manager::dump_finish): ...method.
12693 (dump_begin): Replace body with...
12694 (gcc::dump_manager::dump_begin): ...new method.
12695 (dump_phase_enabled_p): Convert to...
12696 (gcc::dump_manager::dump_phase_enabled_p): ...method.
12697 (dump_phase_enabled_p): Convert to...
12698 (gcc::dump_manager::dump_phase_enabled_p): ...method.
12699 (dump_initialized_p): Convert to...
12700 (gcc::dump_manager::dump_initialized_p): ...method.
12701 (dump_flag_name): Replace body with...
12702 (gcc::dump_manager::dump_flag_name): ...new method.
12703 (dump_enable_all): Convert to...
12704 (gcc::dump_manager::dump_enable_all): ...new method.
12705 (opt_info_enable_passes): Convert to...
12706 (gcc::dump_manager::opt_info_enable_passes): ...new method.
12707 (dump_switch_p_1): Convert to...
12708 (gcc::dump_manager::dump_switch_p_1): ...new method.
12709 (dump_switch_p): Convert to...
12710 (gcc::dump_manager::dump_switch_p): ...new method.
12711 (opt_info_switch_p): Port to dump_manager API.
12712 (enable_rtl_dump_file): Likewise.
12713 * opts-global.c (handle_common_deferred_options): Port to new
12715 * passes.c (pass_manager::finish_optimization_passes): Likewise.
12716 (pass_manager::register_one_dump_file): Likewise.
12717 (pass_manager::register_pass): Likewise.
12718 (pass_init_dump_file): Likewise.
12719 (pass_fini_dump_file): Likewise.
12720 * statistics.c (statistics_early_init): Likewise.
12722 2013-10-14 Richard Biener <rguenther@suse.de>
12724 * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
12725 iterative_hash_canonical_type, gimple_canonical_type_hash,
12726 gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
12727 gimple_register_canonical_type, print_gimple_types_stats,
12728 free_gimple_type_tables): Move to lto/lto.c
12729 (gt-gimple.h): Do not include.
12730 * gimple.h (gimple_register_canonical_type,
12731 print_gimple_types_stats, free_gimple_type_tables): Remove.
12732 * Makefile.in (GTFILES): Remove gimple.c.
12734 2013-10-14 Travis Snoozy <quandary@remstate.com>
12737 * config/msp430/msp430.c (msp430_option_override): Correct thinko
12738 scanning for msp430x targets.
12740 2013-10-14 Eric Botcazou <ebotcazou@adacore.com>
12743 * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
12744 (registers_ok_for_ldd_peep): Move around.
12745 * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
12746 * config/sparc/sparc.md (widening peepholes): Use it.
12748 2013-10-14 Richard Biener <rguenther@suse.de>
12750 PR middle-end/58712
12751 PR middle-end/55358
12752 * gimple.c (iterative_hash_canonical_type): Make sure to
12753 record the hash into the correct hashtable slot.
12755 2013-10-13 Eric Botcazou <ebotcazou@adacore.com>
12757 PR rtl-optimization/58662
12758 * combine.c (try_combine): Take into account death nodes on I2 when
12759 splitting a PARALLEL of two independent SETs. Fix dump message.
12761 2013-10-12 Oleg Endo <olegendo@gcc.gnu.org>
12764 * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
12765 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add sh_treg_combine.o to
12767 * config/sh/t-sh (sh_treg_combine.o): New entry.
12768 * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
12769 implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
12770 (register_sh_passes): New function. Register sh_treg_combine pass.
12771 (sh_option_override): Invoke it.
12772 (sh_canonicalize_comparison): Handle op0_preserve_value.
12773 * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
12774 opportunities. Canonicalize branch condition.
12775 (nott): Allow only if pseudos can be created for non-SH2A.
12777 2013-10-12 H.J. Lu <hongjiu.lu@intel.com>
12780 * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
12781 (ix86_expand_movmem): Replace copy_addr_to_reg with
12782 ix86_copy_addr_to_reg.
12783 (ix86_expand_setmem): Likewise.
12785 2013-10-12 Alexander Monakov <amonakov@ispras.ru>
12787 * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
12788 provided by ix86_fp_compare_mode instead of CCFPUmode.
12790 2013-10-12 James Greenhalgh <james.greenhalgh@arm.com>
12792 * config/aarch64/arm_neon.h
12793 (vtbx<1,3>_<psu>8): Fix register constriants.
12795 2013-10-11 Jeff Law <law@redhat.com>
12797 PR tree-optimization/58640
12798 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
12799 threading paths that cross over two loop entry points.
12801 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12803 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
12804 handle vector float as well.
12805 (*vsx_le_perm_load_v4si): Likewise.
12806 (*vsx_le_perm_store_v2di): Likewise.
12807 (*vsx_le_perm_store_v4si): Likewise.
12809 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12811 * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
12812 directly to circumvent subtract from splat{31} workaround.
12813 * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
12815 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
12816 * config/rs6000/altivec.md (define_c_enum "unspec"): Add
12817 UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
12818 (altivec_vperm_<mode>): Convert to define_insn_and_split to
12819 separate big and little endian logic.
12820 (*altivec_vperm_<mode>_internal): New define_insn.
12821 (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
12822 separate big and little endian logic.
12823 (*altivec_vperm_<mode>_uns_internal): New define_insn.
12824 (vec_permv16qi): Add little endian logic.
12826 2013-10-11 Marc Glisse <marc.glisse@inria.fr>
12828 * doc/extend.texi (returns_nonnull): Remove arguments.
12830 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12831 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12832 Sergey Lega <sergey.s.lega@intel.com>
12833 Anna Tikhonova <anna.tikhonova@intel.com>
12834 Ilya Tocar <ilya.tocar@intel.com>
12835 Andrey Turetskiy <andrey.turetskiy@intel.com>
12836 Ilya Verbin <ilya.verbin@intel.com>
12837 Kirill Yukhin <kirill.yukhin@intel.com>
12838 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12840 * config/i386/sse.md (VI48F_256_512): New.
12841 (avx2_permvar<mode>): Change to ...
12842 (<avx2_avx512f>_permvar<mode>): This.
12844 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12845 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12846 Sergey Lega <sergey.s.lega@intel.com>
12847 Anna Tikhonova <anna.tikhonova@intel.com>
12848 Ilya Tocar <ilya.tocar@intel.com>
12849 Andrey Turetskiy <andrey.turetskiy@intel.com>
12850 Ilya Verbin <ilya.verbin@intel.com>
12851 Kirill Yukhin <kirill.yukhin@intel.com>
12852 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12854 * config/i386/i386.c (bdesc_args): Change corresponding pattern for
12855 __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
12856 * config/i386/sse.md (VI4_AVX): New.
12857 (sf2simodelower): Ditto.
12858 (sse2_cvtps2dq): Change to ...
12859 (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
12861 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12862 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12863 Sergey Lega <sergey.s.lega@intel.com>
12864 Anna Tikhonova <anna.tikhonova@intel.com>
12865 Ilya Tocar <ilya.tocar@intel.com>
12866 Andrey Turetskiy <andrey.turetskiy@intel.com>
12867 Ilya Verbin <ilya.verbin@intel.com>
12868 Kirill Yukhin <kirill.yukhin@intel.com>
12869 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12871 * config/i386/sse.md (V_512): New.
12873 (vcond<V_512:mode><VF_512:mode>): Ditto.
12874 (vcond<V_512:mode><VI_512:mode>): Ditto.
12875 (vcondu<V_512:mode><VI_512:mode>): Ditto.
12877 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12878 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12879 Sergey Lega <sergey.s.lega@intel.com>
12880 Anna Tikhonova <anna.tikhonova@intel.com>
12881 Ilya Tocar <ilya.tocar@intel.com>
12882 Andrey Turetskiy <andrey.turetskiy@intel.com>
12883 Ilya Verbin <ilya.verbin@intel.com>
12884 Kirill Yukhin <kirill.yukhin@intel.com>
12885 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12887 * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
12888 * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
12890 (fma<mode>4): Removed condition.
12891 (fms<mode>4): Ditto.
12892 (fnma<mode>4): Ditto.
12893 (fnms<mode>4): Ditto.
12894 (fma4i_fmadd_<mode>): Ditto.
12895 (*fma_fmadd_<mode>): Ditto.
12896 (*fma_fmsub_<mode>): Ditto.
12897 (*fma_fnmadd_<mode>): Ditto.
12898 (*fma_fnmsub_<mode>): Ditto.
12899 (fmaddsub_<mode>): Allow for TARGET_AVX512F.
12900 (*fma_fmaddsub_<mode>): Ditto.
12901 (*fma_fmsubadd_<mode>): Ditto.
12902 (*fmai_fmadd_<mode>): Ditto.
12903 (*fmai_fmsub_<mode>): Ditto.
12904 (*fmai_fnmadd_<mode>): Ditto.
12905 (*fmai_fnmsub_<mode>): Ditto.
12907 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12908 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12909 Sergey Lega <sergey.s.lega@intel.com>
12910 Anna Tikhonova <anna.tikhonova@intel.com>
12911 Ilya Tocar <ilya.tocar@intel.com>
12912 Andrey Turetskiy <andrey.turetskiy@intel.com>
12913 Ilya Verbin <ilya.verbin@intel.com>
12914 Kirill Yukhin <kirill.yukhin@intel.com>
12915 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12917 * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
12918 (VI124_256): Changed to ...
12919 (VI124_256_48_512): This.
12920 (ssepackmode): Extended with wider modes.
12921 (<code><mode>3): Changed iterator.
12922 (*avx2_<code><mode>3): Ditto.
12923 (vec_pack_trunc_<mode>): Ditto.
12925 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12926 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12927 Sergey Lega <sergey.s.lega@intel.com>
12928 Anna Tikhonova <anna.tikhonova@intel.com>
12929 Ilya Tocar <ilya.tocar@intel.com>
12930 Andrey Turetskiy <andrey.turetskiy@intel.com>
12931 Ilya Verbin <ilya.verbin@intel.com>
12932 Kirill Yukhin <kirill.yukhin@intel.com>
12933 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12935 * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
12936 (VI8F_256_512): Ditto.
12937 (abs<mode>2): Changed iterator.
12938 (avx2_perm<mode>): Changed to ...
12939 (<avx2_avx512f>_perm<mode>): This.
12940 (avx2_perm<mode>_1): Changed to ...
12941 (<avx2_avx512f>_perm<mode>_1): This.
12943 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12944 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12945 Sergey Lega <sergey.s.lega@intel.com>
12946 Anna Tikhonova <anna.tikhonova@intel.com>
12947 Ilya Tocar <ilya.tocar@intel.com>
12948 Andrey Turetskiy <andrey.turetskiy@intel.com>
12949 Ilya Verbin <ilya.verbin@intel.com>
12950 Kirill Yukhin <kirill.yukhin@intel.com>
12951 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12953 * config/i386/sse.md (VI48_AVX512F): New.
12954 (VI48_AVX2): Changed to ...
12955 (VI48_AVX2_48_AVX512F): This.
12956 (avx2_ashrv<mode>): Changed to ...
12957 (<avx2_avx512f>_ashrv<mode>): This.
12958 (avx2_<shift_insn>v<mode>): Changed to ...
12959 (<avx2_avx512f>_<shift_insn>v<mode>): This.
12961 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12962 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12963 Sergey Lega <sergey.s.lega@intel.com>
12964 Anna Tikhonova <anna.tikhonova@intel.com>
12965 Ilya Tocar <ilya.tocar@intel.com>
12966 Andrey Turetskiy <andrey.turetskiy@intel.com>
12967 Ilya Verbin <ilya.verbin@intel.com>
12968 Kirill Yukhin <kirill.yukhin@intel.com>
12969 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12971 * config/i386/sse.md (VI4_AVX512F): New.
12972 (VI8_AVX2_AVX512F): Ditto.
12973 (mul<mode>3): Extended with wider modes.
12974 (*<sse4_1_avx2>_mul<mode>3): Ditto.
12975 (mul<mode>3): Ditto.
12976 (vec_widen_<s>mult_odd_<mode>): Ditto.
12978 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12979 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12980 Sergey Lega <sergey.s.lega@intel.com>
12981 Anna Tikhonova <anna.tikhonova@intel.com>
12982 Ilya Tocar <ilya.tocar@intel.com>
12983 Andrey Turetskiy <andrey.turetskiy@intel.com>
12984 Ilya Verbin <ilya.verbin@intel.com>
12985 Kirill Yukhin <kirill.yukhin@intel.com>
12986 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12988 * config/i386/sse.md (VI2_AVX512F): New.
12989 (VI124_AVX512F): Ditto.
12990 (sseunpackmode): Extended with wider modes.
12991 (sseunpackfltmode): Ditto.
12992 (vec_unpacks_float_hi_<mode>): Ditto.
12993 (vec_unpacks_float_lo_<mode>): Ditto.
12994 (vec_unpacku_float_hi_<mode>): Ditto.
12995 (vec_unpacku_float_lo_<mode>): Ditto.
12996 (vec_unpacks_lo_<mode>): Ditto.
12997 (vec_unpacks_hi_<mode>): Ditto.
12998 (vec_unpacku_lo_<mode>): Ditto.
12999 (vec_unpacku_hi_<mode>): Ditto.
13001 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13002 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13003 Sergey Lega <sergey.s.lega@intel.com>
13004 Anna Tikhonova <anna.tikhonova@intel.com>
13005 Ilya Tocar <ilya.tocar@intel.com>
13006 Andrey Turetskiy <andrey.turetskiy@intel.com>
13007 Ilya Verbin <ilya.verbin@intel.com>
13008 Kirill Yukhin <kirill.yukhin@intel.com>
13009 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13011 * config/i386/i386.md (multdiv): New.
13012 (multdiv_mnemonic): Ditto.
13013 * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
13014 (<sse>_vm<multdiv_mnemonic><mode>3): This.
13015 (<sse>_vmdiv<mode>3): Removed.
13017 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13018 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13019 Sergey Lega <sergey.s.lega@intel.com>
13020 Anna Tikhonova <anna.tikhonova@intel.com>
13021 Ilya Tocar <ilya.tocar@intel.com>
13022 Andrey Turetskiy <andrey.turetskiy@intel.com>
13023 Ilya Verbin <ilya.verbin@intel.com>
13024 Kirill Yukhin <kirill.yukhin@intel.com>
13025 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13027 * config/i386/sse.md (V): Extended with wider modes.
13029 (ssehalfvecmode): Ditto.
13031 (ssepackfltmode): Ditto.
13032 (avx_vec_concat<mode>): Ditto.
13033 (V_256_512): New iterator.
13034 (VF2_512_256): Ditto.
13035 (si2dfmode): New attribute.
13036 (si2dfmodelower): Ditto.
13037 (sf2dfmode): Ditto.
13038 (concat_tg_mode): Ditto.
13039 (floatv4siv4df2): Changed to ...
13040 (float<si2dfmodelower><mode>2): This.
13041 (avx_cvtps2pd256): Changed to ...
13042 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
13043 (vec_pack_trunc_v4df): Changed to ...
13044 (vec_pack_trunc_<mode>): This.
13045 (avx_vpermil<mode>): Changed to ...
13046 (<sse2_avx_avx512f>_vpermil<mode>): This.
13047 (<fixsuffix>fix_truncv8dfv8si2): New.
13048 (vec_pack_sfix_trunc_v8df): Ditto.
13049 (avx512f_rndscale<mode>): Ditto.
13050 (avx512f_roundpd512): Ditto.
13051 (vec_pack_ufix_trunc_<mode>): Updated iterator.
13053 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13054 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13055 Sergey Lega <sergey.s.lega@intel.com>
13056 Anna Tikhonova <anna.tikhonova@intel.com>
13057 Ilya Tocar <ilya.tocar@intel.com>
13058 Andrey Turetskiy <andrey.turetskiy@intel.com>
13059 Ilya Verbin <ilya.verbin@intel.com>
13060 Kirill Yukhin <kirill.yukhin@intel.com>
13061 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13063 * config/i386/i386.md (any_fix): New iterator.
13064 (fixsuffix): New attribute.
13065 * config/i386/sse.md (VF1): Extened with wider modes.
13069 (sseintvecmodelower): Ditto.
13070 (ssescalarmode): Ditto.
13071 (ssescalarnum): Ditto.
13072 (VF1_128_256): New.
13073 (ssexmmmode): Ditto.
13074 (<fixsuffix>fix_truncv16sfv16si2): Ditto.
13075 (<sse>_rcp<mode>2): Change iterator.
13076 (rsqrt<mode>2): Ditto.
13077 (<sse>_rsqrt<mode>2): Ditto.
13078 (avx2_vec_dup<mode>): Ditto.
13079 (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
13080 (round<mode>2_sfix): Ditto.
13081 (avx2_pbroadcast<mode>): Ditto.
13082 (*andnot<mode>3): Handle XI mode.
13083 (*<code><mode>3): Ditto.
13084 (AVXTOSSEMODE): Removed.
13085 (avx_vpermil<mode>): Changed to ...
13086 (<sse2_avx_avx512f>_vpermil<mode>): This.
13088 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13089 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13090 Sergey Lega <sergey.s.lega@intel.com>
13091 Anna Tikhonova <anna.tikhonova@intel.com>
13092 Ilya Tocar <ilya.tocar@intel.com>
13093 Andrey Turetskiy <andrey.turetskiy@intel.com>
13094 Ilya Verbin <ilya.verbin@intel.com>
13095 Kirill Yukhin <kirill.yukhin@intel.com>
13096 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13098 * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
13099 (<sse>_comi): Ditto.
13100 (<sse>_ucomi): Ditto.
13101 (sse_cvtss2siq_2): Ditto.
13102 (sse2_cvtsd2si): Ditto.
13103 (sse2_cvtsd2siq): Ditto.
13104 (sse2_cvttsd2si): Ditto.
13105 (sse2_cvttsd2siq): Ditto.
13106 (<shift_insn><mode>3): Ditto.
13107 (sse2_cvtsi2sdq): Update constraint and prefix.
13108 (sse_cvtsi2ss): Update prefix.
13109 (sse_cvtsi2ssq): Ditto.
13111 2013-10-11 Jakub Jelinek <jakub@redhat.com>
13113 * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
13114 ignore internal calls.
13116 2013-10-11 Richard Biener <rguenther@suse.de>
13118 * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
13119 and (ab) for SSA_NAMEs. Mark INTEGER_CSTs with (OVF) if
13120 TREE_OVERFLOW is set.
13122 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
13124 * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
13126 * gimple.c: GIMPLE statements have subcodes, not sub-codes.
13127 * gimple.h: Likewise.
13129 * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
13131 * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
13134 * doc/gimple.texi (is_gimple_omp): Move into the correct section.
13136 * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
13137 * configure: Regenerate.
13139 2013-10-11 Jakub Jelinek <jakub@redhat.com>
13141 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
13142 and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
13143 formatting fixes, use pp_colon instead of pp_character (..., ':'),
13144 similarly pp_right_paren.
13145 (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
13146 OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
13147 allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
13148 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
13150 (omp_declare_simd_clauses_equal,
13151 omp_remove_redundant_declare_simd_attrs): New functions.
13152 (attribute_value_equal): Use omp_declare_simd_clauses_equal.
13153 (walk_tree_1): Handle new OpenMP 4.0 clauses.
13154 * tree.h (OMP_LOOP_CHECK): Define.
13155 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
13156 OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
13157 (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
13158 OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
13159 OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
13160 OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
13161 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
13162 OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
13163 OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
13164 OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
13165 OMP_CLAUSE_SIMDLEN_EXPR): Define.
13166 (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
13167 (omp_remove_redundant_declare_simd_attrs): New prototype.
13168 * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
13169 GIMPLE_OMP_TEAMS): New codes.
13170 (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
13171 * omp-low.c (struct omp_context): Add cancel_label and cancellable
13173 (target_nesting_level): New variable.
13174 (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
13175 OMP_CLAUSE_DIST_SCHEDULE. Don't fallback to library implementation
13176 for collapse > 1 static schedule unless ordered.
13177 (get_ws_args_for): Add par_stmt argument. Handle combined loops.
13178 (determine_parallel_type): Adjust get_ws_args_for caller.
13179 (install_var_field): Handle mask & 4 for double indirection.
13180 (scan_sharing_clauses): Ignore shared clause on teams construct.
13181 Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
13182 (create_omp_child_function): If inside target or declare target
13183 constructs, set "omp declare target" attribute on the child function.
13184 (find_combined_for): New function.
13185 (scan_omp_parallel): Handle combined loops.
13186 (scan_omp_target, scan_omp_teams): New functions.
13187 (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
13188 restrictions and set ctx->cancellable for cancellable constructs.
13189 (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
13190 selected builtin calls. Handle GIMPLE_OMP_TASKGROUP,
13191 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
13192 (build_omp_barrier): Add lhs argument, return gimple rather than tree.
13193 (omp_clause_aligned_alignment): New function.
13194 (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
13195 (lower_rec_input_clauses): Add FD argument. Ignore shared clauses
13196 on teams constructs. Handle user defined reductions and new
13197 OpenMP 4.0 clauses.
13198 (lower_reduction_clauses): Don't set placeholder to address of ref
13199 if it has already the right type.
13200 (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
13201 (expand_parallel_call): Use the new non-_start suffixed builtins,
13202 handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
13203 and GOMP_parallel_end after the call.
13204 (expand_task_call): Handle OMP_CLAUSE_DEPEND.
13205 (expand_omp_for_init_counts): Handle combined loops.
13206 (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
13208 (expand_omp_for_generic): Likewise. Use GOMP_loop_end_cancel at the
13209 end of cancellable loops.
13210 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
13211 Likewise. Handle collapse > 1 loops.
13212 (expand_omp_simd): Handle combined loops.
13213 (expand_omp_for): Add inner_stmt argument, adjust callers of
13214 expand_omp_for* functions, use expand_omp_for_static*chunk even
13215 for collapse > 1 unless ordered.
13216 (expand_omp_sections): Use GOMP_sections_end_cancel at the end
13217 of cancellable sections.
13218 (expand_omp_single): Remove need_barrier variable, just rely on
13219 gimple_omp_return_nowait_p. Adjust build_omp_barrier caller.
13220 (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
13221 (expand_omp_atomic_load, expand_omp_atomic_store,
13222 expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
13223 (expand_omp_target): New function.
13224 (expand_omp): Handle combined loops. Handle GIMPLE_OMP_TASKGROUP,
13225 GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
13226 (build_omp_regions_1): Immediately close region for
13227 GF_OMP_TARGET_KIND_UPDATE.
13228 (maybe_add_implicit_barrier_cancel): New function.
13229 (lower_omp_sections): Adjust lower_rec_input_clauses caller. Handle
13231 (lower_omp_single): Likewise. Add clobber after the barrier.
13232 (lower_omp_taskgroup): New function.
13233 (lower_omp_for): Handle combined loops. Adjust
13234 lower_rec_input_clauses caller. Handle cancellation.
13235 (lower_depend_clauses): New function.
13236 (lower_omp_taskreg): Lower depend clauses. Adjust
13237 lower_rec_input_clauses caller. Add clobber after the call. Handle
13239 (lower_omp_target, lower_omp_teams): New functions.
13240 (lower_omp_1): Handle cancellation. Handle GIMPLE_OMP_TASKGROUP,
13241 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
13242 and GOMP_cancellation_point calls.
13243 (lower_omp): Fold stmts inside of target region.
13244 (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
13245 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
13246 * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
13247 (BT_FN_VOID_OMPFN_PTR_UINT,
13248 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
13249 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
13250 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
13251 (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
13252 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
13253 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
13254 BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
13255 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
13256 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
13257 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
13258 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
13259 call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
13260 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
13261 BUILT_IN_GOMP_SECTIONS_END_CANCEL. Don't handle
13262 BUILT_IN_GOMP_PARALLEL_END.
13263 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
13264 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
13265 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
13266 GF_OMP_FOR_KIND_DISTRIBUTE.
13267 (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
13268 (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
13269 (dump_gimple_omp_return): Print lhs if it has any.
13270 (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
13271 gimple_omp_atomic_seq_cst_p.
13272 (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
13273 and GIMPLE_OMP_TEAMS.
13274 * langhooks.c (lhd_omp_mappable_type): New function.
13275 * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
13276 * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
13278 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
13279 GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
13280 (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
13281 (struct gimplify_omp_ctx): Add combined_loop field.
13282 (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
13283 on stmts inside of target region.
13284 (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
13285 (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
13286 ORT_TARGET and ORT_TARGET_DATA.
13287 (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
13289 (omp_notice_threadprivate_variable): Complain about threadprivate
13290 variables in target region.
13291 (omp_notice_variable): Complain about vars with non-mappable type
13292 in target region. Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
13293 (omp_check_private): Ignore ORT_TARGET* regions.
13294 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
13295 gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
13296 (find_combined_omp_for): New function.
13297 (gimplify_omp_for): Handle gimplification of combined loops.
13298 (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
13300 (gimplify_omp_target_update): New function.
13301 (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
13302 (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
13303 OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
13304 (gimplify_body): If fndecl has "omp declare target" attribute, add
13305 implicit ORT_TARGET context around it.
13306 * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
13307 OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
13308 * tree-nested.c (convert_nonlocal_reference_stmt,
13309 convert_local_reference_stmt, convert_gimple_call): Handle
13310 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
13311 * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
13312 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
13313 instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
13314 (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
13315 BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
13316 BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
13317 BUILT_IN_GOMP_LOOP_END_CANCEL,
13318 BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
13319 BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
13320 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
13321 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
13322 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
13323 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
13324 BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
13325 BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
13326 (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
13327 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
13328 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
13329 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
13330 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
13331 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
13332 * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
13333 Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
13334 * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
13335 gimple_build_omp_teams): New functions.
13336 (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
13337 GIMPLE_OMP_TASKGROUP. Walk optional lhs on GIMPLE_OMP_RETURN.
13338 (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
13339 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
13340 * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
13341 GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
13342 GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
13343 GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
13344 GF_OMP_ATOMIC_SEQ_CST): New.
13345 (gimple_build_omp_taskgroup, gimple_build_omp_target,
13346 gimple_build_omp_teams): New prototypes.
13347 (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
13348 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
13349 (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
13350 GIMPLE_OMP_SINGLE as end of range.
13351 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
13352 gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
13353 gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
13354 gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
13355 gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
13356 gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
13357 gimple_omp_target_kind, gimple_omp_target_set_kind,
13358 gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
13359 gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
13360 gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
13361 gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
13362 gimple_omp_teams_set_clauses): New inlines.
13363 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
13364 and GIMPLE_OMP_TASKGROUP.
13365 * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
13366 (enum omp_clause_depend_kind, enum omp_clause_map_kind,
13367 enum omp_clause_proc_bind_kind): New.
13368 (union omp_clause_subcode): Add depend_kind, map_kind and
13369 proc_bind_kind fields.
13370 * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
13371 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
13372 * langhooks-def.h (lhd_omp_mappable_type): New prototype.
13373 (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
13374 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
13376 2013-10-10 Teresa Johnson <tejohnson@google.com>
13378 * predict.c (tree_estimate_probability): Add new parameter
13379 for estimate_bb_frequencies.
13380 (estimate_bb_frequencies): Add new parameter to force estimation.
13381 (rebuild_frequencies): When max frequency in function is small,
13382 recompute counts from frequencies.
13383 * predict.h (estimate_bb_frequencies): New parameter.
13385 2013-10-10 David Malcolm <dmalcolm@redhat.com>
13387 * ipa-inline.c (ipa_inline): Fix leak of "order" when
13388 optimizations are disabled.
13390 2013-10-10 David Malcolm <dmalcolm@redhat.com>
13392 * coverage.c (coverage_finish): Fix leak of da_file_name.
13394 2013-10-10 Jan Hubicka <jh@suse.cz>
13396 * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
13397 for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
13398 Bobcat and generic.
13400 2013-10-10 Jakub Jelinek <jakub@redhat.com>
13402 PR middle-end/58670
13403 * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
13404 if any labels are in FALLTHRU_BB, use a special label emitted
13405 immediately after the asm goto insn rather than label_rtx
13407 (expand_asm_stmt): Adjust caller.
13408 * cfgrtl.c (commit_one_edge_insertion): Force splitting of
13409 edge if the last insn in predecessor is a jump with single successor,
13410 but it isn't simplejump_p.
13412 2013-10-10 Richard Biener <rguenther@suse.de>
13414 PR tree-optimization/58656
13415 * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
13417 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
13419 * gimplify.c: Include expr.h and tm_p.h for targets with special
13420 va-arg padding requirements.
13422 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
13424 * tree-flow.h: Move some prototypes to gimple.h.
13425 (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
13426 * gimple.h: Relocate some prototypes from tree-flow.h
13427 * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
13428 Move to gimplify.c.
13429 * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
13430 (build_va_arg_indirect_ref): Relocate and make static.
13431 (std_gimplify_va_arg_expr): Relocate here.
13432 * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
13433 * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
13435 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13437 * doc/md.texi: Document the mnemonic attribute.
13439 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13442 * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
13443 (set_attr_alternative x ...) when searching for user defined
13444 mnemonic attribute.
13446 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
13448 * config/aplha/alpha.c: Add gimple-ssa.h to include list.
13450 2013-10-09 Easwaran Raman <eraman@google.com>
13452 * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
13453 * cfgexpand.c (defer_stack_allocation): ...use here
13454 * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
13456 2013-10-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
13458 * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
13459 (operand_equal_for_value_replacement): New function, extracted from
13460 value_replacement and enhanced to catch more cases.
13461 (value_replacement): Use operand_equal_for_value_replacement.
13463 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
13465 * loop-doloop.c (doloop_modify, doloop_optimize): Use
13466 get_max_loop_iterations.
13468 2013-10-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13470 * config/arm/aarch-common.c (arm_early_load_addr_dep):
13471 Place comment above function.
13473 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
13475 * tree-flow.h: Remove all remaining prototypes, enums and structs that
13476 are not related to tree-cfg.c.
13477 * tree-ssa-address.h: New file. Relocate prototypes.
13478 * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
13479 (addr_for_mem_ref): New. Combine call to get_address_description and
13480 return addr_for_mem_ref.
13481 * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
13482 * tree-ssa-live.h: Adjust prototypes.
13483 * passes.c: Include tree-ssa-live.h.
13484 * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
13485 * graphite.c (graphite_transform_loops): Make static.
13486 (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
13487 make_pass_graphite, pass_data_graphite_transforms,
13488 make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
13489 * ipa-pure-const.c (warn_function_noreturn): Make static.
13490 (execute_warn_function_noreturn, gate_warn_function_noreturn,
13491 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
13492 Relocate from tree-cfg.c
13493 * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
13495 (execute_warn_function_noreturn, gate_warn_function_noreturn,
13496 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
13497 Move to ipa-pure-const.c.
13498 (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
13499 Relocate from tree-optimize.c.
13500 * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
13501 make_pass_fixup_cfg): Move to tree-cfg.c.
13502 * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
13503 Relocate some prototypes.
13504 * tree-data-ref.h (tree_check_data_deps) Add prototype.
13505 * tree-dump.c (dump_function_to_file): Remove prototype.
13506 Add tree-flow.h to the include file.
13507 * tree-dump.h: Remove prototype.
13508 * tree-parloops.h: New File. Add prototypes.
13509 * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
13510 pass_data_parallelize_loops, make_pass_parallelize_loops): Relocate
13511 from tree-ssa-loop.c.
13512 * tree-predcom.c (run_tree_predictive_commoning,
13513 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
13514 Relocate here from tree-ssa-loop.c.
13515 * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
13516 ssa_name_values.release ().
13517 * tree-ssa-threadedge.h: New File. Relocate prototypes here.
13518 (ssa_name_values): Relocate from tree-flow.h.
13519 * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
13520 * tree-ssa-loop.c (run_tree_predictive_commoning,
13521 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
13522 graphite_transforms, gate_graphite_transforms, pass_data_graphite,
13523 make_pass_graphite, pass_data_graphite_transforms,
13524 make_pass_graphite_transforms, gate_tree_parallelize_loops,
13525 tree_parallelize_loops, pass_data_parallelize_loops,
13526 make_pass_parallelize_loops): Move to other files.
13527 * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
13529 * tree.h: Remove prototypes from tree-address.c.
13531 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
13533 * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
13534 (struct int_tree_map): Move to tree-hasher.h
13535 (SCALE, LABEL, PERCENT): Move to gimple.h
13536 * tree-flow-inline.h: Delete. Move functions to other files.
13537 (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
13538 * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
13539 (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
13540 * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
13541 inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
13542 (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
13543 * tree-hasher.h: Don't include tree-flow.h.
13544 (struct int_tree_map): Relocate from tree-flow.h.
13545 * tree-sra.c (contains_view_convert_expr_p): Relocate from
13546 tree-flow-inline.h and make static.
13547 * tree-ssa-alias.h (ranges_overlap_p): Relocate from
13548 tree-flow-inline.h.
13549 * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
13550 tree-flow-inline.h and make static.
13551 * tree.h (is_global_var, may_be_aliased): Relocate from
13552 tree-flow-inline.h.
13553 * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
13554 * value-prof.c: No longer include tree-flow-inline.h.
13555 * tree-switch-conversion.c: No longer include tree-flow-inline.h.
13557 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
13559 * tree-flow.h: Move some protoypes. Include new tree-ssa-loop.h.
13560 (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
13561 (enum move_pos): Move to tree-ssa-loop-im.h
13562 * cfgloop.h: Move some prototypes.
13563 (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
13564 * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
13565 * tree-ssa-loop.h: New File. Include other tree-ssa-loop-*.h files.
13566 (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
13567 (loop_containing_stmt): Relocate from tree-flow-inline.h.
13568 * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
13569 * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
13570 (enum move_pos): Relocate here.
13571 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
13573 (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
13574 (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
13575 make_pass_lim): Relocate here from tree-ssa-loop.c.
13576 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
13578 (loop_edge_to_cancel, unloop_loops): Make static.
13579 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
13580 make_pass_iv_canon): Relocate from tree-ssa-loop.c.
13581 (tree_complete_unroll, gate_tree_complete_unroll,
13582 pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
13583 (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
13584 pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
13585 * tree-ssa-loop-ivopts.c: Remove local prototypes.
13586 (stmt_invariant_in_loop_p): Remove unused function.
13587 * tree-ssa-loop-ivopts.h: New file. Add prototypes.
13588 * tree-ssa-loop-manip.h: New file. Add prototypes.
13589 * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
13590 (gcov_type_to_double_int): Move to cfgloop.h.
13591 (double_int_cmp, bound_index,
13592 estimate_numbers_of_iterations_loop): Make static.
13593 (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
13594 (max_loop_iterations): Factor out get_max_loop_iterations.
13595 (estimated_loop_iterations_int, max_stmt_executions_int): Move to
13597 * tree-ssa-loop-niter.h: New file. Add prototypes.
13598 * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
13599 gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
13600 make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
13601 * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
13602 gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
13603 make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
13604 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
13605 pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
13606 (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
13607 pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
13608 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
13609 make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
13610 pass_data_complete_unroll, make_pass_complete_unroll,
13611 tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
13612 pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
13613 tree-ssa-loop-ivcanon.c.
13614 (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
13615 pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
13616 tree-ssa-loop-prefetch.c.
13617 (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
13618 tree-ssa-loop-im.c.
13619 (get_lsm_tmp_name): Relocate and add suffix parameter.
13620 (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
13621 * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
13622 * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
13623 max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
13624 (get_estimated_loop_iterations): Factor out accessor from
13625 estimated_loop_iterations in tree-ssa-loop-niter.c.
13626 (get_max_loop_iterations): Factor out accessor from
13627 _max_loop_iterations in tree-ssa-niter.c.
13628 * loop-unroll.c (decide_unroll_constant_iterations,
13629 decide_unroll_runtime_iterations, decide_peel_simple,
13630 decide_unroll_stupid): Use new get_* accessors.
13632 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
13634 PR tree-optimization/20318
13635 * doc/extend.texi (returns_nonnull): New function attribute.
13636 * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
13638 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
13639 (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
13641 2013-10-09 Eric Botcazou <ebotcazou@adacore.com>
13643 PR middle-end/58570
13644 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
13645 false if both components are bitfields.
13647 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
13649 * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
13650 (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
13651 (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
13652 * config/aarch64/aarch64.h
13653 (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
13654 * config/aarch64/aarch64-simd-builtins.def
13655 (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
13657 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
13659 * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
13661 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
13663 * config/aarch64/arm_neon.h (vdiv_f64): Added.
13665 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
13667 * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
13668 (vneg_f64): New intrinsic.
13669 (vneg_s8): Asm replaced with C.
13670 (vneg_s16): Likewise.
13671 (vneg_s32): Likewise.
13672 (vneg_s64): New intrinsic.
13673 (vnegq_f32): Asm replaced with C.
13674 (vnegq_f64): Likewise.
13675 (vnegq_s8): Likewise.
13676 (vnegq_s16): Likewise.
13677 (vnegq_s32): Likewise.
13678 (vnegq_s64): Likewise.
13680 2013-10-09 Renlin Li <Renlin.Li@arm.com>
13682 * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
13684 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13686 * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
13687 packed stack special handling.
13688 (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
13689 back to fixed stack slots for FPRs saved due to stdarg.
13691 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13693 * config/s390/s390.c (s390_frame_info): Restructure function.
13695 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13697 * config/s390/s390.c (struct s390_frame_layout): New field
13699 (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
13700 (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
13701 regs_ever_clobbered to char*.
13702 (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
13703 of cfun->has_nonlocal_label. Ignore frame related restore INSNs.
13704 (s390_register_info): Enable FPR save slots. Move/Copy some
13705 functionality into ...
13706 (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
13707 (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
13709 (s390_frame_info): Do gpr slot allocation here now. stdarg does
13710 not imply a stack frame.
13711 (s390_init_frame_layout): Remove variable clobbered_regs.
13712 (s390_update_register_info): Remove function.
13713 (s390_hard_regno_rename_ok): Call-saved regs without a save slot
13714 cannot be used for register renaming.
13715 (s390_hard_regno_scratch_ok): New function.
13716 (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
13717 (s390_initial_elimination_offset): Change offset calculation of
13718 the return address pointer.
13719 (save_gprs): Deal with only r6 being saved from the call-saved regs.
13720 (restore_gprs): Set frame related flag.
13721 (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
13722 (s390_emit_prologue): Call s390_register_info instead of
13723 s390_update_frame_layout. Call s390_save_gprs_to_fprs.
13724 (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
13725 (s390_optimize_prologue): Call s390_optimize_register_info.
13726 Try to remove also FPR slot save/restore INSNs. Remove frame
13727 related flags from restore INSNs.
13729 2013-10-08 DJ Delorie <dj@redhat.com>
13731 * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
13734 * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
13735 avoid conflict with the MI use of %c.
13736 * config/rl78/rl78-real.md: change %c to %C throughout.
13737 * config/rl78/rl78-virt.md: Likewise.
13739 2013-10-08 Jan Hubicka <jh@suse.cz>
13741 * config/i386/i386.c (ix86_option_override_internal): Switch
13742 to SSE math for -ffast-math when target ISA supports SSE2.
13744 2013-10-08 Andrew MacLeod <amacleod@redhat.com>
13746 * tree-flow.h: Remove some prototypes.
13747 * tree.h: Remove some protypes, add a couple.
13748 * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
13749 using_eh_for_cleanups_p): Add interface routines for front ends.
13750 * tree-eh.h: New file. Add protoptyes.
13751 * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
13752 (add_stmt_to_eh_lp_fn): Make static.
13753 (lower_try_finally): Use new using_eh_for_cleanups_p.
13754 * emit-rtl.c: Include tree-eh.h.
13755 * gimple.h: Include tree-eh.h.
13757 2013-10-08 Marc Glisse <marc.glisse@inria.fr>
13759 PR tree-optimization/58480
13760 * tree-vrp.c (infer_nonnull_range): New function.
13761 (infer_value_range): Call infer_nonnull_range.
13763 2013-10-08 Dehao Chen <dehao@google.com>
13765 PR tree-optimization/58619
13766 * tree-inline.c (copy_phis_for_bb): Combine location data
13769 2013-10-08 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13772 * config/arm/arm.c (arm_emit_ldrd_pop): Attach
13773 RTX_FRAME_RELATED_P on INSN.
13775 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13777 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
13778 (altivec_expand_vec_perm_const): Call it.
13780 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13782 * config/rs6000/vector.md (mov<mode>): Emit permuted move
13783 sequences for LE VSX loads and stores at expand time.
13784 * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
13786 * config/rs6000/rs6000.c (rs6000_const_vec): New.
13787 (rs6000_gen_le_vsx_permute): New.
13788 (rs6000_gen_le_vsx_load): New.
13789 (rs6000_gen_le_vsx_store): New.
13790 (rs6000_gen_le_vsx_move): New.
13791 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
13792 (*vsx_le_perm_load_v4si): New.
13793 (*vsx_le_perm_load_v8hi): New.
13794 (*vsx_le_perm_load_v16qi): New.
13795 (*vsx_le_perm_store_v2di): New.
13796 (*vsx_le_perm_store_v4si): New.
13797 (*vsx_le_perm_store_v8hi): New.
13798 (*vsx_le_perm_store_v16qi): New.
13799 (*vsx_xxpermdi2_le_<mode>): New.
13800 (*vsx_xxpermdi4_le_<mode>): New.
13801 (*vsx_xxpermdi8_le_V8HI): New.
13802 (*vsx_xxpermdi16_le_V16QI): New.
13803 (*vsx_lxvd2x2_le_<mode>): New.
13804 (*vsx_lxvd2x4_le_<mode>): New.
13805 (*vsx_lxvd2x8_le_V8HI): New.
13806 (*vsx_lxvd2x16_le_V16QI): New.
13807 (*vsx_stxvd2x2_le_<mode>): New.
13808 (*vsx_stxvd2x4_le_<mode>): New.
13809 (*vsx_stxvd2x8_le_V8HI): New.
13810 (*vsx_stxvd2x16_le_V16QI): New.
13812 2013-10-07 Renlin Li <Renlin.Li@arm.com>
13814 * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
13816 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13818 * config/s390/s390.c (s390_register_info): Make the call-saved FPR
13819 loop to work also for 31bit ABI.
13820 Save the stack pointer for frame_size > 0.
13822 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13824 * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
13825 ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
13826 constraint letters from expanders.
13827 ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
13828 retry count to general_operand.
13829 ("tabort"): Give operand 0 a mode.
13830 ("tabort_1"): Add mode and constraint letter for operand 0.
13831 * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
13833 2013-10-04 Jeff Law <law@redhat.com>
13835 * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
13837 * tree-ssa-threadedge.c (thread_through_normal_block): Broken
13839 (thread_across_edge): Here. Call it.
13841 2013-10-04 Cary Coutant <ccoutant@google.com>
13843 * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
13844 discarding a location list expression (or a piece of one).
13846 2013-10-03 Jan Hubicka <jh@suse.cz>
13848 * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
13849 rate of 2. Core2, Corei7 and Haswell has issue rate of 4.
13850 (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
13852 2013-10-03 Jan Hubicka <jh@suse.cz>
13854 * config/i386/i386.c (ix86_option_override_internal): Do not enable
13855 accumulate-outgoing-args when producing unwind info.
13857 2013-10-03 Wei Mi <wmi@google.com>
13859 * lra-constraints.c (insert_move_for_subreg): New function
13860 extracted from simplify_operand_subreg.
13861 (simplify_operand_subreg): Add reload for paradoxical subreg.
13863 2013-10-03 Rong Xu <xur@google.com>
13865 * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
13866 the candidate of builtin_expect such that we should fix the
13867 size/time estimation.
13868 (estimate_function_body_sizes): Do the acutally size/time fix-up
13869 for builtin_expect.
13871 2013-10-03 Rong Xu <xur@google.com>
13873 * predict.c (tree_predict_by_opcode): Get the probability
13874 for builtin_expect from param builtin_expect_probability.
13875 * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
13876 * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
13877 * doc/invoke.texi: Add documentation for builtin-expect-probability.
13879 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
13882 * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
13883 * calls.c (alloca_call_p): Use get_callee_fndecl.
13884 * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
13885 * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
13887 (vrp_visit_stmt): Remove duplicated code.
13889 2013-10-03 Michael Meissner <meissner@linux.vnet.ibm.com>
13891 * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
13892 ceildf2, btruncdf2, instead of vsx_* name.
13894 * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
13895 iterators to only do V2DF and V4SF here. Move the DF code to
13896 rs6000.md where it is combined with SF mode. Replace <VSv> with
13897 just 'v' since only vector operations are handled with these insns
13898 after moving the DF support to rs6000.md.
13899 (vsx_sub<mode>3): Likewise.
13900 (vsx_mul<mode>3): Likewise.
13901 (vsx_div<mode>3): Likewise.
13902 (vsx_fre<mode>2): Likewise.
13903 (vsx_neg<mode>2): Likewise.
13904 (vsx_abs<mode>2): Likewise.
13905 (vsx_nabs<mode>2): Likewise.
13906 (vsx_smax<mode>3): Likewise.
13907 (vsx_smin<mode>3): Likewise.
13908 (vsx_sqrt<mode>2): Likewise.
13909 (vsx_rsqrte<mode>2): Likewise.
13910 (vsx_fms<mode>4): Likewise.
13911 (vsx_nfma<mode>4): Likewise.
13912 (vsx_copysign<mode>3): Likewise.
13913 (vsx_btrunc<mode>2): Likewise.
13914 (vsx_floor<mode>2): Likewise.
13915 (vsx_ceil<mode>2): Likewise.
13916 (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
13917 (vsx_sminsf3): Likewise.
13918 (vsx_fmadf4): Likewise.
13919 (vsx_fmsdf4): Likewise.
13920 (vsx_nfmadf4): Likewise.
13921 (vsx_nfmsdf4): Likewise.
13922 (vsx_cmpdf_internal1): Likewise.
13924 * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
13925 simpler to select whether a target has SPE or traditional floating
13926 point support in iterators.
13927 (TARGET_DF_SPE): Likewise.
13928 (TARGET_SF_FPR): Likewise.
13929 (TARGET_DF_FPR): Likewise.
13930 (TARGET_SF_INSN): Macros to say whether floating point support
13931 exists for a given operation for expanders.
13932 (TARGET_DF_INSN): Likewise.
13934 * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
13935 combining of SF/DF mode operations, using both traditional and VSX
13943 (abs<mode>2): Combine SF/DF modes using traditional floating point
13944 instructions. Add support for using the upper DF registers with
13945 VSX support, and SF registers with power8-vector support. Update
13946 expanders for operations supported by both the SPE and traditional
13947 floating point units.
13948 (abs<mode>2_fpr): Likewise.
13949 (nabs<mode>2): Likewise.
13950 (nabs<mode>2_fpr): Likewise.
13951 (neg<mode>2): Likewise.
13952 (neg<mode>2_fpr): Likewise.
13953 (add<mode>3): Likewise.
13954 (add<mode>3_fpr): Likewise.
13955 (sub<mode>3): Likewise.
13956 (sub<mode>3_fpr): Likewise.
13957 (mul<mode>3): Likewise.
13958 (mul<mode>3_fpr): Likewise.
13959 (div<mode>3): Likewise.
13960 (div<mode>3_fpr): Likewise.
13961 (sqrt<mode>3): Likewise.
13962 (sqrt<mode>3_fpr): Likewise.
13963 (fre<Fs>): Likewise.
13964 (rsqrt<mode>2): Likewise.
13965 (cmp<mode>_fpr): Likewise.
13966 (smax<mode>3): Likewise.
13967 (smin<mode>3): Likewise.
13968 (smax<mode>3_vsx): Likewise.
13969 (smin<mode>3_vsx): Likewise.
13970 (negsf2): Delete SF operations that are merged with DF.
13971 (abssf2): Likewise.
13972 (addsf3): Likewise.
13973 (subsf3): Likewise.
13974 (mulsf3): Likewise.
13975 (divsf3): Likewise.
13977 (fmasf4_fpr): Likewise.
13978 (fmssf4_fpr): Likewise.
13979 (nfmasf4_fpr): Likewise.
13980 (nfmssf4_fpr): Likewise.
13981 (sqrtsf2): Likewise.
13982 (rsqrtsf_internal1): Likewise.
13983 (smaxsf3): Likewise.
13984 (sminsf3): Likewise.
13985 (cmpsf_internal1): Likewise.
13986 (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
13987 (negdf2): Delete DF operations that are merged with SF.
13988 (absdf2): Likewise.
13989 (nabsdf2): Likewise.
13990 (adddf3): Likewise.
13991 (subdf3): Likewise.
13992 (muldf3): Likewise.
13993 (divdf3): Likewise.
13995 (rsqrtdf_internal1): Likewise.
13996 (fmadf4_fpr): Likewise.
13997 (fmsdf4_fpr): Likewise.
13998 (nfmadf4_fpr): Likewise.
13999 (nfmsdf4_fpr): Likewise.
14000 (sqrtdf2): Likewise.
14001 (smaxdf3): Likewise.
14002 (smindf3): Likewise.
14003 (cmpdf_internal1): Likewise.
14004 (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
14005 (btrunc<mode>2): Delete separate expander, and combine with the
14006 insn and add VSX instruction support. Use TARGET_<MODE>_FPR.
14007 (btrunc<mode>2_fpr): Likewise.
14008 (ceil<mode>2): Likewise.
14009 (ceil<mode>2_fpr): Likewise.
14010 (floor<mode>2): Likewise.
14011 (floor<mode>2_fpr): Likewise.
14012 (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
14013 Add support for using the upper registers with VSX and
14014 power8-vector. Move insns to be closer to the define_expands. On
14015 VSX systems, prefer the traditional form of FMA over the VSX
14016 version, since the traditional form allows the target not to
14017 overlap with the inputs.
14018 (fms<mode>4_fpr): Likewise.
14019 (nfma<mode>4_fpr): Likewise.
14020 (nfms<mode>4_fpr): Likewise.
14022 2013-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14023 Richard Earnshaw <richard.earnshaw@arm.com>
14025 * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
14026 (struct mult_cost_table): Likewise.
14027 (struct mem_cost_table): Likewise.
14028 (struct fp_cost_table): Likewise.
14029 (struct vector_cost_table): Likewise.
14030 (cpu_cost_table): Likewise.
14031 * config/arm/arm.opt (mold-rts-costs): New option.
14032 (mnew-generic-costs): Likewise.
14033 * config/arm/arm.c (generic_extra_costs): New table.
14034 (cortexa15_extra_costs): Likewise.
14035 (arm_slowmul_tune): Use NULL as new costs.
14036 (arm_fastmul_tune): Likewise.
14037 (arm_strongarm_tune): Likewise.
14038 (arm_xscale_tune): Likewise.
14039 (arm_9e_tune): Likewise.
14040 (arm_v6t2_tune): Likewise.
14041 (arm_cortex_a5_tune): Likewise.
14042 (arm_cortex_a9_tune): Likewise.
14043 (arm_v6m_tune): Likewise.
14044 (arm_fa726te_tune): Likewise.
14045 (arm_cortex_a15_tune): Use cortex15_extra_costs.
14046 (arm_cortex_tune): Use generict_extra_costs.
14047 (shifter_op_p): New function.
14048 (arm_unspec_cost): Likewise.
14049 (LIBCALL_COST): Define.
14050 (arm_new_rtx_costs): New function.
14051 (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
14052 table is available. Use old costs otherwise unless mnew-generic-costs
14054 * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
14055 (cpu_cost_table): Declare.
14057 2013-10-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
14060 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
14061 (*subs_mul_imm_<mode>)
14062 (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
14063 (*sub_<shift>_<mode>)
14064 (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
14065 Remove k constraint.
14067 2013-10-03 Ian Bolton <ian.bolton@arm.com>
14069 * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
14071 * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
14073 2013-10-02 Teresa Johnson <tejohnson@google.com>
14075 * predict.c (probably_never_executed): New function.
14076 (probably_never_executed_bb_p): Invoke probably_never_executed.
14077 (probably_never_executed_edge_p): Ditto.
14078 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
14079 Treat profile insanities conservatively.
14081 2013-10-02 John David Anglin <danglin@gcc.gnu.org>
14083 * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
14085 2013-10-02 Vladimir Makarov <vmakarov@redhat.com>
14087 * lra-constraints.c (process_alt_operand): Calculate scratch_p and
14088 use it. Use smaller increase for scratch. Don't increase reject
14089 for early clobber scratch.
14090 * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
14091 setting eliminated regs except setting fp from hfp.
14092 (lra_eliminate): Check lra_insn_recog_data on NULL.
14094 2013-10-02 Michael Meissner <meissner@linux.vnet.ibm.com>
14097 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
14098 setting -mvsx-timode by default until the underlying problem is fixed.
14099 (RS6000_CPU, power7 defaults): Likewise.
14101 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
14103 * config/x-linux (host-linux.o): Remove header dependencies.
14104 Use $(COMPILE) and $(POSTCOMPILE).
14105 * config/t-linux-android (linux-android.o): Ditto.
14107 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
14109 * Makefile.in (expmed.o-warn): Remove.
14111 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
14113 * graphite-scop-detection.c: Include tree-ssa-propagate,h.
14114 * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
14116 2013-10-02 Teresa Johnson <tejohnson@google.com>
14118 * dojump.c (do_jump_1): Divide probability between
14119 both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
14121 2013-10-02 Tom Tromey <tromey@redhat.com>
14123 * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
14125 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
14127 * tree-flow.h: Remove some prototypes.
14128 * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
14129 mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
14130 * tree-into-ssa.c (mark_virtual_operand_for_renaming,
14131 mark_virtual_phi_result_for_renaming): Relocate here.
14132 * tree-into-ssa.h: Add prototypes.
14133 * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
14134 single_pred_before_succ_order.
14135 (blocks_in_phiopt_order): Rename and move to cfganal.c.
14136 (nonfreeing_call_p) Move to gimple.c.
14137 * cfganal.c (single_pred_before_succ_order): Move and renamed from
14139 * basic-block.h (single_pred_before_succ_order): Add prototype.
14140 * gimple.c (nonfreeing_call_p): Relocate here.
14141 * gimple.h: Add prototype.
14142 * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
14143 * tree-ssa-dom.h: New file. Relocate prototypes here.
14144 * tree-ssa.h: Include tree-ssa-dom.h.
14146 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
14148 * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
14149 Use $(COMPILE) and $(POSTCOMPILE).
14151 * config/alpha/x-alpha (driver-alpha.o): Ditto.
14153 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
14155 * tree-flow.h: Remove some prototypes.
14156 * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
14157 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
14158 * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
14159 propagate_tree_value*): Move from here to...
14160 * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
14161 propagate_tree_value*): Relocate here.
14162 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
14163 * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
14164 * gimple-fold.c: Remove gimple-fold.h from include list.
14165 * tree-vrp.c: Remove gimple-fold.h from include list.
14166 * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
14167 * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
14168 * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
14169 * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
14170 * sese.c: Add tree-ssa-propagate.h to include list.
14172 2013-10-02 Richard Biener <rguenther@suse.de>
14174 * tree-loop-distribution.c: Include tree-vectorizer.h for
14175 find_loop_location.
14176 (enum partition_kind): Remove PKIND_REDUCTION.
14177 (struct partition_s): Remove has_writes member, add reduction_p member.
14178 (partition_alloc): Adjust.
14179 (partition_builtin_p): Likewise.
14180 (partition_has_writes): Remove.
14181 (partition_reduction_p): New function.
14182 (partition_merge_into): Likewise.
14183 (generate_code_for_partition): Commonize builtin partition
14185 (rdg_cannot_recompute_vertex_p): Remove.
14186 (already_processed_vertex_p): Likewise.
14187 (rdg_flag_vertex): Do not set has_writes.
14188 (classify_partition): Adjust.
14189 (rdg_build_partitions): Do not set has_writes, treat all
14190 partitions as useful.
14191 (distribute_loop): Record number of library calls generated. Adjust.
14192 (tree_loop_distribution): Report number of loops and library
14193 calls generated as opt-info.
14195 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
14197 * tree-flow.h: Include new .h files. Move prototypes.
14198 * tree-cfgcleanup.h: New file. Add prototypes from tree-flow.h.
14199 * tree-dfa.h: New File. Add prototypes from tree-flow.h.
14200 (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
14201 * tree-pretty-print.h: Add prototypes from tree-flow.h.
14202 * tree-into-ssa.h: New File. Add prototypes from tree-flow.h.
14203 ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
14204 * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
14205 * tree.h (get_ref_base_and_extent): Move prototype out.
14206 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
14208 * gimple-low.h: New File. Add prototypes from tree-flow.h.
14209 * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
14210 * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
14211 * tree-scalar-evolution.c: Include tree.h.
14212 * sese.c: Include tree.h.
14213 * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
14214 * dwarf2out.c: Include tree-dfa.h.
14215 * tree-chrec.c: Include tree.h.
14216 * tree-data-ref.c: Include tree.h.
14218 2013-10-02 Yufeng Zhang <yufeng.zhang@arm.com>
14220 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
14223 2013-10-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14225 * config/t-sol2 (sol2-c.o): Remove header dependencies.
14226 Use $(COMPILE) and $(POSTCOMPILE).
14227 (sol2-cxx.o): Likewise.
14228 (sol2-stubs.o): Likewise.
14229 (sol2.o): Likewise.
14230 * config/x-solaris (host-solaris.o): Likewise.
14232 * config/sparc/t-sparc (sparc.o): Remove.
14233 (sparc-c.o): Remove header dependencies.
14234 Use $(COMPILE) and $(POSTCOMPILE).
14235 * config/sparc/x-sparc: Likewise.
14237 2013-10-02 Joern Rennecke <joern.rennecke@embecosm.com>
14239 * config/arc/arc-opts.h: Add 2013 to Copyright years.
14240 * config/arc/arc700.md: Likewise.
14241 * config/arc/arc-modes.def: Likewise.
14242 * config/arc/arc-simd.h: Likewise.
14243 * config/arc/t-arc-uClibc: Likewise.
14244 * config/arc/t-arc-newlib: Likewise.
14246 2013-10-02 Renlin Li <renlin.li@arm.com>
14248 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
14250 (aarch64_expand_epilogue): Likewise.
14252 2013-10-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14253 Yufeng Zhang <yufeng.zhang@arm.com>
14255 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
14257 (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
14258 'base_in' represent a conversion and legal_cast_p_1 holds; set
14259 'base_in' with the returned value from get_unwidened.
14261 2013-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14263 * config/arm/arm.c (arm_legitimize_reload_address): Explain why
14264 plus_constant is not used.
14266 2013-10-01 Wei Mi <wmi@google.com>
14268 * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
14269 * config/i386/i386.md: Add define_peephole2 to
14270 break partial reg stall for cvtss2sd/cvtsd2ss.
14272 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
14274 * config/arc/arc.c (pass_arc_ifcvt::clone):
14275 Update for ctxt_ -> m_ctxt change.
14277 2013-10-01 Jeff Law <law@redhat.com>
14279 * tree-ssa-threadupdate.c (struct redirection_data): Delete
14280 outgoing_edge and intermediate_edge fields. Instead store the path.
14281 (redirection_data::hash): Hash on the last edge's destination index.
14282 (redirection_data::equal): Check the entire thread path.
14283 (lookup_redirectio_data): Corresponding changes.
14284 (create_edge_and_update_destination_phis): Likewise.
14285 (thread_single_edge): Likewise.
14287 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
14288 Diego Novillo <dnovillo@google.com>
14290 * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
14291 (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
14292 (vld32wh_insn, vld32wl_insn): Delete commented-out old
14293 versions of these patterns.
14295 * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
14296 (__builtin_arc_aligned): Likewise.
14298 * config/arc/arc.md: Expand adc_0 comment stating the intended
14299 purpose and why it isn't ready.
14300 Replace commented out call_value_via_label_mixed with a
14301 plain comment about bl_s.
14303 * config/arc/arc.c (stdio.h): Don't include directly.
14304 (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
14305 Remove if (1) condition.
14306 (arc_encode_section_info): Fix comment.
14308 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
14310 * config/arc/arc.c (arc_conditional_register_usage):
14311 Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
14312 Also set reg_alloc_order for DMA config regs.
14314 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
14315 Jeremy Bennett <jeremy.bennett@embecosm.com>
14317 * doc/install.texi (--with-cpu): Mention ARC.
14318 (arc-*-elf32): New paragraph.
14319 (arc-linux-uclibc): Likewise.
14320 * doc/md.texi (Machine Constraints): Add ARC part.
14321 * doc/invoke.texi: (menu): Add ARC Options.
14322 (Machine Dependent Options) <ARC Options>: Add synopsis.
14323 (node ARC Options): Add.
14324 * doc/extend.texi (long_call / short_call attribute): Add ARC.
14325 (ARC Built-in Functions): New section defining
14326 generic ARC built-in functions.
14327 (ARC SIMD Built-in Functions): New section defining SIMD specific
14328 built-in functions.
14329 (Declaring Attributes of Functions): Extended
14330 description of short_call and long_call attributes for ARC and
14331 added index entries.
14333 2013-10-01 Saurabh Verma <saurabh.verma@codito.com>
14334 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
14335 Joern Rennecke <joern.rennecke@embecosm.com>
14336 Muhammad Khurram Riaz <khurram.riaz@arc.com>
14337 Brendan Kehoe <brendan@zen.org>
14338 Michael Eager <eager@eagercon.com>
14339 Simon Cook <simon.cook@embecosm.com>
14340 Jeremy Bennett <jeremy.bennett@embecosm.com>
14342 * config/arc, common/config/arc: New directories.
14344 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
14345 Brendan Kehoe <brendan@zen.org>
14346 Simon Cook <simon.cook@embecosm.com>
14348 * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
14350 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
14352 * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
14353 * tree-ssa-coalesce.h: New. Move prototype to here.
14354 * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
14355 * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
14356 (gimple_can_coalesce_p): Move to...
14357 * gimple.c (gimple_can_coalesce_p): Here.
14359 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
14361 * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
14362 (dump_decl_set): Move to gimple.c.
14363 * gimple.h: Don't include tree-ssa-operands.h.
14364 (dump_decl_set): Add prototype.
14365 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
14366 Move to gimple-ssa.h.
14367 (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
14368 gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
14369 gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
14370 gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
14371 * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
14373 (dump_decl_set): Relocate here.
14374 * gimple-ssa.h: New file.
14375 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
14376 Relocate from gimple.h.
14377 * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
14378 * tree-ssa-operands.c (swap_ssa_operands): Rename from
14379 swap_tree_operands and remove non-ssa path.
14380 (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
14381 * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
14383 * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
14384 vect_is_simple_reduction_1): Use swap_ssa_operands.
14385 * tree-flow.h: Move various prototypes to tree-phinodes.h.
14386 (enum need_phi_state): Move to tree-into-ssa.c.
14387 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
14388 BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
14389 (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
14390 * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
14391 link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
14392 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
14393 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
14394 num_imm_uses): Move to ssa-iterators.h.
14395 (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
14396 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
14398 (op_iter_done, op_iter_next_def, op_iter_next_tree,
14399 clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
14400 op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
14401 single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
14402 num_ssa_operands, delink_stmt_imm_use, single_phi_def,
14403 op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
14404 end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
14405 first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
14406 end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
14407 (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
14408 gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
14409 gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
14410 phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
14411 (set_phi_nodes): Move to tree-phinodes.h.
14412 * tree-ssa-operands.h (enum ssa_op_iter_type,
14413 struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
14414 ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
14415 (dump_decl_set): Remove prototype.
14416 (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
14417 * tree-phinodes.h: New file. Move some prototypes from tree-flow.h.
14418 (set_phi_nodes): Relocate from tree-flow-inline.h.
14419 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
14421 * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
14422 include list. Temporarily add gimple.h to include list.
14423 * ssa-iterators.h: New file.
14424 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
14425 BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
14426 (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
14427 FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
14428 Relocate from tree-ssa-operands.h.
14429 (delink_imm_use, link_imm_use_to_list, link_imm_use,
14430 set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
14431 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
14432 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
14433 num_imm_uses, get_use_from_ptr, get_def_from_ptr,
14434 phi_arg_index_from_use, op_iter_done, op_iter_next_def,
14435 op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
14436 op_iter_init_use, op_iter_init_def, op_iter_init_tree,
14437 single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
14438 zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
14439 single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
14440 end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
14441 link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
14442 first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
14443 Relocate from tree-flow-inline.h.
14444 * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
14446 2013-10-01 Vidya Praveen <vidyapraveen@arm.com>
14449 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
14450 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
14451 Insert '\t' to output template.
14452 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
14453 (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
14454 gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
14455 (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
14457 2013-10-01 Uros Bizjak <ubizjak@gmail.com>
14459 * doc/install.texi (Host/target specific installation notes for GCC):
14460 Put @anchor before @heading.
14461 * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
14462 Use @email for email addresses.
14464 2013-10-01 Jeff Law <law@redhat.com>
14466 * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
14467 a vec. Only delete the path if we create one without successfully
14468 registering a jump thread.
14469 * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
14471 * tree-ssa-threadupdate.c (threaded_edges): Remove. No longer used
14472 (paths): New vector of jump threading paths.
14473 (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
14474 (THREAD_PATH): New accessor macro for the entire thread path.
14475 (lookup_redirection_data): Get intermediate and final outgoing edge
14476 from the thread path.
14477 (create_edge_and_update_destination_phis): Copy the threading path.
14478 (ssa_fix_duplicate_block_edges): Get edges and block types from the
14479 jump threading path.
14480 (ssa_redirect_edges): Get edges and block types from the jump threading
14481 path. Free the path vector.
14482 (thread_block): Get edges from the jump threading path. Look at the
14483 entire path to see if we thread to a loop exit. If we cancel a jump
14484 thread request, then free the path vector.
14485 (thread_single_edge): Get edges and block types from the jump threading
14486 path. Free the path vector.
14487 (thread_through_loop_header): Get edges and block types from the jump
14488 threading path. Free the path vector.
14489 (mark_threaded_blocks): Iterate over the vector of paths and store
14490 the path on the appropriate edge. Get edges and block types from the
14491 jump threading path.
14492 (mark_threaded_blocks): Get edges and block types from the jump
14493 threading path. Free the path vector.
14494 (thread_through_all_blocks): Use the vector of paths rather than
14495 a vector of 3-edge sets.
14496 (register_jump_thread): Accept pointer to a path vector rather
14497 than the path vector itself. Store the path vector for later use.
14500 2013-10-01 Jakub Jelinek <jakub@redhat.com>
14501 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14504 * config/s390/s390.c (s390_split_branches): Modify check for table
14506 (s390_chunkify_start): Rearrange table jump insn check in order to
14507 deal with compare and branch insns correctly.
14509 2013-10-01 Kugan Vivekanandarajah <kuganv@linaro.org>
14513 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
14514 * config/arm/arm.md (arm_ashldi3_1bit): define_insn into
14515 define_insn_and_split.
14516 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
14517 (shiftsi3_compare): New pattern.
14518 (rrx): New pattern.
14519 * config/arm/unspecs.md (UNSPEC_RRX): New.
14521 2013-10-01 Alan Modra <amodra@gmail.com>
14523 * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
14524 casing inout operands.
14526 2013-10-01 Richard Biener <rguenther@suse.de>
14528 PR tree-optimization/58553
14529 * tree-loop-distribution.c (struct partition_s): Add niter member.
14530 (classify_partition): Populate niter member for the partition
14531 and properly identify whether the relevant store happens before
14532 or after the loop exit.
14533 (generate_memset_builtin): Use niter member from the partition.
14534 (generate_memcpy_builtin): Likewise.
14536 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
14538 * vec.h (vec_prefix, vec): Prefix member names with "m_".
14539 * vec.c (vec_prefix::calculate_allocation): Update accordingly.
14541 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
14543 * basic-block.h (edge_list): Prefix member names with "m_".
14544 * context.h (context): Likewise.
14545 * domwalk.h (dom_walker): Likewise.
14546 * gengtype-state.c (s_expr_writer, state_writer): Likewise.
14547 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
14548 * hash-table.h (hash_table): Likewise.
14549 * machmode.h (bit_field_mode_iterator): Likewise.
14550 * pass_manager.h (pass_list): Likewise.
14551 * tree-into-ssa.c (mark_def_dom_walker): Likewise.
14552 * tree-pass.h (pass_data): Likewise.
14553 * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
14554 * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
14555 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
14556 * asan.c (pass_data_asan): Update accordingly.
14557 * cfganal.c (control_dependences::find_control_dependence): Likewise.
14558 (control_dependences::control_dependences): Likewise.
14559 (control_dependences::~control_dependences): Likewise.
14560 (control_dependences::~control_dependences): Likewise.
14561 (control_dependences::get_edges_dependent_on): Likewise.
14562 * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
14563 (pass_data_remove_cgraph_callee_edges::clone): Likewise.
14564 * context.c (gcc::context::context): Likewise.
14565 * cprop.c (pass_rtl_cprop::clone): Likewise.
14566 * domwalk.c (dom_walker::walk): Likewise.
14567 * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
14568 * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
14569 * mode-switching.c (pass_mode_switching::clone): Likewise.
14570 * passes.c (opt_pass::opt_pass): Likewise.
14571 (pass_manager::pass_manager): Likewise.
14572 * predict.c (pass_strip_predict_hints::clone): Likewise.
14573 * recog.c (pass_data pass_data_peephole2::clone): Likewise.
14574 (pass_split_all_insns::clone): Likewise.
14575 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
14577 (bit_field_mode_iterator::next_mode): Likewise.
14578 (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
14579 * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
14580 * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
14581 * tree-complex.c (pass_lower_complex::clone): Likewise.
14582 * tree-eh.c (pass_cleanup_eh::clone): Likewise.
14583 * tree-object-size.c (pass_object_sizes::clone): Likewise.
14584 * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
14585 * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
14586 (pass_fold_builtins::clone): Likewise.
14587 * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
14588 * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
14589 * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
14590 (pass_cd_dce::clone): Likewise.
14591 * tree-ssa-dom.c (pass_dominator::clone): Likewise.
14592 (pass_phi_only_cprop::clone): Likewise.
14593 * tree-ssa-dse.c (pass_dse::clone): Likewise.
14594 * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
14595 * tree-ssa-loop.c (pass_lim::clone): Likewise.
14596 * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
14597 * tree-ssa-pre.c (pass_fre::clone): Likewise.
14598 * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
14599 * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
14600 * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
14601 * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
14602 * tree-vrp.c (pass_vrp::clone): Likewise.
14603 * tsan.c (pass_tsan::clone): Likewise.
14605 2013-09-30 Jakub Jelinek <jakub@redhat.com>
14607 PR middle-end/58564
14608 * fold-const.c (tree_unary_nonnegative_warnv_p): Use
14609 INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
14611 PR middle-end/58564
14612 * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
14613 optimization, punt if sign_bit_p looked through any zero extension.
14615 2013-09-30 Teresa Johnson <tejohnson@google.com>
14617 * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
14618 Update redirected out edge count in joiner case.
14619 (ssa_redirect_edges): Common the joiner and non-joiner cases
14620 so that joiner case gets profile updates.
14622 2013-09-30 Richard Biener <rguenther@suse.de>
14624 PR tree-optimization/58554
14625 * tree-loop-distribution.c (classify_partition): Require
14626 unconditionally executed stores for memcpy and memset recognition.
14627 (tree_loop_distribution): Calculate dominance info.
14629 2013-09-30 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
14631 * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
14632 (NO_PROFILE_COUNTERS): Likewise.
14633 (PROFILE_HOOK): Likewise.
14634 (FUNCTION_PROFILER): Likewise.
14635 * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
14637 2013-09-30 Iain Sandoe <iain@codesourcery.com>
14639 * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
14640 calls and defines in TARGET_MACHO conditional.
14641 (load_macho_picbase_di): Likewise.
14642 (reload_macho_picbase): Likewise.
14643 (reload_macho_picbase_si): Likewise.
14644 (reload_macho_picbase_di): Likewise.
14645 (nonlocal_goto_receiver): Likewise.
14647 2013-09-30 Nick Clifton <nickc@redhat.com>
14649 * config/msp430/msp430.c (msp430x_names): New array. Lists MCUs
14650 that use the MSP430X ISA.
14651 (msp430_option_override): Scan -mmcu command line option for any
14652 MCU name that supports the MSP430X ISA.
14653 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
14654 -mmcu options which enable the MSP430X ISA.
14656 2013-09-30 Richard Biener <rguenther@suse.de>
14658 PR middle-end/58532
14659 * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
14660 before looking for setjmp-like calls.
14662 2013-09-29 Iain Sandoe <iain@codesourcery.com>
14665 * config/darwin-protos.h (machopic_get_function_picbase): New.
14666 * config/darwin.c (machopic_get_function_picbase): New.
14667 * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
14668 label for a new func. (load_macho_picbase_di): Likewise.
14669 (reload_macho_picbase): New expand.
14670 (reload_macho_picbase_si): New insn.
14671 (reload_macho_picbase_di): New insn.
14672 (nonlocal_goto_receiver): New define and split.
14673 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
14674 (unspecv enum): Add UNSPECV_NLGR.
14676 2013-09-29 Iain Sandoe <iain@codesourcery.com>
14678 * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
14679 that altivec registers are correctly sized on Darwin.
14681 2013-09-29 Iain Sandoe <iain@codesourcery.com>
14683 * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
14684 darwin-driver.o): Use COMPILE and POSTCOMPILE.
14685 * config/x-darwin (host-darwin.o): Likewise.
14686 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
14687 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
14688 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
14690 2013-09-29 Uros Bizjak <ubizjak@gmail.com>
14692 * doc/invoke.texi: Fix usage of @tie{} command.
14694 2013-09-29 Eric Botcazou <ebotcazou@adacore.com>
14696 * config/sparc/sync.md: Add peephole for consecutive memory barriers.
14698 2013-09-28 Jan Hubicka <jh@suse.cz>
14700 * config/i386/x86-tune.def: Add documentation for each of the options;
14703 2013-09-28 Jan Hubicka <jh@suse.cz>
14705 * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
14707 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
14708 (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
14709 (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
14710 (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
14711 (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
14713 2013-09-28 Richard Sandiford <rdsandiford@googlemail.com>
14715 * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
14716 bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
14717 cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
14718 cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
14719 combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
14720 cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
14721 df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
14722 dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
14723 errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
14724 fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
14725 gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
14726 genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
14727 genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
14728 genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
14729 gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
14730 gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
14731 gimple.h, godump.c, graphite-clast-to-gimple.c,
14732 graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
14733 graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
14734 hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
14735 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
14736 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
14737 ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
14738 loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
14739 lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
14740 mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
14741 pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
14742 predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
14743 profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
14744 regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
14745 reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
14746 sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
14747 statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
14748 system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
14749 tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
14750 tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
14751 tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
14752 tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
14753 tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
14754 tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
14755 tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
14756 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
14757 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
14758 tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
14759 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
14760 tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
14761 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
14762 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
14763 tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
14764 tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
14765 tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
14766 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
14767 tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
14768 tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
14769 varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
14770 whitespace before "(".
14772 2013-09-28 Sandra Loosemore <sandra@codesourcery.com>
14774 * expr.h (extract_bit_field): Remove packedp parameter.
14775 * expmed.c (extract_fixed_bit_field): Remove packedp parameter
14776 from forward declaration.
14777 (store_split_bit_field): Remove packedp arg from calls to
14778 extract_fixed_bit_field.
14779 (extract_bit_field_1): Remove packedp parameter and packedp
14780 argument from recursive calls and calls to extract_fixed_bit_field.
14781 (extract_bit_field): Remove packedp parameter and corresponding
14782 arg to extract_bit_field_1.
14783 (extract_fixed_bit_field): Remove packedp parameter. Remove code
14785 (extract_split_bit_field): Remove packedp arg from call to
14786 extract_fixed_bit_field.
14787 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
14788 (copy_blkmode_from_reg): Likewise.
14789 (copy_blkmode_to_reg): Likewise.
14790 (read_complex_part): Likewise.
14791 (store_field): Likewise.
14792 (expand_expr_real_1): Likewise.
14793 * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
14794 to extract_bit_field.
14795 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
14796 call to extract_bit_field.
14797 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
14798 call to extract_bit_field.
14799 * doc/invoke.texi (Code Gen Options): Remove mention of warnings
14800 and special packedp behavior from -fstrict-volatile-bitfields
14803 2013-09-27 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14805 * lra-eliminations.c (init_elim_table): Guard value_p.
14807 2013-09-27 Michael Meissner <meissner@linux.vnet.ibm.com>
14809 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
14810 DFmode, DImode, and SFmode in the upper VSX registers based on the
14811 -mupper-regs-{df,sf} flags. Fix wu constraint to be ALTIVEC_REGS
14812 if -mpower8-vector. Combine -mvsx-timode handling with the rest
14813 of the VSX register handling.
14815 * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
14816 (f32_sv): Likewise.
14817 (zero_extendsidi2_lfiwzx): Add support for loading into the
14818 Altivec registers with -mpower8-vector. Use wu/wv constraints to
14819 only do VSX memory options on Altivec registers.
14820 (extendsidi2_lfiwax): Likewise.
14821 (extendsfdf2_fpr): Likewise.
14822 (mov<mode>_hardfloat, SF/SD modes): Likewise.
14823 (mov<mode>_hardfloat32, DF/DD modes): Likewise.
14824 (mov<mode>_hardfloat64, DF/DD modes): Likewise.
14825 (movdi_internal64): Likewise.
14827 2013-09-27 Xinliang David Li <davidxl@google.com>
14829 * opts.c (finish_options): Adjust parameters
14830 according to vect cost model.
14831 (common_handle_option): Set dynamic vect cost
14833 targhooks.c (default_add_stmt_cost): Compute stmt cost
14835 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
14836 Use helper function.
14837 * tree-vectorizer.h (unlimited_cost_model): New function.
14838 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
14839 * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
14841 (vect_enhance_data_refs_alignment): Ditto.
14842 * flag-types.h: New enum.
14843 * common/config/i386/i386-common.c (ix86_option_init_struct):
14844 No need to initialize vect_cost_model flag.
14845 * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
14848 2013-09-27 Diego Novillo <dnovillo@google.com>
14850 * gimple.h (enum ssa_mode): Remove.
14852 2013-09-27 Paulo Matos <pmatos@broadcom.com>
14854 * cfgloop.h (number_of_loops): Fix typo in check for null.
14856 2013-09-27 Jakub Jelinek <jakub@redhat.com>
14858 PR middle-end/58551
14859 * tree-cfg.c (move_sese_region_to_fn): Also move loops that
14860 are children of outermost saved_cfun's loop, and set it up to
14861 be moved to dest_cfun's outermost loop. Fix up num_nodes adjustments
14862 if loop != loop0 and SESE region contains bbs that belong to loop0.
14864 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
14866 * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
14867 (binary_scale_code_p, get_base_term, get_index_term): New functions.
14868 (set_address_segment, set_address_base, set_address_index)
14869 (set_address_disp): Accept the argument unconditionally.
14870 (baseness): Remove must_be_base_p and must_be_index_p checks.
14871 (decompose_normal_address): Classify as much as possible in the
14874 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
14876 * cse.c (count_reg_usage): Handle INT_LIST.
14877 * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
14878 * reginfo.c (reg_scan_mark_refs): Likewise.
14879 * reload1.c (eliminate_regs_1): Likewise.
14881 2013-09-27 Iain Sandoe <iain@codesourcery.com>
14883 PR middle-end/58547
14884 * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
14887 2013-09-27 Richard Biener <rguenther@suse.de>
14889 PR tree-optimization/58459
14890 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
14891 restriction not propagating into loops.
14893 2013-09-26 Florian Weimer <fw@deneb.enyo.de>
14895 * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
14896 * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
14897 * doc/tree-ssa.texi (Walking use-def chains): Delete.
14899 2013-09-26 Richard Biener <rguenther@suse.de>
14901 * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
14903 2013-09-26 Richard Biener <rguenther@suse.de>
14905 * alias.h (component_uses_parent_alias_set): Rename to ...
14906 (component_uses_parent_alias_set_from): ... this.
14907 * alias.c (component_uses_parent_alias_set): Rename to ...
14908 (component_uses_parent_alias_set_from): ... this and return
14909 the desired parent.
14910 (reference_alias_ptr_type_1): Use the result from
14911 component_uses_parent_alias_set_from instead of stripping
14912 components one at a time.
14913 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
14915 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
14917 * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
14918 Move prototypes to...
14919 * tree-ssa-ter.h: New File. Move prototypes here.
14920 * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
14921 * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
14922 * tree-outof-ssa.c (ssa_is_replaceable_p): New. Refactor common bits
14923 from is_replaceable_p.
14924 * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
14925 (ter_is_replaceable_p): New. Use new refactored ssa_is_replaceable_p.
14926 (process_replaceable): Use ter_is_replaceable_p.
14927 (find_replaceable_in_bb): Use ter_is_replaceable_p.
14928 * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c. Use
14929 newly refactored ssa_is_replaceable_p.
14930 * cfgexpand.c: Include tree-outof-ssa.h.
14931 * ssaexpand.h: Delete.
14933 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
14935 * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
14936 (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
14938 (create_gimple_tmp): Delete.
14939 (get_expr_type, build_assign, build_type_cast): Move to...
14940 * gimple-builder.c: New File.
14941 (get_expr_type): Relocate from gimple.c.
14942 (build_assign, build_type_cast): Change to only create ssanames.
14943 * gimple.h: Move prototypes to...
14944 * gimple-builder.h: New File. Here.
14945 * tree-ssa.h: And here.
14946 * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
14947 count_uses_and_derefs): Relocate from gimple.c.
14948 (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
14949 * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
14950 * tree-ssa-math-opts (execute_cse_reciprocals): Use
14951 gimple_replace_ssa_lhs.
14952 * asan.c: Include gimple-builder.h.
14953 * Makefile.in: Add gimple-builder.o.
14955 2013-09-26 Richard Biener <rguenther@suse.de>
14957 * tree-ssa-live.c (var_map_base_init): Handle SSA names with
14958 DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
14959 (loe_visit_block): Use gcc_checking_assert.
14960 * tree-ssa-coalesce.c (create_outofssa_var_map): Use
14961 gimple_assign_ssa_name_copy_p.
14962 (gimple_can_coalesce_p): Adjust according to the var_map_base_init
14965 2013-09-26 David Edelsohn <dje.gcc@gmail.com>
14967 * config/rs6000/t-rs6000 (rs6000.o): Remove.
14968 (rs6000-c.o): Use COMPILE and POSTCOMPILE.
14970 2013-09-26 Richard Biener <rguenther@suse.de>
14972 PR tree-optimization/58539
14973 * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
14974 the fact that debug statements are not taking part in loop-closed
14977 2013-09-26 Nick Clifton <nickc@redhat.com>
14979 * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
14980 time warning message.
14981 (msp430_print_operand_raw): Delete unused letter parameter.
14982 (TARGET_PRINT_OPERAND_ADDRESS): Define.
14983 (msp430_print_operand_address): New function.
14984 (msp430_print_operand): Move address printing code from here to
14986 * config/msp430/msp430.md (movsipsi2): Add comment in generated
14988 (zero_extendpsisi2): Likewise.
14989 (extendpsisi2): New pattern.
14990 (andneghi3): New pattern.
14992 2013-09-26 Yvan Roux <yvan.roux@linaro.org>
14994 * config/aarch64/aarch64.opt (mlra): New option.
14995 * config/aarch64/aarch64.c (aarch64_lra_p): New function.
14996 (TARGET_LRA_P): Define.
14998 2013-09-26 Eric Botcazou <ebotcazou@adacore.com>
15000 * expr.c (expand_assignment): Remove obsolete comment.
15002 2013-09-25 Jeff Law <law@redhat.com>
15004 * tree-flow.h (thread_through_all_blocks): Prototype moved into
15005 tree-ssa-threadupdate.h.
15006 (register_jump_thread): Similarly.
15007 * tree-ssa-threadupdate.h: New header file.
15008 * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
15009 * tree-vrp.c: Likewise.
15010 * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
15011 (thread_around_empty_blocks): Change type of path vector argument to
15012 an edge,type pair from just an edge. Initialize both elements when
15013 appending to a jump threading path. Tweak references to elements
15015 (thread_across_edge): Similarly. Release memory for the elements
15017 * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
15018 (dump_jump_thread_path): New function broken out from
15019 register_jump_thread.
15020 (register_jump_thread): Use dump_jump_thread_path. Change type of
15021 path vector entries. Search the path for NULL edges and dump
15022 the path if one is found. Tweak the conversion of path to 3-edge
15023 form to use the block copy type information embedded in the path.
15025 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
15027 * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
15029 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
15030 Vladimir Makarov <vmakarov@redhat.com>
15032 * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
15033 from the least significant bit.
15034 (strip_address_mutations): Add bitfield operations handling.
15035 (must_be_index_p): Add shifting and rotate operations handling.
15036 (set_address_base): Use must_be_base_p predicate.
15037 (set_address_index): Use must_be_index_p predicate.
15039 2013-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
15040 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15041 Sergey Lega <sergey.s.lega@intel.com>
15042 Anna Tikhonova <anna.tikhonova@intel.com>
15043 Ilya Tocar <ilya.tocar@intel.com>
15044 Andrey Turetskiy <andrey.turetskiy@intel.com>
15045 Ilya Verbin <ilya.verbin@intel.com>
15046 Kirill Yukhin <kirill.yukhin@intel.com>
15047 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15049 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
15051 (ix86_expand_vector_move_misalign): Support new unaligned load and
15052 stores and use new names.
15053 (CODE_FOR_sse2_storedqu): Rename to ...
15054 (CODE_FOR_sse2_storedquv16qi): ... this.
15055 (CODE_FOR_sse2_loaddqu): Rename to ...
15056 (CODE_FOR_sse2_loaddquv16qi): ... this.
15057 (CODE_FOR_avx_loaddqu256): Rename to ...
15058 (CODE_FOR_avx_loaddquv32qi): ... this.
15059 (CODE_FOR_avx_storedqu256): Rename to ...
15060 (CODE_FOR_avx_storedquv32qi): ... this.
15061 * config/i386/i386.md (fpint_logic): New.
15062 * config/i386/sse.md (VMOVE): Extend for AVX512.
15066 (VI_UNALIGNED_LOADSTORE): Ditto.
15067 (sse2_avx_avx512f): Ditto.
15068 (sse2_avx2): Extend for AVX512.
15069 (sse4_1_avx2): Ditto.
15070 (avx2_avx512f): New.
15071 (sse): Extend for AVX512.
15074 (avxsizesuffix): Ditto.
15075 (sseintvecmode): Ditto.
15076 (ssePSmode): Ditto.
15077 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
15078 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
15079 (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
15080 (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
15081 (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
15082 (<sse2_avx_avx512f>_storedqu<mode): ... this.
15083 (<sse>_movnt<mode>): Replace constraint "x" with "v".
15084 (STORENT_MODE): Extend for AVX512.
15085 (*absneg<mode>2): Replace constraint "x" with "v".
15086 (*mul<mode>3): Ditto.
15087 (*ieee_smin<mode>3): Ditto.
15088 (*ieee_smax<mode>3): Ditto.
15089 (avx_cmp<mode>3): Replace VF with VF_128_256.
15090 (*<sse>_maskcmp<mode>3_comm): Ditto.
15091 (<sse>_maskcmp<mode>3): Ditto.
15092 (<sse>_andnot<mode>3): Extend for AVX512.
15093 (<code><mode>3, anylogic): Replace VF with VF_128_256.
15094 (<code><mode>3, fpint_logic): New.
15095 (*<code><mode>3): Extend for AVX512.
15096 (avx512flogicsuff): New.
15097 (avx512f_<logic><mode>): Ditto.
15098 (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
15100 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
15101 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
15102 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
15103 (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
15104 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
15105 (xop_vpermil2<mode>3): Ditto.
15106 (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
15107 (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
15108 (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
15109 (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
15111 2013-09-25 Tom Tromey <tromey@redhat.com>
15113 * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
15114 (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
15115 (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
15116 (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
15117 (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
15118 (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
15119 (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
15120 (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
15121 (GRAPHITE_HTAB_H): Remove.
15123 2013-09-25 Tom Tromey <tromey@redhat.com>
15125 * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
15127 2013-09-25 Tom Tromey <tromey@redhat.com>
15129 * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
15131 2013-09-25 Tom Tromey <tromey@redhat.com>
15133 * config/i386/t-i386 (i386.o): Remove.
15134 (i386-c.o): Use COMPILE and POSTCOMPILE.
15136 2013-09-25 Tom Tromey <tromey@redhat.com>
15138 * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
15140 2013-09-25 Tom Tromey <tromey@redhat.com>
15142 * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
15143 (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
15144 (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
15145 (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
15146 (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
15147 (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
15148 (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
15149 (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
15150 (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
15151 (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
15152 (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
15153 (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
15154 (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
15155 (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
15156 (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
15157 (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
15158 (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
15159 (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
15160 (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
15161 (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
15162 (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
15163 (tree-ssa-pre.o, tree-ssa-sccvn.o)
15164 (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
15165 (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
15166 (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
15167 (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
15168 (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
15169 (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
15170 (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
15171 (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
15172 (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
15173 (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
15174 (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
15175 (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
15176 (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
15177 (graphite-clast-to-gimple.o, graphite-dependences.o)
15178 (graphite-interchange.o, graphite-poly.o)
15179 (graphite-scop-detection.o, graphite-sese-to-poly.o)
15180 (graphite-optimize-isl.o, tree-vect-loop.o)
15181 (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
15182 (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
15183 (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
15184 (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
15185 (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
15186 (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
15187 (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
15188 (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
15189 (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
15190 (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
15191 (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
15192 (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
15193 (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
15194 (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
15195 (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
15196 (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
15197 (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
15198 (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
15199 (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
15200 (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
15201 (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
15202 (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
15203 (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
15204 (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
15205 (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
15206 (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
15207 (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
15208 (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
15209 (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
15210 (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
15211 (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
15212 (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
15213 (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
15214 (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
15215 (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
15216 (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
15217 (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
15218 (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
15219 (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
15220 (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
15221 (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
15222 (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
15223 (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
15224 (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
15225 (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
15226 (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
15227 (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
15228 (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
15229 (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
15230 (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
15231 (gcov-dump.o): Remove.
15232 (default-c.o): Use COMPILE and POSTCOMPILE.
15233 (CFLAGS-gcc.o): New variable.
15234 ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
15236 2013-09-25 Tom Tromey <tromey@redhat.com>
15238 * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
15239 (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
15240 (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
15241 (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
15242 (c-family/c-pragma.o, c-family/c-pretty-print.o)
15243 (c-family/c-semantics.o, c-family/c-ada-spec.o)
15244 (c-family/array-notation-common.o, c-family/stub-objc.o)
15245 (c-family/c-ubsan.o): Remove.
15247 2013-09-25 Tom Tromey <tromey@redhat.com>
15249 * Makefile.in (C_TREE_H): Reference c/c-tree.h.
15251 2013-09-25 Tom Tromey <tromey@redhat.com>
15253 * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
15254 to add -DENABLE_SHARED_LIBGCC.
15255 (gcc.o): Don't use subshell.
15257 2013-09-25 Tom Tromey <tromey@redhat.com>
15259 * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
15260 * configure.ac: Don't invoke AM_PROG_CC_C_O.
15261 (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
15262 * configure, config.in: Rebuild.
15264 2013-09-25 Tom Tromey <tromey@redhat.com>
15266 * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
15267 (COMPILE, POSTCOMPILE): New variables.
15268 (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
15269 (DEPFILES): New variable.
15270 Include ".Po" files.
15271 * configure.ac: Add checks for dependency checking.
15272 * configure, aclocal.m4: Regenerate.
15274 2013-09-25 Tom Tromey <tromey@redhat.com>
15276 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
15277 ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
15279 2013-09-25 Tom Tromey <tromey@redhat.com>
15281 * Makefile.in (generated_files): Add options.h,
15282 target-hooks-def.h, insn-opinit.h,
15283 common/common-target-hooks-def.h, pass-instances.def,
15284 c-family/c-target-hooks-def.h.
15286 2013-09-25 Jeff Law <law@redhat.com>
15288 * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
15289 than foo[foo.length () - 1] to access last member in a vec.
15290 * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
15292 2013-09-25 Richard Biener <rguenther@suse.de>
15294 PR middle-end/58521
15295 * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
15297 2013-09-25 Jan Hubicka <jh@suse.cz>
15299 * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
15302 2013-09-25 Marek Polacek <polacek@redhat.com>
15305 * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
15306 when determining the type name.
15308 2013-09-24 Oleg Endo <olegendo@gcc.gnu.org>
15310 * config/sh/sh.md: Fix formatting.
15312 2013-09-24 Xinliang David Li <davidxl@google.com>
15314 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
15315 max peel iterations parameter.
15316 * param.def: New parameter.
15317 * doc/invoke.texi: Document New parameter.
15319 2013-09-24 Christophe Lyon <christophe.lyon@linaro.org>
15321 * gimple-pretty-print.c: Various whitespace tweaks.
15322 * tree-core.h: Likewise.
15323 * tree-pretty-print.c: Likewise.
15324 * tree-ssa-alias.c: Likewise.
15325 * tree-ssa-copy.c: Likewise.
15326 * tree-ssanames.c: Likewise.
15327 * tree-ssanames.h: Likewise.
15328 * tree-vrp.c: Likewise.
15330 2013-09-24 Alan Modra <amodra@gmail.com>
15332 PR middle-end/57134
15333 PR middle-end/57586
15334 * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
15335 for output operands that disallow regs. Don't use EXPAND_WRITE on
15338 2013-09-24 Richard Biener <rguenther@suse.de>
15340 PR middle-end/58513
15341 * tree.c (reference_alias_ptr_type): Move ...
15342 * alias.c (reference_alias_ptr_type): ... here and implement
15343 in terms of the new reference_alias_ptr_type_1.
15344 (ref_all_alias_ptr_type_p): New helper.
15345 (get_deref_alias_set_1): Drop flag_strict_aliasing here,
15346 use ref_all_alias_ptr_type_p.
15347 (get_deref_alias_set): Add flag_strict_aliasing check here.
15348 (reference_alias_ptr_type_1): New function, split out from ...
15349 (get_alias_set): ... here.
15350 (alias_ptr_types_compatible_p): New function.
15351 * alias.h (reference_alias_ptr_type): Declare.
15352 (alias_ptr_types_compatible_p): Likewise.
15353 * tree.h (reference_alias_ptr_type): Remove.
15354 * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
15355 to compare MEM_REF alias types.
15357 2013-09-24 Richard Biener <rguenther@suse.de>
15359 * tree-vrp.c (vrp_finalize): Check for SSA name presence.
15361 2013-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
15363 * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
15364 reload helper function arrays into a single array reg_addr.
15365 (reload_fpr_gpr): Likewise.
15366 (reload_gpr_vsx): Likewise.
15367 (reload_vsx_gpr): Likewise.
15368 (struct rs6000_reg_addr): Likewise.
15369 (reg_addr): Likewise.
15370 (rs6000_debug_reg_global): Change rs6000_vector_reload,
15371 reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
15372 (rs6000_init_hard_regno_mode_ok): Likewise.
15373 (rs6000_secondary_reload_direct_move): Likewise.
15374 (rs6000_secondary_reload): Likewise.
15376 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
15377 constraints: wu, ww, and wy. Repurpose wv constraint added during
15378 power8 changes. Put wg constraint in alphabetical order.
15380 * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
15381 for future work to add ISA 2.07 VSX single precision support.
15382 (-mvsx-scalar-double): Change default from -1 to 1, update
15383 documentation comment.
15384 (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
15385 (-mupper-regs-df): New debug switch to control whether DF values
15386 can go in the traditional Altivec registers.
15387 (-mupper-regs-sf): New debug switch to control whether SF values
15388 can go in the traditional Altivec registers.
15390 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
15391 and wy constraints.
15392 (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
15393 loop variables. Rename -mvsx-scalar-memory to -mupper-regs-df.
15394 Add new constraints, wu/ww/wy. Repurpose wv constraint.
15395 (rs6000_debug_legitimate_address_p): Print if we are running
15396 before, during, or after reload.
15397 (rs6000_secondary_reload): Add a comment.
15398 (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
15400 * config/rs6000/constraints.md (wa constraint): Sort w<x>
15401 constraints. Update documentation string.
15402 (wd constraint): Likewise.
15403 (wf constraint): Likewise.
15404 (wg constraint): Likewise.
15405 (wn constraint): Likewise.
15406 (ws constraint): Likewise.
15407 (wt constraint): Likewise.
15408 (wx constraint): Likewise.
15409 (wz constraint): Likewise.
15410 (wu constraint): New constraint for ISA 2.07 SFmode scalar
15412 (ww constraint): Likewise.
15413 (wy constraint): Likewise.
15414 (wv constraint): Repurpose ISA 2.07 constraint that we did not use
15415 in the previous submissions.
15416 * doc/md.texi (PowerPC and IBM RS6000): Likewise.
15418 2013-09-23 Richard Sandiford <rdsandiford@googlemail.com>
15420 * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
15421 (REG_BR_PROB): Say that the probability is stored in an int_list.
15422 * reg-notes.def: Update commentary to mention INT_LIST.
15423 * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
15424 (INT_LIST): New rtx.
15425 * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
15426 * rtlanal.c (int_reg_note_p): New function.
15427 (alloc_reg_note): Assert that the note does not have an int argument.
15428 (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
15429 * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
15430 * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
15431 rather than an INSN_LIST. Handle INT_LIST.
15432 * ifcvt.c (cond_exec_process_insns): Take the probability as an int
15433 rather than an rtx. Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
15434 (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
15435 Manipulate them as ints rather than rtxes.
15436 * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
15437 * regmove.c (copy_src_to_dest): Likewise.
15438 * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
15440 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
15441 into the cases that need it.
15442 * config/arm/arm.c (arm_unwind_emit): Likewise.
15444 * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
15445 * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
15446 * loop-doloop.c (add_test, doloop_modify): Likewise.
15447 * loop-unswitch.c (compare_and_jump_seq): Likewise.
15448 * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
15449 * predict.c (combine_predictions_for_insn): Likewise.
15450 * print-rtl.c (print_rtx): Handle INT_LIST.
15451 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
15452 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
15453 * config/arm/arm.c (emit_unlikely_jump): Likewise.
15454 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
15455 (ix86_split_fp_branch, predict_jump): Likewise.
15456 * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
15457 * config/sh/sh.c (expand_cbranchsi4): Likewise.
15458 * config/spu/spu.c (ea_load_store_inline): Likewise.
15460 * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
15461 value of a REG_BR_PROB note.
15462 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
15463 (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
15464 * emit-rtl.c (try_split): Likewise.
15465 * predict.c (br_prob_note_reliable_p): Likewise.
15466 (invert_br_probabilities, combine_predictions_for_insn): Likewise.
15467 * reorg.c (mostly_true_jump): Likewise.
15468 * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
15469 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
15470 * config/i386/i386.c (ix86_print_operand): Likewise.
15471 * config/ia64/ia64.c (ia64_print_operand): Likewise.
15472 * config/mmix/mmix.c (mmix_print_operand): Likewise.
15473 * config/rs6000/rs6000.c (output_cbranch): Likewise.
15474 * config/s390/s390.c (s390_expand_tbegin): Likewise.
15475 * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
15476 * config/sparc/sparc.c (output_cbranch): Likewise.
15477 * config/spu/spu.c (get_branch_target): Likewise.
15478 * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
15479 * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
15481 2013-09-23 Jan Hubicka <jh@suse.cz>
15483 * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
15485 * ipa-utils.h (possible_polymorphic_call_target_p): New function.
15486 * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
15488 * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
15489 (gimple_fold_call): Dump inconsistent devirtualizations; add
15490 sanity check for type based devirtualizations.
15491 * ipa-prop.c: Include ipa-utils.h
15492 (ipa_intraprocedural_devirtualization): Add sanity check.
15493 (try_make_edge_direct_virtual_call): Likewise.
15495 2013-09-23 Eric Botcazou <ebotcazou@adacore.com>
15497 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
15498 assignment statements.
15500 2013-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
15502 * gimple-pretty-print.c (dump_ssaname_info): New function.
15503 (dump_gimple_phi): Call it.
15504 (pp_gimple_stmt_1): Likewise.
15505 * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
15506 (range_info_def): Declare.
15507 * tree-pretty-print.c (pp_double_int): New function.
15508 (dump_generic_node): Call it.
15509 * tree-pretty-print.h (pp_double_int): Declare.
15510 * tree-ssa-alias.c (dump_alias_info): Check pointer type.
15511 * tree-ssanames.h (range_info_def): New structure.
15512 (value_range_type): Move definition here.
15513 (set_range_info, value_range_type, duplicate_ssa_name_range_info):
15515 * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
15517 (set_range_info): New function.
15518 (get_range_info): Likewise.
15519 (duplicate_ssa_name_range_info): Likewise.
15520 (duplicate_ssa_name_fn): Check pointer type and call
15521 duplicate_ssa_name_range_info.
15522 * tree-ssa-copy.c (fini_copy_prop): Likewise.
15523 * tree-vrp.c (value_range_type): Remove definition, now in
15525 (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
15526 * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
15527 (SSA_NAME_RANGE_INFO): New macro.
15529 2013-09-23 Richard Biener <rguenther@suse.de>
15531 PR tree-optimization/58464
15532 * tree-ssa-pre.c (phi_trans_lookup): Remove.
15533 (phi_trans_add): Change to add conditionally on being not present.
15534 (phi_translate_1): Remove recursion detection here.
15535 (phi_translate): Pre-seed the cache with NULL to catch
15536 recursion here in a more generic way.
15537 (bitmap_find_leader): Adjust comment.
15538 (get_representative_for): Dump value-numbers.
15539 (create_expression_by_pieces): Likewise.
15540 (insert_into_preds_of_block): Likewise.
15542 2013-09-23 Christian Bruel <christian.bruel@st.com>
15545 * config/sh/sh.md (movsf_ie): Allow fpul_operand.
15546 * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
15548 2013-09-23 James Greenhalgh <james.greenhalgh@arm.com>
15551 2013-09-20 Renlin Li <renlin.li@arm.com>
15553 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
15555 (aarch64_expand_epilogue): Likewise.
15556 (aarch64_legitimize_reload_address): Likewise.
15558 2013-09-22 Eric Botcazou <ebotcazou@adacore.com>
15560 * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
15561 NULL_TREE before pushing them onto the vector. Likewise for labels.
15563 2013-09-21 Eric Botcazou <ebotcazou@adacore.com>
15565 * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
15566 comparison operators when -fno-trapping-math is in effect.
15567 * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
15568 comparison operators in TFmode and assert that unsupported operators
15570 (ia64_print_operand): Likewise.
15572 2013-09-21 Jan Hubicka <jh@suse.cz>
15574 * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
15575 (sse_typeless_stores): Enable for core
15576 (sse_load0_by_pxor): Likewise.
15577 (four_jump_limit): Disable for core.
15578 (pad_returns): Likewise.
15579 (avoid_vector_decode): Likewise.
15580 (fuse_cmp_and_branch): Enable for cores.
15581 * i386.c (x86_accumulate_outgoing_args): Disable for cores.
15583 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
15585 PR middle-end/56791
15586 * config/pa/pa.c (pa_option_override): Disable auto increment and
15587 decrement instructions until reload is completed.
15589 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
15590 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
15591 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
15593 2013-09-20 DJ Delorie <dj@redhat.com>
15594 Nick Clifton <nickc@redhat.com>
15596 * config/rl78/rl78.c: Various whitespace and comment tweaks.
15597 (need_to_save): Save bank 0 on interrupts.
15598 (characterize_address): Strip far address wrappers.
15599 (rl78_as_legitimate_address): Likewise.
15600 (transcode_memory_rtx): Likewise.
15601 (rl78_peep_movhi_p): Disable this peephole after devirt.
15602 (rl78_propogate_register_origins): Forget all origins when a
15604 * config/rl78/rl78-virt.md: Various whitespace tweaks.
15605 * config/rl78/rl78-real.md: Various whitespace tweaks. Additional
15607 * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
15608 * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
15609 * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
15611 * config/rl78/constraints.md: Various whitespace and paren tweaks.
15613 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
15615 * config/pa/pa.md: In "scc" insn patterns, change output template to
15616 handle const0_rtx in reg_or_0_operand operands.
15618 2013-09-20 Martin Husemann <martin@NetBSD.org>
15621 * config/vax/vax.c (vax_output_int_move): Use D format specifier.
15622 * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
15624 2013-09-20 Richard Biener <rguenther@suse.de>
15626 PR middle-end/58484
15627 * tree-scalar-evolution.c (struct scev_info_str): Shrink by
15628 remembering SSA name version and block index.
15629 (new_scev_info_str): Adjust.
15630 (hash_scev_info): Likewise. Also hash the block index.
15631 (eq_scev_info): Adjust.
15632 (find_var_scev_info): Likewise.
15633 (struct instantiate_cache_entry): Remove.
15634 (struct instantiate_cache_type): Use a htab to map name, block
15636 (instantiate_cache_type::~instantiate_cache_type): Adjust.
15637 (get_instantiated_value_entry): Likewise.
15638 (hash_idx_scev_info, eq_idx_scev_info): New functions.
15639 (instantiate_scev_name): Adjust.
15641 2013-09-20 Jeff Law <law@redhat.com>
15643 * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
15645 2013-09-20 Yufeng Zhang <yufeng.zhang@arm.com>
15647 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
15648 Call aarch64_simd_expand_args to update op[argc].
15650 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
15652 * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
15655 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
15657 * gengtype.c (file_rules): Added rule for *.cc files.
15658 (get_output_file_with_visibility): Give fatal message when no
15661 2013-09-20 Renlin Li <renlin.li@arm.com>
15663 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
15664 (aarch64_expand_epilogue): Likewise.
15665 (aarch64_legitimize_reload_address): Likewise.
15667 2013-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
15669 PR middle-end/57748
15670 * expr.c (expand_assignment): Remove misalignp code path.
15672 2013-09-20 Marek Polacek <polacek@redhat.com>
15675 * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
15676 TYPE_PRECISION. Add asserts.
15678 2013-09-20 Richard Biener <rguenther@suse.de>
15680 PR tree-optimization/58453
15681 * tree-loop-distribution.c (distribute_loop): Apply the cost
15682 model for -ftree-loop-distribute-patterns, too.
15684 2013-09-20 Richard Biener <rguenther@suse.de>
15686 PR middle-end/58473
15687 * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
15688 make type comparison less strict.
15690 2013-09-20 Alan Modra <amodra@gmail.com>
15692 * configure: Regenerate.
15693 * aclocal.m4: Regenerate.
15695 2013-09-20 Marek Polacek <polacek@redhat.com>
15698 * doc/extend.texi: Document that attribute used is meant to be used
15699 on variables with static storage duration.
15701 2013-09-19 Jakub Jelinek <jakub@redhat.com>
15703 PR tree-optimization/58472
15704 * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
15705 simd_lane_access set inv_p = false.
15706 * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
15707 the simduid magic VAR_DECL.
15709 2013-09-19 Jan Hubicka <jh@suse.cz>
15711 * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
15713 2013-09-17 Jeff Law <law@redhat.com>
15715 * tree-ssa-dom.c (record_temporary_equivalences): New function
15716 split out of dom_opt_dom_walker::after_dom_children.
15717 (dom_opt_dom_walker::thread_across_edge): Move common code
15718 in here from dom_opt_dom_walker::after_dom_children.
15719 (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
15721 2013-09-19 Jan Hubicka <jh@suse.cz>
15723 * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
15724 (TARGET_GENERIC): Use PROCESOR_GENERIC
15725 (enum processor_type): Unify generic32 and 64.
15726 * i386.md (cpu): Likewise.
15727 * x86-tune.def (use_leave): Enable for generic32.
15728 (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
15729 * athlon.md: Change generic64 to generic in all occurences.
15730 * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
15731 (ix86_target_macros_internal): Likewise.
15732 * driver-i386.c (host_detect_local_cpu): Likewise.
15733 * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
15735 (generic_memcpy, generic_memset, generic_cost): This one.
15736 (generic32_memcpy, generic32_memset, generic32_cost): Remove.
15737 (m_GENERIC32, m_GENERIC64): Remove.
15738 (m_GENERIC): Turn into one flag.
15739 (processor_target): Unify generic tunnings.
15740 (ix86_option_override_internal): Replace generic32/64 by generic.
15741 (ix86_issue_rate): Likewise.
15742 (ix86_adjust_cost): Likewise.
15744 2013-09-19 Jan Hubicka <jh@suse.cz>
15746 * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
15747 of speculative flag.
15749 2013-09-19 Jakub Jelinek <jakub@redhat.com>
15751 * omp-low.c (expand_omp_sections): Always pass len - 1 to
15752 GOMP_sections_start, even if !exit_reachable.
15754 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
15756 * lra-constraints.c (need_for_all_save_p): Use macro
15757 HARD_REGNO_CALL_PART_CLOBBERED.
15758 * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
15759 set up pseudo conflict hard regs.
15761 2013-09-18 Michael Meissner <meissner@linux.vnet.ibm.com>
15764 * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
15767 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
15769 PR rtl-optimization/58438
15770 * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
15771 * lra-constraints.c (undo_optional_reloads): Keep optional reloads
15772 from previous subpasses.
15774 2013-09-18 Richard Earnshaw <rearnsha@arm.com>
15776 * arm.c (arm_get_frame_offsets): Validate architecture supports
15777 LDRD/STRD before accepting the tuning preference.
15778 (arm_expand_prologue): Likewise.
15779 (arm_expand_epilogue): Likewise.
15781 2013-09-18 Richard Biener <rguenther@suse.de>
15783 PR tree-optimization/58417
15784 * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
15785 have chrecs with symbols defined in the loop as operands.
15786 (chrec_fold_multiply): Likewise.
15787 * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
15788 parameters before folding binary operations.
15789 (struct instantiate_cache_entry_hasher): Remove.
15790 (struct instantiate_cache_type): Use a pointer-map.
15791 (instantiate_cache_type::instantiate_cache_type): New function.
15792 (instantiate_cache_type::get): Likewise.
15793 (instantiate_cache_type::set): Likewise.
15794 (instantiate_cache_type::~instantiate_cache_type): Adjust.
15795 (get_instantiated_value_entry): Likewise.
15796 (global_cache): New global.
15797 (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
15798 instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
15799 instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
15800 (instantiate_scev_name): Adjust.
15801 (instantiate_scev): Construct global instead of local cache.
15802 (resolve_mixers): Likewise.
15804 2013-09-18 Daniel Morris <danielm@ecoscentric.com>
15805 Paolo Carlini <paolo.carlini@oracle.com>
15808 * doc/implement-cxx.texi: Fix references to the C++ standards.
15810 2013-09-18 Jakub Jelinek <jakub@redhat.com>
15812 * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
15813 * tree-vect-data-refs.c (vect_analyze_data_refs): For
15814 simd_lane_access drs, update also DR_ALIGNED_TO.
15816 2013-09-18 Marek Polacek <polacek@redhat.com>
15819 * doc/extend.texi: Document no_sanitize_undefined attribute.
15820 * builtins.c (fold_builtin_0): Don't sanitize function if it has the
15821 no_sanitize_undefined attribute.
15823 2013-09-18 Nick Clifton <nickc@redhat.com>
15825 * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
15826 (ASM_DECLARE_FUNCTION_NAME): Define.
15828 2013-09-17 Trevor Saunders <tsaunders@mozilla.com>
15830 * compare-elim.c (find_comparison_dom_walker): New class
15831 (find_comparisons_in_bb): Rename to
15832 find_comparison_dom_walker::before_dom_children
15833 (find_comparisons): Adjust
15834 * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
15836 (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
15837 * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
15838 (init_walk_dominator_tree): Remove declaration.
15839 (fini_walk_dominator_tree): Remove declaration.
15840 * fwprop.c (single_def_use_dom_walker): New class
15841 (single_def_use_enter_block): Convert to
15842 single_def_use_dom_walker::before_dom_children.
15843 (single_def_use_leave_block): Convert to
15844 single_def_use_dom_walker::after_dom_children.
15845 (build_single_def_use_links): Adjust.
15846 * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
15848 (find_candidates_in_block): Convert to
15849 find_candidates_dom_walker::before_dom_children.
15850 (execute_strength_reduction): Adjust.
15851 * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
15852 (sese_dom_walker): New class.
15853 (sese_dom_walker::sese_dom_walker): New constructor.
15854 (sese_dom_walker::~sese_dom_walker): New destructor.
15855 (build_sese_conditions_before): Convert to
15856 sese_dom_walker::before_dom_children.
15857 (build_sese_conditions_after): Convert to
15858 sese_dom_walker::after_dom_children.
15859 (build_poly_scop): Adjust
15860 * tree-into-ssa.c (rewrite_dom_walker): New class
15861 (rewrite_enter_block): Convert to
15862 rewrite_dom_walker::before_dom_children.
15863 (rewrite_leave_block): Convert to
15864 rewrite_dom_walker::after_dom_children.
15865 (rewrite_update_dom_walker): New class.
15866 (rewrite_update_enter_block): Convert to
15867 rewrite_update_dom_walker::before_dom_children.
15868 (rewrite_update_leave_block): Convert to
15869 rewrite_update_dom_walker::after_dom_children.
15870 (rewrite_blocks, rewrite_into_ssa): Adjust.
15871 (mark_def_dom_walker): New class.
15872 (mark_def_dom_walker::mark_def_dom_walker): New constructor.
15873 (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
15874 (mark_def_sites_blocks): Convert to
15875 mark_def_dom_walker::before_dom_children.
15876 (mark_def_site_blocks): Remove.
15877 * tree-ssa-dom.c (dom_opt_dom_walker): New class.
15878 (tree_ssa_dominator_optimize): Adjust.
15879 (dom_thread_across_edge): Convert to method
15880 dom_opt_dom_walker::thread_across_edge.
15881 (dom_opt_enter_block): Convert to member function
15882 dom_opt_dom_walker::before_dom_children.
15883 (dom_opt_leave_block): Convert to member function
15884 dom_opt_dom_walker::after_dom_children.
15885 * tree-ssa-dse.c (dse_dom_walker): New class.
15886 (dse_enter_block): Convert to member function
15887 dse_dom_walker::before_dom_children.
15888 (tree_ssa_dse): Adjust.
15889 * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
15890 (determine_invariantness_stmt): Convert to method
15891 invariantness_dom_walker::before_dom_children.
15892 (determine_invariantness): Remove
15893 (move_computations_dom_walker): New class.
15894 (move_computations_stmt): Convert to method
15895 move_computations_dom_walker::before_dom_children.
15896 (move_computations, tree_ssa_lim): Adjust.
15897 * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
15898 (nt_init_block): Convert to method
15899 notrappping_dom_walker::before_dom_children.
15900 (nt_fini_block): Convert to method
15901 method nontrapping_dom_walker::after_dom_children.
15902 (get_non_trapping): Adjust.
15903 * tree-ssa-pre.c (eliminate_dom_walker): New class.
15904 (eliminate_bb): Convert to method
15905 eliminate_dom_walker::before_dom_children.
15906 (eliminate_leave_block): Convert to method
15907 eliminate_dom_walker::after_dom_children.
15908 (eliminate): Adjust.
15909 * tree-ssa-strlen.c (strlen_dom_walker): New class.
15910 (strlen_enter_block): Convert to method
15911 strlen_dom_walker::before_dom_children.
15912 (strlen_leave_block): Convert to method
15913 method strlen_dom_walker::after_dom_children.
15914 (tree_ssa_strlen): Adjust.
15915 * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
15916 (tree_ssa_uncprop): Adjust.
15917 (uncprop_leave_block): Convert to method
15918 uncprop_dom_walker::after_dom_children.
15919 (uncprop_leave_block): Convert to method
15920 uncprop_dom_walker::before_dom_children.
15922 2013-09-18 Bin Cheng <bin.cheng@arm.com>
15924 * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
15925 branch in same basic block. Check both src and dest of the move insn.
15927 2013-09-17 Nick Clifton <nickc@redhat.com>
15929 * config/rl78/rl78-real.md (bf): New pattern.
15931 * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
15932 (rl78_print_operand): Do not put a # before a %B.
15933 * config/rl78/rl78.opt: Tweak doc strings.
15935 2013-09-17 DJ Delorie <dj@redhat.com>
15937 * config/rl78/constraints.md (Wcv): Allow up to $r31.
15938 * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
15939 (rl78_option_override): Likewise, if -mallregs.
15940 (is_virtual_register): Likewise.
15941 * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
15942 (REGNO_OK_FOR_BASE_P): Likewise.
15943 * config/rl78/rl78.opt (-mallregs): New.
15945 2013-09-17 Nick Clifton <nickc@redhat.com>
15947 * config/rl78/rl78.c (need_to_save): Change return type to bool.
15948 For interrupt functions: save all call clobbered registers if the
15949 interrupt handler is not a leaf function.
15950 (rl78_expand_prologue): Always recompute the frame information.
15951 For interrupt functions: only select bank 0 if one of the bank 0
15952 registers is going to be psuhed.
15954 2013-09-17 DJ Delorie <dj@redhat.com>
15956 * config/rl78/constraints.md: For each W* constraint, rename to C*
15957 and create a W* constraint that checks for an optional ES: prefix
15959 * config/rl78/rl78.md (UNS_ES_ADDR): New.
15960 (es_addr): New. Used to wrap far addresses.
15961 * config/rl78/rl78-protos.h (rl78_es_addr): New.
15962 (rl78_es_base): New.
15963 * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
15964 wrapped far addresses.
15965 (rl78_print_operand_1): Unwrap far addresses before processing.
15966 (rl78_lo16): Wrap far addresses in unspecs.
15967 (rl78_es_addr): New.
15968 (rl78_es_base): New.
15969 (insn_ok_now): Check for not-yet-wrapped far addresses.
15970 (transcode_memory_rtx): Properly re-wrap far addresses.
15972 2013-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
15974 * config/sparc/t-rtems: Add leon3 multilibs.
15976 2013-09-17 Cong Hou <congh@google.com>
15978 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
15979 when checking the dot production pattern. The type of rhs operand
15980 of multiply is now checked correctly.
15982 2013-09-17 Jeff Law <law@redhat.com>
15984 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
15985 edge implied equivalences into successor phis.
15986 * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
15987 here from tree-ssa-threadedge.c.
15988 (mark_threaded_blocks): When threading through a joiner, if both
15989 successors of the joiner's clone reach the same block, verify the
15990 PHI arguments are equal. If not, cancel the jump threading request.
15991 * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
15992 tree-ssa-threadupdate.c
15993 (thread_across_edge): Don't check PHI argument equality when
15994 threading through joiner block here.
15996 2013-09-17 Andrew MacLeod <amacleod@redhat.com>
15998 * tree-flow.h (ssa_undefined_value_p): Remove prototype.
15999 * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
16000 (warn_uninit, warn_uninitialized_vars,
16001 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
16002 Move to tree-ssa-uninit.c.
16003 * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
16004 (has_undefined_value_p): New. Pass dependant parts of
16005 ssa_undefined_value_p.
16006 (uninit_undefined_value_p): Use has_undefined_value_p.
16007 (warn_uninit, warn_uninitialized_vars,
16008 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
16009 Move from tree-ssa.c.
16010 * tree-ssa.h: Adjust prototypes.
16012 2013-09-17 Jan Hubicka <jh@suse.cz>
16014 PR middle-end/58332
16015 * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
16016 * ipa-inline.c (can_inline_edge_p): Do not downgrade
16017 FUNCTION_NOT_OPTIMIZED.
16018 * ipa-inline-analysis.c (compute_inline_parameters): Function
16019 not optimized is not inlinable unless it is alwaysinline.
16020 (inline_analyze_function): Force calls in not optimized
16021 function not inlinable.
16023 2013-09-17 Jan Hubicka <jh@suse.cz>
16025 PR middle-end/58329
16026 * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
16028 * ipa.c (function_and_variable_visibility): Likewise.
16029 * ipa-profile.c (ipa_profile): Likewise.
16031 2013-09-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
16034 * cgraph.c (cgraph_function_body_availability): Check for ifunc
16035 attribute, and don't inline the resolver in this case.
16037 2013-09-17 Teresa Johnson <tejohnson@google.com>
16039 * coverage.c (get_coverage_counts): Add missing newline.
16041 2013-09-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16043 PR tree-optimization/58088
16044 * fold-const.c (mask_with_trailing_zeros): New function.
16045 (fold_binary_loc): Make sure we don't recurse infinitely
16046 when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
16047 Use mask_with_trailing_zeros where appropriate.
16049 2013-09-17 Yuri Rumyantsev <ysrumyan@gmail.com>
16051 * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
16052 of 'prev' var to get better distance estimation.
16054 2013-09-17 Eric Botcazou <ebotcazou@adacore.com>
16056 * tree-inline.h (struct copy_body_data): Add transform_parameter.
16057 * tree-inline.c (is_parameter_of): New predicate.
16058 (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
16059 a parameter has been remapped.
16060 (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
16061 (optimize_inline_calls): Initialize transform_parameter.
16062 (copy_gimple_seq_and_replace_locals): Likewise.
16063 (tree_function_versioning): Likewise.
16064 (maybe_inline_call_in_expr): Likewise.
16066 2013-09-17 Nick Clifton <nickc@redhat.com>
16068 * config/msp430/msp430-protos.h: Add prototypes for new functions.
16069 * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
16070 interrupt handlers.
16071 (is_attr_func): New function.
16072 (msp430_is_interrupt_func): New function.
16073 (is_naked_func): New function.
16074 (is_reentrant_func): New function.
16075 (is_critical_func): New function.
16076 (msp430_start_function): Add annotations for function attributes.
16077 (msp430_attr): New function.
16078 (msp430_attribute_table): New.
16079 (msp430_function_section): New function.
16080 (TARGET_ASM_FUNCTION_SECTION): Define.
16081 (msp430_builtin): New enum.
16082 (msp430_init_builtins): New function.
16083 (msp430_builtin_devl): New function.
16084 (msp430_expand_builtin): New function.
16085 (TARGET_INIT_BUILTINS): Define.
16086 (TARGET_EXPAND_BUILTINS): Define.
16087 (TARGET_BUILTIN_DECL): Define.
16088 (msp430_expand_prologue): Add support for naked, interrupt,
16089 critical and reentrant functions.
16090 (msp430_expand_epilogue): Likewise.
16091 (msp430_print_operand): Handle 'O' character.
16092 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
16094 * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
16095 UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
16096 (pushm): Use a 'n' rather than an 'i' constraint.
16097 (msp_return): Add generation of the interrupt return instruction.
16098 (disable_interrupts): New pattern.
16099 (enable_interrupts): New pattern.
16100 (push_intr_state): New pattern.
16101 (pop_intr_state): New pattern.
16102 (bic_SR): New pattern.
16103 (bis_SR): New pattern.
16104 * doc/extend.texi: Document MSP430 function attributes and builtin
16107 2013-09-17 Richard Biener <rguenther@suse.de>
16109 PR tree-optimization/58432
16110 * tree-loop-distribution.c (tree_loop_distribution): Also
16111 scan PHIs for outside loop uses and seed a partition from them.
16113 2013-09-17 Bin Cheng <bin.cheng@arm.com>
16115 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
16116 (restructure_reference): Call backtrace_base_for_ref.
16118 2013-09-17 Alan Modra <amodra@gmail.com>
16121 * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
16124 2013-09-16 DJ Delorie <dj@redhat.com>
16126 * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
16127 vregs location for RL78/G10.
16128 (rl78_expand_prologue): Avoid SEL on G10.
16129 (rl78_expand_epilogue): Likewise.
16130 (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
16131 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
16132 __RL78_G10__ when appropriate.
16133 (ASM_SPEC): Pass -mg10 along to the assembler.
16134 * config/rl78/rl78.md (sel_rb): Disable for G10.
16135 * config/rl78/rl78.opt: Add -mg10 option.
16136 * config/rl78/t-rl78: Add -mg10 multilib.
16138 2013-09-16 Xinliang David Li <davidxl@google.com>
16140 * tree-if-conv.c (main_tree_if_conversion): Check new flag.
16141 * omp-low.c (omp_max_vf): Ditto.
16142 (expand_omp_simd): Ditto.
16143 * tree-vectorizer.c (vectorize_loops): Ditto.
16144 (gate_vect_slp): Ditto.
16145 (gate_increase_alignment): Ditto.
16146 * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
16147 * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
16148 (gate_tree_vectorize): Name change.
16149 (tree_vectorize): Ditto.
16150 (pass_vectorize::gate): Call new function.
16151 (pass_vectorize::execute): Ditto.
16152 * opts.c: O3 default setting change.
16153 (finish_options): Check new flag.
16154 * doc/invoke.texi: Document new flags.
16155 * common.opt: New flags.
16157 2013-09-16 Andreas Schwab <schwab@linux-m68k.org>
16159 * doc/tm.texi.in (Cond Exec Macros): Remove node.
16160 (Condition Code): Don't reference it.
16161 * doc/tm.texi: Regenerate.
16163 2013-09-16 Vladimir Makarov <vmakarov@redhat.com>
16165 PR middle-end/58418
16166 * lra-constraints.c (undo_optional_reloads): Consider all optional
16167 reload even if it did not get a hard reg.
16169 2013-09-16 Teresa Johnson <tejohnson@google.com>
16171 * dumpfile.c (dump_loc): Remove newline emission.
16172 * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
16173 emission to dump_printf_loc calls where missing.
16174 (vect_mark_for_runtime_alias_test): Ditto.
16175 (vect_analyze_data_ref_dependence): Ditto.
16176 (vect_analyze_data_ref_dependences): Ditto.
16177 (vect_slp_analyze_data_ref_dependence): Ditto.
16178 (vect_slp_analyze_data_ref_dependences): Ditto.
16179 (vect_compute_data_ref_alignment): Ditto.
16180 (vect_update_misalignment_for_peel): Ditto.
16181 (vect_verify_datarefs_alignment): Ditto.
16182 (vector_alignment_reachable_p): Ditto.
16183 (vect_get_data_access_cost): Ditto.
16184 (vect_enhance_data_refs_alignment): Ditto.
16185 (vect_find_same_alignment_drs): Ditto.
16186 (vect_analyze_data_refs_alignment): Ditto.
16187 (vect_analyze_group_access): Ditto.
16188 (vect_analyze_data_ref_access): Ditto.
16189 (vect_analyze_data_ref_accesses): Ditto.
16190 (vect_prune_runtime_alias_test_list): Ditto.
16191 (vect_analyze_data_refs): Ditto.
16192 (vect_create_addr_base_for_vector_ref): Ditto.
16193 (vect_create_data_ref_ptr): Ditto.
16194 (vect_grouped_store_supported): Ditto.
16195 (vect_grouped_load_supported): Ditto.
16196 * value-prof.c (check_counter): Ditto.
16197 (check_ic_target): Ditto.
16198 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
16199 (vect_recog_widen_mult_pattern): Ditto.
16200 (vect_recog_widen_sum_pattern): Ditto.
16201 (vect_recog_over_widening_pattern): Ditto.
16202 (vect_recog_widen_shift_pattern): Ditto.
16203 (vect_recog_rotate_pattern): Ditto.
16204 (vect_recog_vector_vector_shift_pattern): Ditto.
16205 (vect_recog_divmod_pattern): Ditto.
16206 (vect_recog_mixed_size_cond_pattern): Ditto.
16207 (vect_recog_bool_pattern): Ditto.
16208 (vect_pattern_recog_1): Ditto.
16209 (vect_pattern_recog): Ditto.
16210 * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
16211 (vect_is_simple_iv_evolution): Ditto.
16212 (vect_analyze_scalar_cycles_1): Ditto.
16213 (vect_get_loop_niters): Ditto.
16214 (vect_analyze_loop_1): Ditto.
16215 (vect_analyze_loop_form): Ditto.
16216 (vect_analyze_loop_operations): Ditto.
16217 (vect_analyze_loop_2): Ditto.
16218 (vect_analyze_loop): Ditto.
16219 (report_vect_op): Ditto.
16220 (vect_is_slp_reduction): Ditto.
16221 (vect_is_simple_reduction_1): Ditto.
16222 (vect_get_known_peeling_cost): Ditto.
16223 (vect_estimate_min_profitable_iters): Ditto.
16224 (vect_model_reduction_cost): Ditto.
16225 (vect_model_induction_cost): Ditto.
16226 (get_initial_def_for_induction): Ditto.
16227 (vect_create_epilog_for_reduction): Ditto.
16228 (vectorizable_reduction): Ditto.
16229 (vectorizable_induction): Ditto.
16230 (vectorizable_live_operation): Ditto.
16231 (vect_loop_kill_debug_uses): Ditto.
16232 (vect_transform_loop): Ditto.
16233 * tree-vect-stmts.c (vect_mark_relevant): Ditto.
16234 (vect_stmt_relevant_p): Ditto.
16235 (process_use): Ditto.
16236 (vect_mark_stmts_to_be_vectorized): Ditto.
16237 (vect_model_simple_cost): Ditto.
16238 (vect_model_promotion_demotion_cost): Ditto.
16239 (vect_model_store_cost): Ditto.
16240 (vect_get_store_cost): Ditto.
16241 (vect_model_load_cost): Ditto.
16242 (vect_get_load_cost): Ditto.
16243 (vect_init_vector_1): Ditto.
16244 (vect_get_vec_def_for_operand): Ditto.
16245 (vect_finish_stmt_generation): Ditto.
16246 (vectorizable_call): Ditto.
16247 (vectorizable_conversion): Ditto.
16248 (vectorizable_assignment): Ditto.
16249 (vectorizable_shift): Ditto.
16250 (vectorizable_operation): Ditto.
16251 (vectorizable_store): Ditto.
16252 (vectorizable_load): Ditto.
16253 (vectorizable_condition): Ditto.
16254 (vect_analyze_stmt): Ditto.
16255 (vect_transform_stmt): Ditto.
16256 (vect_is_simple_use): Ditto.
16257 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
16258 (vect_can_advance_ivs_p): Ditto.
16259 (vect_update_ivs_after_vectorizer): Ditto.
16260 (vect_do_peeling_for_loop_bound): Ditto.
16261 (vect_gen_niters_for_prolog_loop): Ditto.
16262 (vect_update_inits_of_drs): Ditto.
16263 (vect_create_cond_for_alias_checks): Ditto.
16264 * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
16265 (vect_build_slp_tree_1): Ditto.
16266 (vect_supported_load_permutation_p): Ditto.
16267 (vect_analyze_slp_instance): Ditto.
16268 (vect_analyze_slp): Ditto.
16269 (vect_make_slp_decision): Ditto.
16270 (vect_detect_hybrid_slp): Ditto.
16271 (vect_bb_vectorization_profitable_p): Ditto.
16272 (vect_slp_analyze_bb_1): Ditto.
16273 (vect_update_slp_costs_according_to_vf): Ditto.
16274 (vect_get_mask_element): Ditto.
16275 (vect_transform_slp_perm_load): Ditto.
16276 (vect_schedule_slp_instance): Ditto.
16277 (vect_schedule_slp): Ditto.
16278 (vect_slp_transform_bb): Ditto.
16279 * profile.c (read_profile_edge_counts): Ditto.
16280 (compute_branch_probabilities): Ditto.
16281 * coverage.c (get_coverage_counts): Ditto.
16283 2013-09-16 Diego Novillo <dnovillo@google.com>
16285 * tree-core.h: Add missing comment lines from refactoring of tree.h.
16287 2013-09-16 Jan Hubicka <jh@suse.cz>
16289 * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
16290 abstract functions; for static functions check the presence of body.
16292 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
16294 * config/aarch64/aarch64-simd-builtins.def (fma): New.
16295 * config/aarch64/aarch64-simd.md
16296 (aarch64_mla_elt<mode>): New.
16297 (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
16298 (aarch64_mls_elt<mode>): Likewise.
16299 (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
16300 (aarch64_fma4_elt<mode>): Likewise.
16301 (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
16302 (aarch64_fma4_elt_to_128v2df): Likewise.
16303 (aarch64_fma4_elt_to_64df): Likewise.
16304 (fnma<mode>4): Likewise.
16305 (aarch64_fnma4_elt<mode>): Likewise.
16306 (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
16307 (aarch64_fnma4_elt_to_128v2df): Likewise.
16308 (aarch64_fnma4_elt_to_64df): Likewise.
16309 * config/aarch64/iterators.md (VDQSF): New.
16310 * config/aarch64/arm_neon.h
16311 (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
16312 (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
16314 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
16316 * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
16317 (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
16318 (aarch64_mul3_elt_to_128df): Likewise.
16319 (aarch64_mul3_elt_to_64v2df): Likewise.
16320 * config/aarch64/iterators.md (VEL): Also handle DFmode.
16322 (VMUL_CHANGE_NLANES) Likewise.
16325 * config/aarch64/arm_neon.h
16326 (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
16328 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
16330 * config/aarch64/arm_neon.h
16331 (vcvtx_high_f32_f64): Fix parameters.
16333 2013-09-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
16334 Uros Bizjak <ubizjak@gmail.com>
16336 * config/alpha.c: Include tree-ssanames.h.
16338 2013-09-16 Richard Biener <rguenther@suse.de>
16340 * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
16341 (dot_rdg_1): Handle control_dd.
16342 (create_edge_for_control_dependence): New function.
16343 (create_rdg_edges): Add control dependences if asked for.
16344 (build_rdg): Likewise.
16345 (generate_loops_for_partition): If there are not necessary
16346 control stmts remove all their dependencies.
16347 (collect_condition_stmts, rdg_flag_loop_exits): Remove.
16348 (distribute_loop): Pass on control dependences.
16349 (tree_loop_distribution): Compute control dependences and remove
16350 restriction on number of loop nodes.
16352 2013-09-16 Jakub Jelinek <jakub@redhat.com>
16354 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
16355 for internal calls.
16357 2013-09-16 Richard Sandiford <rdsandiford@googlemail.com>
16359 * cse.c (try_const_anchors): Punt on CC modes.
16361 2013-09-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
16363 * config/vax/constraints.md (T): Add missing CONSTANT_P check.
16365 2013-09-14 John David Anglin <danglin@gcc.gnu.org>
16368 * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
16369 calls to word_mode.
16371 2013-09-14 Iain Sandoe <iain@codesourcery.com>
16374 * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
16376 (darwin_objc1_section): Likewise.
16377 (darwin_file_end): Emit Image Info section when required.
16379 2013-09-14 Jan Hubicka <jh@suse.cz>
16381 * tree-into-ssa.c (gate_into_ssa): New.
16382 (pass_data_build_ssa): Use it.
16383 * cgraph.h (expand_thunk): Update prototype.
16384 * cgraphunit.c (analyze_function): Expand thunks early.
16385 (expand_thunk): Fix DECL_CONTEXT of reust_decl;
16386 build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
16387 set lowered flag; do not add new function.
16388 (assemble_thunks_and_aliases): Update.
16389 * tree-ssa.c (gate_init_datastructures): New gate.
16390 (pass_data_init_datastructures): Use it.
16392 2013-09-14 Iain Sandoe <iain@codesourcery.com>
16395 * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
16396 xmm register set described in the psABI.
16398 2013-09-13 Evgeny Gavrin <e.gavrin@samsung.com>
16400 * dwarf2out.c (should_emit_struct_debug): Add check
16401 for type_decl variable is not NULL.
16403 2013-09-13 Jacek Caban <jacek@codeweavers.com>
16405 * config.gcc: Use new winnt-c.c target hooks
16406 * config/t-winnt: New file
16407 * config/winnt-c.c: New file
16408 * doc/tm.texi.in: Document new hook
16409 * doc/tm.texi: Regenerated
16411 2013-09-13 Jan Hubicka <jh@suse.cz>
16413 PR middle-end/58094
16414 * ipa-inline.c (check_callers): New function.
16415 (check_caller_edge): Remove.
16416 (want_inline_function_to_all_callers_p): Also permit alises that are
16418 (inline_to_all_callers): Terminate the walk when devirtualization
16419 introduce new calls.
16421 2013-09-13 Jan Hubicka <jh@suse.cz>
16423 * ipa-inline-analysis.c (struct growth_data): Add node.
16424 (do_estimate_growth_1): Fix detection of recursion.
16426 2013-09-13 Jakub Jelinek <jakub@redhat.com>
16428 PR tree-optimization/58392
16429 * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
16430 to avoid shadowing of outer loop variable. If
16431 saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
16432 replace_by_duplicate_decl simduid of loops that have it set and
16433 set dest_cfun->has_simduid_loops and/or
16434 dest_cfun->has_force_vect_loops.
16435 * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
16436 instead of maybe_lookup_decl.
16437 * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
16438 Use id->blocks_to_copy instead of blocks_to_copy. Adjust recursive
16439 call. Copy over force_vect and copy and remap simduid. Set
16440 cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
16441 (copy_cfg_body): Remove blocks_to_copy argument. Use
16442 id->blocks_to_copy instead of blocks_to_copy. Adjust copy_loops
16443 caller. Don't set cfun->has_simduid_loops and/or
16444 cfun->has_force_vect_loops here.
16445 (copy_body): Remove blocks_to_copy argument. Adjust copy_cfg_body
16447 (expand_call_inline, tree_function_versioning): Adjust copy_body
16450 2013-09-13 Martin Jambor <mjambor@suse.cz>
16453 * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
16454 the assert if the edge was a speculative one.
16456 2013-09-13 Richard Biener <rguenther@suse.de>
16458 * tree-data-ref.h (known_dependences_p): Move here ...
16459 * tree-loop-distribution.c (known_dependences_p): ... from here.
16460 (dump_rdg_component, debug_rdg_component): Remove.
16461 (dump_rdg): Adjust.
16462 (generate_loops_for_partition): Use gimple_uid instead of
16463 relying on matching stmt visit order.
16464 (rdg_build_partitions): Take starting stmt vector.
16465 (ldist_gen): Merge into ...
16466 (distribute_loop): ... this function. Do not compute starting
16468 * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
16470 2013-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16472 * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
16473 Set type attribute correctly. Set predicable_short_it attribute.
16474 (cmpsi_shiftsi): Remove %? from output template.
16476 2013-09-13 Richard Biener <rguenther@suse.de>
16478 * tree-loop-distribution.c (struct rdg_component,
16479 rdg_defs_used_in_other_loops_p, free_rdg_components,
16480 rdg_build_components): Remove.
16481 (stmts_from_loop): Do not record virtual PHIs.
16482 (generate_loops_for_partition): Skip virtual PHIs.
16483 (build_rdg_partition_for_component): Rename to ...
16484 (build_rdg_partition_for_vertex): ... this and adjust.
16485 (rdg_build_partitions): Take a vector of starting vertices
16486 instead of components. Remove unnecessary leftover handling.
16487 (ldist_gen): Do not build components or record other stores.
16488 (distribute_loop): Do not distribute loops containing stmts
16491 2013-09-13 Christian Bruel <christian.bruel@st.com>
16494 * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
16496 2013-09-13 Kai Tietz <ktietz@redhat.com>
16498 * config.gcc: Separate cases for mingw and cygwin targets,
16499 and add 64-bit cygwin target case.
16501 * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
16502 dll-export inline-functions.
16503 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
16505 2013-09-13 Jeff Law <law@redhat.com>
16507 PR middle-end/58387
16509 2013-09-06 Jeff Law <law@redhat.com>
16511 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
16512 edge implied equivalences into successor phis.
16514 2013-09-12 DJ Delorie <dj@redhat.com>
16516 * config/rl78/rl78-virt.md: Change from | to \; for asm line
16519 2013-09-12 Brooks Moses <bmoses@google.com>
16522 * Makefile.in: Do not install driver binaries in $(target)/bin.
16524 2013-09-12 DJ Delorie <dj@redhat.com>
16526 * config/rl78/rl78.opt (mrelax): New.
16527 * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
16528 * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
16530 * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
16532 (rl78_expand_epilogue): Likewise.
16534 2013-09-12 Vladimir Makarov <vmakarov@redhat.com>
16536 PR middle-end/58335
16537 * lra-eliminations.c (remove_reg_equal_offset_note): New.
16538 (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
16539 pointer elimination with using remove_reg_equal_offset_note.
16541 2013-09-12 DJ Delorie <dj@redhat.com>
16543 * config/msp430/: New port.
16544 * config.gcc (msp430): Added.
16545 * doc/invoke.texi: Document MSP430 options.
16546 * doc/install.texi: Document msp430-elf
16547 * doc/md.texi: Document msp430-elf
16548 * doc/contrib.texi: Document msp430-elf
16550 * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
16553 2013-09-12 Martin Jambor <mjambor@suse.cz>
16556 * ipa-prop.c (remove_described_reference): Give up if the edge in the
16557 reference descriptor is NULL.
16558 (ipa_edge_removal_hook): If owning a reference descriptor, set its
16561 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
16563 * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
16564 (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
16565 num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
16566 * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
16567 make_temp_ssa_name): move to tree-ssanames.h
16568 * tree-ssa-alias.h: Move prototype.
16569 * tree-ssa.h: Include tree-ssanames.h.
16570 * tree-ssanames.c (FREE_SSANAMES): Move to here.
16571 * tree-ssanames.h: New. Move items from tree-flow*.h
16572 * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
16574 2013-09-12 Richard Biener <rguenther@suse.de>
16576 PR tree-optimization/58404
16577 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
16578 propagate non-invariant addresses into dereferences wrapped
16579 in component references.
16581 2013-09-12 Richard Biener <rguenther@suse.de>
16583 PR tree-optimization/58402
16584 * passes.def: Move pass_late_warn_uninitialized later.
16586 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
16588 * tree-ssa.h: New. Move content from tree-flow.h and
16589 tree-flow-inline.h.
16590 * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
16591 Move prototypes belonging to tree-ssa.c.
16592 * tree-flow-inline.h (redirect_edge_var_map_def,
16593 redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
16595 * gimple.h: Adjust prototypes.
16596 * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
16598 * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
16599 * tree.h: Move prototype to tree-ssa.h.
16600 * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
16601 * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
16602 * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
16603 cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
16604 cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
16605 ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
16606 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
16607 gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
16608 graphite-blocking.c, graphite-clast-to-gimple.c,
16609 graphite-dependences.c, graphite-interchange.c,
16610 graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
16611 graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
16612 ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
16613 ipa-reference.c, ipa-split.c, ipa-utils.c,
16614 loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
16615 lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
16616 passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
16617 tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
16618 tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
16619 tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
16620 tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
16621 tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
16622 tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
16623 tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
16624 tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
16625 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
16626 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
16627 tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
16628 value-prof.c, var-tracking.c,
16629 varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
16631 2013-09-12 Richard Biener <rguenther@suse.de>
16633 PR tree-optimization/58396
16634 * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
16635 (build_rdg): Take a loop-nest parameter, fix memleaks.
16636 (distribute_loop): Compute loop-nest here and pass it to build_rdg.
16638 2013-09-12 Yuri Rumyantsev <ysrumyan@gmail.com>
16640 * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
16643 2013-09-12 Cameron McInally <cameron.mcinally@nyu.edu>
16645 * doc/extend.texi: Fix errors in x86 FMA builtin naming.
16646 The FMA instruction names should have a 'v' prefix.
16648 2013-09-12 Richard Biener <rguenther@suse.de>
16650 * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
16651 (dot_rdg): Use popen instead of system in optional code.
16652 (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
16653 (already_processed_vertex_p): Adjust.
16654 (has_anti_or_output_dependence, predecessor_has_mem_write,
16655 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
16656 rdg_flag_uses): Remove.
16657 (rdg_flag_vertex): Simplify.
16658 (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
16660 (build_rdg_partition_for_component): Process the first vertex
16661 of a component only.
16662 (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
16664 2013-09-12 Alan Modra <amodra@gmail.com>
16666 * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
16668 2013-09-11 DJ Delorie <dj@redhat.com>
16669 Nick Clifton <nickc@redhat.com>
16671 * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
16672 (rl78_stack_based_mem): New.
16673 * config/rl78/constraints.md (Iv08): New.
16682 * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
16684 (movsi): Change from expand to insn-and-split.
16685 (ashrsi3): Clobber AX.
16689 * config/rl78/rl78.md (CC_REG): Fix.
16690 (addsi3): Allow memory and immediate operands.
16691 (addsi3_internal): Split into...
16692 (addsi3_internal_virt): ...new, and ...
16693 (addsi3_internal_real): ...new.
16695 (subsi3_internal_virt): New.
16696 (subsi3_internal_real): New.
16697 (mulsi3): Add memory operand.
16698 (mulsi3_rl78): Likewise.
16699 (mulsi3_g13): Likewise.
16700 * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
16701 (cbranchqi4_real): Add more constraint options.
16702 (cbranchhi4_real): Expand pattern.
16703 (cbranchhi4_real_signed): New.
16704 (cbranchhi4_real_inverted): New.
16705 (cbranchsi4_real_lt): New.
16706 (cbranchsi4_real_ge): New.
16707 (cbranchsi4_real_signed): New.
16708 (cbranchsi4_real): New.
16710 * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
16712 (lshrsi3_virt): Likewise.
16713 (ashlsi3_virt): Likewise.
16714 (cbranchqi4_virt_signed): New.
16715 (cbranchhi4_virt_signed): New.
16716 (cbranchsi4_virt): New.
16717 * config/rl78/rl78.c: Whitespace fixes throughout.
16718 (move_elim_pass): New.
16719 (pass_data_rl78_move_elim): New.
16720 (pass_rl78_move_elim): New.
16721 (make_pass_rl78_move_elim): New.
16722 (rl78_devirt_info): Run devirt earlier.
16723 (rl78_move_elim_info): New.
16724 (rl78_asm_file_start): Register it.
16725 (rl78_split_movsi): New.
16726 (rl78_as_legitimate_address): Allow virtual base registers when
16728 (rl78_addr_space_convert): Remove spurious debug stuff.
16729 (rl78_print_operand_1): Add z,s,S,r,E modifiers.
16730 (rl78_print_operand): More cases for not printing '#'.
16731 (rl78_expand_compare): Remove most of the logic.
16732 (content_memory): New.
16733 (clear_content_memory): New.
16734 (get_content_index): New.
16735 (get_content_name): New.
16736 (display_content_memory): New.
16737 (update_content): New.
16738 (record_content): New.
16739 (already_contains): New.
16740 (insn_ok_now): Re-recog insns with virtual registers.
16741 (add_postponed_content_update): New.
16742 (process_postponed_content_update): New.
16743 (gen_and_emit_move): New.
16744 (transcode_memory_rtx): Record new location content.
16745 Use gen_and_emit_move.
16746 (force_into_acc): New.
16747 (move_to_acc): Use gen_and_emit_move.
16748 (move_from_acc): Likewise.
16749 (move_acc_to_reg): Likewise.
16750 (move_to_x): Likewise.
16751 (move_to_hl): Likewise.
16752 (move_to_de): Likewise.
16753 (rl78_alloc_physical_registers_op1): Record location content.
16754 (has_constraint): New.
16755 (rl78_alloc_physical_registers_op2): Record location content.
16756 Optimize use of HL.
16757 (rl78_alloc_physical_registers_ro1): Likewise.
16758 (rl78_alloc_physical_registers_cmp): Likewise.
16759 (rl78_alloc_physical_registers_umul): Likewise.
16760 (rl78_alloc_address_registers_macax): New.
16761 (rl78_alloc_physical_registers): Initialize and set location
16762 content memory as needed.
16763 (rl78_reorg): Make sure split2 is called.
16764 (rl78_rtx_costs): New.
16766 2013-09-11 Richard Sandiford <rdsandiford@googlemail.com>
16768 * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
16769 for (not (neg ...)) and (neg (not ...)) cases.
16771 2013-09-11 Richard Biener <rguenther@suse.de>
16773 PR middle-end/58377
16774 * passes.def: Split critical edges before late uninit warning passes.
16775 * tree-cfg.c (pass_split_crit_edges): Implement clone method.
16777 2013-09-11 Jakub Jelinek <jakub@redhat.com>
16779 PR tree-optimization/58385
16780 * fold-const.c (build_range_check): If both low and high are NULL,
16781 use omit_one_operand_loc to preserve exp side-effects.
16783 2013-09-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16785 * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
16787 2013-09-11 Richard Biener <rguenther@suse.de>
16789 * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
16790 dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
16791 dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
16792 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
16793 stmts_from_loop, known_dependences_p, build_empty_rdg,
16794 build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
16795 * tree-loop-distribution.c: ... here.
16796 * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
16797 RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
16798 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
16799 struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
16800 * tree-loop-distribution.c: ... here.
16801 * tree-loop-distribution.c: Include gimple-pretty-print.h.
16802 (struct partition_s): Add loops member.
16803 (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
16804 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
16805 build_rdg_partition_for_component, rdg_build_partitions): Adjust.
16807 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
16808 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16809 Sergey Lega <sergey.s.lega@intel.com>
16810 Anna Tikhonova <anna.tikhonova@intel.com>
16811 Ilya Tocar <ilya.tocar@intel.com>
16812 Andrey Turetskiy <andrey.turetskiy@intel.com>
16813 Ilya Verbin <ilya.verbin@intel.com>
16814 Kirill Yukhin <kirill.yukhin@intel.com>
16815 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16817 * config/i386/constraints.md (k): New.
16819 * config/i386/i386.c (const regclass_map): Add new mask registers.
16820 (dbx_register_map): Ditto.
16821 (dbx64_register_map): Ditto.
16822 (svr4_dbx_register_map): Ditto.
16823 (ix86_conditional_register_usage): Squash mask registers if AVX512F is
16825 (ix86_preferred_reload_class): Disable constants for mask registers.
16826 (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
16827 (ix86_hard_regno_mode_ok): Support new mask registers.
16828 (x86_order_regs_for_local_alloc): Ditto.
16829 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
16830 (FIXED_REGISTERS): Add new mask registers.
16831 (CALL_USED_REGISTERS): Ditto.
16832 (REG_ALLOC_ORDER): Ditto.
16833 (VALID_MASK_REG_MODE): New.
16834 (FIRST_MASK_REG): Ditto.
16835 (LAST_MASK_REG): Ditto.
16836 (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
16837 (MAYBE_MASK_CLASS_P): New.
16838 (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
16839 (REG_CLASS_CONTENTS): Ditto.
16840 (MASK_REGNO_P): New.
16841 (ANY_MASK_REG_P): Ditto.
16842 (HI_REGISTER_NAMES): Add new mask registers.
16843 * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
16844 MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
16846 (attribute "type"): Add mskmov, msklog.
16847 (attribute "length_immediate"): Support them.
16848 (attribute "memory"): Ditto.
16849 (attribute "prefix_0f"): Ditto.
16850 (*movhi_internal): Support new mask registers.
16851 (*movqi_internal): Ditto.
16852 (define_split): Split out clobber pattern is a logic
16853 insn on mask registers.
16854 (*k<logic><mode>): New.
16855 (*andhi_1): Extend to support mask regs.
16856 (*andqi_1): Extend to support mask regs.
16857 (kandn<mode>): New.
16858 (define_split): Split and-not to and and not if operands
16860 (*<code><mode>_1): Separate HI mode to new pattern...
16861 (*<code>hi_1): This.
16862 (*<code>qi_1): Extend to support mask regs.
16863 (kxnor<mode>): New.
16864 (kortestzhi): Ditto.
16865 (kortestchi): Ditto.
16867 (*one_cmpl<mode>2_1): Remove HImode and handle it...
16868 (*one_cmplhi2_1): ...Here, now with mask registers support.
16869 (*one_cmplqi2_1): Support new mask registers.
16870 (HI/QImode arithmetics splitter): Don't split if mask registers
16872 (HI/QImode not splitter): Ditto.
16873 * config/i386/predicated.md (mask_reg_operand): New.
16874 (general_reg_operand): Ditto.
16876 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
16878 * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
16879 * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
16881 2013-09-10 Jeff Law <law@redhat.com>
16883 PR tree-optimization/58380
16884 * tree-ssa-threadupdate.c (thread_block): Recognize another case
16885 of threading through a buried loop header.
16887 * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
16888 return value for single successor case.
16890 2013-09-10 Jan Hubicka <jh@suse.cz>
16892 * ipa-devirt.c (ipa_devirt): Enable with LTO.
16894 2013-09-10 Richard Earnshaw <rearnsha@arm.com>
16897 * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
16898 support conditional execution.
16899 (combine_vcvt_f64_<FCVTI32typename>): Likewise.
16901 2013-09-10 Vladimir Makarov <vmakarov@redhat.com>
16903 * lra.c (lra): Clear lra_optional_reload_pseudos before every
16905 * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
16906 Check destination too to check move insn.
16907 (undo_optional_reloads): Add check that the original peudo did not
16908 changed its allocation and the optional reload was inherited on last
16909 inheritance pass. Break loop after deciding to keep optional reload.
16910 (lra_undo_inheritance): Add check that inherited pseudo still in
16913 2013-09-10 James Greenhalgh <james.greenhalgh@arm.com>
16915 * config/aarch64/aarch64.md (generic_sched): New.
16916 * config/aarch64/aarch64-generic.md (load): Make conditional
16917 on generic_sched attribute.
16918 (nonload): Likewise.
16920 2013-09-10 Jan Hubicka <jh@suse.cz>
16922 * lto-cgraph.c: Include ipa-utils.h.
16923 (compute_ltrans_boundary): Also add possible targets into the boundary.
16925 2013-09-10 Jan Hubicka <jh@suse.cz>
16927 * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
16928 VAR_DECL of vtable rather than full expression.
16930 2013-09-10 Jan Hubicka <jh@suse.cz>
16931 Paolo Carlini <paolo.carlini@oracle.com>
16933 * cgraphunit.c (analyze_functions): Save input_location, set it
16934 to UNKNOWN_LOCATION and restore it at the end.
16936 2013-09-10 Martin Jambor <mjambor@suse.cz>
16938 * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
16939 represented by a thunk.
16941 2013-09-10 Jeff Law <law@redhat.com>
16943 PR tree-optimization/58343
16944 * tree-ssa-threadupdate.c (thread_block): Identify and disable
16945 jump threading requests through loop headers buried in the middle
16946 of a jump threading path.
16948 * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
16949 in return value/type.
16951 2013-09-10 Jakub Jelinek <jakub@redhat.com>
16953 PR rtl-optimization/58365
16954 * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
16955 resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
16958 2013-09-10 Richard Biener <rguenther@suse.de>
16960 * tree-data-ref.h (build_rdg): Drop all parameters but loop.
16961 * tree-data-ref.c (create_rdg_vertices): Collect all data
16962 references, signal failure to the caller, use data-ref API.
16963 (build_rdg): Compute data references only once. Maintain lifetime
16964 of data references and data dependences from within RDG.
16965 (free_rdg): Free dependence relations.
16966 * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
16967 inventing extra dependences.
16968 (distribute_loop): Update for RDG API changes.
16970 2013-09-10 Kai Tietz <ktietz@redhat.com>
16972 * doc/invoke.texi (fms-extensions): Document changed
16973 behavior for ms-abi targets.
16974 * config/i386/i386.c (ix86_option_override_internal):
16975 Set default value of option -fms-extension for ms-abi targets.
16977 2013-09-10 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
16979 * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
16981 2013-09-10 Alan Modra <amodra@gmail.com>
16984 * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
16986 2013-09-10 Alan Modra <amodra@gmail.com>
16988 * config/rs6000/predicates.md (add_cint_operand): New.
16989 (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
16990 * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
16991 using add_cint_operand.
16992 (largetoc_high_plus_aix): Likewise.
16994 2013-09-09 Jakub Jelinek <jakub@redhat.com>
16996 PR tree-optimization/58364
16997 * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
16998 BOOLEAN_TYPE, only invert in_p and continue with arg0 if
16999 the current range can't be an unconditional true or false.
17001 2013-09-09 James Greenhalgh <james.greenhalgh@arm.com>
17003 * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
17005 2013-09-09 Uros Bizjak <ubizjak@gmail.com>
17007 * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
17009 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
17012 * doc/invoke.texi (-Wdelete-incomplete): Document it.
17014 2013-09-09 Ian Bolton <ian.bolton@arm.com>
17016 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
17017 NO_REGS for immediate that can't be moved directly into FP_REGS.
17019 2013-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17021 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
17022 comparison with negated operand.
17023 * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
17026 2013-09-09 Richard Biener <rguenther@suse.de>
17028 PR middle-end/58326
17029 * cfgloopmanip.c (fix_bb_placements): When fixing the placement
17030 of a subloop record all its block as affecting loop-closed SSA form.
17032 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
17034 * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
17035 of an rtx/bitpos pair.
17036 (store_fixed_bit_field): Update accordingly.
17038 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
17040 * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
17042 * builtins.c (expand_errno_check): Likewise.
17043 * dwarf2cfi.c (init_return_column_size): Likewise.
17044 * except.c (sjlj_mark_call_sites): Likewise.
17045 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
17046 * lra-constraints.c (emit_inc): Likewise.
17047 * ree.c (combine_set_extension): Likewise.
17048 * regmove.c (fixup_match_2): Likewise.
17049 * reload1.c (inc_for_reload): Likewise.
17051 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
17053 * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
17054 (force_to_mode, simplify_shift_const_1, simplify_comparison):
17055 Use gen_int_mode with the mode of the associated simplify_* call.
17056 * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
17057 * expmed.c (expand_shift_1): Likewise.
17058 * function.c (instantiate_virtual_regs_in_insn): Likewise.
17059 * loop-iv.c (iv_number_of_iterations): Likewise.
17060 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
17061 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
17063 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
17065 * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
17066 of the associated expand_* call.
17067 (asan_emit_stack_protection): Likewise.
17068 * builtins.c (round_trampoline_addr): Likewise.
17069 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
17070 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
17071 (emit_store_flag): Likewise.
17072 * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
17073 (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
17075 * function.c (instantiate_virtual_regs_in_insn): Likewise.
17076 * ifcvt.c (noce_try_store_flag_constants): Likewise.
17077 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
17078 * modulo-sched.c (generate_prolog_epilog): Likewise.
17079 * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
17080 (expand_ctz, expand_ffs, expand_unop): Likewise.
17082 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
17084 * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
17085 of the associated gen_rtx_* call.
17086 * caller-save.c (init_caller_save): Likewise.
17087 * combine.c (find_split_point, make_extraction): Likewise.
17088 (make_compound_operation): Likewise.
17089 * dwarf2out.c (mem_loc_descriptor): Likewise.
17090 * explow.c (plus_constant, probe_stack_range): Likewise.
17091 * expmed.c (expand_mult_const): Likewise.
17092 * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
17093 * reload1.c (init_reload): Likewise.
17094 * valtrack.c (cleanup_auto_inc_dec): Likewise.
17095 * var-tracking.c (adjust_mems): Likewise.
17096 * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
17097 rather than gen_rtx_fmt_ee.
17099 2013-09-09 Jan Hubicka <jh@suse.cz>
17101 PR middle-end/58294
17102 * value-prof.c (gimple_ic): Copy also abnormal edges.
17104 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
17106 * asan.c (asan_shadow_cst): Use gen_int_mode.
17108 2013-09-08 Jan Hubicka <jh@suse.cz>
17110 * ipa-profile.c: Add toplevel comment.
17111 (ipa_propagate_frequency_1): Be more conservative when profile is read.
17112 (contains_hot_call_p): New function.
17113 (ipa_propagate_frequency): Set frequencies based on counts when
17115 * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
17116 profile; do not tamper with profile after inlining if it is read.
17118 2013-09-08 Jan Hubicka <jh@suse.cz>
17120 * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
17123 2013-09-08 Jan Hubicka <jh@suse.cz>
17125 * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
17126 summary generation.
17128 2013-09-08 Jeff Law <law@redhat.com>
17131 * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
17134 2013-09-08 Andi Kleen <ak@linux.intel.com>
17136 * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
17138 2013-09-08 Jan Hubicka <jh@suse.cz>
17140 * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
17142 2013-09-08 Richard Sandiford <rdsandiford@googlemail.com>
17144 * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
17145 for non-debug insns.
17146 * lra.c (new_insn_reg): Take the containing insn as a parameter.
17147 Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
17148 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
17151 2013-09-08 Jan Hubicka <jh@suse.cz>
17153 * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
17154 targets and devirtualize to BUILT_IN_UNREACHABLE.
17155 * timevar.def (TV_IPA_UNREACHABLE): New timevar.
17156 * ipa.c (walk_polymorphic_call_targets): New function.
17157 (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
17158 functions; use the new timevar.
17159 * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
17160 was removed from the program.
17161 (record_binfo): If BINFO corresponds to an anonymous namespace, we may
17162 not consider it in the walk when its vtable is dead.
17163 (possible_polymorphic_call_targets_1): Pass anonymous flag to
17165 (devirt_variable_node_removal_hook): New function.
17166 (possible_polymorphic_call_targets): Also register
17167 devirt_variable_node_removal_hook.
17168 (ipa_devirt): Do not do non-speculative devirtualization.
17169 (gate_ipa_devirt): One execute if devirtualizing speculatively.
17171 2013-09-08 Jan Hubicka <jh@suse.cz>
17173 * cgraph.h (varpool_node_hook, varpool_node_hook_list,
17174 varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
17175 varpool_remove_variable_insertion_hook): Declare.
17176 * varpool.c (varpool_node_hook_list): New structure.
17177 (first_varpool_node_removal_hook,
17178 first_varpool_variable_insertion_hook): New variables.
17179 (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
17180 varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
17181 varpool_remove_variable_insertion_hook,
17182 varpool_call_variable_insertion_hooks): New functions.
17183 (varpool_remove_node): Use it.
17185 2013-09-08 Paolo Carlini <paolo.carlini@oracle.com>
17188 * diagnostic.c (diagnostic_build_prefix): When s.file is
17189 "<built-in>" don't output line and column numbers.
17191 2013-09-06 Jan Hubicka <jh@suse.cz>
17193 * cgraphunit.c (expand_thunk): Get body before touching arguments.
17194 * lto-streamer-out.c: Stream thunks, too.
17195 * lto-streamer-in.c (input_function): Pop cfun here
17196 (lto_read_body): Instead of here.
17198 2013-09-06 Caroline Tice <cmtice@google.com>
17200 * doc/install.texi: Add documentation for the --enable-vtable-verify
17201 and the --disable-libvtv configure options.
17203 2013-09-06 Jeff Law <law@redhat.com>
17205 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
17206 edge implied equivalences into successor phis.
17208 2013-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
17210 * resource.c (mark_referenced_resources): Handle COND_EXEC.
17212 2013-09-06 Claudiu Zissulescu <claziss@synopsys.com>
17214 * resource.c (mark_target_live_regs): Compute resources taking
17215 into account if a call is predicated or not.
17217 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
17219 * toplev.c (output_stack_usage): Be prepared for suffixes created by
17220 the compiler in the function names.
17222 2013-09-06 Jan Hubicka <jh@suse.cz>
17224 PR middle-end/58094
17225 * ipa-inline.c (has_caller_p): New function.
17226 (want_inline_function_to_all_callers_p): Use it.
17227 (sum_callers, inline_to_all_callers): Break out from ...
17228 (ipa_inline): ... here.
17230 2013-09-06 Jan Hubicka <jh@suse.cz>
17232 * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
17233 only when AVX is enabled.
17235 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17237 * config/aarch64/aarch64.md
17238 (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
17239 is fpsimd_<load/store>2.
17240 (load_pair<mode>): Likewise.
17241 (store_pair<mode>): Likewise.
17243 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17245 * config/arm/types.md (type): Add "mrs" type.
17246 * config/aarch64/aarch64.md
17247 (aarch64_load_tp_hard): Make type "mrs".
17248 * config/arm/arm.md
17249 (load_tp_hard): Make type "mrs".
17250 * config/arm/cortex-a15.md: Update with new attributes.
17251 * config/arm/cortex-a5.md: Update with new attributes.
17252 * config/arm/cortex-a53.md: Update with new attributes.
17253 * config/arm/cortex-a7.md: Update with new attributes.
17254 * config/arm/cortex-a8.md: Update with new attributes.
17255 * config/arm/cortex-a9.md: Update with new attributes.
17256 * config/arm/cortex-m4.md: Update with new attributes.
17257 * config/arm/cortex-r4.md: Update with new attributes.
17258 * config/arm/fa526.md: Update with new attributes.
17259 * config/arm/fa606te.md: Update with new attributes.
17260 * config/arm/fa626te.md: Update with new attributes.
17261 * config/arm/fa726te.md: Update with new attributes.
17263 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17265 * config/aarch64/aarch64.md
17266 (*movti_aarch64): Use "multiple" for type where v8type is "move2".
17267 (*movtf_aarch64): Likewise.
17268 * config/arm/arm.md
17269 (thumb1_movdi_insn): Use "multiple" for type where more than one
17270 instruction is used for a move.
17271 (*arm32_movhf): Likewise.
17272 (*thumb_movdf_insn): Likewise.
17274 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17276 * config/arm/types.md (type): Rename fcpys to fmov.
17277 * config/arm/vfp.md
17278 (*arm_movsi_vfp): Rename type fcpys as fmov.
17279 (*thumb2_movsi_vfp): Likewise
17280 (*movhf_vfp_neon): Likewise
17281 (*movhf_vfp): Likewise
17282 (*movsf_vfp): Likewise
17283 (*thumb2_movsf_vfp): Likewise
17284 (*movsfcc_vfp): Likewise
17285 (*thumb2_movsfcc_vfp): Likewise
17286 * config/aarch64/aarch64-simd.md
17287 (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
17288 * config/aarch64/aarch64.md
17289 (*movsi_aarch64): Replace type mov_reg with fmovs.
17290 (*movdi_aarch64): Likewise
17291 (*movsf_aarch64): Likewise
17292 (*movdf_aarch64): Likewise
17294 (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
17295 * config/arm/iwmmxt.md
17296 (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
17297 * config/arm/arm1020e.md: Update with new attributes.
17298 * config/arm/cortex-a15-neon.md: Update with new attributes.
17299 * config/arm/cortex-a5.md: Update with new attributes.
17300 * config/arm/cortex-a53.md: Update with new attributes.
17301 * config/arm/cortex-a7.md: Update with new attributes.
17302 * config/arm/cortex-a8-neon.md: Update with new attributes.
17303 * config/arm/cortex-a9.md: Update with new attributes.
17304 * config/arm/cortex-m4-fpu.md: Update with new attributes.
17305 * config/arm/cortex-r4f.md: Update with new attributes.
17306 * config/arm/marvell-pj4.md: Update with new attributes.
17307 * config/arm/vfp11.md: Update with new attributes.
17309 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17311 * config/aarch64/aarch64.md
17312 (*madd<mode>): Fix type attribute.
17313 (*maddsi_uxtw): Likewise.
17314 (*msub<mode>): Likewise.
17315 (*msubsi_uxtw): Likewise.
17316 (<su_optab>maddsidi4): Likewise.
17317 (<su_optab>msubsidi4): Likewise.
17319 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17321 * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
17322 * config/arm/arm.md (core_cycles): Remove fdiv.
17323 * config/arm/vfp.md:
17324 (*sqrtsf2_vfp): Update for attribute changes.
17325 (*sqrtdf2_vfp): Likewise.
17326 * config/aarch64/aarch64.md:
17327 (sqrt<mode>2): Update for attribute changes.
17328 * config/arm/arm1020e.md: Update with new attributes.
17329 * config/arm/cortex-a15-neon.md: Update with new attributes.
17330 * config/arm/cortex-a5.md: Update with new attributes.
17331 * config/arm/cortex-a53.md: Update with new attributes.
17332 * config/arm/cortex-a7.md: Update with new attributes.
17333 * config/arm/cortex-a8-neon.md: Update with new attributes.
17334 * config/arm/cortex-a9.md: Update with new attributes.
17335 * config/arm/cortex-m4-fpu.md: Update with new attributes.
17336 * config/arm/cortex-r4f.md: Update with new attributes.
17337 * config/arm/marvell-pj4.md: Update with new attributes.
17338 * config/arm/vfp11.md: Update with new attributes.
17340 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17342 * config/arm/types.md
17343 (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
17344 * config/aarch64/aarch64.md
17345 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
17347 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
17348 (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
17349 (float<GPI:mode><GPF:mode>2): Likewise.
17350 * config/arm/vfp.md
17351 (*truncsisf2_vfp): Update with new attributes.
17352 (*truncsidf2_vfp): Likewise.
17353 (fixuns_truncsfsi2): Likewise.
17354 (fixuns_truncdfsi2): Likewise.
17355 (*floatsisf2_vfp): Likewise.
17356 (*floatsidf2_vfp): Likewise.
17357 (floatunssisf2): Likewise.
17358 (floatunssidf2): Likewise.
17359 (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
17360 (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
17361 * config/arm/arm1020e.md: Update with new attributes.
17362 * config/arm/cortex-a15-neon.md: Update with new attributes.
17363 * config/arm/cortex-a5.md: Update with new attributes.
17364 * config/arm/cortex-a53.md: Update with new attributes.
17365 * config/arm/cortex-a7.md: Update with new attributes.
17366 * config/arm/cortex-a8-neon.md: Update with new attributes.
17367 * config/arm/cortex-a9.md: Update with new attributes.
17368 * config/arm/cortex-m4-fpu.md: Update with new attributes.
17369 * config/arm/cortex-r4f.md: Update with new attributes.
17370 * config/arm/marvell-pj4.md: Update with new attributes.
17371 * config/arm/vfp11.md: Update with new attributes.
17373 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17375 * config/aarch64/arm_neon.h
17376 (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
17377 (vqtbx<1,2,3,4><q>_s8): Likewise.
17379 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17381 * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
17382 * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
17383 (add<mode>3): Add type attribute.
17384 (add<mode>3): Likewise.
17385 (usadd<mode>3): Likewise.
17386 (ssadd<mode>3): Likewise.
17387 (sub<mode>3): Likewise.
17388 (sub<mode>3): Likewise.
17389 (ussub<mode>3): Likewise.
17390 (sssub<mode>3): Likewise.
17391 (ssmulsa3): Likewise.
17392 (usmulusa3): Likewise.
17393 (arm_usatsihi): Likewise.
17394 * config/arm/vfp.md
17395 (*movdi_vfp): Add types for all instructions.
17396 (*movdi_vfp_cortexa8): Likewise.
17397 (*movhf_vfp_neon): Likewise.
17398 (*movhf_vfp): Likewise.
17399 (*movdf_vfp): Likewise.
17400 (*thumb2_movdf_vfp): Likewise.
17401 (*thumb2_movdfcc_vfp): Likewise.
17402 * config/arm/arm.md: Add type attribute to all insn patterns.
17403 (*thumb1_adddi3): Add type attribute.
17404 (*arm_adddi3): Likewise.
17405 (*adddi_sesidi_di): Likewise.
17406 (*adddi_zesidi_di): Likewise.
17407 (*thumb1_addsi3): Likewise.
17408 (addsi3_compare0): Likewise.
17409 (*addsi3_compare0_scratch): Likewise.
17410 (*compare_negsi_si): Likewise.
17411 (cmpsi2_addneg): Likewise.
17412 (*addsi3_carryin_<optab>): Likewise.
17413 (*addsi3_carryin_alt2_<optab>): Likewise.
17414 (*addsi3_carryin_clobercc_<optab>): Likewise.
17415 (*subsi3_carryin): Likewise.
17416 (*subsi3_carryin_const): Likewise.
17417 (*subsi3_carryin_compare): Likewise.
17418 (*subsi3_carryin_compare_const): Likewise.
17419 (*arm_subdi3): Likewise.
17420 (*thumb_subdi3): Likewise.
17421 (*subdi_di_zesidi): Likewise.
17422 (*subdi_di_sesidi): Likewise.
17423 (*subdi_zesidi_di): Likewise.
17424 (*subdi_sesidi_di): Likewise.
17425 (*subdi_zesidi_ze): Likewise.
17426 (thumb1_subsi3_insn): Likewise.
17427 (*arm_subsi3_insn): Likewise.
17428 (*anddi3_insn): Likewise.
17429 (*anddi_zesidi_di): Likewise.
17430 (*anddi_sesdi_di): Likewise.
17431 (*ne_zeroextracts): Likewise.
17432 (*ne_zeroextracts): Likewise.
17433 (*ite_ne_zeroextr): Likewise.
17434 (*ite_ne_zeroextr): Likewise.
17435 (*anddi_notdi_di): Likewise.
17436 (*anddi_notzesidi): Likewise.
17437 (*anddi_notsesidi): Likewise.
17438 (andsi_notsi_si): Likewise.
17439 (thumb1_bicsi3): Likewise.
17440 (*iordi3_insn): Likewise.
17441 (*iordi_zesidi_di): Likewise.
17442 (*iordi_sesidi_di): Likewise.
17443 (*thumb1_iorsi3_insn): Likewise.
17444 (*xordi3_insn): Likewise.
17445 (*xordi_zesidi_di): Likewise.
17446 (*xordi_sesidi_di): Likewise.
17447 (*arm_xorsi3): Likewise.
17448 (*andsi_iorsi3_no): Likewise.
17449 (*smax_0): Likewise.
17450 (*smax_m1): Likewise.
17451 (*arm_smax_insn): Likewise.
17452 (*smin_0): Likewise.
17453 (*arm_smin_insn): Likewise.
17454 (*arm_umaxsi3): Likewise.
17455 (*arm_uminsi3): Likewise.
17456 (*minmax_arithsi): Likewise.
17457 (*minmax_arithsi_): Likewise.
17458 (*satsi_<SAT:code>): Likewise.
17459 (arm_ashldi3_1bit): Likewise.
17460 (arm_ashrdi3_1bit): Likewise.
17461 (arm_lshrdi3_1bit): Likewise.
17462 (*arm_negdi2): Likewise.
17463 (*thumb1_negdi2): Likewise.
17464 (*arm_negsi2): Likewise.
17465 (*thumb1_negsi2): Likewise.
17466 (*negdi_extendsid): Likewise.
17467 (*negdi_zero_extend): Likewise.
17468 (*arm_abssi2): Likewise.
17469 (*thumb1_abssi2): Likewise.
17470 (*arm_neg_abssi2): Likewise.
17471 (*thumb1_neg_abss): Likewise.
17472 (one_cmpldi2): Likewise.
17473 (extend<mode>di2): Likewise.
17474 (*compareqi_eq0): Likewise.
17475 (*arm_extendhisi2addsi): Likewise.
17476 (*arm_movdi): Likewise.
17477 (*thumb1_movdi_insn): Likewise.
17478 (*arm_movt): Likewise.
17479 (*thumb1_movsi_insn): Likewise.
17480 (pic_add_dot_plus_four): Likewise.
17481 (pic_add_dot_plus_eight): Likewise.
17482 (tls_load_dot_plus_eight): Likewise.
17483 (*thumb1_movhi_insn): Likewise.
17484 (*thumb1_movsf_insn): Likewise.
17485 (*movdf_soft_insn): Likewise.
17486 (*thumb_movdf_insn): Likewise.
17487 (cbranchsi4_insn): Likewise.
17488 (cbranchsi4_scratch): Likewise.
17489 (*negated_cbranchsi4): Likewise.
17490 (*tbit_cbranch): Likewise.
17491 (*tlobits_cbranch): Likewise.
17492 (*tstsi3_cbranch): Likewise.
17493 (*cbranchne_decr1): Likewise.
17494 (*addsi3_cbranch): Likewise.
17495 (*addsi3_cbranch_scratch): Likewise.
17496 (*arm_cmpdi_insn): Likewise.
17497 (*arm_cmpdi_unsig): Likewise.
17498 (*arm_cmpdi_zero): Likewise.
17499 (*thumb_cmpdi_zero): Likewise.
17500 (*deleted_compare): Likewise.
17501 (*mov_scc): Likewise.
17502 (*mov_negscc): Likewise.
17503 (*mov_notscc): Likewise.
17504 (*cstoresi_eq0_thumb1_insn): Likewise.
17505 (cstoresi_nltu_thumb1): Likewise.
17506 (cstoresi_ltu_thu): Likewise.
17507 (thumb1_addsi3_addgeu): Likewise.
17508 (*arm_jump): Likewise.
17509 (*thumb_jump): Likewise.
17510 (*check_arch2): Likewise.
17511 (arm_casesi_internal): Likewise.
17512 (thumb1_casesi_dispatch): Likewise.
17513 (*arm_indirect_jump): Likewise.
17514 (*thumb1_indirect_jump): Likewise.
17516 (*and_scc): Likewise.
17517 (*ior_scc): Likewise.
17518 (*compare_scc): Likewise.
17519 (*cond_move): Likewise.
17520 (*cond_arith): Likewise.
17521 (*cond_sub): Likewise.
17522 (*cmp_ite0): Likewise.
17523 (*cmp_ite1): Likewise.
17524 (*cmp_and): Likewise.
17525 (*cmp_ior): Likewise.
17526 (*ior_scc_scc): Likewise.
17527 (*ior_scc_scc_cmp): Likewise.
17528 (*and_scc_scc): Likewise.
17529 (*and_scc_scc_cmp): Likewise.
17530 (*and_scc_scc_nod): Likewise.
17531 (*negscc): Likewise.
17532 (movcond_addsi): Likewise.
17533 (movcond): Likewise.
17534 (*ifcompare_plus_move): Likewise.
17535 (*if_plus_move): Likewise.
17536 (*ifcompare_move_plus): Likewise.
17537 (*if_move_plus): Likewise.
17538 (*ifcompare_arith_arith): Likewise.
17539 (*if_arith_arith): Likewise.
17540 (*ifcompare_arith_move): Likewise.
17541 (*if_arith_move): Likewise.
17542 (*ifcompare_move_arith): Likewise.
17543 (*if_move_arith): Likewise.
17544 (*ifcompare_move_not): Likewise.
17545 (*if_move_not): Likewise.
17546 (*ifcompare_not_move): Likewise.
17547 (*if_not_move): Likewise.
17548 (*ifcompare_shift_move): Likewise.
17549 (*if_shift_move): Likewise.
17550 (*ifcompare_move_shift): Likewise.
17551 (*if_move_shift): Likewise.
17552 (*ifcompare_shift_shift): Likewise.
17553 (*ifcompare_not_arith): Likewise.
17554 (*ifcompare_arith_not): Likewise.
17555 (*if_arith_not): Likewise.
17556 (*ifcompare_neg_move): Likewise.
17557 (*if_neg_move): Likewise.
17558 (*ifcompare_move_neg): Likewise.
17559 (*if_move_neg): Likewise.
17560 (prologue_thumb1_interwork): Likewise.
17561 (*cond_move_not): Likewise.
17562 (*sign_extract_onebit): Likewise.
17563 (*not_signextract_onebit): Likewise.
17564 (stack_tie): Likewise.
17565 (align_4): Likewise.
17566 (align_8): Likewise.
17567 (consttable_end): Likewise.
17568 (consttable_1): Likewise.
17569 (consttable_2): Likewise.
17570 (consttable_4): Likewise.
17571 (consttable_8): Likewise.
17572 (consttable_16): Likewise.
17573 (*thumb1_tablejump): Likewise.
17574 (prefetch): Likewise.
17575 (force_register_use): Likewise.
17576 (thumb_eh_return): Likewise.
17577 (load_tp_hard): Likewise.
17578 (load_tp_soft): Likewise.
17579 (tlscall): Likewise.
17580 (*arm_movtas_ze): Likewise.
17581 (*arm_rev): Likewise.
17582 (*arm_revsh): Likewise.
17583 (*arm_rev16): Likewise.
17584 * config/arm/thumb2.md
17585 (*thumb2_smaxsi3): Likewise.
17586 (*thumb2_sminsi3): Likewise.
17587 (*thumb32_umaxsi3): Likewise.
17588 (*thumb2_uminsi3): Likewise.
17589 (*thumb2_negdi2): Likewise.
17590 (*thumb2_abssi2): Likewise.
17591 (*thumb2_neg_abss): Likewise.
17592 (*thumb2_movsi_insn): Likewise.
17593 (tls_load_dot_plus_four): Likewise.
17594 (*thumb2_movhi_insn): Likewise.
17595 (*thumb2_mov_scc): Likewise.
17596 (*thumb2_mov_negs): Likewise.
17597 (*thumb2_mov_negs): Likewise.
17598 (*thumb2_mov_nots): Likewise.
17599 (*thumb2_mov_nots): Likewise.
17600 (*thumb2_movsicc_): Likewise.
17601 (*thumb2_movsfcc_soft_insn): Likewise.
17602 (*thumb2_indirect_jump): Likewise.
17603 (*thumb2_and_scc): Likewise.
17604 (*thumb2_ior_scc): Likewise.
17605 (*thumb2_ior_scc_strict_it): Likewise.
17606 (*thumb2_cond_move): Likewise.
17607 (*thumb2_cond_arith): Likewise.
17608 (*thumb2_cond_ari): Likewise.
17609 (*thumb2_cond_sub): Likewise.
17610 (*thumb2_negscc): Likewise.
17611 (*thumb2_movcond): Likewise.
17612 (thumb2_casesi_internal): Likewise.
17613 (thumb2_casesi_internal_pic): Likewise.
17614 (*thumb2_alusi3_short): Likewise.
17615 (*thumb2_mov<mode>_shortim): Likewise.
17616 (*thumb2_addsi_short): Likewise.
17617 (*thumb2_subsi_short): Likewise.
17618 (thumb2_addsi3_compare0): Likewise.
17619 (*thumb2_cbz): Likewise.
17620 (*thumb2_cbnz): Likewise.
17621 (*thumb2_one_cmplsi2_short): Likewise.
17622 (*thumb2_negsi2_short): Likewise.
17623 (*orsi_notsi_si): Likewise.
17624 * config/arm/arm1020e.md: Update with new attributes.
17625 * config/arm/arm1026ejs.md: Update with new attributes.
17626 * config/arm/arm1136jfs.md: Update with new attributes.
17627 * config/arm/arm926ejs.md: Update with new attributes.
17628 * config/arm/cortex-a15.md: Update with new attributes.
17629 * config/arm/cortex-a5.md: Update with new attributes.
17630 * config/arm/cortex-a53.md: Update with new attributes.
17631 * config/arm/cortex-a7.md: Update with new attributes.
17632 * config/arm/cortex-a8.md: Update with new attributes.
17633 * config/arm/cortex-a9.md: Update with new attributes.
17634 * config/arm/cortex-m4.md: Update with new attributes.
17635 * config/arm/cortex-r4.md: Update with new attributes.
17636 * config/arm/fa526.md: Update with new attributes.
17637 * config/arm/fa606te.md: Update with new attributes.
17638 * config/arm/fa626te.md: Update with new attributes.
17639 * config/arm/fa726te.md: Update with new attributes.
17641 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17643 * config/aarch64/aarch64-simd.md
17644 (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
17645 <vwx> iterator to ensure correct register choice.
17646 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
17647 (aarch64_sqdmull_n<mode>): Likewise.
17648 (aarch64_sqdmull2_n<mode>_internal): Likewise.
17649 * config/aarch64/arm_neon.h
17650 (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
17651 (vml<as><q>_n_<su>16): Likewise.
17652 (vml<as>l_high_lane<q>_<su>16): Likewise.
17653 (vml<as>l_high_n_<su>16): Likewise.
17654 (vml<as>l_lane<q>_<su>16): Likewise.
17655 (vml<as>l_n_<su>16): Likewise.
17656 (vmul<q>_lane<q>_<su>16): Likewise.
17657 (vmul<q>_n_<su>16): Likewise.
17658 (vmull_lane<q>_<su>16): Likewise.
17659 (vmull_n_<su>16): Likewise.
17660 (vmull_high_lane<q>_<su>16): Likewise.
17661 (vmull_high_n_<su>16): Likewise.
17662 (vqrdmulh<q>_n_s16): Likewise.
17664 2013-09-06 Tejas Belagod <tejas.belagod@arm.com>
17666 * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
17667 have the correct lane parameter.
17669 2013-09-06 Richard Biener <rguenther@suse.de>
17671 * cfganal.c (control_dependences::~control_dependences):
17672 Properly free all of the vector.
17674 2013-09-06 Kirill Yukhin <kirill.yukhin@intel.com>
17677 * config/i386/i386.c (ix86_conditional_register_usage):
17678 Proper initialize extended SSE registers.
17680 2013-09-06 Jan Hubicka <jh@suse.cz>
17682 PR tree-optimization/58311
17683 * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
17685 2013-09-06 Jan Hubicka <jh@suse.cz>
17687 * Makefile.in (tree-sra.o): Update dependencies.
17688 * tree-sra.c: Include ipa-utils.h
17689 (scan_function): Use recursive_call_p.
17690 (has_caller_p): New function.
17691 (cgraph_for_node_and_aliases): Count also callers of aliases.
17693 2013-09-06 Jan Hubicka <jh@suse.cz>
17695 PR middle-end/58094
17696 * cgraph.h (symtab_semantically_equivalent_p): Declare.
17697 * tree-tailcall.c: Include ipa-utils.h.
17698 (find_tail_calls): Use it.
17699 * ipa-pure-const.c (check_call): Likewise.
17700 * ipa-utils.c (recursive_call_p): New function.
17701 * ipa-utils.h (recursive_call_p): Dclare.
17702 * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
17703 (symtab_semantically_equivalent_p): New function.
17704 * Makefile.in (tree-tailcall.o): Update dependencies.
17706 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
17708 * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
17709 non-inlinable part.
17711 2013-09-06 Richard Biener <rguenther@suse.de>
17713 * lto-streamer.h (lto_global_var_decls): Remove.
17714 * Makefile.in (OBJS): Remove lto-symtab.o.
17715 (lto-symtab.o): Remove.
17716 (GTFILES): Remove lto-symtab.c
17717 * lto-symtab.c: Move to lto/
17719 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17721 * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
17722 (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
17723 (UNSPEC_FPINT_RINT): New constant definitions.
17724 (FPINT, fpint_name, fpint_roundingmode): New integer iterator
17725 definition with 2 attributes.
17726 ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
17727 ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
17730 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17732 * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
17733 ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
17734 Set the mnemonic attribute to "bcr_flush". Set the "z196prop"
17735 attribute to "z196_alone".
17736 * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
17739 2013-09-06 Richard Biener <rguenther@suse.de>
17741 * basic-block.h (class control_dependences): New.
17742 * tree-ssa-dce.c (control_dependence_map): Remove.
17744 (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
17745 (set_control_dependence_map_bit, clear_control_dependence_bitmap,
17746 find_pdom, find_control_dependence, find_all_control_dependences):
17748 (mark_control_dependent_edges_necessary,
17749 find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
17750 tree_dce_done, perform_tree_ssa_dce): Adjust.
17751 * cfganal.c (set_control_dependence_map_bit,
17752 clear_control_dependence_bitmap, find_pdom, find_control_dependence,
17753 find_all_control_dependences): Move from tree-ssa-dce.c and
17754 implement as methods of control_dependences class.
17755 (control_dependences::control_dependences): New.
17756 (control_dependences::~control_dependences): Likewise.
17757 (control_dependences::get_edges_dependent_on): Likewise.
17758 (control_dependences::get_edge): Likewise.
17760 2013-09-04 Jan Hubicka <jh@suse.cz>
17762 * tree.c (types_same_for_odr): Drop overactive check.
17763 * ipa-devirt.c (hash_type_name): Likewise.
17765 2013-09-04 Jan Hubicka <jh@suse.cz>
17767 * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
17768 (analyze_functions): ... here.
17770 2013-09-04 Jan Hubicka <jh@suse.cz>
17772 PR middle-end/58201
17773 * cgraphunit.c (analyze_functions): Clear AUX fields
17774 after processing; initialize assembler name has.
17776 2013-09-05 Jeff Law <law@redhat.com>
17778 * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
17779 from thread_around_empty_block. Record threading path into PATH.
17780 Recurse if threading through the initial block is successful.
17781 (thread_across_edge): Corresponding changes to slightly simplify.
17783 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
17785 * config/aarch64/aarch64.md
17786 (type): Remove frecpe, frecps, frecpx.
17787 (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
17788 fix to be a TARGET_SIMD instruction.
17789 (aarch64_frecps): Remove.
17790 * config/aarch64/aarch64-simd.md
17791 (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
17792 (aarch64_frecps<mode>): Handle all float/vector of float modes.
17794 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
17795 Sofiane Naci <sofiane.naci@arm.com>
17797 * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
17798 into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
17799 Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
17800 "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
17801 "logic_reg", "logics_reg", "rev". Expand "arlo_shift" into
17802 "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
17803 "logics_shift_imm". Expand "arlo_shift_reg" into "alu_shift_reg",
17804 "alus_shift_reg", "logic_shift_reg", "logics_shift_reg". Expand "clz"
17805 into "clz, "rbit". Rename "shift" to "shift_imm".
17806 * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
17807 changes. Update for attribute changes all occurrences of arlo_* and
17809 * config/arm/arm-fixed.md: Update for attribute changes
17810 all occurrences of arlo_* types.
17811 * config/arm/thumb2.md: Update for attribute changes all occurrences
17813 * config/arm/arm.c (xscale_sched_adjust_cost): (rtx insn, rtx
17814 (cortexa7_older_only): Likewise.
17815 (cortexa7_younger): Likewise.
17816 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
17817 (1020alu_shift_op): Likewise.
17818 (1020alu_shift_reg_op): Likewise.
17819 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
17820 (alu_shift_op): Likewise.
17821 (alu_shift_reg_op): Likewise.
17822 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
17823 (11_alu_shift_op): Likewise.
17824 (11_alu_shift_reg_op): Likewise.
17825 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
17826 (9_alu_shift_reg_op): Likewise.
17827 * config/arm/cortex-a15.md (cortex_a15_alu): Update for
17829 (cortex_a15_alu_shift): Likewise.
17830 (cortex_a15_alu_shift_reg): Likewise.
17831 * config/arm/cortex-a5.md (cortex_a5_alu): Update for
17833 (cortex_a5_alu_shift): Likewise.
17834 * config/arm/cortex-a53.md (cortex_a53_alu): Update for
17836 (cortex_a53_alu_shift): Likewise.
17837 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
17839 (cortex_a7_alu_reg): Likewise.
17840 (cortex_a7_alu_shift): Likewise.
17841 * config/arm/cortex-a8.md (cortex_a8_alu): Update for
17843 (cortex_a8_alu_shift): Likewise.
17844 (cortex_a8_alu_shift_reg): Likewise.
17845 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
17846 (cortex_a9_dp_shift): Likewise.
17847 * config/arm/cortex-m4.md (cortex_m4_alu): Update for
17849 * config/arm/cortex-r4.md
17850 (cortex_r4_alu): Update for attribute changes.
17851 (cortex_r4_mov): Likewise.
17852 (cortex_r4_alu_shift_reg): Likewise.
17853 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
17854 (526_alu_shift_op): Likewise.
17855 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
17856 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
17857 (626te_alu_shift_op): Likewise.
17858 * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
17859 (726te_alu_shift_op): Likewise.
17860 (726te_alu_shift_reg_op): Likewise.
17861 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
17862 (mp626_alu_shift_op): Likewise.
17863 * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
17864 (pj4_alu_conds): Likewise.
17865 (pj4_shift): Likewise.
17866 (pj4_shift_conds): Likewise.
17867 (pj4_alu_shift): Likewise.
17868 (pj4_alu_shift_conds): Likewise.
17869 * config/aarch64/aarch64.md: Update for attribute change
17870 all occurrences of arlo_* and shift* types.
17872 2013-09-05 Mike Stump <mikestump@comcast.net>
17874 * tree.h: Move documentation for tree_function_decl to tree-core.h
17875 with the declaration.
17877 2013-09-05 Peter Bergner <bergner@vnet.ibm.com>
17880 * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
17881 looking for widest mode.
17883 2013-09-05 Eric Botcazou <ebotcazou@adacore.com>
17885 * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
17887 2013-09-05 Richard Biener <rguenther@suse.de>
17889 PR tree-optimization/58137
17890 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
17891 Do not create vectors of pointers.
17892 * tree-vect-loop.c (get_initial_def_for_induction): Use proper
17893 types for the components of the vector initializer.
17894 * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
17895 allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
17897 2013-09-05 Martin Jambor <mjambor@suse.cz>
17899 * ipa-prop.c (remove_described_reference): Accept missing references,
17900 return false if that hppens, otherwise return true.
17901 (cgraph_node_for_jfunc): New function.
17902 (try_decrement_rdesc_refcount): Likewise.
17903 (try_make_edge_direct_simple_call): Use them.
17904 (ipa_edge_removal_hook): Remove references from rdescs.
17905 (ipa_edge_duplication_hook): Clone rdescs and their references
17906 when the new edge has the same caller as the old one.
17907 * cgraph.c (cgraph_resolve_speculation): Remove speculative
17908 reference before removing any edges.
17910 2013-09-05 Richard Earnshaw <rearnsha@arm.com>
17912 * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
17914 * thumb2.md (thumb2_storewb_parisi): New pattern.
17916 2013-09-05 Yufeng Zhang <yufeng.zhang@arm.com>
17918 * config/aarch64/aarch64-option-extensions.def: Add
17919 AARCH64_OPT_EXTENSION of 'crc'.
17920 * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
17921 (AARCH64_ISA_CRC): Ditto.
17922 * doc/invoke.texi (-march and -mcpu feature modifiers): Add
17923 description of the CRC extension.
17925 2013-09-05 Alexander Ivchenko <alexander.ivchenko@intel.com>
17927 * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
17928 * config/rs6000/linux.h: Ditto.
17929 * alpha/linux.h: Ditto.
17930 * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
17931 no_c99_libc_has_function.
17932 * config/c6x/uclinux-elf.h: Ditto.
17933 * config/lm32/uclinux-elf.h: Ditto.
17934 * config/m68k/uclinux.h: Ditto.
17935 * config/moxie/uclinux.h: Ditto.
17936 * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
17937 (crisv32-*-linux*, cris-*-linux*): Ditto.
17938 * config/bfin/bfin.c: Include "tm_p.h".
17940 2013-09-05 Richard Biener <rguenther@suse.de>
17942 * tree-vect-loop.c (vect_analyze_loop_operations): Properly
17943 check for a definition without a basic-block.
17945 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
17946 Sofiane Naci <sofiane.naci@arm.com>
17948 * config/aarch64/aarch64.md
17949 (*movti_aarch64): Rename r_2_f and f_2_r.
17950 (*movsf_aarch64): Likewise.
17951 (*movdf_aarch64): Likewise.
17952 (*movtf_aarch64): Likewise.
17953 (aarch64_movdi_<mode>low): Likewise.
17954 (aarch64_movdi_<mode>high): Likewise.
17955 (aarch64_mov<mode>high_di): Likewise.
17956 (aarch64_mov<mode>low_di): Likewise.
17957 (aarch64_movtilow_tilow): Likewise.
17958 * config/arm/arm.md (attribute "neon_type"): Delete. Move attribute
17959 values to config/arm/types.md
17960 (attribute "conds"): Update for attribute change.
17961 (anddi3_insn): Likewise.
17962 (iordi3_insn): Likewise.
17963 (xordi3_insn): Likewise.
17964 (one_cmpldi2): Likewise.
17965 * config/arm/types.md (type): Add Neon types.
17966 * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
17967 use "type" attribute.
17968 (movmisalign<mode>_neon_store): Likewise.
17969 (movmisalign<mode>_neon_load): Likewise.
17970 (vec_set<mode>_internal): Likewise.
17971 (vec_setv2di_internal): Likewise.
17972 (vec_extract<mode>): Likewise.
17973 (vec_extractv2di): Likewise.
17974 (add<mode>3_neon): Likewise.
17975 (adddi3_neon): Likewise.
17976 (sub<mode>3_neon): Likewise.
17977 (subdi3_neon): Likewise.
17978 (mul<mode>3_neon): Likewise.
17979 (mul<mode>3add<mode>_neon): Likewise.
17980 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
17981 (fma<VCVTF:mode>4)): Likewise.
17982 (fma<VCVTF:mode>4_intrinsic): Likewise.
17983 (fmsub<VCVTF:mode>4)): Likewise.
17984 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
17985 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
17986 (ior<mode>3): Likewise.
17987 (and<mode>3): Likewise.
17988 (anddi3_neon): Likewise.
17989 (orn<mode>3_neon): Likewise.
17990 (orndi3_neon): Likewise.
17991 (bic<mode>3_neon): Likewise.
17992 (bicdi3_neon): Likewise.
17993 (xor<mode>3): Likewise.
17994 (one_cmpl<mode>2): Likewise.
17995 (abs<mode>2): Likewise.
17996 (neg<mode>2): Likewise.
17997 (umin<mode>3_neon): Likewise.
17998 (umax<mode>3_neon): Likewise.
17999 (smin<mode>3_neon): Likewise.
18000 (smax<mode>3_neon): Likewise.
18001 (vashl<mode>3): Likewise.
18002 (vashr<mode>3_imm): Likewise.
18003 (vlshr<mode>3_imm): Likewise.
18004 (ashl<mode>3_signed): Likewise.
18005 (ashl<mode>3_unsigned): Likewise.
18006 (neon_load_count): Likewise.
18007 (ashldi3_neon_noclobber): Likewise.
18008 (signed_shift_di3_neon): Likewise.
18009 (unsigned_shift_di3_neon): Likewise.
18010 (ashrdi3_neon_imm_noclobber): Likewise.
18011 (lshrdi3_neon_imm_noclobber): Likewise.
18012 (widen_ssum<mode>3): Likewise.
18013 (widen_usum<mode>3): Likewise.
18014 (quad_halves_<code>v4si): Likewise.
18015 (quad_halves_<code>v4sf): Likewise.
18016 (quad_halves_<code>v8hi): Likewise.
18017 (quad_halves_<code>v16qi): Likewise.
18018 (reduc_splus_v2di): Likewise.
18019 (neon_vpadd_internal<mode>): Likewise.
18020 (neon_vpsmin<mode>): Likewise.
18021 (neon_vpsmax<mode>): Likewise.
18022 (neon_vpumin<mode>): Likewise.
18023 (neon_vpumax<mode>): Likewise.
18024 (ss_add<mode>_neon): Likewise.
18025 (us_add<mode>_neon): Likewise.
18026 (ss_sub<mode>_neon): Likewise.
18027 (us_sub<mode>_neon): Likewise.
18028 (neon_vadd<mode>_unspec): Likewise.
18029 (neon_vaddl<mode>): Likewise.
18030 (neon_vaddw<mode>): Likewise.
18031 (neon_vhadd<mode>): Likewise.
18032 (neon_vqadd<mode>): Likewise.
18033 (neon_vaddhn<mode>): Likewise.
18034 (neon_vmul<mode>): Likewise.
18035 (neon_vmla<mode>): Likewise.
18036 (neon_vmlal<mode>): Likewise.
18037 (neon_vmls<mode>): Likewise.
18038 (neon_vmlsl<mode>): Likewise.
18039 (neon_vqdmulh<mode>): Likewise.
18040 (neon_vqdmlal<mode>): Likewise.
18041 (neon_vqdmlsl<mode>): Likewise.
18042 (neon_vmull<mode>): Likewise.
18043 (neon_vqdmull<mode>): Likewise.
18044 (neon_vsub<mode>_unspec): Likewise.
18045 (neon_vsubl<mode>): Likewise.
18046 (neon_vsubw<mode>): Likewise.
18047 (neon_vqsub<mode>): Likewise.
18048 (neon_vhsub<mode>): Likewise.
18049 (neon_vsubhn<mode>): Likewise.
18050 (neon_vceq<mode>): Likewise.
18051 (neon_vcge<mode>): Likewise.
18052 (neon_vcgeu<mode>): Likewise.
18053 (neon_vcgt<mode>): Likewise.
18054 (neon_vcgtu<mode>): Likewise.
18055 (neon_vcle<mode>): Likewise.
18056 (neon_vclt<mode>): Likewise.
18057 (neon_vcage<mode>): Likewise.
18058 (neon_vcagt<mode>): Likewise.
18059 (neon_vtst<mode>): Likewise.
18060 (neon_vabd<mode>): Likewise.
18061 (neon_vabdl<mode>): Likewise.
18062 (neon_vaba<mode>): Likewise.
18063 (neon_vabal<mode>): Likewise.
18064 (neon_vmax<mode>): Likewise.
18065 (neon_vmin<mode>): Likewise.
18066 (neon_vpaddl<mode>): Likewise.
18067 (neon_vpadal<mode>): Likewise.
18068 (neon_vpmax<mode>): Likewise.
18069 (neon_vpmin<mode>): Likewise.
18070 (neon_vrecps<mode>): Likewise.
18071 (neon_vrsqrts<mode>): Likewise.
18072 (neon_vqabs<mode>): Likewise.
18073 (neon_vqneg<mode>): Likewise.
18074 (neon_vcls<mode>): Likewise.
18075 (clz<mode>2): Likewise.
18076 (popcount<mode>2): Likewise.
18077 (neon_vrecpe): Likewise.
18078 (neon_vrsqrte): Likewise.
18079 (neon_vget_lane<mode>_sext_internal): Likewise.
18080 (neon_vget_lane<mode>_zext_internal): Likewise.
18081 (neon_vdup_n<mode>): Likewise.
18082 (neon_vdup_nv2di): Likewise.
18083 (neon_vdpu_lane<mode>_internal): Likewise.
18084 (neon_vswp<mode>): Likewise.
18085 (float<mode><V_cvtto>2): Likewise.
18086 (floatuns<mode><V_cvtto>2): Likewise.
18087 (fix_trunc<mode><V_cvtto>)2): Likewise
18088 (fixuns_trunc<mode><V_cvtto)2): Likewise.
18089 (neon_vcvt<mode>): Likewise.
18090 (neon_vcvtv4sfv4hf): Likewise.
18091 (neon_vcvtv4hfv4sf): Likewise.
18092 (neon_vcvt_n<mode>): Likewise.
18093 (neon_vmovn<mode>): Likewise.
18094 (neon_vqmovn<mode>): Likewise.
18095 (neon_vqmovun<mode>): Likewise.
18096 (neon_vmovl<mode>): Likewise.
18097 (neon_vmul_lane<mode>): Likewise.
18098 (neon_vmull_lane<mode>): Likewise.
18099 (neon_vqdmull_lane<mode>): Likewise.
18100 (neon_vqdmulh_lane<mode>): Likewise.
18101 (neon_vmla_lane<mode>): Likewise.
18102 (neon_vmlal_lane<mode>): Likewise.
18103 (neon_vqdmlal_lane<mode>): Likewise.
18104 (neon_vmls_lane<mode>): Likewise.
18105 (neon_vmlsl_lane<mode>): Likewise.
18106 (neon_vqdmlsl_lane<mode>): Likewise.
18107 (neon_vext<mode>): Likewise.
18108 (neon_vrev64<mode>): Likewise.
18109 (neon_vrev32<mode>): Likewise.
18110 (neon_vrev16<mode>): Likewise.
18111 (neon_vbsl<mode>_internal): Likewise.
18112 (neon_vshl<mode>): Likewise.
18113 (neon_vqshl<mode>): Likewise.
18114 (neon_vshr_n<mode>): Likewise.
18115 (neon_vshrn_n<mode>): Likewise.
18116 (neon_vqshrn_n<mode>): Likewise.
18117 (neon_vqshrun_n<mode>): Likewise.
18118 (neon_vshl_n<mode>): Likewise.
18119 (neon_vqshl_n<mode>): Likewise.
18120 (neon_vqshlu_n<mode>): Likewise.
18121 (neon_vshll_n<mode>): Likewise.
18122 (neon_vsra_n<mode>): Likewise.
18123 (neon_vsri_n<mode>): Likewise.
18124 (neon_vsli_n<mode>): Likewise.
18125 (neon_vtbl1v8qi): Likewise.
18126 (neon_vtbl2v8qi): Likewise.
18127 (neon_vtbl3v8qi): Likewise.
18128 (neon_vtbl4v8qi): Likewise.
18129 (neon_vtbx1v8qi): Likewise.
18130 (neon_vtbx2v8qi): Likewise.
18131 (neon_vtbx3v8qi): Likewise.
18132 (neon_vtbx4v8qi): Likewise.
18133 (neon_vtrn<mode>_internal): Likewise.
18134 (neon_vzip<mode>_internal): Likewise.
18135 (neon_vuzp<mode>_internal): Likewise.
18136 (neon_vld1<mode>): Likewise.
18137 (neon_vld1_lane<mode>): Likewise.
18138 (neon_vld1_dup<mode>): Likewise.
18139 (neon_vld1_dupv2di): Likewise.
18140 (neon_vst1<mode>): Likewise.
18141 (neon_vst1_lane<mode>): Likewise.
18142 (neon_vld2<mode>): Likewise.
18143 (neon_vld2_lane<mode>): Likewise.
18144 (neon_vld2_dup<mode>): Likewise.
18145 (neon_vst2<mode>): Likewise.
18146 (neon_vst2_lane<mode>): Likewise.
18147 (neon_vld3<mode>): Likewise.
18148 (neon_vld3qa<mode>): Likewise.
18149 (neon_vld3qb<mode>): Likewise.
18150 (neon_vld3_lane<mode>): Likewise.
18151 (neon_vld3_dup<mode>): Likewise.
18152 (neon_vst3<mode>): Likewise.
18153 (neon_vst3qa<mode>): Likewise.
18154 (neon_vst3qb<mode>): Likewise.
18155 (neon_vst3_lane<mode>): Likewise.
18156 (neon_vld4<mode>): Likewise.
18157 (neon_vld4qa<mode>): Likewise.
18158 (neon_vld4qb<mode>): Likewise.
18159 (neon_vld4_lane<mode>): Likewise.
18160 (neon_vld4_dup<mode>): Likewise.
18161 (neon_vst4<mode>): Likewise.
18162 (neon_vst4qa<mode>): Likewise.
18163 (neon_vst4qb<mode>): Likewise.
18164 (neon_vst4_lane<mode>): Likewise.
18165 (neon_vec_unpack<US>_lo_<mode>): Likewise.
18166 (neon_vec_unpack<US>_hi_<mode>): Likewise.
18167 (neon_vec_<US>mult_lo_<mode>): Likewise.
18168 (neon_vec_<US>mult_hi_<mode>): Likewise.
18169 (neon_vec_<US>shiftl_<mode>): Likewise.
18170 (neon_unpack<US>_<mode>): Likewise.
18171 (neon_vec_<US>mult_<mode>): Likewise.
18172 (vec_pack_trunc_<mode>): Likewise.
18173 (neon_vec_pack_trunk_<mode>): Likewise.
18174 (neon_vabd<mode>_2): Likewise.
18175 (neon_vabd<mode>_3): Likewise.
18176 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
18177 (thumb2_movsi_vfp): Likewise.
18178 (movdi_vfp): Likewise.
18179 (movdi_vfp_cortexa8): Likewise.
18180 (movhf_vfp_neon): Likewise.
18181 (movhf_vfp): Likewiwse.
18182 (movsf_vfp): Likewiwse.
18183 (thumb2_movsf_vfp): Likewiwse.
18184 (movdf_vfp): Likewise.
18185 (thumb2_movdf_vfp): Likewise.
18186 (movsfcc_vfp): Likewise.
18187 (thumb2_movsfcc_vfp): Likewise.
18188 (movdfcc_vfp): Likewise.
18189 (thumb2_movdfcc_vfp): Likewise.
18190 * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
18191 * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
18192 (v10_v2c): Likewise.
18193 * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
18195 (cortex_a15_neon_int_2): Likewise.
18196 (cortex_a15_neon_int_3): Likewise.
18197 (cortex_a15_neon_int_4): Likewise.
18198 (cortex_a15_neon_int_5): Likewise.
18199 (cortex_a15_neon_vqneg_vqabs): Likewise.
18200 (cortex_a15_neon_vmov): Likewise.
18201 (cortex_a15_neon_vaba): Likewise.
18202 (cortex_a15_neon_vaba_qqq): Likewise.
18203 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
18204 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
18205 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
18206 scalar_64_32_long_scalar): Likewise.
18207 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
18208 (cortex_a15_neon_mla_qqq_8_16): Likewise.
18209 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
18210 lotype_qdd_64_32_long): Likewise.
18211 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
18212 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
18213 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
18214 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
18215 (cortex_a15_neon_shift_1): Likewise.
18216 (cortex_a15_neon_shift_2): Likewise.
18217 (cortex_a15_neon_shift_3): Likewise.
18218 (cortex_a15_neon_vshl_ddd): Likewise.
18219 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
18220 (cortex_a15_neon_vsra_vrsra): Likewise.
18221 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
18222 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
18223 (cortex_a15_neon_fp_vmul_ddd): Likewise.
18224 (cortex_a15_neon_fp_vmul_qqd): Likewise.
18225 (cortex_a15_neon_fp_vmla_ddd): Likewise.
18226 (cortex_a15_neon_fp_vmla_qqq): Likewise.
18227 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
18228 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
18229 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
18230 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
18231 (cortex_a15_neon_bp_simple): Likewise.
18232 (cortex_a15_neon_bp_2cycle): Likewise.
18233 (cortex_a15_neon_bp_3cycle): Likewise.
18234 (cortex_a15_neon_vld1_1_2_regs): Likewise.
18235 (cortex_a15_neon_vld1_3_4_regs): Likewise.
18236 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
18237 (cortex_a15_neon_vld2_4_regs): Likewise.
18238 (cortex_a15_neon_vld3_vld4): Likewise.
18239 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
18240 (cortex_a15_neon_vst1_3_4_regs): Likewise.
18241 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
18242 (cortex_a15_neon_vst3_vst4): Likewise.
18243 (cortex_a15_neon_vld1_vld2_lane): Likewise.
18244 (cortex_a15_neon_vld3_vld4_lane" 10
18245 (cortex_a15_neon_vst1_vst2_lane): Likewise.
18246 (cortex_a15_neon_vst3_vst4_lane): Likewise.
18247 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
18248 (cortex_a15_neon_ldm_2): Likewise.0
18249 (cortex_a15_neon_stm_2): Likewise.
18250 (cortex_a15_neon_mcr): Likewise.
18251 (cortex_a15_neon_mcr_2_mcrr): Likewise.
18252 (cortex_a15_neon_mrc): Likewise.
18253 (cortex_a15_neon_mrrc): Likewise.
18254 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
18256 (cortex_a15_alu_shift): Likewise.
18257 (cortex_a15_alu_shift_reg): Likewise.
18258 (cortex_a15_mult32): Likewise.
18259 (cortex_a15_mult64): Likewise.
18260 (cortex_a15_block): Likewise.
18261 (cortex_a15_branch): Likewise.
18262 (cortex_a15_load1): Likewise.
18263 (cortex_a15_load3): Likewise.
18264 (cortex_a15_store1): Likewise.
18265 (cortex_a15_store3): Likewise.
18266 (cortex_a15_call): Likewise.
18267 * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
18268 (cortex_a5_f2r): Likewise.
18269 * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
18271 (cortex_a53_f2r): Likewise.
18272 * config/arm/cortex-a7.md
18273 (cortex_a7_branch): Update for attribute change.
18274 (cortex_a7_call): Likewise.
18275 (cortex_a7_alu_imm): Likewise.
18276 (cortex_a7_alu_reg): Likewise.
18277 (cortex_a7_alu_shift): Likewise.
18278 (cortex_a7_mul): Likewise.
18279 (cortex_a7_load1): Likewise.
18280 (cortex_a7_store1): Likewise.
18281 (cortex_a7_load2): Likewise.
18282 (cortex_a7_store2): Likewise.
18283 (cortex_a7_load3): Likewise.
18284 (cortex_a7_store3): Likewise.
18285 (cortex_a7_load4): Likewise.
18286 (cortex_a7_store4): Likewise.
18287 (cortex_a7_fpalu): Likewise.
18288 (cortex_a7_fconst): Likewise.
18289 (cortex_a7_fpmuls): Likewise.
18290 (cortex_a7_neon_mul): Likewise.
18291 (cortex_a7_fpmacs): Likewise.
18292 (cortex_a7_neon_mla: Likewise.
18293 (cortex_a7_fpmuld: Likewise.
18294 (cortex_a7_fpmacd: Likewise.
18295 (cortex_a7_fpfmad: Likewise.
18296 (cortex_a7_fdivs: Likewise.
18297 (cortex_a7_fdivd: Likewise.
18298 (cortex_a7_r2f: Likewise.
18299 (cortex_a7_f2r: Likewise.
18300 (cortex_a7_f_flags: Likewise.
18301 (cortex_a7_f_loads: Likewise.
18302 (cortex_a7_f_loadd: Likewise.
18303 (cortex_a7_f_stores: Likewise.
18304 (cortex_a7_f_stored: Likewise.
18305 (cortex_a7_neon): Likewise.
18306 * config/arm/cortex-a8-neon.md
18307 (cortex_a8_neon_mrc): Update for attribute change.
18308 (cortex_a8_neon_mrrc): Likewise.
18309 (cortex_a8_neon_int_1): Likewise.
18310 (cortex_a8_neon_int_2): Likewise.
18311 (cortex_a8_neon_int_3): Likewise.
18312 (cortex_a8_neon_int_4): Likewise.
18313 (cortex_a8_neon_int_5): Likewise.
18314 (cortex_a8_neon_vqneg_vqabs): Likewise.
18315 (cortex_a8_neon_vmov): Likewise.
18316 (cortex_a8_neon_vaba): Likewise.
18317 (cortex_a8_neon_vaba_qqq): Likewise.
18318 (cortex_a8_neon_vsma): Likewise.
18319 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
18320 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
18321 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
18322 long_scalar): Likewise.
18323 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
18324 (cortex_a8_neon_mla_qqq_8_16): Likewise.
18325 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
18326 long_scalar_qdd_64_32_long): Likewise.
18327 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
18328 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
18329 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
18330 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
18331 (cortex_a8_neon_shift_1): Likewise.
18332 (cortex_a8_neon_shift_2): Likewise.
18333 (cortex_a8_neon_shift_3): Likewise.
18334 (cortex_a8_neon_vshl_ddd): Likewise.
18335 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
18336 (cortex_a8_neon_vsra_vrsra): Likewise.
18337 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
18338 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
18339 (cortex_a8_neon_fp_vsum): Likewise.
18340 (cortex_a8_neon_fp_vmul_ddd): Likewise.
18341 (cortex_a8_neon_fp_vmul_qqd): Likewise.
18342 (cortex_a8_neon_fp_vmla_ddd): Likewise.
18343 (cortex_a8_neon_fp_vmla_qqq): Likewise.
18344 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
18345 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
18346 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
18347 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
18348 (cortex_a8_neon_bp_simple): Likewise.
18349 (cortex_a8_neon_bp_2cycle): Likewise.
18350 (cortex_a8_neon_bp_3cycle): Likewise.
18351 (cortex_a8_neon_ldr): Likewise.
18352 (cortex_a8_neon_str): Likewise.
18353 (cortex_a8_neon_vld1_1_2_regs): Likewise.
18354 (cortex_a8_neon_vld1_3_4_regs): Likewise.
18355 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
18356 (cortex_a8_neon_vld2_4_regs): Likewise.
18357 (cortex_a8_neon_vld3_vld4): Likewise.
18358 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
18359 (cortex_a8_neon_vst1_3_4_regs): Likewise.
18360 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
18361 (cortex_a8_neon_vst3_vst4): Likewise.
18362 (cortex_a8_neon_vld1_vld2_lane): Likewise.
18363 (cortex_a8_neon_vld3_vld4_lane): Likewise.
18364 (cortex_a8_neon_vst1_vst2_lane): Likewise.
18365 (cortex_a8_neon_vst3_vst4_lane): Likewise.
18366 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
18367 (cortex_a8_neon_mcr): Likewise.
18368 (cortex_a8_neon_mcr_2_mcrr): Likewise.
18369 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
18370 * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
18372 (ca9_neon_mrrc): Likewise.
18373 (cortex_a9_neon_int_1): Likewise.
18374 (cortex_a9_neon_int_2): Likewise.
18375 (cortex_a9_neon_int_3): Likewise.
18376 (cortex_a9_neon_int_4): Likewise.
18377 (cortex_a9_neon_int_5): Likewise.
18378 (cortex_a9_neon_vqneg_vqabs): Likewise.
18379 (cortex_a9_neon_vmov): Likewise.
18380 (cortex_a9_neon_vaba): Likewise.
18381 (cortex_a9_neon_vaba_qqq): Likewise.
18382 (cortex_a9_neon_vsma): Likewise.
18383 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
18384 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
18385 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
18386 long_scalar): Likewise.
18387 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
18388 (cortex_a9_neon_mla_qqq_8_16): Likewise.
18389 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
18390 long_scalar_qdd_64_32_long): Likewise.
18391 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
18392 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
18393 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
18394 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
18395 (cortex_a9_neon_shift_1): Likewise.
18396 (cortex_a9_neon_shift_2): Likewise.
18397 (cortex_a9_neon_shift_3): Likewise.
18398 (cortex_a9_neon_vshl_ddd): Likewise.
18399 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
18400 (cortex_a9_neon_vsra_vrsra): Likewise.
18401 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
18402 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
18403 (cortex_a9_neon_fp_vsum): Likewise.
18404 (cortex_a9_neon_fp_vmul_ddd): Likewise.
18405 (cortex_a9_neon_fp_vmul_qqd): Likewise.
18406 (cortex_a9_neon_fp_vmla_ddd): Likewise.
18407 (cortex_a9_neon_fp_vmla_qqq): Likewise.
18408 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
18409 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
18410 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
18411 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
18412 (cortex_a9_neon_bp_simple): Likewise.
18413 (cortex_a9_neon_bp_2cycle): Likewise.
18414 (cortex_a9_neon_bp_3cycle): Likewise.
18415 (cortex_a9_neon_ldr): Likewise.
18416 (cortex_a9_neon_str): Likewise.
18417 (cortex_a9_neon_vld1_1_2_regs): Likewise.
18418 (cortex_a9_neon_vld1_3_4_regs): Likewise.
18419 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
18420 (cortex_a9_neon_vld2_4_regs): Likewise.
18421 (cortex_a9_neon_vld3_vld4): Likewise.
18422 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
18423 (cortex_a9_neon_vst1_3_4_regs): Likewise.
18424 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
18425 (cortex_a9_neon_vst3_vst4): Likewise.
18426 (cortex_a9_neon_vld1_vld2_lane): Likewise.
18427 (cortex_a9_neon_vld3_vld4_lane): Likewise.
18428 (cortex_a9_neon_vst1_vst2_lane): Likewise.
18429 (cortex_a9_neon_vst3_vst4_lane): Likewise.
18430 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
18431 (cortex_a9_neon_mcr): Likewise.
18432 (cortex_a9_neon_mcr_2_mcrr): Likewise.
18433 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
18434 (cortex_a9_fps): Likewise.
18435 * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
18437 (cortex_m4_fmuls): Likewise.
18438 * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
18440 (cortex_r4_mrc): Likewise.
18441 * config/arm/iterators.md: Update comment referring to neon_type.
18442 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
18443 (iwmmxt_movsi_insn): Likewise.
18444 * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
18446 (pj4_core_to_vfp): Likewise.
18447 * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
18449 * config/arm/vfp11.md (vfp_fload): Update for attribute change.
18450 (vfp_fstore): Likewise.
18451 * doc/md.texi: Change references to neon_type to refer to type.
18453 2013-09-04 Dodji Seketeli <dodji@redhat.com>
18455 * tree.h (DECL_BUILT_IN): Fix typo in comment.
18457 2013-09-04 David Edelsohn <dje.gcc@gmail.com>
18459 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
18460 lglobl if not weak.
18462 2013-09-04 Easwaran Raman <eraman@google.com>
18464 PR middle-end/57370
18465 * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
18466 (build_and_add_sum): Use it.
18467 (appears_later_in_bb): Simplify code.
18469 2013-09-04 Teresa Johnson <tejohnson@google.com>
18471 * dumpfile.c (dump_finish): Don't close stderr/stdout.
18473 2013-09-04 James Greenhalgh <james.greenhalgh@arm.com>
18475 * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
18477 2013-09-04 Jan Hubicka <jh@suse.cz>
18479 * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
18480 * ipa-devirt.c: Include diganostic.h
18481 (odr_type_d): Add types and types_set.
18482 (hash_type_name): Work for types with vtables during LTO.
18483 (odr_hasher::remove): Fix comment; destroy types_set.
18484 (add_type_duplicate): New function,
18485 (get_odr_type): Use it.
18486 (dump_type_inheritance_graph): Dump type duplicates.
18487 * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
18489 * tree.c (types_same_for_odr): Give exact answers on types with
18492 2013-09-04 Dodji Seketeli <dodji@redhat.com>
18494 * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
18495 explaining their differences.
18497 2013-09-04 Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
18499 * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
18501 2013-09-03 Jeff Law <law@redhat.com>
18503 * tree-ssa-threadedge.c (thread_across_edge): Record entire path
18504 when not threading through a joiner block. Pass joiner/no joiner
18505 state to register_jump_thread.
18506 * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
18507 state from argument rather than implying on path length.
18508 Dump the entire jump thread path into debugging dump.
18509 * tree-flow.h (register_jump_thread): Update prototype.
18511 2013-08-29 Xinliang David Li <davidxl@google.com>
18513 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
18514 Remove a trivial gcc_assert.
18516 2013-08-29 Xinliang David Li <davidxl@google.com>
18518 * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
18519 * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
18520 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
18521 Delay base decl alignment adjustment.
18522 * tree-vectorizer.c (vect_destroy_datarefs): New function.
18523 * tree-vectorizer.h: New data structure.
18524 (set_dr_misalignment): New function.
18525 (dr_misalignment): Ditto.
18526 * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
18527 (vectorizable_load): Ditto.
18528 (ensure_base_align): New function.
18529 (vectorize_loops): Add dbg_cnt support.
18530 (execute_vect_slp): Ditto.
18531 * dbgcnt.def: New debug counter.
18532 * Makefile: New dependency.
18534 2013-09-03 Meador Inge <meadori@codesourcery.com>
18538 2013-08-30 Meador Inge <meadori@codesourcery.com>
18540 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
18542 2013-09-03 David Edelsohn <dje.gcc@gmail.com>
18544 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
18545 function descriptor.
18547 2013-09-03 Richard Biener <rguenther@suse.de>
18549 * tree-affine.c (add_elt_to_tree): Fix association issue,
18550 avoid useless converts and make sure to always return a
18551 properly typed result.
18553 2013-09-03 Richard Biener <rguenther@suse.de>
18555 PR middle-end/57656
18556 * fold-const.c (negate_expr_p): Fix division case.
18557 (negate_expr): Likewise.
18559 2013-09-03 Richard Biener <rguenther@suse.de>
18562 * tree-streamer-out.c: Include tm.h.
18563 * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
18565 2013-09-03 Jan Hubicka <jh@suse.cz>
18567 * tree-profile.c (tree_profiling): Cleanup CFG when done.
18569 2013-09-03 Alan Modra <amodra@gmail.com>
18571 * config.gcc (powerpc*-*-linux*): Add support for little-endian
18572 multilibs to big-endian target and vice versa.
18573 * config/rs6000/t-linux64: Use := assignment on all vars.
18574 (MULTILIB_EXTRA_OPTS): Remove fPIC.
18575 (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
18576 * config/rs6000/t-linux64le: New file.
18577 * config/rs6000/t-linux64bele: New file.
18578 * config/rs6000/t-linux64lebe: New file.
18580 2013-09-02 Jan Hubicka <jh@suse.cz>
18582 * ipa-inline-transform.c (inline_transform): Do not
18583 optimize_inline_calls when not optimizing.
18585 2013-09-02 Jan Hubicka <jh@suse.cz>
18587 * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
18588 duplicated nodes for assembler names.
18589 * symtab.c (symtab_unregister_node): Do not attempt to unlink
18590 hard registers from assembler name hash.
18592 2013-09-02 Jan Hubicka <jh@suse.cz>
18594 * ipa-split.c (execute_split_functions): Split externally visible
18595 functions called once.
18597 2013-09-02 Martin Jambor <mjambor@suse.cz>
18600 * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
18601 linked list. When finding the correct duplicate, also consider also
18602 the caller in additon to its inlined_to node.
18604 2013-09-02 James Greenhalgh <james.greenhalgh@arm.com>
18606 * config/aarch64/aarch64-simd-builtins.def
18607 (dup_lane_scalar): Remove.
18608 * config/aarch64/aarch64-simd.md
18609 (aarch64_simd_dup): Add 'w->w' alternative.
18610 (aarch64_dup_lane<mode>): Allow for VALL.
18611 (aarch64_dup_lane_scalar<mode>): Remove.
18612 (aarch64_dup_lane_<vswap_width_name><mode>): New.
18613 (aarch64_get_lane_signed<mode>): Add w->w altenative.
18614 (aarch64_get_lane_unsigned<mode>): Likewise.
18615 (aarch64_get_lane<mode>): Likewise.
18616 * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
18617 (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
18618 * config/aarch64/iterators.md (VSWAP_WIDTH): New.
18619 (VCON): Change container of V2SF.
18620 (vswap_width_name): Likewise.
18621 * config/aarch64/arm_neon.h
18622 (__aarch64_vdup_lane_any): New.
18623 (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
18624 (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
18625 (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
18627 2013-09-02 Eric Botcazou <ebotcazou@adacore.com>
18629 PR middle-end/56382
18630 * expr.c (emit_move_complex): Do not move complex FP values as parts if
18631 the source or the destination is a single hard register.
18633 2013-09-02 Richard Biener <rguenther@suse.de>
18635 PR middle-end/57511
18636 * tree-scalar-evolution.c (instantiate_scev_name): Allow
18639 2013-09-02 Richard Biener <rguenther@suse.de>
18641 * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
18642 arithmetic to sizetype.
18644 2013-09-02 Bin Cheng <bin.cheng@arm.com>
18646 * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
18647 Find auto-increment use both before and after candidate.
18649 2013-09-02 Marek Polacek <polacek@redhat.com>
18651 * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
18653 2013-09-01 Jan Hubicka <jh@suse.cz>
18655 * Makefile.in: Add ipa-profile.o
18656 (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
18657 * cgraph.c (struct cgraph_propagate_frequency_data,
18658 cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
18659 ipa-profile.c; replace cgraph_ by ipa_ prefix.
18660 * cgraph.h (cgraph_propagate_frequency): Remove.
18661 * ipa-inline-analysis.c: Include ipa-utils.h;
18662 drop duplicated cfgloop.h.
18663 (inline_update_callee_summaries): Update.
18664 * ipa-profile.c: New file.
18665 * ipa-utils.h (ipa_propagate_frequency): Declare.
18666 * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
18667 data-streamer.h, value-prof.h.
18668 (symtab_remove_unreachable_nodes): Update profile.
18669 (struct histogram_entry, histogram, histogram_pool, histogram_hash,
18670 account_time_size, cmp_counts, dump_histogram,
18671 ipa_profile_generate_summary, ipa_profile_write_summary,
18672 ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
18673 pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
18674 Move to ipa-profile.c.
18676 2013-09-01 John David Anglin <danglin@gcc.gnu.org>
18678 * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
18680 2013-09-01 Jan Hubicka <jh@suse.cz>
18682 * common.opt (fdevirtualize-speculatively): New function.
18683 * invoke.texi (fdevirtualize-speculatively): Document.
18684 * ipa-devirt.c: Include ipa-inline.h
18685 (likely_target_p): New function.
18686 (ipa_devirt): New function.
18687 (gate_ipa_devirt): New function.
18688 (pass_data_ipa_devirt): New static var.
18689 (pass_ipa_devirt): Likewise.
18690 (make_pass_ipa_devirt): New function.
18691 * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
18692 (common_handle_option): Disable devirtualization when
18693 value range profiling is available.
18694 * passes.def (pass_ipa_devirt): Add.
18695 * timever.def (TV_IPA_DEVIRT): New timevar.
18696 * tree-pass.h (make_pass_ipa_devirt):
18698 2013-09-01 Iain Sandoe <iain@codesourcery.com>
18700 * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
18701 include sanitize(undefined).
18703 2013-08-31 Diego Novillo <dnovillo@google.com>
18705 * Makefile.in (TREE_CORE_H): Define.
18707 (GTFILES): Add tree-core.h.
18708 * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
18710 * tree-core.h: New file.
18711 Move all data structures, enum, typedefs, global
18712 declarations and constants from ...
18713 * tree.h: ... here.
18715 2013-08-31 Jan Hubicka <jh@suse.cz>
18717 * bulitins.c (expand_builtin): Do not early exit for gcov
18718 instrumented functions.
18720 2013-08-31 Marek Polacek <polacek@redhat.com>
18722 * ubsan.c: Include tm_p.h.
18724 2013-08-31 Jan Hubicka <jh@suse.cz>
18726 * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
18729 * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
18730 * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
18731 * tree-cfg.c (verify_gimple_label): ... here.
18732 * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
18733 (ipa_merge_profiles): New function.
18734 * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
18735 (lto_input_function_body): Likewise.
18736 * ipa-utils.h (ipa_merge_profiles): Declare.
18737 * lto-streamer.h (lto_input_function_body): Update prototype.
18738 (emit_label_in_global_context_p): Remove.
18739 * lto-symtab.c: Include ipa-utils.h
18740 (lto_cgraph_replace_node): Use ipa_merge_profiles.
18742 2013-08-31 Jan Hubicka <jh@suse.cz>
18744 * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
18746 2013-08-31 Jan Hubicka <jh@suse.cz>
18748 * basic-block.h (apply_scale): Make scale parmeter gcov_type.
18750 2013-08-31 Uros Bizjak <ubizjak@gmail.com>
18752 * config/alpha/alpha.c (alpha_emit_conditional_move): Update
18753 "cmp" RTX before signed_comparison_operator check to account
18754 for "code" changes.
18756 2013-08-30 Jan Hubicka <jh@suse.cz>
18758 * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
18759 (detect_type_change_1): Rename to ...
18760 (detect_type_change): ... this one; early return on non-polymorphic
18762 (detect_type_change_ssa): Add comp_type parameter; update
18763 use of detect_type_change.
18764 (compute_complex_assign_jump_func): Add param_type parameter;
18765 update use of detect_type_change_ssa.
18766 (compute_complex_ancestor_jump_func): Likewise.
18767 (ipa_get_callee_param_type): New function.
18768 (ipa_compute_jump_functions_for_edge): Compute parameter type;
18769 update calls to the jump function computation functions.
18771 2013-08-30 Teresa Johnson <tejohnson@google.com>
18772 Steven Bosscher <steven@gcc.gnu.org>
18774 * cfgrtl.c (fixup_new_cold_bb): New routine.
18775 (commit_edge_insertions): Invoke fixup_partitions.
18776 (find_partition_fixes): New routine.
18777 (fixup_partitions): Ditto.
18778 (verify_hot_cold_block_grouping): Update comments.
18779 (rtl_verify_edges): Invoke find_partition_fixes.
18780 (rtl_verify_bb_pointers): Update comments.
18781 (rtl_verify_bb_layout): Ditto.
18782 * basic-block.h (probably_never_executed_edge_p): Declare.
18783 (fixup_partitions): Ditto.
18784 * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
18785 * bb-reorder.c (sanitize_hot_paths): New function.
18786 (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
18787 sanitize_hot_paths.
18788 * predict.c (probably_never_executed_edge_p): New routine.
18789 * cfg.c (check_bb_profile): Add partition insanity warnings.
18791 2013-08-30 Meador Inge <meadori@codesourcery.com>
18793 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
18795 2013-08-30 Marek Polacek <polacek@redhat.com>
18797 * Makefile.in (ubsan.o): Add.
18798 (c-family/c-ubsan.o): Add.
18799 (builtins.o): Add ubsan.h dependency.
18800 * ubsan.h: New file.
18801 * ubsan.c: New file.
18802 * common.opt: Add -fsanitize=undefined option.
18803 (flag_sanitize): Add variable.
18804 (fsanitize=): Add option. Add Driver.
18805 (fsanitize=thread): Remove option.
18806 (fsanitize=address): Likewise.
18807 (static-libubsan): New option.
18808 * doc/invoke.texi: Document the new flag and -static-libubsan.
18809 * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
18810 (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
18811 * builtin-attrs.def (ATTR_COLD): Define.
18812 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
18813 * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
18814 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
18815 * flag-types.h (sanitize_code): New enum.
18816 * opts.c (common_handle_option): Parse command line arguments
18817 of -fsanitize=. Add -fsanitize=unreachable option.
18818 * varasm.c (get_variable_section): Adjust.
18819 (assemble_noswitch_variable): Likewise.
18820 (assemble_variable): Likewise.
18821 (output_constant_def_contents): Likewise.
18822 (categorize_decl_for_section): Likewise.
18823 (place_block_symbol): Likewise.
18824 (output_object_block): Likewise.
18825 * builtins.def: Likewise.
18826 * toplev.c (compile_file): Likewise.
18827 (process_options): Likewise.
18828 * cppbuiltin.c: Likewise.
18829 * tsan.c (tsan_pass): Likewise.
18830 (tsan_gate): Likewise.
18831 (tsan_gate_O0): Likewise.
18832 * cfgexpand.c (partition_stack_vars): Likewise.
18833 (expand_stack_vars): Likewise.
18834 (defer_stack_allocation): Likewise.
18835 (expand_used_vars): Likewise.
18836 * cfgcleanup.c (old_insns_match_p): Likewise.
18837 * asan.c (asan_finish_file): Likewise.
18838 (asan_instrument): Likewise.
18839 (gate_asan): Likewise.
18840 (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
18841 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
18842 (asan_global_struct): Use pointer_sized_int_node instead
18843 calling build_nonstandard_integer_type.
18844 (initialize_sanitizer_builtins): Likewise.
18845 (asan_finish_file): Likewise.
18846 * gcc.c: Document %{%:function(args):X}.
18847 (static_spec_functions): Add sanitize.
18848 (handle_spec_function): Add retval_nonnull argument and if non-NULL,
18849 store funcval != NULL there.
18850 (do_spec_1): Adjust handle_spec_function caller.
18851 (handle_braces): Allow %:function(args) as condition.
18852 (sanitize_spec_function): New function.
18853 (ADD_STATIC_LIBUBSAN_LIBS): Define.
18854 (LIBUBSAN_SPEC): Likewise.
18855 (LIBUBSAN_EARLY_SPEC): Likewise.
18856 (SANITIZER_SPEC): Handle libubsan.
18857 (SANITIZER_EARLY_SPEC): Likewise.
18858 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
18859 instead of fsanitize=address.
18860 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
18861 instead of fsanitize=address*.
18862 * builtins.c: Include ubsan.h.
18863 (fold_builtin_0): Instrument __builtin_unreachable.
18864 * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
18865 instead of flag_asan.
18866 * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
18867 (pointer_sized_int_node): Define.
18868 * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
18870 2013-08-30 Mike Stump <mikestump@comcast.net>
18872 * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
18875 2013-08-29 Jan Hubicka <jh@suse.cz>
18877 * cgraph.c (cgraph_function_body_availability): Handle weakref
18879 * passes.def: Remove pass_fixup_cfg.
18880 * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
18881 track when we need to remove functions.
18882 (gate_ipa_inline): Execute inlining always; add comment why.
18883 (pass_data_ipa_inline): Remove TODO_remove_functions.
18884 * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
18885 do not produce summaries.
18886 * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
18887 (symtab_nonoverwritable_alias): Assert we are not called on weakref.
18888 * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
18889 constant pool and vtable.
18891 2013-08-30 Tejas Belagod <tejas.belagod@arm.com>
18893 * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
18894 New arm_neon.h's internal macros to specify 64-bit constants.
18895 Avoid using stdint.h's macros.
18897 2013-08-30 Joern Rennecke <joern.rennecke@embecosm.com>
18899 * recog.c (verify_changes): Verify that changes[i].old is non-zero
18900 before applying REG_P.
18902 2013-08-30 Jakub Jelinek <jakub@redhat.com>
18904 PR tree-optimization/58277
18905 * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
18906 after seeing too many stmts with vdef in between dombb and current
18907 bb, invalidate everything.
18909 2013-08-30 Richard Biener <rguenther@suse.de>
18911 * fold-const.c (fold_single_bit_test): Fix overflow test.
18913 2013-08-30 Eric Botcazou <ebotcazou@adacore.com>
18915 * function.c (assign_parm_setup_reg): For a parameter passed by pointer
18916 and which can live in a register, always retrieve the value on entry.
18917 * var-tracking.c (add_stores): Treat the copy on entry for a parameter
18918 passed by invisible reference specially.
18919 (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
18920 (vt_add_function_parameter): Correctly deal with a parameter passed by
18921 invisible reference.
18923 2013-08-30 Jan Hubicka <jh@suse.cz>
18925 * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
18927 2013-08-30 Richard Biener <rguenther@suse.de>
18929 PR tree-optimization/58228
18930 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
18931 allow invariant loads in nested loop vectorization.
18933 2013-08-30 Richard Biener <rguenther@suse.de>
18935 PR tree-optimization/58223
18936 * tree-loop-distribution.c (has_anti_dependence): Rename to ...
18937 (has_anti_or_output_dependence): ... this and adjust to also
18938 look for output dependences.
18939 (mark_nodes_having_upstream_mem_writes): Adjust.
18940 (rdg_flag_uses): Likewise.
18942 2013-08-30 Richard Biener <rguenther@suse.de>
18944 PR tree-optimization/58010
18945 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
18946 assert that we have a loop-closed PHI.
18948 2013-08-29 Jan Hubicka <jh@suse.cz>
18950 * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
18951 * cgraph.c (cgraph_release_function_body): Free decl_in_state.
18952 * lto-section-in.c (lto_free_function_in_decl_state): New function.
18953 (lto_free_function_in_decl_state_for_node): New function.
18955 2013-08-29 Xinliang David Li <davidxl@google.com>
18957 * loop-unroll.c (report_unroll_peel): Minor message change.
18958 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
18959 Emit alignment peeling message with default -fopt-info.
18960 (vect_loop_versioning): Emit loop version info message.
18961 * tree-vectorizer.c (vectorize_loops): Minor message change.
18962 (execute_vect_slp): Ditto.
18964 2013-08-29 Eric Botcazou <ebotcazou@adacore.com>
18966 * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
18967 of the clone from the DECL_NAME of the original function.
18969 2013-08-29 Oleg Endo <olegendo@gcc.gnu.org>
18971 * passes.c (register_pass): Add overload.
18972 * tree-pass.h (register_pass): Forward declare it. Add comment.
18974 2013-08-29 Jan Hubicka <jh@suse.cz>
18976 * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
18977 DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
18978 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
18979 DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
18980 (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
18981 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
18982 Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
18983 (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
18985 2013-08-29 Teresa Johnson <tejohnson@google.com>
18987 * dumpfile.c (dump_loc): Output column number.
18988 * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
18989 * doc/invoke.texi: Document optall -fopt-info flag.
18990 * profile.c (read_profile_edge_counts): Use new dump framework.
18991 (compute_branch_probabilities): Ditto.
18992 * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
18993 when pass not in any opt group.
18994 * pass_manager.h (pass_manager::get_pass_profile): New method.
18995 * value-prof.c (check_counter): Use new dump framework.
18996 (check_ic_target): Ditto.
18997 * coverage.c (get_coverage_counts): Ditto.
18998 (coverage_init): Setup new dump framework.
19000 2013-08-29 Richard Biener <rguenther@suse.de>
19002 PR tree-optimization/58246
19003 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
19004 handle the dominance check inside a basic-block.
19006 2013-08-29 Richard Biener <rguenther@suse.de>
19008 PR middle-end/57287
19009 * tree-ssa-copy.c (may_propagate_copy): Allow propagating
19010 of default defs that appear in abnormal PHI nodes.
19012 2013-08-29 Richard Biener <rguenther@suse.de>
19014 PR tree-optimization/57685
19015 * tree-vrp.c (register_edge_assert_for_1): Recurse only for
19016 single-use operands to avoid exponential complexity.
19018 2013-08-28 Dehao Chen <dehao@google.com>
19020 * ipa-inline.c (edge_badness): Fix integer underflow.
19022 2013-08-28 Uros Bizjak <ubizjak@gmail.com>
19024 * gtm-builtins.def (_ITM_free): Declare leaf.
19026 2013-08-28 Jakub Jelinek <jakub@redhat.com>
19029 * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
19030 (*tls_local_dynamic_base_64_largepic): Likewise.
19031 (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
19032 Remove predicate from call operand.
19033 * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
19034 return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
19036 2013-08-28 Jeff Law <law@redhat.com>
19038 * tree-ssa-threadedge.c (thread_around_empty_block): Remove
19039 checks for the number of predecessors and successors allowed.
19040 * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
19041 which require copying a joiner block if there is a request which
19042 is a subpath that requires no joiner block copying.
19044 2013-08-28 Jan Hubicka <jh@suse.cz>
19046 * lto-streamer-out.c (DFS_write_tree_body): Drop
19047 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
19048 (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
19049 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
19050 * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
19051 Do not read DECL_ERROR_ISSUED.
19052 (unpack_ts_decl_with_vis_value_fields): Do not read
19054 (lto_input_ts_binfo_tree_pointers): Do not read
19055 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
19056 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
19057 write DECL_ERROR_ISSUED..
19058 (pack_ts_decl_with_vis_value_fields): Do not write
19060 (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
19061 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
19062 * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
19063 * tree.h (tree_decl_common): Update comment.
19064 (DECL_ERROR_ISSUED): Remove.
19066 2013-08-28 Jakub Jelinek <jakub@redhat.com>
19068 PR middle-end/58257
19069 * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
19071 2013-08-28 Jan Hubicka <jh@suse.cz>
19073 * builtins.def (free): Declare leaf.
19075 2013-08-27 David Malcolm <dmalcolm@redhat.com>
19077 * gdbhooks.py: New.
19078 * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
19079 * configure: Regenerate.
19081 2013-08-27 Martin Jambor <mjambor@suse.cz>
19083 * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
19084 (ipa_ancestor_jf_data): Likewise.
19085 (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
19086 (ipa_get_jf_pass_through_type_preserved): New function.
19087 (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
19088 (ipa_get_jf_ancestor_type_preserved): New function.
19089 * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
19090 (ipa_get_jf_ancestor_result): Likewise.
19091 (propagate_vals_accross_pass_through): Use
19092 ipa_get_jf_pass_through_result to do all the value mappings.
19093 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
19094 type_preserved flag.
19095 (ipa_set_jf_cst_copy): New function.
19096 (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
19097 (ipa_set_jf_arith_pass_through): Likewise.
19098 (ipa_set_ancestor_jf): Likewise.
19099 (compute_complex_assign_jump_func): Set type_preserved instead of
19101 (ipa_compute_jump_functions_for_edge): Likewise.
19102 (combine_known_type_and_ancestor_jfs): Honor type_preserved.
19103 (update_jump_functions_after_inlining): Update type_preserved.
19104 Explicitely create jump functions when combining one with pass_through.
19105 (ipa_write_jump_function): Stream the type_preserved flags.
19106 (ipa_read_jump_function): Likewise.
19108 2013-08-27 Jakub Jelinek <jakub@redhat.com>
19109 Aldy Hernandez <aldyh@redhat.com>
19111 * Makefile.in (omp-low.o): Depend on $(TARGET_H).
19112 * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
19113 * function.h (struct function): Add has_force_vect_loops and
19115 * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
19116 * gimple.c (gimple_build_omp_critical): Add KIND argument and
19118 * gimple.def: Update CLAUSES comments.
19119 * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
19120 (gimple_build_omp_for): Add argument to prototype.
19121 (gimple_omp_for_kind): New.
19122 (gimple_omp_for_set_kind): New.
19123 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
19124 GOVD_DATA_SHARE_CLASS.
19125 (enum omp_region_type): Add ORT_SIMD.
19126 (gimple_add_tmp_var): Handle ORT_SIMD.
19127 (gimplify_var_or_parm_decl): Same.
19128 (is_gimple_stmt): Same.
19129 (omp_firstprivatize_variable): Same.
19130 (omp_add_variable): Only use splay_tree_insert if lookup failed.
19131 (omp_notice_variable): Handle ORT_SIMD.
19132 (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
19133 (omp_check_private): Handle ORT_SIMD.
19134 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
19135 OMP_CLAUSE_SAFELEN.
19136 (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
19137 Handle OMP_CLAUSE_LASTPRIVATE.
19138 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
19139 OMP_CLAUSE_SAFELEN.
19140 (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
19141 (gimplify_expr): Handle OMP_SIMD.
19142 * internal-fn.c (expand_GOMP_SIMD_LANE): New.
19143 (expand_GOMP_SIMD_VF): New.
19144 (expand_GOMP_SIMD_LAST_LANE): New.
19145 * internal-fn.def (GOMP_SIMD_LANE): New.
19146 (GOMP_SIMD_VF): New.
19147 (GOMP_SIMD_LAST_LANE): New.
19148 * omp-low.c: Include target.h.
19149 (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
19150 OMP_CLAUSE_SAFELEN.
19151 (check_omp_nesting_restrictions): Same.
19153 (lower_rec_simd_input_clauses): New.
19154 (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
19156 (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
19157 GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
19158 (expand_omp_build_assign): New.
19159 (expand_omp_for_init_counts): New.
19160 (expand_omp_for_init_vars): New.
19161 (extract_omp_for_update_vars): New.
19162 (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
19163 and rewrite accordingly.
19164 (expand_omp_simd): New.
19165 (expand_omp_for): Use expand_omp_simd.
19166 (lower_omp_for_lastprivate): Unshare vinit when appropriate.
19167 (lower_omp_for): Do not lower the body.
19168 * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
19169 in their own loops.
19170 * tree-flow.h (find_omp_clause): Remove prototype.
19171 * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
19172 forcing vectorization of the loop, or if flag_tree_vectorize.
19173 (gate_tree_if_conversion): Similarly.
19174 * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
19175 gimple_build_omp_for.
19176 (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
19177 * tree-parloops (create_parallel_loop): Pass kind argument to
19178 gimple_build_omp_for.
19179 * tree-pretty-print.c (dump_omp_clause): Add cases for
19180 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
19181 OMP_CLAUSE__SIMDUID_.
19182 (dump_generic_node): Handle OMP_SIMD.
19183 * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
19184 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
19185 unroll OMP_SIMD loops here.
19186 * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
19187 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
19189 (vect_analyze_data_refs): Handle simd loops.
19190 * tree-vect-loop.c (vectorizable_live_operation): Handle
19192 * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
19193 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
19194 (vectorizable_load): Same.
19195 * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
19196 (struct simduid_to_vf): New.
19197 (simduid_to_vf::hash): New.
19198 (simduid_to-vf::equal): New.
19199 (struct simd_array_to_simduid): New.
19200 (simd_array_to_simduid::hash): New.
19201 (simd_array_to_simduid::equal): New.
19202 (adjust_simduid_builtins): New.
19203 (struct note_simd_array_uses_struct): New.
19204 (note_simd_array_uses_cb): New.
19205 (note_simd_array_uses): New.
19206 (vectorize_loops): Handle simd hints and adjust simd builtins
19208 * tree-vectorizer.h (struct _stmt_vec_info): Add
19209 simd_lane_access_p field.
19210 (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
19211 * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
19212 OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
19213 (omp_clause_code_name): Same.
19214 (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
19215 OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
19216 * tree.def (OMP_SIMD): New entry.
19217 * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
19218 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
19219 (OMP_CLAUSE_DECL): Adjust range for new clauses.
19220 (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
19221 (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
19222 (OMP_CLAUSE_LINEAR_STEP): New.
19223 (OMP_CLAUSE_SAFELEN_EXPR): New.
19224 (OMP_CLAUSE__SIMDUID__DECL): New.
19225 (find_omp_clause): New prototype.
19227 2013-08-27 H.J. Lu <hongjiu.lu@intel.com>
19229 * config/i386/driver-i386.c (host_detect_local_cpu): Update
19230 Haswell processor detection.
19232 2013-08-27 Christian Widmer <shadow@umbrox.de>
19235 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
19236 of Ivy Bridge and Haswell processors. Assume core-avx2 for unknown
19237 AVX2 capable processors.
19239 2013-08-27 Tejas Belagod <tejas.belagod@arm.com>
19241 * config/aarch64/arm_neon.h: Replace all inline asm implementations
19242 of vget_low_* with implementations in terms of other intrinsics.
19244 2013-08-27 Marc Glisse <marc.glisse@inria.fr>
19246 PR middle-end/57219
19247 * doc/extend.texi (__builtin_isinf_sign): Restrict the return
19248 values to -1, 0 and 1.
19250 2013-08-27 Vidya Praveen <vidyapraveen@arm.com>
19252 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
19253 UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
19254 (<optab><mode>3_insn): Remove.
19255 (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
19256 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
19257 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
19258 (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
19259 (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
19260 (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
19261 (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
19262 (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
19263 (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
19264 (ror<mode>3_insn): Likewise.
19265 * config/aarch64/predicates.md (aarch64_simd_register): New.
19267 2013-08-27 Richard Biener <rguenther@suse.de>
19269 PR tree-optimization/57521
19270 * tree-if-conv.c (if_convertible_bb_p): Verify that at least
19271 one edge is non-critical.
19272 (find_phi_replacement_condition): Make sure to use a non-critical
19273 edge. Cleanup and remove old bug workarounds.
19274 (bb_postdominates_preds): Remove.
19275 (if_convertible_loop_p_1): Do not compute post-dominators.
19276 (combine_blocks): Do not free post-dominators.
19277 (main_tree_if_conversion): Likewise.
19278 (pass_data_if_conversion): Add TODO_verify_ssa.
19280 2013-08-27 DJ Delorie <dj@redhat.com>
19282 * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
19284 2013-08-27 Yufeng Zhang <yufeng.zhang@arm.com>
19286 * function.c (assign_parm_find_data_types): Set passed_mode and
19287 nominal_mode to the TYPE_MODE of nominal_type for the built
19288 pointer type in case of the struct-pass-by-reference.
19290 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
19292 * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
19293 (UINT16_TYPE): Change default to "unsigned int".
19295 * config/avr/avr.opt (mfract-convert-truncate): New option.
19296 * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
19297 is set, round negative fractional integers according to n1169
19298 when converting to integer types.
19300 2013-08-26 Jan Hubicka <jh@suse.cz>
19302 * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
19303 methods can not be called indirectly when their address is not taken.
19305 2013-08-26 Jan Hubicka <jh@suse.cz>
19307 * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
19310 2013-08-26 Jan Hubicka <jh@suse.cz>
19312 * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
19315 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
19317 * reload.c (find_valid_class): Allow classes that do not include
19318 FIRST_PSEUDO_REGISTER - 1.
19320 2013-08-26 Jan Hubicka <jh@suse.cz>
19322 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
19323 fix edge count/frequency when speculation failed; fix type check
19324 for the direct call.
19326 2013-08-26 Jan Hubicka <jh@suse.cz>
19328 * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
19330 2013-08-26 Jan Hubicka <jh@suse.cz>
19332 * ipa-inline-transform.c (inline_transform): Be ready for basic block
19333 to be changed by edge redirection.
19335 2013-08-26 Jan Hubicka <jh@suse.cz>
19337 * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
19338 formating; add sanity check.
19339 (cgraph_resolve_speculation): Add FIXME about scaling profiles.
19340 (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
19341 * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
19342 (resolve_noninline_speculation): Update callee keys, too.
19344 2013-08-26 Jan Hubicka <jh@suse.cz>
19346 * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
19347 (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
19349 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
19351 * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
19354 2013-08-26 Uros Bizjak <ubizjak@gmail.com>
19356 * config/i386/i386.c (ix86_debug_options): Remove prototype.
19357 (x86_64_elf_select_section): Ditto.
19358 (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
19360 (ix86_pass_by_reference): Ditto.
19361 (output_set_got): Ditto.
19362 (ix86_unary_operator_ok): Ditto.
19363 (ix86_expand_builtin): Ditto.
19365 2013-08-23 Jan Hubicka <jh@suse.cz>
19367 * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
19369 2013-08-23 Jan Hubicka <jh@suse.cz>
19371 * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
19372 (tree_decl_with_vis): Add FINAL field.
19374 2013-08-23 Jeff Law <law@redhat.com>
19376 * tree-ssa-pre.c (do_regular_insertion): Include the expression in
19377 the debugging dump when the expression is fully redundant.
19379 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
19381 * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
19382 * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
19383 * pretty-print.c (pp_formatted_text_data): Likewise.
19384 (pp_write_text_to_stream): Likewise.
19385 (pp_write_text_as_dot_label_to_stream): Likewise.
19386 (pp_append_r): Likewise.
19387 (pp_format): Likewise.
19388 (pp_flush): Likewise.
19389 (pp_clear_output_area): Likewise.
19390 (pp_append_text): Likewise.
19391 (pp_formatted_text): Likewise.
19392 (pp_remaining_character_count_for_line): Likewise.
19393 (pp_newline): Likewise.
19394 (pp_character): Likewise.
19395 (output_buffer::~output_buffer): Define.
19396 (pretty_printer::~pretty_printer): Destruct output buffer.
19397 * pretty-print.h (output_buffer::~output_buffer): Declare.
19398 (pretty_printer::~pretty_printer): Declare virtual.
19400 2013-08-24 Marc Glisse <marc.glisse@inria.fr>
19403 * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
19404 HOST_WIDE_INT_M1U): New macros.
19405 * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
19406 fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
19407 unsigned -1 for lshift.
19408 * cse.c (cse_insn): Likewise.
19409 * double-int.c (rshift_double, lshift_double): Likewise.
19410 * builtins.c (fold_builtin_bitop): Likewise.
19411 * combine.c (force_to_mode): Likewise.
19412 * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
19413 * simplify-rtx.c (simplify_const_unary_operation,
19414 simplify_const_binary_operation): Likewise.
19415 * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
19416 check_va_list_escapes): Likewise.
19417 * rtlanal.c (nonzero_bits1): Likewise.
19418 * expmed.c (expand_smod_pow2): Likewise.
19419 * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
19421 2013-08-23 Jan Hubicka <jh@suse.cz>
19423 * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
19424 as having address taken.
19426 2013-08-23 Jan Hubicka <jh@suse.cz>
19428 * ipa-utils.h (method_class_type): Declare.
19429 * ipa-devirt.c (method_class_type): Export.
19431 * cgraphunit.c (analyze_functions): Do basic devirtualization;
19432 do not walk base classes of anonymous types.
19434 2013-08-23 Kaz Kojima <kkojima@gcc.gnu.org>
19436 PR rtl-optimization/58220
19437 PR regression/58221
19438 * final.c (reemit_insn_block_notes): Use NEXT_INSN to
19439 handle SEQUENCE insns properly.
19441 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
19443 * pretty-print.h (pp_newline_and_flush): Declare. Remove macro
19445 (pp_newline_and_indent): Likewise.
19446 (pp_separate_with): Likewise.
19447 * pretty-print.c (pp_newline_and_flush): Define.
19448 (pp_newline_and_indent): Likewise.
19449 (pp_separate_with): Likewise.
19451 2013-08-23 Jakub Jelinek <jakub@redhat.com>
19454 * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
19455 * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
19457 2013-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
19459 * config/i386/predicates.md (ext_sse_reg_operand): New.
19460 * config/i386/i386.md (*movti_internal): Use
19461 predicate to determine if EVEX is needed.
19462 (*movsi_internal): Ditto.
19463 (*movdf_internal): Ditto.
19464 (*movsf_internal): Ditto.
19465 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
19467 2013-08-23 Jakub Jelinek <jakub@redhat.com>
19469 PR tree-optimization/58209
19470 * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
19471 (find_tail_calls): Give up for pointer result types if m is non-NULL.
19472 (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
19473 emit POINTER_PLUS_EXPR.
19474 (create_tailcall_accumulator): For pointer result type accumulate in
19477 2013-08-22 Paolo Carlini <paolo.carlini@oracle.com>
19479 * configure.ac: Add backslashes missing from the last change.
19480 * configure: Regenerate.
19482 2013-08-22 Jan Hubicka <jh@susue.cz>
19484 * ipa.c (function_and_variable_visibility): First remember function
19485 was global and then make it local.
19487 2013-08-22 Julian Brown <julian@codesourcery.com>
19489 * configure.ac: Add aarch64 to list of arches which use "nop" in
19491 * configure: Regenerate.
19493 2013-08-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19495 * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
19496 gnu_libc_has_function.
19497 * config/s390/tpf.h: Likewise.
19499 2013-08-22 Jan Hubicka <jh@susue.cz>
19501 * timevar.c (validate_phases): Add cast.
19503 2013-08-22 Jan Hubicka <jh@susue.cz>
19505 * timevar.c (validate_phases): Use size_t for memory.
19506 * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
19508 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
19510 * pretty-print.h (output_buffer::output_buffer): Declare.
19511 (pretty_printer::pretty_printer): Likewise.
19512 (pp_construct): Remove.
19513 * pretty-print.c (output_buffer::output_buffer): Define.
19514 (pretty_printer::pretty_printer): Rename from pp_construct. Simplify.
19515 * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
19516 (print_gimple_expr): Likewise.
19517 (print_gimple_seq): Likewise.
19518 (gimple_dump_bb): Likewise.
19519 * sched-vis.c (dump_value_slim): Likewise.
19520 (dump_insn_slim): Likewise.
19521 (dump_rtl_slim): Likewise.
19522 (str_pattern_slim): Likewise.
19523 * tree-mudflap.c (mf_varname_tree): Likewise.
19524 * graph.c (print_graph_cfg): Likewise.
19525 (start_graph_dump): Likewise.
19526 * tree-pretty-print.c (maybe_init_pretty_print): Likewise. Use
19528 * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
19529 pretty printer initialization.
19530 * coretypes.h (diagnostic_context): Remove superflous type alias
19532 (pretty_printer): Likewise. Declare directly as a class.
19533 (pretty_print_info): Remove declaration as class.
19534 * asan.c (asan_emit_stack_protection): Remove call to pp_construct
19535 and pp_clear_output_area.
19536 (asan_add_global): Likewise.
19538 2013-08-22 Jan Hubicka <jh@suse.cz>
19540 * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
19541 * ipa-utils.h (update_type_inheritance_graph): Declare.
19542 (possible_polymorphic_call_target_p): Declare.
19543 (possible_polymorphic_call_target_p): New.
19544 * ipa-devirt.c: Update toplevel comments.
19545 (cached_polymorphic_call_targets): Move up.
19546 (odr_type_d): Move ID down.
19547 (polymorphic_type_binfo_p): Update comment.
19548 (odr_hasher::remove): Likewise;
19549 (get_odr_type): Set anonymous_namespace.
19550 (dump_odr_type): Dump it.
19551 (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
19552 (maybe_record_node): Record node in cached_polymorphic_call_targets.
19553 (record_binfo): Add comment.
19554 (free_polymorphic_call_targets_hash): Do not ICE when cache is not
19556 (devirt_node_removal_hook): Do not iCE when cache is freed.
19557 (possible_polymorphic_call_target_p): New predicate.
19558 (update_type_inheritance_graph): New function.
19560 2013-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
19561 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
19562 Sergey Lega <sergey.s.lega@intel.com>
19563 Anna Tikhonova <anna.tikhonova@intel.com>
19564 Ilya Tocar <ilya.tocar@intel.com>
19565 Andrey Turetskiy <andrey.turetskiy@intel.com>
19566 Ilya Verbin <ilya.verbin@intel.com>
19567 Kirill Yukhin <kirill.yukhin@intel.com>
19568 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
19570 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
19571 (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
19572 (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
19573 (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
19574 (OPTION_MASK_ISA_AVX2_UNSET): Update.
19575 (OPTION_MASK_ISA_AVX512F_UNSET): New.
19576 (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
19577 (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
19578 (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
19579 (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
19580 OPT_mavx512pf, OPT_mavx512er cases.
19581 * config/i386/constraints.md (v): New constraint.
19582 (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
19583 * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
19584 (bit_AVX512CD): New.
19585 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
19586 AVX512F, AVX512ER, AVX512PF, AVX512CD features.
19587 * config/i386/i386-c.c (ix86_target_macros_internal):
19588 Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
19590 * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
19591 (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
19592 * config/i386/i386.c (regclass_map, dbx_register_map)
19593 (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
19594 (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
19595 (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
19596 -mavx512pf options.
19597 (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
19598 PTA_AVX512PF, PTA_AVX512CD. Handle -mavx512f, -mavx512er, -mavx512cd,
19599 -mavx512pf options. Fix formatting.
19600 (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
19601 targets. Squash EVEX_SSE_REGS if AVX512F is disabled.
19602 (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
19603 -mavx512cd, -mavx512pf options.
19604 (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
19605 (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
19606 (ix86_preferred_output_reload_class): Replace SSE_REGS with
19608 (ix86_hard_regno_mode_ok): Support 512-bit registers.
19609 (ix86_set_reg_reg_cost): Ditto.
19610 (x86_order_regs_for_local_alloc): Ditto.
19611 (MAX_VECT_LEN): Extend to 64-byte.
19612 (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
19613 * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
19614 (TARGET_AVX512ER, TARGET_AVX512CD): New.
19615 (BIGGEST_ALIGNMENT): Extend to 512-bits.
19616 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
19617 (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
19618 (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
19619 (SSE_REG_MODE_P): Support new modes.
19620 (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
19621 (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
19622 (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
19623 (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
19624 (REG_CLASS_CONTENTS): Add new registers.
19625 (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
19626 (EXT_REX_SSE_REGNO_P): New.
19627 (HI_REGISTER_NAMES): Add new registers.
19628 * config/i386/i386.md: Define constants for new registers.
19629 (mode): Add new 512-bit modes.
19630 (prefix): Support evex prefix.
19631 (isa): Support avx512f, noavx512f, fma_avx512f.
19632 (ssemodesuffix): Add new 512-bit modes.
19634 (*movxi_internal_avx512f): Ditto.
19635 (*movdi_internal): Replace constraint "x" with the new constraint "v".
19637 (*movsi_internal): Likewise.
19638 (*movdf_internal): Likewise.
19639 (*movsf_internal): Likewise.
19640 (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
19641 (<code><mode>3): Likewise.
19642 * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
19644 * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
19645 with the new constraint "v".
19646 * config/i386/sse.md (*mov<mode>_internal): Support new registers and
19648 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
19649 with the new constraint "v".
19650 (<sse2>_loaddqu<avxsizesuffix>): Likewise.
19651 (<sse2>_storedqu<avxsizesuffix>): Likewise.
19652 (*<plusminus_insn><mode>3): Likewise.
19653 (<sse>_vm<plusminus_insn><mode>3): Likewise.
19654 (*mul<mode>3): Likewise.
19655 (<sse>_vmmul<mode>3): Likewise.
19656 (<sse>_div<mode>3): Likewise.
19657 (<sse>_vmdiv<mode>3): Likewise.
19658 (<sse>_sqrt<mode>2): Likewise.
19659 (<sse>_vmsqrt<mode>2): Likewise.
19660 (*<code><mode>3_finite): Likewise.
19661 (*<code><mode>3) <smaxmin>: Likewise.
19662 (<sse>_vm<code><mode>3): Likewise.
19663 (*<code><mode>3) <any_logic>: Likewise.
19664 (*fma_fmadd_<mode>): Likewise.
19665 (*fma_fmsub_<mode>): Likewise.
19666 (*fma_fnmadd_<mode>): Likewise.
19667 (*fma_fnmsub_<mode>): Likewise.
19668 (*fma_fmaddsub_<mode>): Likewise.
19669 (*fma_fmsubadd_<mode>): Likewise.
19670 (*fmai_fmadd_<mode>): Likewise.
19671 (*fmai_fmsub_<mode>): Likewise.
19672 (*fmai_fnmadd_<mode>): Likewise.
19673 (*fmai_fnmsub_<mode>): Likewise.
19674 (sse_cvtsi2ss): Likewise.
19675 (sse_cvtsi2ssq): Likewise.
19676 (sse_cvtss2si): Likewise.
19677 (sse_cvtss2si_2): Likewise.
19678 (sse_cvtss2siq): Likewise.
19679 (sse_cvtss2siq_2): Likewise.
19680 (sse_cvttss2si): Likewise.
19681 (sse_cvtss2siq_2): Likewise.
19682 (float<sseintvecmodelower><mode>2): Likewise.
19683 (sse2_cvtsd2si_2): Likewise.
19684 (sse2_cvtsd2siq_2): Likewise.
19685 (*<plusminus_insn><mode>3): Likewise.
19686 (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
19687 (*<sse4_1_avx2>_mul<mode>3): Likewise.
19688 (ashr<mode>3): Likewise.
19689 (<shift_insn><mode>3): Likewise.
19690 (avx2_<code><mode>3): Likewise.
19691 (*avx2_<code><mode>3): Likewise.
19692 (*andnot<mode>3): Likewise.
19693 (*<code><mode>3) <any_logic>: Likewise.
19694 (abs<mode>2): Likewise.
19695 (avx2_permvar<mode>): Likewise.
19696 (avx2_perm<mode>_1): Likewise.
19697 (*avx_vpermilp<mode>): Likewise.
19698 (avx_vpermilvar<mode>3): Likewise.
19699 (avx2_ashrv<mode>): Likewise.
19700 (avx2_<shift_insn>v<mode>): Likewise.
19701 * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
19703 * doc/rtl.texi: Document XImode.
19705 2013-08-21 Jeff Law <law@redhat.com>
19707 * tree-flow.h (register_jump_thread): Pass vector of edges
19708 instead of each important edge.
19709 * tree-ssa-threadedge.c (thread_across_edge): Build the jump
19710 thread path into a vector and pass that to register_jump_thread.
19711 * tree-ssa-threadupdate.c (register_jump_thread): Conver the
19712 passed in edge vector to the current 3-edge form.
19715 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
19717 * dce.c (fini_dce): Call df_analyze again just in case
19718 delete_unmarked_insns removed anything.
19720 2013-08-21 Joern Rennecke <joern.rennecke@embecosm.com>
19722 * reload.h (struct reg_equivs): Rename to ..
19723 (struct reg_equivs_s): .. this.
19725 2013-08-20 Martin Liska <marxin.liska@gmail.com>
19727 * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
19729 2013-08-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19731 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
19733 2013-08-21 Jeff Law <law@redhat.com>
19735 * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
19736 simplify assignments too. If the RHS collapses to a singleton
19737 range, then return the value for the range.
19739 2013-08-21 Kirill Yukhin <kirill.yukhin@intel.com>
19741 * config/i386/sse.md (V16): Rename to...
19743 (mov<mode>): Update iterator name.
19744 (*mov<mode>_internal): Ditto.
19745 (push<mode>1): Ditto.
19746 (movmisalign<mode>): Ditto.
19748 2013-08-20 Jan Hubicka <jh@suse.cz>
19751 * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
19752 entry for direct edges.
19753 (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
19755 2013-08-20 David Malcolm <dmalcolm@redhat.com>
19757 Revert my last two changes, r201865 and r201864:
19760 2013-08-20 David Malcolm <dmalcolm@redhat.com>
19762 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
19763 instances can own GC refs.
19765 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
19766 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
19767 (gcc::context::gt_pch_nx): Likewise.
19768 (gcc::context::gt_pch_nx): Likewise.
19769 * ggc.h (gt_ggc_mx <T>): New.
19770 (gt_pch_nx_with_op <T>): New.
19771 (gt_pch_nx <T>): New.
19772 * passes.c (opt_pass::gt_ggc_mx): New.
19773 (opt_pass::gt_pch_nx): New.
19774 (opt_pass::gt_pch_nx_with_op): New.
19775 (pass_manager::gt_ggc_mx): New.
19776 (pass_manager::gt_pch_nx): New.
19777 (pass_manager::gt_pch_nx_with_op): New.
19778 (pass_manager::operator new): Use
19779 ggc_internal_cleared_alloc_stat rather than xcalloc.
19780 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
19781 (pass_manager::gt_ggc_mx): New.
19782 (pass_manager::gt_pch_nx): New.
19783 (pass_manager::gt_pch_nx_with_op): New.
19784 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
19785 (opt_pass::operator new): New.
19786 (opt_pass::gt_ggc_mx): New.
19787 (opt_pass::gt_pch_nx): New.
19788 (opt_pass::gt_pch_nx_with_op): New.
19791 2013-08-20 David Malcolm <dmalcolm@redhat.com>
19793 * Makefile.in (GTFILES): Add context.h.
19794 * context.c (gcc::context::operator new): New.
19795 (gcc::context::gt_ggc_mx): New.
19796 (gcc::context::gt_pch_nx): New.
19797 (gcc::context::gt_pch_nx): New.
19798 * context.h (gcc::context): Add GTY((user)) marking.
19799 (gcc::context::operator new): New.
19800 (gcc::context::gt_ggc_mx): New.
19801 (gcc::context::gt_pch_nx): New.
19802 (gcc::context::gt_pch_nx): New.
19803 (g): Add GTY marking.
19804 (gt_ggc_mx (gcc::context *)): New.
19805 (gt_pch_nx (gcc::context *)): New.
19806 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
19807 void *cookie)): New.
19808 * gengtype.c (open_base_files) <ifiles>: Add context.h.
19810 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
19812 * dce.c (fini_dce): Call df_analyze again just in case
19813 delete_unmarked_insns removed anything.
19815 2013-08-20 Teresa Johnson <tejohnson@google.com>
19817 PR rtl-optimizations/57451
19818 * final.c (reemit_insn_block_notes): Prevent lexical blocks
19819 from crossing split section boundaries.
19821 2013-08-20 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
19823 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
19824 * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
19825 with MULTLIB_DEFAULTS.
19827 2013-08-20 Nick Clifton <nickc@redhat.com>
19829 * target.def (narrow_volatile_bitfield): Note that the default
19830 value is false, not !TARGET_STRICT_ALIGN.
19831 * doc/tm.texi: Regenerate.
19833 2013-08-20 Pavel Chupin <pavel.v.chupin@intel.com>
19835 Fix LIB_SPEC for systems without libpthread.
19837 * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
19838 * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
19840 * config/i386/linux-common.h: Likewise.
19841 * config/mips/linux-common.h: Likewise.
19843 2013-08-20 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
19845 * tree-ssa-ccp.c (get_default_value): Remove redundant condition
19848 2013-08-20 David Malcolm <dmalcolm@redhat.com>
19850 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
19851 instances can own GC refs.
19853 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
19854 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
19855 (gcc::context::gt_pch_nx): Likewise.
19856 (gcc::context::gt_pch_nx): Likewise.
19857 * ggc.h (gt_ggc_mx <T>): New.
19858 (gt_pch_nx_with_op <T>): New.
19859 (gt_pch_nx <T>): New.
19860 * passes.c (opt_pass::gt_ggc_mx): New.
19861 (opt_pass::gt_pch_nx): New.
19862 (opt_pass::gt_pch_nx_with_op): New.
19863 (pass_manager::gt_ggc_mx): New.
19864 (pass_manager::gt_pch_nx): New.
19865 (pass_manager::gt_pch_nx_with_op): New.
19866 (pass_manager::operator new): Use
19867 ggc_internal_cleared_alloc_stat rather than xcalloc.
19868 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
19869 (pass_manager::gt_ggc_mx): New.
19870 (pass_manager::gt_pch_nx): New.
19871 (pass_manager::gt_pch_nx_with_op): New.
19872 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
19873 (opt_pass::operator new): New.
19874 (opt_pass::gt_ggc_mx): New.
19875 (opt_pass::gt_pch_nx): New.
19876 (opt_pass::gt_pch_nx_with_op): New.
19878 2013-08-20 David Malcolm <dmalcolm@redhat.com>
19880 * Makefile.in (GTFILES): Add context.h.
19881 * context.c (gcc::context::operator new): New.
19882 (gcc::context::gt_ggc_mx): New.
19883 (gcc::context::gt_pch_nx): New.
19884 (gcc::context::gt_pch_nx): New.
19885 * context.h (gcc::context): Add GTY((user)) marking.
19886 (gcc::context::operator new): New.
19887 (gcc::context::gt_ggc_mx): New.
19888 (gcc::context::gt_pch_nx): New.
19889 (gcc::context::gt_pch_nx): New.
19890 (g): Add GTY marking.
19891 (gt_ggc_mx (gcc::context *)): New.
19892 (gt_pch_nx (gcc::context *)): New.
19893 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
19894 void *cookie)): New.
19895 * gengtype.c (open_base_files) <ifiles>: Add context.h.
19897 2013-08-20 Alan Modra <amodra@gmail.com>
19900 * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
19901 (rs6000_emit_epilogue): Likewise.
19903 2013-08-19 Dehao Chen <dehao@google.com>
19905 * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
19907 2013-08-19 Peter Bergner <bergner@vnet.ibm.com>
19908 Jakub Jelinek <jakub@redhat.com>
19910 * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
19911 (BUILT_IN_FABSD64): Likewise.
19912 (BUILT_IN_FABSD128): Likewise.
19913 * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
19914 (fold_builtin_1): Likewise.
19915 * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
19916 destination and source operands.
19917 (*abstd2_fpr): Likewise.
19918 (*nabstd2_fpr): Likewise.
19920 2013-08-19 Richard Sandiford <rdsandiford@googlemail.com>
19922 * config/mips/mips.c (mips_adjust_insn_length): Add checks for
19925 2013-08-19 Aldy Hernandez <aldyh@redhat.com>
19927 * doc/invoke.texi (-fcilkplus): Clarify that implementation is
19930 2013-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
19932 * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
19933 * builtins.c (default_libc_has_function): New.
19934 (gnu_libc_has_function): Ditto.
19935 (no_c99_libc_has_function): Ditto.
19936 (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
19937 instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
19938 (fold_builtin_sincos): Likewise.
19939 (fold_builtin_cexp): Likewise.
19940 * builtins.def (DEF_C94_BUILTIN): Likewise.
19941 (DEF_C99_BUILTIN): Likewise.
19942 (DEF_C99_C90RES_BUILTIN): Likewise.
19943 (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
19944 definitions to using this define.
19945 * config/darwin-protos.h (darwin_libc_has_function): New.
19946 * config/darwin.c (darwin_libc_has_function): Ditto.
19947 * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
19948 TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
19949 * config/darwin.h: Ditto.
19950 * config/elfos.h: Ditto.
19951 * config/freebsd.h: Ditto.
19952 * config/i386/cygming.h: Ditto.
19953 * config/i386/djgpp.h: Ditto.
19954 * config/i386/i386-interix.h: Ditto.
19955 * config/microblaze/microblaze.h: Ditto.
19956 * config/mmix/mmix.h: Ditto.
19957 * config/gnu-user.h: Ditto.
19958 * config/ia64/hpux.h: Ditto.
19959 * config/pa/pa-hpux.h: Ditto.
19960 * config/pdp11/pdp11.h: Ditto.
19961 * config/picochip/picochip.h: Ditto.
19962 * config/linux.h: Ditto.
19963 * config/netbsd.h: Ditto.
19964 * config/openbsd.h: Ditto.
19965 * config/rs6000/aix43.h: Ditto.
19966 * config/rs6000/aix51.h: Ditto.
19967 * config/rs6000/aix52.h: Ditto.
19968 * config/rs6000/aix53.h: Ditto.
19969 * config/rs6000/aix61.h: Ditto.
19970 * config/rs6000/darwin.h: Ditto.
19971 * config/rs6000/linux.h: Ditto.
19972 * config/rs6000/linux64.h: Ditto.
19973 * config/s390/tpf.h: Ditto.
19974 * config/sol2-10.h: Ditto.
19975 * config/sol2.h: Ditto.
19976 * config/vms/vms.h: Ditto.
19977 * config/vxworks.h: Ditto.
19978 * config/linux-android.c (linux_android_libc_has_function):
19979 New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
19980 * config/linux-protos.h (linux_android_libc_has_function):
19982 * config/i386/i386.c (ix86_libc_has_function): New.
19983 * config/i386/i386-protos.h
19984 (ix86_libc_has_function): New declaration.
19985 * config/i386/i386.md
19986 ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
19987 ("isinf<mode>2): Likewise.
19988 * convert.c (convert_to_integer): Using new target hook
19989 TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
19990 TARGET_C99_FUNCTIONS.
19991 * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
19992 * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
19993 * coretypes.h (function_class): New enum for different
19994 classes of functions.
19995 * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
19996 * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
19997 (TARGET_HAS_SINCOS): Likewise.
19998 (TARGET_LIBC_HAS_FUNCTION): New.
19999 * doc/tm.texi: Regenerated.
20000 * targhooks.h (default_libc_has_function): New declaration.
20001 (no_c99_libc_has_function): Ditto.
20002 (gnu_libc_has_function): Ditto.
20003 * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
20004 and TARGET_HAS_SINCOS.
20006 2013-08-18 Jan Hubicka <jh@suse.cz>
20008 * Makeifle-in (ipa-devirt.o): New.
20009 (GTFILES): Add ipa-utils.h and ipa-devirt.c
20010 * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
20011 (analyze_functions): Look into possible targets of polymorphic call.
20012 * dumpfile.c (dump_files): Add type-inheritance dump.
20013 * dumpfile.h (TDI_inheritance): New.
20014 * ipa-devirt.c: New file.
20015 * ipa-utils.h (odr_type_d): Forward declare.
20016 (odr_type): New type.
20017 (build_type_inheritance_graph): Declare.
20018 (possible_polymorphic_call_targets): Declare and introduce inline
20019 variant when only edge is pased.
20020 (dump_possible_polymorphic_call_targets): Likewise.
20021 * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
20022 * tree.c (type_in_anonymous_namespace_p): Break out from ...
20023 (types_same_for_odr): ... here.
20024 * tree.h (type_in_anonymous_namespace_p): Declare.
20026 2013-08-18 Jakub Jelinek <jakub@redhat.com>
20028 PR tree-optimization/58006
20029 * tree-parloops.c (take_address_of): Don't ICE if get_name
20031 (eliminate_local_variables_stmt): Remove clobber stmts.
20033 2013-08-18 Eric Botcazou <ebotcazou@adacore.com>
20035 * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
20036 error message is issued for an alias to undefined symbol.
20038 2013-08-18 Jan Hubicka <jh@suse.cz>
20040 * cgraph.c (cgraph_create_indirect_edge): Discover
20041 polymorphic calls and record basic info into indirect_info.
20042 * gimple-fold.c (gimple_fold_call): When doing BINFO based
20043 devirtualization, ignore objc function calls.
20044 * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
20045 call with no parm index info.
20046 * ipa-prop.c (ipa_analyze_call_uses): Likewise.
20047 * tree.c (virtual_method_call_p): New function.
20048 * tree.h (virtual_method_call_p): Declare.
20050 2013-08-16 Jan Hubicka <jh@suse.cz>
20052 PR middle-end/58179
20053 * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
20055 2013-08-16 David Edelsohn <dje.gcc@gmail.com>
20057 * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
20060 2013-08-16 David Malcolm <dmalcolm@redhat.com>
20062 * gengtype.c (type_for_name): Add special-case support for
20063 locating types within the "gcc::" namespace.
20064 (open_base_files): Emit a "using namespace gcc" directive.
20066 2013-08-16 Michael Meissner <meissner@linux.vnet.ibm.com>
20069 * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
20070 memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
20072 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
20073 array instead of each individual operand as a separate argument.
20074 (emit_fusion_gpr_load): Likewise.
20075 (expand_fusion_gpr_load): Add new function declaration.
20077 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
20078 signature to have the operands passed as an array, instead of as
20079 separate arguments. Allow ZERO_EXTEND to be in the memory
20080 address, and also SIGN_EXTEND if -mpower8-fusion-sign. Do not
20081 depend on the register live/dead flags when peepholes are run.
20082 (expand_fusion_gpr_load): New function to be called from the
20083 peephole2 pass, to change the register that addis sets to be the
20085 (emit_fusion_gpr_load): Change the calling signature to have the
20086 operands passed as an array, instead of as separate arguments.
20087 Allow ZERO_EXTEND to be in the memory address, and also
20088 SIGN_EXTEND if -mpower8-fusion-sign.
20090 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
20091 unspec enumeration.
20092 (power8 fusion peephole/peephole2): Rework the fusion peepholes to
20093 adjust the register addis loads up in the peephole2 pass. Do not
20094 depend on the register live/dead state when the peephole pass is done.
20096 2013-08-16 David Malcolm <dmalcolm@redhat.com>
20098 * gengtype.c (create_user_defined_type): Ensure that the kind
20099 is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
20100 declaration is seen before the GTY((user)) marking.
20102 2013-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
20105 * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
20107 2013-08-16 Jan Hubicka <jh@suse.cz>
20109 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
20110 arugment expected_type.
20111 (gimple_fold_call): Use it.
20112 * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
20113 * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
20114 * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
20115 (try_make_edge_direct_virtual_call): Likewise.
20116 * tree.c (obj_type_ref_class): New.
20117 * tree.h (obj_type_ref_class): Use it.
20119 2013-08-16 Gabriel Dos Reis <gdr@integrable-solutions.net>
20121 * sched-vis.c (rtl_slim_pp_initialized): Remove.
20122 (rtl_slim_pp): Likewise.
20123 (init_rtl_slim_pretty_print): Likewise.
20124 (dump_value_slim): Don't call it. Use local pretty printer.
20125 (dump_insn_slim): Likewise.
20126 (dump_rtl_slim): Likewise.
20127 (str_pattern_slim): Likewise.
20128 * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
20131 2013-08-16 Jakub Jelinek <jakub@redhat.com>
20133 PR tree-optimization/58164
20134 * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
20135 walk gimple_goto_dest of GIMPLE_GOTO.
20137 PR tree-optimization/58165
20138 * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
20139 bi_call must be the last stmt in a bb, don't split_block, instead
20140 use fallthru edge from it and give up if there is none.
20141 Release conds vector when returning early.
20143 2013-08-14 Xinliang David Li <davidxl@google.com>
20145 * config/i386/i386.c (ix86_option_override_internal):
20146 Remove unused variable and field.
20148 2013-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20151 * doc/invoke.texi: Add documentation of mcompat-align-parm option.
20152 * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
20153 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
20154 and Linux, correct BLKmode alignment when 128-bit alignment is
20155 required and compatibility flag is not set.
20156 (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
20157 for zero-size arguments when compatibility flag is not set.
20159 2013-08-14 Jakub Jelinek <jakub@redhat.com>
20161 PR tree-optimization/58145
20162 * tree-sra.c (build_ref_for_offset): If prev_base has
20163 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
20165 2013-08-14 Xinliang David Li <davidxl@google.com>
20167 * config/i386/i386.c (ix86_option_override_internal):
20168 Fix uninitialized variable error.
20170 2013-08-14 Xinliang David Li <davidxl@google.com>
20172 * config/i386/i386.opt: Define two new options.
20173 * config/i386/x86-tune.def: Add arch selector field in macros.
20174 * config/i386/i386.h: Adjust macro definition.
20175 * config/i386/i386.c (ix86_option_override_internal):
20177 (parse_mtune_ctrl_str): New function.
20178 (set_ix86_tune_features): New function.
20179 (ix86_function_specific_restore): Call the new helper function.
20181 2013-08-14 Andrey Belevantsev <abel@ispras.ru>
20183 PR rtl-optimization/57662
20184 * sel-sched.c (code_motion_process_successors): When the current insn
20185 is removed after the recursive traversal, break from the loop.
20186 Add comments and debug printouts.
20188 2013-08-14 Jakub Jelinek <jakub@redhat.com>
20189 Alexandre Oliva <aoliva@redhat.com>
20192 * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
20193 and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
20194 there also UNSPEC_PLTOFF.
20196 2013-08-14 Marek Polacek <polacek@redhat.com>
20198 * ipa-inline-analysis.c (add_clause): Avoid shifting integer
20199 NUM_CONDITIONS bit positions.
20201 2013-08-13 Cary Coutant <ccoutant@google.com>
20203 * dwarf2out.c (CHECKSUM_BLOCK): New macro.
20204 (attr_checksum): Hash vector contents instead of pointer.
20205 (attr_checksum_ordered): Likewise.
20207 2013-08-13 Uros Bizjak <ubizjak@gmail.com>
20209 * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
20210 when Pmode != word_mode. Add length_address attribute.
20211 (sse3_monitor_<mode>): Merge from sse3_monitor and
20212 sse3_monitor64_<mode> insn patterns. Emit addr32 prefix when
20213 Pmode != word_mode. Update insn length attribute.
20214 * config/i386/i386.c (ix86_option_override_internal): Update
20215 ix86_gen_monitor selection for merged sse3_monitor insn.
20217 2013-08-13 Julian Brown <julian@codesourcery.com>
20219 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
20220 perform invalid legitimization on greater-than-word-size modes for
20221 TARGET_E500_DOUBLE.
20223 2013-08-13 Vladimir Makarov <vmakarov@redhat.com>
20225 * ira.c (setup_class_translate_array): Use aclass instead of cl
20226 for classes not fully covered by allocno classes.
20228 2013-08-13 Jakub Jelinek <jakub@redhat.com>
20230 PR tree-optimization/57661
20231 * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
20232 * tree-inline.c (tree_function_versioning): Initialize it.
20233 (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
20234 if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
20235 that is not being copied.
20238 * asan.c (instrument_strlen_call): Fix typo in comment.
20239 Use char * type even for the lhs of POINTER_PLUS_EXPR.
20241 2013-08-13 Steve Ellcey <sellcey@mips.com>
20243 * config/mips/mips.md (prefetch): Use lw instead of ld on
20244 loongson in 32bit mode.
20246 2013-08-13 Nick Clifton <nickc@redhat.com>
20248 * config.gcc: (avr-linux): Allow for tmake_file not being empty.
20250 2013-08-13 Jan Hubicka <jh@suse.cz>
20252 * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
20253 introduced edge; fix typo in sanity check.
20254 (cgraph_resolve_speculation): Export; improve diagnostic.
20255 (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
20256 speculation at type mismatch.
20257 * cgraph.h (cgraph_turn_edge_to_speculative): Update.
20258 (cgraph_resolve_speculation): Declare.
20259 (symtab_can_be_discarded): New function.
20260 * value-prof.c (gimple_ic_transform): Remove actual transform code.
20261 * ipa-inline-transform.c (speculation_removed): New global var.
20262 (clone_inlined_nodes): See if speculation can be removed.
20263 (inline_call): If speculations was removed, we growths may not match.
20264 * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
20265 (speculation_useful_p): New function.
20266 (resolve_noninline_speculation): New function.
20267 (inline_small_functions): Resolve useless speculations.
20268 * ipa-inline.h (speculation_useful_p): Declare
20269 * ipa.c (can_replace_by_local_alias): Simplify.
20270 (ipa_profile): Produce speculative calls in non-lto, too;
20271 add simple cost model; produce local aliases.
20273 2013-08-13 David Malcolm <dmalcolm@redhat.com>
20275 * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
20278 2013-08-12 Paolo Carlini <paolo.carlini@oracle.com>
20280 * config/i386/i386.c (ix86_function_versions): Use error + inform.
20282 2013-08-12 Uros Bizjak <ubizjak@gmail.com>
20284 * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
20285 iterator instead of X87MODEF.
20287 2013-08-12 Perez Read <netfirewall@gmail.com>
20290 * config/i386/i386.md (*movabs<mode>_1): Add <ptrsize> PTR before
20291 operand 0 for intel asm alternative.
20292 (*movabs<mode>_2): Ditto for operand 1.
20294 2013-08-12 James Greenhalgh <james.greenhalgh@arm.com>
20296 * config/aarch64/arm_none.h
20297 (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
20299 2013-08-12 Nick Clifton <nickc@redhat.com>
20301 * config.gcc (m32r-linux): Allow for tmake_file not being empty.
20303 2013-08-12 Yuri Rumyantsev <ysrumyan@gmail.com>
20305 * config/i386/i386.md (floatunssi<mode>2 expand): Add new
20306 expand for QI/HImode operand to produce more effictive code for
20307 unsigned char(short) --> float(double) conversion.
20309 2013-08-12 Alexander Monakov <amonakov@ispras.ru>
20311 * doc/invoke.texi: Mention that -ftls-model does not force the final
20314 2013-08-12 Marek Polacek <polacek@redhat.com>
20315 Marc Glisse <marc.glisse@inria.fr>
20317 PR tree-optimization/57980
20318 * tree-tailcall.c (process_assignment): Call build_minus_one_cst
20319 when creating -1 constant.
20321 2013-08-10 Jan Hubicka <jh@suse.cz>
20323 Workaround binutils PR14342.
20324 * tree-profile.c (init_ic_make_global_vars): Add LTO path.
20325 (gimple_init_edge_profiler): Likewise.
20326 (gimple_gen_ic_func_profiler): Likewise.
20328 2013-08-09 Jan Hubicka <jh@suse.cz>
20330 * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
20332 2013-08-09 Xinliang David Li <davidxl@google.com>
20334 * config/i386/stringop.def: New file.
20335 * config/i386/stringop.opt: New file.
20336 * config/i386/i386-opts.h: Include stringopt.def.
20337 * config/i386/i386.opt: Include stringopt.opt.
20338 * config/i386/i386.c (ix86_option_override_internal):
20339 Override default size based stringop inline strategies with options.
20340 * config/i386/i386.c (ix86_parse_stringop_strategy_string):
20343 2013-08-09 Jan Hubicka <jh@suse.cz>
20345 * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
20347 2013-08-09 Jan Hubicka <jh@suse.cz>
20349 * cgraph.c (cgraph_resolve_speculation): Cut frequency to
20351 (dump_cgraph_node): Dump profile-id.
20352 * cgraph.h (cgraph_indirect_call_info): Add common_target_id
20353 and common_target_probability.
20354 * lto-cgraph.c (lto_output_edge): Stream common targets.
20355 (lto_output_node): Stream profile ids.
20356 (input_node): Stream profile ids.
20357 (input_edge): Stream common targets.
20358 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
20359 * ipa.c: Include value-prof.h
20360 (ipa_profile_generate_summary): Turn indirect call statement histograms
20361 into common targets.
20362 (ipa_profile): Turn common targets into speculative edges.
20364 2013-08-09 Jan Hubicka <jh@suse.cz>
20366 * cgraph.h (cgraph_node): Add profile_id.
20367 * value-prof.c (cgraph_node_map): Turn into pointer_map.
20368 (init_node_map): Rewrite to handle hashes increas of incremental IDs.
20369 (del_node_map): Update.
20370 (find_func_by_funcdef_no): Replace by ...
20371 (find_func_by_profile_id): ... this one.
20372 (gimple_ic_transform): Do not remove useful histograms when
20373 speculation is not done; dump info when indirect call removal
20375 * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
20376 * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
20377 (__gcov_indirect_call_profiler_v2): .. this one.
20378 * profile.h (init_node_map): Update.
20379 * coverage.c (coverage_compute_profile_id): New function.
20380 * coverage.h (coverage_compute_profile_id): Declare.
20381 * tree-profile.c (init_ic_make_global_vars): Make
20382 __gcov_indirect_call_callee and __gcov_indirect_call_counters global.
20383 (gimple_init_edge_profiler): Update prototype of
20384 __gcov_indirect_call_profiler.
20385 (gimple_gen_ic_func_profiler): Simplify.
20386 (tree_profiling): Use init_node_map
20388 2013-08-09 Jan Hubicka <jh@suse.cz>
20390 * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
20391 non-speculative refs.
20392 * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
20393 (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
20394 (cgraph_set_call_stmt): Likewise.
20395 (cgraph_create_edge_1): Fix release checking compilatoin;
20396 clear lto_stmt_uid.
20397 (cgraph_free_edge): Free indirect info.
20398 (cgraph_turn_edge_to_speculative): New function.
20399 (cgraph_speculative_call_info): New function.
20400 (cgraph_make_edge_direct): Return direct edge; handle speculation.
20401 (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
20402 (dump_cgraph_node): Dump speculation.
20403 (verify_edge_count_and_frequency): Accept speculative edges.
20404 (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
20405 (verify_cgraph_node): Handle speculation.
20406 * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
20407 (cgraph_set_call_stmt): Update prototype.
20408 (cgraph_make_edge_direct): Update prototype.
20409 (cgraph_speculative_call_info): Declare.
20410 * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
20411 to change; update call of ipa_find_references.
20412 * ipa-ref.c (ipa_record_reference): Fix return value; clear
20413 lto_stmt_uid and speculative flags.
20414 (ipa_dump_references): Dump speculation.
20415 (ipa_clone_references): Clone speculative flag.
20416 (ipa_clone_referring): Likewise.
20417 (ipa_clone_ref): New function.
20418 (ipa_find_reference): Look into lto_stmt_uids
20419 (ipa_clear_stmts_in_references): Do not clear speculative calls.
20420 * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
20421 (ipa_find_reference): Update declaration.
20422 (ipa_clone_ref): Declare.
20423 * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
20424 stream speculative flag.
20425 (lto_output_ref): Stream statements uids and speculation.
20426 (input_ref): Likewise.
20427 (input_edge): Stream speuclation.
20428 * cgraphclones.c (cgraph_clone_edge): Clone speculation.
20429 (cgraph_set_call_stmt_including_clones): Handle speculation.
20430 * ipa-inline.c (heap_edge_removal_hook): New function.
20431 (inline_small_functions): Register it.
20432 * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
20433 also initialize refs.
20434 * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
20436 (try_make_edge_direct_simple_call): Likewise.
20437 (try_make_edge_direct_simple_call): Likewise.
20438 (update_indirect_edges_after_inlining): Likewise.
20439 (remove_described_reference): Look proper lto_stmt_uid.
20440 (propagate_controlled_uses): Likewise.
20441 (propagate_controlled_uses): Liekwise.
20442 * tree-inline.c (copy_bb): Copy speculative edges.
20443 (redirect_all_calls): New function.
20444 (copy_cfg_body): Do redirection after loop info is updated.
20445 (delete_unreachable_blocks_update_callgraph): Updadte speculation.
20447 2013-08-09 Jan Hubicka <jh@suse.cz>
20449 * lto-streamer-out.c (output_function): Renumber PHIs.
20450 * lto-streamer-in.c (input_function): Likewise.
20452 2013-08-09 James Greenhalgh <james.greenhalgh@arm.com>
20454 * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
20455 (get_lane_unsigned): Likewise.
20456 (dup_lane_scalar): Likewise.
20457 (get_lane): enable for VALL.
20458 * config/aarch64/aarch64-simd.md
20459 (aarch64_dup_lane_scalar<mode>): Remove.
20460 (aarch64_get_lane_signed<mode>): Likewise.
20461 (aarch64_get_lane_unsigned<mode>): Likewise.
20462 (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
20463 (aarch64_get_lane_zero_extendsi<mode>): Likewise.
20464 (aarch64_get_lane<mode>): Enable for all vector modes.
20465 (aarch64_get_lanedi): Remove misleading constraints.
20466 * config/aarch64/arm_neon.h
20467 (__aarch64_vget_lane_any): Define.
20468 (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
20469 (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
20470 (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
20471 * config/aarch64/iterators.md (VDQQH): New.
20472 (VDQQHS): Likewise.
20473 (vwcore): Likewise.
20475 2013-08-09 Eric Botcazou <ebotcazou@adacore.com>
20477 * configure.ac: Add GAS check for LEON instructions on SPARC.
20478 * configure: Regenerate.
20479 * config.in: Likewise.
20480 * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
20482 * config/sparc/sparc.opt (LEON, LEON3): New masks.
20483 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
20485 (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
20486 (AS_LEON_FLAG): New macro.
20487 * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
20488 and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
20489 Deal with LEON and LEON3 for the memory model.
20490 * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
20491 (atomic_compare_and_swap<mode>_1): Likewise.
20492 (*atomic_compare_and_swap<mode>_1): Likewise.
20494 2013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20496 * config/arm/neon.md (vcond): Fix floating-point vector
20497 comparisons against 0.
20499 2013-08-08 Vladimir Makarov <vmakarov@redhat.com>
20501 * lra-constraints.c (emit_spill_move): Remove assert.
20502 (process_alt_operands): Add more debugging
20503 output. Increase reject for spilling into memory. Decrease
20504 reject for reloading scratch.
20505 (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
20507 2013-08-08 Steve Ellcey <sellcey@mips.com>
20509 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
20510 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
20511 micromips incompatible. Add nan2008.
20512 (MULTILIB_DIRNAMES): Add nan2008.
20513 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
20514 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
20515 and micromips incompatible. Add nan2008.
20516 (MULTILIB_DIRNAMES): Add nan2008.
20517 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
20519 2013-08-08 Richard Sandiford <rdsandiford@googlemail.com>
20521 PR rtl-optimization/58079
20522 * combine.c (combine_simplify_rtx): Avoid using SUBST if
20523 simplify_comparison has widened a comparison with an integer.
20525 2013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20527 * config/arm/neon.md (movmisalign<mode>): Disable when we
20528 don't allow unaligned accesses.
20529 (*movmisalign<mode>_neon_store): Likewise.
20530 (*movmisalign<mode>_neon_load): Likewise.
20531 (*movmisalign<mode>_neon_store): Likewise.
20532 (*movmisalign<mode>_neon_load): Likewise.
20534 2013-08-08 Jan Hubicka <jh@suse.cz>
20536 * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
20537 (make_pass_rebuild_cgraph_edges): Also clear references.
20538 * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
20539 * ipa-inline-transform.c (inline_transform): Remove all references
20541 * cgraphunit.c (expand_function): Remove all references after
20543 * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
20544 (ipa_find_reference): Rewrite to iterator.
20545 (remove_stmt_references): Likewise.
20546 (ipa_clear_stmts_in_references): New function.
20547 * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
20548 * cgraphclones.c (cgraph_materialize_all_clones): Remove or
20550 * ipa-split.c (split_function): Remove references in split function.
20552 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
20555 * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
20556 (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
20558 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
20561 * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
20562 suggested mode for the assignment isn't compatible with the
20563 registers required.
20565 2013-08-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
20568 * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
20570 2013-08-07 Xinliang David Li <davidxl@google.com>
20572 * config/i386/i386.opt: New option -mtune-ctrl=.
20573 * config/i386/x86-tune.def: New file.
20574 * config/i386/i386.h: include x86-tune.def.
20575 * config/i386/i386.c (ix86_option_override_internal):
20576 Parsing -mtune-ctrl= option and set tune features.
20578 2013-08-07 Oleg Endo <olegendo@gcc.gnu.org>
20581 * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
20582 (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
20585 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
20587 * rtl.h (update_alignments): Declare.
20588 * final.c (grow_label_align): New function extracted from...
20589 (shorten_branches): ...here. Call it.
20590 (update_alignments): New function.
20591 * reorg.c (sibling_labels): New variable.
20592 (get_label_before): Add SIBLING parameter. If it is non-zero, push
20593 the new label along with it onto the sibling_labels vector.
20594 (fill_simple_delay_slots): Adjust call to get_label_before.
20595 (fill_slots_from_thread): Likewise.
20596 (relax_delay_slots): Likewise.
20597 (make_return_insns): Likewise.
20598 (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
20600 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
20602 * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
20603 document its semantics.
20604 (diagnostic_report_diagnostic): Adjust accordingly.
20606 2013-08-07 David Malcolm <dmalcolm@redhat.com>
20608 * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
20609 (sparc_option_override): ...and port to new C++ pass API.
20610 * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
20612 2013-08-07 Peter Bergner <bergner@vnet.ibm.com>
20614 * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
20616 2013-08-06 Caroline Tice <cmtice@google.com>
20618 * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
20619 (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
20620 * tree-pass.h: Add pass_vtable_verify.
20621 * varasm.c (assemble_variable): Add code to properly set the comdat
20622 section and name for the .vtable_map_vars section.
20623 (assemble_vtyv_preinit_initializer): New function.
20624 (default_sectin_type_flags): Make sure .vtable_map_vars section has
20626 * output.h: Add function decl for assemble_vtv_preinit_initializer.
20627 * vtable-verify.c: New file.
20628 * vtable-verify.h: New file.
20629 * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
20630 initialiation levels.
20631 * timevar.def (TV_VTABLE_VERIFICATION): New definition.
20632 * passes.def: Insert pass_vtable_verify.
20633 * aclocal.m4: Reorder includes.
20634 * doc/invoke.texi: Document the -fvtable-verify=, -fvtv-debug, and
20635 -fvtv-counts options.
20636 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
20637 as appropriate, if -fvtable-verify=... is used.
20638 (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
20639 -fvtable-verify=... is used.
20640 * Makefile.in (OBJS): Add vtable-verify.o to list.
20641 (vtable-verify.o): Add new build rule.
20642 (GTFILES): Add vtable-verify.c to list.
20643 * common.opt (fvtable-verify=): New flag.
20644 (vtv_priority): Values for fvtable-verify= flag.
20645 (fvtv-counts): New flag.
20646 (fvtv-debug): New flag.
20647 * tree.h (save_vtable_map_decl): New extern function decl.
20649 2013-08-07 David Malcolm <dmalcolm@redhat.com>
20651 * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
20652 (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
20653 (pass_data_rl78_devirt): ...new pass_data instance and...
20654 (make_pass_rl78_devirt): ...new function.
20655 (rl78_asm_file_start): Port pass registration to new C++ API.
20657 2013-08-07 David Malcolm <dmalcolm@redhat.com>
20659 * coretypes.h (rtl_opt_pass): Add.
20660 (gcc::context): Add.
20661 * config/epiphany/epiphany.c (pass_mode_switch_use): New.
20662 (epiphany_init): Port to new C++ pass API.
20663 (epiphany_optimize_mode_switching): Likewise.
20664 * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
20665 (pass_manager::get_pass_mode_switching): New.
20666 (pass_manager::get_pass_peephole2): New.
20667 * mode-switching.c (pass_mode_switching): Add clone method.
20668 * recog.c (pass_peephole2): Add clone method.
20669 (pass_split_all_insns): Add clone method.
20671 2013-08-06 David Malcolm <dmalcolm@redhat.com>
20673 * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
20674 (mips_option_override): ...here, porting to new C++ API for passes.
20676 2013-08-06 Jan Hubicka <jh@suse.cz>
20678 * cgraph.c (cgraph_get_body): New function based on lto.c
20680 * cgraph.h (cgraph_get_body): Declare.
20681 * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
20683 * cgraphunit.c (expand_function): Get body prior expanding.
20684 * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
20685 * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
20687 * passes.c (do_per_function_toporder): Get body.
20688 * tree-inline.c (expand_call_inline): Get body prior inlining it.
20689 * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
20691 2013-08-06 Martin Jambor <mjambor@suse.cz>
20694 * cgraphunit.c (cgraph_finalize_function): Assert that nested function
20695 is not re-finalized. Rename second parameter to no_collect.
20697 2013-08-06 Martin Jambor <mjambor@suse.cz>
20699 PR middle-end/58041
20700 * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
20701 MEM_REF has proper alignment information.
20703 2013-08-05 Oleg Endo <olegendo@gcc.gnu.org>
20706 * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
20708 * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
20709 rtx (*) (rtx, ...) with insn_gen_fn.
20710 * genoutput.c (output_insn_data): Cast gen_? function pointers to
20711 insn_gen_fn::stored_funcptr. Add initializer braces.
20713 2013-08-05 David Malcolm <dmalcolm@redhat.com>
20715 Rewrite how instances of passes are cloned to remove assumptions
20716 about their sizes (thus allowing pass subclasses to have
20717 additional data fields, albeit non-GC-managed ones at this point).
20719 * passes.c (make_pass_instance): Now that passes have clone
20720 methods, rewrite this function to eliminate XNEW and memcpy
20721 calls that used hardcoded sizes. Since this function no longer
20722 creates pass instances, rename it to...
20723 (add_pass_instance): ...this. Document the old way that passes were
20724 numbered and flagged, and rework this function to continue using it.
20725 (next_pass_1): Add an initial_pass argument for use by
20727 (position_pass): When adding multiple instances of a pass, use
20728 the pass's clone method, rather than relying on the XNEW/memcpy
20729 within the former make_pass_instance (now add_pass_instance).
20730 (pass_manager::pass_manager): When invoking next_pass_1, also supply
20731 the initial instance of the current pass within the pass manager.
20733 2013-08-05 David Malcolm <dmalcolm@redhat.com>
20735 This is the automated part of the conversion of passes from C
20736 structs to C++ classes.
20738 Patch autogenerated by refactor_passes.py from
20739 https://github.com/davidmalcolm/gcc-refactoring-scripts
20740 revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
20742 * asan.c (pass_asan): Convert from a global struct to a subclass of
20743 gimple_opt_pass along with...
20744 (pass_data_asan): ...new pass_data instance and...
20745 (make_pass_asan): ...new function.
20746 (pass_asan_O0): Convert from a global struct to a subclass of
20747 gimple_opt_pass along with...
20748 (pass_data_asan_O0): ...new pass_data instance and...
20749 (make_pass_asan_O0): ...new function.
20750 * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
20751 subclass of rtl_opt_pass along with...
20752 (pass_data_inc_dec): ...new pass_data instance and...
20753 (make_pass_inc_dec): ...new function.
20754 * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
20755 a subclass of rtl_opt_pass along with...
20756 (pass_data_reorder_blocks): ...new pass_data instance and...
20757 (make_pass_reorder_blocks): ...new function.
20758 (pass_duplicate_computed_gotos): Convert from a global struct to a
20759 subclass of rtl_opt_pass along with...
20760 (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
20761 (make_pass_duplicate_computed_gotos): ...new function.
20762 (pass_partition_blocks): Convert from a global struct to a subclass of
20763 rtl_opt_pass along with...
20764 (pass_data_partition_blocks): ...new pass_data instance and...
20765 (make_pass_partition_blocks): ...new function.
20766 * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
20767 struct to a subclass of rtl_opt_pass along with...
20768 (pass_data_branch_target_load_optimize1): ...new pass_data instance
20770 (make_pass_branch_target_load_optimize1): ...new function.
20771 (pass_branch_target_load_optimize2): Convert from a global struct to a
20772 subclass of rtl_opt_pass along with...
20773 (pass_data_branch_target_load_optimize2): ...new pass_data instance
20775 (make_pass_branch_target_load_optimize2): ...new function.
20776 * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
20777 of rtl_opt_pass along with...
20778 (pass_data_jump): ...new pass_data instance and...
20779 (make_pass_jump): ...new function.
20780 (pass_jump2): Convert from a global struct to a subclass of
20781 rtl_opt_pass along with...
20782 (pass_data_jump2): ...new pass_data instance and...
20783 (make_pass_jump2): ...new function.
20784 * cfgexpand.c (pass_expand): Convert from a global struct to a
20785 subclass of rtl_opt_pass along with...
20786 (pass_data_expand): ...new pass_data instance and...
20787 (make_pass_expand): ...new function.
20788 * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
20789 of rtl_opt_pass along with...
20790 (pass_data_free_cfg): ...new pass_data instance and...
20791 (make_pass_free_cfg): ...new function.
20792 (pass_into_cfg_layout_mode): Convert from a global struct to a
20793 subclass of rtl_opt_pass along with...
20794 (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
20795 (make_pass_into_cfg_layout_mode): ...new function.
20796 (pass_outof_cfg_layout_mode): Convert from a global struct to a
20797 subclass of rtl_opt_pass along with...
20798 (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
20799 (make_pass_outof_cfg_layout_mode): ...new function.
20800 * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
20801 struct to a subclass of gimple_opt_pass along with...
20802 (pass_data_build_cgraph_edges): ...new pass_data instance and...
20803 (make_pass_build_cgraph_edges): ...new function.
20804 (pass_rebuild_cgraph_edges): Convert from a global struct to a
20805 subclass of gimple_opt_pass along with...
20806 (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
20807 (make_pass_rebuild_cgraph_edges): ...new function.
20808 (pass_remove_cgraph_callee_edges): Convert from a global struct to a
20809 subclass of gimple_opt_pass along with...
20810 (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
20812 (make_pass_remove_cgraph_callee_edges): ...new function.
20813 * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
20814 struct to a subclass of rtl_opt_pass along with...
20815 (pass_data_stack_adjustments): ...new pass_data instance and...
20816 (make_pass_stack_adjustments): ...new function.
20817 * combine.c (pass_combine): Convert from a global struct to a subclass
20818 of rtl_opt_pass along with...
20819 (pass_data_combine): ...new pass_data instance and...
20820 (make_pass_combine): ...new function.
20821 * compare-elim.c (pass_compare_elim_after_reload): Convert from a
20822 global struct to a subclass of rtl_opt_pass along with...
20823 (pass_data_compare_elim_after_reload): ...new pass_data instance
20825 (make_pass_compare_elim_after_reload): ...new function.
20826 * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
20827 of rtl_opt_pass along with...
20828 (pass_data_rtl_cprop): ...new pass_data instance and...
20829 (make_pass_rtl_cprop): ...new function.
20830 * cse.c (pass_cse): Convert from a global struct to a subclass of
20831 rtl_opt_pass along with...
20832 (pass_data_cse): ...new pass_data instance and...
20833 (make_pass_cse): ...new function.
20834 (pass_cse2): Convert from a global struct to a subclass of
20835 rtl_opt_pass along with...
20836 (pass_data_cse2): ...new pass_data instance and...
20837 (make_pass_cse2): ...new function.
20838 (pass_cse_after_global_opts): Convert from a global struct to a
20839 subclass of rtl_opt_pass along with...
20840 (pass_data_cse_after_global_opts): ...new pass_data instance and...
20841 (make_pass_cse_after_global_opts): ...new function.
20842 * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
20843 of rtl_opt_pass along with...
20844 (pass_data_ud_rtl_dce): ...new pass_data instance and...
20845 (make_pass_ud_rtl_dce): ...new function.
20846 (pass_fast_rtl_dce): Convert from a global struct to a subclass of
20847 rtl_opt_pass along with...
20848 (pass_data_fast_rtl_dce): ...new pass_data instance and...
20849 (make_pass_fast_rtl_dce): ...new function.
20850 * df-core.c (pass_df_initialize_opt): Convert from a global struct to
20851 a subclass of rtl_opt_pass along with...
20852 (pass_data_df_initialize_opt): ...new pass_data instance and...
20853 (make_pass_df_initialize_opt): ...new function.
20854 (pass_df_initialize_no_opt): Convert from a global struct to a
20855 subclass of rtl_opt_pass along with...
20856 (pass_data_df_initialize_no_opt): ...new pass_data instance and...
20857 (make_pass_df_initialize_no_opt): ...new function.
20858 (pass_df_finish): Convert from a global struct to a subclass of
20859 rtl_opt_pass along with...
20860 (pass_data_df_finish): ...new pass_data instance and...
20861 (make_pass_df_finish): ...new function.
20862 * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
20863 rtl_opt_pass along with...
20864 (pass_data_rtl_dse1): ...new pass_data instance and...
20865 (make_pass_rtl_dse1): ...new function.
20866 (pass_rtl_dse2): Convert from a global struct to a subclass of
20867 rtl_opt_pass along with...
20868 (pass_data_rtl_dse2): ...new pass_data instance and...
20869 (make_pass_rtl_dse2): ...new function.
20870 * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
20871 subclass of rtl_opt_pass along with...
20872 (pass_data_dwarf2_frame): ...new pass_data instance and...
20873 (make_pass_dwarf2_frame): ...new function.
20874 * except.c (pass_set_nothrow_function_flags): Convert from a global
20875 struct to a subclass of rtl_opt_pass along with...
20876 (pass_data_set_nothrow_function_flags): ...new pass_data instance
20878 (make_pass_set_nothrow_function_flags): ...new function.
20879 (pass_convert_to_eh_region_ranges): Convert from a global struct to a
20880 subclass of rtl_opt_pass along with...
20881 (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
20883 (make_pass_convert_to_eh_region_ranges): ...new function.
20884 * final.c (pass_compute_alignments): Convert from a global struct to a
20885 subclass of rtl_opt_pass along with...
20886 (pass_data_compute_alignments): ...new pass_data instance and...
20887 (make_pass_compute_alignments): ...new function.
20888 (pass_final): Convert from a global struct to a subclass of
20889 rtl_opt_pass along with...
20890 (pass_data_final): ...new pass_data instance and...
20891 (make_pass_final): ...new function.
20892 (pass_shorten_branches): Convert from a global struct to a subclass of
20893 rtl_opt_pass along with...
20894 (pass_data_shorten_branches): ...new pass_data instance and...
20895 (make_pass_shorten_branches): ...new function.
20896 (pass_clean_state): Convert from a global struct to a subclass of
20897 rtl_opt_pass along with...
20898 (pass_data_clean_state): ...new pass_data instance and...
20899 (make_pass_clean_state): ...new function.
20900 * function.c (pass_instantiate_virtual_regs): Convert from a global
20901 struct to a subclass of rtl_opt_pass along with...
20902 (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
20903 (make_pass_instantiate_virtual_regs): ...new function.
20904 (pass_leaf_regs): Convert from a global struct to a subclass of
20905 rtl_opt_pass along with...
20906 (pass_data_leaf_regs): ...new pass_data instance and...
20907 (make_pass_leaf_regs): ...new function.
20908 (pass_thread_prologue_and_epilogue): Convert from a global struct to a
20909 subclass of rtl_opt_pass along with...
20910 (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
20912 (make_pass_thread_prologue_and_epilogue): ...new function.
20913 (pass_match_asm_constraints): Convert from a global struct to a
20914 subclass of rtl_opt_pass along with...
20915 (pass_data_match_asm_constraints): ...new pass_data instance and...
20916 (make_pass_match_asm_constraints): ...new function.
20917 * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
20918 subclass of rtl_opt_pass along with...
20919 (pass_data_rtl_fwprop): ...new pass_data instance and...
20920 (make_pass_rtl_fwprop): ...new function.
20921 (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
20922 rtl_opt_pass along with...
20923 (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
20924 (make_pass_rtl_fwprop_addr): ...new function.
20925 * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
20926 rtl_opt_pass along with...
20927 (pass_data_rtl_pre): ...new pass_data instance and...
20928 (make_pass_rtl_pre): ...new function.
20929 (pass_rtl_hoist): Convert from a global struct to a subclass of
20930 rtl_opt_pass along with...
20931 (pass_data_rtl_hoist): ...new pass_data instance and...
20932 (make_pass_rtl_hoist): ...new function.
20933 * gimple-low.c (pass_lower_cf): Convert from a global struct to a
20934 subclass of gimple_opt_pass along with...
20935 (pass_data_lower_cf): ...new pass_data instance and...
20936 (make_pass_lower_cf): ...new function.
20937 * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
20938 from a global struct to a subclass of gimple_opt_pass along with...
20939 (pass_data_strength_reduction): ...new pass_data instance and...
20940 (make_pass_strength_reduction): ...new function.
20941 * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
20942 of rtl_opt_pass along with...
20943 (pass_data_rtl_ifcvt): ...new pass_data instance and...
20944 (make_pass_rtl_ifcvt): ...new function.
20945 (pass_if_after_combine): Convert from a global struct to a subclass of
20946 rtl_opt_pass along with...
20947 (pass_data_if_after_combine): ...new pass_data instance and...
20948 (make_pass_if_after_combine): ...new function.
20949 (pass_if_after_reload): Convert from a global struct to a subclass of
20950 rtl_opt_pass along with...
20951 (pass_data_if_after_reload): ...new pass_data instance and...
20952 (make_pass_if_after_reload): ...new function.
20953 * init-regs.c (pass_initialize_regs): Convert from a global struct to
20954 a subclass of rtl_opt_pass along with...
20955 (pass_data_initialize_regs): ...new pass_data instance and...
20956 (make_pass_initialize_regs): ...new function.
20957 * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
20958 of ipa_opt_pass_d along with...
20959 (pass_data_ipa_cp): ...new pass_data instance and...
20960 (make_pass_ipa_cp): ...new function.
20961 * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
20962 global struct to a subclass of gimple_opt_pass along with...
20963 (pass_data_inline_parameters): ...new pass_data instance and...
20964 (make_pass_inline_parameters): ...new function.
20965 * ipa-inline.c (pass_early_inline): Convert from a global struct to a
20966 subclass of gimple_opt_pass along with...
20967 (pass_data_early_inline): ...new pass_data instance and...
20968 (make_pass_early_inline): ...new function.
20969 (pass_ipa_inline): Convert from a global struct to a subclass of
20970 ipa_opt_pass_d along with...
20971 (pass_data_ipa_inline): ...new pass_data instance and...
20972 (make_pass_ipa_inline): ...new function.
20973 * ipa-pure-const.c (pass_local_pure_const): Convert from a global
20974 struct to a subclass of gimple_opt_pass along with...
20975 (pass_data_local_pure_const): ...new pass_data instance and...
20976 (make_pass_local_pure_const): ...new function.
20977 (pass_ipa_pure_const): Convert from a global struct to a subclass of
20978 ipa_opt_pass_d along with...
20979 (pass_data_ipa_pure_const): ...new pass_data instance and...
20980 (make_pass_ipa_pure_const): ...new function.
20981 * ipa-reference.c (pass_ipa_reference): Convert from a global struct
20982 to a subclass of ipa_opt_pass_d along with...
20983 (pass_data_ipa_reference): ...new pass_data instance and...
20984 (make_pass_ipa_reference): ...new function.
20985 * ipa-split.c (pass_split_functions): Convert from a global struct to
20986 a subclass of gimple_opt_pass along with...
20987 (pass_data_split_functions): ...new pass_data instance and...
20988 (make_pass_split_functions): ...new function.
20989 (pass_feedback_split_functions): Convert from a global struct to a
20990 subclass of gimple_opt_pass along with...
20991 (pass_data_feedback_split_functions): ...new pass_data instance and...
20992 (make_pass_feedback_split_functions): ...new function.
20993 * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
20994 global struct to a subclass of simple_ipa_opt_pass along with...
20995 (pass_data_ipa_function_and_variable_visibility): ...new pass_data
20997 (make_pass_ipa_function_and_variable_visibility): ...new function.
20998 (pass_ipa_free_inline_summary): Convert from a global struct to a
20999 subclass of simple_ipa_opt_pass along with...
21000 (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
21001 (make_pass_ipa_free_inline_summary): ...new function.
21002 (pass_ipa_whole_program_visibility): Convert from a global struct to a
21003 subclass of ipa_opt_pass_d along with...
21004 (pass_data_ipa_whole_program_visibility): ...new pass_data instance
21006 (make_pass_ipa_whole_program_visibility): ...new function.
21007 (pass_ipa_profile): Convert from a global struct to a subclass of
21008 ipa_opt_pass_d along with...
21009 (pass_data_ipa_profile): ...new pass_data instance and...
21010 (make_pass_ipa_profile): ...new function.
21011 (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
21012 ipa_opt_pass_d along with...
21013 (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
21014 (make_pass_ipa_cdtor_merge): ...new function.
21015 * ira.c (pass_ira): Convert from a global struct to a subclass of
21016 rtl_opt_pass along with...
21017 (pass_data_ira): ...new pass_data instance and...
21018 (make_pass_ira): ...new function.
21019 (pass_reload): Convert from a global struct to a subclass of
21020 rtl_opt_pass along with...
21021 (pass_data_reload): ...new pass_data instance and...
21022 (make_pass_reload): ...new function.
21023 * jump.c (pass_cleanup_barriers): Convert from a global struct to a
21024 subclass of rtl_opt_pass along with...
21025 (pass_data_cleanup_barriers): ...new pass_data instance and...
21026 (make_pass_cleanup_barriers): ...new function.
21027 * loop-init.c (pass_loop2): Convert from a global struct to a subclass
21028 of rtl_opt_pass along with...
21029 (pass_data_loop2): ...new pass_data instance and...
21030 (make_pass_loop2): ...new function.
21031 (pass_rtl_loop_init): Convert from a global struct to a subclass of
21032 rtl_opt_pass along with...
21033 (pass_data_rtl_loop_init): ...new pass_data instance and...
21034 (make_pass_rtl_loop_init): ...new function.
21035 (pass_rtl_loop_done): Convert from a global struct to a subclass of
21036 rtl_opt_pass along with...
21037 (pass_data_rtl_loop_done): ...new pass_data instance and...
21038 (make_pass_rtl_loop_done): ...new function.
21039 (pass_rtl_move_loop_invariants): Convert from a global struct to a
21040 subclass of rtl_opt_pass along with...
21041 (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
21042 (make_pass_rtl_move_loop_invariants): ...new function.
21043 (pass_rtl_unswitch): Convert from a global struct to a subclass of
21044 rtl_opt_pass along with...
21045 (pass_data_rtl_unswitch): ...new pass_data instance and...
21046 (make_pass_rtl_unswitch): ...new function.
21047 (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
21048 subclass of rtl_opt_pass along with...
21049 (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
21051 (make_pass_rtl_unroll_and_peel_loops): ...new function.
21052 (pass_rtl_doloop): Convert from a global struct to a subclass of
21053 rtl_opt_pass along with...
21054 (pass_data_rtl_doloop): ...new pass_data instance and...
21055 (make_pass_rtl_doloop): ...new function.
21056 * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
21057 a subclass of rtl_opt_pass along with...
21058 (pass_data_lower_subreg): ...new pass_data instance and...
21059 (make_pass_lower_subreg): ...new function.
21060 (pass_lower_subreg2): Convert from a global struct to a subclass of
21061 rtl_opt_pass along with...
21062 (pass_data_lower_subreg2): ...new pass_data instance and...
21063 (make_pass_lower_subreg2): ...new function.
21064 * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
21065 struct to a subclass of ipa_opt_pass_d along with...
21066 (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
21067 (make_pass_ipa_lto_gimple_out): ...new function.
21068 (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
21069 of ipa_opt_pass_d along with...
21070 (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
21071 (make_pass_ipa_lto_finish_out): ...new function.
21072 * mode-switching.c (pass_mode_switching): Convert from a global struct
21073 to a subclass of rtl_opt_pass along with...
21074 (pass_data_mode_switching): ...new pass_data instance and...
21075 (make_pass_mode_switching): ...new function.
21076 * modulo-sched.c (pass_sms): Convert from a global struct to a
21077 subclass of rtl_opt_pass along with...
21078 (pass_data_sms): ...new pass_data instance and...
21079 (make_pass_sms): ...new function.
21080 * omp-low.c (pass_expand_omp): Convert from a global struct to a
21081 subclass of gimple_opt_pass along with...
21082 (pass_data_expand_omp): ...new pass_data instance and...
21083 (make_pass_expand_omp): ...new function.
21084 (pass_lower_omp): Convert from a global struct to a subclass of
21085 gimple_opt_pass along with...
21086 (pass_data_lower_omp): ...new pass_data instance and...
21087 (make_pass_lower_omp): ...new function.
21088 (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
21089 of gimple_opt_pass along with...
21090 (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
21091 (make_pass_diagnose_omp_blocks): ...new function.
21092 * passes.c (pass_early_local_passes): Convert from a global struct to
21093 a subclass of simple_ipa_opt_pass along with...
21094 (pass_data_early_local_passes): ...new pass_data instance and...
21095 (make_pass_early_local_passes): ...new function.
21096 (pass_all_early_optimizations): Convert from a global struct to a
21097 subclass of gimple_opt_pass along with...
21098 (pass_data_all_early_optimizations): ...new pass_data instance and...
21099 (make_pass_all_early_optimizations): ...new function.
21100 (pass_all_optimizations): Convert from a global struct to a subclass
21101 of gimple_opt_pass along with...
21102 (pass_data_all_optimizations): ...new pass_data instance and...
21103 (make_pass_all_optimizations): ...new function.
21104 (pass_all_optimizations_g): Convert from a global struct to a subclass
21105 of gimple_opt_pass along with...
21106 (pass_data_all_optimizations_g): ...new pass_data instance and...
21107 (make_pass_all_optimizations_g): ...new function.
21108 (pass_rest_of_compilation): Convert from a global struct to a subclass
21109 of rtl_opt_pass along with...
21110 (pass_data_rest_of_compilation): ...new pass_data instance and...
21111 (make_pass_rest_of_compilation): ...new function.
21112 (pass_postreload): Convert from a global struct to a subclass of
21113 rtl_opt_pass along with...
21114 (pass_data_postreload): ...new pass_data instance and...
21115 (make_pass_postreload): ...new function.
21116 * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
21117 subclass of rtl_opt_pass along with...
21118 (pass_data_gcse2): ...new pass_data instance and...
21119 (make_pass_gcse2): ...new function.
21120 * postreload.c (pass_postreload_cse): Convert from a global struct to
21121 a subclass of rtl_opt_pass along with...
21122 (pass_data_postreload_cse): ...new pass_data instance and...
21123 (make_pass_postreload_cse): ...new function.
21124 * predict.c (pass_profile): Convert from a global struct to a subclass
21125 of gimple_opt_pass along with...
21126 (pass_data_profile): ...new pass_data instance and...
21127 (make_pass_profile): ...new function.
21128 (pass_strip_predict_hints): Convert from a global struct to a subclass
21129 of gimple_opt_pass along with...
21130 (pass_data_strip_predict_hints): ...new pass_data instance and...
21131 (make_pass_strip_predict_hints): ...new function.
21132 * recog.c (pass_peephole2): Convert from a global struct to a subclass
21133 of rtl_opt_pass along with...
21134 (pass_data_peephole2): ...new pass_data instance and...
21135 (make_pass_peephole2): ...new function.
21136 (pass_split_all_insns): Convert from a global struct to a subclass of
21137 rtl_opt_pass along with...
21138 (pass_data_split_all_insns): ...new pass_data instance and...
21139 (make_pass_split_all_insns): ...new function.
21140 (pass_split_after_reload): Convert from a global struct to a subclass
21141 of rtl_opt_pass along with...
21142 (pass_data_split_after_reload): ...new pass_data instance and...
21143 (make_pass_split_after_reload): ...new function.
21144 (pass_split_before_regstack): Convert from a global struct to a
21145 subclass of rtl_opt_pass along with...
21146 (pass_data_split_before_regstack): ...new pass_data instance and...
21147 (make_pass_split_before_regstack): ...new function.
21148 (pass_split_before_sched2): Convert from a global struct to a subclass
21149 of rtl_opt_pass along with...
21150 (pass_data_split_before_sched2): ...new pass_data instance and...
21151 (make_pass_split_before_sched2): ...new function.
21152 (pass_split_for_shorten_branches): Convert from a global struct to a
21153 subclass of rtl_opt_pass along with...
21154 (pass_data_split_for_shorten_branches): ...new pass_data instance
21156 (make_pass_split_for_shorten_branches): ...new function.
21157 * ree.c (pass_ree): Convert from a global struct to a subclass of
21158 rtl_opt_pass along with...
21159 (pass_data_ree): ...new pass_data instance and...
21160 (make_pass_ree): ...new function.
21161 * reg-stack.c (pass_stack_regs): Convert from a global struct to a
21162 subclass of rtl_opt_pass along with...
21163 (pass_data_stack_regs): ...new pass_data instance and...
21164 (make_pass_stack_regs): ...new function.
21165 (pass_stack_regs_run): Convert from a global struct to a subclass of
21166 rtl_opt_pass along with...
21167 (pass_data_stack_regs_run): ...new pass_data instance and...
21168 (make_pass_stack_regs_run): ...new function.
21169 * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
21170 subclass of rtl_opt_pass along with...
21171 (pass_data_cprop_hardreg): ...new pass_data instance and...
21172 (make_pass_cprop_hardreg): ...new function.
21173 * reginfo.c (pass_reginfo_init): Convert from a global struct to a
21174 subclass of rtl_opt_pass along with...
21175 (pass_data_reginfo_init): ...new pass_data instance and...
21176 (make_pass_reginfo_init): ...new function.
21177 * regmove.c (pass_regmove): Convert from a global struct to a subclass
21178 of rtl_opt_pass along with...
21179 (pass_data_regmove): ...new pass_data instance and...
21180 (make_pass_regmove): ...new function.
21181 * regrename.c (pass_regrename): Convert from a global struct to a
21182 subclass of rtl_opt_pass along with...
21183 (pass_data_regrename): ...new pass_data instance and...
21184 (make_pass_regrename): ...new function.
21185 * reorg.c (pass_delay_slots): Convert from a global struct to a
21186 subclass of rtl_opt_pass along with...
21187 (pass_data_delay_slots): ...new pass_data instance and...
21188 (make_pass_delay_slots): ...new function.
21189 (pass_machine_reorg): Convert from a global struct to a subclass of
21190 rtl_opt_pass along with...
21191 (pass_data_machine_reorg): ...new pass_data instance and...
21192 (make_pass_machine_reorg): ...new function.
21193 * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
21194 of rtl_opt_pass along with...
21195 (pass_data_sched): ...new pass_data instance and...
21196 (make_pass_sched): ...new function.
21197 (pass_sched2): Convert from a global struct to a subclass of
21198 rtl_opt_pass along with...
21199 (pass_data_sched2): ...new pass_data instance and...
21200 (make_pass_sched2): ...new function.
21201 * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
21202 to a subclass of rtl_opt_pass along with...
21203 (pass_data_stack_ptr_mod): ...new pass_data instance and...
21204 (make_pass_stack_ptr_mod): ...new function.
21205 * store-motion.c (pass_rtl_store_motion): Convert from a global struct
21206 to a subclass of rtl_opt_pass along with...
21207 (pass_data_rtl_store_motion): ...new pass_data instance and...
21208 (make_pass_rtl_store_motion): ...new function.
21209 * tracer.c (pass_tracer): Convert from a global struct to a subclass
21210 of gimple_opt_pass along with...
21211 (pass_data_tracer): ...new pass_data instance and...
21212 (make_pass_tracer): ...new function.
21213 * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
21214 to a subclass of gimple_opt_pass along with...
21215 (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
21216 (make_pass_diagnose_tm_blocks): ...new function.
21217 (pass_lower_tm): Convert from a global struct to a subclass of
21218 gimple_opt_pass along with...
21219 (pass_data_lower_tm): ...new pass_data instance and...
21220 (make_pass_lower_tm): ...new function.
21221 (pass_tm_init): Convert from a global struct to a subclass of
21222 gimple_opt_pass along with...
21223 (pass_data_tm_init): ...new pass_data instance and...
21224 (make_pass_tm_init): ...new function.
21225 (pass_tm_mark): Convert from a global struct to a subclass of
21226 gimple_opt_pass along with...
21227 (pass_data_tm_mark): ...new pass_data instance and...
21228 (make_pass_tm_mark): ...new function.
21229 (pass_tm_edges): Convert from a global struct to a subclass of
21230 gimple_opt_pass along with...
21231 (pass_data_tm_edges): ...new pass_data instance and...
21232 (make_pass_tm_edges): ...new function.
21233 (pass_tm_memopt): Convert from a global struct to a subclass of
21234 gimple_opt_pass along with...
21235 (pass_data_tm_memopt): ...new pass_data instance and...
21236 (make_pass_tm_memopt): ...new function.
21237 (pass_ipa_tm): Convert from a global struct to a subclass of
21238 simple_ipa_opt_pass along with...
21239 (pass_data_ipa_tm): ...new pass_data instance and...
21240 (make_pass_ipa_tm): ...new function.
21241 * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
21242 subclass of gimple_opt_pass along with...
21243 (pass_data_call_cdce): ...new pass_data instance and...
21244 (make_pass_call_cdce): ...new function.
21245 * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
21246 subclass of gimple_opt_pass along with...
21247 (pass_data_build_cfg): ...new pass_data instance and...
21248 (make_pass_build_cfg): ...new function.
21249 (pass_split_crit_edges): Convert from a global struct to a subclass of
21250 gimple_opt_pass along with...
21251 (pass_data_split_crit_edges): ...new pass_data instance and...
21252 (make_pass_split_crit_edges): ...new function.
21253 (pass_warn_function_return): Convert from a global struct to a
21254 subclass of gimple_opt_pass along with...
21255 (pass_data_warn_function_return): ...new pass_data instance and...
21256 (make_pass_warn_function_return): ...new function.
21257 (pass_warn_function_noreturn): Convert from a global struct to a
21258 subclass of gimple_opt_pass along with...
21259 (pass_data_warn_function_noreturn): ...new pass_data instance and...
21260 (make_pass_warn_function_noreturn): ...new function.
21261 (pass_warn_unused_result): Convert from a global struct to a subclass
21262 of gimple_opt_pass along with...
21263 (pass_data_warn_unused_result): ...new pass_data instance and...
21264 (make_pass_warn_unused_result): ...new function.
21265 * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
21266 a subclass of gimple_opt_pass along with...
21267 (pass_data_merge_phi): ...new pass_data instance and...
21268 (make_pass_merge_phi): ...new function.
21269 * tree-complex.c (pass_lower_complex): Convert from a global struct to
21270 a subclass of gimple_opt_pass along with...
21271 (pass_data_lower_complex): ...new pass_data instance and...
21272 (make_pass_lower_complex): ...new function.
21273 (pass_lower_complex_O0): Convert from a global struct to a subclass of
21274 gimple_opt_pass along with...
21275 (pass_data_lower_complex_O0): ...new pass_data instance and...
21276 (make_pass_lower_complex_O0): ...new function.
21277 * tree-eh.c (pass_lower_eh): Convert from a global struct to a
21278 subclass of gimple_opt_pass along with...
21279 (pass_data_lower_eh): ...new pass_data instance and...
21280 (make_pass_lower_eh): ...new function.
21281 (pass_refactor_eh): Convert from a global struct to a subclass of
21282 gimple_opt_pass along with...
21283 (pass_data_refactor_eh): ...new pass_data instance and...
21284 (make_pass_refactor_eh): ...new function.
21285 (pass_lower_resx): Convert from a global struct to a subclass of
21286 gimple_opt_pass along with...
21287 (pass_data_lower_resx): ...new pass_data instance and...
21288 (make_pass_lower_resx): ...new function.
21289 (pass_lower_eh_dispatch): Convert from a global struct to a subclass
21290 of gimple_opt_pass along with...
21291 (pass_data_lower_eh_dispatch): ...new pass_data instance and...
21292 (make_pass_lower_eh_dispatch): ...new function.
21293 (pass_cleanup_eh): Convert from a global struct to a subclass of
21294 gimple_opt_pass along with...
21295 (pass_data_cleanup_eh): ...new pass_data instance and...
21296 (make_pass_cleanup_eh): ...new function.
21297 * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
21298 to a subclass of simple_ipa_opt_pass along with...
21299 (pass_data_ipa_lower_emutls): ...new pass_data instance and...
21300 (make_pass_ipa_lower_emutls): ...new function.
21301 * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
21302 a subclass of gimple_opt_pass along with...
21303 (pass_data_if_conversion): ...new pass_data instance and...
21304 (make_pass_if_conversion): ...new function.
21305 * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
21306 subclass of gimple_opt_pass along with...
21307 (pass_data_build_ssa): ...new pass_data instance and...
21308 (make_pass_build_ssa): ...new function.
21309 * tree-loop-distribution.c (pass_loop_distribution): Convert from a
21310 global struct to a subclass of gimple_opt_pass along with...
21311 (pass_data_loop_distribution): ...new pass_data instance and...
21312 (make_pass_loop_distribution): ...new function.
21313 * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
21314 subclass of gimple_opt_pass along with...
21315 (pass_data_mudflap_1): ...new pass_data instance and...
21316 (make_pass_mudflap_1): ...new function.
21317 (pass_mudflap_2): Convert from a global struct to a subclass of
21318 gimple_opt_pass along with...
21319 (pass_data_mudflap_2): ...new pass_data instance and...
21320 (make_pass_mudflap_2): ...new function.
21321 * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
21322 subclass of gimple_opt_pass along with...
21323 (pass_data_mudflap_1): ...new pass_data instance and...
21324 (make_pass_mudflap_1): ...new function.
21325 (pass_mudflap_2): Convert from a global struct to a subclass of
21326 gimple_opt_pass along with...
21327 (pass_data_mudflap_2): ...new pass_data instance and...
21328 (make_pass_mudflap_2): ...new function.
21329 * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
21330 gimple_opt_pass along with...
21331 (pass_data_nrv): ...new pass_data instance and...
21332 (make_pass_nrv): ...new function.
21333 (pass_return_slot): Convert from a global struct to a subclass of
21334 gimple_opt_pass along with...
21335 (pass_data_return_slot): ...new pass_data instance and...
21336 (make_pass_return_slot): ...new function.
21337 * tree-object-size.c (pass_object_sizes): Convert from a global struct
21338 to a subclass of gimple_opt_pass along with...
21339 (pass_data_object_sizes): ...new pass_data instance and...
21340 (make_pass_object_sizes): ...new function.
21341 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
21342 global struct to a subclass of gimple_opt_pass along with...
21343 (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
21345 (make_pass_cleanup_cfg_post_optimizing): ...new function.
21346 (pass_fixup_cfg): Convert from a global struct to a subclass of
21347 gimple_opt_pass along with...
21348 (pass_data_fixup_cfg): ...new pass_data instance and...
21349 (make_pass_fixup_cfg): ...new function.
21350 * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
21351 (make_pass_mudflap_1): ...new function.
21352 (pass_mudflap_2): Replace declaration with that of...
21353 (make_pass_mudflap_2): ...new function.
21354 (pass_asan): Replace declaration with that of...
21355 (make_pass_asan): ...new function.
21356 (pass_asan_O0): Replace declaration with that of...
21357 (make_pass_asan_O0): ...new function.
21358 (pass_tsan): Replace declaration with that of...
21359 (make_pass_tsan): ...new function.
21360 (pass_tsan_O0): Replace declaration with that of...
21361 (make_pass_tsan_O0): ...new function.
21362 (pass_lower_cf): Replace declaration with that of...
21363 (make_pass_lower_cf): ...new function.
21364 (pass_refactor_eh): Replace declaration with that of...
21365 (make_pass_refactor_eh): ...new function.
21366 (pass_lower_eh): Replace declaration with that of...
21367 (make_pass_lower_eh): ...new function.
21368 (pass_lower_eh_dispatch): Replace declaration with that of...
21369 (make_pass_lower_eh_dispatch): ...new function.
21370 (pass_lower_resx): Replace declaration with that of...
21371 (make_pass_lower_resx): ...new function.
21372 (pass_build_cfg): Replace declaration with that of...
21373 (make_pass_build_cfg): ...new function.
21374 (pass_early_tree_profile): Replace declaration with that of...
21375 (make_pass_early_tree_profile): ...new function.
21376 (pass_cleanup_eh): Replace declaration with that of...
21377 (make_pass_cleanup_eh): ...new function.
21378 (pass_sra): Replace declaration with that of...
21379 (make_pass_sra): ...new function.
21380 (pass_sra_early): Replace declaration with that of...
21381 (make_pass_sra_early): ...new function.
21382 (pass_early_ipa_sra): Replace declaration with that of...
21383 (make_pass_early_ipa_sra): ...new function.
21384 (pass_tail_recursion): Replace declaration with that of...
21385 (make_pass_tail_recursion): ...new function.
21386 (pass_tail_calls): Replace declaration with that of...
21387 (make_pass_tail_calls): ...new function.
21388 (pass_tree_loop): Replace declaration with that of...
21389 (make_pass_tree_loop): ...new function.
21390 (pass_tree_loop_init): Replace declaration with that of...
21391 (make_pass_tree_loop_init): ...new function.
21392 (pass_lim): Replace declaration with that of...
21393 (make_pass_lim): ...new function.
21394 (pass_tree_unswitch): Replace declaration with that of...
21395 (make_pass_tree_unswitch): ...new function.
21396 (pass_predcom): Replace declaration with that of...
21397 (make_pass_predcom): ...new function.
21398 (pass_iv_canon): Replace declaration with that of...
21399 (make_pass_iv_canon): ...new function.
21400 (pass_scev_cprop): Replace declaration with that of...
21401 (make_pass_scev_cprop): ...new function.
21402 (pass_empty_loop): Replace declaration with that of...
21403 (make_pass_empty_loop): ...new function.
21404 (pass_record_bounds): Replace declaration with that of...
21405 (make_pass_record_bounds): ...new function.
21406 (pass_graphite): Replace declaration with that of...
21407 (make_pass_graphite): ...new function.
21408 (pass_graphite_transforms): Replace declaration with that of...
21409 (make_pass_graphite_transforms): ...new function.
21410 (pass_if_conversion): Replace declaration with that of...
21411 (make_pass_if_conversion): ...new function.
21412 (pass_loop_distribution): Replace declaration with that of...
21413 (make_pass_loop_distribution): ...new function.
21414 (pass_vectorize): Replace declaration with that of...
21415 (make_pass_vectorize): ...new function.
21416 (pass_slp_vectorize): Replace declaration with that of...
21417 (make_pass_slp_vectorize): ...new function.
21418 (pass_complete_unroll): Replace declaration with that of...
21419 (make_pass_complete_unroll): ...new function.
21420 (pass_complete_unrolli): Replace declaration with that of...
21421 (make_pass_complete_unrolli): ...new function.
21422 (pass_parallelize_loops): Replace declaration with that of...
21423 (make_pass_parallelize_loops): ...new function.
21424 (pass_loop_prefetch): Replace declaration with that of...
21425 (make_pass_loop_prefetch): ...new function.
21426 (pass_iv_optimize): Replace declaration with that of...
21427 (make_pass_iv_optimize): ...new function.
21428 (pass_tree_loop_done): Replace declaration with that of...
21429 (make_pass_tree_loop_done): ...new function.
21430 (pass_ch): Replace declaration with that of...
21431 (make_pass_ch): ...new function.
21432 (pass_ccp): Replace declaration with that of...
21433 (make_pass_ccp): ...new function.
21434 (pass_phi_only_cprop): Replace declaration with that of...
21435 (make_pass_phi_only_cprop): ...new function.
21436 (pass_build_ssa): Replace declaration with that of...
21437 (make_pass_build_ssa): ...new function.
21438 (pass_build_alias): Replace declaration with that of...
21439 (make_pass_build_alias): ...new function.
21440 (pass_build_ealias): Replace declaration with that of...
21441 (make_pass_build_ealias): ...new function.
21442 (pass_dominator): Replace declaration with that of...
21443 (make_pass_dominator): ...new function.
21444 (pass_dce): Replace declaration with that of...
21445 (make_pass_dce): ...new function.
21446 (pass_dce_loop): Replace declaration with that of...
21447 (make_pass_dce_loop): ...new function.
21448 (pass_cd_dce): Replace declaration with that of...
21449 (make_pass_cd_dce): ...new function.
21450 (pass_call_cdce): Replace declaration with that of...
21451 (make_pass_call_cdce): ...new function.
21452 (pass_merge_phi): Replace declaration with that of...
21453 (make_pass_merge_phi): ...new function.
21454 (pass_split_crit_edges): Replace declaration with that of...
21455 (make_pass_split_crit_edges): ...new function.
21456 (pass_pre): Replace declaration with that of...
21457 (make_pass_pre): ...new function.
21458 (pass_profile): Replace declaration with that of...
21459 (make_pass_profile): ...new function.
21460 (pass_strip_predict_hints): Replace declaration with that of...
21461 (make_pass_strip_predict_hints): ...new function.
21462 (pass_lower_complex_O0): Replace declaration with that of...
21463 (make_pass_lower_complex_O0): ...new function.
21464 (pass_lower_complex): Replace declaration with that of...
21465 (make_pass_lower_complex): ...new function.
21466 (pass_lower_vector): Replace declaration with that of...
21467 (make_pass_lower_vector): ...new function.
21468 (pass_lower_vector_ssa): Replace declaration with that of...
21469 (make_pass_lower_vector_ssa): ...new function.
21470 (pass_lower_omp): Replace declaration with that of...
21471 (make_pass_lower_omp): ...new function.
21472 (pass_diagnose_omp_blocks): Replace declaration with that of...
21473 (make_pass_diagnose_omp_blocks): ...new function.
21474 (pass_expand_omp): Replace declaration with that of...
21475 (make_pass_expand_omp): ...new function.
21476 (pass_expand_omp_ssa): Replace declaration with that of...
21477 (make_pass_expand_omp_ssa): ...new function.
21478 (pass_object_sizes): Replace declaration with that of...
21479 (make_pass_object_sizes): ...new function.
21480 (pass_strlen): Replace declaration with that of...
21481 (make_pass_strlen): ...new function.
21482 (pass_fold_builtins): Replace declaration with that of...
21483 (make_pass_fold_builtins): ...new function.
21484 (pass_stdarg): Replace declaration with that of...
21485 (make_pass_stdarg): ...new function.
21486 (pass_early_warn_uninitialized): Replace declaration with that of...
21487 (make_pass_early_warn_uninitialized): ...new function.
21488 (pass_late_warn_uninitialized): Replace declaration with that of...
21489 (make_pass_late_warn_uninitialized): ...new function.
21490 (pass_cse_reciprocals): Replace declaration with that of...
21491 (make_pass_cse_reciprocals): ...new function.
21492 (pass_cse_sincos): Replace declaration with that of...
21493 (make_pass_cse_sincos): ...new function.
21494 (pass_optimize_bswap): Replace declaration with that of...
21495 (make_pass_optimize_bswap): ...new function.
21496 (pass_optimize_widening_mul): Replace declaration with that of...
21497 (make_pass_optimize_widening_mul): ...new function.
21498 (pass_warn_function_return): Replace declaration with that of...
21499 (make_pass_warn_function_return): ...new function.
21500 (pass_warn_function_noreturn): Replace declaration with that of...
21501 (make_pass_warn_function_noreturn): ...new function.
21502 (pass_cselim): Replace declaration with that of...
21503 (make_pass_cselim): ...new function.
21504 (pass_phiopt): Replace declaration with that of...
21505 (make_pass_phiopt): ...new function.
21506 (pass_forwprop): Replace declaration with that of...
21507 (make_pass_forwprop): ...new function.
21508 (pass_phiprop): Replace declaration with that of...
21509 (make_pass_phiprop): ...new function.
21510 (pass_tree_ifcombine): Replace declaration with that of...
21511 (make_pass_tree_ifcombine): ...new function.
21512 (pass_dse): Replace declaration with that of...
21513 (make_pass_dse): ...new function.
21514 (pass_nrv): Replace declaration with that of...
21515 (make_pass_nrv): ...new function.
21516 (pass_rename_ssa_copies): Replace declaration with that of...
21517 (make_pass_rename_ssa_copies): ...new function.
21518 (pass_sink_code): Replace declaration with that of...
21519 (make_pass_sink_code): ...new function.
21520 (pass_fre): Replace declaration with that of...
21521 (make_pass_fre): ...new function.
21522 (pass_check_data_deps): Replace declaration with that of...
21523 (make_pass_check_data_deps): ...new function.
21524 (pass_copy_prop): Replace declaration with that of...
21525 (make_pass_copy_prop): ...new function.
21526 (pass_vrp): Replace declaration with that of...
21527 (make_pass_vrp): ...new function.
21528 (pass_uncprop): Replace declaration with that of...
21529 (make_pass_uncprop): ...new function.
21530 (pass_return_slot): Replace declaration with that of...
21531 (make_pass_return_slot): ...new function.
21532 (pass_reassoc): Replace declaration with that of...
21533 (make_pass_reassoc): ...new function.
21534 (pass_rebuild_cgraph_edges): Replace declaration with that of...
21535 (make_pass_rebuild_cgraph_edges): ...new function.
21536 (pass_remove_cgraph_callee_edges): Replace declaration with that of...
21537 (make_pass_remove_cgraph_callee_edges): ...new function.
21538 (pass_build_cgraph_edges): Replace declaration with that of...
21539 (make_pass_build_cgraph_edges): ...new function.
21540 (pass_local_pure_const): Replace declaration with that of...
21541 (make_pass_local_pure_const): ...new function.
21542 (pass_tracer): Replace declaration with that of...
21543 (make_pass_tracer): ...new function.
21544 (pass_warn_unused_result): Replace declaration with that of...
21545 (make_pass_warn_unused_result): ...new function.
21546 (pass_diagnose_tm_blocks): Replace declaration with that of...
21547 (make_pass_diagnose_tm_blocks): ...new function.
21548 (pass_lower_tm): Replace declaration with that of...
21549 (make_pass_lower_tm): ...new function.
21550 (pass_tm_init): Replace declaration with that of...
21551 (make_pass_tm_init): ...new function.
21552 (pass_tm_mark): Replace declaration with that of...
21553 (make_pass_tm_mark): ...new function.
21554 (pass_tm_memopt): Replace declaration with that of...
21555 (make_pass_tm_memopt): ...new function.
21556 (pass_tm_edges): Replace declaration with that of...
21557 (make_pass_tm_edges): ...new function.
21558 (pass_split_functions): Replace declaration with that of...
21559 (make_pass_split_functions): ...new function.
21560 (pass_feedback_split_functions): Replace declaration with that of...
21561 (make_pass_feedback_split_functions): ...new function.
21562 (pass_strength_reduction): Replace declaration with that of...
21563 (make_pass_strength_reduction): ...new function.
21564 (pass_ipa_lower_emutls): Replace declaration with that of...
21565 (make_pass_ipa_lower_emutls): ...new function.
21566 (pass_ipa_function_and_variable_visibility): Replace declaration with
21568 (make_pass_ipa_function_and_variable_visibility): ...new function.
21569 (pass_ipa_tree_profile): Replace declaration with that of...
21570 (make_pass_ipa_tree_profile): ...new function.
21571 (pass_early_local_passes): Replace declaration with that of...
21572 (make_pass_early_local_passes): ...new function.
21573 (pass_ipa_whole_program_visibility): Replace declaration with that
21575 (make_pass_ipa_whole_program_visibility): ...new function.
21576 (pass_ipa_lto_gimple_out): Replace declaration with that of...
21577 (make_pass_ipa_lto_gimple_out): ...new function.
21578 (pass_ipa_increase_alignment): Replace declaration with that of...
21579 (make_pass_ipa_increase_alignment): ...new function.
21580 (pass_ipa_inline): Replace declaration with that of...
21581 (make_pass_ipa_inline): ...new function.
21582 (pass_ipa_free_lang_data): Replace declaration with that of...
21583 (make_pass_ipa_free_lang_data): ...new function.
21584 (pass_ipa_free_inline_summary): Replace declaration with that of...
21585 (make_pass_ipa_free_inline_summary): ...new function.
21586 (pass_ipa_cp): Replace declaration with that of...
21587 (make_pass_ipa_cp): ...new function.
21588 (pass_ipa_reference): Replace declaration with that of...
21589 (make_pass_ipa_reference): ...new function.
21590 (pass_ipa_pure_const): Replace declaration with that of...
21591 (make_pass_ipa_pure_const): ...new function.
21592 (pass_ipa_pta): Replace declaration with that of...
21593 (make_pass_ipa_pta): ...new function.
21594 (pass_ipa_lto_finish_out): Replace declaration with that of...
21595 (make_pass_ipa_lto_finish_out): ...new function.
21596 (pass_ipa_tm): Replace declaration with that of...
21597 (make_pass_ipa_tm): ...new function.
21598 (pass_ipa_profile): Replace declaration with that of...
21599 (make_pass_ipa_profile): ...new function.
21600 (pass_ipa_cdtor_merge): Replace declaration with that of...
21601 (make_pass_ipa_cdtor_merge): ...new function.
21602 (pass_cleanup_cfg_post_optimizing): Replace declaration with that
21604 (make_pass_cleanup_cfg_post_optimizing): ...new function.
21605 (pass_init_datastructures): Replace declaration with that of...
21606 (make_pass_init_datastructures): ...new function.
21607 (pass_fixup_cfg): Replace declaration with that of...
21608 (make_pass_fixup_cfg): ...new function.
21609 (pass_expand): Replace declaration with that of...
21610 (make_pass_expand): ...new function.
21611 (pass_instantiate_virtual_regs): Replace declaration with that of...
21612 (make_pass_instantiate_virtual_regs): ...new function.
21613 (pass_rtl_fwprop): Replace declaration with that of...
21614 (make_pass_rtl_fwprop): ...new function.
21615 (pass_rtl_fwprop_addr): Replace declaration with that of...
21616 (make_pass_rtl_fwprop_addr): ...new function.
21617 (pass_jump): Replace declaration with that of...
21618 (make_pass_jump): ...new function.
21619 (pass_jump2): Replace declaration with that of...
21620 (make_pass_jump2): ...new function.
21621 (pass_lower_subreg): Replace declaration with that of...
21622 (make_pass_lower_subreg): ...new function.
21623 (pass_cse): Replace declaration with that of...
21624 (make_pass_cse): ...new function.
21625 (pass_fast_rtl_dce): Replace declaration with that of...
21626 (make_pass_fast_rtl_dce): ...new function.
21627 (pass_ud_rtl_dce): Replace declaration with that of...
21628 (make_pass_ud_rtl_dce): ...new function.
21629 (pass_rtl_dce): Replace declaration with that of...
21630 (make_pass_rtl_dce): ...new function.
21631 (pass_rtl_dse1): Replace declaration with that of...
21632 (make_pass_rtl_dse1): ...new function.
21633 (pass_rtl_dse2): Replace declaration with that of...
21634 (make_pass_rtl_dse2): ...new function.
21635 (pass_rtl_dse3): Replace declaration with that of...
21636 (make_pass_rtl_dse3): ...new function.
21637 (pass_rtl_cprop): Replace declaration with that of...
21638 (make_pass_rtl_cprop): ...new function.
21639 (pass_rtl_pre): Replace declaration with that of...
21640 (make_pass_rtl_pre): ...new function.
21641 (pass_rtl_hoist): Replace declaration with that of...
21642 (make_pass_rtl_hoist): ...new function.
21643 (pass_rtl_store_motion): Replace declaration with that of...
21644 (make_pass_rtl_store_motion): ...new function.
21645 (pass_cse_after_global_opts): Replace declaration with that of...
21646 (make_pass_cse_after_global_opts): ...new function.
21647 (pass_rtl_ifcvt): Replace declaration with that of...
21648 (make_pass_rtl_ifcvt): ...new function.
21649 (pass_into_cfg_layout_mode): Replace declaration with that of...
21650 (make_pass_into_cfg_layout_mode): ...new function.
21651 (pass_outof_cfg_layout_mode): Replace declaration with that of...
21652 (make_pass_outof_cfg_layout_mode): ...new function.
21653 (pass_loop2): Replace declaration with that of...
21654 (make_pass_loop2): ...new function.
21655 (pass_rtl_loop_init): Replace declaration with that of...
21656 (make_pass_rtl_loop_init): ...new function.
21657 (pass_rtl_move_loop_invariants): Replace declaration with that of...
21658 (make_pass_rtl_move_loop_invariants): ...new function.
21659 (pass_rtl_unswitch): Replace declaration with that of...
21660 (make_pass_rtl_unswitch): ...new function.
21661 (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
21662 (make_pass_rtl_unroll_and_peel_loops): ...new function.
21663 (pass_rtl_doloop): Replace declaration with that of...
21664 (make_pass_rtl_doloop): ...new function.
21665 (pass_rtl_loop_done): Replace declaration with that of...
21666 (make_pass_rtl_loop_done): ...new function.
21667 (pass_web): Replace declaration with that of...
21668 (make_pass_web): ...new function.
21669 (pass_cse2): Replace declaration with that of...
21670 (make_pass_cse2): ...new function.
21671 (pass_df_initialize_opt): Replace declaration with that of...
21672 (make_pass_df_initialize_opt): ...new function.
21673 (pass_df_initialize_no_opt): Replace declaration with that of...
21674 (make_pass_df_initialize_no_opt): ...new function.
21675 (pass_reginfo_init): Replace declaration with that of...
21676 (make_pass_reginfo_init): ...new function.
21677 (pass_inc_dec): Replace declaration with that of...
21678 (make_pass_inc_dec): ...new function.
21679 (pass_stack_ptr_mod): Replace declaration with that of...
21680 (make_pass_stack_ptr_mod): ...new function.
21681 (pass_initialize_regs): Replace declaration with that of...
21682 (make_pass_initialize_regs): ...new function.
21683 (pass_combine): Replace declaration with that of...
21684 (make_pass_combine): ...new function.
21685 (pass_if_after_combine): Replace declaration with that of...
21686 (make_pass_if_after_combine): ...new function.
21687 (pass_ree): Replace declaration with that of...
21688 (make_pass_ree): ...new function.
21689 (pass_partition_blocks): Replace declaration with that of...
21690 (make_pass_partition_blocks): ...new function.
21691 (pass_match_asm_constraints): Replace declaration with that of...
21692 (make_pass_match_asm_constraints): ...new function.
21693 (pass_regmove): Replace declaration with that of...
21694 (make_pass_regmove): ...new function.
21695 (pass_split_all_insns): Replace declaration with that of...
21696 (make_pass_split_all_insns): ...new function.
21697 (pass_fast_rtl_byte_dce): Replace declaration with that of...
21698 (make_pass_fast_rtl_byte_dce): ...new function.
21699 (pass_lower_subreg2): Replace declaration with that of...
21700 (make_pass_lower_subreg2): ...new function.
21701 (pass_mode_switching): Replace declaration with that of...
21702 (make_pass_mode_switching): ...new function.
21703 (pass_sms): Replace declaration with that of...
21704 (make_pass_sms): ...new function.
21705 (pass_sched): Replace declaration with that of...
21706 (make_pass_sched): ...new function.
21707 (pass_ira): Replace declaration with that of...
21708 (make_pass_ira): ...new function.
21709 (pass_reload): Replace declaration with that of...
21710 (make_pass_reload): ...new function.
21711 (pass_clean_state): Replace declaration with that of...
21712 (make_pass_clean_state): ...new function.
21713 (pass_branch_prob): Replace declaration with that of...
21714 (make_pass_branch_prob): ...new function.
21715 (pass_value_profile_transformations): Replace declaration with that
21717 (make_pass_value_profile_transformations): ...new function.
21718 (pass_postreload_cse): Replace declaration with that of...
21719 (make_pass_postreload_cse): ...new function.
21720 (pass_gcse2): Replace declaration with that of...
21721 (make_pass_gcse2): ...new function.
21722 (pass_split_after_reload): Replace declaration with that of...
21723 (make_pass_split_after_reload): ...new function.
21724 (pass_branch_target_load_optimize1): Replace declaration with that
21726 (make_pass_branch_target_load_optimize1): ...new function.
21727 (pass_thread_prologue_and_epilogue): Replace declaration with that
21729 (make_pass_thread_prologue_and_epilogue): ...new function.
21730 (pass_stack_adjustments): Replace declaration with that of...
21731 (make_pass_stack_adjustments): ...new function.
21732 (pass_peephole2): Replace declaration with that of...
21733 (make_pass_peephole2): ...new function.
21734 (pass_if_after_reload): Replace declaration with that of...
21735 (make_pass_if_after_reload): ...new function.
21736 (pass_regrename): Replace declaration with that of...
21737 (make_pass_regrename): ...new function.
21738 (pass_cprop_hardreg): Replace declaration with that of...
21739 (make_pass_cprop_hardreg): ...new function.
21740 (pass_reorder_blocks): Replace declaration with that of...
21741 (make_pass_reorder_blocks): ...new function.
21742 (pass_branch_target_load_optimize2): Replace declaration with that
21744 (make_pass_branch_target_load_optimize2): ...new function.
21745 (pass_leaf_regs): Replace declaration with that of...
21746 (make_pass_leaf_regs): ...new function.
21747 (pass_split_before_sched2): Replace declaration with that of...
21748 (make_pass_split_before_sched2): ...new function.
21749 (pass_compare_elim_after_reload): Replace declaration with that of...
21750 (make_pass_compare_elim_after_reload): ...new function.
21751 (pass_sched2): Replace declaration with that of...
21752 (make_pass_sched2): ...new function.
21753 (pass_stack_regs): Replace declaration with that of...
21754 (make_pass_stack_regs): ...new function.
21755 (pass_stack_regs_run): Replace declaration with that of...
21756 (make_pass_stack_regs_run): ...new function.
21757 (pass_df_finish): Replace declaration with that of...
21758 (make_pass_df_finish): ...new function.
21759 (pass_compute_alignments): Replace declaration with that of...
21760 (make_pass_compute_alignments): ...new function.
21761 (pass_duplicate_computed_gotos): Replace declaration with that of...
21762 (make_pass_duplicate_computed_gotos): ...new function.
21763 (pass_variable_tracking): Replace declaration with that of...
21764 (make_pass_variable_tracking): ...new function.
21765 (pass_free_cfg): Replace declaration with that of...
21766 (make_pass_free_cfg): ...new function.
21767 (pass_machine_reorg): Replace declaration with that of...
21768 (make_pass_machine_reorg): ...new function.
21769 (pass_cleanup_barriers): Replace declaration with that of...
21770 (make_pass_cleanup_barriers): ...new function.
21771 (pass_delay_slots): Replace declaration with that of...
21772 (make_pass_delay_slots): ...new function.
21773 (pass_split_for_shorten_branches): Replace declaration with that of...
21774 (make_pass_split_for_shorten_branches): ...new function.
21775 (pass_split_before_regstack): Replace declaration with that of...
21776 (make_pass_split_before_regstack): ...new function.
21777 (pass_convert_to_eh_region_ranges): Replace declaration with that
21779 (make_pass_convert_to_eh_region_ranges): ...new function.
21780 (pass_shorten_branches): Replace declaration with that of...
21781 (make_pass_shorten_branches): ...new function.
21782 (pass_set_nothrow_function_flags): Replace declaration with that of...
21783 (make_pass_set_nothrow_function_flags): ...new function.
21784 (pass_dwarf2_frame): Replace declaration with that of...
21785 (make_pass_dwarf2_frame): ...new function.
21786 (pass_final): Replace declaration with that of...
21787 (make_pass_final): ...new function.
21788 (pass_rtl_seqabstr): Replace declaration with that of...
21789 (make_pass_rtl_seqabstr): ...new function.
21790 (pass_release_ssa_names): Replace declaration with that of...
21791 (make_pass_release_ssa_names): ...new function.
21792 (pass_early_inline): Replace declaration with that of...
21793 (make_pass_early_inline): ...new function.
21794 (pass_inline_parameters): Replace declaration with that of...
21795 (make_pass_inline_parameters): ...new function.
21796 (pass_update_address_taken): Replace declaration with that of...
21797 (make_pass_update_address_taken): ...new function.
21798 (pass_convert_switch): Replace declaration with that of...
21799 (make_pass_convert_switch): ...new function.
21800 * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
21801 to a subclass of simple_ipa_opt_pass along with...
21802 (pass_data_ipa_tree_profile): ...new pass_data instance and...
21803 (make_pass_ipa_tree_profile): ...new function.
21804 * tree-sra.c (pass_sra_early): Convert from a global struct to a
21805 subclass of gimple_opt_pass along with...
21806 (pass_data_sra_early): ...new pass_data instance and...
21807 (make_pass_sra_early): ...new function.
21808 (pass_sra): Convert from a global struct to a subclass of
21809 gimple_opt_pass along with...
21810 (pass_data_sra): ...new pass_data instance and...
21811 (make_pass_sra): ...new function.
21812 (pass_early_ipa_sra): Convert from a global struct to a subclass of
21813 gimple_opt_pass along with...
21814 (pass_data_early_ipa_sra): ...new pass_data instance and...
21815 (make_pass_early_ipa_sra): ...new function.
21816 * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
21817 subclass of gimple_opt_pass along with...
21818 (pass_data_ccp): ...new pass_data instance and...
21819 (make_pass_ccp): ...new function.
21820 (pass_fold_builtins): Convert from a global struct to a subclass of
21821 gimple_opt_pass along with...
21822 (pass_data_fold_builtins): ...new pass_data instance and...
21823 (make_pass_fold_builtins): ...new function.
21824 * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
21825 subclass of gimple_opt_pass along with...
21826 (pass_data_copy_prop): ...new pass_data instance and...
21827 (make_pass_copy_prop): ...new function.
21828 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
21829 global struct to a subclass of gimple_opt_pass along with...
21830 (pass_data_rename_ssa_copies): ...new pass_data instance and...
21831 (make_pass_rename_ssa_copies): ...new function.
21832 * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
21833 subclass of gimple_opt_pass along with...
21834 (pass_data_dce): ...new pass_data instance and...
21835 (make_pass_dce): ...new function.
21836 (pass_dce_loop): Convert from a global struct to a subclass of
21837 gimple_opt_pass along with...
21838 (pass_data_dce_loop): ...new pass_data instance and...
21839 (make_pass_dce_loop): ...new function.
21840 (pass_cd_dce): Convert from a global struct to a subclass of
21841 gimple_opt_pass along with...
21842 (pass_data_cd_dce): ...new pass_data instance and...
21843 (make_pass_cd_dce): ...new function.
21844 * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
21845 subclass of gimple_opt_pass along with...
21846 (pass_data_dominator): ...new pass_data instance and...
21847 (make_pass_dominator): ...new function.
21848 (pass_phi_only_cprop): Convert from a global struct to a subclass of
21849 gimple_opt_pass along with...
21850 (pass_data_phi_only_cprop): ...new pass_data instance and...
21851 (make_pass_phi_only_cprop): ...new function.
21852 * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
21853 subclass of gimple_opt_pass along with...
21854 (pass_data_dse): ...new pass_data instance and...
21855 (make_pass_dse): ...new function.
21856 * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
21857 a subclass of gimple_opt_pass along with...
21858 (pass_data_forwprop): ...new pass_data instance and...
21859 (make_pass_forwprop): ...new function.
21860 * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
21861 struct to a subclass of gimple_opt_pass along with...
21862 (pass_data_tree_ifcombine): ...new pass_data instance and...
21863 (make_pass_tree_ifcombine): ...new function.
21864 * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
21865 subclass of gimple_opt_pass along with...
21866 (pass_data_ch): ...new pass_data instance and...
21867 (make_pass_ch): ...new function.
21868 * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
21869 subclass of gimple_opt_pass along with...
21870 (pass_data_tree_loop): ...new pass_data instance and...
21871 (make_pass_tree_loop): ...new function.
21872 (pass_tree_loop_init): Convert from a global struct to a subclass of
21873 gimple_opt_pass along with...
21874 (pass_data_tree_loop_init): ...new pass_data instance and...
21875 (make_pass_tree_loop_init): ...new function.
21876 (pass_lim): Convert from a global struct to a subclass of
21877 gimple_opt_pass along with...
21878 (pass_data_lim): ...new pass_data instance and...
21879 (make_pass_lim): ...new function.
21880 (pass_tree_unswitch): Convert from a global struct to a subclass of
21881 gimple_opt_pass along with...
21882 (pass_data_tree_unswitch): ...new pass_data instance and...
21883 (make_pass_tree_unswitch): ...new function.
21884 (pass_predcom): Convert from a global struct to a subclass of
21885 gimple_opt_pass along with...
21886 (pass_data_predcom): ...new pass_data instance and...
21887 (make_pass_predcom): ...new function.
21888 (pass_vectorize): Convert from a global struct to a subclass of
21889 gimple_opt_pass along with...
21890 (pass_data_vectorize): ...new pass_data instance and...
21891 (make_pass_vectorize): ...new function.
21892 (pass_graphite): Convert from a global struct to a subclass of
21893 gimple_opt_pass along with...
21894 (pass_data_graphite): ...new pass_data instance and...
21895 (make_pass_graphite): ...new function.
21896 (pass_graphite_transforms): Convert from a global struct to a subclass
21897 of gimple_opt_pass along with...
21898 (pass_data_graphite_transforms): ...new pass_data instance and...
21899 (make_pass_graphite_transforms): ...new function.
21900 (pass_check_data_deps): Convert from a global struct to a subclass of
21901 gimple_opt_pass along with...
21902 (pass_data_check_data_deps): ...new pass_data instance and...
21903 (make_pass_check_data_deps): ...new function.
21904 (pass_iv_canon): Convert from a global struct to a subclass of
21905 gimple_opt_pass along with...
21906 (pass_data_iv_canon): ...new pass_data instance and...
21907 (make_pass_iv_canon): ...new function.
21908 (pass_scev_cprop): Convert from a global struct to a subclass of
21909 gimple_opt_pass along with...
21910 (pass_data_scev_cprop): ...new pass_data instance and...
21911 (make_pass_scev_cprop): ...new function.
21912 (pass_record_bounds): Convert from a global struct to a subclass of
21913 gimple_opt_pass along with...
21914 (pass_data_record_bounds): ...new pass_data instance and...
21915 (make_pass_record_bounds): ...new function.
21916 (pass_complete_unroll): Convert from a global struct to a subclass of
21917 gimple_opt_pass along with...
21918 (pass_data_complete_unroll): ...new pass_data instance and...
21919 (make_pass_complete_unroll): ...new function.
21920 (pass_complete_unrolli): Convert from a global struct to a subclass of
21921 gimple_opt_pass along with...
21922 (pass_data_complete_unrolli): ...new pass_data instance and...
21923 (make_pass_complete_unrolli): ...new function.
21924 (pass_parallelize_loops): Convert from a global struct to a subclass
21925 of gimple_opt_pass along with...
21926 (pass_data_parallelize_loops): ...new pass_data instance and...
21927 (make_pass_parallelize_loops): ...new function.
21928 (pass_loop_prefetch): Convert from a global struct to a subclass of
21929 gimple_opt_pass along with...
21930 (pass_data_loop_prefetch): ...new pass_data instance and...
21931 (make_pass_loop_prefetch): ...new function.
21932 (pass_iv_optimize): Convert from a global struct to a subclass of
21933 gimple_opt_pass along with...
21934 (pass_data_iv_optimize): ...new pass_data instance and...
21935 (make_pass_iv_optimize): ...new function.
21936 (pass_tree_loop_done): Convert from a global struct to a subclass of
21937 gimple_opt_pass along with...
21938 (pass_data_tree_loop_done): ...new pass_data instance and...
21939 (make_pass_tree_loop_done): ...new function.
21940 * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
21941 struct to a subclass of gimple_opt_pass along with...
21942 (pass_data_cse_reciprocals): ...new pass_data instance and...
21943 (make_pass_cse_reciprocals): ...new function.
21944 (pass_cse_sincos): Convert from a global struct to a subclass of
21945 gimple_opt_pass along with...
21946 (pass_data_cse_sincos): ...new pass_data instance and...
21947 (make_pass_cse_sincos): ...new function.
21948 (pass_optimize_bswap): Convert from a global struct to a subclass of
21949 gimple_opt_pass along with...
21950 (pass_data_optimize_bswap): ...new pass_data instance and...
21951 (make_pass_optimize_bswap): ...new function.
21952 (pass_optimize_widening_mul): Convert from a global struct to a
21953 subclass of gimple_opt_pass along with...
21954 (pass_data_optimize_widening_mul): ...new pass_data instance and...
21955 (make_pass_optimize_widening_mul): ...new function.
21956 * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
21957 subclass of gimple_opt_pass along with...
21958 (pass_data_phiopt): ...new pass_data instance and...
21959 (make_pass_phiopt): ...new function.
21960 (pass_cselim): Convert from a global struct to a subclass of
21961 gimple_opt_pass along with...
21962 (pass_data_cselim): ...new pass_data instance and...
21963 (make_pass_cselim): ...new function.
21964 * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
21965 subclass of gimple_opt_pass along with...
21966 (pass_data_phiprop): ...new pass_data instance and...
21967 (make_pass_phiprop): ...new function.
21968 * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
21969 subclass of gimple_opt_pass along with...
21970 (pass_data_pre): ...new pass_data instance and...
21971 (make_pass_pre): ...new function.
21972 (pass_fre): Convert from a global struct to a subclass of
21973 gimple_opt_pass along with...
21974 (pass_data_fre): ...new pass_data instance and...
21975 (make_pass_fre): ...new function.
21976 * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
21977 subclass of gimple_opt_pass along with...
21978 (pass_data_reassoc): ...new pass_data instance and...
21979 (make_pass_reassoc): ...new function.
21980 * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
21981 subclass of gimple_opt_pass along with...
21982 (pass_data_sink_code): ...new pass_data instance and...
21983 (make_pass_sink_code): ...new function.
21984 * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
21985 subclass of gimple_opt_pass along with...
21986 (pass_data_strlen): ...new pass_data instance and...
21987 (make_pass_strlen): ...new function.
21988 * tree-ssa-structalias.c (pass_build_alias): Convert from a global
21989 struct to a subclass of gimple_opt_pass along with...
21990 (pass_data_build_alias): ...new pass_data instance and...
21991 (make_pass_build_alias): ...new function.
21992 (pass_build_ealias): Convert from a global struct to a subclass of
21993 gimple_opt_pass along with...
21994 (pass_data_build_ealias): ...new pass_data instance and...
21995 (make_pass_build_ealias): ...new function.
21996 (pass_ipa_pta): Convert from a global struct to a subclass of
21997 simple_ipa_opt_pass along with...
21998 (pass_data_ipa_pta): ...new pass_data instance and...
21999 (make_pass_ipa_pta): ...new function.
22000 * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
22001 subclass of gimple_opt_pass along with...
22002 (pass_data_uncprop): ...new pass_data instance and...
22003 (make_pass_uncprop): ...new function.
22004 * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
22005 global struct to a subclass of gimple_opt_pass along with...
22006 (pass_data_late_warn_uninitialized): ...new pass_data instance and...
22007 (make_pass_late_warn_uninitialized): ...new function.
22008 * tree-ssa.c (pass_init_datastructures): Convert from a global struct
22009 to a subclass of gimple_opt_pass along with...
22010 (pass_data_init_datastructures): ...new pass_data instance and...
22011 (make_pass_init_datastructures): ...new function.
22012 (pass_early_warn_uninitialized): Convert from a global struct to a
22013 subclass of gimple_opt_pass along with...
22014 (pass_data_early_warn_uninitialized): ...new pass_data instance and...
22015 (make_pass_early_warn_uninitialized): ...new function.
22016 (pass_update_address_taken): Convert from a global struct to a
22017 subclass of gimple_opt_pass along with...
22018 (pass_data_update_address_taken): ...new pass_data instance and...
22019 (make_pass_update_address_taken): ...new function.
22020 * tree-ssanames.c (pass_release_ssa_names): Convert from a global
22021 struct to a subclass of gimple_opt_pass along with...
22022 (pass_data_release_ssa_names): ...new pass_data instance and...
22023 (make_pass_release_ssa_names): ...new function.
22024 * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
22025 subclass of gimple_opt_pass along with...
22026 (pass_data_stdarg): ...new pass_data instance and...
22027 (make_pass_stdarg): ...new function.
22028 * tree-switch-conversion.c (pass_convert_switch): Convert from a
22029 global struct to a subclass of gimple_opt_pass along with...
22030 (pass_data_convert_switch): ...new pass_data instance and...
22031 (make_pass_convert_switch): ...new function.
22032 * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
22033 to a subclass of gimple_opt_pass along with...
22034 (pass_data_tail_recursion): ...new pass_data instance and...
22035 (make_pass_tail_recursion): ...new function.
22036 (pass_tail_calls): Convert from a global struct to a subclass of
22037 gimple_opt_pass along with...
22038 (pass_data_tail_calls): ...new pass_data instance and...
22039 (make_pass_tail_calls): ...new function.
22040 * tree-vect-generic.c (pass_lower_vector): Convert from a global
22041 struct to a subclass of gimple_opt_pass along with...
22042 (pass_data_lower_vector): ...new pass_data instance and...
22043 (make_pass_lower_vector): ...new function.
22044 (pass_lower_vector_ssa): Convert from a global struct to a subclass of
22045 gimple_opt_pass along with...
22046 (pass_data_lower_vector_ssa): ...new pass_data instance and...
22047 (make_pass_lower_vector_ssa): ...new function.
22048 * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
22049 to a subclass of gimple_opt_pass along with...
22050 (pass_data_slp_vectorize): ...new pass_data instance and...
22051 (make_pass_slp_vectorize): ...new function.
22052 (pass_ipa_increase_alignment): Convert from a global struct to a
22053 subclass of simple_ipa_opt_pass along with...
22054 (pass_data_ipa_increase_alignment): ...new pass_data instance and...
22055 (make_pass_ipa_increase_alignment): ...new function.
22056 * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
22057 gimple_opt_pass along with...
22058 (pass_data_vrp): ...new pass_data instance and...
22059 (make_pass_vrp): ...new function.
22060 * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
22061 subclass of simple_ipa_opt_pass along with...
22062 (pass_data_ipa_free_lang_data): ...new pass_data instance and...
22063 (make_pass_ipa_free_lang_data): ...new function.
22064 * tsan.c (pass_tsan): Convert from a global struct to a subclass of
22065 gimple_opt_pass along with...
22066 (pass_data_tsan): ...new pass_data instance and...
22067 (make_pass_tsan): ...new function.
22068 (pass_tsan_O0): Convert from a global struct to a subclass of
22069 gimple_opt_pass along with...
22070 (pass_data_tsan_O0): ...new pass_data instance and...
22071 (make_pass_tsan_O0): ...new function.
22072 * var-tracking.c (pass_variable_tracking): Convert from a global
22073 struct to a subclass of rtl_opt_pass along with...
22074 (pass_data_variable_tracking): ...new pass_data instance and...
22075 (make_pass_variable_tracking): ...new function.
22076 * web.c (pass_web): Convert from a global struct to a subclass of
22077 rtl_opt_pass along with...
22078 (pass_data_web): ...new pass_data instance and...
22079 (make_pass_web): ...new function.
22080 * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
22081 declaration with that of...
22082 (make_pass_mode_switch_use): ...new function.
22083 (pass_resolve_sw_modes): Replace declaration with that of...
22084 (make_pass_resolve_sw_modes): ...new function.
22085 * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
22086 from a global struct to a subclass of rtl_opt_pass along with...
22087 (pass_data_mode_switch_use): ...new pass_data instance and...
22088 (make_pass_mode_switch_use): ...new function.
22089 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
22090 from a global struct to a subclass of rtl_opt_pass along with...
22091 (pass_data_resolve_sw_modes): ...new pass_data instance and...
22092 (make_pass_resolve_sw_modes): ...new function.
22093 * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
22094 struct to a subclass of rtl_opt_pass along with...
22095 (pass_data_insert_vzeroupper): ...new pass_data instance and...
22096 (make_pass_insert_vzeroupper): ...new function.
22097 * config/sparc/sparc.c (pass_work_around_errata): Convert from a
22098 global struct to a subclass of rtl_opt_pass along with...
22099 (pass_data_work_around_errata): ...new pass_data instance and...
22100 (make_pass_work_around_errata): ...new function.
22101 * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
22102 struct to a subclass of rtl_opt_pass along with...
22103 (pass_data_mips_machine_reorg2): ...new pass_data instance and...
22104 (make_pass_mips_machine_reorg2): ...new function.
22106 2013-08-05 David Malcolm <dmalcolm@redhat.com>
22108 * passes.c (pass_manager::operator new): New.
22110 2013-08-05 David Malcolm <dmalcolm@redhat.com>
22112 Handwritten part of conversion of passes to C++ classes.
22114 * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
22115 (toplev.o): Add dep on PASS_MANAGER_H.
22116 * cgraphunit.c (cgraph_process_new_functions): Rework invocation
22117 of early local pases to reflect this moving from a global to a
22118 member of gcc::pass_manager.
22119 (cgraph_add_new_function): Likewise.
22120 * lto-cgraph.c (lto_output_node): Update for conversion of
22121 struct ipa_opt_pass_d to a C++ subclass of opt_pass.
22122 * passes.c (opt_pass::clone): New.
22123 (opt_pass::gate): New.
22124 (opt_pass::execute): New.
22125 (opt_pass::opt_pass): New.
22126 (pass_manager::execute_early_local_passes): New.
22127 (pass_manager::execute_pass_mode_switching): new.
22128 (finish_optimization_passes): Convert to...
22129 (pass_manager::finish_optimization_passes): ...this.
22130 (finish_optimization_passes): Update for conversion of passes to
22132 (register_dump_files_1): Use has_gate since we cannot portably
22133 check a vtable entry against NULL.
22134 (dump_one_pass): Likewise.
22135 (ipa_write_summaries_2): Likewise.
22136 (ipa_write_optimization_summaries_1): Likewise.
22137 (ipa_read_summaries_1): Likewise.
22138 (ipa_read_optimization_summaries_1): Likewise.
22139 (execute_ipa_stmt_fixups): Likewise.
22140 (pass_manager::pass_manager): Rewrite pass-creation, invoking
22141 pass-creation functions rather than wiring up globals, and
22142 storing the results in fields of pass_manager generated using
22143 pass-instances.def.
22144 (pass_manager::dump_profile_report): Update for conversion of
22145 passes to C++ classes.
22146 (pass_manager::execute_ipa_summary_passes): Likewise.
22147 (execute_one_ipa_transform_pass): Likewise.
22148 (execute_one_pass): Use has_gate and has_execute since we cannot
22149 portably check a vtable entry against NULL.
22150 * pass_manager.h (pass_manager::finish_optimization_passes): New.
22151 (pass_manager): Use pass-instances.def to add fields for the
22152 various pass instances.
22153 * toplev.c (finalize): Update for move of
22154 finish_optimization_passes to a method of gcc::pass_manager.
22155 * toplev.h (finish_optimization_passes): Move to method of class
22157 * tree-pass.h (struct pass_data): New.
22158 (opt_pass): Convert to C++ class, make it a subclass of pass_data.
22159 (opt_pass::gate): Convert to virtual function.
22160 (opt_pass::~opt_pass): New.
22161 (opt_pass::clone): New.
22162 (opt_pass::execute): Convert to virtual function.
22163 (opt_pass::opt_pass): New.
22164 (opt_pass::ctxt_): new.
22165 (gimple_opt_pass): Convert to subclass of opt_pass.
22166 (gimple_opt_pass::gimple_opt_pass): New.
22167 (rtl_opt_pass): Convert to subclass of opt_pass.
22168 (rtl_opt_pass::rtl_opt_pass): New.
22169 (ipa_opt_pass_d): Convert to subclass of opt_pass.
22170 (ipa_opt_pass_d::ipa_opt_pass_d): New.
22171 (simple_ipa_opt_pass): Convert to subclass of opt_pass.
22172 (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
22173 * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
22174 invocation of pass_mode_switching to reflect this moving from a
22175 global to a member of gcc::pass_manager.
22176 (ix86_option_override): Rework how pass_insert_vzeroupper is
22177 added to the pass_manager to reflect autogenerated changes.
22178 * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
22180 2013-08-05 Richard Earnshaw <rearnsha@arm.com>
22182 PR rtl-optimization/57708
22183 * recog.c (peep2_find_free_register): Validate all regs in a
22186 2013-08-05 Jan Hubicka <jh@suse.cz>
22189 * cgraph.c (verify_cgraph_node): Accept local flags from other
22191 * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
22192 (function_and_variable_visibility): Likewise.
22193 * trans-mem.c (ipa_tm_create_version): TM versions are not local.
22195 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
22197 * graph.c (init_graph_slim_pretty_print): Remove.
22198 (print_graph_cfg): Do not call it. Use local pretty printer.
22199 (start_graph_dump): Likewise.
22201 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
22203 * gimple-pretty-print.c (buffer): Remove.
22204 (initialized): Likewise.
22205 (maybe_init_pretty_print): Likewise.
22206 (print_gimple_stmt): Do not call it. Use non-static local
22207 pretty_printer variable.
22208 (print_gimple_expr): Likewise.
22209 (print_gimple_seq): Likewise.
22210 (gimple_dump_bb): Likewise.
22212 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
22214 * asan.c (asan_pp): Remove.
22215 (asan_pp_initialized): Likewise.
22216 (asan_pp_initialize): Likewise.
22217 (asan_pp_string): Take a pretty_printer parameter. Adjust callers.
22218 (asan_emit_stack_protection): Tidy. Use local pretty printer.
22219 (asan_add_global): Likewise.
22221 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
22223 * pretty-print.h (pp_base): Remove. Adjust dependent macros.
22224 * diagnostic.h (diagnostic_flush_buffer): Adjust.
22225 * pretty-print.c (pp_formatted_text_data): Likewise.
22226 (pp_indent): Rename from pp_base_indent.
22227 (pp_format): Rename from pp_base_format.
22228 (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
22229 (pp_format_verbatim): Rename from pp_base_format_verbatim.
22230 (pp_flush): Rename from pp_base_flush.
22231 (pp_set_line_maximum_length): Rename from
22232 pp_base_set_line_maximum_length.
22233 (pp_clear_output_area): Rename from pp_base_clear_output_area.
22234 (pp_set_prefix): Rename from pp_base_set_prefix.
22235 (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
22236 (pp_emit_prefix): Rename from pp_base_emit_prefix.
22237 (pp_append_text): Rename from pp_base_append_text.
22238 (pp_formatted_text): Rename from pp_base_formatted_text.
22239 (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
22240 (pp_remaining_character_count_for_line): Rename from
22241 pp_base_remaining_character_count_for_line.
22242 (pp_newline): Rename from pp_base_newline.
22243 (pp_character): Rename from pp_base_character.
22244 (pp_string): Rename from pp_base_string.
22245 (pp_maybe_space): Rename from pp_base_maybe_space.
22246 * asan.c (asan_pp_string): Adjust.
22247 (asan_emit_stack_protection): Likewise.
22248 (asan_add_global): Likewise.
22249 * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
22250 * tree-mudflap.c (mf_varname_tree): Likewise.
22251 * tree-pretty-print.c (pp_tree_identifier): Rename from
22252 pp_base_tree_identifier.
22253 * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
22254 Declare as function.
22256 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
22258 * pretty-print.h (pp_bar_bar): New.
22259 (pp_ampersand_ampersand): Likewise.
22260 (pp_less_equal): Likewise.
22261 (pp_greater_equal): Likewise.
22262 * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
22263 printer functions instead of pp_string or operators and punctuators.
22264 (dump_gimple_call): Likewise.
22265 (dump_gimple_omp_for): Likewise.
22266 (dump_gimple_transaction): Likewise.
22267 (dump_gimple_phi): Likewise.
22268 (pp_gimple_stmt_1): Likewise.
22269 * sched-vis.c (print_insn): Likewise.
22270 * tree-mudflap.c (mf_varname_tree): Likewise.
22271 * tree-pretty-print.c (dump_block_node): Likewise.
22272 (dump_generic_node): Likewise.
22274 2013-08-02 Jan Hubicka <jh@suse.cz>
22276 * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
22278 * lto-streamer-out.c (tree_is_indexable): Results decls and
22279 parm decls are not indexable.
22280 (DFS_write_tree_body): Do not follow args and results.
22281 (hash_tree): Likewise.
22282 (output_functions): Rearrange so struct function is needed
22283 only when real body is output; be able to also ouptut abstract
22284 functions; output DECL_ARGUMENTS and DECL_RESULT.
22285 (lto_output): When not in WPA, ale store abstract functions.
22286 (write_symbol): Do not care about RESULT_DECL.
22287 (output_symbol_p): Handle correctly sbtract decls.
22288 * lto-streamer-in.c (input_function): Rearrange so struct
22289 function can be NULL at entry; allow streaming of
22290 functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
22291 * ipa.c (symtab_remove_unreachable_nodes): Silence confused
22292 sanity check during LTO.
22293 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
22294 RESULT_DECl and DECL_ARGUMENTS.
22295 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
22298 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
22300 * pretty-print.h (pp_underscore): New.
22302 * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
22303 printer functions instead of pp_character.
22304 (dump_binary_rhs): Likewise.
22305 (dump_ternary_rhs): Likewise.
22306 (dump_gimple_call_args): Likewise.
22307 (pp_points_to_solution): Likewise.
22308 (dump_gimple_call): Likewise.
22309 (dump_gimple_switch): Likewise.
22310 (dump_gimple_cond): Likewise.
22311 (dump_gimple_bind): Likewise.
22312 (dump_gimple_try): Likewise.
22313 (dump_gimple_omp_for): Likewise.
22314 (dump_gimple_omp_continue): Likewise.
22315 (dump_gimple_omp_single): Likewise.
22316 (dump_gimple_omp_sections): Likewise.
22317 (dump_gimple_omp_block): Likewise.
22318 (dump_gimple_omp_critical): Likewise.
22319 (dump_gimple_transaction): Likewise.
22320 (dump_gimple_asm): Likewise.
22321 (dump_gimple_phi): Likewise.
22322 (dump_gimple_omp_parallel): Likewise.
22323 (dump_gimple_omp_task): Likewise.
22324 (dump_gimple_omp_atomic_load): Likewise.
22325 (dump_gimple_omp_atomic_store): Likewise.
22326 (dump_gimple_mem_ops): Likewise.
22327 (pp_gimple_stmt_1): Likewise.
22328 (pp_cfg_jump): Likewise.
22329 (dump_implicit_edges): Likewise.
22330 (gimple_dump_bb_for_graph): Likewise.
22331 * graph.c (draw_cfg_node): Likewise.
22332 * langhooks.c (lhd_print_error_function): Likewise.
22333 * sched-vis.c (print_exp): Likewise.
22334 (print_value): Likewise.
22335 (print_pattern): Likewise.
22336 (print_insn): Likewise.
22337 (rtl_dump_bb_for_graph): Likewise.
22338 * tree-pretty-print.c (dump_function_declaration): Likewise.
22339 (dump_array_domain): Likewise.
22340 (dump_omp_clause): Likewise.
22341 (dump_location): Likewise.
22342 (dump_generic_node): Likewise.
22343 (print_struct_decl): Likewise.
22344 * diagnostic.c (diagnostic_show_locus): Use pp_space.
22346 2013-08-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
22348 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
22349 candidate table when replacing a candidate statement.
22350 (replace_rhs_if_not_dup): Likewise.
22351 (replace_one_candidate): Likewise.
22353 2013-08-02 Jan Hubicka <jh@suse.cz>
22354 Martin Liska <marxin.liska@gmail.com>
22356 * cgraphunit.c (add_new_function): Fix logic when adding from
22358 (assemble_thunk): Rename to ...
22359 (expand_thunk); .. this one; export; get it working with
22360 general functions; make produced gimple valid.
22361 * cgraph.h (expand_thunk): Declare.
22363 2013-08-02 Jan Hubicka <jh@suse.cz>
22365 * ipa-cp.c (gather_context_independent_values): Use
22366 ipa_get_param_move_cost.
22367 (get_replacement_map): Remove PARAM; move parameter folding
22369 (create_specialized_node): Update.
22370 * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
22371 assert that we have gimple body; update move_cost.
22372 (count_formal_params): Assert that we have gimple body.
22373 (ipa_dump_param): New function.
22374 (ipa_alloc_node_params): Break out from ...
22375 (ipa_initialize_node_params): ... here.
22376 (ipa_get_vector_of_formal_parms): ICE when used in WPA.
22377 (ipa_write_node_info): Stream move costs.
22378 (ipa_read_node_info): Read move costs.
22379 (ipa_update_after_lto_read): Do not recompute node params.
22380 * ipa-prop.h (ipa_param_descriptor): Add move_cost.
22381 (ipa_get_param): Check we are not in WPA.
22382 (ipa_get_param_move_cost): New.
22383 * tree-inline.c (tree_function_versioning): Fold replacement as needed.
22384 * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
22385 parm numbers to be present.
22387 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
22389 PR rtl-optimization/58048
22390 * lra-constraints.c (process_alt_operands): Don't check asm
22391 operand on register.
22393 2013-08-02 Eric Botcazou <ebotcazou@adacore.com>
22395 * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
22396 the implied StoreLoad barrier for atomic operations if before.
22398 2013-08-02 Jan Hubicka <jh@suse.cz>
22399 Martin Liska <marxin.liska@gmail.com>
22401 * cgraph.c (cgraph_function_body_availability): Do not check
22403 * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
22404 symtab_node_availability): Declare.
22405 * ipa.c (can_replace_by_local_alias): New.
22406 (function_and_variable_visibility): Use it.
22407 * symtab.c (symtab_for_node_and_aliases,
22408 symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
22410 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
22412 PR rtl-optimization/57963
22413 * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
22414 (lra_constraints): Use them.
22416 2013-08-02 Sofiane Naci <sofiane.naci@arm.com>
22418 * config/arm/types.md (define_attr "type"): Add "load_acq"
22420 * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
22422 (cortex_a53_store1): Likewise.
22424 2013-08-01 Jan Hubicka <jh@suse.cz>
22426 * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
22427 partitions are not needed.
22429 2013-08-01 Uros Bizjak <ubizjak@gmail.com>
22431 * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
22432 * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
22433 MAYBE_NON_Q_CLASS_P where appropriate.
22435 2013-08-01 Jan Hubicka <jh@suse.cz>
22437 * cgraph.h (release_function_body): Declare.
22438 * tree.c (free_lang_data_in_decl): Free, parameters and return values
22439 of unused delcarations.
22441 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22443 * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
22444 RTL form when subtracting a constant.
22446 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22448 * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
22449 Generate canonical plus rtx with negated immediate instead of minus
22451 * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
22453 2013-08-01 Jan Hubicka <jh@suse.cz>
22455 * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
22456 (cgraph_release_function_body): Likewise.
22457 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
22458 * cgraph.h (cgrpah_node): Rename abstract_and_needed
22459 to used_as_abstract_origin.
22460 * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
22461 symbols used as abstract origins.
22462 * cgraphunit.c (analyze_functions): Update.
22463 * ipa.c (symtab_remove_unreachable_nodes): Recompute
22464 used_as_abstract_origin.
22465 * tree-inline.c (tree_function_versioning): Update
22466 used_as_abstract_origin; be ready for DECL_RESULT and
22467 DECL_ARGUMENTS to be NULL.
22469 * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
22470 for abstract functions.
22471 * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
22474 2013-08-01 Jan Hubicka <jh@suse.cz>
22476 * profile.c (compute_value_histograms): Fix thinko.
22478 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
22480 * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs. Add
22481 aarch-common-protos.h to extra_headers.
22482 (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
22483 * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
22484 * config/aarch64/t-aarch64 (aarch-common.o): Define.
22486 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
22488 * config/aarch64/aarch64.md (define_attr "type"): Delete.
22489 Include "../arm/types.md". Define "type" attribute for all patterns.
22490 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
22493 2013-07-31 Michael Meissner <meissner@linux.vnet.ibm.com>
22495 * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
22496 to support power8 load fusion.
22497 (fusion_gpr_mem_load): Likewise.
22499 * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
22501 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
22502 declarations for power8 load fusion.
22503 (emit_fusion_gpr_load): Likewise.
22505 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
22506 tuning for power8, turn on fusion mode by default. Turn on sign
22507 extending fusion mode if normal fusion mode is on, and we are at
22509 (fusion_gpr_load_p): New function, return true if we can fuse an
22510 addis instruction with a dependent load to a GPR.
22511 (emit_fusion_gpr_load): Emit the instructions for power8 load
22514 * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
22515 (VSX load fusion peepholes): New peepholes to fuse together an
22516 addi instruction with a VSX load instruction.
22518 * config/rs6000/rs6000.md (GPR load fusion peepholes): New
22519 peepholes to fuse an addis instruction with a load to a GPR base
22520 register. If we are supporting sign extending fusions, convert
22521 sign extending loads to zero extending loads and add an explicit
22524 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
22526 * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs. Add
22527 aarch-common-protos.h to extra_headers.
22528 (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
22529 * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
22530 (arm_early_store_addr_dep): Likewise.
22531 (arm_no_early_alu_shift_dep): Likewise.
22532 (arm_no_early_alu_shift_value_dep): Likewise.
22533 (arm_no_early_mul_dep): Likewise.
22534 (arm_no_early_store_addr_dep): Likewise.
22535 (arm_mac_accumulator_is_mul_result): Likewise.
22536 (arm_mac_accumulator_is_result): Likewise.
22537 * config/arm/aarch-common.c: ... here. New file.
22538 * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
22540 (arm_early_store_addr_dep): Likewise.
22541 (arm_no_early_alu_shift_dep): Likewise.
22542 (arm_no_early_alu_shift_value_dep): Likewise.
22543 (arm_no_early_mul_dep): Likewise.
22544 (arm_no_early_store_addr_dep): Likewise.
22545 (arm_mac_accumulator_is_mul_result): Likewise.
22546 (arm_mac_accumulator_is_result): Likewise.
22547 * config/arm/aarch-common-protos.h: ... here. New file.
22548 * config/arm/t-arm (aarch-common.o): Define.
22550 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
22552 * config/arm/arm.md: Include new file "types.md".
22553 (define_attr "type"): Move from here to ...
22554 (define_attr "mul32"): Likewise.
22555 (define_attr "mul64"): Likewise.
22556 * config/arm/types.md: ... here. New file.
22558 2013-07-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
22560 * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
22561 * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
22563 2013-07-31 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22565 * gen-pass-instances.awk: Fix offset of substr().
22567 2013-07-31 David Malcolm <dmalcolm@redhat.com>
22569 * Makefile.in (pass-instances.def): New.
22570 (passes.o): Replace dependency on passes.def with one on
22573 * gen-pass-instances.awk: New.
22575 * passes.c (pass_manager::pass_manager): Use pass-instances.def
22576 rather than passes.def, updating local definition of NEXT_PASS
22577 macro to add an extra NUM parameter (currently unused).
22579 2013-07-30 David Malcolm <dmalcolm@redhat.com>
22581 * Makefile.in (PASS_MANAGER_H): New.
22582 (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
22583 (passes.o): Likewise.
22584 (statistics.o): Likewise.
22585 (cgraphunit.o): Likewise.
22586 (context.o): Depend on PASS_MANAGER_H.
22588 * pass_manager.h: New.
22590 * cgraphunit.c (cgraph_add_new_function): Update for moves
22591 of globals to fields of pass_manager.
22592 (analyze_function): Likewise.
22593 (expand_function): Likewise.
22594 (ipa_passes): Likewise.
22595 (compile): Likewise.
22597 * context.c (context::context): New.
22598 * context.h (context::context): New.
22599 (context::get_passes): New.
22600 (context::passes_): New.
22602 * lto-cgraph.c (input_node): Update for moves of globals to
22603 fields of pass_manager.
22605 * passes.c (all_passes): Remove, in favor of a field of the
22606 same name within the new class pass_manager.
22607 (all_small_ipa_passes): Likewise.
22608 (all_lowering_passes): Likewise.
22609 (all_regular_ipa_passes): Likewise.
22610 (all_late_ipa_passes): Likewise.
22611 (all_lto_gen_passes): Likewise.
22612 (passes_by_id): Likewise.
22613 (passes_by_id_size): Likewise.
22614 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
22615 the new class pass_manager.
22616 (set_pass_for_id): Convert to...
22617 (pass_manager::set_pass_for_id): ...method.
22618 (get_pass_for_id): Convert to...
22619 (pass_manager::get_pass_for_id): ...method.
22620 (register_one_dump_file): Move body of implementation into...
22621 (pass_manager::register_one_dump_file): ...here.
22622 (register_dump_files_1): Convert to...
22623 (pass_manager::register_dump_files_1): ...method.
22624 (register_dump_files): Convert to...
22625 (pass_manager::register_dump_files): ...method.
22626 (create_pass_tab): Update for moves of globals to fields of
22628 (dump_passes): Move body of implementation into...
22629 (pass_manager::dump_passes): ...here.
22630 (register_pass): Move body of implementation into...
22631 (pass_manager::register_pass): ...here.
22632 (init_optimization_passes): Convert into...
22633 (pass_manager::pass_manager): ...constructor for new
22634 pass_manager class, and initialize the pass_lists array.
22635 (check_profile_consistency): Update for moves of globals to
22636 fields of pass_manager.
22637 (dump_profile_report): Move body of implementation into...
22638 (pass_manager::dump_profile_report): ...here.
22639 (ipa_write_summaries_1): Update for moves of pass lists from
22640 being globals to fields of pass_manager.
22641 (ipa_write_optimization_summaries): Likewise.
22642 (ipa_read_summaries): Likewise.
22643 (ipa_read_optimization_summaries): Likewise.
22644 (execute_all_ipa_stmt_fixups): Likewise.
22646 * statistics.c (statistics_fini): Update for moves of globals to
22647 fields of pass_manager.
22649 * toplev.c (general_init): Replace call to
22650 init_optimization_passes with construction of the pass_manager
22653 * tree-pass.h (all_passes): Remove, in favor of a field of the
22654 same name within the new class pass_manager.
22655 (all_small_ipa_passes): Likewise.
22656 (all_lowering_passes): Likewise.
22657 (all_regular_ipa_passes): Likewise.
22658 (all_lto_gen_passes): Likewise.
22659 (all_late_ipa_passes): Likewise.
22660 (passes_by_id): Likewise.
22661 (passes_by_id_size): Likewise.
22662 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
22663 the new class pass_manager.
22664 (get_pass_for_id): Remove.
22666 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
22668 * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
22671 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
22673 * arm.md (mulhi3): New expand pattern.
22675 2013-07-30 Jan Hubicka <jh@suse.cz>
22676 Martin Liska <marxin.liska@gmail.com>
22678 * profile.c (compute_value_histograms): Do not ICE when
22679 there is mismatch only on some counters.
22681 2013-07-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22683 PR rtl-optimization/57637
22684 * function.c (move_insn_for_shrink_wrap): Also check the
22685 GEN set of the LIVE problem for the liveness analysis
22686 if it exists, otherwise give up.
22688 2013-07-29 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
22690 PR tree-optimization/57993
22691 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
22692 replaced statement in the candidate table.
22693 (phi_add_costs): Return infinite cost when the hidden basis does
22694 not dominate all phis on which the candidate is dependent.
22695 (replace_one_candidate): Record replaced statement in the
22698 2013-07-29 Joern Rennecke <joern.rennecke@embecosm.com>
22700 * config/epiphany/epiphany.md (*isub_i+2): New peephole.
22701 (ashlv2si3): New expander.
22702 (*ashlv2si3_i): New define_insn_and_split.
22703 * predicates.md (float_operation): Allow patterns with three
22704 basic sub-patterns.
22706 PR rtl-optimization/58021
22707 * mode-switching.c (create_pre_exit): Always split off preceding
22708 insns if we are not at the basic block head.
22710 2013-07-29 Maciej W. Rozycki <macro@codesourcery.com>
22712 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
22713 (UCLIBC_DYNAMIC_LINKER): New macro.
22714 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
22716 (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
22717 (UCLIBC_DYNAMIC_LINKER32): Undefine macro first. Handle
22719 (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
22720 (UCLIBC_DYNAMIC_LINKERN32): Likewise.
22721 * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
22722 for SF and DF modes. Use ieee_quad_format for TF mode.
22723 * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
22724 * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
22725 (mips_option_override): Handle `-mnan=legacy'.
22726 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
22727 `-mabs=2008' and `-mnan=2008'.
22728 (OPTION_DEFAULT_SPECS): Add "nan" default.
22729 (ASM_SPEC): Handle `-mnan='.
22730 [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
22731 * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
22732 comment accordingly.
22733 (neg<mode>2): Likewise.
22734 * config/mips/mips.opt (mabs, mnan): New options.
22735 * doc/install.texi (Configuration): Document `--with-nan=' option.
22736 * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
22738 (MIPS Options): Document them.
22739 * config.gcc <mips*-*-*>: Handle `--with-nan='.
22740 * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
22741 * configure: Regenerate.
22742 * config.in: Regenerate.
22744 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
22746 * config/i386/i386.md (float post-reload splitters): Do not check
22747 for subregs of SSE registers.
22749 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
22750 H.J. Lu <hongjiu.lu@intel.com>
22754 * config/i386/i386.md (post-reload splitter
22755 to avoid partial SSE reg dependency stalls): New pattern.
22757 2013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
22759 * config/s390/s390.md ("movcc"): Swap load and store instructions.
22761 2013-07-27 Joern Rennecke <joern.rennecke@embecosm.com>
22763 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
22764 Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
22766 2013-07-26 Cary Coutant <ccoutant@google.com>
22768 * dwarf2out.c (die_checksum_ordered): Don't include template
22769 instantiations in signature.
22770 (is_template_parameter): New function.
22771 (is_template_instantiation): New function.
22772 (generate_skeleton_bottom_up): Don't include template instantiations
22774 (generate_skeleton): Likewise.
22775 (break_out_comdat_types): Move recursive call to break out nested
22777 (prune_unused_types_mark_generic_parms_dies): Call
22778 is_template_parameter.
22780 2013-07-26 Ian Bolton <ian.bolton@arm.com>
22782 * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
22783 uses vector registers.
22784 * config/aarch64/iterators.md: Add attributes rtn and vas.
22786 2013-07-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22787 Richard Earnshaw <richard.earnshaw@arm.com>
22789 * combine.c (simplify_comparison): Re-canonicalize operands
22791 * config/arm/arm.md (movcond_addsi): New splitter.
22793 2013-07-25 Sterling Augustine <saugustine@google.com>
22795 * dwarf2out.c (size_of_pubnames): Move code to...
22796 (include_pubname_in_output): ...here. New.
22797 (want_pubnames): Rearrange.
22798 (output_pubnames): Call include_pubname_in_output. Move assertion.
22800 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
22802 * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
22804 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
22807 * doc/extend.texi: Remove obsolete builtins. Fix
22808 typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
22810 2013-07-25 Jan Hubicka <jh@suse.cz>
22812 * cgraph.c (release_function_body): Break out from ...
22813 (cgraph_release_function_body): ... this one; also release DECL_RESULT
22814 and DECL_ARGUMENTS.
22815 * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
22816 old_tree in the map.
22817 (create_specialized_node): Update.
22818 * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
22820 * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
22821 DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
22822 * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
22823 * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
22826 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22828 * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
22829 addsi3_carryin_alt2_<optab>): Correct output template.
22831 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22833 * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
22834 Adjust for arm_restrict_it.
22835 Remove trailing whitespace.
22837 2013-07-25  Mark Kettenis  <kettenis@openbsd.org>
22839 * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
22840 libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
22842 * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
22844 2013-07-25 Vladimir Makarov <vmakarov@redhat.com>
22846 PR rtl-optimization/57960
22847 * lra-constraints.c (process_alt_operands): Use the right mode
22848 when checking strict_low.
22850 2013-07-25 Jan Hubicka <jh@suse.cz>
22852 * lto-symtab.c (lto_cgraph_replace_node): Release function body.
22853 * cgraph.c (cgraph_remove_node): Do not release function body
22854 when in cgraph streaming.
22855 * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
22856 in other partitions are not considered reachable; fix handling of
22859 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22861 * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
22863 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22868 * config/arm/arm.md ("*sibcall_insn): Replace use of
22869 Ss with US. Adjust output for v5 and v4t.
22870 (*sibcall_value_insn): Likewise and loosen predicate on operand0.
22872 * config/arm/constraints.md ("Ss"): Rename to US.
22874 2013-07-25 Terry Guo <terry.guo@arm.com>
22876 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
22877 shift_add/shift_sub0/shift_sub1 RTXs.
22879 2013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
22880 Anton Blanchard <anton@au1.ibm.com>
22882 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
22883 (altivec_vpks<VI_char>ss): Likewise.
22884 (altivec_vpks<VI_char>us): Likewise.
22885 (altivec_vpku<VI_char>us): Likewise.
22886 (altivec_vpku<VI_char>um): Likewise.
22888 2013-07-24 David Malcolm <dmalcolm@redhat.com>
22890 Introduce context class.
22892 * Makefile.in (CONTEXT_H): New.
22893 (OBJS): Add context.o.
22894 (toplev.o): Add CONTEXT_H to dependencies.
22897 * toplev.c (general_init): Create the singleton gcc::context instance.
22903 2013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
22905 PR rtl-optimization/57968
22906 * mode-switching.c (create_pre_exit): Allow instructions that
22907 don't set a return register to need a non-exit mode.
22909 2013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
22910 Anton Blanchard <anton@au1.ibm.com>
22912 * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
22913 operands to vperm for little endian.
22914 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
22915 of lvsl to create the control mask for a vperm for little endian.
22917 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22918 Anton Blanchard <anton@au1.ibm.com>
22920 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
22921 two operands for little-endian.
22923 2013-07-23 Steve Ellcey <sellcey@mips.com>
22925 * config/mips/mips.c (mips_case_values_threshold): New.
22926 (TARGET_CASE_VALUES_THRESHOLD): Define.
22928 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22929 Anton Blanchard <anton@au1.ibm.com>
22931 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
22932 selection of field for vector splat in little endian mode.
22934 2013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
22936 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
22937 expanders to rs6000.md.
22938 (ior<mode>3): Likewise.
22939 (and<mode>3): Likewise.
22940 (one_cmpl<mode>2): Likewise.
22941 (nor<mode>3): Likewise.
22942 (andc<mode>3): Likewise.
22943 (eqv<mode>3): Likewise.
22944 (nand<mode>3): Likewise.
22945 (orc<mode>3): Likewise.
22947 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
22950 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
22951 to split multi-word logical operations.
22952 (rs6000_split_logical_di): Likewise.
22953 (rs6000_split_logical): Likewise.
22955 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
22956 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
22957 and allow TImode operations in 32-bit.
22958 (vsx_and<mode>3_64bit): Likewise.
22959 (vsx_ior<mode>3_32bit): Likewise.
22960 (vsx_ior<mode>3_64bit): Likewise.
22961 (vsx_xor<mode>3_32bit): Likewise.
22962 (vsx_xor<mode>3_64bit): Likewise.
22963 (vsx_one_cmpl<mode>2_32bit): Likewise.
22964 (vsx_one_cmpl<mode>2_64bit): Likewise.
22965 (vsx_nor<mode>3_32bit): Likewise.
22966 (vsx_nor<mode>3_64bit): Likewise.
22967 (vsx_andc<mode>3_32bit): Likewise.
22968 (vsx_andc<mode>3_64bit): Likewise.
22969 (vsx_eqv<mode>3_32bit): Likewise.
22970 (vsx_eqv<mode>3_64bit): Likewise.
22971 (vsx_nand<mode>3_32bit): Likewise.
22972 (vsx_nand<mode>3_64bit): Likewise.
22973 (vsx_orc<mode>3_32bit): Likewise.
22974 (vsx_orc<mode>3_64bit): Likewise.
22976 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
22977 logical types in GPRs.
22979 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
22980 logical insns to rs6000.md, and allow TImode operations in
22982 (altivec_ior<mode>3): Likewise.
22983 (altivec_xor<mode>3): Likewise.
22984 (altivec_one_cmpl<mode>2): Likewise.
22985 (altivec_nor<mode>3): Likewise.
22986 (altivec_andc<mode>3): Likewise.
22988 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
22989 attributes for moving the 128-bit logical operations into
22991 (BOOL_REGS_OUTPUT): Likewise.
22992 (BOOL_REGS_OP1): Likewise.
22993 (BOOL_REGS_OP2): Likewise.
22994 (BOOL_REGS_UNARY): Likewise.
22995 (BOOL_REGS_AND_CR0): Likewise.
22996 (one_cmpl<mode>2): Add support for DI logical operations on
22997 32-bit, splitting the operations to 32-bit.
22998 (anddi3): Likewise.
22999 (iordi3): Likewise.
23000 (xordi3): Likewise.
23001 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
23002 changes to combine the 32/64-bit code, allow logical operations on
23003 TI mode in 32-bit, and to use similar match_operator patterns like
23004 scalar mode uses. Combine the Altivec and VSX code for logical
23005 operations, and move it here.
23006 (ior<mode>3, 128-bit types): Likewise.
23007 (xor<mode>3, 128-bit types): Likewise.
23008 (one_cmpl<mode>3, 128-bit types): Likewise.
23009 (nor<mode>3, 128-bit types): Likewise.
23010 (andc<mode>3, 128-bit types): Likewise.
23011 (eqv<mode>3, 128-bit types): Likewise.
23012 (nand<mode>3, 128-bit types): Likewise.
23013 (orc<mode>3, 128-bit types): Likewise.
23014 (and<mode>3_internal): Likewise.
23015 (bool<mode>3_internal): Likewise.
23016 (boolc<mode>3_internal1): Likewise.
23017 (boolc<mode>3_internal2): Likewise.
23018 (boolcc<mode>3_internal1): Likewise.
23019 (boolcc<mode>3_internal2): Likewise.
23020 (eqv<mode>3_internal1): Likewise.
23021 (eqv<mode>3_internal2): Likewise.
23022 (one_cmpl1<mode>3_internal): Likewise.
23024 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
23026 * config/microblaze/microblaze.c (microblaze_expand_prologue):
23027 Rename flag_stack_usage to flag_stack_usage_info.
23029 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
23031 * config/microblaze/sync.md: New file.
23032 * config/microblaze/microblaze.md: Include sync.md
23033 * config/microblaze/microblaze.c: Add print_operand 'y'.
23034 * config/microblaze/constraints.md: Add memory_contraint
23035 'Q' which is a single register.
23037 2013-07-23 Eric Botcazou <ebotcazou@adacore.com>
23039 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
23041 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
23043 * reload.c (find_reloads): Exit loop once we find this operand
23044 cannot be reloaded somehow for this alternative.
23046 * reload.c (find_reloads): Exit loop once we find a hard register.
23048 * rtlanal.c (computed_jump_p): Exit loop once we find label
23051 * i386.c (ix86_pad_returns): Exit loop after setting replace.
23053 * cfgloopmanip.c (remove_path): Exit loop after setting
23056 * gensupport.c (subst_dup): Avoid loop if code is not
23057 MATCH_DUP nor MATCH_OP_DUP.
23059 2013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
23061 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
23063 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
23065 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
23066 true for SP_REGNUM if mode == ptr_mode.
23067 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
23068 with value R0_REGNUM + 31.
23070 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
23072 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
23073 pad pointer-typed argument downward.
23075 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
23077 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
23078 and __ILP32__ when the ILP32 model is in use.
23080 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
23082 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
23083 (aarch64_load_symref_appropriately): In the case of
23084 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
23085 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
23086 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
23087 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
23088 if 'mode' doesn't equal to 'ptr_mode'.
23089 (aarch64_output_mi_thunk): Add an assertion on the alignment of
23090 'vcall_offset'; change to call aarch64_emit_move differently depending
23091 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
23092 to calculate the upper bound of 'vcall_offset'.
23093 (aarch64_cannot_force_const_mem): Change to also return true if
23095 (aarch64_legitimize_reload_address): In the case of large
23096 displacements, add new local variable 'xmode' and an assertion
23097 based on it; change to use 'xmode' to generate the new rtx and
23099 (aarch64_asm_trampoline_template): Change to generate the template
23100 differently depending on TARGET_ILP32 or not; change to use
23101 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
23102 (aarch64_trampoline_size): Removed.
23103 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
23104 and replace immediate literals with it. Change to use 'ptr_mode'
23105 instead of 'DImode' and call convert_memory_address if the mode
23106 of 'fnaddr' doesn't equal to 'ptr_mode'.
23107 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
23109 (aarch64_elf_asm_destructor): Likewise.
23110 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
23111 on TARGET_ILP32 instead of aarch64_trampoline_size.
23112 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
23113 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
23114 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
23115 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
23116 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
23117 (storewb_pair<GPI:mode>_<P:mode>): ... this.
23118 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
23119 depending on the value of 'mode'.
23120 (add_losym_<mode>): New.
23121 (ldr_got_small_<mode>): New, based on ldr_got_small.
23122 (ldr_got_small): Remove.
23123 (ldr_got_small_sidi): New.
23124 * config/aarch64/iterators.md (P): New.
23125 (PTR): Change to 'ptr_mode' in the condition.
23127 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
23129 * config.gcc (aarch64*-*-*): Support --with-abi.
23130 (aarch64*-*-elf): Support --with-multilib-list.
23131 (aarch64*-*-linux*): Likewise.
23132 (supported_defaults): Add abi to aarch64*-*-*.
23133 * configure.ac: Mention AArch64 for --with-multilib-list.
23134 * configure: Re-generated.
23135 * config/aarch64/biarchilp32.h: New file.
23136 * config/aarch64/biarchlp64.h: New file.
23137 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
23139 (MULTILIB_DEFAULTS): Ditto.
23140 (DRIVER_SELF_SPECS): Ditto.
23141 (ASM_SPEC): Update to also substitute -mabi.
23142 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
23143 file whose name depends on -mabi= and -mbig-endian.
23144 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
23146 (POINTER_SIZE): New define.
23147 (POINTERS_EXTEND_UNSIGNED): Ditto.
23148 (enum aarch64_abi_type): New enumeration tag.
23149 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
23150 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
23151 (TARGET_ILP32): New define.
23152 * config/aarch64/aarch64.opt (mabi): New.
23153 (aarch64_abi): New.
23154 (ilp32, lp64): New values for -mabi.
23155 * config/aarch64/t-aarch64 (comma): New define.
23156 (MULTILIB_OPTIONS): Ditto.
23157 (MULTILIB_DIRNAMES): Ditto.
23158 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
23159 * doc/invoke.texi: Document -mabi for AArch64.
23161 2013-07-23 Georg-Johann Lay <avr@gjlay.de>
23163 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
23165 2013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
23166 Anton Blanchard <anton@au1.ibm.com>
23168 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
23169 endianness when selecting field to splat.
23171 2013-07-22 Eric Christopher <echristo@gmail.com>
23173 * dwarf2out.c (die_odr_checksum): New function to use
23174 CHECKSUM_ macros and ULEB128 for DIE tag.
23175 (generate_type_signature): Use.
23177 2013-07-22 Eric Botcazou <ebotcazou@adacore.com>
23179 * config.gcc (sparc*-*-*): Accept leon3 processor.
23180 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
23181 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
23182 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
23183 * config/sparc/sparc.opt (enum processor_type): Add leon3.
23184 (mfix-ut699): Adjust comment.
23185 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
23186 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
23187 (CPP_CPU_SPEC): Likewise.
23188 (ASM_CPU_SPEC): Likewise.
23189 * config/sparc/sparc.c (leon3_cost): New constant.
23190 (sparc_option_override): Add leon3 support.
23191 (mem_ref): New function.
23192 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
23193 (sparc_do_work_around_errata): Look into the instruction in the delay
23194 slot and adjust accordingly. Add fix for the data cache nullify issues
23195 of the UT699. Change insertion position for the NOP.
23196 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
23197 (leon3_load): New reservation.
23198 (leon_store): Bump latency to 2.
23199 (grfpu): New automaton.
23200 (grfpu_alu): New unit.
23201 (grfpu_ds): Likewise.
23202 (leon_fp_alu): Adjust.
23203 (leon_fp_mult): Delete.
23204 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
23205 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
23206 * config/sparc/sparc.md (cpu): Add leon3.
23207 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
23208 (swapsi): Likewise.
23209 (atomic_test_and_set): Likewise.
23210 (ldstub): Likewise.
23212 2013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
23214 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
23215 default for R5900 targets.
23216 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
23217 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
23218 * config/mips/mips.c (mips_option_override): Report an error for
23219 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
23220 for -march=r5900 -mhard-float.
23222 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
23224 * df-problems.c (can_move_insns_across): Exit loop once we
23225 find a non-fixed, non-global register.
23227 * ipa-pure-const.c (propagate_nothrow): Exit loop after
23230 * omega.c (omega_eliminate_red): Break after setting red_found.
23231 (omega_problem_has_red_equations): Similarly after setting found.
23232 (omega_query_variable): Similarly after setting coupled.
23234 2013-07-22 Marek Polacek <polacek@redhat.com>
23236 * gimplify.c: Don't include gimple.h twice.
23238 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23240 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
23241 instead of TARGET_THUMB1.
23242 (Pz): New constraint.
23243 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
23245 (compare_negsi_si): Likewise.
23246 (compare_addsi2_op0): Likewise.
23247 (compare_addsi2_op1): Likewise.
23248 (addsi3_carryin_<optab>): Likewise.
23249 (addsi3_carryin_alt2_<optab>): Likewise.
23250 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
23251 for arm_restrict_it.
23252 (subsi3_carryin): Likewise.
23253 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
23254 (minmax_arithsi): Disable for arm_restrict_it.
23255 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
23256 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
23257 (satsi_<SAT:code>_shift): Likewise.
23258 (arm_shiftsi3): Add alternative for 16-bit encoding.
23259 (arm32_movhf): Disable for arm_restrict_it.
23260 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
23261 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
23263 2013-07-22 Sofiane Naci <sofiane.naci@arm.com>
23265 * config/arm/arm.md (attribute "insn"): Delete.
23266 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
23267 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
23268 (not_shiftsi): Update for attribute change.
23269 (not_shiftsi_compare0): Likewise.
23270 (not_shiftsi_compare0_scratch): Likewise.
23271 (arm_one_cmplsi2): Likewise.
23272 (thumb1_one_cmplsi2): Likewise.
23273 (notsi_compare0): Likewise.
23274 (notsi_compare0_scratch): Likewise.
23275 (thumb1_movdi_insn): Likewise.
23276 (arm_movsi_insn): Likewise.
23277 (movhi_insn_arch4): Likewise.
23278 (movhi_bytes): Likewise.
23279 (arm_movqi_insn): Likewise.
23280 (thumb1_movqi_insn): Likewise.
23281 (arm32_movhf): Likewise.
23282 (thumb1_movhf): Likewise.
23283 (arm_movsf_soft_insn): Likewise.
23284 (thumb1_movsf_insn): Likewise.
23285 (thumb_movdf_insn): Likewise.
23286 (movsicc_insn): Likewise.
23287 (movsfcc_soft_insn): Likewise.
23288 (and_scc): Likewise.
23289 (cond_move): Likewise.
23290 (if_move_not): Likewise.
23291 (if_not_move): Likewise.
23292 (if_shift_move): Likewise.
23293 (if_move_shift): Likewise.
23294 (if_shift_shift): Likewise.
23295 (if_not_arith): Likewise.
23296 (if_arith_not): Likewise.
23297 (cond_move_not): Likewise.
23298 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
23299 (neon_mov<mode>): Likewise.
23300 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
23301 (thumb2_movsi_vfp): Likewise.
23302 (movsf_vfp): Likewise.
23303 (thumb2_movsf_vfp): Likewise.
23304 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
23306 (cortexa7_older_only): Likewise.
23307 (cortexa7_younger): Likewise.
23308 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
23309 (1020alu_shift_op): Likewise.
23310 (1020alu_shift_reg_op): Likewise.
23311 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
23312 (alu_shift_op): Likewise.
23313 (alu_shift_reg_op): Likewise.
23314 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
23315 (11_alu_shift_op): Likewise.
23316 (11_alu_shift_reg_op): Likewise.
23317 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
23318 (9_alu_shift_reg_op): Likewise.
23319 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
23321 (cortex_a15_alu_shift): Likewise.
23322 (cortex_a15_alu_shift_reg): Likewise.
23323 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
23324 (cortex_a5_alu_shift): Likewise.
23325 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
23327 (cortex_a53_alu_shift): Likewise.
23328 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
23330 (cortex_a7_alu_reg): Likewise.
23331 (cortex_a7_alu_shift): Likewise.
23332 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
23333 (cortex_a8_alu_shift): Likewise.
23334 (cortex_a8_alu_shift_reg): Likewise.
23335 (cortex_a8_mov): Likewise.
23336 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
23337 (cortex_a9_dp_shift): Likewise.
23338 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
23339 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
23340 (cortex_r4_mov): Likewise.
23341 (cortex_r4_alu_shift): Likewise.
23342 (cortex_r4_alu_shift_reg): Likewise.
23343 * config/arm/fa526.md (526_alu_op): Update for attribute change.
23344 (526_alu_shift_op): Likewise.
23345 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
23346 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
23347 (626te_alu_shift_op): Likewise.
23348 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
23349 (726te_alu_op): Likewise.
23350 (726te_alu_shift_op): Likewise.
23351 (726te_alu_shift_reg_op): Likewise.
23352 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
23353 (mp626_alu_shift_op): Likewise.
23354 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
23355 (pj4_alu_e1_conds): Likewise.
23356 (pj4_alu): Likewise.
23357 (pj4_alu_conds): Likewise.
23358 (pj4_shift): Likewise.
23359 (pj4_shift_conds): Likewise.
23360 (pj4_alu_shift): Likewise.
23361 (pj4_alu_shift_conds): Likewise.
23363 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23365 * config/arm/predicates.md (shiftable_operator_strict_it):
23367 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
23368 Disable cond_exec version for arm_restrict_it.
23369 (thumb2_smaxsi3): Convert to generate cond_exec.
23370 (thumb2_sminsi3): Likewise.
23371 (thumb32_umaxsi3): Likewise.
23372 (thumb2_uminsi3): Likewise.
23373 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
23374 (thumb2_neg_abssi2): Likewise.
23375 (thumb2_mov_scc): Add alternative for 16-bit encoding.
23376 (thumb2_movsicc_insn): Adjust alternatives.
23377 (thumb2_mov_negscc): Disable for arm_restrict_it.
23378 (thumb2_mov_negscc_strict_it): New pattern.
23379 (thumb2_mov_notscc_strict_it): New pattern.
23380 (thumb2_mov_notscc): Disable for arm_restrict_it.
23381 (thumb2_ior_scc): Likewise.
23382 (thumb2_ior_scc_strict_it): New pattern.
23383 (thumb2_cond_move): Adjust for arm_restrict_it.
23384 (thumb2_cond_arith): Disable for arm_restrict_it.
23385 (thumb2_cond_arith_strict_it): New pattern.
23386 (thumb2_cond_sub): Adjust for arm_restrict_it.
23387 (thumb2_movcond): Likewise.
23388 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
23389 (thumb2_zero_extendhisi2_v6): Likewise.
23390 (thumb2_zero_extendqisi2_v6): Likewise.
23391 (orsi_notsi_si): Likewise.
23392 (orsi_not_shiftsi_si): Likewise.
23394 2013-07-22 Georg-Johann Lay <avr@gjlay.de>
23396 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
23397 instruction sequence is 1 byte shorter.
23399 2013-07-22 Uros Bizjak <ubizjak@gmail.com>
23401 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
23402 it is not needed after split.
23404 2013-07-20 Iain Sandoe <iain@codesourcery.com>
23407 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
23408 second label for nonlocal goto receivers. Don't output pic base labels
23409 unless we're producing PIC; mark that action unreachable().
23410 (ix86_save_reg): If the function contains a nonlocal label, save the
23412 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
23413 * config/darwin.c (emitted_pic_label_num): New GTY.
23414 (update_pic_label_number_if_needed): New.
23415 (machopic_output_function_base_name): Adjust for nonlocal receiver
23417 (machopic_should_output_picbase_label): New.
23418 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
23419 (nonlocal_goto_receiver): New insn and split.
23421 2013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
23423 * config/aarch64/aarch64-builtins.c
23424 (aarch64_fold_builtin): Fold abs in all modes.
23425 * config/aarch64/aarch64-simd-builtins.def
23426 (abs): Enable for all modes.
23427 * config/aarch64/arm_neon.h
23428 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
23429 (vabs_f64): Add missing intrinsic.
23431 2013-07-19 Ian Bolton <ian.bolton@arm.com>
23433 * config/aarch64/arm_neon.h (vabs_s64): New function
23435 2013-07-19 Georg-Johann Lay <avr@gjlay.de>
23438 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
23439 * config/avr/avr.md (adjust_len): Add `round'.
23440 * config/avr/avr-protos.h (avr_out_round): New prototype.
23441 (avr_out_plus): Add `out_label' argument.
23442 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
23443 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
23444 Handle the case where `insn' is just a pattern.
23445 (avr_out_bitop): Handle the case where `insn' is just a pattern.
23446 (avr_out_round): New function.
23447 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
23449 2013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
23451 * config/microblaze/microblaze.c (microblaze_expand_prologue):
23452 Add check for flag_stack_usage to handle -fstack-usage support
23454 2013-07-18 Pat Haugen <pthaugen@us.ibm.com>
23456 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
23457 interaction for new Power8 flags and VSX.
23459 2013-07-18 Sriraman Tallam <tmsriram@google.com>
23461 PR middle-end/57698
23462 * tree-inline.c (expand_call_inline): Emit errors during
23463 early_inlining only if optimization is not turned on.
23465 2013-07-18 David Malcolm <dmalcolm@redhat.com>
23469 * passes.c (init_optimization_passes): Move the construction of
23470 the pass hierarchy into a new passes.def file.
23472 * Makefile.in (passes.o): Add dependency on passes.def.
23474 2013-07-18 David Malcolm <dmalcolm@redhat.com>
23476 * passes.c (init_optimization_passes): Introduce macros for
23477 constructing the tree of passes (INSERT_PASSES_AFTER,
23478 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
23479 TERMINATE_PASS_LIST).
23481 2013-07-18 Vladimir Makarov <vmakarov@redhat.com>
23482 Wei Mi <wmi@google.com>
23484 PR rtl-optimization/57878
23485 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
23487 (reload_pseudo_compare_func): Check nregs first for reload
23490 2013-07-18 David Malcolm <dmalcolm@redhat.com>
23492 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
23494 2013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
23496 * read-rtl.c (validate_const_int): Once an invalid character is
23497 seen, quit the loop.
23499 * gengtype.c (write_roots): Similarly once we find the "deletable"
23500 or "if_marked" option.
23502 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
23504 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
23505 "xtab" and "sat". Move value "clz" from here to ...
23506 (attriubte "type"): ... here.
23507 (satsi_<SAT:code>): Delete "insn" attribute.
23508 (satsi_<SAT:code>_shift): Likewise.
23509 (arm_zero_extendqisi2addsi): Likewise.
23510 (arm_extendqisi2addsi): Likewise.
23511 (clzsi2): Update for attribute changes.
23512 (rbitsi2): Likewise.
23513 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
23515 (arm_usatsihi): Likewise.
23516 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
23518 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
23520 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
23521 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
23522 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
23523 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
23524 in alphabetical order.
23525 (attribute "core_cycles"): Update for attribute changes.
23526 (arm_addsi3): Likewise.
23527 (addsi3_compare0): Likewise.
23528 (addsi3_compare0_scratch): Likewise.
23529 (addsi3_compare_op1): Likewise.
23530 (addsi3_compare_op2): Likewise.
23531 (compare_addsi2_op0): Likewise.
23532 (compare_addsi2_op1): Likewise.
23533 (addsi3_carryin_shift_<optab>): Likewise.
23534 (subsi3_carryin_shift): Likewise.
23535 (rsbsi3_carryin_shift): Likewise.
23536 (arm_subsi3_insn): Likewise.
23537 (subsi3_compare0): Likewise.
23538 (subsi3_compare): Likewise.
23539 (arm_andsi3_insn): Likewise.
23540 (thumb1_andsi3_insn): Likewise.
23541 (andsi3_compare0): Likewise.
23542 (andsi3_compare0_scratch): Likewise.
23543 (zeroextractsi_compare0_scratch
23544 (andsi_not_shiftsi_si): Likewise.
23545 (iorsi3_insn): Likewise.
23546 (iorsi3_compare0): Likewise.
23547 (iorsi3_compare0_scratch): Likewise.
23548 (arm_xorsi3): Likewise.
23549 (thumb1_xorsi3_insn): Likewise.
23550 (xorsi3_compare0): Likewise.
23551 (xorsi3_compare0_scratch): Likewise.
23552 (satsi_<SAT:code>_shift): Likewise.
23554 (arm_shiftsi3): Likewise.
23555 (shiftsi3_compare0): Likewise.
23556 (not_shiftsi): Likewise.
23557 (not_shiftsi_compare0): Likewise.
23558 (not_shiftsi_compare0_scratch): Likewise.
23559 (arm_one_cmplsi2): Likewise.
23560 (thumb_one_complsi2): Likewise.
23561 (notsi_compare0): Likewise.
23562 (notsi_compare0_scratch): Likewise.
23563 (thumb1_zero_extendhisi2): Likewise.
23564 (arm_zero_extendhisi2): Likewise.
23565 (arm_zero_extendhisi2_v6): Likewise.
23566 (arm_zero_extendhisi2addsi): Likewise.
23567 (thumb1_zero_extendqisi2): Likewise.
23568 (thumb1_zero_extendqisi2_v6): Likewise.
23569 (arm_zero_extendqisi2): Likewise.
23570 (arm_zero_extendqisi2_v6): Likewise.
23571 (arm_zero_extendqisi2addsi): Likewise.
23572 (thumb1_extendhisi2): Likewise.
23573 (arm_extendhisi2): Likewise.
23574 (arm_extendhisi2_v6): Likewise.
23575 (arm_extendqisi): Likewise.
23576 (arm_extendqisi_v6): Likewise.
23577 (arm_extendqisi2addsi): Likewise.
23578 (thumb1_extendqisi2): Likewise.
23579 (thumb1_movdi_insn): Likewise.
23580 (arm_movsi_insn): Likewise.
23581 (movsi_compare0): Likewise.
23582 (movhi_insn_arch4): Likewise.
23583 (movhi_bytes): Likewise.
23584 (arm_movqi_insn): Likewise.
23585 (thumb1_movqi_insn): Likewise.
23586 (arm32_movhf): Likewise.
23587 (thumb1_movhf): Likewise.
23588 (arm_movsf_soft_insn): Likewise.
23589 (thumb1_movsf_insn): Likewise.
23590 (movdf_soft_insn): Likewise.
23591 (thumb_movdf_insn): Likewise.
23592 (arm_cmpsi_insn): Likewise.
23593 (cmpsi_shiftsi): Likewise.
23594 (cmpsi_shiftsi_swp): Likewise.
23595 (arm_cmpsi_negshiftsi_si): Likewise.
23596 (movsicc_insn): Likewise.
23597 (movsfcc_soft_insn): Likewise.
23598 (arith_shiftsi): Likewise.
23599 (arith_shiftsi_compare0
23600 (arith_shiftsi_compare0_scratch
23601 (sub_shiftsi): Likewise.
23602 (sub_shiftsi_compare0
23603 (sub_shiftsi_compare0_scratch
23604 (and_scc): Likewise.
23605 (cond_move): Likewise.
23606 (if_plus_move): Likewise.
23607 (if_move_plus): Likewise.
23608 (if_move_not): Likewise.
23609 (if_not_move): Likewise.
23610 (if_shift_move): Likewise.
23611 (if_move_shift): Likewise.
23612 (if_shift_shift): Likewise.
23613 (if_not_arith): Likewise.
23614 (if_arith_not): Likewise.
23615 (cond_move_not): Likewise.
23616 (thumb1_ashlsi3): Set type attribute.
23617 (thumb1_ashrsi3): Likewise.
23618 (thumb1_lshrsi3): Likewise.
23619 (thumb1_rotrsi3): Likewise.
23620 (shiftsi3_compare0_scratch): Likewise.
23621 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
23622 (neon_mov<mode>): Likewise.
23623 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
23625 (thumb2_movsi_insn): Likewise.
23626 (thumb2_cmpsi_neg_shiftsi): Likewise.
23627 (thumb2_extendqisi_v6): Likewise.
23628 (thumb2_zero_extendhisi2_v6): Likewise.
23629 (thumb2_zero_extendqisi2_v6): Likewise.
23630 (thumb2_shiftsi3_short): Likewise.
23631 (thumb2_addsi3_compare0_scratch): Likewise.
23632 (orsi_not_shiftsi_si): Likewise.
23633 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
23634 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
23636 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
23637 (1020alu_shift_op): Likewise.
23638 (1020alu_shift_reg_op): Likewise.
23639 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
23640 (alu_shift_op): Likewise.
23641 (alu_shift_reg_op): Likewise.
23642 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
23643 (11_alu_shift_op): Likewise.
23644 (11_alu_shift_reg_op): Likewise.
23645 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
23646 (9_alu_shift_reg_op): Likewise.
23647 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
23649 (cortex_a15_alu_shift): Likewise.
23650 (cortex_a15_alu_shift_reg): Likewise.
23651 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
23653 (cortex_a5_alu_shift): Likewise.
23654 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
23656 (cortex_a53_alu_shift): Likewise.
23657 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
23659 (cortex_a7_alu_reg): Likewise.
23660 (cortex_a7_alu_shift): Likewise.
23661 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
23663 (cortex_a8_alu_shift): Likewise.
23664 (cortex_a8_alu_shift_reg): Likewise.
23665 (cortex_a8_mov): Likewise.
23666 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
23667 (cortex_a9_dp_shift): Likewise.
23668 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
23670 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
23672 (cortex_r4_mov): Likewise.
23673 (cortex_r4_alu_shift): Likewise.
23674 (cortex_r4_alu_shift_reg): Likewise.
23675 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
23676 (526_alu_shift_op): Likewise.
23677 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
23678 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
23679 (626te_alu_shift_op): Likewise.
23680 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
23681 (726te_alu_op): Likewise.
23682 (726te_alu_shift_op): Likewise.
23683 (726te_alu_shift_reg_op): Likewise.
23684 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
23685 (mp626_alu_shift_op): Likewise.
23686 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
23687 (pj4_alu_e1_conds): Likewise.
23688 (pj4_alu): Likewise.
23689 (pj4_alu_conds): Likewise.
23690 (pj4_shift): Likewise.
23691 (pj4_shift_conds): Likewise.
23692 (pj4_alu_shift): Likewise.
23693 (pj4_alu_shift_conds): Likewise.
23694 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
23696 (cortexa7_older_only): Likewise.
23697 (cortexa7_younger): Likewise.
23699 2013-07-18 David Malcolm <dmalcolm@redhat.com>
23701 * ipa-pure-const.c (generate_summary): Rename to...
23702 (pure_const_generate_summary): ... this.
23704 2013-07-17 Iain Sandoe <iain@codesourcery.com>
23706 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
23708 2013-07-17 Yvan Roux <yvan.roux@linaro.org>
23711 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
23714 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23716 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
23717 enabled without -march=zEC12.
23718 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
23721 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
23723 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
23724 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
23725 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
23726 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
23727 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
23728 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
23729 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
23731 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
23732 and ISA_HAS_NMADD3_NMSUB3.
23733 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
23734 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
23735 (nmsub4<mode>, nmsub3<mode>): Likewise.
23736 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
23738 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
23740 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
23741 TARGET_MIPS5400 checking.
23743 2013-07-16 Jakub Jelinek <jakub@redhat.com>
23744 Peter Bergner <bergner@vnet.ibm.com>
23746 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
23747 registers in the comment.
23748 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
23749 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
23750 rather than FIRST_PSEUDO_REGISTERS.
23752 2013-07-16 Peter Bergner <bergner@vnet.ibm.com>
23754 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
23755 enable extra ISA flags with TARGET_HTM.
23757 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
23759 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
23762 2013-07-15 Cong Hou <congh@google.com>
23764 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
23765 in compare function for sorting.
23767 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
23769 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
23770 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
23771 * config/rs6000/rs6000.opt: Add -mhtm option.
23772 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
23773 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
23774 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
23775 __HTM__ if the HTM instructions are available.
23776 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
23777 htm_spr_reg_operand): New define_predicates.
23778 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
23779 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
23781 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
23782 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
23783 HTM builtin functions.
23784 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
23785 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
23786 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
23787 (rs6000_builtin_mask_calculate): Likewise.
23788 (rs6000_option_override_internal): Likewise.
23789 (bdesc_htm): Add new HTM builtin support.
23790 (htm_spr_num): New function.
23791 (htm_spr_regno): Likewise.
23792 (rs6000_htm_spr_icode): Likewise.
23793 (htm_expand_builtin): Likewise.
23794 (htm_init_builtins): Likewise.
23795 (rs6000_expand_builtin): Add support for HTM builtin functions.
23796 (rs6000_init_builtins): Likewise.
23797 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
23799 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
23800 (TARGET_HTM, MASK_HTM): Define macros.
23801 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
23802 (FIXED_REGISTERS): Likewise.
23803 (CALL_USED_REGISTERS): Likewise.
23804 (CALL_REALLY_USED_REGISTERS): Likewise.
23805 (REG_ALLOC_ORDER): Likewise.
23806 (enum reg_class): Likewise.
23807 (REG_CLASS_NAMES): Likewise.
23808 (REG_CLASS_CONTENTS): Likewise.
23809 (REGISTER_NAMES): Likewise.
23810 (ADDITIONAL_REGISTER_NAMES): Likewise.
23811 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
23812 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
23813 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
23814 * config/rs6000/htm.md: New file.
23815 * config/rs6000/htmintrin.h: New file.
23816 * config/rs6000/htmxlintrin.h: New file.
23818 2013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
23820 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
23821 Define SYMBOL_TINY_GOT, update comment.
23822 * config/aarch64/aarch64.c
23823 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
23824 (aarch64_expand_mov_immediate): Likewise.
23825 (aarch64_print_operand): Likewise.
23826 (aarch64_classify_symbol): Likewise.
23827 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
23828 (ldr_got_tiny): Define.
23830 2013-07-13 Tobias Grosser <tobias@grosser.es>
23832 PR tree-optimization/54094
23833 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
23834 scheduling dimension for the parallelism check from the polyhedral
23835 information in the AST.
23836 * graphite-dependences.c (carries_deps): Do not assume the schedule is
23839 2013-07-13 Jason Merrill <jason@redhat.com>
23841 * print-tree.c (debug_vec_tree): Use debug_raw.
23842 (debug_raw (vec<tree, va_gc> &)): New.
23843 (debug_raw (vec<tree, va_gc> *)): New.
23844 * tree.h: Declare them.
23846 2013-07-13 Bin Cheng <bin.cheng@arm.com>
23848 * ifcvt.c (ifcvt_after_combine): New static variable.
23849 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
23851 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
23852 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
23853 rest_of_handle_if_after_reload): Pass new argument for if_convert.
23855 2013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
23857 * config/mips/mips.c (mips_expand_call): Remove empty statement.
23859 2013-07-12 Michael Matz <matz@suse.de>
23861 PR middle-end/55771
23862 * convert.c (convert_to_real): Reject non-float inner types.
23864 2013-07-12 Tejas Belagod <tejas.belagod@arm.com>
23866 * config/aarch64/aarch64-protos.h
23867 (aarch64_simd_immediate_valid_for_move): Remove.
23868 * config/aarch64/aarch64.c (simd_immediate_info): New member.
23869 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
23871 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
23873 2013-07-11 Steve Ellcey <sellcey@mips.com>
23875 * config/mips/mips.c (mips_conditional_register_usage): Do not
23876 use t[0-7] registers in MIPS16 mode when optimizing for size.
23878 2013-07-11 Sriraman Tallam <tmsriram@google.com>
23880 * config/i386/i386.c (dispatch_function_versions): Fix array
23881 indexing of function_version_info to match actual_versions.
23883 2013-07-11 Teresa Johnson <tejohnson@google.com>
23885 * vec.h (struct va_gc): Move release out-of-line.
23886 (va_gc::release): Call ggc_free on released vec.
23888 2013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23890 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
23891 Require GOT register as additional operand in UNSPEC.
23892 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
23893 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
23894 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
23895 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
23896 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
23897 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
23898 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
23900 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
23903 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
23904 name seen by assembler/linker rather if available.
23906 2013-07-11 Andreas Schwab <schwab@suse.de>
23908 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
23910 2013-07-10 Vladimir Makarov <vmakarov@redhat.com>
23912 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
23914 2013-07-10 Joseph Myers <joseph@codesourcery.com>
23916 * doc/tm.texi.in: Move hook documentation to ....
23917 * target.def: ... here.
23919 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
23920 text on @hook line.
23921 * doc/tm.texi: Regenerate.
23923 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
23926 * doc/invoke.texi: Document -Wconditionally-supported.
23928 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
23931 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
23934 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
23937 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
23938 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
23939 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
23940 Remove duplicate devices.
23941 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
23942 * config/avr/t-multilib: Regenerate.
23943 * config/avr/avr-tables.opt: Regenerate.
23944 * doc/avr-mmcu.texi: Regenerate.
23946 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
23949 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
23951 2013-07-10 Graham Stott <graham.stott@btinternet.com>
23953 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
23954 the cost of MULT when optimizing for size.
23956 2013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
23958 * config/cr16/cr16-protos.h: Don't include target.h.
23960 2013-07-09 Joseph Myers <joseph@codesourcery.com>
23962 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
23963 adjust register size for TDmode and TFmode for VSX registers.
23965 2013-07-08 Kai Tietz <ktietz@redhat.com>
23968 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
23969 hook_bool_const_tree_true.
23971 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23973 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
23974 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
23975 * config/s390/s390.md: Define FPR*_REGNUM constants.
23976 Fix FPR2_REGNUM constant (18 -> 17).
23977 ("*trunc<BFP:mode><DFP_ALL:mode>2")
23978 ("*trunc<DFP_ALL:mode><BFP:mode>2")
23979 ("trunc<BFP:mode><DFP_ALL:mode>2")
23980 ("trunc<DFP_ALL:mode><BFP:mode>2")
23981 ("*extend<BFP:mode><DFP_ALL:mode>2")
23982 ("*extend<DFP_ALL:mode><BFP:mode>2")
23983 ("extend<BFP:mode><DFP_ALL:mode>2")
23984 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
23987 2013-07-08 Graham Stott <graham.stott@btinternet.com>
23989 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
23991 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23993 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
23994 and cfun_fpr_bit_p to cfun_fpr_save_p.
23995 (s390_frame_area, s390_register_info, s390_frame_info)
23996 (s390_emit_prologue, s390_emit_epilogue)
23997 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
23999 * config/s390/s390.h: Define *_REGNUM macros for floating point
24002 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
24004 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
24006 2013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
24008 PR rtl-optimization/57786
24009 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
24010 and break out of the loop when it is set to false.
24012 2013-07-08 Jakub Jelinek <jakub@redhat.com>
24015 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
24016 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
24017 (const_int 63)) 0)).
24018 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
24019 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
24020 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
24022 PR rtl-optimization/57829
24023 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
24024 mask bits outside of mode are just sign-extension from mode to HWI.
24026 2013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
24028 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
24029 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
24030 adjust_address instead of change_address to keep info about alignment.
24031 (emit_strmov): Remove.
24032 (emit_memmov): New function.
24033 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
24034 (expand_movmem_epilogue): Likewise and return updated rtx for
24036 (expand_constant_movmem_prologue): Likewise and return updated rtx for
24037 destination and source.
24038 (decide_alignment): Refactor, handle vector_loop.
24039 (ix86_expand_movmem): Likewise.
24040 (ix86_expand_setmem): Likewise.
24041 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
24043 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
24045 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
24046 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
24048 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
24050 * config/i386/sse.md (sse_movlhps): Change alternative 3
24051 of operand 2 to "m".
24053 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
24056 * config/i386/sse.md (iptr): New mode attribute.
24057 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
24058 (<sse>_vm<plusminus_insn><mode>3): Ditto.
24059 (<sse>_vmmul<mode>3): Ditto.
24060 (<sse>_vmdiv<mode>3): Ditto.
24061 (sse_vmrcpv4sf2): Ditto.
24062 (<sse>_vmsqrt<mode>2): Ditto.
24063 (sse_vmrsqrtv4sf2): Ditto.
24064 (<sse>_vm<code><mode>3): Ditto.
24065 (avx_vmcmp<mode>3): Ditto.
24066 (<sse>_vmmaskcmp<mode>3): Ditto.
24067 (<sse>_comi): Ditto.
24068 (<sse>_ucomi): Ditto.
24069 (*xop_vmfrcz_<mode>): Ditto.
24070 (*fmai_fmadd_<mode>): Ditto.
24071 (*fmai_fmsub_<mode>): Ditto.
24072 (*fmai_fnmadd_<mode>): Ditto.
24073 (*fmai_fnmsub_<mode>): Ditto.
24074 (*fma4i_vmfmadd_<mode>): Ditto.
24075 (*fma4i_vmfmsub_<mode>): Ditto.
24076 (*fma4i_vmfnmadd_<mode>): Ditto.
24077 (*fma4i_vmfnmsub_<mode>): Ditto.
24078 (*xop_vmfrcz_<mode>): Ditto.
24079 (sse_cvtps2pi): Ditto.
24080 (sse_cvttps2pi): Ditto.
24081 (sse_cvtss2si): Ditto.
24082 (sse_cvtss2si_2): Ditto.
24083 (sse_cvtss2siq_2): Ditto.
24084 (sse_cvttss2si): Ditto.
24085 (sse_cvttss2siq): Ditto.
24086 (sse_cvtsd2si): Ditto.
24087 (sse_cvtsd2si_2): Ditto.
24088 (sse_cvtsd2siq_2): Ditto.
24089 (sse_cvttsd2si): Ditto.
24090 (sse_cvttsd2siq): Ditto.
24091 (sse_cvtsd2ss): Ditto.
24092 (sse_cvtss2sd): Ditto.
24093 (avx2_pbroadcast<mode>): Ditto.
24094 (avx2_pbroadcast<mode>_1): Ditto.
24095 (*avx_vperm_broadcast_v4sf): Ditto.
24097 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
24098 (sse_movlhps): Ditto.
24099 (sse_storehps): Ditto.
24100 (sse_loadhps): Ditto.
24101 (sse_storelps): Ditto.
24102 (sse_loadlps): Ditto.
24103 (*vec_concatv4sf): Ditto.
24104 (*vec_interleave_highv2df): Ditto.
24105 (*vec_interleave_lowv2df): Ditto.
24106 (*vec_extractv2df_1_sse): Ditto.
24107 (*vec_extractv2df_0_sse): Ditto.
24108 (sse2_storelpd): Ditto.
24109 (sse2_loadlpd): Ditto.
24110 (sse2_movsd): Ditto.
24111 (*vec_concatv4si): Ditto.
24112 (vec_concatv2di): Ditto.
24114 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
24115 for Intel asm dialect.
24116 (mmx_punpcklwd): Ditto.
24117 (mmx_punpckldq): Ditto.
24119 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
24120 for intel assembler dialect.
24122 2013-07-06 Jakub Jelinek <jakub@redhat.com>
24125 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
24126 for BUILT_IN_C{LZ,LRSB}*.
24127 * tree.h (CASE_INT_FN): Add FN##IMAX case.
24128 * tree-vrp.c (extract_range_basic): Handle
24129 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
24130 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
24131 fall thru to code calling set_value*.
24132 * builtins.c (expand_builtin): Remove *IMAX cases.
24133 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
24134 if width is bigger than 2*HWI.
24136 2013-07-05 Vladimir Makarov <vmakarov@redhat.com>
24138 PR rtl-optimization/55342
24139 * lra-int.h (lra_subreg_reload_pseudos): New.
24140 * lra.c: Add undoing optional reloads to the block diagram.
24141 (lra_subreg_reload_pseudos): New.
24142 (lra_optional_reload_pseudos): Change comments.
24143 (lra): Init and clear lra_subreg_reload_pseudos. Clear
24144 lra_optional_reload_pseudos after undo transformations.
24145 * lra-assigns.c (pseudo_prefix_title): New.
24146 (lra_setup_reg_renumber): Use it.
24147 (spill_for): Ditto. Check subreg reload pseudos too.
24148 (assign_by_spills): Consider subreg reload pseudos too.
24149 * lra-constraints.c (simplify_operand_subreg): Use
24150 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
24151 (curr_insn_transform): Recognize and do optional reloads.
24152 (undo_optional_reloads): New.
24153 (lra_undo_inheritance): Call undo_optional_reloads.
24155 2013-07-05 Thomas Quinot <quinot@adacore.com>
24157 * tree-complex.c (expand_complex_operations_1): Fix typo.
24159 2013-07-04 Tejas Belagod <tejas.belagod@arm.com>
24161 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
24162 (tune_params): New member 'const vec_costs'.
24163 * config/aarch64/aarch64.c (generic_vector_cost): New.
24164 (generic_tunings): New member 'generic_vector_cost'.
24165 (aarch64_builtin_vectorization_cost): New.
24166 (aarch64_add_stmt_cost): New.
24167 (TARGET_VECTORIZE_ADD_STMT_COST): New.
24168 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
24170 2013-07-03 Jakub Jelinek <jakub@redhat.com>
24173 * config/i386/predicates.md (vsib_address_operand): Disallow
24174 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
24176 2013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
24178 PR middle-end/55030
24179 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
24180 expand_builtin_setjmp_receiver.
24181 (expand_label): Adjust, call expand_builtin_setjmp_receiver
24182 with NULL for the label parameter.
24183 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
24184 the frame-pointer. Adjust comments.
24185 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
24186 only if LABEL is non-NULL.
24188 2013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
24190 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
24191 (ARM_ABI_AAPCS64): Ditto.
24193 (ARM_DEFAULT_ABI): Ditto.
24195 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
24197 * config/aarch64/aarch64-builtins.c
24198 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
24199 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
24201 * config/aarch64/aarch64-simd.md
24202 (aarch64_ld1<VALL:mode>): New.
24203 (aarch64_st1<VALL:mode>): Likewise.
24204 * config/aarch64/arm_neon.h
24205 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
24207 2013-07-02 Sriraman Tallam <tmsriram@google.com>
24209 * config/i386/i386.c (gate_insert_vzeroupper): Check if
24211 (ix86_option_override_internal):Turn on all -mavx target flags by
24212 default as they are dependent on AVX anyway.
24214 2013-07-02 Cary Coutant <ccoutant@google.com>
24216 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
24217 deterministic hash.
24218 (loc_checksum_ordered): Likewise.
24219 (hash_loc_operands): Remove inline keyword.
24221 2013-07-02 Jakub Jelinek <jakub@redhat.com>
24223 PR tree-optimization/57741
24224 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
24225 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
24226 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
24227 Allow REAL_CST step_exprs if flag_associative_math.
24228 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
24230 2013-07-02 Ian Bolton <ian.bolton@arm.com>
24232 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
24234 2013-07-02 Ian Bolton <ian.bolton@arm.com>
24236 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
24238 2013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24240 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
24242 (iorsi3_insn): Likewise.
24243 (arm_xorsi3): Likewise.
24245 2013-07-01 Sofiane Naci <sofiane.naci@arm.com>
24247 * arm.md (attribute "wtype"): Delete. Move attribute values from here
24249 (attribute "type"): ... here, and prefix with "wmmx_".
24250 (attribute "core_cycles"): Update for attribute changes.
24251 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
24252 (tbcstv4hi): Likewise.
24253 (tbcstv2si): Likewise.
24254 (iwmmxt_iordi3): Likewise.
24255 (iwmmxt_xordi3): Likewise.
24256 (iwmmxt_anddi3): Likewise.
24257 (iwmmxt_nanddi3): Likewise.
24258 (iwmmxt_arm_movdi): Likewise.
24259 (iwmmxt_movsi_insn): Likewise.
24260 (mov<mode>_internal): Likewise.
24261 (and<mode>3_iwmmxt): Likewise.
24262 (ior<mode>3_iwmmxt): Likewise.
24263 (xor<mode>3_iwmmxt): Likewise.
24264 (add<mode>3_iwmmxt): Likewise.
24265 (ssaddv8qi3): Likewise.
24266 (ssaddv4hi3): Likewise.
24267 (ssaddv2si3): Likewise.
24268 (usaddv8qi3): Likewise.
24269 (usaddv4hi3): Likewise.
24270 (usaddv2si3): Likewise.
24271 (sub<mode>3_iwmmxt): Likewise.
24272 (sssubv8qi3): Likewise.
24273 (sssubv4hi3): Likewise.
24274 (sssubv2si3): Likewise.
24275 (ussubv8qi3): Likewise.
24276 (ussubv4hi3): Likewise.
24277 (ussubv2si3): Likewise.
24278 (mulv4hi3_iwmmxt): Likewise.
24279 (smulv4hi3_highpart): Likewise.
24280 (umulv4hi3_highpart): Likewise.
24281 (iwmmxt_wmacs): Likewise.
24282 (iwmmxt_wmacsz): Likewise.
24283 (iwmmxt_wmacu): Likewise.
24284 (iwmmxt_wmacuz): Likewise.
24285 (iwmmxt_clrdi): Likewise.
24286 (iwmmxt_clrv8qi): Likewise.
24287 (iwmmxt_clr4hi): Likewise.
24288 (iwmmxt_clr2si): Likewise.
24289 (iwmmxt_uavgrndv8qi3): Likewise.
24290 (iwmmxt_uavgrndv4hi3): Likewise.
24291 (iwmmxt_uavgv8qi3): Likewise.
24292 (iwmmxt_uavgv4hi3): Likewise.
24293 (iwmmxt_tinsrb): Likewise.
24294 (iwmmxt_tinsrh): Likewise.
24295 (iwmmxt_tinsrw): Likewise.
24296 (iwmmxt_textrmub): Likewise.
24297 (iwmmxt_textrmsb): Likewise.
24298 (iwmmxt_textrmuh): Likewise.
24299 (iwmmxt_textrmsh): Likewise.
24300 (iwmmxt_textrmw): Likewise.
24301 (iwmxxt_wshufh): Likewise.
24302 (eqv8qi3): Likewise.
24303 (eqv4hi3): Likewise.
24304 (eqv2si3): Likewise.
24305 (gtuv8qi3): Likewise.
24306 (gtuv4hi3): Likewise.
24307 (gtuv2si3): Likewise.
24308 (gtv8qi3): Likewise.
24309 (gtv4hi3): Likewise.
24310 (gtv2si3): Likewise.
24311 (smax<mode>3_iwmmxt): Likewise.
24312 (umax<mode>3_iwmmxt): Likewise.
24313 (smin<mode>3_iwmmxt): Likewise.
24314 (umin<mode>3_iwmmxt): Likewise.
24315 (iwmmxt_wpackhss): Likewise.
24316 (iwmmxt_wpackwss): Likewise.
24317 (iwmmxt_wpackdss): Likewise.
24318 (iwmmxt_wpackhus): Likewise.
24319 (iwmmxt_wpackwus): Likewise.
24320 (iwmmxt_wpackdus): Likewise.
24321 (iwmmxt_wunpckihb): Likewise.
24322 (iwmmxt_wunpckihh): Likewise.
24323 (iwmmxt_wunpckihw): Likewise.
24324 (iwmmxt_wunpckilb): Likewise.
24325 (iwmmxt_wunpckilh): Likewise.
24326 (iwmmxt_wunpckilw): Likewise.
24327 (iwmmxt_wunpckehub): Likewise.
24328 (iwmmxt_wunpckehuh): Likewise.
24329 (iwmmxt_wunpckehuw): Likewise.
24330 (iwmmxt_wunpckehsb): Likewise.
24331 (iwmmxt_wunpckehsh): Likewise.
24332 (iwmmxt_wunpckehsw): Likewise.
24333 (iwmmxt_wunpckelub): Likewise.
24334 (iwmmxt_wunpckeluh): Likewise.
24335 (iwmmxt_wunpckeluw): Likewise.
24336 (iwmmxt_wunpckelsb): Likewise.
24337 (iwmmxt_wunpckelsh): Likewise.
24338 (iwmmxt_wunpckelsw): Likewise.
24339 (ror<mode>3): Likewise.
24340 (ashr<mode>3_iwmmxt): Likewise.
24341 (lshr<mode>3_iwmmxt): Likewise.
24342 (ashl<mode>3_iwmmxt): Likewise.
24343 (ror<mode>3_di): Likewise.
24344 (ashr<mode>3_di): Likewise.
24345 (lshr<mode>3_di): Likewise.
24346 (ashl<mode>3_di): Likewise.
24347 (iwmmxt_wmadds): Likewise.
24348 (iwmmxt_wmaddu): Likewise.
24349 (iwmmxt_tmia): Likewise.
24350 (iwmmxt_tmiaph): Likewise.
24351 (iwmmxt_tmiabb): Likewise.
24352 (iwmmxt_tmiatb): Likewise.
24353 (iwmmxt_tmiabt): Likewise.
24354 (iwmmxt_tmiatt): Likewise.
24355 (iwmmxt_tmovmskb): Likewise.
24356 (iwmmxt_tmovmskh): Likewise.
24357 (iwmmxt_tmovmskw): Likewise.
24358 (iwmmxt_waccb): Likewise.
24359 (iwmmxt_wacch): Likewise.
24360 (iwmmxt_waccw): Likewise.
24361 (iwmmxt_waligni): Likewise.
24362 (iwmmxt_walignr): Likewise.
24363 (iwmmxt_walignr0): Likewise.
24364 (iwmmxt_walignr1): Likewise.
24365 (iwmmxt_walignr2): Likewise.
24366 (iwmmxt_walignr3): Likewise.
24367 (iwmmxt_wsadb): Likewise.
24368 (iwmmxt_wsadh): Likewise.
24369 (iwmmxt_wsadbz): Likewise.
24370 (iwmmxt_wsadhz): Likewise.
24371 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
24372 (iwmmxt_wabsdiffb): Likewise.
24373 (iwmmxt_wabsdiffh): Likewise.
24374 (iwmmxt_wabsdiffw): Likewise.
24375 (iwmmxt_waddsubhx): Likewise
24376 (iwmmxt_wsubaddhx): Likewise.
24377 (addc<mode>3): Likewise.
24378 (iwmmxt_avg4): Likewise.
24379 (iwmmxt_avg4r): Likewise.
24380 (iwmmxt_wmaddsx): Likewise.
24381 (iwmmxt_wmaddux): Likewise.
24382 (iwmmxt_wmaddsn): Likewise.
24383 (iwmmxt_wmaddun): Likewise.
24384 (iwmmxt_wmulwsm): Likewise.
24385 (iwmmxt_wmulwum): Likewise.
24386 (iwmmxt_wmulsmr): Likewise.
24387 (iwmmxt_wmulumr): Likewise.
24388 (iwmmxt_wmulwsmr): Likewise.
24389 (iwmmxt_wmulwumr): Likewise.
24390 (iwmmxt_wmulwl): Likewise.
24391 (iwmmxt_wqmulm): Likewise.
24392 (iwmmxt_wqmulwm): Likewise.
24393 (iwmmxt_wqmulmr): Likewise.
24394 (iwmmxt_wqmulwmr): Likewise.
24395 (iwmmxt_waddbhusm): Likewise.
24396 (iwmmxt_waddbhusl): Likewise.
24397 (iwmmxt_wqmiabb): Likewise.
24398 (iwmmxt_wqmiabt): Likewise.
24399 (iwmmxt_wqmiatb): Likewise.
24400 (iwmmxt_wqmiatt): Likewise.
24401 (iwmmxt_wqmiabbn): Likewise.
24402 (iwmmxt_wqmiabtn): Likewise.
24403 (iwmmxt_wqmiatbn): Likewise.
24404 (iwmmxt_wqmiattn): Likewise.
24405 (iwmmxt_wmiabb): Likewise.
24406 (iwmmxt_wmiabt): Likewise.
24407 (iwmmxt_wmiatb): Likewise.
24408 (iwmmxt_wmiatt): Likewise.
24409 (iwmmxt_wmiabbn): Likewise.
24410 (iwmmxt_wmiabtn): Likewise.
24411 (iwmmxt_wmiatbn): Likewise.
24412 (iwmmxt_wmiattn): Likewise.
24413 (iwmmxt_wmiawbb): Likewise.
24414 (iwmmxt_wmiawbt): Likewise.
24415 (iwmmxt_wmiawtb): Likewise.
24416 (iwmmxt_wmiawtt): Likewise.
24417 (iwmmxt_wmiawbbn): Likewise.
24418 (iwmmxt_wmiawbtn): Likewise.
24419 (iwmmxt_wmiawtbn): Likewise.
24420 (iwmmxt_wmiawttn): Likewise.
24421 (iwmmxt_wmerge): Likewise.
24422 (iwmmxt_tandc<mode>3): Likewise.
24423 (iwmmxt_torc<mode>3): Likewise.
24424 (iwmmxt_torvsc<mode>3): Likewise.
24425 (iwmmxt_textrc<mode>3): Likewise.
24426 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
24427 (wmmxt_pack): Likewise.
24428 (wmmxt_mult_c1): Likewise.
24429 (wmmxt_mult_c2): Likewise.
24430 (wmmxt_alu_c1): Likewise.
24431 (wmmxt_alu_c2): Likewise.
24432 (wmmxt_alu_c3): Likewise.
24433 (wmmxt_transfer_c1): Likewise.
24434 (wmmxt_transfer_c2): Likewise.
24435 (wmmxt_transfer_c3): Likewise.
24436 (marvell_f_iwmmxt_wstr): Likewise.
24437 (marvell_f_iwmmxt_wldr): Likewise.
24439 2013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
24441 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
24443 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
24446 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
24447 * lra-constraints.c (need_for_split_p): Check call used hard regs
24448 living through calls.
24450 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
24451 call used regs for call insn.
24453 2013-06-28 Jakub Jelinek <jakub@redhat.com>
24456 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
24457 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
24459 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
24461 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
24463 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
24465 * lra-constraints.c (need_for_split_p): Check call used hard regs
24466 living through calls.
24468 2013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
24471 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
24472 to tie with any other modes. Eliminate Altivec vector mode tests,
24473 since these are a subset of ALTIVEC or VSX vector modes. Simplify
24474 code, to return 0 if testing MODE2 for a condition, if we've
24475 already tested MODE1 for the same condition.
24477 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
24479 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
24482 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
24484 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
24485 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
24487 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
24489 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
24491 (aarch64_symbolic_constant_p): Remove.
24492 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
24493 static. Fix line length and white space.
24494 (aarch64_symbolic_constant_p): Remove.
24495 * config/aarch64/predicates.md (aarch64_valid_symref):
24496 Use aarch64_classify_symbol_expression.
24498 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24500 * config/arm/constraints.md (Ts): New constraint.
24501 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
24503 (compare_scc): Use "Ts" constraint for operand 0.
24504 (ior_scc_scc): Likewise.
24505 (and_scc_scc): Likewise.
24506 (and_scc_scc_nodom): Likewise.
24507 (ior_scc_scc_cmp): Likewise for operand 7.
24508 (and_scc_scc_cmp): Likewise.
24509 * config/arm/thumb2.md (thumb2_movsi_insn):
24510 Add alternatives for 16-bit encodings.
24511 (thumb2_movhi_insn): Likewise.
24512 (thumb2_movsicc_insn): Likewise.
24513 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
24514 (thumb2_negscc): Use "Ts" constraint.
24515 Move mvn instruction outside cond_exec block.
24516 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
24517 for 16-bit encodings.
24519 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24521 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
24523 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
24524 (mulsi3subsi): Likewise.
24525 (mulsidi3adddi): Likewise.
24526 (mulsidi3_v6): Likewise.
24527 (umulsidi3_v6): Likewise.
24528 (umulsidi3adddi_v6): Likewise.
24529 (smulsi3_highpart_v6): Likewise.
24530 (umulsi3_highpart_v6): Likewise.
24531 (mulhisi3tb): Likewise.
24532 (mulhisi3bt): Likewise.
24533 (mulhisi3tt): Likewise.
24534 (maddhisi4): Likewise.
24535 (maddhisi4tb): Likewise.
24536 (maddhisi4tt): Likewise.
24537 (maddhidi4): Likewise.
24538 (maddhidi4tb): Likewise.
24539 (maddhidi4tt): Likewise.
24540 (zeroextractsi_compare0_scratch): Likewise.
24541 (insv_zero): Likewise.
24542 (insv_t2): Likewise.
24543 (anddi_notzesidi_di): Likewise.
24544 (anddi_notsesidi_di): Likewise.
24545 (andsi_notsi_si): Likewise.
24546 (iordi_zesidi_di): Likewise.
24547 (xordi_zesidi_di): Likewise.
24548 (andsi_iorsi3_notsi): Likewise.
24549 (smax_0): Likewise.
24550 (smax_m1): Likewise.
24551 (smin_0): Likewise.
24552 (not_shiftsi): Likewise.
24553 (unaligned_loadsi): Likewise.
24554 (unaligned_loadhis): Likewise.
24555 (unaligned_loadhiu): Likewise.
24556 (unaligned_storesi): Likewise.
24557 (unaligned_storehi): Likewise.
24558 (extv_reg): Likewise.
24559 (extzv_t2): Likewise.
24560 (divsi3): Likewise.
24561 (udivsi3): Likewise.
24562 (arm_zero_extendhisi2addsi): Likewise.
24563 (arm_zero_extendqisi2addsi): Likewise.
24564 (compareqi_eq0): Likewise.
24565 (arm_extendhisi2_v6): Likewise.
24566 (arm_extendqisi2addsi): Likewise.
24567 (arm_movt): Likewise.
24568 (thumb2_ldrd): Likewise.
24569 (thumb2_ldrd_base): Likewise.
24570 (thumb2_ldrd_base_neg): Likewise.
24571 (thumb2_strd): Likewise.
24572 (thumb2_strd_base): Likewise.
24573 (thumb2_strd_base_neg): Likewise.
24574 (arm_negsi2): Add alternative for 16-bit encoding.
24575 (arm_one_cmplsi2): Likewise.
24577 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24579 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
24580 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
24581 (movdfcc): Likewise.
24582 * config/arm/vfp.md (*thumb2_movsf_vfp):
24583 Disable predication for arm_restrict_it.
24584 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
24585 (*thumb2_movdfcc_vfp): Likewise.
24586 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
24587 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
24588 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
24589 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
24590 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
24591 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
24592 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
24593 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
24594 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
24595 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
24596 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
24597 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
24598 Disable predication for arm_restrict_it.
24600 2013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
24602 * config/i386/bmiintrin.h (_bextr_u32): New.
24603 (_bextr_u64): Ditto.
24605 2013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
24607 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
24608 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
24609 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
24610 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
24611 * config/mips/n32-elf.h: ...this new file.
24613 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
24616 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
24617 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
24619 2013-06-27 Catherine Moore <clm@codesourcery.com>
24621 * config/mips/mips-tables.opt: Regenerate.
24622 * config/mips/mips-cpus.def: Add m14ke and m14kec.
24623 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
24624 * doc/invoke.texi: Add -m14kc.
24626 2013-06-27 Jakub Jelinek <jakub@redhat.com>
24629 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
24630 constraints of operand 1 and 2.
24633 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
24634 to match RTL canonicalization. Swap predicates and
24635 constraints of operand 1 and 2.
24637 2013-06-27 Vladimir Makarov <vmakarov@redhat.com>
24639 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
24640 Process OP_INOUT regs for splitting too.
24642 2013-06-27 Jakub Jelinek <jakub@redhat.com>
24644 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
24645 decl before the loop, initialize to NULL.
24646 (vectorizable_load): Initialize ptr_incr to NULL.
24648 2013-06-27 Martin Jambor <mjambor@suse.cz>
24651 * ipa-ref.h (ipa_maybe_record_reference): Declare.
24652 * ipa-ref.c (ipa_maybe_record_reference): New function.
24653 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
24654 * ipa-cp.c (create_specialized_node): Record potential references from
24656 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
24658 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
24660 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
24661 parameter 'mode' of type 'enum machine_mode mode'; change to pass
24662 'mode' to force_reg.
24663 (aarch64_add_offset): Update calls to aarch64_force_temporary.
24664 (aarch64_expand_mov_immediate): Likewise.
24666 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
24668 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
24669 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
24671 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24673 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
24674 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
24675 (struct machine_function): Add tbegin_p.
24676 (s390_canonicalize_comparison): Fold CC mode compares to
24677 conditional jump if possible.
24678 (s390_emit_jump): Return the emitted jump.
24679 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
24680 Handle CCRAWmode compares.
24681 (s390_option_override): Default to -mhtm if available.
24682 (s390_reg_clobbered_rtx): Handle floating point regs as well.
24683 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
24684 FPRs instead of df_regs_ever_live_p.
24685 (s390_optimize_nonescaping_tx): New function.
24686 (s390_init_frame_layout): Extend clobbered_regs array to cover
24688 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
24689 (s390_expand_tbegin): New function.
24690 (enum s390_builtin): New enum definition.
24691 (code_for_builtin): New array definition.
24692 (s390_init_builtins): New function.
24693 (s390_expand_builtin): New function.
24694 (TARGET_INIT_BUILTINS): Define.
24695 (TARGET_EXPAND_BUILTIN): Define.
24696 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
24697 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
24698 (s390_alc_comparison): Likewise.
24699 * config/s390/s390-modes.def: Add CCRAWmode.
24700 * config/s390/s390.h (processor_flags): Add PF_TX.
24701 (TARGET_CPU_HTM): Define macro.
24702 (TARGET_HTM): Define macro.
24703 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
24704 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
24705 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
24706 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
24707 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
24708 (TBEGIN_MASK, TBEGINC_MASK): New constants.
24709 ("*cc_to_int"): Move up.
24710 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
24711 constants other than 0.
24712 ("*ccraw_to_int"): New insn and splitter definition.
24713 ("tbegin", "tbegin_nofloat", "tbegin_retry")
24714 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
24715 ("tx_assist"): New expander.
24716 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
24717 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
24718 * config/s390/s390.opt: Add -mhtm option.
24719 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
24720 * config/s390/htmxlintrin.h: New file.
24721 * config/s390/htmintrin.h: New file.
24722 * config/s390/s390intrin.h: New file.
24723 * doc/extend.texi: Document htm builtins.
24724 * config.gcc: Add the new header files to extra_headers.
24726 2013-06-26 Thomas Schwinge <thomas@codesourcery.com>
24728 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
24729 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
24731 2013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
24732 Pat Haugen <pthaugen@us.ibm.com>
24733 Peter Bergner <bergner@vnet.ibm.com>
24735 * config/rs6000/power8.md: New.
24736 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
24737 setting for power8 entry.
24738 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
24739 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
24740 test for Power4/Power5 only.
24741 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
24743 (force_new_group): Adjust comment.
24744 * config/rs6000/rs6000.md: Include power8.md.
24746 2013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
24748 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
24749 * config/arm/arm-protos.h (arm_max_conditional_execute): New
24751 (tune_params): Update comment.
24752 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
24753 (arm_max_conditional_execute): New function.
24754 (thumb2_final_prescan_insn): Use max_insn_skipped and
24755 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
24757 2013-06-25 Jakub Jelinek <jakub@redhat.com>
24759 PR tree-optimization/57705
24760 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
24761 SSA_NAME step, provided that it is not defined inside the loop.
24762 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
24763 (get_initial_def_for_induction): Handle SSA_NAME IV step.
24765 2013-06-25 Martin Jambor <mjambor@suse.cz>
24767 PR middle-end/57670
24768 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
24769 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
24771 (ipa_note_param_call): Initialize member_ptr flag.
24772 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
24773 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
24774 (ipa_write_indirect_edge_info): Stream member_ptr flag.
24775 (ipa_read_indirect_edge_info): Likewise.
24777 2013-06-25 Richard Biener <rguenther@suse.de>
24779 PR middle-end/56977
24780 * passes.c (init_optimization_passes): Move pass_fold_builtins
24781 and pass_dce earlier with -Og.
24783 2013-06-25 Eric Botcazou <ebotcazou@adacore.com>
24785 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
24786 <BIT_FIELD_REF>: Remove trailing TAB.
24787 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
24790 2013-06-24 Martin Jambor <mjambor@suse.cz>
24792 PR tree-optimization/57358
24793 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
24794 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
24795 (ipa_analyze_params_uses): Generate pessimistic info when true.
24797 2013-06-24 Martin Jambor <mjambor@suse.cz>
24799 PR tree-optimization/57539
24800 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
24801 global.inlined_to of the new node to it. All callers changed.
24802 * ipa-inline-transform.c (clone_inlined_nodes): New variable
24803 inlining_into, pass it to cgraph_clone_node.
24804 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
24805 ipa_free_edge_args_substructures.
24806 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
24807 rdesc linked list. Do not assert rdesc edges have inlined caller.
24808 Assert we have found an rdesc in the rdesc list.
24810 2013-06-24 Richard Biener <rguenther@suse.de>
24812 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
24813 (pointer_set_lookup): Declare.
24814 (class pointer_map): New template class implementing a
24815 generic pointer to T map.
24816 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
24817 pointer_map<T>::contains, pointer_map<T>::insert,
24818 pointer_map<T>::traverse): New functions.
24819 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
24820 (pointer_set_lookup): New function.
24821 (pointer_set_contains): Use pointer_set_lookup.
24822 (pointer_set_insert): Likewise.
24823 (insert_aux): Remove.
24824 (struct pointer_map_t): Embed a pointer_set_t.
24825 (pointer_map_create): Adjust.
24826 (pointer_map_destroy): Likewise.
24827 (pointer_map_contains): Likewise.
24828 (pointer_map_insert): Likewise.
24829 (pointer_map_traverse): Likewise.
24830 * tree-streamer.h (struct streamer_tree_cache_d): Use a
24831 pointer_map<unsigned> instead of a pointer_map_t.
24832 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
24833 (streamer_tree_cache_lookup): Likewise.
24834 (streamer_tree_cache_create): Likewise.
24835 (streamer_tree_cache_delete): Likewise.
24836 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
24837 pointer_map<unsigned> instead of a pointer_map_t.
24838 (lto_init_tree_ref_encoder): Adjust.
24839 (lto_destroy_tree_ref_encoder): Likewise.
24840 * lto-section-out.c (lto_output_decl_index): Likewise.
24841 (lto_record_function_out_decl_state): Likewise.
24842 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
24844 2013-06-24 Richard Biener <rguenther@suse.de>
24846 PR tree-optimization/57488
24847 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
24849 2013-06-24 Alan Modra <amodra@gmail.com>
24851 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
24852 (gen_easy_altivec_constant): Likewise.
24853 * config/rs6000/predicates.md (easy_vector_constant_add_self,
24854 easy_vector_constant_msb): Likewise.
24856 2013-06-23 Jakub Jelinek <jakub@redhat.com>
24859 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
24860 add missing return true.
24862 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
24865 * config/sh/predicates.md (general_extend_operand): Invoke
24866 general_movsrc_operand for memory operands.
24867 (general_movsrc_operand): Allow reg+reg addressing, do not use
24868 general_operand for memory operands.
24870 2013-06-23 Sriraman Tallam <tmsriram@google.com>
24872 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
24873 when current target options does not apply.
24874 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
24875 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
24876 * config/i386/bmiintrin.h: Pass appropriate target
24877 attributes to header.
24878 * config/i386/mmintrin.h: Ditto.
24879 * config/i386/nmmintrin.h: Ditto.
24880 * config/i386/avx2intrin.h: Ditto.
24881 * config/i386/fxsrintrin.h: Ditto.
24882 * config/i386/tbmintrin.h: Ditto.
24883 * config/i386/xsaveintrin.h: Ditto.
24884 * config/i386/f16cintrin.h: Ditto.
24885 * config/i386/xtestintrin.h: Ditto.
24886 * config/i386/xsaveoptintrin.h: Ditto.
24887 * config/i386/bmi2intrin.h: Ditto.
24888 * config/i386/lzcntintrin.h: Ditto.
24889 * config/i386/smmintrin.h: Ditto.
24890 * config/i386/wmmintrin.h: Ditto.
24891 * config/i386/x86intrin.h: Remove all header include guards.
24892 * config/i386/prfchwintrin.h: Ditto.
24893 * config/i386/pmmintrin.h: Ditto.
24894 * config/i386/tmmintrin.h: Ditto.
24895 * config/i386/xmmintrin.h: Ditto.
24896 * config/i386/popcntintrin.h: Ditto.
24897 * config/i386/rdseedintrin.h: Ditto.
24898 * config/i386/ammintrin.h: Ditto.
24899 * config/i386/emmintrin.h: Ditto.
24900 * config/i386/immintrin.h: Remove all header include guards.
24901 * config/i386/fma4intrin.h: Ditto.
24902 * config/i386/lwpintrin.h: Ditto.
24903 * config/i386/xopintrin.h: Ditto.
24904 * config/i386/ia32intrin.h: Ditto.
24905 * config/i386/avxintrin.h: Ditto.
24906 * config/i386/rtmintrin.h: Ditto.
24907 * config/i386/fmaintrin.h: Ditto.
24908 * config/i386/mm3dnow.h: Ditto.
24910 2013-06-22 Sriraman Tallam <tmsriram@google.com>
24912 * common/config/i386/i386-common.c: Handle LZCNT.
24914 2013-06-22 Andi Kleen <ak@linux.intel.com>
24916 * doc/extend.texi: Use __atomic_store_n instead of
24917 __atomic_store in HLE example.
24919 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
24921 * config/sh/sh.c: Remove <cstdlib> workaround.
24923 2013-06-21 Andi Kleen <ak@linux.intel.com>
24925 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
24927 2013-06-21 Andi Kleen <ak@linux.intel.com>
24929 * doc/extend.texi: Document that __atomic_clear and
24930 __atomic_test_and_set should only be used with bool.
24932 2013-06-20 Jan Hubicka <jh@suse.cz>
24934 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
24935 types_same_for_odr.
24936 * tree.c (decls_same_for_odr): New function.
24937 (same_for_edr): New function.
24938 (types_same_for_odr): New function.
24939 (get_binfo_at_offset): Use it.
24940 * tree.h (types_same_for_odr): Declare.
24942 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
24943 Jason Merrill <jason@redhat.com>
24945 * system.h: Include <cstdlib> as well as <stdlib.h>.
24947 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
24950 * config/i386/i386.c (construct_container): Report error if
24951 long double is used with disabled x87 float returns.
24953 2013-06-20 Jan Hubicka <jh@suse.cz>
24955 * lto-cgraph.c (input_symtab): Do not set cgraph state.
24957 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
24959 PR rtl-optimization/57425
24960 PR rtl-optimization/57569
24961 * alias.c (write_dependence_p): Remove parameters mem_mode and
24962 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
24963 Changed all callers.
24964 (canon_anti_dependence): Get comments and semantics in sync.
24965 Add parameter mem_canonicalized. Changed all callers.
24966 * rtl.h (canon_anti_dependence): Update prototype.
24968 2013-06-20 Richard Biener <rguenther@suse.de>
24970 * data-streamer-in.c (streamer_read_uhwi): Optimize single
24971 byte case, inline streamer_read_uchar and defer section
24974 2013-06-20 Richard Biener <rguenther@suse.de>
24976 PR tree-optimization/57584
24977 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
24978 SSA names into the expanded expression that take part in
24979 abnormal coalescing.
24981 2013-06-19 Sharad Singhai <singhai@google.com>
24983 * gcov.c (print_usage): Handle new option.
24984 (process_args): Ditto.
24985 (get_gcov_intermediate_filename): New function.
24986 (output_intermediate_file): New function.
24987 (output_gcov_file): New function
24988 (generate_results): Handle new option.
24989 (release_function): Relase demangled name.
24990 (read_graph_file): Handle demangled name.
24991 (output_lines): Ditto.
24992 * doc/gcov.texi: Document gcov intermediate format.
24994 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
24997 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
24998 (lra_emit_add): Use the functions. Add comment about Y as an
25001 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
25004 * collect2.c (collect_atexit): New.
25005 (collect_exit): Delete.
25006 (main): Register collect_atexit with atexit.
25007 (collect_wait): Change collect_exit to exit.
25009 * collect2.h (collect_exit): Delete.
25010 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
25012 2013-06-19 Wei Mi <wmi@google.com>
25014 PR rtl-optimization/57518
25015 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
25016 if regno is used in paradoxical subreg.
25017 (update_equiv_regs): Check pdx_subregs[regno] before
25018 set a reg to be equivalent with a mem.
25020 2013-06-19 Matthias Klose <doko@ubuntu.com>
25023 * file-find.h (find_a_file): Add a mode parameter.
25024 * file-find.c (find_a_file): Likewise.
25025 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
25026 with X_OK for the executables.
25027 * collect2.c (main): Call find_a_file with X_OK.
25029 2013-06-19 Steve Ellcey <sellcey@mips.com>
25032 * config/mips/mips.md (casesi_internal_mips16_<mode>):
25033 Use NEXT_INSN instead of next_real_insn.
25035 2013-06-19 Jan Hubicka <jh@suse.cz>
25037 * cgraph.h (const_value_known_p): Replace by ...
25038 (ctor_for_folding): .. this one.
25039 * cgraphunit.c (process_function_and_variable_attributes): Use it.
25040 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
25041 * expr.c (expand_expr_real_1): Likewise.
25042 (string_constant): Likewise.
25043 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
25044 * ipa.c (process_references): Likewise.
25045 (symtab_remove_unreachable_nodes): Likewise.
25046 * ipa-inline-analysis.c (param_change_prob): Likewise.
25047 * gimple-fold.c (canonicalize_constructor_val): Likewise.
25048 (get_base_constructor): Likwise.
25049 * varpool.c (varpool_remove_node): Likewise.
25050 (varpool_remove_initializer): LIkewise.
25051 (dump_varpool_node): LIkwise.
25052 (const_value_known_p): Rewrite to ...
25053 (ctor_for_folding): ... this one.
25055 2013-06-19 Jakub Jelinek <jakub@redhat.com>
25058 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
25059 PERSONALITY in $PATH derived prefixes.
25061 2013-06-19 Jeff Law <law@redhat.com>
25063 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
25066 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
25067 (simplify_bitwise_binary): Use it to simpify certain binary ops on
25070 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
25072 * config/arm/vfp.md: Move VFP instruction classification documentation
25074 * config/arm/arm.md: ... here. Update instruction classification
25077 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
25079 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
25080 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
25081 pattern. Use more efficient sequences on ARMv5 and Thumb2.
25083 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
25086 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
25087 with NEXT_INSN. Use tablejump_p to check for jump table data
25090 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
25093 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
25094 that now in C++ the value is correct per the C++ standards.
25096 2013-06-19 Richard Biener <rguenther@suse.de>
25098 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
25099 for global context.
25101 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25104 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25107 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
25108 with next_active_insn.
25110 2013-06-18 Sriraman Tallam <tmsriram@google.com>
25112 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
25113 functions are inlined during failures to flag an error.
25114 * tree-inline.c (expand_call_inline): Allow the error to be flagged
25115 in early inline pass.
25117 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
25119 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
25122 2013-06-18 Julian Brown <julian@codesourcery.com>
25124 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
25125 Permit virtual register pre-reload if !strict.
25126 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
25128 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
25130 * config/arm/neon.md (movmisalign<mode>): Use
25131 neon_perm_struct_or_reg_operand instead of
25132 neon_struct_or_register_operand.
25133 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
25134 neon_permissive_struct_operand instead of neon_struct_operand.
25135 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
25136 neon_vector_mem_operand.
25137 * config/arm/predicates.md (neon_struct_operand): Adjust call to
25138 neon_vector_mem_operand.
25139 (neon_permissive_struct_operand): New.
25140 (neon_struct_or_register_operand): Rename to...
25141 (neon_perm_struct_or_reg_operand): This. Adjust call to
25142 neon_vector_mem_operand.
25144 2013-06-18 Richard Biener <rguenther@suse.de>
25146 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
25147 * lto-streamer.h: Include pointer-set.h.
25148 (struct lto_decl_slot): Remove.
25149 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
25150 Remove next_index entry.
25151 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
25152 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
25153 (lto_init_tree_ref_encoder): Adjust.
25154 (lto_destroy_tree_ref_encoder): Likewise.
25155 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
25156 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
25157 (lto_output_decl_index): Adjust.
25158 (lto_new_out_decl_state): Likewise.
25159 (lto_record_function_out_decl_state): Likewise.
25160 * lto-streamer-out.c (copy_function): Likewise.
25162 2013-06-18 Richard Biener <rguenther@suse.de>
25164 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
25165 * cgraphunit.c: Include cfgloop.h.
25166 (init_lowered_empty_function): Initialize the loop tree.
25167 (assemble_thunk): Insert new BBs into loops.
25169 2013-06-18 Richard Biener <rguenther@suse.de>
25171 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
25172 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
25173 the map from cache entry to cache index optional.
25174 (streamer_tree_cache_replace_tree): Adjust accordingly.
25175 (streamer_tree_cache_append): Likewise.
25176 (streamer_tree_cache_delete): Likewise.
25177 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
25178 streamer cache map from cache entry to cache index.
25179 * lto-streamer-out.c (create_output_block): Adjust.
25181 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
25183 * config/arm/arm.md (attribute "insn"): Move multiplication and
25184 division attributes to...
25185 (attribute "type"): ... here. Remove mult.
25186 (attribute "mul32"): New attribute.
25187 (attribute "mul64"): Add umaal.
25188 (*arm_mulsi3): Update attributes.
25189 (*arm_mulsi3_v6): Likewise.
25190 (*thumb_mulsi3): Likewise.
25191 (*thumb_mulsi3_v6): Likewise.
25192 (*mulsi3_compare0): Likewise.
25193 (*mulsi3_compare0_v6): Likewise.
25194 (*mulsi_compare0_scratch): Likewise.
25195 (*mulsi_compare0_scratch_v6): Likewise.
25196 (*mulsi3addsi): Likewise.
25197 (*mulsi3addsi_v6): Likewise.
25198 (*mulsi3addsi_compare0): Likewise.
25199 (*mulsi3addsi_compare0_v6): Likewise.
25200 (*mulsi3addsi_compare0_scratch): Likewise.
25201 (*mulsi3addsi_compare0_scratch_v6): Likewise.
25202 (*mulsi3subsi): Likewise.
25203 (*mulsidi3adddi): Likewise.
25204 (*mulsi3addsi_v6): Likewise.
25205 (*mulsidi3adddi_v6): Likewise.
25206 (*mulsidi3_nov6): Likewise.
25207 (*mulsidi3_v6): Likewise.
25208 (*umulsidi3_nov6): Likewise.
25209 (*umulsidi3_v6): Likewise.
25210 (*umulsidi3adddi): Likewise.
25211 (*umulsidi3adddi_v6): Likewise.
25212 (*smulsi3_highpart_nov6): Likewise.
25213 (*smulsi3_highpart_v6): Likewise.
25214 (*umulsi3_highpart_nov6): Likewise.
25215 (*umulsi3_highpart_v6): Likewise.
25216 (mulhisi3): Likewise.
25217 (*mulhisi3tb): Likewise.
25218 (*mulhisi3bt): Likewise.
25219 (*mulhisi3tt): Likewise.
25220 (maddhisi4): Likewise.
25221 (*maddhisi4tb): Likewise.
25222 (*maddhisi4tt): Likewise.
25223 (maddhidi4): Likewise.
25224 (*maddhidi4tb): Likewise.
25225 (*maddhidi4tt): Likewise.
25226 (divsi3): Likewise.
25227 (udivsi3): Likewise.
25228 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
25229 (thumb2_mulsi_short_compare0): Likewise.
25230 (thumb2_mulsi_short_compare0_scratch): Likewise.
25231 * config/arm/arm1020e.md (1020mult1): Update attribute change.
25232 (1020mult2): Likewise.
25233 (1020mult3): Likewise.
25234 (1020mult4): Likewise.
25235 (1020mult5): Likewise.
25236 (1020mult6): Likewise.
25237 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
25239 (cortex_a15_mult64): Likewise.
25240 (cortex_a15_sdiv): Likewise.
25241 (cortex_a15_udiv): Likewise.
25242 * config/arm/arm1026ejs.md (mult1): Update attribute change.
25248 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
25249 (pj4_ir_div): Likewise.
25250 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
25251 (11_mult2): Likewise.
25252 (11_mult3): Likewise.
25253 (11_mult4): Likewise.
25254 (11_mult5): Likewise.
25255 (11_mult6): Likewise.
25256 (11_mult7): Likewise.
25257 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
25258 (cortex_a8_mla): Likewise.
25259 (cortex_a8_mull): Likewise.
25260 (cortex_a8_smulwy): Likewise.
25261 (cortex_a8_smlald): Likewise.
25262 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
25263 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
25264 (cortex_r4_mul_3): Likewise.
25265 (cortex_r4_mla_4): Likewise.
25266 (cortex_r4_mla_3): Likewise.
25267 (cortex_r4_smlald): Likewise.
25268 (cortex_r4_mull): Likewise.
25269 (cortex_r4_sdiv): Likewise.
25270 (cortex_r4_udiv): Likewise.
25271 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
25272 (cortex_a7_idiv): Likewise.
25273 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
25274 (9_mult2): Likewise.
25275 (9_mult3): Likewise.
25276 (9_mult4): Likewise.
25277 (9_mult5): Likewise.
25278 (9_mult6): Likewise.
25279 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
25280 (cortex_a53_sdiv): Likewise.
25281 (cortex_a53_udiv): Likewise.
25282 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
25283 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
25284 (mp626_mult2): Likewise.
25285 (mp626_mult3): Likewise.
25286 (mp626_mult4): Likewise.
25287 * config/arm/fa526.md (526_mult1): Update attribute change.
25288 (526_mult2): Likewise.
25289 * config/arm/arm-generic.md (mult): Update attribute change.
25290 (mult_ldsched_strongarm): Likewise.
25291 (mult_ldsched): Likewise.
25292 (multi_cycle): Likewise.
25293 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
25294 * config/arm/fa606te.md (606te_mult1): Update attribute change.
25295 (606te_mult2): Likewise.
25296 (606te_mult3): Likewise.
25297 (606te_mult4): Likewise.
25298 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
25299 (cortex_a9_mac16): Likewise.
25300 (cortex_a9_multiply): Likewise.
25301 (cortex_a9_mac): Likewise.
25302 (cortex_a9_multiply_long): Likewise.
25303 * config/arm/fa626te.md (626te_mult1): Update attribute change.
25304 (626te_mult2): Likewise.
25305 (626te_mult3): Likewise.
25306 (626te_mult4): Likewise.
25308 2013-06-18 Richard Biener <rguenther@suse.de>
25311 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
25313 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25316 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
25317 with next_active_insn.
25319 2013-06-18 Alan Modra <amodra@gmail.com>
25321 * config/rs6000/rs6000.h (enum data_align): New.
25322 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
25323 (DATA_ABI_ALIGNMENT): Define.
25324 (CONSTANT_ALIGNMENT): Correct comment.
25325 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
25326 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
25328 2013-06-17 David Malcolm <dmalcolm@redhat.com>
25330 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
25331 ATTRIBUTE_UNUSED marking.
25333 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
25335 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
25336 alternative and update.
25337 (aarch64_dup_lanedi): Delete.
25338 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
25339 * config/aarch64/aarch64-simd-builtins.def: Update.
25341 2013-06-17 Richard Biener <rguenther@suse.de>
25343 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
25344 (lto_input_scc): Declare.
25345 (lto_input_tree_1): Likewise.
25346 (struct lto_stats_d): Add num_tree_bodies_output and
25347 num_pickle_refs_output.
25348 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
25349 (lto_read_tree_1): Split out from ...
25350 (lto_read_tree): ... this.
25351 (lto_input_scc): New function.
25352 (lto_input_tree_1): Split out from ...
25353 (lto_input_tree): ... this. Handle LTO_tree_scc.
25354 (lto_data_in_create): Create the streamer cache without hashes.
25355 * lto-streamer-out.c (create_output_block): Create the streamer
25356 cache with hashes when not doing WPA.
25357 (lto_write_tree_1): Split out from ...
25358 (lto_write_tree): ... this.
25359 (get_symbol_initial_value): New function.
25360 (lto_output_tree_1): Split out from ...
25361 (lto_output_tree): ... this. Write trees as series of SCCs
25362 using a DFS walk via DFS_write_tree.
25363 (struct sccs, struct scc_entry): New types.
25364 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
25365 (DFS_write_tree_body): New function.
25366 (DFS_write_tree): Likewise.
25367 (hash_tree): Likewise.
25368 (scc_entry_compare): Likewise.
25369 (hash_scc): Likewise.
25370 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
25371 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
25372 TREE_CHAIN as regular reference.
25373 (streamer_read_integer_cst): Remove.
25374 (streamer_get_pickled_tree): Adjust.
25375 * tree-streamer-out.c (streamer_write_chain): Disable streaming
25376 of DECL_EXTERNALs in BLOCK_VARS for now.
25377 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
25379 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
25380 Add hash value argument and record that if hashes are recorded
25382 (streamer_tree_cache_insert_1): Adjust.
25383 (streamer_tree_cache_insert): Likewise.
25384 (streamer_tree_cache_insert_at): Rename to ...
25385 (streamer_tree_cache_replace_tree): ... this and adjust.
25386 (streamer_tree_cache_append): Adjust.
25387 (record_common_node): Likewise.
25388 (streamer_tree_cache_create): Add argument whether to
25389 record hash values together with trees.
25390 (streamer_tree_cache_delete): Adjust.
25391 * tree-streamer.h (struct streamer_tree_cache_d): Add
25393 (streamer_read_integer_cst): Remove.
25394 (streamer_tree_cache_insert): Adjust.
25395 (streamer_tree_cache_append): Likewise.
25396 (streamer_tree_cache_insert_at): Rename to ...
25397 (streamer_tree_cache_replace_tree): ... this and adjust.
25398 (streamer_tree_cache_create): Add argument whether to record hashes.
25399 (streamer_tree_cache_get): Rename to ...
25400 (streamer_tree_cache_get_tree): ... this.
25401 (streamer_tree_cache_get_hash): New function.
25402 * tree.c (cache_integer_cst): New function.
25403 * tree.h (cache_integer_cst): Declare.
25404 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
25405 * lto-symtab.c (lto_varpool_replace_node): Only release
25406 DECL_INITIAL of non-prevailing decls.
25407 * varpool.c (varpool_remove_initializer): Do not release
25408 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
25410 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
25412 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
25413 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
25414 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
25415 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
25416 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
25417 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
25418 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
25419 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
25420 instead of TARGET_64BIT.
25421 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
25422 Require ISA_HAS_<D>DIV.
25424 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
25426 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
25427 (mips*-*-linux*): Move default with_llsc setting to where other
25429 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
25431 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
25432 Likewise. Remove default with_tune setting. Move default float
25433 setting to its own block. Handle with_llsc in the same block as above.
25435 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
25437 PR rtl-optimization/57425
25438 PR rtl-optimization/57569
25439 * alias.c (write_dependence_p): Add new parameters mem_mode,
25440 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
25441 Changed all callers.
25442 (canon_anti_dependence): New function.
25443 * cse.c (check_dependence): Use canon_anti_dependence.
25444 * cselib.c (cselib_invalidate_mem): Likewise.
25445 * rtl.h (canon_anti_dependence): Declare.
25447 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
25449 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
25450 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
25451 ".set mips3" for 64-bit targets.
25453 2013-06-15 Dehao Chen <dehao@google.com>
25455 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
25456 * gimple-low.c (gimple_check_call_matching_types): Likewise.
25457 (gimple_check_call_args): Likewise.
25458 * value-prof.c (check_ic_target): Likewise.
25459 * ipa-inline.c (early_inliner): Likewise.
25460 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
25461 * cgraph.c (cgraph_create_edge_1): Likewise.
25462 (cgraph_make_edge_direct): Likewise.
25464 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
25467 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
25468 rs6000_output_move_128bit to handle emitting quad memory
25469 operations. Set attribute length to 8 bytes.
25471 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
25473 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
25475 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
25476 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
25477 (aarch64_<su>mlsl<mode>): Likewise.
25479 2013-06-14 Mike Stump <mikestump@comcast.net>
25481 * Makefile.in (TARGET_H): Add insn-codes.h.
25483 2013-06-14 Alan Modra <amodra@gmail.com>
25485 PR middle-end/57134
25486 PR middle-end/57586
25487 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
25488 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
25489 bitfield expansion when EXPAND_MEMORY.
25490 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
25492 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
25494 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
25495 test for clearing quad memory on 32-bit later.
25497 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
25499 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
25500 (fold_negate_expr): Likewise.
25501 (fold_real_zero_addition_p): Handle vectors.
25502 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
25504 2013-06-14 Alan Modra <amodra@gmail.com>
25506 * varasm.c (force_const_mem): Revert 2013-06-07 change.
25508 2013-06-13 Jan Hubicka <jh@suse.cz>
25510 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
25511 Local comdats are not externally visible.
25512 * symtab.c (dump_symtab_base): Dump externally visible.
25513 (verify_symtab_base): Verify back links in the symtab hash.
25515 2013-06-13 Bin Cheng <bin.cheng@arm.com>
25517 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
25518 CONVERT_EXPR as equal nodes.
25520 2013-06-13 Bin Cheng <bin.cheng@arm.com>
25522 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
25524 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
25526 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
25527 Generalize to complex and vector.
25528 * tree.c (build_all_ones_cst): New function.
25529 * tree.h (build_all_ones_cst): Declare it.
25531 2013-06-13 Alan Modra <amodra@gmail.com>
25533 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
25534 * config/rs6000/rs6000.md (signbittf2): New insn.
25535 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
25536 (abstf2_internal, cmptf_internal2): Likewise.
25537 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
25539 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
25540 Pat Haugen <pthaugen@us.ibm.com>
25541 Peter Bergner <bergner@vnet.ibm.com>
25543 * config/rs6000/rs6000.c (emit_load_locked): Add support for
25544 power8 byte, half-word, and quad-word atomic instructions.
25545 (emit_store_conditional): Likewise.
25546 (rs6000_expand_atomic_compare_and_swap): Likewise.
25547 (rs6000_expand_atomic_op): Likewise.
25549 * config/rs6000/sync.md (larx): Add new modes for power8.
25551 (AINT): New mode iterator to include TImode as well as normal
25552 integer modes on power8.
25553 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
25554 that VSX registers are not considered. Use AINT mode iterator
25555 instead of INT1 to allow inclusion of quad word atomic operations
25557 (load_locked<mode>): Likewise.
25558 (store_conditional<mode>): Likewise.
25559 (atomic_compare_and_swap<mode>): Likewise.
25560 (atomic_exchange<mode>): Likewise.
25561 (atomic_nand<mode>): Likewise.
25562 (atomic_fetch_<fetchop_name><mode>): Likewise.
25563 (atomic_nand_fetch<mode>): Likewise.
25564 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
25566 (ATOMIC): On power8, add QImode, HImode modes.
25567 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
25568 modes that promote to SImode.
25569 (load_lockedti): Convert TImode arguments to PTImode, so that we
25570 get a guaranteed even/odd register pair.
25571 (load_lockedpti): Likewise.
25572 (store_conditionalti): Likewise.
25573 (store_conditionalpti): Likewise.
25575 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
25576 atomic load/store instructions.
25579 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
25581 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
25583 (insn_count): New attribute, with most cases extracted from...
25584 (length): ...here. Redefine most cases in terms of insn_count.
25585 (single_insn): Delete.
25586 (can_delay): Use insn_count to check for single instructions.
25587 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
25588 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
25589 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
25590 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
25591 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
25592 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
25593 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
25594 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
25595 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
25596 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
25597 rather than "length".
25598 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
25599 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
25600 Use "insn_count" rather than "length".
25601 * config/mips/mips-dsp.md
25602 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
25603 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
25606 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
25608 PR tree-optimization/57361
25609 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
25611 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
25613 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
25615 (aarch64_simd_combine<mode>): New instruction expansion.
25616 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
25617 function prototype.
25618 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
25619 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
25621 2013-06-12 Jan Hubicka <jh@suse.cz>
25623 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
25624 decl has when in streaming stage.
25625 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
25626 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
25628 2013-06-12 Roland Stigge <stigge@antcom.de>
25631 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
25633 2013-06-12 Jakub Jelinek <jakub@redhat.com>
25635 PR tree-optimization/57537
25636 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
25637 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
25639 2013-06-12 Richard Biener <rguenther@suse.de>
25641 * data-streamer.h (streamer_write_char_stream): CSE
25642 obs->current_pointer.
25643 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
25644 streamer_write_char_stream manually and optimize the resulting loop.
25645 (streamer_write_hwi_stream): Likewise.
25647 2013-06-12 Jan Hubicka <jh@suse.cz>
25649 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
25650 * cgraph.h (varpool_create_empty_node): Declare.
25651 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
25653 * symtab.c (symtab_unregister_node): Be lax about missin entries
25655 (symtab_get_node): Update comment.
25656 * varpool.c (varpool_create_empty_node): Break out from ...
25657 (varpool_node_for_decl): ... here.
25658 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
25660 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
25662 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
25663 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
25664 part. Use straight-line flow at the end.
25665 <COMPONENT_REF>: Remove superfluous else.
25666 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
25668 2013-06-12 Jakub Jelinek <jakub@redhat.com>
25671 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
25672 target hook even for !TREE_PUBLIC decls. If no resolution info
25673 is available, return false for common and external decls.
25675 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
25677 * config/rl78/constraints.md (U): New constraint.
25678 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
25681 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
25684 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
25685 to allow returning address to AT_PLATFORM name.
25687 2013-06-11 Jan Hubicka <jh@suse.cz>
25689 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
25690 * cgraph.h (symtab_node_base): Add weakref flag.
25691 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
25692 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
25693 (output_weakrefs): Use weakref flag.
25694 * fold-const.c (simple_operand_p): Handle WEAK.
25695 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
25696 * ipa.c (varpool_externally_visible_p): Drop weakref.
25697 (function_and_variable_visibility): Update comment; fix weakref
25698 sanity checks; do not clear DECL_WEAK on them.
25699 * lto-cgraph.c (lto_output_node): update.
25700 (lto_output_varpool_node): Update.
25701 (input_overwrite_node): Update.
25702 (input_node): Update.
25703 (input_varpool_node): Update.
25704 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
25705 (lto_symtab_merge_symbols): Add sanity check.
25706 (lto_symtab_prevailing_decl): Do not special case weakrefs.
25707 * passes.c (rest_of_decl_compilation): Set static flag, too.
25708 * symtab.c (dump_symtab_base): Dump weakref.
25709 (verify_symtab_base): Sanity check weakrefs.
25710 (symtab_make_decl_local): Remove duplicated code.
25711 (symtab_alias_ultimate_target): Simplify.
25712 * varpool.c (varpool_create_variable_alias): Set weakref flag.
25714 2013-06-11 Tom de Vries <tom@codesourcery.com>
25716 * genautomata.c (gen_regexp_sequence): Handle els_num == -1. Handle
25717 sequence_vect == NULL.
25719 2013-06-11 DJ Delorie <dj@redhat.com>
25721 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
25722 (rl78_unwind_word_mode): New.
25724 2013-06-11 David Malcolm <dmalcolm@redhat.com>
25726 * final.c (debug_prefix_maps): Make static.
25728 2013-06-11 David Malcolm <dmalcolm@redhat.com>
25730 * function.c (initial_trampoline): Remove stray copy.
25732 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
25734 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
25736 2013-06-11 Martin Jambor <mjambor@suse.cz>
25738 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
25739 within bounds at the beginning of the function.
25741 2013-06-11 Alan Modra <amodra@gmail.com>
25743 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
25745 (get_named_section): Don't NULL !DECL_P decl.
25747 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
25749 * doc/invoke.texi (core-avx2): Document.
25751 (atom): Updated with MOVBE.
25753 2013-06-11 Richard Biener <rguenther@suse.de>
25755 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
25757 2013-06-11 Anton Blanchard <anton@samba.org>
25759 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
25760 correct shift value in little-endian mode.
25762 2013-06-11 Jakub Jelinek <jakub@redhat.com>
25765 * varasm.c (get_variable_align): Move #endif to the right place.
25767 2013-06-10 Cary Coutant <ccoutant@google.com>
25769 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
25770 for hash so that hash table traversal order is deterministic.
25772 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
25773 Pat Haugen <pthaugen@us.ibm.com>
25774 Peter Bergner <bergner@vnet.ibm.com>
25776 * config/rs6000/vector.md (GPR move splitter): Do not split moves
25777 of vectors in GPRS if they are direct moves or quad word load or
25780 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
25782 (direct_move_p): Likewise.
25783 (quad_load_store_p): Likewise.
25785 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
25786 classes into bins based on the physical register type.
25787 (reg_class_to_reg_type): Likewise.
25788 (IS_STD_REG_TYPE): Likewise.
25789 (IS_FP_VECT_REG_TYPE): Likewise.
25790 (reload_fpr_gpr): Arrays to determine what insn to use if we can
25791 use direct move instructions.
25792 (reload_gpr_vsx): Likewise.
25793 (reload_vsx_gpr): Likewise.
25794 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
25795 information that is a simplification of register classes. Also
25796 precalculate direct move reload helpers.
25797 (direct_move_p): New function to return true if the operation can
25798 be done as a direct move instruciton.
25799 (quad_load_store_p): New function to return true if the operation
25800 is a quad memory operation.
25801 (rs6000_legitimize_address): If quad memory, only allow register
25802 indirect for TImode addresses.
25803 (rs6000_legitimate_address_p): Likewise.
25804 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
25805 (rs6000_reload_register_type): Likewise.
25806 (register_to_reg_type): Return register type.
25807 (rs6000_secondary_reload_simple_move): New helper function for
25808 secondary reload and secondary memory needed to identify anything
25809 that is a simple move, and does not need reloading.
25810 (rs6000_secondary_reload_direct_move): New helper function for
25811 secondary reload to identify cases that can be done with several
25812 instructions via the direct move instructions.
25813 (rs6000_secondary_reload_move): New helper function for secondary
25814 reload to identify moves between register types that can be done.
25815 (rs6000_secondary_reload): Add support for quad memory operations
25816 and for direct move.
25817 (rs6000_secondary_memory_needed): Likewise.
25818 (rs6000_debug_secondary_memory_needed): Change argument names.
25819 (rs6000_output_move_128bit): New function to return the move to
25820 use for 128-bit moves, including knowing about the various
25821 limitations of quad memory operations.
25823 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
25824 memory operations. call rs6000_output_move_128bit for the actual
25825 instruciton(s) to generate.
25826 (vsx_movti_64bit): Likewise.
25828 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
25829 (UNSPEC_P8V_MTVSRWZ): Likewise.
25830 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
25831 (UNSPEC_P8V_MTVSRD): Likewise.
25832 (UNSPEC_P8V_XXPERMDI): Likewise.
25833 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
25834 (UNSPEC_FUSION_GPR): Likewise.
25835 (FMOVE128_GPR): New iterator for direct move.
25836 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
25837 (f32_sv): Likewise.
25838 (f32_dm): Likewise.
25839 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
25840 loads and direct move instructions.
25841 (zero_extendsidi2_lfiwzx): Likewise.
25842 (extendsidi2_lfiwax): Likewise.
25843 (extendsidi2_nocell): Likewise.
25844 (floatsi<mode>2_lfiwax): Likewise.
25845 (lfiwax): Likewise.
25846 (floatunssi<mode>2_lfiwzx): Likewise.
25847 (lfiwzx): Likewise.
25848 (fix_trunc<mode>_stfiwx): Likewise.
25849 (fixuns_trunc<mode>_stfiwx): Likewise.
25850 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
25851 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
25852 (parity<mode>2_cmpb): Set length/type attr.
25853 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
25854 for 'mr.' to fast_compare.
25855 (bpermd_<mode>): Change type attr to popcnt.
25856 (p8_fmrgow_<mode>): New insns for power8 direct move support.
25857 (p8_mtvsrwz_1): Likewise.
25858 (p8_mtvsrwz_2): Likewise.
25859 (reload_fpr_from_gpr<mode>): Likewise.
25860 (p8_mtvsrd_1): Likewise.
25861 (p8_mtvsrd_2): Likewise.
25862 (p8_xxpermdi_<mode>): Likewise.
25863 (reload_vsx_from_gpr<mode>): Likewise.
25864 (reload_vsx_from_gprsf): Likewise.
25865 (p8_mfvsrd_3_<mode>): LIkewise.
25866 (reload_gpr_from_vsx<mode>): Likewise.
25867 (reload_gpr_from_vsxsf): Likewise.
25868 (p8_mfvsrd_4_disf): Likewise.
25869 (multi-word GPR splits): Do not split direct moves or quad memory
25872 2013-06-10 David Malcolm <dmalcolm@redhat.com>
25874 * tree-into-ssa.c (interesting_blocks): Make static.
25876 2013-06-10 Jakub Jelinek <jakub@redhat.com>
25879 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
25880 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
25881 Use DATA_ABI_ALIGNMENT for that case instead if defined.
25882 (get_variable_align): New function.
25883 (get_variable_section, emit_bss, emit_common,
25884 assemble_variable_contents, place_block_symbol): Use
25885 get_variable_align instead of DECL_ALIGN.
25886 (assemble_noswitch_variable): Add align argument, use it
25887 instead of DECL_ALIGN.
25888 (assemble_variable): Adjust caller. Use get_variable_align
25889 instead of DECL_ALIGN.
25890 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
25892 (DATA_ABI_ALIGNMENT): Define.
25893 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
25894 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
25895 opt is false, only return the psABI mandated alignment increase.
25896 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
25897 (DATA_ABI_ALIGNMENT): ... this.
25898 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
25899 (DATA_ABI_ALIGNMENT): ... this.
25900 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
25901 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
25902 (DATA_ABI_ALIGNMENT): ... this.
25903 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
25904 * doc/tm.texi: Regenerated.
25906 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
25908 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
25909 cmp_code to construct REG_EQUAL note.
25911 2013-06-09 Jakub Jelinek <jakub@redhat.com>
25914 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
25915 that operands[2] doesn't overlap with operands[0].
25917 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
25918 Jan Hubicka <jh@suse.cz>
25920 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
25921 hack to mark symbols as used.
25923 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
25925 PR rtl-optimization/57559
25926 * lra-constraints.c (process_alt_operands): Don't discourage
25927 memory with known offset for offsetable memory constraint.
25928 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
25930 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
25932 * varasm.c (struct oc_local_state): Reorder fields.
25933 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
25934 and adjust accordingly.
25935 (output_constructor): Reorder initialization code and adjust call to
25936 output_constructor_bitfield.
25938 2013-06-07 Jan Hubicka <jh@suse.cz>
25940 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
25942 2013-06-07 David Malcolm <dmalcolm@redhat.com>
25944 * tree-object-size.c (unknown): Make const.
25946 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25948 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
25949 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
25950 for last alternative in the cpu_facility attribute.
25952 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25955 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
25956 (xordi3): Change operand 2 constraint to arm_xordi_operand.
25957 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
25958 * config/arm/constraints.md (Dg): New constraint.
25959 * config/arm/neon.md (xordi3_neon): Remove.
25960 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
25961 * config/arm/predicates.md (arm_xordi_operand): New predicate.
25963 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25965 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
25966 Clean up alternatives.
25968 2013-06-07 Alan Modra <amodra@gmail.com>
25970 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
25973 2013-06-07 Alan Modra <amodra@gmail.com>
25975 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
25977 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25979 * config/arm/constraints.md (Df): New constraint.
25980 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
25981 Correct length attribute for last two alternatives.
25983 2013-06-07 Alan Modra <amodra@gmail.com>
25985 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
25986 override user -mfp-in-toc.
25987 (offsettable_ok_by_alignment): Consider just the current access
25988 rather than the whole object, unless BLKmode. Handle
25989 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
25990 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
25991 for -mcmodel=medium.
25992 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
25993 override user -mfp-in-toc or -msum-in-toc. Default to
25994 -mno-fp-in-toc for -mcmodel=medium.
25996 2013-06-06 DJ Delorie <dj@redhat.com>
25998 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
25999 TARGET_VALID_POINTER_MODE.
26001 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
26002 Pat Haugen <pthaugen@us.ibm.com>
26003 Peter Bergner <bergner@vnet.ibm.com>
26005 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
26006 Document new power8 builtins.
26008 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
26009 condition code register, to allow 128-bit logical operations to be
26010 done in the VSX or GPR registers.
26011 (nor<mode>3): Use the canonical form for nor.
26012 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
26013 vclz*, and vpopcnt* vector instructions.
26014 (nand<mode>3): Likewise.
26015 (orc<mode>3): Likewise.
26016 (clz<mode>2): LIkewise.
26017 (popcount<mode>2): Likewise.
26019 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
26020 that only the GPRs are recognized.
26022 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
26023 support for new power8 builtins.
26025 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
26027 (xscvdpspn): Likewise.
26033 (vpopcnt): Likewise.
26034 (vpopcntb): Likewise.
26035 (vpopcnth): Likewise.
26036 (vpopcntw): Likewise.
26037 (vpopcntd): Likewise.
26039 (vmrgew): Likewise.
26040 (vmrgow): Likewise.
26042 (eqv_v16qi3): Likewise.
26043 (eqv_v8hi3): Likewise.
26044 (eqv_v4si3): Likewise.
26045 (eqv_v2di3): Likewise.
26046 (eqv_v4sf3): Likewise.
26047 (eqv_v2df3): Likewise.
26049 (nand_v16qi3): Likewise.
26050 (nand_v8hi3): Likewise.
26051 (nand_v4si3): Likewise.
26052 (nand_v2di3): Likewise.
26053 (nand_v4sf3): Likewise.
26054 (nand_v2df3): Likewise.
26056 (orc_v16qi3): Likewise.
26057 (orc_v8hi3): Likewise.
26058 (orc_v4si3): Likewise.
26059 (orc_v2di3): Likewise.
26060 (orc_v4sf3): Likewise.
26061 (orc_v2df3): Likewise.
26063 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
26064 allow power8 quad mode in 64-bit.
26065 (rs6000_builtin_vectorized_function): Add support to vectorize
26066 ISA 2.07 count leading zeros, population count builtins.
26067 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
26068 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
26069 (builtin_function_type): Add vgbbd builtin function which takes an
26071 (altivec_expand_vec_perm_const): Add support for new power8 merge
26074 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
26075 that does not include TImdoe for use with 32-bit.
26076 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
26078 (UNSPEC_VSX_CVDPSPN): Likewise.
26079 (vsx_xscvdpspn): Likewise.
26080 (vsx_xscvspdpn): Likewise.
26081 (vsx_xscvdpspn_scalar): Likewise.
26082 (vsx_xscvspdpn_directmove): Likewise.
26083 (vsx_and<mode>3): Split logical operations into 32-bit and
26084 64-bit. Add support to do logical operations on TImode as well as
26085 VSX vector types. Allow logical operations to be done in either
26086 VSX registers or in general purpose registers in 64-bit mode. Add
26087 splitters if GPRs were used. For AND, add clobber of CCmode to
26088 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
26090 (vsx_and<mode>3_32bit): Likewise.
26091 (vsx_and<mode>3_64bit): Likewise.
26092 (vsx_ior<mode>3): Likewise.
26093 (vsx_ior<mode>3_32bit): Likewise.
26094 (vsx_ior<mode>3_64bit): Likewise.
26095 (vsx_xor<mode>3): Likewise.
26096 (vsx_xor<mode>3_32bit): Likewise.
26097 (vsx_xor<mode>3_64bit): Likewise.
26098 (vsx_one_cmpl<mode>2): Likewise.
26099 (vsx_one_cmpl<mode>2_32bit): Likewise.
26100 (vsx_one_cmpl<mode>2_64bit): Likewise.
26101 (vsx_nor<mode>3): Likewise.
26102 (vsx_nor<mode>3_32bit): Likewise.
26103 (vsx_nor<mode>3_64bit): Likewise.
26104 (vsx_andc<mode>3): Likewise.
26105 (vsx_andc<mode>3_32bit): Likewise.
26106 (vsx_andc<mode>3_64bit): Likewise.
26107 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
26108 and xxlorc instructions.
26109 (vsx_eqv<mode>3_64bit): Likewise.
26110 (vsx_nand<mode>3_32bit): Likewise.
26111 (vsx_nand<mode>3_64bit): Likewise.
26112 (vsx_orc<mode>3_32bit): Likewise.
26113 (vsx_orc<mode>3_64bit): Likewise.
26115 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
26117 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
26119 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
26120 (p8_vmrgow): Likewise.
26121 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
26122 GPRs to be split under VSX.
26123 (p8v_clz<mode>2): Add power8 count leading zero support.
26124 (p8v_popcount<mode>2): Add power8 population count support.
26125 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
26128 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
26131 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
26133 (vec_nand): Likewise.
26134 (vec_vclz): Likewise.
26135 (vec_vclzb): Likewise.
26136 (vec_vclzd): Likewise.
26137 (vec_vclzh): Likewise.
26138 (vec_vclzw): Likewise.
26139 (vec_vgbbd): Likewise.
26140 (vec_vmrgew): Likewise.
26141 (vec_vmrgow): Likewise.
26142 (vec_vpopcnt): Likewise.
26143 (vec_vpopcntb): Likewise.
26144 (vec_vpopcntd): Likewise.
26145 (vec_vpopcnth): Likewise.
26146 (vec_vpopcntw): Likewise.
26148 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
26150 PR rtl-optimization/57468
26151 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
26154 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
26156 PR rtl-optimization/57459
26157 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
26158 type when setting live regs.
26160 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
26162 * config/s390/s390.opt (mlra): New option.
26163 * config/s390/s390.c (s390_decompose_address): Check displacement
26164 for all registers for LRA.
26165 (s390_secondary_reload): Don't used secondary reloads for LRA.
26166 (s390_lra_p): New function.
26167 (TARGET_LRA_P): Define.
26168 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
26169 of attribute cpu_facility to zarch for the last alternative.
26170 (*cmpmem_short): Ditto.
26172 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
26174 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
26175 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
26176 (arm_expand_prologue): Likewise.
26178 2013-06-06 Teresa Johnson <tejohnson@google.com>
26181 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
26182 as this is now done by redirect_edge_and_branch_force.
26183 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
26184 barriers, and fix interaction with splitting.
26185 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
26186 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
26187 reflect changes made in the routine.
26188 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
26189 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
26190 since this is called in cfglayout mode, and replace partition fixup
26191 with assert as that is now done by force_nonfallthru_and_redirect.
26192 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
26193 already be marked with region crossing note.
26194 (insert_section_boundary_note): Make non-static, gate on flag
26195 has_bb_partition, rewrite to also check for multiple partitions.
26196 (rest_of_handle_reorder_blocks): Remove call to
26197 insert_section_boundary_note, now done later during free_cfg.
26198 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
26199 * bb-reorder.h (insert_section_boundary_note): Declare.
26200 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
26201 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
26202 invoke insert_section_boundary_note.
26203 (try_redirect_by_replacing_jump): Remove unnecessary
26204 check for region crossing note.
26205 (fixup_partition_crossing): New function.
26206 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
26207 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
26208 in non-cfglayout mode.
26209 (force_nonfallthru_and_redirect): Fixup partition boundaries,
26210 remove old code that tried to do this. Emit barrier correctly
26211 when we are in cfglayout mode.
26212 (last_bb_in_partition): New function.
26213 (rtl_split_edge): Correctly fixup partition boundaries.
26214 (commit_one_edge_insertion): Remove old code that tried to
26215 fixup region crossing edge since this is now handled in
26216 split_block, and set up insertion point correctly since
26217 block may now end in a jump.
26218 (verify_hot_cold_block_grouping): Guard against checking when not in
26219 linearized RTL mode.
26220 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
26222 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
26223 rtl_verify_flow_info, so not called in cfglayout mode.
26224 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
26225 (fixup_reorder_chain): Remove old code that attempted to fixup region
26226 crossing note as this is now handled in force_nonfallthru_and_redirect.
26227 (duplicate_insn_chain): Don't duplicate switch section notes.
26228 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
26230 * basic-block.h (emit_barrier_after_bb): Declare.
26232 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26234 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
26235 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
26236 arm_usatsihi): Adjust alternatives for arm_restrict_it.
26238 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26240 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
26242 * config/arm/ldmstm.md: Regenerate.
26244 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26246 * config/arm/sync.md (atomic_loaddi_1):
26247 Disable predication for arm_restrict_it.
26248 (arm_load_exclusive<mode>): Likewise.
26249 (arm_load_exclusivesi): Likewise.
26250 (arm_load_exclusivedi): Likewise.
26251 (arm_load_acquire_exclusive<mode>): Likewise.
26252 (arm_load_acquire_exclusivesi): Likewise.
26253 (arm_load_acquire_exclusivedi): Likewise.
26254 (arm_store_exclusive<mode>): Likewise.
26255 (arm_store_exclusive<mode>): Likewise.
26256 (arm_store_release_exclusivedi): Likewise.
26257 (arm_store_release_exclusive<mode>): Likewise.
26259 2013-06-06 Richard Biener <rguenther@suse.de>
26261 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
26263 (lto_tag_is_tree_code_p): Adjust.
26264 (lto_tag_is_gimple_code_p): Likewise.
26265 (lto_gimple_code_to_tag): Likewise.
26266 (lto_tag_to_gimple_code): Likewise.
26267 (lto_tree_code_to_tag): Likewise.
26268 (lto_tag_to_tree_code): Likewise.
26269 * data-streamer.h (streamer_write_hwi_in_range): Use
26270 uhwi streaming to stream the normalized range.
26271 (streamer_read_hwi_in_range): Likewise.
26273 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26275 * config/arm/arm.md (enabled_for_depr_it): New attribute.
26276 (predicable_short_it): Likewise.
26277 (predicated): Likewise.
26278 (enabled): Handle above.
26279 (define_cond_exec): Set predicated attribute to yes.
26281 2013-06-05 Mike Stump <mikestump@comcast.net>
26283 * gdbinit.in (__FUNCTION__): Add.
26285 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
26287 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
26288 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
26290 2013-06-05 Jan Hubicka <jh@suse.cz>
26292 * varasm.c (mark_decl_referenced): Revert the removal until targets
26295 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
26297 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
26298 instead of mark_decl_referenced.
26300 2013-06-05 Jan Hubicka <jh@suse.cz>
26302 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
26303 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
26304 and symtab_used_from_object_file_p.
26305 (cgraph_make_node_local_1): Clear forced_by_abi.
26306 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
26307 * cgraph.h (symtab_node_base): Add forced_by_abi.
26308 (decide_is_variable_needed): Remove.
26309 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
26310 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
26311 (decide_is_symbol_needed): ... this one; handle symbols in general;
26312 always analyze virtuals; honnor forced_by_abi.
26313 (cgraph_finalize_function): Update.
26314 (varpool_finalize_decl): Update.
26315 (symbol_defined_and_needed): Remove.
26316 (analyze_functions): Update.
26317 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
26318 output_refs, input_overwrite_node): Handle forced_by_abi.
26319 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
26320 (address_taken_from_non_vtable_p): ... this one.
26321 (comdat_can_be_unshared_p_1): New function.
26322 (cgraph_comdat_can_be_unshared_p): Rename to ...
26323 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
26324 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
26325 (function_and_variable_visibility): Clear forced_by_abi as needed.
26326 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
26327 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
26328 * symtab.c (dump_symtab_base): Dump forced_by_abi.
26329 * varpool.c (decide_is_variable_needed): Remove.
26331 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26333 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
26334 (arm_option_override): Override arm_restrict_it where appropriate.
26335 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
26336 * config/arm/arm.opt (mrestrict-it): New command-line option.
26337 * doc/invoke.texi: Document -mrestrict-it.
26339 2013-06-05 David Malcolm <dmalcolm@redhat.com>
26341 * tsan.c (tsan_atomic_table): Make const.
26343 2013-06-05 Richard Biener <rguenther@suse.de>
26345 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
26346 index associated with the tree we are supposed to replace.
26347 * tree-streamer-out.c (pack_ts_base_value_fields): Output
26348 TREE_ASM_WRITTEN as zero for everything but SSA names.
26350 2013-06-05 David Malcolm <dmalcolm@redhat.com>
26352 * tree-ssa-structalias.c (call_stmt_vars): Make static.
26354 2013-06-04 Jan Hubicka <jh@suse.cz>
26356 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
26357 (input_node, input_varpool_node): Handle correctly external same
26359 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
26360 nodes at ltrans stage.
26362 2013-06-04 Jan Hubicka <jh@suse.cz>
26364 * ipa-inline.c (update_caller_keys): Fix availability test.
26365 (update_callee_keys): Likewise.
26366 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
26367 to follow ELF standard.
26369 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
26371 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
26372 (mips64r5900el-*-elf*): New configurations.
26373 * config/mips/mips-cpus.def (r5900): New processor.
26374 * config/mips/mips-tables.opt: Regenerate.
26375 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
26376 (mips_issue_rate): Handle PROCESSOR_R5900.
26377 (mips_reorg_process_insns): Force reorder mode for the R5900.
26378 * config/mips/mips.h (TARGET_MIPS5900): Define.
26379 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
26381 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
26383 * config/mips/mips.md (processor): Add r5900.
26384 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
26386 2013-06-04 Ian Bolton <ian.bolton@arm.com>
26388 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
26389 into function to generate MOVI instruction.
26390 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
26391 (aarch64_preferred_simd_mode): Turn into wrapper.
26392 (aarch64_output_scalar_simd_mov_immediate): New function.
26393 * config/aarch64/aarch64-protos.h: Add prototype for above.
26395 2013-06-04 Ian Bolton <ian.bolton@arm.com>
26397 * config/aarch64/aarch64.c (simd_immediate_info): Remove
26398 element_char member.
26399 (sizetochar): Return signed char.
26400 (aarch64_simd_valid_immediate): Remove elchar and other
26401 unnecessary variables.
26402 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
26403 Calculate element_char as required.
26404 * config/aarch64/aarch64-protos.h: Update and move prototype
26405 for aarch64_output_simd_mov_immediate.
26406 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
26409 2013-06-04 Ian Bolton <ian.bolton@arm.com>
26411 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
26412 information completed by aarch64_simd_valid_immediate.
26413 (aarch64_legitimate_constant_p): Update arguments.
26414 (aarch64_simd_valid_immediate): Work with struct rather than many
26416 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
26417 (aarch64_simd_make_constant): Update arguments.
26418 (aarch64_output_simd_mov_immediate): Work with struct rather than
26419 many pointers. Output immediate directly rather than as operand.
26420 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
26422 * config/aarch64/constraints.md (Dn): Update arguments.
26424 2013-06-04 Ian Bolton <ian.bolton@arm.com>
26426 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
26428 (aarch64_simd_immediate_valid_for_move): Remove.
26429 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
26430 (aarch64_simd_make_constant): Update call.
26431 (aarch64_output_simd_mov_immediate): Update call.
26432 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
26434 * config/aarch64/constraints.md (Dn): Update call.
26436 2013-06-04 Ian Bolton <ian.bolton@arm.com>
26438 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
26439 return type to bool for prototype.
26440 (aarch64_legitimate_constant_p): Check for true instead of not -1.
26441 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
26442 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
26444 2013-06-04 Catherine Moore <clm@codesourcery.com>
26446 * config/mips/mips.opt (meva): New.
26447 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
26448 (ASM_SPEC): Handle -meva.
26449 * doc/invoke.texi (meva): Document.
26451 2013-06-04 Alan Modra <amodra@gmail.com>
26453 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
26456 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26458 * rtl.def: Add extra fourth optional field to define_cond_exec.
26459 * gensupport.c (process_one_cond_exec): Process attributes from
26461 * doc/md.texi: Document fourth field in define_cond_exec.
26463 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
26465 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
26466 out the processing order as in store_bit_field_1.
26468 2013-06-04 Jan Hubicka <jh@suse.cz>
26470 PR middle-end/57500
26471 * cgraphunit.c (cgraph_process_same_body_aliases): Create
26472 non-VAR_DECL node if it does not exist yet.
26474 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
26476 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
26477 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
26478 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
26479 target_cpu_default setting.
26481 2013-06-03 Teresa Johnson <tejohnson@google.com>
26483 * dumpfile.c (opt_info_switch_p): Change -fopt-info
26484 default to -fopt-info=optimized instead of all.
26485 * doc/invoke.texi: Ditto.
26486 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
26487 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
26488 (execute_vect_slp): Emit BB vectorization success under
26489 MSG_OPTIMIZED_LOCATIONS.
26490 * tree-vect-slp.c (vect_slp_transform_bb): Change
26491 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
26492 * tree-vect-loop.c (vect_transform_loop): Ditto.
26494 2013-06-03 Jason Merrill <jason@redhat.com>
26497 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26498 Use TARGET_EXPR for C++.
26500 2013-06-03 Jakub Jelinek <jakub@redhat.com>
26502 PR rtl-optimization/57268
26503 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
26504 if DEBUG_INSN_P (insn).
26507 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
26509 PR rtl-optimization/57268
26510 * sched-deps.c (sched_analyze_2): Flush dependence lists if
26511 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
26513 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
26515 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
26516 (ix86_avoid_lea_for_addr): Likewise.
26517 (exact_dependency_1): Likewise.
26518 (ix86_adjust_cost): Likewise.
26519 (swap_top_of_ready_list): Fix formatting and !reload_completed check
26521 (do_reorder_for_imul): Fix typo, formatting and
26522 !reload_completed check removed.
26523 (ix86_sched_reorder): Fix typo and formatting.
26524 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
26527 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
26529 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
26531 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
26533 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
26534 <STRING_CST>: Likewise.
26535 <VECTOR_CST>: Likewise.
26537 2013-06-01 Janus Weil <janus@gcc.gnu.org>
26538 Mikael Morin <mikael@gcc.gnu.org>
26540 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
26541 * config.in: Regenerated.
26542 * configure: Regenerated.
26544 2013-06-01 Jan Hubicka <jh@suse.cz>
26546 PR middle-end/57366
26547 * cgraphunit.c (compile): When weakref is not supported,
26548 set up transparent aliases before final output pass.
26549 * varasm.c (assemble_alias): Do not try to do it here.
26551 2013-06-01 Jan Hubicka <jh@suse.cz>
26553 PR middle-end/57467
26554 * passes.c (for_per_function): Skip unanalyzed functions.
26556 2013-06-01 Jan Hubicka <jh@suse.cz>
26558 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
26559 (lto_symtab_merge_symbols_1): ... this one.
26560 (lto_symtab_merge_cgraph_nodes): Rename to ...
26561 (lto_symtab_merge_symbols): ... this one; simplify.
26562 * cgraph.c (same_body_aliases_done): Rename to ...
26563 (cpp_implicit_aliases_done): ... this one.
26564 (cgraph_create_function_alias): Update.
26565 (cgraph_same_body_alias): Update.
26566 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
26567 (verify_edge_corresponds_to_fndecl): Simplify.
26568 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
26569 (cgraph_node): Remove same_body_alias.
26570 (varpool_node): Remove alias_of and extra_name_alias.
26571 (same_body_aliases_done): Rename to ..
26572 (cpp_implicit_aliases_done): ... this one.
26573 (symtab_alias_ultimate_target): Add default parameter.
26574 (symtab_resolve_alias): New function.
26575 (fixup_same_cpp_alias_visibility): Declare.
26576 (cgraph_function_node): Add default parameter.
26577 (cgraph_node_asm_name): Likewise.
26578 (cgraph_function_or_thunk_node): Add default parameter; do
26579 not ICE when it is NULL.
26580 (varpool_variable_node): Likewise.
26581 * tree-emutls.c (create_emultls_var): Update.
26582 (ipa_lower_emutls): Update.
26583 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
26584 (cgraph_reset_node): Reset alias info.
26585 (cgraph_finalize_function): Update.
26586 (fixup_same_cpp_alias_visibility): Move to symtab.c.
26587 (analyze_function): Simplify.
26588 (cgraph_process_same_body_aliases): Simplify.
26589 (analyze_functions): Fixup same body aliases.
26590 (handle_alias_pairs): Simplify.
26591 (assemble_thunk): Update.
26592 (assemble_thunks_and_aliases): Update.
26593 (output_weakrefs): Rewrite.
26594 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
26595 (lto_output_varpool_node): Likewise.
26596 (compute_ltrans_boundary): Remve assert.
26597 (get_alias_symbol): New functoin.
26598 (input_node): Rewrite alias handling.
26599 (input_varpool_node): Likewise.
26600 * ipa-pure-const.c (propagate_pure_const): Fix formating.
26601 * ipa.c (process_references): Handle weakrefs correctly.
26602 (symtab_remove_unreachable_nodes): Likewise.
26603 * trans-mem.c (get_cg_data): Update.
26604 (ipa_tm_create_version_alias): Update.
26605 (ipa_tm_execute): Update.
26606 * symtab.c (dump_symtab_base): Dump aliases.
26607 (verify_symtab_base): Verify aliases.
26608 (symtab_node_availability): New function.
26609 (symtab_alias_ultimate_target): Simplify.
26610 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
26611 handle all the fixup cases.
26612 (symtab_resolve_alias): New function.
26613 * passes.c (ipa_write_summaries): Handle weakrefs.
26614 * varpool.c (varpool_analyze_node): Simplify.
26615 (assemble_aliases): Update.
26616 (varpool_create_variable_alias): Simplify.
26617 (varpool_extra_name_alias): Simplify.
26618 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
26619 (lto_symtab_merge_symbols): ... this one.
26621 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
26624 PR rtl-optimization/57268
26625 * sched-deps.c (sched_analyze_2): Flush dependence lists if
26626 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
26628 2013-06-01 Tobias Burnus <burnus@net-b.de>
26630 Partially reverted:
26631 2013-05-31 Tobias Burnus <burnus@net-b.de>
26633 PR middle-end/57073
26634 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
26637 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
26639 PR rtl-optimization/57268
26640 * sched-deps.c (sched_analyze_2): Flush dependence lists if
26641 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
26643 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
26645 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
26646 unordered comparison operators when -fno-trapping-math is in effect
26648 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
26649 and implement unordered comparison operators properly on the e500.
26651 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
26653 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
26654 for constant scalar integers.
26655 (simplify_relational_operation_1): Likewise.
26657 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
26659 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
26660 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
26663 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
26664 Igor Zamyatin <igor.zamyatin@intel.com>
26666 Silvermont (SLM) architecture performance tuning.
26667 * config/i386/i386.h (enum ix86_tune_indices): Add
26668 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
26669 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
26671 * config/i386/i386.c (initial_ix86_tune_features)
26672 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
26673 (ix86_lea_outperforms): Handle Silvermont tuning.
26674 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
26676 (ix86_use_lea_for_mov): Likewise.
26677 (ix86_avoid_lea_for_addr): Likewise.
26678 (ix86_lea_for_add_ok): Likewise.
26679 (exact_dependency_1): New function.
26680 (exact_store_load_dependency): Likewise.
26681 (ix86_adjust_cost): Handle Silvermont tuning.
26682 (do_reoder_for_imul): Likewise.
26683 (swap_top_of_ready_list): New function.
26684 (ix86_sched_reorder): Changed to handle Silvermont tuning.
26686 * config/i386/i386.md (peepholes that split memory operand in fp
26689 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
26691 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
26692 Remove un-necessary braces.
26694 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
26696 * config/aarch64/aarch64.c (aarch64_classify_symbol):
26697 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
26699 2013-05-31 Tobias Burnus <burnus@net-b.de>
26701 PR middle-end/57073
26702 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
26704 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26707 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
26708 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
26709 * config/arm/neon.md (iordi3_neon): Remove.
26710 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
26711 * config/arm/predicates.md (imm_for_neon_logic_operand):
26712 Move to earlier in the file.
26713 (neon_logic_op2): Likewise.
26714 (arm_iordi_operand_neon): New predicate.
26716 2013-05-31 Richard Biener <rguenther@suse.de>
26718 PR tree-optimization/57478
26719 PR tree-optimization/57453
26720 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
26723 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
26725 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
26726 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
26728 2013-05-30 Tobias Burnus <burnus@net-b.de>
26729 Thomas Koenig <tkoenig@gcc.gnu.org>
26731 PR middle-end/57073
26732 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
26733 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
26735 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
26737 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
26739 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
26741 * target.def (register_usage_leveling_p): New hook.
26742 * targhooks.c (default_register_usage_leveling_p): New.
26743 * targhooks.h (default_register_usage_leveling_p): New prototype.
26744 * lra-assigns.c (register_usage_leveling_p): Use the hook.
26745 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
26746 * doc/tm.texi: Update.
26747 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
26749 2013-05-30 Ian Bolton <ian.bolton@arm.com>
26751 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
26752 (*insv_reg<mode>): New define_insn.
26754 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
26756 PR rtl-optimization/57439
26757 * postreload.c (move2add_valid_value_p): Check that we have
26758 a zero subreg_regno_offset when accessing the register in
26759 the requested mode.
26761 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
26762 Igor Zamyatin <igor.zamyatin@intel.com>
26764 Silvermont (SLM) architecture pipeline model, tuning and
26766 * config.gcc: Add slm config options and target.
26768 * config/i386/slm.md: New.
26770 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
26772 * config/i386/i386-c.c (ix86_target_macros_internal): New case
26774 (ix86_target_macros_internal): Likewise.
26776 * config/i386/i386.c (slm_cost): New cost.
26777 (m_SLM): New macro flag.
26778 (initial_ix86_tune_features): Set m_SLM.
26779 (x86_accumulate_outgoing_args): Likewise.
26780 (x86_arch_always_fancy_math_387): Likewise.
26781 (processor_target_table): Add slm cost.
26782 (cpu_names): Add slm cpu name.
26783 (x86_option_override_internal): Set SLM ISA.
26784 (ix86_issue_rate): New case PROCESSOR_SLM.
26785 (ia32_multipass_dfa_lookahead): Likewise.
26786 (fold_builtin_cpu): Add slm.
26788 * config/i386/i386.h (TARGET_SLM): New target macro.
26789 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
26790 (processor_type): Add PROCESSOR_SLM.
26792 * config/i386/i386.md (cpu): Add new value "slm".
26793 (slm.md): Include slm.md.
26795 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
26796 Zhenqiang Chen <zhenqiang.chen@linaro.org>
26798 * config/arm/arm-protos.h: Add and update function protos.
26799 * config/arm/arm.c (use_simple_return_p): New added.
26800 (thumb2_expand_return): Check simple_return flag.
26801 * config/arm/arm.md: Add simple_return and conditional simple_return.
26802 * config/arm/iterators.md: Add iterator for return and simple_return.
26804 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
26806 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
26807 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
26808 (arm_emit_vfp_multi_reg_pop): Likewise.
26809 (thumb2_emit_ldrd_pop): Likewise.
26810 (arm_expand_epilogue): Add misc REG_CFA notes.
26811 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
26813 2013-05-29 Lawrence Crowl <crowl@google.com>
26815 * config/arm/t-arm: Update for below.
26817 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
26818 Change type to hash_table. Update dependent calls and types.
26820 * config/i386/t-cygming: Update for below.
26822 * config/i386/t-interix: Update for below.
26824 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
26825 Change type to hash_table. Update dependent calls and types.
26826 (i386_find_on_wrapper_list::wrappers): Likewise.
26828 * config/ia64/t-ia64: Update for below.
26830 * config/ia64/ia64.c (bundle_state_table):
26831 Change type to hash_table. Update dependent calls and types.
26833 * config/mips/mips.c (mips_reorg_process_insns::htab):
26834 Change type to hash_table. Update dependent calls and types.
26836 * config/sol2.c (solaris_comdat_htab):
26837 Change type to hash_table. Update dependent calls and types.
26839 * config/t-sol2: Update for above.
26841 2013-05-29 Teresa Johnson <tejohnson@google.com>
26843 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
26844 functions are not yet marked as defined.
26846 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
26847 Pat Haugen <pthaugen@us.ibm.com>
26848 Peter Bergner <bergner@vnet.ibm.com>
26850 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
26854 (vrotl<mode>3): Likewise.
26855 (vashl<mode>3): Likewise.
26856 (vlshr<mode>3): Likewise.
26857 (vashr<mode>3): Likewise.
26859 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
26860 support for power8 V2DI builtins.
26862 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
26863 power8 V2DI builtins.
26864 (vupkhsw): Likewise.
26865 (vupklsw): Likewise.
26866 (vaddudm): Likewise.
26867 (vminsd): Likewise.
26868 (vmaxsd): Likewise.
26869 (vminud): Likewise.
26870 (vmaxud): Likewise.
26871 (vpkudum): Likewise.
26872 (vpksdss): Likewise.
26873 (vpkudus): Likewise.
26874 (vpksdus): Likewise.
26879 (vsubudm): Likewise.
26880 (vcmpequd): Likewise.
26881 (vcmpgtsd): Likewise.
26882 (vcmpgtud): Likewise.
26883 (vcmpequd_p): Likewise.
26884 (vcmpgtsd_p): Likewise.
26885 (vcmpgtud_p): Likewise.
26886 (vupkhsw): Likewise.
26887 (vupklsw): Likewise.
26888 (vaddudm): Likewise.
26889 (vmaxsd): Likewise.
26890 (vmaxud): Likewise.
26891 (vminsd): Likewise.
26892 (vminud): Likewise.
26893 (vpksdss): Likewise.
26894 (vpksdus): Likewise.
26895 (vpkudum): Likewise.
26896 (vpkudus): Likewise.
26901 (vsubudm): Likewise.
26903 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
26904 support for power8 V2DI instructions.
26906 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
26907 power8 V2DI instructions. Combine pack and unpack insns to use an
26908 iterator for each mode. Check whether a particular mode supports
26909 Altivec instructions instead of just checking TARGET_ALTIVEC.
26910 (UNSPEC_VPKUWUM): Likewise.
26911 (UNSPEC_VPKSHSS): Likewise.
26912 (UNSPEC_VPKSWSS): Likewise.
26913 (UNSPEC_VPKUHUS): Likewise.
26914 (UNSPEC_VPKSHUS): Likewise.
26915 (UNSPEC_VPKUWUS): Likewise.
26916 (UNSPEC_VPKSWUS): Likewise.
26917 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
26918 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
26919 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
26920 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
26921 (UNSPEC_VUPKHSB): Likewise.
26922 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
26923 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
26924 (UNSPEC_VUPKHSH): Likewise.
26925 (UNSPEC_VUPKLSB): Likewise.
26926 (UNSPEC_VUPKLSH): Likewise.
26928 (VI_char): Likewise.
26929 (VI_scalar): Likewise.
26930 (VI_unit): Likewise.
26932 (VP_small): Likewise.
26933 (VP_small_lc): Likewise.
26934 (VU_char): Likewise.
26935 (add<mode>3): Likewise.
26936 (altivec_vaddcuw): Likewise.
26937 (altivec_vaddu<VI_char>s): Likewise.
26938 (altivec_vadds<VI_char>s): Likewise.
26939 (sub<mode>3): Likewise.
26940 (altivec_vsubcuw): Likewise.
26941 (altivec_vsubu<VI_char>s): Likewise.
26942 (altivec_vsubs<VI_char>s): Likewise.
26943 (altivec_vavgs<VI_char>): Likewise.
26944 (altivec_vcmpbfp): Likewise.
26945 (altivec_eq<mode>): Likewise.
26946 (altivec_gt<mode>): Likewise.
26947 (altivec_gtu<mode>): Likewise.
26948 (umax<mode>3): Likewise.
26949 (smax<mode>3): Likewise.
26950 (umin<mode>3): Likewise.
26951 (smin<mode>3): Likewise.
26952 (altivec_vpkuhum): Likewise.
26953 (altivec_vpkuwum): Likewise.
26954 (altivec_vpkshss): Likewise.
26955 (altivec_vpkswss): Likewise.
26956 (altivec_vpkuhus): Likewise.
26957 (altivec_vpkshus): Likewise.
26958 (altivec_vpkuwus): Likewise.
26959 (altivec_vpkswus): Likewise.
26960 (altivec_vpks<VI_char>ss): Likewise.
26961 (altivec_vpks<VI_char>us): Likewise.
26962 (altivec_vpku<VI_char>us): Likewise.
26963 (altivec_vpku<VI_char>um): Likewise.
26964 (altivec_vrl<VI_char>): Likewise.
26965 (altivec_vsl<VI_char>): Likewise.
26966 (altivec_vsr<VI_char>): Likewise.
26967 (altivec_vsra<VI_char>): Likewise.
26968 (altivec_vsldoi_<mode>): Likewise.
26969 (altivec_vupkhsb): Likewise.
26970 (altivec_vupkhs<VU_char>): Likewise.
26971 (altivec_vupkls<VU_char>): Likewise.
26972 (altivec_vupkhsh): Likewise.
26973 (altivec_vupklsb): Likewise.
26974 (altivec_vupklsh): Likewise.
26975 (altivec_vcmpequ<VI_char>_p): Likewise.
26976 (altivec_vcmpgts<VI_char>_p): Likewise.
26977 (altivec_vcmpgtu<VI_char>_p): Likewise.
26978 (abs<mode>2): Likewise.
26979 (vec_unpacks_hi_v16qi): Likewise.
26980 (vec_unpacks_hi_v8hi): Likewise.
26981 (vec_unpacks_lo_v16qi): Likewise.
26982 (vec_unpacks_hi_<VP_small_lc>): Likewise.
26983 (vec_unpacks_lo_v8hi): Likewise.
26984 (vec_unpacks_lo_<VP_small_lc>): Likewise.
26985 (vec_pack_trunc_v8h): Likewise.
26986 (vec_pack_trunc_v4si): Likewise.
26987 (vec_pack_trunc_<mode>): Likewise.
26989 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
26991 (vec_vmaxsd): Likewise.
26992 (vec_vmaxud): Likewise.
26993 (vec_vminsd): Likewise.
26994 (vec_vminud): Likewise.
26995 (vec_vpksdss): Likewise.
26996 (vec_vpksdus): Likewise.
26997 (vec_vpkudum): Likewise.
26998 (vec_vpkudus): Likewise.
26999 (vec_vrld): Likewise.
27000 (vec_vsld): Likewise.
27001 (vec_vsrad): Likewise.
27002 (vec_vsrd): Likewise.
27003 (vec_vsubudm): Likewise.
27004 (vec_vupkhsw): Likewise.
27005 (vec_vupklsw): Likewise.
27007 2013-05-29 Jan Hubicka <jh@suse.cz>
27009 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
27010 flags; reorder rest of fields in more consistent way.
27011 (varpool_node): Remove analyzed, finalized and alias.
27012 (cgraph_ndoe): Likewise.
27013 (symtab_alias_ultimate_target): New function.
27014 (cgraph_function_node): Move offline.
27015 (cgraph_reset_node): Declare.
27016 (cgraph_comdat_can_be_unshared_p): Remove.
27017 (varpool_remove_initializer): Declare.
27018 (varpool_first_defined_variable, varpool_next_defined_variable
27019 cgraph_first_defined_function, cgraph_next_defined_function): Update.
27020 (cgraph_function_with_gimple_body_p): Update.
27021 (varpool_all_refs_explicit_p): Update.
27022 (symtab_alias_target): New function.
27023 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
27024 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
27025 (cgraph_function_or_thunk_node): Simplify using
27026 symtab_alias_ultimate_target.
27027 (varpool_variable_node): Likewise.
27028 * cgraph.c (cgraph_create_function_alias): Update.
27029 (cgraph_add_thunk): Update.
27030 (cgraph_remove_node): Update.
27031 (dump_cgraph_node): Do not dump removed flags.
27032 (cgraph_function_body_availability): Update.
27033 (cgraph_propagate_frequency): Update.
27034 (verify_cgraph_node): Check sanity of local flag.
27035 (cgraph_function_node): Move here from cgraph.h; revamp for
27036 cgraph_function_or_thunk_node.
27037 * lto-symtab.c (lto_varpool_replace_node): Update.
27038 (lto_symtab_resolve_can_prevail_p): Update.
27039 (lto_symtab_merge_cgraph_nodes): Update.
27040 * ipa-cp.c (determine_versionability, initialize_node_lattices,
27041 propagate_constants_accross_call, devirtualization_time_bonus,
27042 ipcp_propagate_stage): Update.
27043 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
27044 * ipa-inline-transform.c (clone_inlined_nodes,
27045 preserve_function_body_p): Update.
27046 * ipa-reference.c (propagate): Update.
27047 (write_node_summary_p): Update.
27048 * toplev.c (wrapup_global_declaration_2): Update.
27049 * cgraphunit.c (cgraph_analyze_function): Rename to ...
27050 (analyze_function) ... this one.
27051 (cgraph_process_new_functions): Update.
27052 (cgraph_reset_node): Export.
27053 (cgraph_finalize_function): Update.
27054 (cgraph_add_new_function): Update.
27055 (process_function_and_variable_attributes): Update.
27056 (varpool_finalize_decl): Update.
27057 (symbol_finalized): Remove.
27058 (symbol_finalized_and_needed): Rename to ...
27059 (symbol_defined_and_needed): ... update.
27060 (cgraph_analyze_functions): Update.
27061 (handle_alias_pairs): Update.
27062 (mark_functions_to_output): Update.
27063 (assemble_thunk): Update.
27064 (output_in_order): Update.
27065 (output_weakrefs): Update.
27066 (finalize_compilation_unit): Update.
27067 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
27068 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
27069 input_node, input_varpool_node): Update.
27070 * dbxout.c (dbxout_expand_expr): Update.
27071 * cgraphclones.c (cgraph_clone_node): Update.
27072 (cgraph_copy_node_for_versioning): Update.
27073 (cgraph_materialize_clone): Update.
27074 (cgraph_materialize_all_clones): Update.
27075 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
27076 propagate_pure_const, propagate_nothrow): Update.
27077 * lto-streamer-out.c (lto_output, write_symbol): Update.
27078 * ipa-utils.c (ipa_reverse_postorder): Update.
27079 * ipa-inline.c (can_inline_edge_p): Update.
27080 (update_caller_keys, ipa_inline): Update.
27081 * dwarf2out.c (reference_to_unused,
27082 premark_types_used_by_global_vars_helper): Update.
27083 * tree-eh.c (tree_could_trap_p): Update.
27084 * ipa-split.c (consider_split, execute_split_functions): Update.
27085 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
27086 has_addr_references_p): Update; move ahead in file for better
27088 (process_references): Simplify.
27089 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
27090 bodies are removed.
27091 (cgraph_comdat_can_be_unshared_p): Make static.
27092 (cgraph_externally_visible_p): Update.
27093 (varpool_externally_visible_p): Update.
27094 (function_and_variable_visibility): Update.
27095 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
27096 ipa_tm_mark_force_output_node): Update.
27097 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
27098 estimate_edge_devirt_benefit, inline_generate_summary,
27099 inline_write_summary): Update.
27100 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
27101 * ipa-prop.c (ipa_compute_jump_functions): Update.
27102 (ipa_print_node_params, ipa_prop_read_section,
27103 ipa_update_after_lto_read, read_replacements_section): Update.
27104 * varasm.c (mark_decl_referenced): Update.
27105 (assemble_alias, dump_tm_clone_pairs): Update.
27106 * tree-inline.c (copy_bb): Update.
27107 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
27109 * symtab.c (dump_symtab_base): Print new flags.
27110 (verify_symtab_base): Verify new flags.
27111 (symtab_alias_ultimate_target): New function.
27112 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
27113 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
27115 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
27117 * i386.c (ix86_get_function_versions_dispatcher,
27118 ix86_generate_version_dispatcher_body): Update.
27119 (fold_builtin_cpu): Use varpool_add_new_variable.
27120 * varpool.c (varpool_remove_initializer): Break out from ...
27121 (varpool_remove_node): ... this one.
27122 (dump_varpool_node, varpool_node_for_asm,
27123 cgraph_variable_initializer_availability, varpool_analyze_node,
27124 varpool_assemble_decl, varpool_remove_unreferenced_decls,
27125 varpool_finalize_named_section_flags, varpool_create_variable_alias):
27128 2013-05-29 Jan Hubicka <jh@suse.cz>
27130 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
27132 2013-05-29 Easwaran Raman <eraman@google.com>
27134 PR tree-optimization/57442
27135 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
27136 when control exits the main loop.
27138 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
27140 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
27142 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
27143 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
27144 * rx/t-rx: Add rx100 under multi library matches option for nofpu
27147 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27149 PR tree-optimization/57441
27150 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
27151 Don't limit size of incr_vec to number of candidates.
27153 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
27155 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
27156 and mips16 directories.
27157 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
27158 (MULTILIB_DIRNAMES): Ditto.
27159 (MULTILIB_EXCEPTIONS): Add new exceptions.
27160 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
27161 (MULTILIB_DIRNAMES): Ditto.
27162 (MULTILIB_EXCEPTIONS): Add new exceptions.
27164 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
27165 Marcus Shawcroft <marcus.shawcroft@arm.com>
27167 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
27168 SYMBOL_TINY_ABSOLUTE.
27169 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
27170 SYMBOL_TINY_ABSOLUTE.
27171 (aarch64_expand_mov_immediate): Likewise.
27172 (aarch64_classify_symbol): Likewise.
27173 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
27174 Permit SYMBOL_TINY_ABSOLUTE.
27175 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
27177 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
27178 Marcus Shawcroft <marcus.shawcroft@arm.com>
27180 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
27181 Refactor if/switch. Replace gcc_assert with if.
27183 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
27185 * config/i386/i386.c (initial_ix86_tune_features): Enable
27186 FP Reassociation for AMD bdver1 and bdver2.
27188 2013-05-29 Martin Jambor <mjambor@suse.cz>
27190 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
27191 and IMAGPART_EXPR do not occur within other handled_components.
27193 2013-05-29 Richard Biener <rguenther@suse.de>
27195 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
27196 access on whether the use is in the BB we currently try to
27198 (vect_bb_vectorization_profitable_p): Pass the BB we currently
27199 vectorize to vect_bb_slp_scalar_cost.
27201 2013-05-29 Richard Biener <rguenther@suse.de>
27203 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
27204 computing scalar cost offsetted by stmts that are kept live
27206 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
27207 for computation of scalar cost.
27209 2013-05-28 Steve Ellcey <sellcey@mips.com>
27211 * config/mips/mips-cpus.def (mips32r2): Change processor type.
27213 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
27215 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
27216 array notation built-in reduction functions.
27217 * doc/passes.texi (Passes): Added documentation about changes done
27219 * doc/invoke.texi (C Dialect Options): Added documentation about
27220 the -fcilkplus flag.
27221 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
27222 (BUILTINS_DEF): Depend on cilkplus.def.
27223 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
27224 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
27225 * cilkplus.def: New file.
27227 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
27229 PR rtl-optimization/57439
27230 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
27232 2013-05-28 Easwaran Raman <eraman@google.com>
27234 PR tree-optimization/57337
27235 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
27236 (find_insert_point): Correctly identify the insertion point
27237 when two statements with the same UID is compared.
27239 2013-05-28 Richard Biener <rguenther@suse.de>
27241 PR tree-optimization/56787
27242 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
27243 from the list of data references.
27244 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
27246 (vect_analyze_loop_operations): Likewise.
27247 (vect_transform_loop): Remove clobbers.
27249 2013-05-28 Martin Jambor <mjambor@suse.cz>
27251 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
27252 and REALPART_EXPRs have scalar type.
27254 2013-05-28 Richard Biener <rguenther@suse.de>
27256 PR tree-optimization/57411
27257 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
27259 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
27260 virtual operand propagation.
27262 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
27264 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
27265 destination register for bmasksi_vis.
27266 (vector_init_bshuffle): Likewise.
27267 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
27269 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
27271 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
27272 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
27273 mode if the instruction isn't available in the original mode.
27274 * config/sparc/sparc.opt (mfix-ut699): New option.
27275 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
27276 (divdf3): Turn into expander.
27277 (divdf3_nofix): New insn.
27278 (divdf3_fix): Likewise.
27279 (divsf3): Disable if -mfix-ut699.
27280 (sqrtdf2): Turn into expander.
27281 (sqrtdf2_nofix): New insn.
27282 (sqrtdf2_fix): Likewise.
27283 (sqrtsf2): Disable if -mfix-ut699.
27285 2013-05-27 Richard Biener <rguenther@suse.de>
27287 PR middle-end/57412
27288 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
27289 block for the new loop.
27291 2013-05-27 Richard Biener <rguenther@suse.de>
27293 PR tree-optimization/57343
27294 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
27295 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
27296 (number_of_iterations_cond): Do not build the folded tree.
27298 2013-05-27 Richard Biener <rguenther@suse.de>
27301 PR middle-end/57381
27302 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
27303 OEP_CONSTANT_ADDRESS_OF retained.
27305 PR tree-optimization/57417
27306 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
27307 for unchanged base.
27308 (set_ssa_val_to): Compare addresses using
27309 get_addr_base_and_unit_offset.
27311 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
27313 PR rtl-optimization/56833
27314 * postreload.c (move2add_record_mode): New function.
27315 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
27316 (move2add_use_add2_insn): Use move2add_record_sym_value.
27317 (move2add_use_add3_insn): Likewise.
27318 (reload_cse_move2add): Use move2add_valid_value_p and
27319 move2add_record_mode. Invalidate call-clobbered and REG_INC
27320 affected regs by setting reg_mode to VOIDmode.
27321 (move2add_note_store): Don't pretend the inside of a SUBREG is
27322 the actual destination. Invalidate single/leading registers by
27323 setting reg_mode to VOIDmode.
27324 Use move2add_record_sym_value, move2add_valid_value_p and
27325 move2add_record_mode.
27327 2013-05-27 Richard Biener <rguenther@suse.de>
27329 PR tree-optimization/57396
27330 * tree-affine.c (double_int_constant_multiple_p): Properly
27331 return false for val == 0 and div != 0.
27333 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
27335 * config/mips/mips.h: Use #elif in preprocessor conditions.
27337 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
27340 * config/mips/constraints.md (kl): New constraint.
27341 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
27342 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
27343 constraint for operand 0. Split after CSE for MIPS16. Emit a move
27344 from LO for MIPS16.
27345 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
27347 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
27350 * config/mips/mips.c (mips_can_inline_p): New function.
27351 (TARGET_CAN_INLINE_P): Define.
27353 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
27355 * sched-int.h (ds_t, dw_t): Make unsigned int.
27356 Fix documentation that describes how all the ds_t bits are used.
27357 Reserve the last bit for delayed-branch scheduling.
27358 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
27359 (BITS_PER_DEP_WEAK): Fix definition and documentation.
27360 (gen_dep_weak_1): Remove prototype.
27361 * sched-deps.c (get_dep_weak_1): Make static.
27362 * target.def (speculate_insn, needs_block_p, gen_spec_check,
27363 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
27364 * doc/tm.texi: Regenerate.
27365 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
27367 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
27370 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
27372 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
27373 Sandra Loosemore <sandra@codesourcery.com>
27375 * config.gcc (powerpc-*): Allow native for with-cpu.
27377 2013-05-24 Jeff Law <law@redhat.com>
27379 PR tree-optimization/57124
27380 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
27381 conversion feeding a condition if the range has an overflow
27382 if -fstrict-overflow. Add warnings for when we do make the
27385 2013-05-24 Dehao Chen <dehao@google.com>
27387 * tree-cfg.c (locus_discrim_map): Fix the typo.
27388 (locus_discrim_hasher): Likewise.
27389 (locus_discrim_hasher::hash): Likewise.
27390 (locus_discrim_hasher::equal): Likewise.
27392 2013-05-24 Martin Jambor <mjambor@suse.cz>
27394 PR tree-optimization/57294
27395 * cgraph.h (ipa_record_stmt_references): Declare.
27396 * cgraphbuild.c (ipa_record_stmt_references): New function.
27397 (build_cgraph_edges): Use ipa_record_stmt_references.
27398 (rebuild_cgraph_edges): Likewise.
27399 (cgraph_rebuild_references): Likewise.
27400 * ipa-prop.c (ipa_modify_call_arguments): Discard references
27401 associated with the old statement and build references from the
27402 newly built statements.
27403 * ipa-ref.c (ipa_remove_stmt_references): New function.
27404 * ipa-ref.h (ipa_remove_stmt_references): Declare.
27406 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
27408 * lra-constraints.c (emit_spill_move): Use smaller mode for
27410 (check_and_process_move): Consider mem-reg moves for secondary
27412 (curr_insn_transform): Don't lose insns emitted before for
27413 secondary memory moves.
27414 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
27415 reg set up in the current insn.
27417 2013-05-24 Dehao Chen <dehao@google.com>
27419 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
27421 (locus_descrim_hasher::equal): Likewise.
27422 (build_gimple_cfg): New discriminator assignment algorithm.
27423 (make_edges): Likewise.
27424 (next_discriminator_for_locus): Likewise.
27425 (same_line_p): Likewise.
27426 (assign_discriminators): Likewise.
27427 (make_cond_expr_edges): Likewise.
27428 (make_gimple_switch_edges): Likewise.
27429 (make_goto_expr_edges): Likewise.
27430 (make_gimple_asm_edges): Likewise.
27432 2013-05-24 Ian Bolton <ian.bolton@arm.com>
27434 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
27435 X format specifier to only display bottom 16 bits.
27436 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
27437 immediate to match for operand 2, since it will be masked.
27439 2013-05-24 Richard Biener <rguenther@suse.de>
27441 PR tree-optimization/57287
27442 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
27443 all SSA names that occur in abnormal PHIs.
27445 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
27448 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
27449 that index is not negative.
27451 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
27453 PR rtl-optimization/55177
27454 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
27455 (simplify_byte_swapping_operation): New.
27456 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
27457 (simplify_relational_operation_1): Deal with BSWAP.
27459 2013-05-23 Richard Henderson <rth@redhat.com>
27462 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
27463 (ix86_reorg): Call it.
27465 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
27468 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
27469 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
27470 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
27472 2013-05-23 Christian Bruel <christian.bruel@st.com>
27475 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
27477 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
27478 Marcus Shawcroft <marcus.shawcroft@arm.com>
27480 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
27481 * config/aarch64/constraints.md (Usa): Remove.
27482 * doc/md.texi (AArch64 Usa): Remove.
27484 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
27485 Marcus Shawcroft <marcus.shawcroft@arm.com>
27487 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
27488 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
27489 * config/aarch64/predicates.md (aarch64_const_address): Remove.
27490 (aarch64_mov_operand): Use aarch64_mov_operand_p.
27492 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
27494 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
27495 instruction (AdvSIMD).
27496 * config/aarch64/aarch64-builtins.c
27497 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
27498 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
27500 2013-05-23 Martin Jambor <mjambor@suse.cz>
27502 PR middle-end/57347
27503 * tree.h (contains_bitfld_component_ref_p): Declare.
27504 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
27505 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
27507 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
27508 not access a bit-field. Assert all final offsets are byte-aligned.
27510 2013-05-23 Richard Biener <rguenther@suse.de>
27512 PR tree-optimization/57380
27513 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
27514 least one invariant or re-used load.
27515 * passes.c (init_optimization_passes): Move pass_phiprop before
27518 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
27520 * config/aarch64/aarch64-simd.md
27521 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
27523 2013-05-23 Richard Biener <rguenther@suse.de>
27525 PR middle-end/57381
27526 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
27527 OEP_CONSTANT_ADDRESS_OF retained.
27529 2013-05-23 Jakub Jelinek <jakub@redhat.com>
27531 PR middle-end/57344
27532 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
27533 don't lower unit. Handle unit not being always BITS_PER_WORD.
27535 2013-05-23 Richard Biener <rguenther@suse.de>
27537 PR rtl-optimization/57341
27538 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
27539 instead of true_dependence.
27541 2013-05-22 David Malcolm <dmalcolm@redhat.com>
27543 * bb-reorder.c (branch_threshold): Make const.
27544 (exec_threshold): Ditto.
27546 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
27547 Pat Haugen <pthaugen@us.ibm.com>
27548 Peter Bergner <bergner@vnet.ibm.com>
27550 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
27551 documentation for the power8 crypto builtins.
27553 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
27555 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
27556 macros for defining power8 builtin functions.
27557 (BU_P8V_AV_2): Likewise.
27558 (BU_P8V_AV_P): Likewise.
27559 (BU_P8V_VSX_1): Likewise.
27560 (BU_P8V_OVERLOAD_1): Likewise.
27561 (BU_P8V_OVERLOAD_2): Likewise.
27562 (BU_CRYPTO_1): Likewise.
27563 (BU_CRYPTO_2): Likewise.
27564 (BU_CRYPTO_3): Likewise.
27565 (BU_CRYPTO_OVERLOAD_1): Likewise.
27566 (BU_CRYPTO_OVERLOAD_2): Likewise.
27567 (XSCVSPDP): Fix typo, point to the correct instruction.
27568 (VCIPHER): Add power8 crypto builtins.
27569 (VCIPHERLAST): Likewise.
27570 (VNCIPHER): Likewise.
27571 (VNCIPHERLAST): Likewise.
27572 (VPMSUMB): Likewise.
27573 (VPMSUMH): Likewise.
27574 (VPMSUMW): Likewise.
27575 (VPERMXOR_V2DI): Likewise.
27576 (VPERMXOR_V4SI: Likewise.
27577 (VPERMXOR_V8HI: Likewise.
27578 (VPERMXOR_V16QI: Likewise.
27579 (VSHASIGMAW): Likewise.
27580 (VSHASIGMAD): Likewise.
27581 (VPMSUM): Likewise.
27582 (VPERMXOR): Likewise.
27583 (VSHASIGMA): Likewise.
27585 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
27586 __CRYPTO__ if the crypto instructions are available.
27587 (altivec_overloaded_builtins): Add support for overloaded power8
27590 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
27591 support for power8 crypto builtins.
27592 (builtin_function_type): Likewise.
27593 (altivec_init_builtins): Add support for builtins that take vector
27594 long long (V2DI) arguments.
27596 * config/rs6000/crypto.md: New file, define power8 crypto
27599 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
27600 Pat Haugen <pthaugen@us.ibm.com>
27601 Peter Bergner <bergner@vnet.ibm.com>
27603 * doc/invoke.texi (Option Summary): Add power8 options.
27604 (RS/6000 and PowerPC Options): Likewise.
27606 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
27607 constraints.md instead of rs6000.h. Reorder w* constraints. Add
27608 wm, wn, wr documentation.
27610 * config/rs6000/constraints.md (wm): New constraint for VSX
27611 registers if direct move instructions are enabled.
27612 (wn): New constraint for no registers.
27613 (wq): New constraint for quad word even GPR registers.
27614 (wr): New constraint if 64-bit instructions are enabled.
27615 (wv): New constraint if power8 vector instructions are enabled.
27616 (wQ): New constraint for quad word memory locations.
27618 * config/rs6000/predicates.md (const_0_to_15_operand): New
27619 constraint for 0..15 for crypto instructions.
27620 (gpc_reg_operand): If VSX allow registers in VSX registers as well
27621 as GPR and floating point registers.
27622 (int_reg_operand): New predicate to match only GPR registers.
27623 (base_reg_operand): New predicate to match base registers.
27624 (quad_int_reg_operand): New predicate to match even GPR registers
27625 for quad memory operations.
27626 (vsx_reg_or_cint_operand): New predicate to allow vector logical
27627 operations in both GPR and VSX registers.
27628 (quad_memory_operand): New predicate for quad memory operations.
27629 (reg_or_indexed_operand): New predicate for direct move support.
27631 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
27632 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
27633 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
27634 (POWERPC_MASKS): Add power8 options.
27635 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
27638 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
27639 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
27641 * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
27642 (-mpower8-fusion): New power8 options.
27643 (-mpower8-fusion-sign): Likewise.
27644 (-mpower8-vector): Likewise.
27645 (-mcrypto): Likewise.
27646 (-mdirect-move): Likewise.
27647 (-mquad-memory): Likewise.
27649 * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
27650 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
27652 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
27653 (rs6000_debug_vector_unit): Add p8_vector.
27654 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
27655 definitions. Also print fusion state.
27656 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
27657 (rs6000_builtin_mask_calculate): Add power8 builtin support.
27658 (rs6000_option_override_internal): Add support for power8.
27659 (rs6000_common_init_builtins): Add debugging for skipped builtins
27660 if -mdebug=builtin.
27661 (rs6000_adjust_cost): Add power8 support.
27662 (rs6000_issue_rate): Likewise.
27663 (insn_must_be_first_in_group): Likewise.
27664 (insn_must_be_last_in_group): Likewise.
27665 (force_new_group): Likewise.
27666 (rs6000_register_move_cost): Likewise.
27667 (rs6000_opt_masks): Likewise.
27669 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
27670 power8 capable assembler, default to power7 options.
27671 (TARGET_DIRECT_MOVE): Likewise.
27672 (TARGET_CRYPTO): Likewise.
27673 (TARGET_P8_VECTOR): Likewise.
27674 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
27675 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
27676 (VECTOR_MEM_P8_VECTOR_P): Likewise.
27677 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
27678 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
27679 (TARGET_XSCVDPSPN): Likewise.
27680 (TARGET_XSCVSPDPN): Likewsie.
27681 (TARGET_SYNC_HI_QI): Likewise.
27682 (TARGET_SYNC_TI): Likewise.
27683 (MASK_CRYPTO): Likewise.
27684 (MASK_DIRECT_MOVE): Likewise.
27685 (MASK_P8_FUSION): Likewise.
27686 (MASK_P8_VECTOR): Likewise.
27687 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
27688 temporary used by some of the direct move instructions to get two FP
27689 temporary registers does not force creation of a stack frame.
27690 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
27691 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
27692 that any VSX registers are tieable, even if they are also an
27693 Altivec vector mode.
27694 (r6000_reg_class_enum): Add wm, wr, wv constraints.
27695 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
27696 (RS6000_BTM_CRYPTO): Likewise.
27697 (RS6000_BTM_COMMON): Likewise.
27699 * config/rs6000/rs6000.md (cpu attribute): Add power8.
27700 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
27701 (enum rs6000_vector): Add power8 vector support.
27703 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27707 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
27708 (any_sibcall_could_use_r3): this and handle indirect calls.
27709 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
27711 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27713 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
27715 2013-05-22 Richard Biener <rguenther@suse.de>
27717 PR middle-end/57349
27718 * profile.c (branch_prob): Do not split blocks that are
27719 abnormally receiving from ECF_RETURNS_TWICE functions.
27721 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27723 * recog.c (offsettable_address_addr_space_p): Fix calculation of
27724 address mode. Move pointer mode initialization to the same place.
27726 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
27728 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
27729 while it has any effect.
27731 2013-05-21 Easwaran Raman <eraman@google.com>
27733 PR tree-optimization/57322
27734 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
27735 UID of the statement added to the BB to be 1.
27737 2013-05-21 Jakub Jelinek <jakub@redhat.com>
27739 PR tree-optimization/57331
27740 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
27741 of conversion from pointer type to integral type with integer.
27743 2013-05-21 Martin Jambor <mjambor@suse.cz>
27746 * ipa-prop.c (ipa_read_node_info): Process param_used and
27747 controlled_uses in the same order as when writing.
27749 2013-05-21 Magnus Granberg <baldrick@free.fr>
27752 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
27754 2013-05-21 Richard Biener <rguenther@suse.de>
27756 PR tree-optimization/57318
27757 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
27758 estimate stmts with side-effects as likely eliminated.
27760 2013-05-21 Richard Biener <rguenther@suse.de>
27762 PR tree-optimization/57330
27763 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
27764 preserve the call stmts fntype.
27766 2013-05-21 Richard Biener <rguenther@suse.de>
27768 PR tree-optimization/57303
27769 * tree-ssa-sink.c (statement_sink_location): Improve killing
27770 stmt detection and properly handle self-assignments.
27772 2013-05-21 Christian Bruel <christian.bruel@st.com>
27774 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
27775 spanning registers. LEAF_REG_REMAP is supported only for contiguous
27776 registers. Set register size out of the PARALLEL loop.
27778 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
27781 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
27782 (*fmasf4, *fmasf4_media): New insns.
27784 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
27786 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
27787 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
27788 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
27789 (mips_idiv_insns): Update the comments to say that the returned
27790 instruction counts are in units of BASE_INSN_LENGTH.
27791 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
27792 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
27793 using 2 rather than 4 as the length of indirect MIPS16 and
27794 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
27795 length of a NOP. Don't divide MIPS16 lengths by 2.
27796 (mips16_split_long_branches): Assume a branch is long if the
27797 length is greater than 4 rather than 8.
27798 * config/mips/mips.md (length): Give MIPS16 lengths directly,
27799 rather than multiplying them by 2. Multiply instruction counts
27800 by BASE_INSN_LENGTH rather than 4.
27801 (*jump_mips16, tls_get_tp_mips16_<mode>)
27802 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
27804 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
27806 * config/mips/mips.md (extended_mips16): Remove branch case.
27807 (length): Remove duplicated extended_mips16 test.
27809 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
27811 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
27813 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
27815 * recog.h (Recog_data): Rename to...
27816 (recog_data_d): ...this.
27817 (recog_data): Update accordingly.
27818 * recog.c (recog_data): Likewise.
27819 * reload.c (save_recog_data): Likewise.
27820 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
27821 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
27823 2013-05-17 Julian Brown <julian@codesourcery.com>
27825 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
27826 found in a REG_EQUAL note, invalidate it.
27828 2013-05-17 Easwaran Raman <eraman@google.com>
27830 * tree-ssa-reassoc.c (find_insert_point): New function.
27831 (insert_stmt_after): Likewise.
27832 (get_def_stmt): Likewise.
27833 (ensure_ops_are_available): Likewise.
27834 (not_dominated_by): Likewise.
27835 (rewrite_expr_tree): Do not move statements beyond what is
27836 necessary. Remove call to swap_ops_for_binary_stmt...
27837 (reassociate_bb): ... and move it here.
27838 (build_and_add_sum): Assign UIDs for new statements.
27839 (linearize_expr): Likewise.
27840 (do_reassoc): Renumber gimple statement UIDs.
27842 2013-05-17 Jan Hubicka <jh@suse.cz>
27844 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
27846 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
27847 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
27849 (output_weakrefs): Update.
27851 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
27852 Martin Jambor <mjambor@suse.cz>
27854 PR middle-end/57276
27855 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
27856 value that corresponds to the given aggval is found in values vector.
27858 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
27860 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
27861 sse, sse2, sse3, ssse3 and sse4a flags to options.
27863 2013-05-17 David Malcolm <dmalcolm@redhat.com>
27865 * gengtype-state.c: (s_expr_writer): New class, to handle
27866 prettifying of output layout of s-expressions.
27867 (state_writer): New class, to write out gtype.state.
27868 (state_written_type_count): Move this variable into member data of
27870 (s_expr_writer::s_expr_writer): New code: constructor for new class
27871 (state_writer::state_writer(): ditto
27872 (s_expr_writer::write_new_line): New function
27873 (s_expr_writer::write_any_indent): ditto
27874 (s_expr_writer::begin_s_expr): ditto
27875 (s_expr_writer::end_s_expr): ditto
27876 (write_state_fileloc): convert to method of state_writer...
27877 (state_writer:: write_state_fileloc): ...and use methods of
27878 s_expr_writer to write indentation into the gtype.state output file
27879 to visually represent the hierarchical structure of the list
27881 (write_state_fields): ditto, renaming to...
27882 (state_writer::write_state_fields)
27883 (write_state_a_string): ditto, renaming to...
27884 (state_writer::write_state_a_string)
27885 (write_state_string_option): ditto, renaming to...
27886 (state_writer::write_state_string_option)
27887 (write_state_type_option): ditto, renaming to...
27888 (state_writer::write_state_type_option)
27889 (write_state_nested_option): ditto, renaming to...
27890 (state_writer::write_state_nested_option)
27891 (write_state_option): ditto, renaming to...
27892 (state_writer::write_state_option)
27893 (write_state_options): ditto, renaming to...
27894 (state_writer::write_state_options)
27895 (write_state_lang_bitmap): ditto, renaming to...
27896 (state_writer::write_state_lang_bitmap)
27897 (write_state_version): ditto, renaming to...
27898 (state_writer::write_state_version)
27899 (write_state_scalar_type): ditto, renaming to...
27900 (state_writer::write_state_scalar_type)
27901 (write_state_string_type): ditto, renaming to...
27902 (state_writer::write_state_string_type)
27903 (write_state_undefined_type): ditto, renaming to...
27904 (state_writer::write_state_undefined_type)
27905 (write_state_struct_union_type): ditto, renaming to...
27906 (state_writer::write_state_struct_union_type)
27907 (write_state_struct_type): ditto, renaming to...
27908 (state_writer::write_state_struct_type)
27909 (write_state_user_struct_type): ditto, renaming to...
27910 (state_writer::write_state_user_struct_type)
27911 (write_state_lang_struct_type): ditto, renaming to...
27912 (state_writer::write_state_lang_struct_type)
27913 (write_state_param_struct_type): ditto, renaming to...
27914 (state_writer::write_state_param_struct_type)
27915 (write_state_pointer_type): ditto, renaming to...
27916 (state_writer::write_state_pointer_type)
27917 (write_state_array_type): ditto, renaming to...
27918 (state_writer::write_state_array_type)
27919 (write_state_gc_used): ditto, renaming to...
27920 (state_writer::write_state_gc_used)
27921 (write_state_common_type_content): ditto, renaming to...
27922 (state_writer::write_state_common_type_content)
27923 (write_state_type): ditto, renaming to...
27924 (state_writer::write_state_type)
27925 (write_state_pair_list): ditto, renaming to...
27926 (state_writer::write_state_pair_list)
27927 (write_state_pair): ditto, renaming to...
27928 (state_writer::write_state_pair)
27929 (write_state_typedefs): ditto, renaming to...
27930 (state_writer::write_state_typedefs)
27931 (write_state_structures): ditto, renaming to...
27932 (state_writer::write_state_structures)
27933 (write_state_param_structs): ditto, renaming to...
27934 (state_writer::write_state_param_structs)
27935 (write_state_variables): ditto, renaming to...
27936 (state_writer::write_state_variables)
27937 (write_state_srcdir): ditto, renaming to...
27938 (state_writer::write_state_srcdir)
27939 (write_state_files_list): ditto, renaming to...
27940 (state_writer::write_state_files_list)
27941 (write_state_languages): ditto, renaming to...
27942 (state_writer::write_state_languages)
27943 (write_state): create a state_writer instance and use it when
27944 writing out the state file
27946 2013-05-17 Mike Stump <mikestump@comcast.net>
27948 PR rtl-optimization/57304
27949 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
27950 accessing DF_REF_REAL_LOC.
27952 2013-05-17 Jakub Jelinek <jakub@redhat.com>
27954 PR rtl-optimization/57281
27955 PR rtl-optimization/57300
27956 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
27957 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
27958 what the other splitter did if the registers are dead.
27960 2013-05-17 Richard Biener <rguenther@suse.de>
27962 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
27965 2013-05-17 Jakub Jelinek <jakub@redhat.com>
27967 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
27970 2013-05-17 Marek Polacek <polacek@redhat.com>
27972 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
27973 length when doing non-zero store of storing '\0' to '\0'.
27975 2013-05-17 Jakub Jelinek <jakub@redhat.com>
27977 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
27978 vect_external_def oprnd1 with loop_vinfo, try to emit
27979 optional cast, negation and and stmts on the loop preheader
27980 edge instead of into the pattern def seq.
27982 PR tree-optimization/57051
27983 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
27984 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
27986 2013-05-16 Nick Clifton <nickc@redhat.com>
27988 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
27989 (rl78_is_naked_func): New function.
27990 (rl78_expand_prologue): Skip prologue generation for naked functions.
27991 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
27992 * doc/extend.texi (naked): Add RL78 to the list of processors
27993 that supports this attribute.
27995 2013-05-16 Jeff Law <law@redhat.com>
27997 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
27999 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
28001 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
28002 cache parameters using detect_caches_amd also for CYRIX,
28003 NSC and TM2 signatures.
28005 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
28006 Dzianis Kahanovich <mahatma@eu.by>
28010 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
28011 VIA/Centaur processors and determine their cache parameters
28012 using detect_caches_amd.
28014 2013-05-16 Teresa Johnson <tejohnson@google.com>
28016 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
28017 (rtl_verify_edges): New function.
28018 (rtl_verify_bb_insns): Ditto.
28019 (rtl_verify_bb_pointers): Ditto.
28020 (rtl_verify_bb_insn_chain): Ditto.
28021 (rtl_verify_fallthru): Ditto.
28022 (rtl_verify_bb_layout): Ditto.
28023 (rtl_verify_flow_info_1): Outline checks into new functions.
28024 (rtl_verify_flow_info): Ditto.
28026 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
28028 * cfghooks.c (copy_bbs): Add update_dominance argument.
28029 * cfghooks.h (copy_bbs): Update prototype.
28030 * tree-cfg.c (gimple_duplicate_sese_region):
28031 Add update_dominance argument.
28032 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
28033 * tree-ssa-loop-ch.c (copy_loop_headers): Update
28034 gimple_duplicate_sese_region call.
28035 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
28036 Update copy_bbs call.
28037 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
28038 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
28040 2013-05-16 Jakub Jelinek <jakub@redhat.com>
28042 * tree-vectorizer.h (NUM_PATTERNS): Increment.
28043 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
28044 vect_recog_rotate_pattern.
28045 (vect_recog_rotate_pattern): New function.
28047 2013-05-16 Jason Merrill <jason@redhat.com>
28049 * Makefile.in (LLINKER): New variable.
28050 (mostlyclean): Remove link mutex.
28051 * configure.ac: Handle --enable-link-mutex.
28052 * lock-and-run.sh: New script.
28054 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28057 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
28060 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28062 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
28064 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
28066 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
28067 * config/arm/arm.c (next_consecutive_mem): New function.
28068 (gen_movmem_ldrd_strd): Likewise.
28069 * config/arm/arm.md (movmemqi): Update condition and code.
28070 (unaligned_loaddi, unaligned_storedi): New patterns.
28072 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28074 * config.gcc: Obsolete *-*-solaris2.9*.
28075 * doc/install.texi (Specific, *-*-solaris2*): Document it.
28077 2013-05-16 Richard Biener <rguenther@suse.de>
28079 * passes.c (init_optimization_passes): Move pass_parallelize_loops
28080 earlier, after GRAPHITE transforms and IV canonicalization.
28082 2013-05-16 Jakub Jelinek <jakub@redhat.com>
28084 * omp-low.c (extract_omp_for_data): For collapsed loops,
28085 if at least one of the loops is known at compile time to
28086 iterate zero times, set count to 0.
28087 (expand_omp_regimplify_p): New function.
28088 (expand_omp_for_generic): For collapsed loops, if at least
28089 one of the loops isn't known to iterate at least once,
28090 add runtime check with setting count to 0.
28091 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
28092 For unsigned types if it isn't known at compile time that
28093 the loop will iterate at least once, add runtime check to bypass
28094 the whole loop if initial condition isn't true.
28096 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
28098 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
28100 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
28102 PR middle-end/57286
28103 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
28104 transformations to avoid an infinite loop.
28106 2013-05-16 Marek Polacek <polacek@redhat.com>
28108 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
28110 2013-05-15 Leif Ekblad <leif@rdos.net>
28112 * config/i386/i386.c (ix86_decompose_address): Use
28113 DEFAULT_TLS_SEG_REG to access TLS segment register.
28114 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
28115 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
28116 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
28118 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
28121 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
28122 sibling calls to functions that would normally be lazily bound,
28123 unless $gp is call-clobbered.
28125 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
28127 * config/i386/i386.c (ix86_option_override_internal): Update
28128 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
28129 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
28130 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
28131 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
28133 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
28135 2013-05-15 Andreas Schwab <schwab@suse.de>
28137 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
28138 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
28141 2013-05-15 Teresa Johnson <tejohnson@google.com>
28143 * loop-unroll.c (report_unroll_peel): Check decision before
28144 emitting unroll/peel message.
28146 2013-05-15 Teresa Johnson <tejohnson@google.com>
28148 * function.h (has_bb_partition): New rtl_data flag.
28149 (bb_reorder_complete): Ditto.
28150 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
28151 instead of flag_reorder_blocks_and_partition.
28152 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
28153 with some enhancements.
28154 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
28155 * bb-reorder.c (connect_traces): Check for has_bb_partition
28156 instead of flag_reorder_blocks_and_partition.
28157 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
28158 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
28159 verify_hot_cold_block_grouping.
28160 (partition_hot_cold_basic_blocks): Set has_bb_partition.
28162 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28165 * config/arm/predicates.md (call_insn_operand): New predicate.
28166 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
28167 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
28168 if insn is not a tail call.
28169 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
28171 * config/arm/arm.h (enum reg_class): New caller save register class.
28172 (REG_CLASS_NAMES): Likewise.
28173 (REG_CLASS_CONTENTS): Likewise.
28174 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
28177 2013-05-15 Richard Biener <rguenther@suse.de>
28179 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
28180 of MSG_OPTIMIZED_LOCATIONS.
28181 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
28182 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
28184 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
28185 of MSG_OPTIMIZED_LOCATIONS.
28186 (execute_vect_slp): Likewise.
28187 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
28188 (vect_create_cond_for_alias_checks): Likewise.
28189 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
28190 (vect_recog_widen_mult_pattern): Likewise.
28191 (vect_recog_widen_sum_pattern): Likewise.
28192 (vect_recog_over_widening_pattern): Likewise.
28193 (vect_recog_widen_shift_pattern): Likewise.
28194 (vect_recog_vector_vector_shift_pattern): Likewise.
28195 (vect_recog_divmod_pattern): Likewise.
28196 (vect_recog_mixed_size_cond_pattern): Likewise.
28197 (vect_recog_bool_pattern): Likewise.
28198 (vect_pattern_recog_1): Likewise.
28200 2013-05-15 Martin Jambor <mjambor@suse.cz>
28202 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
28203 non-functions to builtin_unreachable.
28204 * ipa-inline-transform.c (inline_call): Do not assert estimates were
28205 correct when new direct edges were discovered.
28207 2013-05-15 Martin Jambor <mjambor@suse.cz>
28209 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
28210 header, print symbol order instead of node uid, print more information
28211 about indirect edge targets.
28212 (ipa_make_edge_direct_to_target): Print symbol order instead of node
28214 (ipa_make_edge_direct_to_target): Likewise.
28215 (remove_described_reference): Likewise.
28216 (propagate_controlled_uses): Likewise.
28217 (ipa_print_node_params): Also print symbol order.
28218 (ipcp_transform_function): Print symbol order instead of node uids.
28219 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
28220 (cgraph_get_create_real_symbol_node): Likewise.
28221 * ipa-cp.c (print_lattice): Likewise.
28222 (print_all_lattices): Likewise.
28223 (determine_versionability): Likewise.
28224 (initialize_node_lattices): Likewise.
28225 (estimate_local_effects): Likewise.
28226 (update_profiling_info): Likewise.
28227 (create_specialized_node): Likewise.
28228 (perhaps_add_new_callers): Likewise.
28229 (decide_about_value): Likewise.
28230 (decide_whether_version_node): Likewise.
28231 (identify_dead_nodes): Likewise.
28232 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
28233 (dump_inline_summary): Likewise.
28234 (estimate_node_size_and_time): Likewise.
28235 (inline_analyze_function): Likewise.
28236 * ipa-inline.c (report_inline_failed_reason): Likewise.
28237 (want_early_inline_function_p): Likewise.
28238 (edge_badness): Likewise.
28239 (update_edge_key): Likewise.
28240 (inline_small_functions): Likewise. Add dumping of order to two other
28242 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
28243 instead of node uids.
28244 (propagate_pure_const): Likewise.
28245 (propagate_pure_const): Likewise.
28246 * ipa-utils.c (dump_cgraph_node_set): Likewise.
28247 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
28248 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
28250 * tree-pretty-print.c (dump_function_header): Likewise.
28251 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
28252 Print symbol order instead of node uids.
28254 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28256 * config/s390/s390.c (s390_register_move_cost): Don't impose the
28257 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
28259 2013-05-15 Richard Biener <rguenther@suse.de>
28261 PR tree-optimization/57275
28262 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
28263 return value for fail to do runtime alias checks for gather loads.
28265 2013-05-15 Jan Hubicka <jh@suse.cz>
28269 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
28270 weakrefs are not external.
28271 (lto_symtab_merge_decls): Fix thinko when dealing with
28272 non-lto_symtab decls.
28273 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
28274 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
28275 * varpool.c (dump_varpool_node): Dump more flags.
28277 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
28279 * config/i386/i386.c (processor_alias_table): Add instruction
28280 FSGSBASE for AMD bdver3 architecture.
28282 2013-05-14 Jakub Jelinek <jakub@redhat.com>
28284 * tree.c (warn_deprecated_use): Print file:line using locus color.
28285 * diagnostic.c (diagnostic_report_current_module): Print file:line
28286 and file:line:column using locus color.
28288 2013-05-14 Mike Stump <mikestump@comcast.net>
28290 * gdbinit.in: Add __null.
28292 2013-05-14 Mike Stump <mikestump@comcast.net>
28294 * recog.h: Rename struct recog_data to Recog_data.
28295 * recog.c: Likewise.
28296 * reload.c (can_reload_into): Likewise.
28297 * config/picochip/picochip.c: Likewise.
28299 2013-05-14 Mike Stump <mikestump@comcast.net>
28301 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
28303 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
28305 * resource.h (struct resources): Remove unch_memory member.
28306 (CLEAR_RESOURCE): Don't clear unch_memory.
28307 * resource.c (mark_referenced_resources): Don't set it.
28308 (mark_set_resources): Likewise.
28309 (mark_target_live_regs): Don't clear it.
28310 (init_resource_info): Likewise.
28311 * reorg.c (resource_conflicts_p): Don't compare it.
28312 (redundant_insn): Don't set it.
28314 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
28316 * emit-rtl.c (next_label): Remove unused function.
28317 (skip_consecutive_labels, link_cc0_insns): Move to ...
28318 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
28319 only place where these functions are used, and make them static.
28321 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
28323 * fold-const.c (fold_negate_expr): Handle vectors.
28324 (fold_truth_not_expr): Make it static.
28325 (fold_invert_truthvalue): New static function.
28326 (invert_truthvalue_loc): Handle vectors. Do not call
28327 fold_truth_not_expr directly.
28328 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
28329 <TRUTH_NOT_EXPR>: Do not cast to boolean.
28330 (fold_comparison): Handle vector constants.
28331 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
28332 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
28333 * tree.h (fold_truth_not_expr): Remove declaration.
28335 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
28337 * config/aarch64/aarch64-simd.md
28338 (aarch64_vcond_internal<mode>): Rename to...
28339 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
28340 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
28341 float modes. Clarify all iterator modes.
28342 (vcond<mode><mode>): Use new name for vcond expanders.
28343 (vcond<v_cmp_result><mode>): Likewise.
28344 (vcondu<mode><mode>: Likewise.
28345 * config/aarch64/iterators.md (VDQF_COND): New.
28347 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
28350 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
28351 variable for the shift amount. Check that we shift by non-negative
28354 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
28357 * config/arm/arm.h (EPILOGUE_USES): Only return true
28358 for LR_REGNUM after epilogue_completed.
28360 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
28362 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
28363 is error_mark_node.
28365 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28368 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
28369 and Solaris 11+/x86 with gld.
28370 * configure: Regenerate.
28372 2013-05-14 Jakub Jelinek <jakub@redhat.com>
28374 * expmed.c (expand_shift_1): Canonicalize rotates by
28375 constant bitsize / 2 to bitsize - 1.
28376 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
28377 case ROTATERT>: Likewise.
28380 2013-05-10 Jakub Jelinek <jakub@redhat.com>
28382 * config/i386/i386.md (rotateinv): New code attr.
28383 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
28384 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
28385 roll $31, %eax, etc.
28387 2013-05-14 Richard Biener <rguenther@suse.de>
28389 PR middle-end/57235
28390 * tree-eh.c (sink_clobbers): Give up for successors with
28391 multiple predecessors and no virtual uses.
28393 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
28395 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
28396 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
28398 2013-05-14 Jakub Jelinek <jakub@redhat.com>
28400 PR middle-end/57251
28401 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
28402 the case when both op0 and op1 have VOIDmode.
28404 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
28406 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
28407 in multiply-accumulate mode.
28409 2013-05-13 Guozhi Wei <carrot@google.com>
28411 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
28413 2013-05-13 Kai Tietz <ktietz@redhat.com>
28416 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
28417 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
28418 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
28419 * config/i386/i386.c (ix86_option_override_internal): Likewise.
28420 (ix86_expand_prologue): Likewise.
28421 (ix86_expand_split_stack_prologue): Likewise.
28422 (legitimate_pic_address_disp_p): Likewise.
28423 (legitimize_pic_address): Likewise.
28424 (legitimize_tls_address): Likewise.
28425 (legitimize_pe_coff_symbol): Likewise.
28426 (output_pic_addr_const): Likewise.
28427 (construct_plt_address): Likewise.
28428 (ix86_expand_call): Likewise.
28429 (x86_output_mi_thunk): Likewise.
28430 (x86_function_profiler): Likewise.
28432 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
28434 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
28435 similar switch cases.
28436 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
28437 (aarch64_simd_mov_to_<mode>low): Delete.
28438 (aarch64_simd_mov_to_<mode>high): Delete.
28439 (move_lo_quad_<mode>): Add w<-r alternative.
28440 (aarch64_simd_move_hi_quad_<mode>): Likewise.
28441 (aarch64_simd_mov_from_*): Update type attribute.
28442 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
28445 2013-05-13 Jan Hubicka <jh@suse.cz>
28447 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
28448 * config/i386/i386.c (ix86_compute_frame_layout,
28449 ix86_expand_epilogue, emit_i387_cw_initialization,
28450 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
28451 ix86_local_alignment): Fix use of size/speed predicates.
28453 2013-05-13 Jakub Jelinek <jakub@redhat.com>
28455 PR tree-optimization/45216
28456 PR tree-optimization/57157
28457 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
28458 the (-Y) & (B - 1) variant if OP is |.
28459 * expmed.c (expand_shift_1): For rotations by const0_rtx just
28460 return shifted. Use (-op1) & (prec - 1) as other_amount
28461 instead of prec - op1.
28463 2013-05-13 Martin Jambor <mjambor@suse.cz>
28465 PR middle-end/42371
28466 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
28467 (ipa_constant_data): New type.
28468 (ipa_jump_func): Use ipa_constant_data to hold information about
28469 constant jump functions.
28470 (ipa_get_jf_constant): Adjust to jump function type changes.
28471 (ipa_get_jf_constant_rdesc): New function.
28472 (ipa_param_descriptor): New field controlled_uses.
28473 (ipa_get_controlled_uses): New function.
28474 (ipa_set_controlled_uses): Likewise.
28475 * ipa-ref.h (ipa_find_reference): Declare.
28476 * ipa-prop.c (ipa_cst_ref_desc): New type.
28477 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
28479 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
28480 New parameter cs. Adjust all callers.
28481 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
28482 (remove_described_reference): New function.
28483 (jfunc_rdesc_usable): Likewise.
28484 (try_make_edge_direct_simple_call): Decrement controlled use count,
28485 attempt to remove reference if it hits zero.
28486 (combine_controlled_uses_counters): New function.
28487 (propagate_controlled_uses): Likewise.
28488 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
28489 (ipa_edge_duplication_hook): Duplicate reference descriptions.
28490 (ipa_print_node_params): Print described use counter.
28491 (ipa_write_jump_function): Adjust to jump function type changes.
28492 (ipa_read_jump_function): New parameter CS, pass it to
28493 ipa_set_jf_constant. Adjust caller.
28494 (ipa_write_node_info): Stream controlled use count
28495 (ipa_read_node_info): Likewise.
28496 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
28498 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
28499 count. Remove cloning-added reference if it reaches zero.
28500 * ipa-ref.c (ipa_find_reference): New function.
28502 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
28504 * config/i386/i386.c (processor_target_table): Modified default
28505 alignment values for AMD BD and BT architectures.
28507 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
28509 * tree-vect-generic.c (uniform_vector_p): Move ...
28510 * tree.c (uniform_vector_p): ... here.
28511 * tree.h (uniform_vector_p): Declare it.
28512 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
28515 2013-05-13 Jakub Jelinek <jakub@redhat.com>
28517 PR tree-optimization/57230
28518 * tree-ssa-strlen.c (handle_char_store): Record length for
28519 array store from STRING_CST.
28521 PR tree-optimization/57230
28522 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
28525 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
28527 * config/epiphany/epiphany.c (epiphany_init): Check size of
28528 NUM_MODES_FOR_MODE_SWITCHING.
28529 (epiphany_expand_prologue):
28530 Remove CONFIG_REGNUM initial value handling code.
28531 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
28532 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
28533 (emit_set_fp_mode, epiphany_mode_after): Likewise.
28534 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
28535 Don't return 1 for FP_MODE_NONE.
28536 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
28537 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
28538 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
28539 * config/epiphany/epiphany.md (save_config): New pattern.
28541 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
28543 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
28545 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
28547 * config/i386/i386.md (memory): Handle sseishft1.
28548 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
28549 (*vec_extractv2di_1): Ditto.
28551 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
28553 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
28556 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
28558 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
28559 Add mthumb/march=armv7-a multilib.
28560 Add mthumb/march=armv7-r multilib.
28561 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
28563 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
28565 * config/v850/t-rtems: Add more multilibs.
28567 2013-05-10 Richard Biener <rguenther@suse.de>
28569 PR tree-optimization/57214
28570 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
28571 not propagate from SSA names that occur in abnormal PHI nodes.
28573 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
28575 * stor-layout.c (element_precision): New function.
28576 * machmode.h (element_precision): Declare it.
28577 * tree.c (build_minus_one_cst): New function.
28578 (element_precision): Likewise.
28579 * tree.h (build_minus_one_cst): Declare new function.
28580 (element_precision): Likewise.
28581 * fold-const.c (operand_equal_p): Use element_precision.
28582 (fold_binary_loc): Handle vector types.
28583 * convert.c (convert_to_integer): Use element_precision.
28584 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
28587 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
28589 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
28590 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
28591 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
28592 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
28593 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
28594 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
28595 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
28596 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
28597 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
28598 (Uuw8): New constraints.
28599 (Usb4): Move into alphabetical order.
28600 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
28601 (sd8_operand, ub8_operand, uw8_operand): New predicates.
28602 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
28603 previously unnamed patterns.
28604 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
28605 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
28606 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
28607 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
28608 of set_attr_alternative/if_then_else. Use extended_mips16 instead
28609 of specific lengths.
28611 2013-05-10 Jakub Jelinek <jakub@redhat.com>
28613 * config/i386/i386.md (rotateinv): New code attr.
28614 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
28615 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
28616 roll $31, %eax, etc.
28618 PR tree-optimization/45216
28619 PR tree-optimization/57157
28620 * tree-ssa-forwprop.c (simplify_rotate): New function.
28621 (ssa_forward_propagate_and_combine): Call it.
28623 2013-05-10 Richard Biener <rguenther@suse.de>
28625 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
28626 disable peeling when we version for aliasing.
28627 (vector_alignment_reachable_p): Honor explicit user alignment.
28628 (vect_supportable_dr_alignment): Likewise.
28629 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
28630 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
28631 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
28632 then peeling to arrange for the cost-model check to come first.
28634 2013-05-10 Alan Modra <amodra@gmail.com>
28636 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
28637 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
28638 * configure: Regenerate.
28640 2013-05-10 Alan Modra <amodra@gmail.com>
28643 * varasm.c (default_elf_select_section): Move !DECL_P check..
28644 (get_named_section): ..to here before calling get_section_name.
28646 (default_section_type_flags): Add DECL_P check.
28647 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
28648 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
28650 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
28652 * config/epiphany/epiphany.c (epiphany_expand_prologue):
28653 When using gen_stack_adjust_str with a register offset, add a
28654 REG_FRAME_RELATED_EXPR note.
28656 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
28658 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
28659 (*vec_extractv4si_zext_mem): Ditto.
28660 (*vec_extractv2di): Add 0->x and x->x alternatives.
28661 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
28662 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
28664 2013-05-09 Jason Merrill <jason@redhat.com>
28666 N3639 C++1y VLA support
28667 * gimplify.c (gimplify_vla_decl): Don't touch an existing
28670 * tree.c (build_constructor_va): New.
28671 * tree.h: Declare it.
28673 2013-05-09 Martin Jambor <mjambor@suse.cz>
28676 * gimple-fold.c (canonicalize_constructor_val): Call
28677 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
28679 2013-05-09 Jan Hubicka <jh@suse.cz>
28680 Richard Biener <rguenther@suse.de>
28683 * symtab.c (symtab_make_decl_local): Do not add private names.
28685 2013-05-09 Jan Hubicka <jh@suse.cz>
28688 * symtab.c (insert_to_assembler_name_hash): Handle clones.
28689 (unlink_from_assembler_name_hash): Likewise.
28690 (symtab_prevail_in_asm_name_hash, symtab_register_node,
28691 symtab_unregister_node, symtab_initialize_asm_name_hash,
28692 change_decl_assembler_name): Update.
28694 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
28696 * config/aarch64/aarch64.md: New movtf split.
28697 (*movtf_aarch64): Update.
28698 (aarch64_movdi_tilow): Handle TF modes and rename to
28699 aarch64_movdi_<mode>low.
28700 (aarch64_movdi_tihigh): Handle TF modes and rename to
28701 aarch64_movdi_<mode>high
28702 (aarch64_movtihigh_di): Handle TF modes and rename to
28703 aarch64_mov<mode>high_di
28704 (aarch64_movtilow_di): Handle TF modes and rename to
28705 aarch64_mov<mode>low_di
28706 (aarch64_movtilow_tilow): Remove spurious whitespace.
28707 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
28709 (aarch64_print_operand): Update.
28711 2013-05-09 Alan Modra <amodra@gmail.com>
28713 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
28715 * configure: Regenerate.
28717 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
28719 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
28720 splitter preparation statements.
28721 * config/i386/sse.md (*vec_extract* splitters): Ditto.
28722 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
28725 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28727 * gimple-ssa-strength-reduction.c (count_candidates): Change
28728 return value to int.
28729 (analyze_candidates_and_replace): Change type of length to int.
28731 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
28733 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
28734 (*vec_extract<mode>): Use VI12_128 mode iterator.
28735 (*vec_extract<mode>_mem): Ditto.
28736 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
28739 2013-05-08 Diego Novillo <dnovillo@google.com>
28744 2012-08-17 Diego Novillo <dnovillo@google.com>
28747 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
28748 * config.in: Regenerate.
28749 * configure: Regenerate.
28750 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
28752 2013-05-08 Jan Hubicka <jh@suse.cz>
28755 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
28756 * cgraph.h (symtab_node_base): Add unique_name.
28757 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
28758 input_overwrite_node, input_varpool_node): Stream unique_name.
28759 * cgraphclones.c (cgraph_create_virtual_clone,
28760 cgraph_function_versioning): Set unique_name.
28761 * ipa.c (function_and_variable_visibility): Set unique_name.
28763 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28765 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
28766 (alloc_cand_and_find_basis): Restrict conditional candidate
28767 processing to CAND_MULTs.
28769 2013-05-08 Jan Hubicka <jh@suse.cz>
28772 lto-symtab.c (lto_symtab_symbol_p): New function.
28773 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
28774 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
28775 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
28776 Skip static symbols.
28778 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
28780 PR tree-optimization/57200
28781 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
28782 Only call inform if the preceding warning_at returns true.
28784 2013-05-07 Han Shen <shenhan@google.com>
28786 * cfgexpand.c (record_or_union_type_has_array_p): New function.
28787 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
28788 * common.opt (fstack-protector-strong): New option.
28789 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
28790 * doc/invoke.texi (Optimization Options): Document
28791 "-fstack-protector-strong".
28792 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
28794 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
28796 * config/mips/mips.c (mips_machine_reorg2): Return 0.
28798 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
28800 * ira.c (update_equiv_regs): Add insn having equiv memory even if
28801 it is not lhs of the insn.
28802 (setup_reg_equiv): Remove insn having equiv memory which it is not
28804 * lra-constraints.c (process_address): Try to improve generation
28805 code for address base + disp.
28806 (lra_constraints): Make correct the code for checking insn setting
28807 up backward equivalence. Remove insn only if it is in the init
28809 * lra-eliminations.c (update_reg_eliminate): Change return value.
28810 (lra_eliminate): Use the result.
28812 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
28814 * config/i386/sse.md (ssescalarnummask): New mode attribute.
28815 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
28816 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
28817 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
28818 register target operands.
28819 (*vec_extractv8hi_sse2): New pattern.
28820 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
28821 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
28822 (*vec_extract<mode>_mem): New insn and split pattern.
28824 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
28826 * config/arm/arm.c (arm_asan_shadow_offset): New function.
28827 (TARGET_ASAN_SHADOW_OFFSET): Define.
28828 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
28829 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
28831 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28833 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
28834 (incr_vec_index): Return -1 if increment not found.
28835 (create_add_on_incoming_edge): Assert if increment not found.
28836 (record_increment): Limit number of increments recorded.
28837 (all_phi_incrs_profitable): Return false if an increment not found.
28838 (replace_profitable_candidates): Don't process increments that were
28840 (analyze_candidates_and_replace): Limit size of incr_vec.
28842 2013-05-07 Richard Biener <rguenther@suse.de>
28844 * calls.c (special_function_p): setjmp-like functions are leaf.
28845 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
28846 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
28848 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
28850 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
28851 (aarch64_simd_mov<mode>): New expander.
28852 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
28853 (aarch64_simd_mov_to_<mode>high): Likewise.
28854 (aarch64_simd_mov_from_<mode>low): Likewise.
28855 (aarch64_simd_mov_from_<mode>high): Likewise.
28856 (aarch64_dup_lane<mode>): Update.
28857 (aarch64_dup_lanedi): New instruction pattern.
28858 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
28859 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
28861 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28863 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
28864 (replace_mult_candidate): Remove unnecessary argument; remove
28865 unnecessary parameter from call to introduce_cast_before_cand.
28866 (replace_unconditional_candidate): Remove unnecessary parameter
28867 from call to replace_mult_candidate.
28868 (replace_conditional_candidate): Likewise.
28869 (insert_initializers): Use make_temp_ssa_name.
28870 (introduce_cast_before_cand): Remove unnecessary argument; use
28871 make_temp_ssa_name.
28872 (replace_one_candidate): Remove unnecessary argument; remove
28873 unnecessary parameter from calls to introduce_cast_before_cand.
28874 (replace_profitable_candidates): Remove unnecessary parameters
28875 from calls to replace_one_candidate.
28877 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28879 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
28880 phi def as possibly hiding a basis for a CAND_ADD whose operands
28881 have been commuted in the analysis.
28882 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
28884 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
28886 * config/aarch64/aarch64.md
28887 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
28888 shift value between 0-4.
28890 2013-05-07 Richard Biener <rguenther@suse.de>
28892 * double-int.h (rshift): New overload.
28893 * double-int.c (rshift): New function.
28894 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
28895 (create_reference_ops_from_ref): Remove.
28896 (vn_reference_insert): Use shared ops for constructing the
28897 reference and copy it.
28899 2013-05-07 Richard Biener <rguenther@suse.de>
28901 PR middle-end/57190
28902 * tree-eh.c (sink_clobbers): Properly propagate
28903 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
28905 2013-05-07 Jakub Jelinek <jakub@redhat.com>
28907 PR tree-optimization/57149
28908 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
28909 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
28910 collect_phi_def_edges, execute_late_warn_uninitialized): Use
28911 uninit_undefined_value_p instead of ssa_undefined_value_p.
28914 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
28915 for modifier == EXPAND_INITIALIZER.
28917 2013-05-07 Anton Blanchard <anton@samba.org>
28919 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
28920 for powerpc64 little endian.
28921 * configure: Regenerate.
28923 2013-05-06 Graham Stott <grahams@btinternet.com>
28925 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
28926 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
28927 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
28928 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
28930 2013-05-06 Graham Stott <grahams@btinternet.com>
28932 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
28933 codes which allow non-lvalues.
28935 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
28937 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
28938 components are all 1s.
28939 (integer_minus_onep): New function.
28940 * tree.h (integer_minus_onep): Declare it.
28941 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
28942 integer_minus_onep instead of integer_all_onesp.
28944 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
28947 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
28948 variations of these patterns.
28950 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
28952 * config/i386/i386.md (isa): Add x64_sse4 member.
28953 (enabled): Handle x64_sse4.
28954 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
28955 instruction for 64bit SSE4_1 targets. Update insn attributes.
28956 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
28957 instruction for SSE4_1 targets. Update insn attributes.
28958 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
28959 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
28960 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
28962 (*vec_extractv4si): Rename from *sse4_1_pextrd.
28963 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
28964 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
28966 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
28969 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
28971 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
28973 * final.c (do_assembler_dialects): Don't handle curly braces and
28974 vertical bar escaped by % as dialect delimiters.
28975 (output_asm_insn): Print curly braces and vertical bar if escaped
28976 by % and ASSEMBLER_DIALECT defined.
28977 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
28978 * doc/tm.texi: Regenerated.
28980 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
28982 * config/mips/mips.c: Include tree-pass.h.
28983 (mips_reorg): Split in pre- and post-dbr_schedule parts.
28984 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
28985 (pass_mips_machine_reorg2): New machine specific pass.
28986 (insert_pass_mips_machine_reorg2): New pass plugin definition.
28987 (mips_option_override): Register the new pass.
28988 * rtl.h (cleanup_barriers): Remove prototype.
28989 (dbr_schedule): Likewise.
28990 * jump.c (cleanup_barriers): Make static.
28991 * reorg.c (dbr_schedule): Likewise.
28993 2013-05-06 Richard Biener <rguenther@suse.de>
28995 PR tree-optimization/57185
28996 * tree-parloops.c (add_field_for_reduction): Handle anonymous
28997 SSA names properly.
28999 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
29002 * config/i386/i386.c (add_parameter_dependencies): Add dependence
29003 between "first_arg" and "insn", not "last" and "insn".
29005 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29007 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
29008 (find_candidates_in_block): Re-enable slsr_process_phi.
29009 (create_phi_basis): Fix double counting of candidate adjustment.
29011 2013-05-06 Richard Biener <rguenther@suse.de>
29013 PR middle-end/57147
29014 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
29015 the edge is also fallthru, preserve it and just clear the
29017 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
29018 also complex, preserve that and just clear the fallthru flag.
29019 * tree-inline.c (update_ssa_across_abnormal_edges): Also
29020 update virtual operands.
29022 2013-05-06 Alan Modra <amodra@gmail.com>
29024 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
29025 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
29026 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
29027 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
29028 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
29029 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
29031 2013-05-06 Alan Modra <amodra@gmail.com>
29033 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
29034 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
29035 (DEFAULT_ASM_ENDIAN): Define.
29036 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
29037 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
29038 Update -K PIC clause from sysv4.h.
29039 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
29040 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
29042 2013-05-06 Alan Modra <amodra@gmail.com>
29044 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
29045 twice for little-endian.
29046 (ashrdi3_no_power, ashrdi3): Support little-endian.
29048 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
29051 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
29052 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
29054 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
29055 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
29056 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
29059 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
29060 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29062 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
29063 * config/pa/pa.opt: Make mbig-switch a no-op.
29064 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
29065 (CASE_VECTOR_MODE): Always return SImode.
29066 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
29067 for the !TARGET_BIG_SWITCH case.
29068 * config/pa/pa-linux.h: Likewise.
29069 * config/pa/pa-openbsd.h: Likewise.
29070 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
29071 * config/pa/pa.md (short_jump): Remove define_insn.
29072 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
29073 (casesi0): Remove define_insn.
29074 (type): Remove btable_branch.
29075 (pa_combine_type): Likewise.
29076 (in_nullified_branch_delay): Likewise.
29077 (in_call_delay): Likewise.
29078 (define_delay): Likewise.
29079 (define_insn_reservation "Z3"): Likewise.
29080 (define_insn_reservation "Z4"): Likewise.
29081 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
29082 (pa_adjust_insn_length): Remove adjustment for btable branches.
29083 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
29086 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
29088 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
29089 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
29090 Add m->r,x alternatives.
29091 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
29092 splitters using SWI48x mode iterator.
29093 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
29094 TARGET_64BIT. Add m->x alternative.
29095 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
29096 Add o->x alternative. Enable for TARGET_SSE.
29097 (sse_storeq): Remove expander.
29098 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
29099 with memory input operand.
29100 (*vec_extractv2di_1 splitter): New.
29101 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
29102 * config/i386/i386.md (ssevecmodelower): New mode attribute.
29104 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
29106 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
29107 (INT_LOWPART): Delete.
29108 (extract_MB): Adjust.
29109 (extract_ME): Adjust.
29110 (print_operand): Adjust.
29112 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
29114 * config/rs6000/predicates.md (reg_or_add_cint_operand,
29115 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
29116 (reg_or_logical_cint_operand, easy_fp_constant,
29117 logical_const_operand): Delete "CONST_DOUBLE" case.
29118 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
29119 "HOST_BITS_PER_WIDE_INT == 64" test.
29120 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
29121 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
29122 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
29123 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
29125 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
29126 CONST_DOUBLE DImode/VOIDmode case.
29127 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
29128 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
29129 CONST_DOUBLE VOIDmode case.
29130 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
29131 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
29132 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
29133 Delete CONST_DOUBLE case.
29134 (splitters for mov FMOVE64 const_double): Delete
29135 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
29136 "HOST_BITS_PER_WIDE_INT >= 64" test.
29137 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
29139 (mov DI const_double): Delete.
29141 2013-05-04 Jakub Jelinek <jakub@redhat.com>
29143 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
29144 on op shows all bits zero in mode of a lowpart subreg, return zero.
29146 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
29149 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
29150 to save TFmode registers and DImode to save TImode registers for
29151 caller save operations.
29152 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
29153 mark being partially clobbered since they only use the first
29156 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
29157 and TDmode only use the upper 64-bits of each VSX register.
29159 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29161 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
29162 (find_candidates_in_block): Disable slsr_process_phi.
29164 2013-05-03 Guozhi Wei <carrot@google.com>
29166 * coverage.c (coverage_obj_init): Move the construction of gcov
29168 (build_init_ctor): ... here.
29170 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29172 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
29173 (slsr_cand_d): Redefine def_phi.
29174 (stride_status, phi_adjust_status, count_phis_status): New enums.
29175 (find_phi_def): New.
29176 (find_basis_for_base_expr): New.
29177 (find_basis_for_candidate): Handle hidden bases.
29178 (alloc_cand_and_find_basis): Handle phi candidates.
29179 (slsr_process_phi): New.
29180 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
29181 (create_mul_imm_cand): Likewise.
29182 (create_add_ssa_cand): Exclude phi base candidates.
29183 (create_add_imm_cand): Likewise.
29184 (slsr_process_cast): Likewise.
29185 (slsr_process_copy): Likewise.
29186 (find_candidates_in_block): Handle phi candidates.
29187 (dump_candidate): Likewise.
29188 (unconditional_cands): Delete.
29189 (unconditional_cands_with_known_stride_p): Delete.
29190 (phi_dependent_cand_p): New.
29191 (cand_increment): Handle phi-dependent candidates.
29192 (replace_dependent): Delete.
29193 (replace_mult_candidate): New.
29194 (replace_unconditional_candidate): New.
29195 (incr_vec_index): Move to avoid forward reference.
29196 (create_add_on_incoming_edge): New.
29197 (create_phi_basis): New.
29198 (replace_dependents): Delete.
29199 (replace_conditional_candidate): New.
29200 (phi_add_costs): New.
29201 (replace_uncond_cands_and_profitable_phis): New.
29202 (record_increment): Handle phi adjustments.
29203 (record_phi_increments): New.
29204 (record_increments): Handle phi adjustments.
29205 (phi_incr_cost): New.
29206 (lowest_cost_path): Handle phis.
29207 (total_savings): Likewise.
29208 (analyze_increments): Likewise.
29209 (ncd_with_phi): New.
29210 (ncd_of_cand_and_phis): New.
29211 (nearest_common_dominator_for_cands): Handle phi increments.
29212 (all_phi_incrs_profitable): New.
29213 (replace_profitable_candidates): Handle phi-dependent candidates.
29214 (analyze_candidates_and_replace): Likewise.
29216 2013-05-03 Teresa Johnson <tejohnson@google.com>
29219 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
29220 do not exceed REG_BR_PROB_BASE.
29222 2013-05-03 Jeff Law <law@redhat.com>
29224 PR tree-optimization/57144
29225 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
29226 operand of the condition will bit into the new type when eliminating
29227 a cast feeding a condition.
29229 2013-05-03 Jakub Jelinek <jakub@redhat.com>
29231 PR rtl-optimization/57130
29232 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
29233 of COMPARE as in_code to the recursive call if needed.
29235 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
29237 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
29238 (enabled): Handle new members.
29239 * config/i386/sse.md (*vec_concatv2si): Merge from
29240 *vec_concatv2si_sse2 and vec_concatv2si_sse.
29241 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
29243 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
29245 PR tree-optimization/57027
29246 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
29247 for fnms opportunity, check we got the prerequisite kind
29248 of tree / gimple before using accessor functions.
29250 2013-05-03 Richard Biener <rguenther@suse.de>
29252 * double-int.h (lshift): New overload without precision
29253 and arith argument.
29254 (operator *=, operator +=, operator -=): Move ...
29255 * double-int.c (operator *=, operator +=, operator -=): ... here
29256 and implement more efficiently.
29257 (mul_double_with_sign): Remove.
29258 (lshift_double): Adjust to take unsinged shift argument, push
29259 dispatching code to callers.
29260 (mul_double_wide_with_sign): Add early out for callers that
29261 are not interested in high parts or overflow.
29262 (lshift): New function.
29263 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
29264 dispatch code here.
29265 (lrotate, rrotate): Use logical shifts.
29266 * expr.c (get_inner_reference): Use lshift.
29267 * fixed-value.c (do_fixed_divide): Likewise.
29268 * tree-dfa.c (get_ref_base_and_extent): Likewise.
29269 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
29270 (indirect_refs_may_alias_p): Likewise.
29271 (stmt_kills_ref_p_1): Likewise.
29273 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
29275 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
29277 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
29279 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
29280 scalar form of FABD instruction.
29282 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
29284 * lra-constraints.c (process_alt_operands): Add checking alt
29285 number to choose the best alternative.
29287 2013-05-02 Richard Biener <rguenther@suse.de>
29289 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
29290 bitmap and its handling.
29291 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
29293 2013-05-02 Richard Biener <rguenther@suse.de>
29295 PR middle-end/57140
29296 * tree-inline.c (copy_loops): Properly handle removed loops.
29297 (copy_cfg_body): Mark destination loops for fixup if source
29298 loops needed fixup.
29300 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
29303 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
29304 generating simple_return for naked functions.
29306 2013-05-02 Martin Jambor <mjambor@suse.cz>
29308 PR middle-end/56988
29309 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
29310 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
29312 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
29313 ipa_agg_replacement_value structures.
29314 (known_aggs_to_agg_replacement_list): Likewise.
29315 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
29316 (read_agg_replacement_chain): Likewise.
29317 (ipcp_transform_function): Also check that by_ref flags match.
29319 2013-05-02 Richard Biener <rguenther@suse.de>
29321 * graphds.h (struct graph): Add obstack member.
29322 * graphds.c (new_graph): Initialize obstack and allocate
29324 (add_edge): Allocate edge from the obstack.
29325 (free_graph): Free the obstack instead of all edges and vertices.
29327 2013-05-02 Teresa Johnson <tejohnson@google.com>
29329 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
29331 * cfg.c (update_bb_profile_for_threading): Ditto.
29332 * tree-inline.c (copy_bb): Ditto.
29333 (copy_edges_for_bb): Ditto.
29334 (initialize_cfun): Ditto.
29335 (copy_cfg_body): Ditto.
29336 (expand_call_inline): Ditto.
29337 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
29338 (estimate_node_size_and_time): Ditto.
29339 (inline_merge_summary): Ditto.
29340 * cgraphclones.c (cgraph_clone_edge): Ditto.
29341 (cgraph_clone_node): Ditto.
29342 * sched-rgn.c (compute_dom_prob_ps): Ditto.
29343 (compute_trg_info): Ditto.
29345 2013-05-02 Ian Bolton <ian.bolton@arm.com>
29347 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
29348 S reg when fp attribute set.
29349 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
29351 2013-05-02 Ian Bolton <ian.bolton@arm.com>
29353 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
29355 (*and_one_cmplsi3_compare0_uxtw): Likewise.
29356 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
29357 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
29359 2013-05-02 Richard Biener <rguenther@suse.de>
29361 * tree-scalar-evolution.c (scev_info_hasher): Remove.
29362 (struct instantiate_cache_entry): New type.
29363 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
29364 (struct instantiate_cache_type): New type.
29365 (set_instantiated_value, get_instantiated_value): Remove.
29366 (get_instantiated_value_entry): New function.
29367 (instantiate_scev_name): Use the new cache and adjust.
29368 (instantiate_scev_poly): Adjust.
29369 (instantiate_scev_binary): Likewise.
29370 (instantiate_array_ref): Likewise.
29371 (instantiate_scev_convert): Likewise.
29372 (instantiate_scev_not): Likewise.
29373 (instantiate_scev_3): Likewise.
29374 (instantiate_scev_2): Likewise.
29375 (instantiate_scev_r): Likewise.
29376 (instantiate_scev): Likewise.
29377 (resolve_mixers): Likewise.
29379 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
29382 * lra-constraints.c (best_small_class_operands_num): Remove.
29383 (process_alt_operands): Remove small_class_operands_num. Take
29384 small classes operands into losers and only if the operand is not
29385 matched. Modify debugging output.
29386 (curr_insn_transform): Remove best_small_class_operands_num.
29389 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
29391 * config/aarch64/aarch64-builtins.c
29392 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
29393 * config/aarch64/aarch64-simd-builtins.def
29394 (reduc_splus_): Add new modes.
29395 (reduc_uplus_): New.
29396 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
29397 (reduc_uplus_v4sf): Likewise.
29398 (reduc_splus_v4sf): Likewise.
29399 (aarch64_addv<mode>): Likewise.
29400 (reduc_uplus_<mode>): Likewise.
29401 (reduc_splus_<mode>): Likewise.
29402 (aarch64_addvv2di): Likewise.
29403 (reduc_uplus_v2di): Likewise.
29404 (reduc_splus_v2di): Likewise.
29405 (aarch64_addvv2si): Likewise.
29406 (reduc_uplus_v2si): Likewise.
29407 (reduc_splus_v2si): Likewise.
29408 (reduc_<sur>plus_<mode>): New.
29409 (reduc_<sur>plus_v2di): Likewise.
29410 (reduc_<sur>plus_v2si): Likewise.
29411 (reduc_<sur>plus_v4sf): Likewise.
29412 (aarch64_addpv4sf): Likewise.
29413 * config/aarch64/arm_neon.h
29414 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
29415 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
29416 add UNSPEC_SADDV, UNSPEC_UADDV.
29418 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
29420 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
29422 * config/aarch64/arm_neon.h
29423 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
29425 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
29427 * config/aarch64/aarch64-builtins
29428 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
29430 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
29432 * config/aarch64/aarch64-simd-builtins.def
29433 (reduc_smax_): New.
29434 (reduc_smin_): Likewise.
29435 (reduc_umax_): Likewise.
29436 (reduc_umin_): Likewise.
29437 (reduc_smax_nan_): Likewise.
29438 (reduc_smin_nan_): Likewise.
29441 (smax): Update for V2SF, V4SF and V2DF modes.
29444 (smin_nan): Likewise.
29445 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
29446 (<su><maxmin><mode>3): ...This, refactor.
29447 (s<maxmin><mode>3): New.
29448 (<maxmin_uns><mode>3): Likewise.
29449 (reduc_<maxmin_uns>_<mode>): Refactor.
29450 (reduc_<maxmin_uns>_v4sf): Likewise.
29451 (reduc_<maxmin_uns>_v2si): Likewise.
29452 (aarch64_<fmaxmin><mode>: Remove.
29453 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
29455 (vmin<q>_f<32,64>): Likewise.
29456 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
29458 (su): Add mappings for smax, smin, umax, umin.
29460 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
29461 (FMAXMIN): Rename as...
29462 (FMAXMIN_UNS): ...This.
29464 (fmaxminv): Likewise.
29465 (fmaxmin): Likewise.
29467 (maxmin_uns_op): Likewise.
29469 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
29471 * config/aarch64/arm_neon.h
29472 (vac<ge, gt><sd>_f<32, 64>): Rename to...
29473 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
29474 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
29476 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
29478 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
29479 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
29481 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
29483 * config/aarch64/aarch64-simd.md
29484 (vcond<mode>_internal): Handle special cases for constant masks.
29485 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
29486 (vcondu<mode><mode>): Likewise.
29487 (vcond<v_cmp_result><mode>): New.
29489 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
29491 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
29492 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
29493 * config/aarch64/aarch64-simd-builtins.def
29494 (cmeq): Update to BUILTIN_VALLDI.
29499 * config/aarch64/arm_neon.h
29500 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
29501 to builtins or C as appropriate.
29503 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
29505 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
29507 (cmhi): Rename to...
29509 * config/aarch64/aarch64-simd.md
29510 (simd_mode): Add SF.
29511 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
29512 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
29513 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
29514 (cstore<mode>_neg): ...This.
29515 * config/aarch64/iterators.md
29517 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
29518 (COMPARISONS): New.
29519 (UCOMPARISONS): Likewise.
29520 (optab): Add missing comparisons.
29526 (VCMP_S): Likewise.
29527 (VCMP_U): Likewise.
29528 (V_cmp_result): Add DF, SF modes.
29529 (v_cmp_result): Likewise.
29531 (vmtype): Likewise.
29532 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
29534 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
29536 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
29537 define_insn to define_insn_and_split.
29538 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
29539 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
29540 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
29541 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
29542 (thumb2_negscc): Likewise.
29544 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
29546 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
29548 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
29550 * config/arm/thumb2.md: Remove trailing whitespaces.
29552 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
29554 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
29555 Use gen_int_mode rather than GEN_INT.
29557 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
29559 * value-prof.c (stream_in_histogram_value): Remove the strayed
29562 2013-04-30 Richard Biener <rguenther@suse.de>
29564 PR middle-end/57122
29565 * cfghooks.c (split_edge): Properly check for the loop latch edge.
29567 2013-04-30 Richard Biener <rguenther@suse.de>
29569 PR middle-end/57107
29570 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
29572 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
29574 PR rtl-optimization/56957
29575 PR rtl-optimization/57105
29576 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
29577 variable. Use just INSN_UID for determining whether an insn
29578 should be only disconnected from the insn stream.
29579 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
29581 2013-04-30 Jakub Jelinek <jakub@redhat.com>
29583 PR tree-optimization/57104
29584 * tsan.c (instrument_expr): Don't instrument accesses to
29585 DECL_HARD_REGISTER VAR_DECLs.
29587 2013-04-30 Richard Biener <rguenther@suse.de>
29589 * function.h (loops_for_fn): New inline function.
29590 (set_loops_for_fn): Likewise.
29591 * cfgloop.h (place_new_loop): Add struct function parameter.
29592 (get_loop): Likewise.
29593 (get_loops): Likewise.
29594 (number_of_loops): Likewise.
29595 (fel_next): Adjust.
29596 (fel_init): Likewise.
29597 * cfg.c (get_loop_copy): Adjust.
29598 * cfgloop.c (flow_loops_dump): Likewise.
29599 (record_loop_exits): Likewise.
29600 (verify_loop_structure): Likewise.
29601 * cfgloopanal.c (mark_irreducible_loops): Likewise.
29602 (estimate_reg_pressure_cost): Likewise.
29603 (mark_loop_exit_edges): Likewise.
29604 * cfgloopmanip.c (place_new_loop): Likewise.
29605 (add_loop): Likewise.
29606 (duplicate_loop): Likewise.
29607 * graph.c (draw_cfg_nodes): Likewise.
29608 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
29609 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
29610 (extract_affine_chrec): Likewise.
29611 (build_scop_iteration_domain): Likewise.
29612 * graphite.c (graphite_initialize): Likewise.
29613 * ira-build.c (create_loop_tree_nodes): Likewise.
29614 (more_one_region_p): Likewise.
29615 (rebuild_regno_allocno_maps): Likewise.
29616 (mark_loops_for_removal): Likewise.
29617 (mark_all_loops_for_removal): Likewise.
29618 (remove_unnecessary_regions): Likewise.
29619 (ira_build): Likewise.
29620 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
29621 * loop-init.c (fix_loop_structure): Likewise.
29622 (gate_rtl_move_loop_invariants): Likewise.
29623 (gate_rtl_unswitch): Likewise.
29624 (gate_rtl_unroll_and_peel_loops): Likewise.
29625 (rtl_doloop): Likewise.
29626 * lto-streamer-in.c (input_cfg): Likewise.
29627 * lto-streamer-out.c (output_cfg): Likewise.
29628 * modulo-sched.c (sms_schedule): Likewise.
29629 * predict.c (tree_estimate_probability): Likewise.
29630 (tree_estimate_probability_driver): Likewise.
29631 (estimate_loops): Likewise.
29632 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
29633 (move_sese_region_to_fn): Likewise.
29634 (debug_loop_num): Likewise.
29635 * tree-chrec.c (chrec_evaluate): Likewise.
29636 (hide_evolution_in_other_loops_than_loop): Likewise.
29637 (chrec_component_in_loop_num): Likewise.
29638 (reset_evolution_in_loop): Likewise.
29639 (evolution_function_is_invariant_rec_p): Likewise.
29640 * tree-if-conv.c (main_tree_if_conversion): Likewise.
29641 * tree-inline.c (copy_loops): Likewise.
29642 (copy_cfg_body): Likewise.
29643 (tree_function_versioning): Likewise.
29644 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
29645 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
29647 (add_to_evolution_1): Likewise.
29648 (scev_const_prop): Likewise.
29649 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
29650 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
29651 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
29652 (tree_ssa_lim_initialize): Likewise.
29653 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
29654 (verify_loop_closed_ssa): Likewise.
29655 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
29656 (tree_ssa_loop_im): Likewise.
29657 (tree_ssa_loop_unswitch): Likewise.
29658 (tree_vectorize): Likewise.
29659 (check_data_deps): Likewise.
29660 (tree_ssa_loop_ivcanon): Likewise.
29661 (tree_ssa_loop_bounds): Likewise.
29662 (tree_complete_unroll): Likewise.
29663 (tree_complete_unroll_inner): Likewise.
29664 (tree_parallelize_loops): Likewise.
29665 (tree_ssa_loop_prefetch): Likewise.
29666 (tree_ssa_loop_ivopts): Likewise.
29667 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
29668 * tree-vectorizer.c (vectorize_loops): Likewise.
29670 2013-04-29 Mike Frysinger <vapier@gentoo.org>
29672 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
29673 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
29674 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
29675 with EABI_LINK_SPEC.
29677 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
29680 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
29683 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
29686 * lra-constraints.c (process_alt_operands): Discourage a bit more
29687 using memory for pseudos. Print cost dump for alternatives.
29688 Modify cost values for conflicts with early clobbers.
29689 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
29691 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
29694 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
29696 2013-04-29 Ian Bolton <ian.bolton@arm.com>
29698 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
29699 from/to S register.
29700 (movdi_aarch64): Support LDR/STR from/to D register.
29702 2013-04-29 Ian Bolton <ian.bolton@arm.com>
29704 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
29705 or higher by default.
29707 2013-04-29 Richard Biener <rguenther@suse.de>
29709 PR middle-end/57075
29710 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
29711 even if not adding abnormal edges for calls that can make
29714 2013-04-29 Richard Biener <rguenther@suse.de>
29716 PR middle-end/57103
29717 * tree-cfg.c (move_stmt_op): Fix condition under which to update
29719 (move_stmt_r): Remove redundant checking.
29721 2013-04-29 Teresa Johnson <tejohnson@google.com>
29724 * basic-block.h (apply_scale): New function.
29725 (apply_probability): Use apply_scale.
29726 * gimple-streamer-in.c (input_bb): Ditto.
29727 * lto-streamer-in.c (input_cfg): Ditto.
29728 * lto-cgraph.c (merge_profile_summaries): Ditto.
29729 * tree-optimize.c (execute_fixup_cfg): Ditto.
29730 * tree-inline.c (copy_bb): Update comment to use apply_scale.
29731 (copy_edges_for_bb): Ditto.
29732 (copy_cfg_body): Ditto.
29734 2013-04-29 Tom de Vries <tom@codesourcery.com>
29736 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
29737 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
29738 (tail_merge_optimize): Handle current_loops == NULL.
29740 2013-04-26 Jeff Law <law@redhat.com>
29742 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
29743 (simplify_cond_using_ranges): Generalize code to simplify
29744 COND_EXPRs where one argument is a constant and the other
29745 is an SSA_NAME created by an integral type conversion.
29747 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29749 * config/arm/arm.md (store_minmaxsi): Use only when
29750 optimize_insn_for_size_p.
29752 2013-04-29 Christian Bruel <christian.bruel@st.com>
29755 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
29757 2013-04-29 Richard Biener <rguenther@suse.de>
29759 PR middle-end/57089
29760 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
29761 loop tree make sure to schedule a fixup for the child as well.
29762 (expand_omp_for_generic): Properly add loops.
29763 (expand_omp_for_static_nochunk): Likewise.
29764 (expand_omp_for_static_chunk): Likewise.
29765 (expand_omp_for): For the degenerate case fixup loops.
29766 (expand_omp_sections): Fix default bb placement in loops.
29767 (expand_omp_atomic_pipeline): Properly add loops.
29769 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29771 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
29773 2013-04-29 Tom de Vries <tom@codesourcery.com>
29775 * tree-ssa-tail-merge.c: Update header comment.
29777 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
29779 * config/aarch64/arm_neon.h
29780 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
29781 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
29782 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
29783 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
29784 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
29785 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
29786 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
29787 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
29789 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
29791 * config/aarch64/aarch64-simd.md
29792 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
29793 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
29794 fix_trunc, fixuns_trunc.
29795 (ftrunc<VDQF:mode>2): New.
29796 * config/aarch64/iterators.md (optab): Add fix, fixuns.
29797 (fix_trunc_optab): New.
29799 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
29801 * config/aarch64/aarch64-builtins.c
29802 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
29803 iceilf, lround, iroundf.
29805 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
29808 * config/i386/i386.h (enum ix86_tune_indices)
29809 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
29810 New, split from X86_TUNE_INTER_UNIT_MOVES.
29811 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
29812 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
29813 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
29814 (TARGET_INTER_UNIT_MOVES): Remove.
29815 * config/i386/i386.c (initial_ix86_tune_features): Update.
29816 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
29817 (ix86_expand_convert_uns_didf_sse): Use
29818 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
29819 (ix86_expand_vector_init_one_nonzero): Ditto.
29820 (ix86_expand_vector_init_interleave): Ditto.
29821 (inline_secondary_memory_needed): Return true for moves from SSE class
29822 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
29823 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
29824 * config/i386/constraints.md (Yi, Ym): Depend on
29825 TARGET_INTER_UNIT_MOVES_TO_VEC.
29826 (Yj, Yn): New constraints.
29827 * config/i386/i386.md (*movdi_internal): Change constraints of
29828 operand 1 from Yi to Yj and from Ym to Yn.
29829 (*movsi_internal): Ditto.
29830 (*movdf_internal): Ditto.
29831 (*movsf_internal): Ditto.
29832 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
29833 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
29834 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
29835 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
29836 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
29837 * config/i386/sse.md (movdi_to_sse): Ditto.
29838 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
29839 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
29840 TARGET_INTER_UNIT_MOVES.
29841 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
29842 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
29843 instead of TARGET_INTER_UNIT_MOVES.
29844 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
29845 operand 1 from Yi to Yj and from Ym to Yn.
29847 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
29849 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
29850 (float_truncate_hi_): Likewise.
29851 (float_extend_lo_): Likewise.
29852 (float_truncate_lo_): Likewise.
29853 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
29854 (aarch64_float_extend_lo_v2df): Likewise.
29855 (vec_unpacks_hi_v4sf): Likewise.
29856 (aarch64_float_truncate_lo_v2sf): Likewise.
29857 (aarch64_float_truncate_hi_v4sf): Likewise.
29858 (vec_pack_trunc_v2df): Likewise.
29859 (vec_pack_trunc_df): Likewise.
29861 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
29863 * config/aarch64/aarch64-builtins.c
29864 (aarch64_fold_builtin): Fold float conversions.
29865 * config/aarch64/aarch64-simd-builtins.def
29866 (floatv2si, floatv4si, floatv2di): New.
29867 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
29868 * config/aarch64/aarch64-simd.md
29869 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
29870 * config/aarch64/iterators.md (FLOATUORS): New.
29871 (optab): Add float, floatuns.
29872 (su_optab): Likewise.
29874 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
29876 * config/aarch64/aarch64-builtins.c
29877 (aarch64_builtin_vectorized_function): Use new names for
29879 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
29880 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
29881 (fcvtzu): Split as...
29882 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
29883 (fcvtas): Split as...
29884 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
29885 (fcvtau): Split as...
29886 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
29887 (fcvtps): Split as...
29888 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
29889 (fcvtpu): Split as...
29890 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
29891 (fcvtms): Split as...
29892 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
29893 (fcvtmu): Split as...
29894 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
29895 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
29896 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
29897 (lfrintnusf, lfrintnudf): Likewise.
29898 * config/aarch64/aarch64-simd.md
29899 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
29901 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
29902 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
29903 (fcvt_pattern): Likewise.
29905 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
29907 * config/aarch64/aarch64-simd.md
29908 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
29909 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
29911 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
29913 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
29914 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
29915 (vrnd<a,m,n,p>_f32): Implement using builtins.
29916 (vrnd<i,x><q>_f<32, 64>): New.
29918 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
29920 * config/aarch64/aarch64-builtins.c
29921 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
29922 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
29923 (frintz): Rename to...
29925 (frintp): Rename to...
29927 (frintm): Rename to...
29929 (frinti): Rename to...
29930 (nearbyint): ...this.
29931 (frintx): Rename to...
29933 (frinta): Rename to...
29935 * config/aarch64/aarch64-simd.md
29936 (aarch64_frint<frint_suffix><mode>): Delete.
29937 (<frint_pattern><mode>2): Convert to insn.
29938 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
29939 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
29940 (frint_pattern): Likewise.
29941 (frint_suffix): Likewise.
29943 2013-04-29 Richard Biener <rguenther@suse.de>
29945 PR tree-optimization/57081
29946 * loop-init.c: Include tree-flow.h.
29947 (loop_optimizer_finalize): Free number of iteration estimates.
29948 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
29950 2013-04-29 Jakub Jelinek <jakub@redhat.com>
29952 PR tree-optimization/57083
29953 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
29954 non-singleton shift count range, zero extend low_bound for uns case.
29956 * config/i386/predicates.md (general_vector_operand): New predicate.
29957 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
29958 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
29959 if they aren't nonimmediate operands. If their original values
29960 satisfy const_vector_equal_evenodd_p, don't shift them.
29961 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
29962 predicates. For the SSE4.1 case force operands[{1,2}] into registers
29963 if not nonimmediate_operand.
29964 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
29965 instead of register_operand.
29966 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
29968 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
29970 * stor-layout.c (finalize_size_functions): Allocate a structure and
29971 reset cfun before dumping the functions.
29973 2013-04-27 Jakub Jelinek <jakub@redhat.com>
29975 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
29978 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
29979 use xop_pmacsdqh if uns_p.
29980 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
29981 the immediate rotate count.
29983 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
29985 * rtl.h (struct rtx_def): Add comment for field jump.
29986 (LRA_SUBREG_P): New macro.
29987 * recog.c (register_operand): Check LRA_SUBREG_P.
29988 * lra.c (lra): Add note at the end of RTL code. Align non-empty
29990 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
29991 (lra_final_code_change): Skip subreg change for operators.
29992 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
29993 if there are no operand changes.
29994 * lra-constraints.c (curr_insn_set): New.
29995 (match_reload): Set LRA_SUBREG_P.
29996 (emit_spill_move): Ditto.
29997 (check_and_process_move): Use curr_insn_set. Process only single
29998 set insns. Don't initialize sec_mem_p and change_p.
29999 (simplify_operand_subreg): Use LRA_SUBREG_P.
30000 (reg_in_class_p): New function.
30001 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
30002 of #ifdef. Add code to remove cycling.
30003 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
30004 non-null disp. Reload inner instead of disp when base and index
30005 are null. Try to put lo_sum into register.
30006 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
30007 (check_and_process_move): Move code for move cost check to
30008 simple_move_p. Remove equiv_substitution.
30009 (simple_move_p): New function.
30010 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
30011 curr_insn_set. Call check_and_process_move only for single set
30012 insns. Use the new function. Move call of check_and_process_move
30013 after operand equiv substitution and address process.
30015 2013-04-26 Jakub Jelinek <jakub@redhat.com>
30018 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
30019 with nonlocal goto receivers or returns twice calls, ignore
30020 unininitialized values from abnormal edges to nl goto receiver
30021 or returns twice call.
30023 2013-04-26 Jakub Jelinek <jakub@redhat.com>
30025 PR tree-optimization/57051
30026 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
30027 and VEC_RSHIFT_EXPR if shift count is a multiple of element
30030 2013-04-26 Richard Biener <rguenther@suse.de>
30032 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
30033 (expand_omp_taskreg): Likewise. Mark loops for fixup.
30034 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
30035 (fixup_loop_arrays_after_move): New function.
30036 (move_sese_region_to_fn): Properly outline the loop tree parts
30037 of the SESE region.
30039 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
30041 * config/i386/i386.md (type, unit): Fix long lines.
30043 2013-04-26 Richard Biener <rguenther@suse.de>
30045 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
30046 (lto-streamer-out.o): Likewise.
30047 * cfgloop.c (init_loops_structure): Export, add struct function
30048 argument and adjust.
30049 (flow_loops_find): Adjust.
30050 * cfgloop.h (enum loop_estimation): Add EST_LAST.
30051 (init_loops_structure): Declare.
30052 * lto-streamer-in.c: Include cfgloop.h.
30053 (input_cfg): Input the loop tree.
30054 * lto-streamer-out.c: Include cfgloop.h.
30055 (output_cfg): Output the loop tree.
30056 (output_struct_function_base): Do not drop PROP_loops.
30058 2013-03-26 Richard Biener <rguenther@suse.de>
30060 * tree-cfg.c (execute_build_cfg): Build the loop tree.
30061 (pass_build_cfg): Provide PROP_loops.
30062 (move_sese_region_to_fn): Remove loops that are outlined into fn
30064 * tree-inline.c: Include cfgloop.h.
30065 (initialize_cfun): Do not drop PROP_loops.
30066 (copy_loops): New function.
30067 (copy_cfg_body): Copy loop structure.
30068 (tree_function_versioning): Initialize destination loop tree.
30069 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
30070 (pass_parallelize_loops): Do IL verification.
30071 * loop-init.c (loop_optimizer_init): Fixup loops if required.
30072 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
30073 the CFG make sure we fixup loops as well.
30074 * tree-ssa-tail-merge.c: Include cfgloop.h.
30075 (replace_block_by): When merging loop latches mark loops for fixup.
30076 * lto-streamer-out.c (output_struct_function_base): Drop
30077 PROP_loops for now.
30078 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
30079 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
30080 * ipa-split.c: Include cfgloop.h.
30081 (split_function): Add the new return block to the loop tree root.
30082 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
30083 whether we have removed the forwarder block.
30084 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
30085 * cfgloop.h (place_new_loop): Declare.
30086 * cfgloopmanip.c (place_new_loop): Export.
30087 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
30088 (tree-switch-conversion.o): Likewise.
30089 (tree-complex.o): Likewise.
30090 (tree-inline.o): Likewise.
30091 (tree-ssa-tailmerge.o): Likewise.
30092 (ipa-split.o): Likewise.
30093 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
30094 (tree-ssa-copy.o): Likewise.
30095 * tree-switch-conversion.c: Include cfgloop.h
30096 (process_switch): If we emit a bit-test cascade, schedule loops
30098 * tree-complex.c: Include cfgloop.h.
30099 (expand_complex_div_wide): Properly add new basic-blocks to loops.
30100 * asan.c: Include cfgloop.h.
30101 (create_cond_insert_point): Properly add new basic-blocks to
30102 loops, schedule loop fixup.
30103 * cfgloop.c (verify_loop_structure): Check that looks are not
30105 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
30107 (expand_omp_for_generic): Likewise.
30108 (expand_omp_sections): Likewise.
30109 (expand_omp_atomic_pipeline): Schedule loops for fixup.
30110 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
30111 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
30112 is initialized, not when loops are present.
30113 * tree-parloops.c (parallelize_loops): Remove checking here.
30114 * passes.c (init_optimization_passes): Schedule a copy-propagation
30115 pass before complete unrolling of inner loops.
30117 2013-04-26 Jakub Jelinek <jakub@redhat.com>
30119 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
30120 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
30121 (colorize_init): Add argument to _WIN32 version.
30122 * toplev.c: Include diagnostic-color.h.
30123 (process_options): Default to -fdiagnostics-color=auto if
30124 GCC_COLORS env var is in the environment.
30125 * common.opt (fdiagnostics-color=): Add Var and Init.
30126 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
30127 env var is in the environment, the default is auto rather than never.
30129 * diagnostic.h (file_name_as_prefix): Add context argument.
30130 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
30131 the string as locus.
30132 * langhooks.c (lhd_print_error_function): Adjust caller.
30134 2013-04-25 Lawrence Crowl <crowl@google.com>
30136 * var-tracking.c (shared_hash_def::htab):
30137 Change type to hash_table. Update dependent calls and types.
30139 2013-04-25 Lawrence Crowl <crowl@google.com>
30141 * Makefile.in: Update as needed below.
30143 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
30144 Move declaration to after the type's method definitons.
30146 * attribs.c (htab_t scoped_attributes::attribute_hash):
30147 Change type to hash_table. Update dependent calls and types.
30149 * bitmap.c (htab_t bitmap_desc_hash):
30150 Change type to hash_table. Update dependent calls and types.
30152 * cselib.c (htab_t cselib_hash_table):
30153 Change type to hash_table. Update dependent calls and types.
30155 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
30156 (hash_string_slot_node): Move implementation into lto-streamer.h
30157 struct string_slot_hasher.
30158 (eq_string_slot_node): Likewise.
30160 * data-streamer-out.c: Update output_block::string_hash_table
30161 dependent calls and types.
30163 * dwarf2cfi.c (htab_t trace_index):
30164 Change type to hash_table. Update dependent calls and types.
30166 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
30167 Change type to hash_table. Update dependent calls and types.
30168 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
30169 (htab_t optimize_external_refs::map): Likewise.
30170 (htab_t output_comp_unit::extern_map): Likewise.
30171 (htab_t output_comdat_type_unit::extern_map): Likewise.
30172 (htab_t output_macinfo::macinfo_htab): Likewise.
30173 (htab_t optimize_location_lists::htab): Likewise.
30174 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
30176 * except.c (htab_t ehspec_hash_type):
30177 Change type to hash_table. Update dependent calls and types.
30178 (assign_filter_values::ttypes): Likewise.
30179 (assign_filter_values::ehspec): Likewise.
30180 (sjlj_assign_call_site_values::ar_hash): Likewise.
30181 (convert_to_eh_region_ranges::ar_hash): Likewise.
30183 * gcse.c (htab_t pre_ldst_table):
30184 Change type to hash_table. Update dependent calls and types.
30186 * ggc-common.c (htab_t saving_htab):
30187 Change type to hash_table. Update dependent calls and types.
30188 (htab_t loc_hash): Likewise.
30189 (htab_t ptr_hash): Likewise.
30190 (call_count): Rename ggc_call_count.
30191 (call_alloc): Rename ggc_call_alloc.
30192 (loc_descriptor): Rename make_loc_descriptor.
30193 (add_statistics): Rename ggc_add_statistics.
30195 * ggc-common.c (saving_htab):
30196 Change type to hash_table. Update dependent calls and types.
30198 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
30199 (push_gimplify_context): Likewise.
30200 (pop_gimplify_context): Likewise.
30201 (struct gimple_temp_hash_elt): Added.
30202 (struct gimplify_hasher): Likewise.
30203 (struct gimplify_ctx.temp_htab):
30204 Change type to hash_table. Update dependent calls and types.
30206 * gimple-fold.c: Include gimplify-ctx.h.
30208 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
30209 Change type to hash_table. Update dependent calls and types.
30210 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
30211 avoid potential global name collision.
30213 * gimplify.c: Include gimplify-ctx.h.
30214 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
30215 (htab_t gimplify_ctx::temp_htab):
30216 Update dependent calls and types for new type hash_table.
30217 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
30218 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
30220 * gimplify-ctx.h: New.
30221 (struct gimple_temp_hash_elt): Move from gimplify.c.
30222 (class gimplify_hasher): New.
30223 (struct gimplify_ctx): Move from gimple.h.
30224 (htab_t gimplify_ctx::temp_htab):
30225 Change type to hash_table. Update dependent calls and types.
30227 * graphite-clast-to-gimple.c: Include graphite-htab.h.
30228 (htab_t ivs_params::newivs_index):
30229 Change type to hash_table. Update dependent calls and types.
30230 (htab_t ivs_params::params_index): Likewise.
30231 (htab_t print_generated_program::params_index): Likewise.
30232 (htab_t gloog::newivs_index): Likewise.
30233 (htab_t gloog::params_index): Likewise.
30235 * graphite.c: Include graphite-htab.h.
30236 4htab_t graphite_transform_loops::bb_pbb_mapping):
30237 Change type to hash_table. Update dependent calls and types.
30239 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
30240 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
30241 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
30243 * graphite-dependences.c: Include graphite-htab.h.
30244 (loop_is_parallel_p): Change hash table type of parameter.
30246 * graphite-htab.h: New.
30247 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
30248 (extern find_pbb_via_hash): Move from graphite-poly.h.
30249 (extern loop_is_parallel_p): Move from graphite-poly.h.
30250 (extern get_loop_body_pbbs): Move from graphite-poly.h.
30252 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
30253 (extern loop_is_parallel_p): Move to graphite-htab.h.
30254 (extern get_loop_body_pbbs): Move to graphite-htab.h.
30256 * haifa-sched.c (htab_t delay_htab):
30257 Change type to hash_table. Update dependent calls and types.
30258 (htab_t delay_htab_i2): Likewise.
30260 * ira-color.c (htab_t allocno_hard_regs_htab):
30261 Change type to hash_table. Update dependent calls and types.
30263 * ira-costs.c (htab_t cost_classes_htab):
30264 Change type to hash_table. Update dependent calls and types.
30266 * loop-invariant.c (htab_t merge_identical_invariants::eq):
30267 Change type to hash_table. Update dependent calls and types.
30269 * loop-iv.c (htab_t bivs):
30270 Change type to hash_table. Update dependent calls and types.
30272 * loop-unroll.c (htab_t opt_info::insns_to_split):
30273 Change type to hash_table. Update dependent calls and types.
30274 (htab_t opt_info::insns_with_var_to_expand): Likewise.
30276 * lto-streamer.h (struct string_slot): Move from data-streamer.h
30277 (struct string_slot_hasher): New.
30278 (htab_t output_block::string_hash_table):
30279 Change type to hash_table. Update dependent calls and types.
30281 * lto-streamer-in.c (freeing_string_slot_hasher): New.
30282 (htab_t file_name_hash_table):
30283 Change type to hash_table. Update dependent calls and types.
30285 * lto-streamer-out.c: Update output_block::string_hash_table dependent
30288 * lto-streamer.c (htab_t tree_htab):
30289 Change type to hash_table. Update dependent calls and types.
30291 * omp-low.c: Include gimplify-ctx.h.
30293 * passes.c (htab_t name_to_pass_map):
30294 Change type to hash_table. Update dependent calls and types.
30295 (pass_traverse): Rename to passes_pass_traverse.
30297 * plugin.c (htab_t event_tab):
30298 Change type to hash_table. Update dependent calls and types.
30300 * postreload-gcse.c (htab_t expr_table):
30301 Change type to hash_table. Update dependent calls and types.
30302 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
30304 * sese.c (debug_rename_map_1): Make extern.
30305 (htab_t copy_bb_and_scalar_dependences::rename_map):
30306 Change type to hash_table. Update dependent calls and types.
30308 * sese.h (extern debug_rename_map): Move to .c file.
30310 * store-motion.c (htab_t store_motion_mems_table):
30311 Change type to hash_table. Update dependent calls and types.
30313 * trans-mem.c (htab_t tm_new_mem_hash):
30314 Change type to hash_table. Update dependent calls and types.
30316 * tree-browser.c (htab_t TB_up_ht):
30317 Change type to hash_table. Update dependent calls and types.
30319 * tree-cfg.c (htab_t discriminator_per_locus):
30320 Change type to hash_table. Update dependent calls and types.
30322 * tree-complex.c: Include tree-hasher.h
30323 (htab_t complex_variable_components):
30324 Change type to hash_table. Update dependent calls and types.
30326 * tree-eh.c (htab_t finally_tree):
30327 Change type to hash_table. Update dependent calls and types.
30329 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
30330 struct int_tree_hasher.
30331 (extern int_tree_map_eq): Likewise.
30332 (uid_decl_map_hash): Removed.
30333 (extern decl_tree_map_eq): Likewise.
30335 * tree-hasher.h: New.
30336 (struct int_tree_hasher): New.
30337 (typedef int_tree_htab_type): New.
30339 * tree-inline.c: Include gimplify-ctx.h.
30341 * tree-mudflap.c: Include gimplify-ctx.h.
30343 * tree-parloops.c: Include tree-hasher.h.
30344 (htab_t eliminate_local_variables_stmt::decl_address):
30345 Change type to hash_table. Update dependent calls and types.
30346 (htab_t separate_decls_in_region::decl_copies): Likewise.
30348 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
30349 Change type to hash_table. Update dependent calls and types.
30351 * tree-sra.c (candidates):
30352 Change type to hash_table. Update dependent calls and types.
30354 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
30356 (int_tree_map_hash): Likewise.
30358 * tree-ssa-dom.c (htab_t avail_exprs):
30359 Change type to hash_table. Update dependent calls and types.
30361 * tree-ssa-live.c (var_map_base_init::tree_to_index):
30362 Change type to hash_table. Update dependent calls and types.
30364 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
30365 Change type to hash_table. Update dependent calls and types.
30367 * tree-ssa-phiopt.c (seen_ssa_names):
30368 Change type to hash_table. Update dependent calls and types.
30370 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
30371 Change type to hash_table. Update dependent calls and types.
30373 * tree-ssa-uncprop.c (equiv):
30374 Change type to hash_table. Update dependent calls and types.
30376 2013-04-25 Jakub Jelinek <jakub@redhat.com>
30378 PR rtl-optimization/57003
30379 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
30380 call note_stores with kill_clobbered_value callback again after
30381 killing regs_invalidated_by_call.
30383 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
30385 * config/aarch64/aarch64-simd.md
30386 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
30387 (aarch64_simd_bsl<mode>): Likewise.
30388 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
30390 2013-04-25 Marek Polacek <polacek@redhat.com>
30392 PR tree-optimization/57066
30393 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
30395 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
30397 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
30399 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
30401 * config/aarch64/aarch64-builtins.c
30402 (aarch64_fold_builtin): New.
30403 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
30404 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
30405 * config/aarch64/aarch64-simd-builtins.def (abs): New.
30406 * config/aarch64/arm_neon.h
30407 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
30409 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
30410 Tejas Belagod <tejas.belagod@arm.com>
30412 * config/aarch64/aarch64-builtins.c
30413 (aarch64_gimple_fold_builtin): New.
30414 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
30415 * config/aarch64/aarch64-simd-builtins.def (addv): New.
30416 * config/aarch64/aarch64-simd.md (addpv4sf): New.
30417 (addvv4sf): Update.
30418 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
30420 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
30422 * config/aarch64/aarch64.md
30423 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
30425 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
30427 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
30428 (*ngcsi_uxtw): New pattern.
30430 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30431 Julian Brown <julian@codesourcery.com>
30433 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
30434 (TB_DREG): Add T_V4HF.
30435 (v4hf_UP): New macro.
30436 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
30437 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
30438 Handle initialisation of V4HF. Adjust initialisation of reinterpret
30440 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
30441 (arm_vector_mode_supported_p): Handle V4HF.
30442 (arm_mangle_map): Handle V4HFmode.
30443 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
30444 * config/arm/arm_neon_builtins.def: Add entries for
30445 vcvtv4hfv4sf, vcvtv4sfv4hf.
30446 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
30447 (neon_vcvtv4hfv4sf): Likewise.
30448 * config/arm/neon-gen.ml: Handle half-precision floating point
30450 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
30451 * config/arm/arm_neon.h: Regenerate.
30452 * config/arm/neon.ml (type elts): Add F16.
30453 (type vectype): Add T_float16x4, T_floatHF.
30454 (type vecmode): Add V4HF.
30455 (type features): Add Requires_FP_bit feature.
30456 (elt_width): Handle F16.
30457 (elt_class): Likewise.
30458 (elt_of_class_width): Likewise.
30459 (mode_of_elt): Refactor.
30460 (type_for_elt): Handle F16, fix error messages.
30461 (vectype_size): Handle T_float16x4.
30462 (vcvt_sh): New function.
30463 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
30464 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
30465 (string_of_mode): Handle V4HF.
30466 * doc/arm-neon-intrinsics.texi: Regenerate.
30468 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
30470 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
30471 format specifier in 'X' case.
30473 2013-04-25 Alan Modra <amodra@gmail.com>
30476 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
30477 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
30478 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
30479 Repeat for many other rotate/shift and mask patterns using subregs.
30480 Name lshiftrt insns.
30481 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
30482 on WORDS_BIG_ENDIAN.
30484 2013-04-25 Alan Modra <amodra@gmail.com>
30486 * config.gcc: Support little-endian powerpc-linux targets.
30487 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
30488 (LINK_OS_LINUX_SPEC): Define.
30489 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
30490 Preserve MASK_LITTLE_ENDIAN.
30491 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
30492 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
30493 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
30494 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
30495 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
30496 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
30497 Correct fp word order for little-endian. Don't shift toc entries
30498 smaller than a word for little-endian.
30499 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
30500 (bswapdi2 splits): Correct low-part subreg for little-endian.
30501 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
30502 low/high where such is correct only for be.
30503 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
30504 little-endian for -mcall-aixdesc.
30506 2013-04-25 Alan Modra <amodra@gmail.com>
30508 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
30509 replace_equiv_address_nv.
30511 2013-04-25 Alan Modra <amodra@gmail.com>
30513 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
30515 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
30518 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
30519 * rtl.h (struct rtx_def): ...
30521 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
30523 PR rtl-optimizations/57046
30524 * lra-constraints (split_reg): Set up lra_risky_transformations_p
30525 for multi-reg splits.
30527 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
30529 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
30531 2013-04-24 Sterling Augustine <saugustine@google.com>
30533 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
30534 (comp_dir_string, debug_str_dwo_section): New.
30535 (DEBUG_STR_DWO_SECTION): Rename to ...
30536 (DEBUG_DWO_STR_SECTION): ... this.
30537 (DEBUG_NORM_STR_SECTION): Delete.
30538 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
30539 (DEBUG_STR_DWO_SECTION_FLAGS): New.
30540 (find_AT_string): Move most logic to ...
30541 (find_AT_string_in_table): ... here. New.
30542 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
30543 add_skeleton_AT_string. Delete logic.
30544 (output_skeleton_debug_sections): Remove call to
30545 add_top_level_skeleton_die_attrs.
30546 (add_comp_dir_attribute): Move logic to comp_dir_string.
30547 (dwarf2out_init): Initialize debug_str_dwo_section.
30548 (output_indirect_string): Call find_string_form.
30549 (output_indirect_strings): Rewrite.
30550 (prune_unused_types): Empty skeleton_debug_str_hash.
30551 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
30552 (dwarf2out_finish): Call output_indirect_strings.
30554 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
30556 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
30558 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
30560 * rtl.h (struct rtx_def): Add comment for field jump.
30561 (LRA_SUBREG_P): New macro.
30562 * recog.c (register_operand): Check LRA_SUBREG_P.
30563 * lra.c (lra): Add note at the end of RTL code. Align non-empty
30565 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
30566 (lra_final_code_change): Skip subreg change for operators.
30567 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
30568 if there are no operand changes.
30569 * lra-constraints.c (curr_insn_set): New.
30570 (match_reload): Set LRA_SUBREG_P.
30571 (emit_spill_move): Ditto.
30572 (check_and_process_move): Use curr_insn_set. Process only single
30573 set insns. Don't initialize sec_mem_p and change_p.
30574 (simplify_operand_subreg): Use LRA_SUBREG_P.
30575 (reg_in_class_p): New function.
30576 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
30577 of #ifdef. Add code to remove cycling.
30578 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
30579 non-null disp. Reload inner instead of disp when base and index
30580 are null. Try to put lo_sum into register.
30581 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
30582 (check_and_process_move): Move code for move cost check to
30583 simple_move_p. Remove equiv_substitution.
30584 (simple_move_p): New function.
30585 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
30586 curr_insn_set. Call check_and_process_move only for single set
30587 insns. Use the new function. Move call of check_and_process_move
30588 after operand equiv substitution and address process.
30590 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
30592 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
30593 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
30594 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
30596 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
30598 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
30600 2013-04-24 Marek Polacek <polacek@redhat.com>
30602 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
30603 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
30604 (select_loops_exit_conditions): Likewise.
30605 (number_of_iterations_for_all_loops): Likewise.
30606 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
30607 (scev_analysis): Likewise.
30609 2013-04-02 Catherine Moore <clm@codesourcery.com>
30610 Chao-ying Fu <fu@mips.com>
30612 * config/mips/micromips.md (jraddiusp): New pattern.
30613 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
30614 instruction if possible.
30616 2013-04-24 Alan Modra <amodra@gmail.com>
30618 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
30620 2013-04-24 Julian Brown <julian@codesourcery.com>
30621 Chung-Lin Tang <cltang@codesourcery.com>
30623 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
30624 dependency behavior in enumeration type DIE generation. Add TODO note
30625 to comments about future DW_FORM_sdata/udata re-work of related code.
30627 2013-04-23 Lawrence Crowl <crowl@google.com>
30629 * Makefile.in: Update as needed below.
30631 * hash-table.h (class hash_table):
30632 Correct many methods with parameter types compare_type to the correct
30633 value_type. (Correct code was unlikely to notice the change.)
30634 (hash_table::elements_with_deleted) New.
30635 (class hashtable::iterator): New.
30636 (hashtable::begin()): New.
30637 (hashtable::end()): New.
30638 (FOR_EACH_HASH_TABLE_ELEMENT): New.
30640 * statistics.c (statistics_hashes):
30641 Change type to hash_table. Update dependent calls and types.
30643 * tree-into-ssa.c (var_infos):
30644 Change type to hash_table. Update dependent calls and types.
30646 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
30647 Change type to hash_table. Update dependent calls and types.
30649 * tree-ssa-loop-im.c (struct mem_ref.refs):
30650 Change type to hash_table. Update dependent calls and types.
30652 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
30653 Change type to hash_table. Update dependent calls and types.
30655 * tree-ssa-sccvn.c (vn_tables_s::nary):
30656 Change type to hash_table. Update dependent calls and types.
30657 (vn_tables_s::phis): Likewise.
30658 (vn_tables_s::references): Likewise.
30660 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
30661 (vn_reference_eq): Update parameter and return types.
30663 * tree-ssa-structalias.c (pointer_equiv_class_table):
30664 Change type to hash_table. Update dependent calls and types.
30665 (location_equiv_class_table): Likewise.
30667 * tree-vect-data-refs.c: Consequential changes for making
30668 peeling a hash_table.
30670 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
30671 (destroy_loop_vec_info): Dependent hash_table update.
30673 * tree-vectorizer.h (peeling_htab):
30674 Change type to hash_table. Update dependent calls and types.
30676 2013-04-23 Shiva Chen <shiva0217@gmail.com>
30678 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
30679 to check the register content is equal or not.
30680 * lra-constraints.c (match_reload): Use lra_assign_reg_val
30681 to assign register content record.
30682 * lra-eliminations.c (update_reg_eliminate): Use
30683 lra_update_reg_val_offset to update register content offset.
30684 * lra-int.h (struct lra_reg): Add offset member.
30685 (lra_reg_val_equal_p): New static inline function.
30686 (lra_update_reg_val_offset): New static inline function.
30687 (lra_assign_reg_val): New static inline function.
30688 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
30689 to assign register content record.
30690 (initialize_lra_reg_info_element): Initial offset to zero.
30692 2013-04-23 Catherine Moore <clm@codesourcery.com>
30694 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
30695 operands. Record compression.
30697 2013-04-23 Xinliang David Li <davidxl@google.com>
30699 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
30701 2013-04-23 Richard Biener <rguenther@suse.de>
30703 PR middle-end/57036
30704 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
30705 parameter, only add abnormal goto edges from the copied body
30706 if the call could perform abnormal gotos.
30707 (copy_cfg_body): Adjust.
30709 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
30711 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
30713 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
30715 * coretypes.h (gimple_stmt_iterator): Add struct to make
30718 2013-04-23 Richard Biener <rguenther@suse.de>
30720 PR tree-optimization/57026
30721 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
30722 from SSA names occuring in abnormal PHI nodes.
30724 2013-04-22 Andi Kleen <ak@linux.intel.com>
30726 * lto/lto.c (print_lto_report_1): Fix LTO report names.
30728 2013-04-22 Andi Kleen <ak@linux.intel.com>
30730 * lto/lto.c (print_lto_report_1): Declare early.
30731 (read_cgraph_and_symbols): Call print_lto_report_1 early.
30733 2013-04-22 Andi Kleen <ak@linux.intel.com>
30735 * common.opt (-flto-report-wpa): Add.
30736 * doc/invoke.texi (-flto-report-wpa): Add.
30737 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
30740 2013-04-22 Xinliang David Li <davidxl@google.com>
30742 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
30743 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
30744 * Makefile.in: New dependency
30746 David Daney <ddaney.cavm@gmail.com>
30748 * configure.ac (gcc_cv_as_micromips_support): Use the
30749 --fatal-warnings option.
30750 * configure: Regenerate.
30752 2013-04-22 Marek Polacek <polacek@redhat.com>
30755 * tsan.c (instrument_expr): Don't instrument expression
30756 in case its size is zero.
30758 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
30762 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
30764 * config/alpha/alpha.c (TARGET_LRA_P): New define.
30766 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
30768 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
30769 (gimple_stmt_iterator): New typedef.
30770 * gimple.h (gimple_stmt_iterator): Rename to...
30771 (gimple_stmt_iterator_d): ... This.
30772 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
30773 trees be valid for GIMPLE and GENERIC.
30774 (TARGET_GIMPLE_FOLD_BUILTIN): New.
30775 * gimple-fold.c (gimple_fold_call): Call target hook
30776 gimple_fold_builtin.
30777 * hooks.c (hook_bool_gsiptr_false): New.
30778 * hooks.h (hook_bool_gsiptr_false): New.
30779 * target.def (fold_stmt): New.
30780 * doc/tm.texi: Regenerate.
30782 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
30785 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
30786 a set sp if no stack realignment.
30788 2013-04-22 Nick Clifton <nickc@redhat.com>
30790 * config.gcc (tilegx-linux): Extend extra_objs rather than
30792 (tilepro-linux): Likewise.
30794 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
30796 * config/aarch64/aarch64-builtins.c
30798 (CF0, CF1, CF2, CF3, CF4, CF10): New.
30799 (VAR<1-12>): Add MAP parameter.
30800 (BUILTIN_*): Likewise.
30801 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
30802 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
30803 (aarch64_ushl_n<mode>): Likewise.
30804 (aarch64_sshr_n<mode>): Likewise.
30805 (aarch64_ushr_n<mode>): Likewise.
30806 (aarch64_<maxmin><mode>): Likewise.
30807 (aarch64_sqrt<mode>): Likewise.
30808 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
30809 (vshr<q>_n_*): Likewise.
30811 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
30813 * config/aarch64/aarch64-builtins.c
30814 (aarch64_simd_builtin_type_mode): Handle SF types.
30816 (BUILTIN_GPF): Define.
30817 (aarch64_init_simd_builtins): Handle SF types.
30818 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
30819 (frecps): Likewise.
30820 (frecpx): Likewise.
30821 * config/aarch64/aarch64-simd.md
30822 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
30823 (aarch64_frecpe<mode>): New.
30824 (aarch64_frecps<mode>): Likewise.
30825 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
30826 (v8type): Add frecp<esx>.
30827 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
30828 (aarch64_frecps<mode>): Likewise.
30829 * config/aarch64/iterators.md (FRECP): New.
30830 (frecp_suffix): Likewise.
30831 * config/aarch64/arm_neon.h
30832 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
30834 2013-04-22 Christian Bruel <christian.bruel@st.com>
30837 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
30838 (REG_CLASS_NAMES): Idem.
30839 (REG_CLASS_CONTENTS): Idem.
30840 (REGCLASS_HAS_FP_REG): Idem.
30841 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
30842 (sh_conditional_register_usage): Idem.
30844 2013-04-21 Jeff Law <law@redhat.com>
30846 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
30847 (ssa_forward_propagate_and_combine): Use it.
30849 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
30851 * lra.c: Update the flow chart diagram.
30853 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
30855 PR rtl-optimization/56847
30856 * lra-constraints.c (process_alt_operands): Discourage alternative
30857 with non-matche doffsettable memory constraint fro memory with
30860 2013-04-19 Richard Biener <rguenther@suse.de>
30862 PR tree-optimization/56982
30863 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
30865 * gimplify.c (gimplify_call_expr): Notice special calls.
30866 (gimplify_modify_expr): Likewise.
30867 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
30868 abnormal control flow receivers.
30869 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
30870 in the same way as cfun->has_nonlocal_labels.
30871 (gimple_purge_dead_abnormal_call_edges): Likewise.
30872 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
30873 receivers start a basic-block.
30875 2013-04-19 Richard Biener <rguenther@suse.de>
30877 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
30879 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
30880 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
30881 (SLP_TREE_LOAD_PERMUTATION): Add.
30882 (vect_transform_slp_perm_load): Adjust prototype.
30883 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
30884 (vect_free_slp_instance): Likewise.
30885 (vect_create_new_slp_node): Likewise.
30886 (vect_supported_slp_permutation_p): Remove.
30887 (vect_slp_rearrange_stmts): Adjust.
30888 (vect_supported_load_permutation_p): Likewise. Inline
30889 vect_supported_slp_permutation_p here.
30890 (vect_analyze_slp_instance): Compute load permutations per
30891 slp node instead of per instance.
30892 (vect_get_slp_defs): Adjust.
30893 (vect_transform_slp_perm_load): Likewise.
30894 (vect_schedule_slp_instance): Remove redundant code.
30895 (vect_schedule_slp): Remove hack for PR56270, add it ...
30896 * tree-vect-stmts.c (vectorizable_load): ... here, do not
30897 CSE loads for SLP. Adjust.
30899 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
30901 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
30902 spelling in two comments.
30904 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
30907 * config/arm/arm.c (load_multiple_sequence): Require SP
30908 as base register for loads if SP is in the register list.
30910 2013-04-19 Martin Jambor <mjambor@suse.cz>
30912 PR tree-optimization/56718
30913 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
30914 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
30915 and made public. Adjusted all callers.
30916 (ipa_intraprocedural_devirtualization): New function.
30917 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
30918 (ipa_intraprocedural_devirtualization): Likewise.
30919 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
30921 2013-04-19 Richard Biener <rguenther@suse.de>
30923 PR tree-optimization/57000
30924 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
30926 2013-04-19 Terry Guo <terry.guo@arm.com>
30928 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
30930 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
30931 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
30932 (cortex_m4_fmacs): Use new reservations.
30933 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
30935 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
30937 PR rtl-optimization/56999
30938 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
30940 (lra_coalesce): Remove split_origin_bitmap and related code.
30941 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
30942 ranges if necessary.
30944 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
30946 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
30948 (ix86_expand_call): Remove clobbered_registers array and use
30949 x86_64_ms_sysv_extra_clobbered_registers instead.
30950 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
30952 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
30954 * config/i386/i386.md (*call_rex64_ms_sysv): Use
30955 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
30956 (*call_value_rex64_ms_sysv): Ditto.
30958 2013-04-18 Cary Coutant <ccoutant@google.com>
30960 * dwarf2out.c (output_pubnames): Check die_perennial_p of
30961 parent instead of die_mark.
30963 2013-04-18 Diego Novillo <dnovillo@google.com>
30965 * gimple.c (create_gimple_tmp): New.
30966 (get_expr_type): New.
30967 (build_assign): New.
30968 (build_type_cast): New.
30969 * gimple.h (enum ssa_mode): Define.
30970 (gimple_seq_set_location): New.
30971 * asan.c (build_check_stmt): Change some gimple_build_* calls
30972 to use build_assign and build_type_cast.
30974 2013-04-18 Richard Biener <rguenther@suse.de>
30976 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
30977 handle negative step. Remove redundant checks.
30978 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
30979 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
30980 for negative step and grouped loads fail to vectorize.
30982 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
30984 * emit-rtl.c (reset_insn_used_flags): New function.
30985 (reset_all_used_flags): Use it.
30986 (verify_insn_sharing): New function.
30987 (verify_rtl_sharing): Fix verification for SEQUENCEs.
30989 2013-04-18 Jakub Jelinek <jakub@redhat.com>
30991 PR tree-optimization/56984
30992 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
30993 and (x >> M) >= N don't register any assertion if N << M is the
30996 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
30998 * lower-subreg.c (resolve_simple_move): If called self-recursive,
30999 do not delete_insn insns that have not yet been emitted, only
31000 unlink them with remove_insn.
31001 * df-scan.c (df_insn_delete): Revert r197492.
31003 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
31005 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
31006 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
31008 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
31010 * config/arm/arm.md (movsicc_insn): Convert define_insn into
31011 define_insn_and_split.
31012 (and_scc,ior_scc,negscc): Likewise.
31013 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
31015 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
31017 * config/arm/arm.c (use_return_insn): Return 0 for targets that
31018 can benefit from using a sequence of LDRD instructions in epilogue
31019 instead of a single LDM instruction.
31021 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
31024 * doc/extend.texi: Fix typo.
31026 2013-04-17 Richard Biener <rguenther@suse.de>
31028 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
31029 (vect_build_slp_tree): ... here.
31030 (vect_build_slp_tree_1): Compute which stmts of the SLP group
31031 match. Remove special-casing of mismatched complex loads.
31032 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
31033 re-try the match with swapped commutative operands.
31034 (vect_supported_load_permutation_p): Remove special-casing of
31035 mismatched complex loads.
31036 (vect_analyze_slp_instance): Adjust.
31038 2013-04-17 Richard Biener <rguenther@suse.de>
31040 PR rtl-optimization/56921
31041 * cfgloop.h (struct loop): Add simple_loop_desc member.
31042 (struct niter_desc): Mark with GTY(()).
31043 (simple_loop_desc): Do not use aux field but simple_loop_desc.
31044 * loop-iv.c (get_simple_loop_desc): Likewise.
31045 (free_simple_loop_desc): Likewise.
31048 2013-04-16 Richard Biener <rguenther@suse.de>
31050 PR rtl-optimization/56921
31051 * loop-init.c (pass_rtl_move_loop_invariants): Add
31052 TODO_do_not_ggc_collect to todo_flags_finish.
31053 (pass_rtl_unswitch): Same.
31054 (pass_rtl_unroll_and_peel_loops): Same.
31055 (pass_rtl_doloop): Same.
31057 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
31059 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
31060 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
31061 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
31063 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
31064 * tree-streamer.c (record_common_node): Adjust reference in comment.
31066 2013-04-17 Terry Guo <terry.guo@arm.com>
31068 * config/arm/cortex-m4.md: Add a new bypass.
31070 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31072 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
31074 (*subs_<optab><mode>_multp2): New pattern.
31075 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
31076 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
31078 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31080 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
31081 (*subs_mul_imm_<mode>): New pattern.
31083 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
31086 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
31087 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
31088 (vsx_movti_32bit): Change j->wa to O->wa.
31090 2013-04-16 Richard Biener <rguenther@suse.de>
31092 PR rtl-optimization/56921
31093 * loop-init.c (pass_rtl_move_loop_invariants): Add
31094 TODO_do_not_ggc_collect to todo_flags_finish.
31095 (pass_rtl_unswitch): Same.
31096 (pass_rtl_unroll_and_peel_loops): Same.
31097 (pass_rtl_doloop): Same.
31099 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
31101 * config/arm/arm.c (emit_multi_reg_push): New declaration
31102 for an existing function.
31103 (arm_emit_strd_push): New function.
31104 (arm_expand_prologue): Used here.
31105 (arm_emit_ldrd_pop): New function.
31106 (arm_expand_epilogue): Used here.
31107 (arm_get_frame_offsets): Update condition.
31108 (arm_emit_multi_reg_pop): Add a special case for load of a single
31109 register with writeback.
31111 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
31113 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
31116 2013-04-16 Richard Biener <rguenther@suse.de>
31118 PR tree-optimization/56756
31119 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
31120 (first_mem_ref_loc): New.
31121 (execute_sm): Place the load temporarily before a previous
31122 access instead of in the latch edge to ensure its SSA dependencies
31123 are defined at points dominating the load.
31125 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
31127 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
31128 correct fix by moving header and footer insn to the footer of
31129 the merged basic block. Clear BB_END of the merged-away block.
31131 PR middle-end/43631
31132 * emit-rtl.c (make_note_raw): New function.
31133 (link_insn_into_chain): New static inline function.
31134 (add_insn): Use it.
31135 (add_insn_before, add_insn_after): Factor insn chain linking code...
31136 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
31137 using link_insn_into_chain.
31138 (note_outside_basic_block_p): New helper function for emit_note_after
31139 and emit_note_before.
31140 (emit_note_after): Use nobb variant of add_insn_after if the note
31141 should not be contained in a basic block.
31142 (emit_note_before): Use nobb variant of add_insn_before if the note
31143 should not be contained in a basic block.
31144 (emit_note_copy): Use make_note_raw.
31145 (emit_note): Likewise.
31146 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
31147 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
31148 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
31149 the moved barrier the tail of the basic block it follows.
31150 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
31152 2013-04-15 Jakub Jelinek <jakub@redhat.com>
31154 PR tree-optimization/56962
31155 * gimple-ssa-strength-reduction.c (record_increment): Only set
31156 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
31157 either rhs1 or rhs2 is equal to c->base_expr.
31159 2013-04-15 Richard Biener <rguenther@suse.de>
31161 PR tree-optimization/56933
31162 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
31164 (GROUP_READ_WRITE_DEPENDENCE): Remove.
31165 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
31166 * tree-vect-data-refs.c (vect_analyze_group_access): Move
31167 dependence check ...
31168 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
31170 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
31171 GROUP_READ_WRITE_DEPENDENCE.
31173 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31175 * emit-rtl.c (reset_all_used_flags): New function.
31176 (verify_rtl_sharing): Call reset_all_used_flags before and after
31177 performing the checks.
31179 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31181 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
31182 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
31183 * config/arm/constraints.md (De): New constraint.
31184 * config/arm/neon.md (anddi3_neon): Delete.
31185 (neon_vand<mode>): Expand to standard anddi3 pattern.
31186 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
31187 Move earlier in the file.
31188 (neon_inv_logic_op2): Likewise.
31189 (arm_anddi_operand_neon): New predicate.
31191 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31193 * configure.ac (gcc_cv_ld_as_needed): Set
31194 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
31195 Use -z ignore, -z record on *-*-solaris2*.
31196 (HAVE_LD_AS_NEEDED): Update comment.
31197 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
31198 * configure: Regenerate.
31199 * config.in: Regenerate.
31200 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
31201 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
31202 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
31203 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
31204 equivalents. Fix markup.
31205 * doc/tm.texi: Regenerate.
31207 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
31209 * config/i386/i386.opt: New option mstack-protector-guard=.
31210 * config/i386/i386-opts.h: Add enum stack_protector_guard.
31211 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
31212 TARGET_SSP_TLS_GUARD.
31213 * config/i386/i386.c (ix86_option_override_internal): Set
31214 ix86_stack_protector_guard.
31215 * config/i386/i386.md (stack_protect_set): Enable for
31216 TARGET_SSP_TLS_GUARD only.
31217 (stack_protect_set_<mode>): Ditto.
31218 (stack_protect_test): Ditto.
31219 (stack_protect_test_<mode>): Ditto.
31220 * doc/invoke.texi (i386 Option): Document.
31222 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
31225 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
31226 (S_MODES): Set H_MODE bit.
31227 (SF_MODES): Set only S_MODE and SF_MODE bits.
31228 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
31229 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
31230 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
31231 <MODE_FLOAT>: Likewise.
31233 2013-04-15 Joey Ye <joey.ye@arm.com>
31235 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
31237 2013-04-15 Joey Ye <joey.ye@arm.com>
31239 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
31241 (thumb_far_jump_used_p): Count instruction size and set
31244 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
31246 * reorg.c (fill_simple_delay_slots): Reindent block of code.
31247 * resource.c (mark_target_live_regs): Reformat conditional block.
31249 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
31251 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
31252 notes, they are emitted only just before final.
31253 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
31255 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
31257 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
31258 * cfgrtl.c (delete_insn): Call it here instead.
31259 * lra-spills.c (lra_final_code_change): Use delete_insn.
31260 * haifa-sched.c (sched_remove_insn): Likewise.
31261 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
31262 returning to the nop pool.
31263 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
31264 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
31266 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
31268 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
31269 * doc/tm.texi: Regenerated.
31271 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
31273 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
31276 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
31278 * df-core.c (df_find_def): Compare register numbers.
31279 (df_find_use): Likewise.
31281 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
31284 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
31285 lra_in_progress for return.
31287 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
31289 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
31290 define_insn into define_insn_and_split and emit movsicc patterns.
31292 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
31294 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
31296 2013-04-12 Richard Biener <rguenther@suse.de>
31298 * tree-pass.h (TODO_do_not_ggc_collect): New.
31299 * passes.c (execute_one_ipa_transform_pass): Honor
31300 TODO_do_not_ggc_collect.
31301 (execute_one_pass): Likewise.
31304 2013-04-10 Richard Biener <rguenther@suse.de>
31306 * passes.c (init_optimization_passes): Remove reload pass.
31307 * ira.c (do_reload): Merge into ...
31309 (rest_of_handle_reload): Remove.
31310 (pass_reload): Likewise.
31311 * config/i386/i386.c (ix86_option_override): Refer to ira instead
31312 of reload for vzeroupper pass placement.
31314 2013-04-12 Jakub Jelinek <jakub@redhat.com>
31316 PR tree-optimization/56918
31317 PR tree-optimization/56920
31318 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
31319 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
31320 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
31321 use wide_mul_with_sign method.
31323 2013-04-12 Richard Biener <rguenther@suse.de>
31325 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
31326 not be considered a gimple constant.
31328 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
31330 * fold-const.c (const_binop): Handle vector shifts by a scalar.
31331 (fold_binary_loc): Call const_binop also for mixed vector-scalar
31334 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
31335 Jakub Jelinek <jakub@redhat.com>
31337 * opts.c: Include diagnostic-color.h.
31338 (common_handle_option): Handle OPT_fdiagnostics_color_.
31339 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
31340 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
31341 (diagnostic-color.o): New.
31342 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
31343 (diagnostic_color_rule): New enum.
31344 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
31345 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
31346 the location string.
31347 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
31348 either NULL, or color kind.
31349 * diagnostic-color.c: New file.
31350 * diagnostic-color.h: New file.
31351 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
31353 * doc/invoke.texi (-fdiagnostics-color): Document.
31354 * pretty-print.h (pp_show_color): Define.
31355 (struct pretty_print_info): Add show_color field.
31356 * diagnostic.c: Include diagnostic-color.h.
31357 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
31358 macros. Colorize error:, warning: etc. strings and also the location
31360 (diagnostic_show_locus): Colorize the caret line.
31361 * pretty-print.c: Include diagnostic-color.h.
31362 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
31363 inside of %< %> quotes or quoted through q format modifier.
31365 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31367 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
31369 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31371 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
31372 code in CC_NZ mode.
31373 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
31376 2013-04-11 Marek Polacek <polacek@redhat.com>
31378 PR tree-optimization/48184
31379 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
31381 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
31383 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
31384 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
31385 (skip_simple_arithmetic): Tidy up.
31386 * tree.h (skip_simple_constant_arithmetic): Declare.
31388 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31390 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
31392 2013-04-11 Richard Biener <rguenther@suse.de>
31394 * tree-vect-loop.c (get_initial_def_for_induction): Properly
31395 generate vector constants.
31397 2013-04-11 Richard Biener <rguenther@suse.de>
31399 PR tree-optimization/56878
31400 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
31401 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
31403 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
31404 Prefer to align the DR with the most invariant base address.
31406 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
31408 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
31411 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
31413 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
31414 floating-point vector comparisons against 0.
31416 2013-04-11 Jakub Jelinek <jakub@redhat.com>
31418 PR tree-optimization/56899
31419 * fold-const.c (extract_muldiv_1): Apply distributive law
31420 only if TYPE_OVERFLOW_WRAPS (ctype).
31422 2013-04-11 Bin Cheng <bin.cheng@arm.com>
31425 * ira-costs.c (scan_one_insn): Check whether the source rtx of
31426 loading has side effect.
31428 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
31430 * config/sparc/sparc.c: Include tree-pass.h.
31431 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
31432 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
31433 head of file. Change return type. Split off gate function.
31434 (sparc_gate_work_around_errata): New function.
31435 (pass_work_around_errata): New pass definition.
31436 (insert_pass_work_around_errata) New pass insert definition to
31437 insert pass_work_around_errata just after delayed-branch scheduling.
31438 (sparc_option_override): Insert the pass.
31439 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
31441 2013-04-10 David S. Miller <davem@davemloft.net>
31443 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
31444 or -mcpu=hypersparc.
31446 * target.def (cstore_mode): New hook.
31447 * target.h: Include insn-codes.h
31448 * targhooks.c: Likewise.
31449 (default_cstore_mode): New function.
31450 * targhooks.h: Declare it.
31451 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
31452 * doc/tm.texi: Rebuild.
31453 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
31454 target hook, rather than inspecting the insn_data.
31455 * config/sparc/sparc.c (sparc_cstore_mode): New function.
31456 (TARGET_CSTORE_MODE): Redefine.
31457 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
31459 * config/sparc/predicates.md (cstore_result_operand): New special
31461 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
31462 Use it for operand 0.
31463 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
31464 (*snesi_special): Likewise.
31465 (*snesi_zero): Likewise.
31466 (*seqsi_zero): Likewise.
31467 (*sltu_insn): Likewise.
31468 (*sgeu_insn): Likewise.
31469 (*seqdi_special): Make operand 0 and comparison operation be of
31471 (*snedi_special): Likewise.
31472 (*snedi_special_vis3): Likewise.
31473 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
31474 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
31475 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
31476 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
31477 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
31478 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
31479 (*sltu_extend_sp64): Likewise.
31480 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
31481 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
31482 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
31483 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
31484 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
31486 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
31488 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
31489 (aarch64_start_file): Use the new function.
31491 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
31492 Jason Merrill <jason@redhat.com>
31494 * common.opt: Add -gdwarf.
31495 * opts.c (common_handle_option): Handle it.
31496 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
31498 2013-04-10 Richard Biener <rguenther@suse.de>
31500 * passes.c (execute_todo): Do not call ggc_collect conditional here.
31501 (execute_one_ipa_transform_pass): But unconditionally here.
31502 (execute_one_pass): And here.
31503 (init_optimization_passes): Remove reload pass.
31504 * tree-pass.h (TODO_ggc_collect): Remove.
31505 (pass_reload): Likewise.
31506 * ira.c (do_reload): Merge into ...
31508 (rest_of_handle_reload): Remove.
31509 (pass_reload): Likewise.
31510 * config/i386/i386.c (ix86_option_override): Refer to ira instead
31511 of reload for vzeroupper pass placement.
31512 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
31513 and todo_flags_finish of all passes.
31515 2013-04-10 Richard Biener <rguenther@suse.de>
31517 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
31518 first_const_oprnd field, rename first_def_type to first_op_type.
31519 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
31520 (vect_get_and_check_slp_defs): Always use the type of the
31521 operand. Allow mixed vect_external_def, vect_constant_def types.
31522 (vect_get_constant_vectors): Handle mixed vect_external_def,
31523 vect_constant_def types.
31525 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
31527 PR tree-optimization/55524
31528 * tree-ssa-math-opts.c
31529 (convert_mult_to_fma): Don't use an fms construct
31530 when we don't have an fms operation, but fnma, and it looks
31531 likely that we'll be able to use the latter.
31533 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
31535 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
31537 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
31538 inline fail caused by overwritable functions.
31540 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
31542 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
31543 unnecessary bits in the constant power of two case.
31545 2013-04-10 Richard Biener <rguenther@suse.de>
31547 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
31548 broken code swapping operands.
31549 (vect_build_slp_tree): Do not compute load permutations here.
31550 (vect_analyze_slp_instance): Compute load permutations here,
31551 after building the SLP tree.
31553 2013-04-09 Christian Bruel <christian.bruel@st.com>
31555 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
31556 of next/prev_real_insn.
31558 2013-04-09 Jan Hubicka <jh@suse.cz>
31560 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
31561 Drop aliased parameter.
31562 (function_and_variable_visibility): Do not handle alias pairs.
31563 * cgraph.c (varpool_externally_visible_p): Update prototype.
31564 * varpool.c (varpool_add_new_variable): Update.
31566 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31568 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
31570 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
31572 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
31574 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
31576 2013-04-09 Marek Polacek <polacek@redhat.com>
31578 PR tree-optimization/48762
31579 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
31581 2013-04-09 Richard Biener <rguenther@suse.de>
31583 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
31585 (vect_build_slp_tree): Likewise.
31586 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
31587 calculating the cost of a SLP instance.
31588 (vect_analyze_slp_instance): Use it from here, after building
31591 2013-04-09 Jakub Jelinek <jakub@redhat.com>
31593 PR middle-end/56883
31594 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
31595 expand_omp_for_static_chunk): Use simple_p = true in
31596 force_gimple_operand_gsi calls when assigning to addressable decls.
31598 2013-04-09 Jeff Law <law@redhat.com>
31600 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
31601 when the boolean was created by converting a wider object which
31602 had a boolean range.
31604 2013-04-09 Richard Biener <rguenther@suse.de>
31606 * tree-vectorizer.h (slp_void_p): Remove.
31607 (slp_tree): Typedef before _slp_tree declaration.
31608 (struct _slp_tree): Use a vector of slp_tree as children.
31609 (vect_get_place_in_interleaving_chain): Remove.
31610 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
31612 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
31614 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
31615 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
31616 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
31617 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
31618 Use slp_node instead of slp_void_p and adjust.
31620 2013-04-09 Richard Biener <rguenther@suse.de>
31622 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
31623 work that is not necessary.
31625 2013-04-09 Jakub Jelinek <jakub@redhat.com>
31627 PR tree-optimization/56854
31628 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
31629 forward into clobber stmts if it would change MEM_REF lhs into
31632 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
31634 * tree.c (type_hash_lookup, type_hash_add): Make static.
31635 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
31637 2013-04-09 Richard Biener <rguenther@suse.de>
31639 * tree.h (unsave_expr_now): Remove.
31640 * tree-inline.c (mark_local_for_remap_r): Remove.
31641 (unsave_expr_1): Likewise.
31642 (unsave_r): Likewise.
31643 (unsave_expr_now): Likewise.
31644 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
31645 (propagate_tree_value): Likewise.
31647 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
31649 * doc/rtl.texi (sequence): Rewrite documentation to match the
31650 current use of SEQUENCE rtl objects.
31651 * rtl.def (SEQUENCE): Likewise.
31653 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
31654 Update documentation.
31655 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
31656 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
31658 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
31660 2013-04-08 Teresa Johnson <tejohnson@google.com>
31662 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
31663 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
31665 (estimate_edge_size_and_time): Add comment to suggest using rounding
31667 (estimate_node_size_and_time): Ditto.
31668 (remap_edge_change_prob): Use helper rounding divide methods.
31669 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
31670 (gimple_mod_pow2_value_transform): Ditto.
31671 (gimple_mod_subtract_transform): Ditto.
31672 (gimple_ic_transform): Ditto.
31673 (gimple_stringops_transform): Ditto.
31674 * stmt.c (conditional_probability): Ditto.
31675 (emit_case_dispatch_table): Ditto.
31676 * lto-cgraph.c (merge_profile_summaries): Ditto.
31677 * tree-optimize.c (execute_fixup_cfg): Ditto.
31678 * cfgcleanup.c (try_forward_edges): Ditto.
31679 * cfgloopmanip.c (scale_loop_profile): Ditto.
31681 (duplicate_loop_to_header_edge): Ditto.
31682 (lv_adjust_loop_entry_edge): Ditto.
31683 * tree-vect-loop.c (vect_transform_loop): Ditto.
31684 * profile.c (compute_branch_probabilities): Ditto.
31685 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
31686 * lto-streamer-in.c (input_cfg): Ditto.
31687 * gimple-streamer-in.c (input_bb): Ditto.
31688 * ipa-cp.c (update_profiling_info): Ditto.
31689 (update_specialized_profile): Ditto.
31690 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
31691 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
31693 * sched-rgn.c (compute_dom_prob_ps): Ditto.
31694 (compute_trg_info): Ditto.
31695 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
31696 (purge_dead_edges): Ditto.
31697 * loop-unswitch.c (unswitch_loop): Ditto.
31698 * cgraphclones.c (cgraph_clone_edge): Ditto.
31699 (cgraph_clone_node): Ditto.
31700 * tree-inline.c (copy_bb): Ditto.
31701 (copy_edges_for_bb): Ditto.
31702 (initialize_cfun): Ditto.
31703 (copy_cfg_body): Ditto.
31704 (expand_call_inline): Ditto.
31706 2013-04-08 Kai Tietz <ktietz@redhat.com>
31708 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
31709 TARGET_CYGWIN64 by TARGET_64BIT.
31711 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
31713 * config/epiphany/epiphany.md (GPR_1): New constant.
31714 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
31715 * config/epiphany/epiphany.c (gen_compare_reg):
31716 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
31717 is already in place.
31718 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
31719 Don't require being called during rtl expansion; If y operlaps r0,
31721 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
31722 (epiphany_expand_epilogue): Likewise.
31724 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
31725 Don't use CC_FPmode for ORDERED / UNORDERED.
31726 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
31728 * config/epiphany/constraints.md (CnL): New constraint.
31729 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
31730 * config/epiphany/predicates.md (add_operand): Allow 1024.
31732 * config/epiphany/epiphany.md (logical_op): New code iterator.
31733 (op_mnc): New code attribute.
31734 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
31735 (mov_f+1, mov_f+2): New peephole2 patterns.
31737 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
31738 (cstoresi4): Also allow re-use of zero result when doing a NE
31739 comparison to a non-zero operand.
31740 Use (clobber (scratch)) for first insn if the gpr output is not needed.
31742 * config/epiphany/epiphany.md (<insn_opname>v2si3):
31743 Use gen_addsi3_i / gen_subsi3_i.
31745 2013-04-08 Jakub Jelinek <jakub@redhat.com>
31749 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
31750 contain anything but clobbers, at most one __builtin_stack_restore,
31751 optionally debug stmts and final resx, and if it has at least one
31752 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
31753 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
31754 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
31755 which isn't defaut definition, remove them.
31756 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
31757 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
31758 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
31759 with MEM_REF LHS with SSA_NAME address.
31761 2013-04-08 Jeff Law <law@redhat.com>
31763 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
31765 2013-04-08 Richard Biener <rguenther@suse.de>
31767 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
31769 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
31770 determined vector type.
31771 (vect_analyze_data_refs): Likewise.
31772 (vect_get_new_vect_var): Adjust.
31773 (vect_create_destination_var): Preserve SSA name versions.
31774 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
31775 not dump anything here.
31777 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
31779 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
31780 Add member lr_slot_known.
31781 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
31783 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
31784 Remove code that sets lr_slot_offset according to what a previous
31785 version of epiphany_emit_save_restore used to do.
31786 (epiphany_emit_save_restore): When doing an lr save or restore,
31787 set/verify lr_slot_known and lr_slot_offset.
31789 2013-04-08 Xinyu Qi <xyqi@marvell.com>
31792 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
31795 2013-04-08 Richard Biener <rguenther@suse.de>
31797 * alias.c (find_base_term): Fix thinko in previous change.
31799 2013-04-08 Jakub Jelinek <jakub@redhat.com>
31801 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
31802 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
31803 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
31804 if possible to compute val.
31805 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
31806 For QImode integers don't require anything about precision. Use
31807 const_with_all_bytes_same to find out if the constant doesn't have
31808 repeated bytes in it.
31810 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31812 * config/s390/s390.c (s390_expand_insv): Only accept insertions
31815 2013-04-08 Marek Polacek <polacek@redhat.com>
31817 PR rtl-optimization/48182
31818 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
31821 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31824 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
31825 nuses, make sure we have a label.
31827 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31830 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
31831 (rs6000_emit_swdiv_low_precision): Remove.
31832 (rs6000_emit_swdiv): Rewrite to handle between one and four
31833 iterations of Newton-Raphson generally; modify required number of
31834 iterations for some cases.
31835 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
31837 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
31839 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
31840 set-but-unused variable.
31842 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
31843 basic blocks of released function bodies garbage-collectable.
31845 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
31846 (struct rtl_opt_pass): Add TODO_df_finish.
31848 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
31850 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
31852 * config/arm/constraints.md (q): New constraint.
31853 * config/arm/ldrdstrd.md: New file.
31854 * config/arm/arm.md (ldrdstrd.md) New include.
31855 (arm_movdi): Use "q" instead of "r" constraint
31856 for double-word memory access.
31857 (movdf_soft_insn): Likewise.
31858 * config/arm/vfp.md (movdi_vfp): Likewise.
31859 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
31860 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
31861 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
31862 (mem_ok_for_ldrd_strd): Likewise.
31863 (output_move_double): Update assertion.
31865 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
31867 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
31869 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
31871 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
31872 define_insn_and_split.
31873 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
31875 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
31877 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
31878 define_insn_and_split.
31879 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
31880 (shiftsi3_compare): New pattern.
31881 (rrx): New pattern.
31882 * config/arm/unspecs.md (UNSPEC_RRX): New.
31884 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
31886 * config/arm/arm.md (negdi_extendsidi): New pattern.
31887 (negdi_zero_extendsidi): Likewise.
31889 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
31891 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
31892 define_insn_and_split.
31893 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
31894 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
31896 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
31898 * config/arm/arm.md (arm_subdi3): Convert define_insn into
31899 define_insn_and_split.
31900 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
31901 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
31903 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
31905 * config/arm/arm.md (subsi3_carryin): New pattern.
31906 (subsi3_carryin_const): Likewise.
31907 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
31908 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
31910 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
31912 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
31914 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
31916 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
31917 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
31919 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31921 * config/arm/arm.c (arm_expand_builtin): Change fcode
31922 type to unsigned int.
31924 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31926 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
31928 2013-04-04 Ian Lance Taylor <iant@google.com>
31930 * doc/standards.texi (Standards): The Go frontend supports the Go 1
31933 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
31935 PR middle-end/56729
31936 * df-scan.c (df_insn_delete): Disable failing assert.
31938 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31940 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
31941 New function prototype.
31942 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
31943 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
31944 (arm_builtin_vectorized_function): New function.
31946 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31948 * config/arm/arm_neon_builtins.def: New file.
31949 * config/arm/arm.c (neon_builtin_data): Move contents to
31950 arm_neon_builtins.def.
31951 (enum arm_builtins): Include neon builtin definitions.
31952 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
31953 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
31955 2013-04-04 Marek Polacek <polacek@redhat.com>
31957 PR tree-optimization/48186
31958 * predict.c (maybe_hot_frequency_p): Return false if
31959 HOT_BB_FREQUENCY_FRACTION is 0.
31960 (cgraph_maybe_hot_edge_p): Likewise.
31962 2013-04-04 Richard Biener <rguenther@suse.de>
31964 PR tree-optimization/56826
31965 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
31968 2013-04-04 Richard Biener <rguenther@suse.de>
31970 PR tree-optimization/56213
31971 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
31972 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
31974 2013-04-04 Richard Biener <rguenther@suse.de>
31976 PR tree-optimization/56837
31977 * tree-loop-distribution.c (classify_partition): For non-zero
31978 values require that the value has the same precision as its
31979 mode to be useful as memset value.
31981 2013-04-03 Nick Clifton <nickc@redhat.com>
31983 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
31984 (fmssf4): Use fmsf.s on E3V5 architectures.
31985 (fnmasf4): Use fnmaf.s on E3V5 architectures.
31986 (fnmssf4): Use fnmsf.s on E3V5 architectures.
31988 2013-04-03 Jeff Law <law@redhat.com>
31990 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
31991 (lra-eliminations.o): Likewise.
31993 2013-04-03 Teresa Johnson <tejohnson@google.com>
31995 * gcov-io.c (compute_working_sets): Moved most of body of old
31996 compute_working_sets here from profile.c.
31997 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
31998 (gcov_working_set_t): Moved typedef here from basic-block.h
31999 (compute_working_set): Declare.
32000 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
32001 (get_working_sets): Renamed from compute_working_set,
32002 replace most of body with call to new compute_working_sets.
32003 (get_exec_counts): Replace call to compute_working_sets
32004 to get_working_sets.
32005 * profile.h (get_working_sets): Renamed from compute_working_set.
32006 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
32007 to get_working_sets.
32008 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
32009 * gcov-dump.c (dump_working_sets): New function.
32011 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
32013 * hwint.c (sext_hwi, zext_hwi): New functions.
32014 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
32015 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
32016 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
32017 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
32018 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
32019 (sext_hwi, zext_hwi): New functions.
32021 2013-04-03 Jeff Law <law@redhat.com>
32023 PR tree-optimization/56799
32024 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
32025 back test for widening conversion erroneously dropped in prior change.
32027 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32030 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
32031 instead of next_real_insn.
32033 2013-04-03 Marek Polacek <polacek@redhat.com>
32036 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
32038 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32041 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
32043 (thumb1_output_casesi): Likewise.
32044 (thumb2_output_casesi): Likewise.
32046 2013-04-03 Richard Biener <rguenther@suse.de>
32048 PR tree-optimization/56817
32049 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
32051 (tree_unroll_loops_completely_1): ... new function to manually
32052 walk the loop tree, properly defering outer loops of unrolled
32053 loops to later iterations.
32055 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
32057 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
32058 (vectorizable_load): Likewise.
32059 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
32060 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
32062 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
32064 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
32067 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32069 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
32071 2013-04-03 Bin Cheng <bin.cheng@arm.com>
32073 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
32075 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
32077 PR tree-optimization/56790
32078 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
32081 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
32083 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
32085 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
32086 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
32089 2013-04-03 Jakub Jelinek <jakub@redhat.com>
32092 * tree.h (force_folding_builtin_constant_p): New decl.
32093 * builtins.c (force_folding_builtin_constant_p): New variable.
32094 (fold_builtin_constant_p): Fold immediately also if
32095 force_folding_builtin_constant_p.
32097 2013-04-03 Richard Biener <rguenther@suse.de>
32099 PR tree-optimization/56812
32100 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
32101 DRs of the same interleaving chain are independent.
32103 2013-04-02 Jason Merrill <jason@redhat.com>
32105 * gdbinit.in (pbb): Use debug fn.
32107 2013-04-02 Lawrence Crowl <crowl@google.com>
32109 * sese.h (struct ivtype_map_elt_s): Remove unused.
32110 (extern debug_ivtype_map): Remove unused.
32111 (extern eq_ivtype_map_elts): Remove unused.
32112 * sese.c (debug_ivtype_map): Removed unused.
32113 (debug_ivtype_map_1): Removed unused.
32114 (debug_ivtype_elt): Remove unused.
32115 (eq_ivtype_map_elts): Remove unused.
32117 2013-04-02 Kai Tietz <ktietz@redhat.com>
32120 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
32121 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
32122 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
32124 (legitimize_pe_coff_symbol): Likewise.
32125 (is_imported_p): New helper-function.
32126 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
32127 for Windows x64 targets.
32128 (ix86_expand_prologue): Optimize for pe-coff targets.
32129 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
32130 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
32131 medium/large code-model.
32132 (legitimize_pic_address): Likewise.
32133 (legitimize_tls_address): Likewise.
32134 (ix86_expand_call): Likewise.
32135 (x86_output_mi_thunk): Likewise.
32136 (get_dllimport_decl): Add new beimport argument.
32137 (construct_plt_address): Don't assert for x64 pe-coff targets.
32138 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
32140 (SYMBOL_FLAG_STUBVAR): New macro.
32141 (SYMBOL_REF_STUBVAR_P): Likewise.
32142 * config/i386/winnt.c (stub_list): New structure.
32143 (stub_head): New local variable.
32144 (i386_pe_record_stub): New function.
32145 (i386_pe_file_end): Emit refptr-stubs.
32147 2013-04-02 Jakub Jelinek <jakub@redhat.com>
32149 PR rtl-optimization/56745
32150 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
32151 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
32154 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
32155 and both of them are MEM_REFs, just compare first argument for
32156 equality and attempt to deal even with differing offsets.
32159 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
32160 of gimple_clobber_p to be MEM_REF.
32161 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
32162 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
32163 after gimplification.
32164 * asan.c (get_mem_ref_of_assignment): Don't instrument
32165 gimple_clobber_p stmts.
32166 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
32167 gimple_clobber_p stmt if they have MEM_REF lhs and
32168 are dead because of another gimple_clobber_p stmt.
32169 * tree-ssa-live.c (clear_unused_block_pointer): Treat
32170 gimple_clobber_p stmts like debug stmts.
32171 (remove_unused_locals): Remove clobbers with MEM_REF lhs
32172 that refer to unused VAR_DECLs or uninitialized values.
32173 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
32174 gimple_clobber_p stmts if they refer to removed parameters.
32175 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
32178 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
32180 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
32181 using SWI48 mode attribute.
32183 2013-04-02 Wei Mi <wmi@google.com>
32185 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
32186 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
32187 *<rotate_insn><mode>3_mask in i386.md.
32189 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
32191 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
32193 2013-04-02 Richard Biener <rguenther@suse.de>
32195 PR tree-optimization/56778
32196 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
32197 Runtime alias tests are not supported for gather loads.
32198 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
32199 stmts referenced from SSA operands before updating SSA form.
32201 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
32202 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32204 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
32205 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
32206 * config/arm/cortex-a53.md: New file.
32207 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
32208 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
32209 * config/arm/arm.c (arm_issue_rate): Likewise.
32210 * config/arm/arm-tune.md: Regenerate
32211 * config/arm/arm-tables.opt: Regenerate.
32212 * config/arm/arm-cores.def: Add cortex-a53.
32214 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
32216 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
32219 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
32221 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
32222 scalar load/store operations using B/H registers.
32223 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
32225 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
32227 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
32229 * config/aarch64/aarch64.c
32230 (aarch64_simd_scalar_immediate_valid_for_move): New.
32231 * config/aarch64/aarch64-protos.h
32232 (aarch64_simd_scalar_immediate_valid_for_move): New.
32233 * config/aarch64/constraints.md (Dh, Dq): New.
32234 * config/aarch64/iterators.md (hq): New.
32236 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
32238 * reorg.c (get_branch_condition): Deal with conditional returns.
32239 (fill_simple_delay_slots): Remove dead code dealing with jumps.
32241 2013-04-01 Wei Mi <wmi@google.com>
32243 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
32244 Truncate operand 2 using %b asm operand modifier.
32245 (*<shift_insn><mode>3_mask): Ditto.
32246 (*<rotate_insn><mode>3_mask): Ditto.
32248 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
32250 PR middle-end/56798
32251 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
32253 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
32255 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
32257 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
32259 2013-03-30 Lawrence Crowl <crowl@google.com>
32261 * dse.c (clear_alias_sets): Remove never set.
32262 (disqualified_clear_alias_sets): Remove never set.
32263 (clear_alias_mode_pool): Remove never set.
32264 (dse_step0): Remove condition that is never true.
32265 (canon_address): Remove condition that is never true.
32266 (dse_step7): Remove condition that is never true.
32267 (rest_of_handle_dse): Remove condition that is never true.
32268 (rest_of_handle_dse::did_global): Remove never read from above.
32269 (dse_step2_spill): Remove never called from above.
32270 (dse_step5_spill): Remove never called from above.
32272 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
32274 * doc/md.texi (Standard Names) <casesi>: Update documentation for
32275 JUMP_TABLE_DATA changes.
32276 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
32277 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
32278 (Insns) <jump_table_data>: New entry.
32279 * doc/tm.texi: Regenerate.
32281 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
32283 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
32284 for table jump at the end of a basic block using tablejump_p.
32285 * targhooks.c (default_invalid_within_doloop): Likewise.
32286 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
32287 target hook implementation that is identical to the default hook.
32288 (rs6000_invalid_within_doloop): Remove.
32290 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
32291 unused variable from tablejump_p call.
32293 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
32294 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
32295 (INSN_DELETED_P): Likewise.
32296 (emit_jump_table_data): New prototype.
32297 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
32298 after 4th as unused.
32299 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
32300 * sched-vis.c (print_insn): Likewise.
32301 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
32302 insn for compatibility with back ends that use next_active_insn to
32303 identify jump table data.
32304 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
32305 (remove_insn): Likewise.
32306 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
32308 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
32309 (emit_jump_table_data): New function.
32311 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
32312 basic block, a JUMP_TABLE_DATA never is.
32313 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
32314 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
32315 off from code handling real insns.
32316 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
32317 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
32318 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
32319 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
32320 is not a NONDEBUG_INSN_P.
32321 * ira-costs.c (scan_one_insn): Likewise.
32322 * jump.c (mark_all_labels): Likewise.
32323 (mark_jump_label_1): Likewise.
32324 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
32325 * lra.c (get_insn_freq): Expect all insns reaching here to be in
32327 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
32328 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
32329 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
32330 JUMP_TABLE_DATA_P insns.
32331 (calculate_elim_costs_all_insns): Likewise.
32332 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
32333 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
32334 (delete_output_reload): Code style fixups.
32335 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
32336 insn flags on this non-insn.
32337 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
32338 as scheduling barriers, for pre-change compatibility.
32339 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
32340 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
32342 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
32343 redundant JUMP_TABLE_DATA_P test.
32344 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
32345 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
32346 (frv_for_each_packet): Likewise.
32347 * config/i386/i386.c (min_insn_size): Likewise.
32348 (ix86_avoid_jump_mispredicts): Likewise.
32349 * config/m32r/m32r.c (m32r_is_insn): Likewise.
32350 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
32351 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
32352 (mips16_insn_length): Robustify.
32353 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
32354 (mips16_split_long_branches): Likewise.
32355 * config/pa/pa.c (pa_combine_instructions): Likewise.
32356 * config/rs6000/rs6000.c (get_next_active_insn): Treat
32357 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
32358 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
32359 as contributing to pool range lengths.
32360 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
32361 Remove redundant JUMP_TABLE_DATA_P test.
32362 (sh_loop_align): Likewise.
32363 (split_branches): Likewise.
32364 (sh_insn_length_adjustment): Likewise.
32365 * config/spu/spu.c (get_branch_target): Likewise.
32367 2013-03-29 Jan Hubicka <jh@suse.cz>
32369 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
32370 gcov streaming; stream hot bb threshold to ltrans.
32371 * predict.c (get_hot_bb_threshold): Break out from ....
32372 (maybe_hot_count_p): ... here.
32373 (set_hot_bb_threshold): New function.
32374 * lto-section-in.c (lto_section_name): Add profile.
32375 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
32376 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
32377 and data-streamer.h
32378 (histogram_entry): New structure.
32379 (histogram, histogram_pool): New global vars.
32380 (histogram_hash): New structure.
32381 (histogram_hash::hash): New method.
32382 (histogram_hash::equal): Likewise.
32383 (account_time_size): New function.
32384 (cmp_counts): New function.
32385 (dump_histogram): New function.
32386 (ipa_profile_generate_summary): New function.
32387 (ipa_profile_write_summary): New function.
32388 (ipa_profile_read_summary): New function.
32389 (ipa_profile): Decide on threshold.
32390 (pass_ipa_profile): Add ipa_profile_write_summary and
32391 ipa_profile_read_summary.
32392 * Makefile.in (ipa.o): Update dependencies.
32393 * lto-streamer.h (LTO_section_ipa_profile): New section.
32395 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
32397 * tree.h (VAR_P): New.
32399 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
32402 * doc/invoke.texi ([-fwhole-program]): Fix typo.
32404 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
32406 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
32407 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
32408 (control_flow_insn_p): Likewise.
32409 * cfgrtl.c (duplicate_insn_chain): Likewise.
32410 * final.c (get_attr_length_1): Likewise.
32411 (shorten_branches): Likewise.
32412 (final_scan_insn): Likewise.
32413 * function.c (instantiate_virtual_regs): Likewise.
32414 * gcse.c (insert_insn_end_basic_block): Likewise.
32415 * ira-costs.c (scan_one_insn): Likewise.
32416 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
32417 * lra.c (check_rtl): Likewise.
32418 * reload1.c (elimination_costs_in_insn): Likewise.
32419 * reorg.c (follow_jumps): Likewise.
32421 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
32422 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
32423 (thumb_far_jump_used_p): Likewise.
32424 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
32425 (workaround_speculation): Likewise.
32426 (add_sched_insns_for_speculation): Likewise.
32427 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
32428 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
32429 (frv_for_each_packet): Likewise.
32430 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
32431 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
32432 (final_emit_insn_group_barriers): Likewise.
32433 * config/m32r/m32r.c (m32r_is_insn): Likewise.
32434 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
32435 (mips16_insn_length): Likewise.
32436 * config/pa/pa.c (pa_reorg): Likewise.
32437 (pa_combine_instructions): Likewise.
32438 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
32439 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
32440 (sh_reorg): Likewise.
32441 (split_branches): Likewise.
32442 * config/spu/spu.c (get_branch_target): Likewise.
32444 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
32447 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
32449 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
32450 Fix declaration name.
32452 2013-03-28 Lawrence Crowl <crowl@google.com>
32454 * graphds.h (struct graph.indicies): Remove unused.
32455 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
32456 (SCOP_ORIGINAL_PDDRS): Remove unused.
32457 * sese.h (extern insert_loop_close_phis): Removed unused.
32458 (extern insert_guard_phis): Removed unused.
32459 (extern ivtype_map_elt_info): Removed unused.
32460 (new_ivtype_map_elt): Removed unused.
32461 * sese.c (ivtype_map_elt_info): Removed unused.
32463 2013-03-28 Lawrence Crowl <crowl@google.com>
32465 * Makefile.in: Add several missing include dependences.
32467 (test-dump.o): New. This object is not added to any executable,
32468 but is present for ad-hoc testing.
32470 (debug (const bitmap_head_def &)): New.
32471 (debug (const bitmap_head_def *)): New.
32473 (extern debug (const bitmap_head_def &)): New.
32474 (extern debug (const bitmap_head_def *)): New.
32476 (debug (edge_def &)): New.
32477 (debug (edge_def *)): New.
32479 (debug (basic_block_def &)): New.
32480 (debug (basic_block_def *)): New.
32482 (dump_node (const_tree, int, FILE *)): Correct source file.
32484 (debug (die_struct &)): New.
32485 (debug (die_struct *)): New.
32487 (extern debug (die_struct &)): New.
32488 (extern debug (die_struct *)): New.
32489 * gimple-pretty-print.c
32490 (debug (gimple_statement_d &)): New.
32491 (debug (gimple_statement_d *)): New.
32492 * gimple-pretty-print.h
32493 (extern debug (gimple_statement_d &)): New.
32494 (extern debug (gimple_statement_d *)): New.
32496 (debug (ira_allocno_copy &)): New.
32497 (debug (ira_allocno_copy *)): New.
32498 (debug (ira_allocno &)): New.
32499 (debug (ira_allocno *)): New.
32501 (extern debug (ira_allocno_copy &)): New.
32502 (extern debug (ira_allocno_copy *)): New.
32503 (extern debug (ira_allocno &)): New.
32504 (extern debug (ira_allocno *)): New.
32506 (debug (live_range &)): New.
32507 (debug (live_range *)): New.
32509 (debug (lra_live_range &)): New.
32510 (debug (lra_live_range *)): New.
32512 (debug (lra_live_range &)): New.
32513 (debug (lra_live_range *)): New.
32515 (debug (omega_pb_d &)): New.
32516 (debug (omega_pb_d *)): New.
32518 (extern debug (omega_pb_d &)): New.
32519 (extern debug (omega_pb_d *)): New.
32521 (debug (const rtx_def &)): New.
32522 (debug (const rtx_def *)): New.
32524 (debug_tree (tree): Move within file.
32525 (debug_raw (const tree_node &)): New.
32526 (debug_raw (const tree_node *)): New.
32527 (dump_tree_via_hooks (const tree_node *, int)): New.
32528 (debug (const tree_node &)): New.
32529 (debug (const tree_node *)): New.
32530 (debug_verbose (const tree_node &)): New.
32531 (debug_verbose (const tree_node *)): New.
32532 (debug_head (const tree_node &)): New.
32533 (debug_head (const tree_node *)): New.
32534 (debug_body (const tree_node &)): New.
32535 (debug_body (const tree_node *)): New.
32536 (debug_vec_tree (tree): Move and reimplement in terms of dump.
32537 (debug (vec<tree, va_gc> &)): New.
32538 (debug (vec<tree, va_gc> *)): New.
32540 (extern debug (const rtx_def &)): New.
32541 (extern debug (const rtx_def *)): New.
32543 (debug_raw (simple_bitmap_def &)): New.
32544 (debug_raw (simple_bitmap_def *)): New.
32545 (debug (simple_bitmap_def &)): New.
32546 (debug (simple_bitmap_def *)): New.
32548 (extern debug (simple_bitmap_def &)): New.
32549 (extern debug (simple_bitmap_def *)): New.
32550 (extern debug_raw (simple_bitmap_def &)): New.
32551 (extern debug_raw (simple_bitmap_def *)): New.
32553 (debug (vinsn_def &)): New.
32554 (debug (vinsn_def *)): New.
32555 (debug_verbose (vinsn_def &)): New.
32556 (debug_verbose (vinsn_def *)): New.
32557 (debug (expr_def &)): New.
32558 (debug (expr_def *)): New.
32559 (debug_verbose (expr_def &)): New.
32560 (debug_verbose (expr_def *)): New.
32561 (debug (vec<rtx> &)): New.
32562 (debug (vec<rtx> *)): New.
32564 (extern debug (vinsn_def &)): New.
32565 (extern debug (vinsn_def *)): New.
32566 (extern debug_verbose (vinsn_def &)): New.
32567 (extern debug_verbose (vinsn_def *)): New.
32568 (extern debug (expr_def &)): New.
32569 (extern debug (expr_def *)): New.
32570 (extern debug_verbose (expr_def &)): New.
32571 (extern debug_verbose (expr_def *)): New.
32572 (extern debug (vec<rtx> &)): New.
32573 (extern debug (vec<rtx> *)): New.
32575 (_list_iter_cond_expr): Make inline instead of static.
32577 (debug (sreal &)): New.
32578 (debug (sreal *)): New.
32580 (extern debug (sreal &)): New.
32581 (extern debug (sreal *)): New.
32583 (extern debug_raw (const tree_node &)): New.
32584 (extern debug_raw (const tree_node *)): New.
32585 (extern debug (const tree_node &)): New.
32586 (extern debug (const tree_node *)): New.
32587 (extern debug_verbose (const tree_node &)): New.
32588 (extern debug_verbose (const tree_node *)): New.
32589 (extern debug_head (const tree_node &)): New.
32590 (extern debug_head (const tree_node *)): New.
32591 (extern debug_body (const tree_node &)): New.
32592 (extern debug_body (const tree_node *)): New.
32593 (extern debug (vec<tree, va_gc> &)): New.
32594 (extern debug (vec<tree, va_gc> *)): New.
32596 (debug (struct loop &)): New.
32597 (debug (struct loop *)): New.
32598 (debug_verbose (struct loop &)): New.
32599 (debug_verbose (struct loop *)): New.
32600 * tree-dump.c: Add header dependence.
32602 (extern debug (struct loop &)): New.
32603 (extern debug (struct loop *)): New.
32604 (extern debug_verbose (struct loop &)): New.
32605 (extern debug_verbose (struct loop *)): New.
32607 (debug (data_reference &)): New.
32608 (debug (data_reference *)): New.
32609 (debug (vec<data_reference_p> &)): New.
32610 (debug (vec<data_reference_p> *)): New.
32611 (debug (vec<ddr_p> &)): New.
32612 (debug (vec<ddr_p> *)): New.
32614 (extern debug (data_reference &)): New.
32615 (extern debug (data_reference *)): New.
32616 (extern debug (vec<data_reference_p> &)): New.
32617 (extern debug (vec<data_reference_p> *)): New.
32618 (extern debug (vec<ddr_p> &)): New.
32619 (extern debug (vec<ddr_p> *)): New.
32621 (debug (pt_solution &)): New.
32622 (debug (pt_solution *)): New.
32624 (extern debug (pt_solution &)): New.
32625 (extern debug (pt_solution *)): New.
32627 (debug (_var_map &)): New.
32628 (debug (_var_map *)): New.
32629 (debug (tree_live_info_d &)): New.
32630 (debug (tree_live_info_d *)): New.
32632 (extern debug (_var_map &)): New.
32633 (extern debug (_var_map *)): New.
32634 (extern debug (tree_live_info_d &)): New.
32635 (extern debug (tree_live_info_d *)): New.
32637 2013-03-28 Jan Hubicka <jh@suse.cz>
32639 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
32641 2013-03-28 Ian Bolton <ian.bolton@arm.com>
32643 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
32644 record only when desired or required.
32646 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
32648 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
32649 *vec_extractv2di_1_rex64. Use x64 isa attribute.
32651 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32653 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
32654 (*andsi3_compare0_uxtw): New pattern.
32655 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
32656 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
32658 2013-03-28 Jan Hubicka <jh@suse.cz>
32660 * data-streamer-in.c (streamer_read_gcov_count): New function.
32661 * gimple-streamer-out.c: Include value-prof.h.
32662 (output_gimple_stmt): Output histogram.
32663 (output_bb): Use streamer_write_gcov_count.
32664 * value-prof.c: Include data-streamer.h
32665 (dump_histogram_value): Add HIST_TYPE_MAX.
32666 (stream_out_histogram_value): New function.
32667 (stream_in_histogram_value): New function.
32668 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
32669 (stream_out_histogram_value, stream_in_histogram_value): Declare.
32670 * data-streamer-out.c (streamer_write_gcov_count): New function.
32671 (streamer_write_gcov_count_stream): New function.
32672 * lto-cgraph.c (lto_output_edge): Update counter streaming.
32673 (lto_output_node): Likewise.
32674 (input_node, input_edge): Likewise.
32675 * lto-streamer-out.c (output_cfg): Update streaming.
32676 * lto-streamer-in.c (input_cfg): Likewise.
32677 * data-streamer.h (streamer_write_gcov_count,
32678 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
32679 * gimple-streamer-in.c: Include value-prof.h
32680 (input_gimple_stmt): Input histograms.
32681 (input_bb): Update profile streaming.
32683 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
32685 * genmodes.c (emit_max_int): New function.
32686 (emit_insn_modes_h): Added call to emit_max_function.
32687 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
32689 * machmode.def: Fixed comment.
32691 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
32693 * combine.c (try_combine): Removed useless assert.
32694 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
32696 2013-03-28 Marek Polacek <polacek@redhat.com>
32697 Richard Biener <rguenther@suse.de>
32699 PR tree-optimization/56695
32700 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
32701 build signed result of a vector comparison.
32702 * tree-cfg.c (verify_gimple_comparison): Check that a result
32703 of a vector comparison has signed type.
32705 2013-03-28 Richard Biener <rguenther@suse.de>
32707 PR tree-optimization/37021
32708 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
32709 do not restrict gaps between groups.
32710 * tree-vect-stmts.c (vectorizable_load): Properly account for
32711 a gap between groups.
32713 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
32715 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
32716 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
32719 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
32721 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
32722 * doc/extend.texi (Named Address Spaces): Ditto.
32723 (Variable Attributes): Ditto.
32725 2013-03-27 Kai Tietz <ktietz@redhat.com>
32727 * config.build: Add support for cygwin x64 target.
32728 * config.gcc: Likewise.
32729 * config.host: Likewise.
32730 * configure.ac: Likewise
32731 * configure: Regenerated.
32733 2013-03-27 Kai Tietz <ktietz@redhat.com>
32735 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
32736 * config/i386/t-cygwin-w64: New file.
32737 * config/i386/cygwin-w64.h: New file.
32738 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
32739 and add support for x64-cygwin target.
32740 (CPP_SPEC): Likewise.
32741 (CXX_WRAP_SPEC_LIST): Undefine before define.
32742 (LIBGCJ_SONAME): Use 15 as version.
32744 2013-03-27 Richard Biener <rguenther@suse.de>
32746 PR tree-optimization/56716
32747 * tree-ssa-structalias.c (perform_var_substitution): Adjust
32748 dumping for ref nodes.
32750 2013-03-27 Martin Jambor <mjambor@suse.cz>
32752 PR tree-optimization/55334
32753 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
32754 restricted pointers to arrays.
32756 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
32758 * Makefile.in (.SUFFIXES): Add .cc.
32759 (.c.o): Apply same recipe for implicit rule .cc.o.
32761 2013-03-27 Richard Biener <rguenther@suse.de>
32763 PR tree-optimization/37021
32764 * tree-vect-data-refs.c (vect_check_strided_load): Allow
32765 REALPART/IMAGPART_EXPRs around the supported refs.
32766 * tree-ssa-structalias.c (find_func_aliases): Assume that
32767 floating-point values are not used to transfer pointers.
32769 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
32771 * target.def (TARGET_HAS_IFUNC_P): New target hook.
32772 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
32773 * doc/tm.texi: Regenerate.
32774 * targhooks.h (default_has_ifunc_p): New.
32775 * targhooks.c (default_has_ifunc_p): Ditto.
32776 * config/linux-protos.h: New file.
32777 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
32778 hook for linux which disables support of indirect functions in android.
32779 * config/linux-android.c: New file.
32780 * config/t-linux-android.c: Ditto.
32781 * config.gcc: Added new object file linux-android.o.
32782 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
32783 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
32784 * varasm.c (do_assemble_alias): Likewise.
32785 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
32786 doesn't support indirect functions.
32787 * configure: Regenerate.
32789 2013-03-27 Bin Cheng <bin.cheng@arm.com>
32792 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
32793 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
32796 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32798 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
32800 2013-03-27 Terry Guo <terry.guo@arm.com>
32802 * config/arm/arm-cores.def: Added core cortex-r7.
32803 * config/arm/arm-tune.md: Regenerated.
32804 * config/arm/arm-tables.opt: Regenerated.
32805 * doc/invoke.texi: Added entry for core cortex-r7.
32807 2013-03-27 Walter Lee <walt@tilera.com>
32809 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
32810 double-decrement of next_scratch_regno.
32812 2013-03-27 Walter Lee <walt@tilera.com>
32814 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
32816 (insn_v1mulus): Ditto.
32817 (insn_v2muls): Ditto.
32819 2013-03-27 Walter Lee <walt@tilera.com>
32821 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
32822 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
32824 2013-03-27 Walter Lee <walt@tilera.com>
32826 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
32827 (*sibcall_value): Ditto.
32829 2013-03-27 Walter Lee <walt@tilera.com>
32831 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
32832 (insn_mnz_v8qi): ... this ...
32833 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
32835 (insn_v<n>mnz): Replaced by ...
32836 (insn_v1mnz): ... this ...
32837 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
32839 (insn_mz_<mode>): Replaced by ...
32840 (insn_mz_v8qi): ... this ...
32841 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
32843 (insn_v<n>mz): Replaced by ...
32844 (insn_v1mz): ... this ...
32845 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
32848 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
32850 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
32852 2013-03-26 Roland McGrath <mcgrathr@google.com>
32854 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
32855 than fprintf with a non-constant, non-format string.
32857 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
32859 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
32860 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
32861 operand 0 predicate.
32862 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
32863 attribute. Use general_x64nomem_operand as operand 1 predicate.
32864 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
32865 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
32866 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
32867 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
32868 (mov<mode>_insv_1): Remove expander. Merge insn with
32869 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
32870 Use general_x64nomem_operand as operand 1 predicate.
32871 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
32872 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
32873 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
32874 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
32875 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
32876 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
32877 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
32878 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
32879 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
32880 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
32881 (general_x64nomem_operand): Ditto.
32883 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
32885 * config/rtems.opt: Add -pthread option.
32887 2013-03-26 Richard Biener <rguenther@suse.de>
32889 * alias.c (find_base_term): Avoid redundant and not used recursion.
32890 (base_alias_check): Get the initial base term from the caller.
32891 (true_dependence_1): Compute and pass base terms to base_alias_check.
32892 (write_dependence_p): Likewise.
32893 (may_alias_p): Likewise.
32895 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
32897 * config/aarch64/aarch64.c (aarch64_classify_address): Support
32898 PC-relative load in SI modes and above only.
32900 2013-03-26 Xinyu Qi <xyqi@marvell.com>
32902 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
32903 * config/arm/iwmmxt.md (WCGR0): Update.
32904 (WCGR1, WCGR2, WCGR3): Likewise.
32906 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
32908 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
32909 Use x64 and nox64 isa attributes.
32911 2013-03-26 Richard Biener <rguenther@suse.de>
32913 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
32914 alignment computations and rely on get_object_alignment_1
32915 for the !TYPE_P case.
32916 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
32918 2013-03-26 Walter Lee <walt@tilera.com>
32920 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
32921 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
32923 2013-03-25 Jeff Law <law@redhat.com>
32925 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
32926 check for INTEGRAL_TYPE_P that was missing due to checking in
32927 wrong version of prior patch.
32929 2013-03-25 Walter Lee <walt@tilera.com>
32931 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
32932 TILEGX_INSN_SHUFFLEBYTES1.
32933 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
32935 (tilegx_builtins): Ditto.
32936 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
32938 2013-03-25 Walter Lee <walt@tilera.com>
32940 * config/tilegx/tilegx.md (floatsisf2): New pattern.
32941 (floatunssisf2): New pattern.
32942 (floatsidf2): New pattern.
32943 (floatunssidf2): New pattern.
32945 2013-03-25 Walter Lee <walt@tilera.com>
32947 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
32948 tests for constraint J, K, N, P.
32950 2013-03-25 Walter Lee <walt@tilera.com>
32952 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
32953 Use indirect/pcrel encoding.
32954 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
32957 2013-03-25 Steve Ellcey <sellcey@mips.com>
32959 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
32960 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
32961 * config/mips/mips.c (mips_option_override): Set IMADD default.
32962 * config/mips/mips.h (PTF_AVOID_IMADD): New.
32963 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
32964 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
32965 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
32966 * doc/invoke.texi (-mimadd/-mno-imadd): New.
32968 2013-03-25 Jeff Law <law@redhat.com>
32970 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
32971 slightly to avoid creating and folding useless trees. Simplify
32972 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
32974 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
32976 * config/i386/i386.md (*zero_extendsidi2): Merge with
32977 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
32978 * config/i386/predicates.md (x86_64_zext_operand): Rename from
32979 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
32980 targets. Clarify comment.
32982 2013-03-25 Martin Jambor <mjambor@suse.cz>
32984 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
32985 pass-through jump functions differently.
32986 (ipa_read_jump_function): Likewise. Also use setter functions to set
32989 2013-03-25 Martin Jambor <mjambor@suse.cz>
32991 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
32992 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
32994 (ipa_get_indirect_edge_target): New function.
32995 (devirtualization_time_bonus): New parameter known_aggs, pass it to
32996 ipa_get_indirect_edge_target. Update all callers.
32997 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
32998 ipa_get_indirect_edge_target_1 instead of calling
32999 ipa_get_indirect_edge_target.
33000 (create_specialized_node): Pass aggvlas to
33001 ipcp_discover_new_direct_edges.
33003 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33005 * config/arm/arm.md (f_sels, f_seld): New types.
33006 (*cmov<mode>): New pattern.
33007 * config/arm/predicates.md (arm_vsel_comparison_operator): New
33010 2013-03-25 Kai Tietz <ktietz@redhat.com>
33012 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
33013 POSIX-printf for mingw-hosted builds.
33015 2013-03-25 Richard Biener <rguenther@suse.de>
33017 PR middle-end/56694
33018 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
33019 must-not-throw stmt location.
33021 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33023 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
33024 Emit load-acquire versions when acq is true.
33025 (arm_emit_store_exclusive): Add rel parameter.
33026 Emit store-release versions when rel is true.
33027 (arm_split_compare_and_swap): Use acquire-release instructions
33029 of barriers when appropriate.
33030 (arm_split_atomic_op): Likewise.
33031 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
33032 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
33033 (VUNSPEC_SLX): Likewise.
33034 (VUNSPEC_LDA): Likewise.
33035 (VUNSPEC_STL): Likewise.
33036 * config/arm/sync.md (atomic_load<mode>): New pattern.
33037 (atomic_store<mode>): Likewise.
33038 (arm_load_acquire_exclusive<mode>): Likewise.
33039 (arm_load_acquire_exclusivesi): Likewise.
33040 (arm_load_acquire_exclusivedi): Likewise.
33041 (arm_store_release_exclusive<mode>): Likewise.
33043 2013-03-25 Catherine Moore <clm@codesourcery.com>
33045 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
33046 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
33047 * config/mip/predicates.md (lwsp_swsp_operand,
33048 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
33049 sb16_operand, db4_operand, db7_operand, ib3_operand,
33050 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
33051 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
33052 andi16_operand): New predicates.
33053 * config/mips/mips.md (compression): New attribute.
33054 (enabled): New attribute.
33055 (length): Consider compression in computing length.
33056 (shift_compression): New code attribute.
33057 (*add<mode>3): New operands. Record compression.
33058 (sub<mode>3): Likewise.
33059 (one_cmpl<mode>2): Likewise.
33060 (*and<mode>3): Likewise.
33061 (*ior<mode>3): Likewise.
33062 (unnamed pattern for xor): Likewise.
33063 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
33064 (*<optab><mode>3): Likewise.
33065 (*mov<mode>_internal: Likewise.
33066 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
33067 (mips_unsigned_immediate_p): New.
33068 (umips_lwsp_swsp_address_p): New.
33069 (m16_based_address_p): New.
33070 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
33071 (mips_unsigned_immediate_p): New prototype.
33072 (lwsp_swsp_address_p): New prototype.
33073 (m16_based_address_p): New prototype.
33074 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
33075 (mips_signed_immediate_p): New function.
33076 (m16_based_address_p): New function.
33077 (lwsp_swsp_address_p): New function.
33078 (mips_print_operand_punctuation): Recognize short delay slot insns
33079 for microMIPS.add<mode>3"
33081 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33084 * config/arm/iterators.md (v_cmp_result): New mode attribute.
33085 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
33087 2013-03-25 Richard Biener <rguenther@suse.de>
33089 PR tree-optimization/56689
33090 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
33093 2013-03-25 Richard Biener <rguenther@suse.de>
33095 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
33097 (memory_references): Likewise.
33098 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
33099 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
33100 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
33101 (gather_mem_refs_in_loops): Fold into ...
33102 (analyze_memory_references): ... this. Move initialization
33103 to tree_ssa_lim_initialize.
33104 (fill_always_executed_in): Rename to ...
33105 (fill_always_executed_in_1): ... this.
33106 (fill_always_executed_in): Move contains_call computation to
33107 this new function from ...
33108 (tree_ssa_lim_initialize): ... here.
33109 (tree_ssa_lim): Call fill_always_executed_in.
33111 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
33113 * postreload.c (reload_combine): Fix code detecting returns.
33115 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
33117 * function.c (emit_use_return_register_into_block): On cc0 targets,
33118 do not emit the sequence between cc0 setter and user.
33120 2013-03-25 Kai Tietz <ktietz@redhat.com>
33122 * config/i386/predicates.md (local_symbolic_operand): Interpret
33123 dll-imported symbols as none-local.
33125 2013-03-25 Richard Biener <rguenther@suse.de>
33127 * tree-ssa-loop-im.c (struct depend): Remove.
33128 (struct lim_aux_data): Make depends a vec of gimples.
33129 (free_lim_aux_data): Adjust.
33130 (add_dependency): Likewise.
33131 (set_level): Likewise.
33133 2013-03-25 Richard Biener <rguenther@suse.de>
33135 PR middle-end/56434
33136 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
33137 the pointer returned by calls with ECF_MALLOC set.
33139 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
33141 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
33143 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
33145 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
33146 using MMXMODE mode iterator.
33147 (*move<mode>_internal): Merge with *movv2sf_internal and
33148 *movv2sf_internal_rex64 using MMXMODE mode iterator.
33150 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
33152 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
33153 (record_last_mem_set_info): Likewise.
33155 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
33156 of XNEWVEC followed by memset.
33157 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
33159 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
33161 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
33162 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
33163 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
33164 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
33165 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
33166 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
33167 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
33168 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
33169 BARRIER_P instead of GET_CODE.
33171 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
33173 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
33174 inaccuracy in the probing code.
33176 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
33177 (ctrapdi4): Likewise.
33179 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
33181 * calls.c (expand_call): Add missing guard to code handling return
33182 of non-BLKmode structures in MSB.
33183 * function.c (expand_function_end): Likewise.
33185 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
33187 * combine.c (try_combine): Adjust comment. Do not add the set of
33188 insn #0 if the destination indirectly is set or dies in insn #2.
33189 Tidy up code to distribute a new note.
33191 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
33193 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
33194 also for alternatives 16 and 17.
33196 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
33198 * config/i386/sse.md (*mov<mode>_internal): Merge with
33199 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
33200 Emit insn template depending on type attribute. Use
33201 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
33202 movd instead of movq mnemonic for interunit moves. Rewrite mode
33203 attribute calculation. Remove unit attribute calculation.
33204 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
33205 Set prefix_data16 attribute for DImode ssemov types.
33206 Use Ym instead of y for SSE-MMX conversion alternatives.
33207 Reorder operand constraints.
33209 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
33211 * df.h (df_insn_delete): Adjust prototype.
33212 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
33213 and let it decide whether mark the basic block dirty.
33214 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
33215 * df-scan.c (df_insn_info_delete): New helper function, split
33216 off from df_insn_delete.
33217 (df_scan_free_bb_info): Use it.
33218 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
33220 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
33221 that the insn is actually an insn and it has a non-NULL basic block.
33222 Do not mark basic block dirty if only deleting a DEBUG_INSN.
33224 2013-03-22 Richard Biener <rguenther@suse.de>
33226 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
33228 (mem_ref_alloc): Do not allocate them.
33229 (refs_independent_p): Do not query or maintain a cache.
33231 2013-03-22 Richard Biener <rguenther@suse.de>
33233 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
33234 (gather_mem_refs_in_loops): Do not compute it.
33235 (analyze_memory_references): Do not allocate it.
33236 (tree_ssa_lim_finalize): Do not free it.
33237 (for_all_locs_in_loop): Do not query all_refs_in_loop.
33239 2013-03-22 Richard Biener <rguenther@suse.de>
33241 * is-a.h (as_a): Use gcc_checking_assert.
33243 2013-03-22 Ian Bolton <ian.bolton@arm.com>
33245 * config/aarch64/aarch64.c (aarch64_print_operand): New
33246 format specifier for printing a constant in hex.
33247 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
33248 format specifier for printing second operand.
33250 2013-03-22 Richard Biener <rguenther@suse.de>
33252 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
33254 (gather_mem_refs_in_loops): Perform store accumulation here.
33255 (create_vop_ref_mapping_loop): Remove.
33256 (create_vop_ref_mapping): Likewise.
33257 (analyze_memory_references): Initialize refs_stored_in_loop.
33258 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
33259 (record_indep_loop): Remove.
33260 (record_dep_loop): New function.
33261 (ref_indep_loop_p_1): Adjust to only walk over references
33262 in the loop, not its subloops.
33263 (ref_indep_loop_p): Rename to ...
33264 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
33265 maintaining a more fine-grained cache.
33266 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
33267 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
33269 2013-03-22 Richard Biener <rguenther@suse.de>
33271 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
33272 (struct mem_ref): Make accesses_in_loop a vec of a vec of
33273 aggregate mem_ref_loc.
33274 (free_mem_ref_locs): Inline into ...
33275 (memref_free): ... this and adjust.
33276 (mem_ref_alloc): Adjust.
33277 (mem_ref_locs_alloc): Remove.
33278 (record_mem_ref_loc): Adjust.
33279 (get_all_locs_in_loop): Rewrite into ...
33280 (for_all_locs_in_loop): ... this iterator.
33281 (rewrite_mem_ref_loc): New functor.
33282 (rewrite_mem_refs): Use for_all_locs_in_loop.
33283 (sm_set_flag_if_changed): New functor.
33284 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
33285 (ref_always_accessed): New functor.
33286 (ref_always_accessed_p): Use for_all_locs_in_loop.
33288 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
33290 * tree-pass.h (PROP_gimple_lvec): New.
33291 * passes.c (dump_properties): Handle PROP_gimple_lvec.
33292 (init_optimization_passes): Move pass_lower_vector.
33293 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
33295 (pass_lower_vector): Provide PROP_gimple_lvec.
33296 (pass_lower_vector_ssa): Likewise.
33297 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
33299 2013-03-21 Mark Wielaard <mjw@redhat.com>
33301 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
33303 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
33305 * config/i386/i386.md (*movdi_internal): Disparage slightly
33306 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
33307 conversion alternatives.
33309 2013-03-21 Jakub Jelinek <jakub@redhat.com>
33311 PR middle-end/48087
33312 * diagnostic.def (DK_WERROR): New kind.
33313 * diagnostic.h (werrorcount): Define.
33314 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
33315 promoted to DK_ERROR, increment DK_WERROR counter instead of
33317 * toplev.c (toplev_main): Call print_ignored_options even if
33318 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
33319 even if just werrorcount is non-zero.
33322 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
33324 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
33325 (string_cst_pool_decl): New function.
33326 (optimize_one_addr_into_implicit_ptr): New function.
33327 (resolve_addr_in_expr): Optimize DWARF location expression
33328 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
33329 which doesn't live in memory, but has DW_AT_location or
33330 DW_AT_const_value, or refers to a string literal, into
33331 DW_OP_GNU_implicit_pointer.
33332 (optimize_location_into_implicit_ptr): New function.
33333 (resolve_addr): If removing DW_AT_location of a variable because
33334 it was DW_OP_addr of address of the variable, but the variable doesn't
33335 live in memory, try to emit const value attribute for the initializer.
33337 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
33339 * tree.h (VECTOR_TYPE_P): New macro.
33340 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
33341 TYPE_MODE): Use it.
33342 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
33343 VEC_COND_EXPR cannot be lvalues.
33344 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
33346 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
33348 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
33349 Restrict the transformation to equal modes.
33351 2013-03-21 Richard Biener <rguenther@suse.de>
33353 PR tree-optimization/39326
33354 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
33355 (MEM_ANALYZABLE): Adjust.
33356 (record_mem_ref_loc): Move bitmap ops ...
33357 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
33358 unanalyzable refs, do not record locations for it.
33359 (analyze_memory_references): Allocate ref zero as shared
33361 (refs_independent_p): Do not test for unanalyzed mems here.
33362 (ref_indep_loop_p_1): Special-case disambiguation against
33363 the unanalyzed ref.
33364 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
33366 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
33368 * config/arm/arm-protos.h (tune_params): Add
33369 prefer_neon_for_64bits field.
33370 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
33371 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
33372 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
33373 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
33374 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
33375 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
33376 (arm_option_override): Handle -mneon-for-64bits new option.
33377 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
33378 (prefer_neon_for_64bits): Declare new variable.
33379 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
33380 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
33381 (arch_enabled): Handle new arch types. Remove support for onlya8
33383 (one_cmpldi2): Use new arch names.
33384 (zero_extend<mode>di2, extend<mode>di2): Ditto.
33385 * config/arm/arm.opt (mneon-for-64bits): Add option.
33386 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
33387 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
33388 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
33390 * doc/invoke.texi (-mneon-for-64bits): Document.
33392 2013-03-21 Richard Biener <rguenther@suse.de>
33394 PR tree-optimization/39326
33395 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
33396 (sort_bbs_in_loop_postorder_cmp): New function.
33397 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
33399 2013-03-21 Richard Biener <rguenther@suse.de>
33401 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
33402 (vect_insert_into_interleaving_chain): Likewise.
33403 (vect_drs_dependent_in_basic_block): Inline ...
33404 (vect_slp_analyze_data_ref_dependence): ... here. New function,
33406 (vect_analyze_data_ref_dependence): ... here. Simplify.
33407 (vect_check_interleaving): Simplify.
33408 (vect_analyze_data_ref_dependences): Likewise. Split out ...
33409 (vect_slp_analyze_data_ref_dependences): ... this new function.
33410 (dr_group_sort_cmp): New function.
33411 (vect_analyze_data_ref_accesses): Compute data-reference groups
33412 here instead of in vect_analyze_data_ref_dependence. Use
33413 a more efficient algorithm.
33414 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
33415 vect_slp_analyze_data_ref_dependences. Call
33416 vect_analyze_data_ref_accesses earlier.
33417 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
33418 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
33419 (vect_slp_analyze_data_ref_dependences): New prototype.
33421 2013-03-21 Richard Biener <rguenther@suse.de>
33423 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
33424 ref is stored in the loop.
33425 (find_refs_for_sm): Walk only over all stores.
33426 (store_motion_loop): Allocate from lim_bitmap_obstack.
33427 (store_motion): Likewise.
33429 2013-03-21 Richard Biener <rguenther@suse.de>
33431 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
33432 Update virtual SSA form.
33434 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33436 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
33437 * configure: Regenerate.
33438 * config.in: Regenerate.
33439 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
33440 if !HAVE_LD_EH_FRAME_CIEV3.
33442 2013-03-21 Richard Biener <rguenther@suse.de>
33444 * tree-cfg.c (verify_expr_no_block): New function.
33445 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
33446 nor DECL_VALUE_EXPR have locations with associated blocks.
33447 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
33448 (clear_unused_block_pointer): Remove code dealing with
33449 blocks in DECL_DEBUG_EXPR locations.
33451 2013-03-21 Richard Biener <rguenther@suse.de>
33453 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
33454 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
33455 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
33456 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
33457 instead of DECL_DEBUG_EXPR_IS_FROM.
33458 * gimplify.c (gimplify_modify_expr): Likewise.
33459 * tree-cfg.c (verify_expr_location_1): Likewise.
33460 * tree-complex.c (create_one_component_var): Likewise.
33461 * tree-sra.c (create_access_replacement): Likewise.
33462 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
33463 (clear_unused_block_pointer): Likewise.
33464 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
33465 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
33466 * var-tracking.c (var_debug_decl): Likewise.
33467 (track_expr_p): Likewise.
33468 * tree-inline.c (add_local_variables): Likewise. Set
33469 DECL_HAS_DEBUG_EXPR_P after copying it.
33470 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
33471 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
33473 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
33476 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
33477 * configure: Regenerate.
33478 * config.in: Regenerate.
33479 * config/i386/i386.md (*movdf_internal): Use
33480 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
33481 movd instead of movq mnemonic for interunit moves.
33482 (*movdi_internal): Ditto.
33484 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
33486 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
33487 (abd<mode>_3): New pattern.
33488 (aba<mode>_3): New pattern.
33489 (fabd<mode>_3): New pattern.
33491 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
33493 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
33494 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
33495 occurrence of REGISTER_PREFIX as its empty string.
33497 2013-03-20 Jeff Law <law@redhat.com>
33499 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
33500 addititional equivalences for equality comparisons between an SSA_NAME
33501 and a constant where the SSA_NAME was set from a widening conversion.
33503 2013-03-20 Walter Lee <walt@tilera.com>
33505 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
33507 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
33509 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
33510 depending on type attribute.
33511 (*movti_internal): Ditto.
33512 (*movtf_internal): Ditto.
33513 (*movxf_internal): Ditto.
33514 (*movdf_internal): Ditto.
33515 (*movsf_internal): Ditto.
33517 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
33519 * config/i386/i386.md (*movti_internal): Set prefix attribute to
33520 maybe_vex for sselog1 and ssemov types.
33521 (*movdi_internal): Reorder operand constraints.
33522 (*movsi_internal): Ditto. Set prefix attribute to
33523 maybe_vex for sselog1 and ssemov types.
33524 (*movtf_internal): Set prefix attribute to maybe_vex
33525 for sselog1 and ssemov types.
33526 (*movdf_internal): Ditto. Set prefix_data16 attribute for
33527 DImode ssemov types. Reorder operand constraints.
33528 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
33529 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
33530 attribute for SImode ssemov types. Reorder operand constraints.
33532 2013-03-20 Martin Jambor <mjambor@suse.cz>
33534 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
33535 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
33537 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
33539 * config/rs6000/predicates.md (indexed_address, update_address_mem
33540 update_indexed_address_mem): New predicates.
33541 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
33542 attribute for load/store instructions.
33543 * config/rs6000/dfp.md (movsd_store): Likewise.
33544 (movsd_load): Likewise.
33545 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
33546 (unnamed HI->DI extend define_insn): Likewise.
33547 (unnamed SI->DI extend define_insn): Likewise.
33548 (unnamed QI->SI extend define_insn): Likewise.
33549 (unnamed QI->HI extend define_insn): Likewise.
33550 (unnamed HI->SI extend define_insn): Likewise.
33551 (unnamed HI->SI extend define_insn): Likewise.
33552 (extendsfdf2_fpr): Likewise.
33553 (movsi_internal1): Likewise.
33554 (movsi_internal1_single): Likewise.
33555 (movhi_internal): Likewise.
33556 (movqi_internal): Likewise.
33557 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
33558 attribute for load/store instructions.
33559 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
33561 (mov<mode>_softfloat): Likewise.
33562 (mov<mode>_hardfloat32): Likewise.
33563 (mov<mode>_hardfloat64): Likewise.
33564 (mov<mode>_softfloat64): Likewise.
33565 (movdi_internal32): Likewise.
33566 (movdi_internal64): Likewise.
33567 (probe_stack_<mode>): Likewise.
33569 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
33571 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
33572 floating point, and decimal floating point to reload iterator.
33574 * config/rs6000/constraints.md (wl constraint): New constraints to
33575 return FLOAT_REGS if certain options are used to reduce the number
33576 of separate patterns that exist in the file.
33577 (wx constraint): Likewise.
33578 (wz constraint): Likewise.
33580 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
33581 -mdebug=reg, print wg, wl, wx, and wz constraints.
33582 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
33583 Initialize the reload functions for 64-bit binary/decimal floating
33585 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
33586 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
33587 create the buffer on the stack to overcome not having a 32-bit
33589 (rs6000_emit_move): Likewise.
33590 (rs6000_secondary_memory_needed_rtx): Likewise.
33591 (rs6000_alloc_sdmode_stack_slot): Likewise.
33592 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
33593 via xxlxor, just like DFmode 0.0.
33595 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
33596 define as 1 if we are running on a power7 or newer.
33597 (enum r6000_reg_class_enum): Add new constraints.
33599 * config/rs6000/dfp.md (movsd): Delete, combine with binary
33600 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
33601 with other moves by using conditional constraits (wg). Use LFIWZX
33602 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
33603 (movsd splitter): Likewise.
33604 (movsd_hardfloat): Likewise.
33605 (movsd_softfloat): Likewise.
33607 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
33608 binary and decimal floating point moves.
33609 (fmove_ok): New attributes to combine binary and decimal floating
33610 point moves, and to combine power6x (mfpgpr) moves along normal
33612 (real_value_to_target): Likewise.
33613 (f32_lr): Likewise.
33614 (f32_lm): Likewise.
33615 (f32_li): Likewise.
33616 (f32_sr): Likewise.
33617 (f32_sm): Likewise.
33618 (f32_si): Likewise.
33619 (movsf): Combine binary and decimal floating point moves. Combine
33620 power6x (mfpgpr) moves with other moves by using conditional
33621 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
33622 (mov<mode> for SFmode/SDmode); Likewise.
33623 (SFmode/SDmode splitters): Likewise.
33624 (movsf_hardfloat): Likewise.
33625 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
33626 (movsf_softfloat): Likewise.
33627 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
33629 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
33630 wx and wz constraints.
33632 * config/rs6000/constraints.md (wg constraint): New constraint to
33633 return FLOAT_REGS if -mmfpgpr (power6x) was used.
33635 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
33638 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
33639 -mdebug=reg, print wg, wl, wx, and wz constraints.
33640 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
33641 Initialize the reload functions for 64-bit binary/decimal floating
33643 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
33644 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
33645 create the buffer on the stack to overcome not having a 32-bit
33647 (rs6000_emit_move): Likewise.
33648 (rs6000_secondary_memory_needed_rtx): Likewise.
33649 (rs6000_alloc_sdmode_stack_slot): Likewise.
33650 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
33651 via xxlxor, just like DFmode 0.0.
33653 * config/rs6000/dfp.md (movdd): Delete, combine with binary
33654 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
33655 with other moves by using conditional constraits (wg). Use LFIWZX
33656 and STFIWX for loading SDmode on power7.
33657 (movdd splitters): Likewise.
33658 (movdd_hardfloat32): Likewise.
33659 (movdd_softfloat32): Likewise.
33660 (movdd_hardfloat64_mfpgpr): Likewise.
33661 (movdd_hardfloat64): Likewise.
33662 (movdd_softfloat64): Likewise.
33664 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
33665 64-bit binary and decimal floating point moves.
33666 (FMOVE64X): Likewise.
33667 (movdf): Combine 64-bit binary and decimal floating point moves.
33668 Combine power6x (mfpgpr) moves with other moves by using
33669 conditional constraits (wg).
33670 (mov<mode> for DFmode/DDmode): Likewise.
33671 (DFmode/DDmode splitters): Likewise.
33672 (movdf_hardfloat32): Likewise.
33673 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
33674 (movdf_softfloat32): Likewise.
33675 (movdf_hardfloat64_mfpgpr): Likewise.
33676 (movdf_hardfloat64): Likewise.
33677 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
33678 (movdf_softfloat64): Likewise.
33679 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
33680 (reload_<mode>_load): Move to later in the file so they aren't in
33681 the middle of the floating point move insns.
33682 (reload_<mode>_store): Likewise.
33684 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
33687 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
33688 constraint if -mdebug=reg.
33689 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
33690 Enable using dd reload support if needed.
33692 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
33693 binary and decimal floating point moves in rs6000.md.
33694 (movtd_internal): Likewise.
33696 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
33697 decimal floating point moves.
33699 (movtf_internal): Likewise.
33700 (mov<mode>_internal, TDmode/TFmode): Likewise.
33701 (movtf_softfloat): Likewise.
33702 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
33704 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
33705 movdi_internal64, using wg constraint for move direct operations.
33706 (movdi_internal64): Likewise.
33708 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
33709 MODES_TIEABLE_P for selected modes. Print the numerical value of
33710 the various virtual registers. Use GPR/FPR first/last values,
33711 instead of hard coding the register numbers. Print which modes
33712 have reload functions registered.
33713 (rs6000_option_override_internal): If -mdebug=reg, trace the options
33714 settings before/after setting cpu, target and subtarget settings.
33715 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
33716 and for secondary reload failures in rs6000_secondary_reload_inner.
33717 (rs6000_secondary_reload_fail): Likewise.
33718 (rs6000_secondary_reload_inner): Likewise.
33720 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
33721 macros for first/last GPR and FPR registers.
33722 (LAST_GPR_REGNO): Likewise.
33723 (FIRST_FPR_REGNO): Likewise.
33724 (LAST_FPR_REGNO): Likewise.
33726 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
33727 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
33728 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
33729 (vcond<mode><mode>): Likewise.
33730 (vcondu<mode><mode>): Likewise.
33731 (vector_gtu<mode>): Likewise.
33732 (vector_gte<mode>): Likewise.
33733 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
33734 to prevent the compiler from converting DImode operations to TImode.
33735 (ior<mode>3): Likewise.
33736 (and<mode>3): Likewise.
33737 (one_cmpl<mode>2): Likewise.
33738 (nor<mode>3): Likewise.
33739 (andc<mode>3): Likewise.
33741 * config/rs6000/constraints.md (wt constraint): New constraint
33742 that returns VSX_REGS if TImode is allowed in VSX registers.
33744 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
33745 constant under VSX.
33747 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
33748 similar to TImode, but it is restricted to being in the GPRs.
33750 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
33751 TImode to occupy a single VSX register.
33753 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
33754 -mvsx-timode for power7/power8.
33755 (power7 cpu): Likewise.
33756 (power8 cpu): Likewise.
33758 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
33759 sure that TFmode/TDmode take up two registers if they are ever
33760 allowed in the upper VSX registers.
33761 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
33763 (rs6000_init_hard_regno_mode_ok): Likewise.
33764 (rs6000_debug_reg_global): Add debugging for PTImode and wt
33765 constraint. Print if LRA is turned on.
33766 (rs6000_option_override_internal): Give an error if -mvsx-timode
33767 and VSX is not enabled.
33768 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
33769 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
33770 to reg+offset addressing. Use PTImode when checking offset
33771 addresses for validity.
33772 (reg_offset_addressing_ok_p): Likewise.
33773 (rs6000_legitimate_offset_address_p): Likewise.
33774 (rs6000_legitimize_address): Likewise.
33775 (rs6000_legitimize_reload_address): Likewise.
33776 (rs6000_legitimate_address_p): Likewise.
33777 (rs6000_eliminate_indexed_memrefs): Likewise.
33778 (rs6000_emit_move): Likewise.
33779 (rs6000_secondary_reload): Likewise.
33780 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
33781 reloads to fpr registers to continue to use reg+offset addressing,
33782 but 64-bit reloads to altivec registers need reg+reg addressing.
33783 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
33784 it. Treat LO_SUM like a PLUS operation.
33785 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
33786 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
33787 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
33788 registers to share a register with a smaller sized type, since VSX
33789 puts scalars in the upper 64-bits.
33790 (print_operand): Add support for PTImode.
33791 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
33792 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
33793 registers, but don't have arithmetic support.
33794 (rs6000_memory_move_cost): Add test for VSX.
33795 (rs6000_opt_masks): Add -mvsx-timode.
33797 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
33800 (VSr): Use wt constraint for TImode.
33801 (VSv): Drop TImode support.
33802 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
33803 (vsx_movti_64bit): Likewise.
33804 (vsx_movti_32bit): Likewise.
33805 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
33806 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
33807 one '?' on the appropriate output constraint. Do not allow TImode
33808 logical operations on 32-bit systems.
33809 (vsx_ior<mode>3): Likewise.
33810 (vsx_xor<mode>3): Likewise.
33811 (vsx_one_cmpl<mode>2): Likewise.
33812 (vsx_nor<mode>3): Likewise.
33813 (vsx_andc<mode>3): Likewise.
33814 (vsx_concat_<mode>): Likewise.
33815 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
33817 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
33818 OPTION_MASK_VSX_TIMODE.
33819 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
33820 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
33822 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
33823 (TI2 iterator): New iterator for TImode, PTImode.
33824 (wd mode attribute): Add values for vector types.
33825 (movti_string): Replace TI move operations with operations for TImode
33826 and PTImode. Add support for TImode being allowed in VSX registers.
33827 (mov<mode>_string, TImode/PTImode): Likewise.
33828 (movti_ppc64): Likewise.
33829 (mov<mode>_ppc64, TImode/PTImode): Likewise.
33830 (TI mode splitters): Likewise.
33832 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
33835 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
33837 PR tree-optimization/56355
33838 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
33839 Also handle integers with undefined overflow.
33841 2013-03-20 Catherine Moore <clm@codesourcery.com>
33842 Maciej W. Rozycki <macro@codesourcery.com>
33843 Tom de Vries <tom@codesourcery.com>
33844 Nathan Sidwell <nathan@codesourcery.com>
33845 Iain Sandoe <iain@codesourcery.com>
33846 Nathan Froyd <froydnj@codesourcery.com>
33847 Chao-ying Fu <fu@mips.com>
33849 * doc/extend.texi: (micromips, nomicromips, nocompression):
33850 Document new function attributes.
33851 * doc/invoke.texi (minterlink-compressed, mmicromips,
33852 m14k, m14ke, m14kec): Document new options.
33853 (minterlink-mips16): Update documentation.
33854 * doc/md.texi (ZC, ZD): Document new constraints.
33855 * configure.ac (gcc_cv_as_micromips): Check if linker
33856 supports the .set micromips directive.
33857 * configure: Regenerate.
33858 * config.in: Regenerate.
33859 * config/mips/mips-tables.opt: Regenerate.
33860 * config/mips/micromips.md: New file.
33861 * constraints.md (ZC, ZD): New constraints.
33862 * config/mips/predicates.md (movep_src_register): New predicate.
33863 (movep_src_operand): New predicate.
33864 (non_volatile_mem_operand): New predicate.
33865 * config/mips/mips.md (multimem): New type.
33866 (length): Differentiate between 17-bit and 18-bit branch offsets.
33867 (MOVEP1, MOVEP2): New mode iterator.
33868 (mov_<load>l): Use ZC constraint.
33869 (mov_<load>r): Likewise.
33870 (mov_<store>l): Likewise.
33871 (mov_<store>r): Likewise.
33872 (*branch_equality<mode>_inverted): Add microMIPS support.
33873 (*branch_equality<mode>): Likewise.
33874 (*jump_absolute): Likewise.
33875 (indirect_jump_<mode>): Likewise.
33876 (tablejump_<mode>): Likewise.
33877 (<optab>_internal): Likewise.
33878 (sibcall_internal): Likewise.
33879 (sibcall_value_internal): Likewise.
33880 (prefetch): Use constraint ZD.
33881 * config/mips/mips.opt (minterlink-compressed): New option.
33882 (minterlink-mips16): Now an alias for minterlink-compressed.
33883 (mmicromips): New option.
33884 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
33885 (compare_and_swap_12): Likewise.
33886 (sync_add<mode>): Likewise.
33887 (sync_<optab>_12): Likewise.
33888 (sync_old_<optab>_12): Likewise.
33889 (sync_new_<optab>_12): Likewise.
33890 (sync_nand_12): Likewise.
33891 (sync_old_nand_12): Likewise.
33892 (sync_new_nand_12): Likewise.
33893 (sync_sub<mode>): Likewise.
33894 (sync_old_add<mode>): Likewise.
33895 (sync_old_sub<mode>): Likewise.
33896 (sync_new_add<mode>): Likewise.
33897 (sync_new_sub<mode>): Likewise.
33898 (sync_<optab><mode>): Likewise.
33899 (sync_old_<optab><mode>): Likewise.
33900 (sync_new_<optab><mode>): Likewise.
33901 (sync_nand<mode>): Likewise.
33902 (sync_old_nand<mode>): Likewise.
33903 (sync_new_nand<mode>): Likewise.
33904 (sync_lock_test_and_set<mode>): Likewise.
33905 (test_and_set_12): Likewise.
33906 (atomic_compare_and_swap<mode>): Likewise.
33907 (atomic_exchange<mode>_llsc): Likewise.
33908 (atomic_fetch_add<mode>_llsc): Likewise.
33909 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
33910 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
33911 (umips_save_restore_pattern_p): Likewise.
33912 (umips_load_store_pair_p): Likewise.
33913 (umips_output_load_store_pair): Likewise.
33914 (umips_movep_target_p): Likewise.
33915 (umips_12bit_offset_address_p): Likewise.
33916 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
33917 (mips_base_mips16): Rename this...
33918 (mips_base_compression_flags): ...to this. Update all uses.
33919 (mips_attribute_table): Add micromips, nomicromips and nocompression.
33920 (mips_mips16_decl_p): Delete.
33921 (mips_nomips16_decl_p): Delete.
33922 (mips_get_compress_on_flags): New function.
33923 (mips_get_compress_off_flags): New function.
33924 (mips_get_compress_mode): New function.
33925 (mips_get_compress_on_name): New function.
33926 (mips_get_compress_off_name): New function.
33927 (mips_insert_attributes): Support multiple compression types.
33928 (mips_merge_decl_attributes): Likewise.
33929 (umips_12bit_offset_address_p): New function.
33930 (mips_start_function_definition): Emit .set micromips directive.
33931 (mips_call_may_need_jalx_p): New function.
33932 (mips_function_ok_for_sibcall): Add microMIPS support.
33933 (mips_print_operand_punctuation): Support short delay slots and
33935 (umips_swm_mask, umips_swm_encoding): New.
33936 (umips_build_save_restore): New function.
33937 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
33938 (was_mips16_p): Remove.
33939 (old_compression_mode): New.
33940 (mips_set_compression_mode): New function.
33941 (mips_set_current_function): Add microMIPS support.
33942 (mips_option_override): Likewise.
33943 (umips_save_restore_pattern_p): New function.
33944 (umips_output_save_restore): New function.
33945 (umips_load_store_pair_p_1): New function.
33946 (umips_load_store_pair_p): New function.
33947 (umips_output_load_store_pair_1): New function.
33948 (umips_output_load_store_pair): New function.
33949 (umips_movep_target_p) New function.
33950 (mips_prepare_pch_save): Add microMIPS support.
33951 * config/mips/mips.h (TARGET_COMPRESSION): New.
33952 (TARGET_CPU_CPP_BUILTINS): Update macro
33953 to use new compression flags and to support microMIPS.
33954 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
33955 (MIPS_ARCH_FLOAT_SPEC): Likewise.
33956 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
33957 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
33958 (ASM_SPEC): Support mmicromips and mno-micromips.
33959 (M16STORE_REG_P): New macro.
33960 (MIPS_CALL): Support TARGET_MICROMIPS.
33961 (MICROMIPS_J): New macro.
33962 (mips_base_mips16): Rename this...
33963 (mips_base_compression_flags): ...to this.
33964 (UMIPS_12BIT_OFFSET_P): New macro.
33965 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
33966 (MULTILIB_DIRNAMES): Likewise.
33967 2013-03-20 Richard Biener <rguenther@suse.de>
33969 PR tree-optimization/56661
33970 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
33971 the result does not have to be distinct.
33973 2013-03-20 Richard Biener <rguenther@suse.de>
33975 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
33978 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33979 Steven Bosscher <steven@gcc.gnu.org>
33981 PR rtl-optimization/56605
33982 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
33984 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
33987 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
33988 that require movd instead of movq.
33990 2013-03-20 Richard Biener <rguenther@suse.de>
33992 * tree-ssa-structalias.c (struct variable_info): Add pointer
33993 to the first field of an aggregate with sub-vars. Make
33994 this and the pointer to the next subfield its ID.
33995 (vi_next): New function.
33996 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
33997 storedanything_id, integer_id): Increment by one.
33998 (new_var_info, get_call_vi, lookup_call_clobber_vi,
33999 get_call_clobber_vi): Adjust.
34000 (solution_set_expand): Simplify and speedup.
34001 (solution_set_add): Inline into ...
34002 (set_union_with_increment): ... this. Adjust accordingly.
34003 (do_sd_constraint): Likewise.
34004 (do_ds_constraint): Likewise.
34005 (do_complex_constraint): Simplify.
34006 (build_pred_graph): Adjust.
34007 (solve_graph): Likewise. Simplify and speedup.
34008 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
34009 get_constraint_for_component_ref, get_constraint_for_1,
34010 first_vi_for_offset, first_or_preceding_vi_for_offset,
34011 create_function_info_for, create_variable_info_for_1,
34012 create_variable_info_for, intra_create_variable_infos): Adjust.
34013 (init_base_vars): Push NULL for ID zero.
34014 (compute_points_to_sets): Adjust.
34016 2013-03-20 Richard Biener <rguenther@suse.de>
34018 * cfgloop.c (verify_loop_structure): Streamline and avoid
34019 ICEing on corrupt loop tree.
34020 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
34023 2013-03-20 Richard Biener <rguenther@suse.de>
34025 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
34026 check whether an SSA update is needed.
34028 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
34030 * config/mips/constraints.md (T): Rename to...
34034 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
34035 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
34037 2013-03-19 Ian Bolton <ian.bolton@arm.com>
34039 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
34040 (*subsi3_carryin_uxtw): Likewise.
34042 2013-03-19 Ian Bolton <ian.bolton@arm.com>
34044 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
34045 (*rorsi3_insn_uxtw): Likewise.
34047 2013-03-19 Ian Bolton <ian.bolton@arm.com>
34049 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
34050 (*extrsi5_insn_uxtw): Likewise.
34052 2013-03-19 Richard Biener <rguenther@suse.de>
34054 PR tree-optimization/56273
34055 * passes.c (init_optimization_passes): Move second VRP after DOM.
34057 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
34059 * config/i386/i386.md (*movti_internal): Merge from
34060 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
34061 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
34062 nox64 isa attributes.
34064 2013-03-18 Richard Biener <rguenther@suse.de>
34066 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
34068 (merge_node_constraints): Likewise.
34069 (build_succ_graph): Likewise.
34070 (valid_graph_edge): Inline into single caller.
34071 (unify_nodes): Likewise. Use bitmap_set_bit return value
34073 (scc_visit): Fix formatting and variable use.
34074 (do_sd_constraint): Use gcc_checking_assert.
34075 (do_ds_constraint): Likewise.
34076 (do_complex_constraint): Likewise.
34077 (condense_visit): Likewise. Cleanup.
34078 (dump_pred_graph): New function.
34079 (perform_var_substitution): Dump the pred-graph before
34080 variable substitution.
34081 (find_equivalent_node): Use gcc_checking_assert.
34082 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
34084 2013-03-18 Richard Biener <rguenther@suse.de>
34086 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
34087 Remove cond_expr_stmt_list argument and do not gimplify the
34089 (vect_loop_versioning): Adjust.
34090 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
34091 Cleanup to use less temporaries.
34092 (vect_create_data_ref_ptr): Cleanup.
34094 2013-03-18 Jakub Jelinek <jakub@redhat.com>
34096 PR tree-optimization/56635
34097 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
34098 require types_compatible_p types.
34100 2013-03-18 Nick Clifton <nickc@redhat.com>
34102 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
34103 spurious backslash.
34105 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
34106 Add missing line to comment describing function.
34108 2013-03-18 Richard Biener <rguenther@suse.de>
34110 PR tree-optimization/56210
34111 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
34112 Handle string / character search functions.
34113 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
34115 2013-03-18 Richard Biener <rguenther@suse.de>
34117 PR middle-end/56483
34118 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
34119 and implement properly.
34120 * gimple.h (gimple_cond_single_var_p): Remove.
34122 2013-03-18 Richard Biener <rguenther@suse.de>
34124 * tree-data-ref.h (find_data_references_in_loop): Declare.
34125 * tree-data-ref.c (get_references_in_stmt): Use a stack
34126 vector pre-allocated in the callers.
34127 (find_data_references_in_stmt): Adjust.
34128 (graphite_find_data_references_in_stmt): Likewise.
34129 (create_rdg_vertices): Likewise.
34130 (find_data_references_in_loop): Export.
34131 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
34132 Compute dependences here...
34133 (vect_analyze_data_refs): ...not here. When we encounter
34134 a non-vectorizable data reference in basic-block vectorization
34135 truncate the data reference vector. Do not bother to
34136 fixup data-dependence information for gather loads.
34137 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
34138 of data references, as reported.
34140 2013-03-18 Richard Biener <rguenther@suse.de>
34142 PR tree-optimization/3713
34143 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
34144 has_constants and expr.
34145 (stmt_has_constants): Properly valueize SSA names when deciding
34146 whether the stmt has constants.
34148 2013-03-18 Richard Biener <rguenther@suse.de>
34150 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
34151 whole function when there is nothing to do.
34152 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
34153 * tree-vectorizer.c (vectorize_loops): Update virtual and
34154 loop-closed SSA once.
34155 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
34157 2013-03-18 Richard Biener <rguenther@suse.de>
34159 PR middle-end/56113
34160 * domwalk.c (bb_postorder): New global static.
34161 (cmp_bb_postorder): New function.
34162 (walk_dominator_tree): Replace scheme imposing an order for
34163 visiting dominator sons by one sorting them at the time they
34164 are pushed on the stack.
34166 2013-03-18 Richard Biener <rguenther@suse.de>
34168 PR tree-optimization/39326
34169 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
34170 (struct mem_ref): Replace mem member with ao_ref typed member.
34171 (MEM_ANALYZABLE): Adjust.
34172 (memref_eq): Likewise.
34173 (mem_ref_alloc): Likewise.
34174 (gather_mem_refs_stmt): Likewise.
34175 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
34176 (execute_sm_if_changed_flag_set): Adjust.
34177 (execute_sm): Likewise.
34178 (ref_always_accessed_p): Likewise.
34179 (refs_independent_p): Likewise.
34180 (can_sm_ref_p): Likewise.
34182 2013-03-18 Jakub Jelinek <jakub@redhat.com>
34185 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
34186 return 1 even for !unsignedp.
34188 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
34190 * config/i386/i386.md (isa): Add x64 and nox64.
34191 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
34192 (*pushtf): Enable *roF alternative for x64 isa only.
34193 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
34194 mode attribute of integer alternatives to DImode for TARGET_64BIT.
34195 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
34196 (*movtf_internal): Merge from *movtf_internal_rex64 and
34197 *movtf_internal_sse. Use x64 and nox64 isa attributes.
34198 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
34199 nox64 isa attributes.
34200 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
34201 nox64 isa attributes.
34202 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
34204 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
34206 * config/alpha/alpha.c (TARGET_LRA_P): New define.
34208 2013-03-17 Jakub Jelinek <jakub@redhat.com>
34211 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
34212 class names. Remove trailing comma after "ALL_REGS".
34214 2013-03-16 Jan Hubicka <jh@suse.cz>
34216 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
34217 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
34218 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
34219 of cgraph_get_create_node.
34220 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
34222 2013-03-16 Jason Merrill <jason@redhat.com>
34225 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
34226 with DW_AT_default_value.
34228 2013-03-16 Jakub Jelinek <jakub@redhat.com>
34230 * BASE-VER: Set to 4.9.0.
34232 2013-03-14 Andi Kleen <ak@linux.intel.com>
34235 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
34236 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
34237 Document _x* TSX intrinsics.
34239 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
34240 David Holsgrove <david.holsgrove@xilinx.com>
34242 * configure.ac: Add MicroBlaze TLS support detection.
34243 * configure: Regenerate.
34244 * config/microblaze/microblaze-protos.h
34245 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
34246 symbol_mentioned_p, label_mentioned_p): Add prototypes.
34247 * config/microblaze/microblaze.c (microblaze_address_type): Add
34248 ADDRESS_TLS and tls_reloc address types.
34249 (microblaze_address_info): Add tls_reloc.
34250 (TARGET_HAVE_TLS): Define.
34251 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
34252 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
34253 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
34254 load_tls_operand, microblaze_call_tls_get_addr,
34255 microblaze_legitimize_tls_address): New functions.
34256 (microblaze_classify_unspec): Handle UNSPEC_TLS.
34257 (get_base_reg): Use microblaze_tls_symbol_p.
34258 (microblaze_classify_address): Handle TLS.
34259 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
34260 label_mentioned_p and microblaze_tls_referenced_p.
34261 (microblaze_legitimize_address): Handle TLS.
34262 (microblaze_address_insns): Handle ADDRESS_TLS.
34263 (pic_address_needs_scratch): Handle TLS.
34264 (print_operand_address): Handle TLS.
34265 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
34266 (microblaze_expand_move): Handle TLS.
34267 (microblaze_legitimate_constant_p): Check
34268 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
34269 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
34270 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
34271 (PIC_OFFSET_TABLE_REGNUM): Set.
34272 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
34273 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
34274 (addsi3, movsi_internal2, movdf_internal): Update constraints
34275 * config/microblaze/predicates.md (arith_plus_operand): Define
34276 (move_operand): Redefine as move_src_operand,
34277 check microblaze_tls_referenced_p.
34279 2013-03-14 Ian Bolton <ian.bolton@arm.com>
34281 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
34282 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
34284 2013-03-14 Ian Bolton <ian.bolton@arm.com>
34286 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
34289 2013-03-14 Jakub Jelinek <jakub@redhat.com>
34291 PR tree-optimization/53265
34292 * common.opt (Waggressive-loop-optimizations): New option.
34293 * tree-ssa-loop-niter.c: Include tree-pass.h.
34294 (do_warn_aggressive_loop_optimizations): New function.
34295 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
34296 if number_of_latch_executions returned constant.
34297 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
34298 early. If number_of_latch_executions returned constant, set
34299 nb_iterations_upper_bound back to it.
34300 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
34302 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
34303 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
34305 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
34306 (MULTILIB_OSDIRNAMES): Set.
34307 * genmultilib: If defaultosdirname doesn't start with :: , set
34308 defaultosdirname2 instead, clear it and emit two . multilib_raw
34309 entries instead of just one.
34311 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
34313 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
34314 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
34315 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
34316 (SUBTARGET_OVERRIDE_OPTIONS): New.
34318 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
34321 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
34322 (musermode): Convert to Var(TARGET_USERMODE).
34323 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
34324 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
34325 * config/sh/sh.c (sh_option_override): Use
34326 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
34327 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
34329 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
34331 (udivsi3_i4_single, divsi3_i4_single): Use
34332 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
34334 2013-03-13 Dave Korn <dave.korn.cygwin@gmail.com>
34336 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
34339 2013-03-13 Richard Biener <rguenther@suse.de>
34341 PR tree-optimization/56608
34342 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
34343 calls when vectorizing basic-blocks.
34345 2013-03-13 Jakub Jelinek <jakub@redhat.com>
34348 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
34351 2013-03-12 Jakub Jelinek <jakub@redhat.com>
34353 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
34355 2013-03-11 Jan Hubicka <jh@suse.cz>
34358 * lto-streamer-out.c (output_symbol_p): Skip references from
34359 constructors of external variables.
34361 2013-03-11 Jan Hubicka <jh@suse.cz>
34363 PR middle-end/56571
34364 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
34366 * emit-rtl.c (verify_rtx_sharing): Likewise.
34367 (copy_insn_1): Likewise.
34368 * rtl.c (copy_rtx): Likewise.
34370 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
34373 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
34374 output_operand_lossage message.
34376 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
34379 * arm.c (shift_op): Validate RTL pattern on the fly.
34380 (arm_print_operand, case 'S'): Don't use shift_operator to validate
34383 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34386 * config/pa/pa.md (call_value): Check for calls to powf and direct to
34387 new call patterns that clobber %fr12.
34388 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
34389 split and postreload patterns.
34390 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
34391 registers %fr12 and %fr12R as call used.
34393 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
34395 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
34396 (canon_address, record_store, replace_read, check_mem_read_rtx,
34397 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
34398 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
34399 rest_of_handle_dse): Likewise.
34401 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
34403 PR middle-end/56524
34404 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
34406 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
34407 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
34408 (save_optabs_if_changed): Replace with...
34409 (init_tree_optimization_optabs): ...this.
34410 * optabs.c (save_optabs_if_changed): Rename to...
34411 (init_tree_optimization_optabs): ...this. Take the optimization node
34412 as argument. Do nothing if the base optabs are already correct.
34413 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
34414 to recompute optabs.
34415 * function.h (function): Remove optabs field.
34416 * function.c (invoke_set_current_function_hook): Call
34417 init_tree_optimization_optabs. Use the result to initialize
34420 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
34422 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
34423 if GTMA_HAS_NO_INSTRUMENTATION.
34424 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
34425 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
34426 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
34427 * gimple-pretty-print.c (dump_gimple_transaction): Handle
34428 GTMA_HAS_NO_INSTRUMENTATION.
34430 2013-03-08 Jakub Jelinek <jakub@redhat.com>
34432 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
34435 2013-03-08 Marek Polacek <polacek@redhat.com>
34436 Jakub Jelinek <jakub@redhat.com>
34438 PR tree-optimization/56478
34439 * predict.c (is_comparison_with_loop_invariant_p): Change the
34440 type of loop_step to tree.
34441 (predict_loops): Adjust.
34442 (predict_iv_comparison): Perform the computations on double_ints.
34444 2013-03-08 Richard Biener <rguenther@suse.de>
34446 PR tree-optimization/56570
34447 * tree-cfg.c (verify_expr_location_1): Verify locations for
34449 * tree-sra.c (create_access_replacement): Strip locations
34450 from DECL_DEBUG_EXPRs.
34452 2013-03-08 Richard Biener <rguenther@suse.de>
34454 * tree-inline.c (expand_call_inline): Do not associate
34455 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
34456 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
34458 2013-03-08 Richard Biener <rguenther@suse.de>
34460 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
34461 or block changes with -Og. Fix for location / block encoding
34462 changes and PHI arguments with locations.
34464 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
34466 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
34468 (struct output_info): Likewise.
34469 (register_overhead): Remove bad gcc_assert.
34470 (bitmap_find_bit): If there is only a single bitmap element, do not
34471 count a miss as a search.
34472 (print_statistics): Update for counter type changes.
34473 (dump_bitmap_statistics): Likewise. Print headers such that they
34474 are properly lined up with the printed counters.
34476 2013-03-07 Jakub Jelinek <jakub@redhat.com>
34478 PR tree-optimization/56559
34479 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
34480 check that it has only a single use.
34482 2013-03-07 Richard Biener <rguenther@suse.de>
34484 * doc/invoke.texi (fwhole-program): Discourage use in combination
34487 2013-03-06 Jakub Jelinek <jakub@redhat.com>
34489 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
34491 PR tree-optimization/56539
34492 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
34493 instead of GSI_CONTINUE_LINKING as last argument to
34494 force_gimple_operand_gsi. Adjust function comment.
34496 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
34499 PR middle-end/56548
34500 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
34501 promoted mode, convert the result back to the original mode.
34503 2013-03-06 Richard Biener <rguenther@suse.de>
34505 PR middle-end/56294
34506 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
34507 (insert_updated_phi_nodes_compare_uids): New function.
34508 (update_ssa): Sort symbols_to_rename after UID before
34509 traversing it to insert PHI nodes.
34511 2013-03-06 Richard Biener <rguenther@suse.de>
34513 PR middle-end/50494
34514 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
34515 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
34518 2013-02-13 Richard Biener <rguenther@suse.de>
34521 * varasm.c (output_constant_def_1): Get the decl representing
34522 the constant as argument.
34523 (output_constant_def): Wrap output_constant_def_1.
34524 (make_decl_rtl): Use output_constant_def_1 with the decl
34525 representing the constant.
34526 (build_constant_desc): Optionally re-use a decl already
34527 representing the constant.
34528 (tree_output_constant_def): Adjust.
34530 2013-03-06 Joey Ye <joey.ye@arm.com>
34533 * gcc.c (convert_white_space): New function.
34534 (main): Handles white space in function name.
34536 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
34539 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
34540 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
34541 to SH_DIV_CALL_TABLE for TARGET_SH2.
34542 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
34544 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
34545 call-table options.
34547 2013-03-05 Sterling Augustine <saugustine@google.com>
34548 Cary Coutant <ccoutant@google.com>
34551 * dwarf2out.c (resolve_addr): Don't call
34552 remove_loc_list_addr_table_entries a second time for the same
34555 2013-03-05 Jakub Jelinek <jakub@redhat.com>
34558 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
34559 (avoid_complex_debug_insns): New function.
34560 (expand_debug_locations): Call it.
34562 PR rtl-optimization/56484
34563 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
34564 lifetimes of hard registers on small register class machines.
34566 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
34568 * config/microblaze/microblaze-protos.h: Rename
34569 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
34570 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
34572 (microblaze_fast_interrupt_function_p): New function.
34573 (microblaze_is_interrupt_handler): Rename to
34574 microblaze_is_interrupt_variant and add fast_interrupt check.
34575 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
34576 (save_restore_insns): Likewise.
34577 (compute_frame_size): Likewise.
34578 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
34579 (microblaze_globalize_label): Likewise.
34580 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
34581 * config/microblaze/microblaze.md: Use wrapper
34582 microblaze_is_interrupt_variant.
34584 2013-03-05 Kai Tietz <ktietz@redhat.com>
34586 * sdbout.c (sdbout_one_type): Switch to current function's section
34587 supporting cold/hot.
34589 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
34591 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
34594 2013-03-05 Jakub Jelinek <jakub@redhat.com>
34596 PR middle-end/56461
34597 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
34598 if VALGRIND_GET_VBITS is defined, temporarily make object
34599 memory all defined, and restore previous valgrind addressability
34600 and definability afterwards. Free this_object at the end.
34602 PR middle-end/56461
34603 * lra.c (lra): Call lra_clear_live_ranges if live_p,
34604 right before calling lra_create_live_ranges, also call it
34605 when clearing live_p. Only call lra_clear_live_ranges
34606 at the end if live_p.
34608 PR middle-end/56461
34609 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
34611 2013-03-05 Richard Biener <rguenther@suse.de>
34613 PR tree-optimization/56521
34614 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
34617 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
34620 * except.h (remove_unreachable_eh_regions): New prototype.
34621 * except.c (remove_eh_handler_splicer): New function, split out
34622 of remove_eh_handler.
34623 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
34624 warning about running it on many EH regions one at a time.
34625 (remove_unreachable_eh_regions_worker): New function, walk the
34626 EH tree in depth-first order and remove non-marked regions.
34627 (remove_unreachable_eh_regions): New function.
34628 * tree-eh.c (mark_reachable_handlers): New function, split out
34629 from remove_unreachable_handlers.
34630 (remove_unreachable_handlers): Use mark_reachable_handlers and
34631 remove_unreachable_eh_regions.
34632 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
34633 and remove_unreachable_eh_regions.
34635 2013-03-05 Richard Biener <rguenther@suse.de>
34637 PR middle-end/56525
34638 * loop-init.c (fix_loop_structure): Remove loops in two stages,
34639 not freeing them until the end.
34641 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34643 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
34645 2013-03-05 Richard Biener <rguenther@suse.de>
34647 PR tree-optimization/56270
34648 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
34649 of loads after scheduling an SLP instance.
34651 2013-03-05 Jakub Jelinek <jakub@redhat.com>
34653 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
34655 (check_gcc_parallelize): Run guality.exp as a separate job from
34656 vect.exp with unsorted.exp and $(dg_target_exps) separately from
34657 struct-layout-1.exp with stackalign.exp.
34659 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
34661 PR middle-end/56461
34662 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
34663 load_index sbitmap even if some bit in it isn't set.
34665 PR middle-end/56461
34666 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
34667 (discover_iteration_bound_by_body_walk): Change queues to
34668 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
34669 spelling in comment. Call safe_push on queues[bound_index] directly.
34670 Release queues[queue_index] in every iteration unconditionally.
34671 Release bounds vector.
34673 PR middle-end/56461
34674 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
34675 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
34676 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
34679 2013-03-05 Richard Biener <rguenther@suse.de>
34682 * tree-inline.c (remap_blocks_to_null): New function.
34683 (expand_call_inline): When expanding a call stmt without
34684 an associated block inline remap all callee blocks to NULL.
34686 2013-03-05 Jakub Jelinek <jakub@redhat.com>
34688 PR rtl-optimization/56494
34689 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
34690 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
34691 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
34693 PR middle-end/56461
34694 * sel-sched-ir.c (free_sched_pools): Release
34695 succs_info_pool.stack[succs_info_pool.max_top] vectors too
34696 if succs_info_pool.max_top isn't -1.
34699 * opts.c (opts_obstack, opts_concat): Moved to...
34700 * opts-common.c (opts_obstack, opts_concat): ... here.
34702 2013-03-04 Jakub Jelinek <jakub@redhat.com>
34704 PR middle-end/56461
34705 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
34707 2013-03-04 Martin Jambor <mjambor@suse.cz>
34709 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
34710 all appropriate places.
34712 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
34714 PR tree-optimization/56424
34715 * ipa-split.c (split_function): Do not set the RSO flag if result is
34716 not by reference and its type is a register type.
34718 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
34720 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
34721 (microblaze_legitimate_pic_operand): Likewise
34722 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
34723 new function microblaze_legitimate_pic_operand
34724 * config/microblaze/microblaze-protos.h
34725 (microblaze_legitimate_pic_operand): Declare.
34727 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34729 * config/microblaze/predicates.md (call_insn_simple_operand):
34730 New predicate for supported rtx code types.
34731 * config/microblaze/microblaze.md (call_internal1): Use
34732 call_insn_simple_operand predicate.
34734 2013-03-04 Jakub Jelinek <jakub@redhat.com>
34736 PR middle-end/56461
34737 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
34738 partitions.ordered_remove.
34740 PR middle-end/56461
34741 * tree-vect-stmts.c (vectorizable_conversion): Don't call
34742 vec_oprnds0.create (1) for modifier == NONE.
34744 PR middle-end/56461
34745 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
34746 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
34747 vec_oprnds1 right before pushing anything to it for
34750 PR middle-end/56461
34751 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
34752 set nbbs to 0 instead of having separate code path.
34753 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
34754 instead of false as last argument if returning NULL.
34756 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
34758 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
34759 the attribute is now called "target" instead of "option".
34760 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
34761 * doc/tm.texi.in (Target Attributes): Likewise document the correct
34762 attribute/pragma name for TARGET_OPTION_VALID_P and
34763 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
34764 * doc/tm.texi: Regenerated.
34766 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
34768 * config/microblaze/microblaze.c:
34769 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
34770 * config/microblaze/microblaze.h: Add -mxl-reorder to
34772 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
34773 instructions emitted if TARGET_REORDER.
34774 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
34775 or 0 for -m/-mno case, but initialises as 2 to detect default use case
34778 2013-03-01 Xinliang David Li <davidxl@google.com>
34780 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
34783 2013-03-01 Jakub Jelinek <jakub@redhat.com>
34785 PR middle-end/56461
34786 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
34787 vector even when returning true. Fix up function comment formatting.
34789 PR middle-end/56461
34790 * ira-build.c (ira_loop_nodes_count): New variable.
34791 (create_loop_tree_nodes): Initialize it.
34792 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
34794 PR middle-end/56461
34795 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
34796 method on dr_chain and result_chain.
34797 * tree-vect-stmts.c (vectorizable_store): Only call
34798 result_chain.create if j == 0.
34800 PR middle-end/56461
34801 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
34802 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
34803 before overwriting it.
34805 2013-03-01 Tobias Burnus <burnus@net-b.de>
34807 * doc/extended.texi (C Extensions): Change order in @menu
34809 (Other MIPS Built-in Functions): Move last MIPS entry before
34810 "picoChip Built-in Functions".
34811 (SH Built-in Functions): Move after RX Built-in Functions.
34812 * doc/gcc.texi (Introduction): Change order in @menu
34814 * doc/md.texi (Constraints): Ditto.
34815 * gty.texi (Type Information): Ditto.
34816 (User-provided marking routines for template types): Make
34818 * doc/invoke.texi (AArch64 Options): Move before
34819 "Adapteva Epiphany Options".
34821 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
34822 Jakub Jelinek <jakub@redhat.com>
34825 * asan.c (gate_asan): Lookup no_sanitize_address instead of
34826 no_address_safety_analysis attribute.
34827 * doc/extend.texi (no_address_safety_attribute): Rename to
34828 no_sanitize_address attribute, mention no_address_safety_analysis
34829 attribute as deprecated alias.
34831 2013-02-28 Jakub Jelinek <jakub@redhat.com>
34833 PR middle-end/56461
34834 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
34835 type to vec<vec<tree> > *.
34836 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
34837 to be vec<tree> instead of vec<tree> *, set vec_defs
34838 to vNULL and call vec_defs.create (number_of_vects), adjust other
34840 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
34841 vectorizable_condition): Adjust vect_get_slp_defs callers.
34843 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
34845 * config/aarch64/aarch64.c
34846 (aarch64_float_const_representable): Remove unused variable.
34848 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
34850 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
34852 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
34854 * config/aarch64/aarch64-builtins.c
34855 (aarch64_init_simd_builtins): Make static.
34857 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
34859 * config/aarch64/aarch64.c
34860 (aarch64_simd_make_constant): Make static.
34862 2013-02-28 Martin Jambor <mjambor@suse.cz>
34864 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
34865 with no initialization to the RHS of debug statements.
34867 2013-02-28 Martin Jambor <mjambor@suse.cz>
34869 PR tree-optimization/56294
34870 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
34872 (get_access_replacement): Do not call create_access_replacement.
34873 Assert a replacement exists.
34874 (get_repl_default_def_ssa_name): Create the replacement declaration
34877 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34879 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
34880 final_end_function.
34882 2013-02-28 Marek Polacek <polacek@redhat.com>
34884 PR rtl-optimization/56466
34885 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
34886 if we're changing a loop.
34887 (peel_loops_completely): Likewise.
34889 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
34892 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
34894 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
34897 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
34898 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
34899 INTX_FTYPE_FX, FX_FTYPE_INTX.
34900 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
34902 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
34904 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
34905 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
34906 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
34907 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
34908 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
34909 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
34910 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
34911 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
34912 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
34913 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
34914 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
34915 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
34916 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
34917 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
34918 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
34919 (avrxmega6): Increase max flash segments from 5 to 6.
34920 * config/avr/t-multilib: Regenerate.
34921 * config/avr/avr-tables.opt: Regenerate.
34922 * doc/avr-mmcu.texi: Regenerate.
34924 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
34926 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
34927 (avr_device_to_arch): Rename to avr_device_to_ld.
34928 (avr_device_to_as): New prototype.
34929 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
34930 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
34931 * config/avr/driver-avr.c (avr_device_to_as): New.
34932 (avr_device_to_arch): Rename to avr_device_to_ld.
34934 2013-02-27 Jakub Jelinek <jakub@redhat.com>
34936 PR middle-end/56461
34937 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
34938 method on dr_chain and result_chain.
34940 PR middle-end/56461
34941 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
34942 pointer_set_destroy on not_executed_last_iteration.
34944 PR middle-end/56461
34945 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
34947 PR middle-end/56461
34948 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
34949 FOR_EACH_DEFINED_FUNCTION when freeing state.
34951 PR middle-end/56461
34952 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
34954 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
34957 PR middle-end/56461
34958 * ipa-cp.c (decide_whether_version_node): Call vec_free on
34959 known_aggs[i].items and release known_aggs vector.
34961 PR middle-end/56461
34962 * ipa-reference.c (propagate): Free node_info even for alias nodes.
34964 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34966 * config/microblaze/microblaze.c (microblaze_emit_compare):
34967 Use xor for EQ/NE comparisions.
34968 * config/microblaze/microblaze.md (cstoresf4): Add constraints
34969 (cbranchsf4): Adjust operator to comparison_operator.
34971 2013-02-27 Jakub Jelinek <jakub@redhat.com>
34973 PR middle-end/56461
34974 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
34976 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
34977 vec_safe_push, always update *slot.
34978 (redirect_edge_var_map_clear): Use vec_free.
34979 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
34980 (free_var_map_entry): Use vec_free.
34981 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
34982 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
34984 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
34986 PR middle-end/45472
34987 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
34988 when the may_trap_p bit of the exprs being merged differs.
34989 Reorder tests for speculativeness in the logical and operator.
34991 2013-02-27 Jakub Jelinek <jakub@redhat.com>
34993 * incpath.c (add_standard_paths): Use reconcat instead of concat
34994 where appropriate and avoid leaking memory.
34996 * opts.h: Include obstack.h.
34997 (opts_concat): New prototype.
34998 (opts_obstack): New declaration.
34999 * opts.c (opts_concat): New function.
35000 (opts_obstack): New variable.
35001 (init_options_struct): Call gcc_init_obstack on opts_obstack.
35002 (finish_options): Use opts_concat instead of concat
35003 and XOBNEWVEC instead of XNEWVEC.
35004 * opts-common.c (generate_canonical_option, decode_cmdline_option,
35005 generate_option): Likewise.
35006 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
35007 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
35010 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
35011 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
35013 2013-02-26 Jakub Jelinek <jakub@redhat.com>
35015 PR middle-end/56461
35016 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
35018 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
35020 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
35021 (arm_block_move_unaligned_straight): Likewise.
35022 (arm_adjust_block_mem): Likewise.
35024 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
35027 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
35028 temp, cond and label.
35029 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
35032 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
35033 * config/c6x/c6x.h (dbx_register_map): Update declaration.
35036 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
35037 of prologue/epilogue functions.
35040 * config/tilegx/tilegx.c (tilegx_expand_prologue):
35041 Remove unused variable cfa_offset.
35042 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
35045 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
35046 type promotion to unsigned.
35049 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
35050 for HOST_WIDE_INT of 32 bit / same size as int.
35051 (arm_block_move_unaligned_straight): Likewise.
35052 (arm_adjust_block_mem): Likewise.
35055 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
35058 2013-02-26 Marek Polacek <polacek@redhat.com>
35060 PR tree-optimization/56426
35061 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
35063 2013-02-26 Richard Biener <rguenther@suse.de>
35066 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
35067 unused variable loops.
35069 2013-02-26 Jakub Jelinek <jakub@redhat.com>
35071 PR tree-optimization/56448
35072 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
35073 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
35074 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
35075 later operands of the references, or even first operand for
35076 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
35078 PR tree-optimization/56443
35079 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
35080 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
35081 to type_for_mode langhook.
35083 2013-02-25 Matt Turner <mattst88@gmail.com>
35085 * doc/invoke.texi: Document r4700.
35087 2013-02-25 Richard Biener <rguenther@suse.de>
35089 PR tree-optimization/56175
35090 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
35092 (simplify_bitwise_binary): ... here. Also guard the conversion
35093 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
35095 2013-02-25 Catherine Moore <clm@codesourcery.com>
35098 2013-02-24 Catherine Moore <clm@codesourcery.com>
35099 Maciej W. Rozycki <macro@codesourcery.com>
35100 Tom de Vries <tom@codesourcery.com>
35101 Nathan Sidwell <nathan@codesourcery.com>
35102 Iain Sandoe <iain@codesourcery.com>
35103 Nathan Froyd <froydnj@codesourcery.com>
35104 Chao-ying Fu <fu@mips.com>
35106 * doc/extend.texi: (micromips, nomicromips, nocompression):
35107 Document new function attributes.
35108 * doc/invoke.texi (minterlink-compressed, mmicromips,
35109 m14k, m14ke, m14kec): Document new options.
35110 (minterlink-mips16): Update documentation.
35111 * doc/md.texi (ZC, ZD): Document new constraints.
35112 * configure.ac (gcc_cv_as_micromips): Check if linker
35113 supports the .set micromips directive.
35114 * configure: Regenerate.
35115 * config.in: Regenerate.
35116 * config/mips/mips-tables.opt: Regenerate.
35117 * config/mips/micromips.md: New file.
35118 * constraints.md (ZC, AD): New constraints.
35119 * config/mips/predicates.md (movep_src_register): New predicate.
35120 (movep_src_operand): New predicate.
35121 (non_volatile_mem_operand): New predicate.
35122 * config/mips/mips.md (multimem): New type.
35123 (length): Differentiate between 17-bit and 18-bit branch offsets.
35124 (MOVEP1, MOVEP2): New mode iterator.
35125 (mov_<load>l): Use ZC constraint.
35126 (mov_<load>r): Likewise.
35127 (mov_<store>l): Likewise.
35128 (mov_<store>r): Likewise.
35129 (*branch_equality<mode>_inverted): Add microMIPS support.
35130 (*branch_equality<mode>): Likewise.
35131 (*jump_absolute): Likewise.
35132 (indirect_jump_<mode>): Likewise.
35133 (tablejump_<mode>): Likewise.
35134 (<optab>_internal): Likewise.
35135 (sibcall_internal): Likewise.
35136 (sibcall_value_internal): Likewise.
35137 (prefetch): Use constraint ZD.
35138 * config/mips/mips.opt (minterlink-compressed): New option.
35139 (minterlink-mips16): Now an alias for minterlink-compressed.
35140 (mmicromips): New option.
35141 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
35142 (compare_and_swap_12): Likewise.
35143 (sync_add<mode>): Likewise.
35144 (sync_<optab>_12): Likewise.
35145 (sync_old_<optab>_12): Likewise.
35146 (sync_new_<optab>_12): Likewise.
35147 (sync_nand_12): Likewise.
35148 (sync_old_nand_12): Likewise.
35149 (sync_new_nand_12): Likewise.
35150 (sync_sub<mode>): Likewise.
35151 (sync_old_add<mode>): Likewise.
35152 (sync_old_sub<mode>): Likewise.
35153 (sync_new_add<mode>): Likewise.
35154 (sync_new_sub<mode>): Likewise.
35155 (sync_<optab><mode>): Likewise.
35156 (sync_old_<optab><mode>): Likewise.
35157 (sync_new_<optab><mode>): Likewise.
35158 (sync_nand<mode>): Likewise.
35159 (sync_old_nand<mode>): Likewise.
35160 (sync_new_nand<mode>): Likewise.
35161 (sync_lock_test_and_set<mode>): Likewise.
35162 (test_and_set_12): Likewise.
35163 (atomic_compare_and_swap<mode>): Likewise.
35164 (atomic_exchange<mode>_llsc): Likewise.
35165 (atomic_fetch_add<mode>_llsc): Likewise.
35166 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
35167 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
35168 (umips_save_restore_pattern_p): Likewise.
35169 (umips_load_store_pair_p): Likewise.
35170 (umips_output_load_store_pair): Likewise.
35171 (umips_movep_target_p): Likewise.
35172 (umips_12bit_offset_address_p): Likewise.
35173 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
35174 (mips_base_mips16): Rename this...
35175 (mips_base_compression_flags): ...to this. Update all uses.
35176 (mips_attribute_table): Add micromips, nomicromips and nocompression.
35177 (mips_mips16_decl_p): Delete.
35178 (mips_nomips16_decl_p): Delete.
35179 (mips_get_compress_on_flags): New function.
35180 (mips_get_compress_off_flags): New function.
35181 (mips_get_compress_mode): New function.
35182 (mips_get_compress_on_name): New function.
35183 (mips_get_compress_off_name): New function.
35184 (mips_insert_attributes): Support multiple compression types.
35185 (mips_merge_decl_attributes): Likewise.
35186 (umips_12bit_offset_address_p): New function.
35187 (mips_start_function_definition): Emit .set micromips directive.
35188 (mips_call_may_need_jalx_p): New function.
35189 (mips_function_ok_for_sibcall): Add microMIPS support.
35190 (mips_print_operand_punctuation): Support short delay slots and
35192 (umips_swm_mask, umips_swm_encoding): New.
35193 (umips_build_save_restore): New function.
35194 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
35195 (was_mips16_p): Remove.
35196 (old_compression_mode): New.
35197 (mips_set_compression_mode): New function.
35198 (mips_set_current_function): Add microMIPS support.
35199 (mips_option_override): Likewise.
35200 (umips_save_restore_pattern_p): New function.
35201 (umips_output_save_restore): New function.
35202 (umips_load_store_pair_p_1): New function.
35203 (umips_load_store_pair_p): New function.
35204 (umips_output_load_store_pair_1): New function.
35205 (umips_output_load_store_pair): New function.
35206 (umips_movep_target_p) New function.
35207 (mips_prepare_pch_save): Add microMIPS support.
35208 * config/mips/mips.h (TARGET_COMPRESSION): New.
35209 (TARGET_CPU_CPP_BUILTINS): Update macro
35210 to use new compression flags and to support microMIPS.
35211 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
35212 (MIPS_ARCH_FLOAT_SPEC): Likewise.
35213 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
35214 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
35215 (ASM_SPEC): Support mmicromips and mno-micromips.
35216 (M16STORE_REG_P): New macro.
35217 (MIPS_CALL): Support TARGET_MICROMIPS.
35218 (MICROMIPS_J): New macro.
35219 (mips_base_mips16): Rename this...
35220 (mips_base_compression_flags): ...to this.
35221 (UMIPS_12BIT_OFFSET_P): New macro.
35222 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
35223 (MULTILIB_DIRNAMES): Likewise.
35225 2013-02-25 Tom de Vries <tom@codesourcery.com>
35227 PR rtl-optimization/56131
35228 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
35229 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
35230 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
35232 2013-02-25 Tobias Burnus <burnus@net-b.de>
35234 * doc/invoke.texi (-fsanitize=): Move from optimization
35235 to debugging options.
35237 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
35239 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
35241 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
35242 Alexander Monakov <amonakov@ispras.ru>
35244 PR middle-end/56077
35245 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
35246 flush pending lists also on non-jumps. Adjust comment.
35248 2013-02-24 Catherine Moore <clm@codesourcery.com>
35249 Maciej W. Rozycki <macro@codesourcery.com>
35250 Tom de Vries <tom@codesourcery.com>
35251 Nathan Sidwell <nathan@codesourcery.com>
35252 Iain Sandoe <iain@codesourcery.com>
35253 Nathan Froyd <froydnj@codesourcery.com>
35254 Chao-ying Fu <fu@mips.com>
35256 * doc/extend.texi: (micromips, nomicromips, nocompression):
35257 Document new function attributes.
35258 * doc/invoke.texi (minterlink-compressed, mmicromips,
35259 m14k, m14ke, m14kec): Document new options.
35260 (minterlink-mips16): Update documentation.
35261 * doc/md.texi (ZC, ZD): Document new constraints.
35262 * configure.ac (gcc_cv_as_micromips): Check if linker
35263 supports the .set micromips directive.
35264 * configure: Regenerate.
35265 * config.in: Regenerate.
35266 * config/mips/mips-tables.opt: Regenerate.
35267 * config/mips/micromips.md: New file.
35268 * constraints.md (ZC, AD): New constraints.
35269 * config/mips/predicates.md (movep_src_register): New predicate.
35270 (movep_src_operand): New predicate.
35271 (non_volatile_mem_operand): New predicate.
35272 * config/mips/mips.md (multimem): New type.
35273 (length): Differentiate between 17-bit and 18-bit branch offsets.
35274 (MOVEP1, MOVEP2): New mode iterator.
35275 (mov_<load>l): Use ZC constraint.
35276 (mov_<load>r): Likewise.
35277 (mov_<store>l): Likewise.
35278 (mov_<store>r): Likewise.
35279 (*branch_equality<mode>_inverted): Add microMIPS support.
35280 (*branch_equality<mode>): Likewise.
35281 (*jump_absolute): Likewise.
35282 (indirect_jump_<mode>): Likewise.
35283 (tablejump_<mode>): Likewise.
35284 (<optab>_internal): Likewise.
35285 (sibcall_internal): Likewise.
35286 (sibcall_value_internal): Likewise.
35287 (prefetch): Use constraint ZD.
35288 * config/mips/mips.opt (minterlink-compressed): New option.
35289 (minterlink-mips16): Now an alias for minterlink-compressed.
35290 (mmicromips): New option.
35291 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
35292 (compare_and_swap_12): Likewise.
35293 (sync_add<mode>): Likewise.
35294 (sync_<optab>_12): Likewise.
35295 (sync_old_<optab>_12): Likewise.
35296 (sync_new_<optab>_12): Likewise.
35297 (sync_nand_12): Likewise.
35298 (sync_old_nand_12): Likewise.
35299 (sync_new_nand_12): Likewise.
35300 (sync_sub<mode>): Likewise.
35301 (sync_old_add<mode>): Likewise.
35302 (sync_old_sub<mode>): Likewise.
35303 (sync_new_add<mode>): Likewise.
35304 (sync_new_sub<mode>): Likewise.
35305 (sync_<optab><mode>): Likewise.
35306 (sync_old_<optab><mode>): Likewise.
35307 (sync_new_<optab><mode>): Likewise.
35308 (sync_nand<mode>): Likewise.
35309 (sync_old_nand<mode>): Likewise.
35310 (sync_new_nand<mode>): Likewise.
35311 (sync_lock_test_and_set<mode>): Likewise.
35312 (test_and_set_12): Likewise.
35313 (atomic_compare_and_swap<mode>): Likewise.
35314 (atomic_exchange<mode>_llsc): Likewise.
35315 (atomic_fetch_add<mode>_llsc): Likewise.
35316 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
35317 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
35318 (umips_save_restore_pattern_p): Likewise.
35319 (umips_load_store_pair_p): Likewise.
35320 (umips_output_load_store_pair): Likewise.
35321 (umips_movep_target_p): Likewise.
35322 (umips_12bit_offset_address_p): Likewise.
35323 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
35324 (mips_base_mips16): Rename this...
35325 (mips_base_compression_flags): ...to this. Update all uses.
35326 (mips_attribute_table): Add micromips, nomicromips and nocompression.
35327 (mips_mips16_decl_p): Delete.
35328 (mips_nomips16_decl_p): Delete.
35329 (mips_get_compress_on_flags): New function.
35330 (mips_get_compress_off_flags): New function.
35331 (mips_get_compress_mode): New function.
35332 (mips_get_compress_on_name): New function.
35333 (mips_get_compress_off_name): New function.
35334 (mips_insert_attributes): Support multiple compression types.
35335 (mips_merge_decl_attributes): Likewise.
35336 (umips_12bit_offset_address_p): New function.
35337 (mips_start_function_definition): Emit .set micromips directive.
35338 (mips_call_may_need_jalx_p): New function.
35339 (mips_function_ok_for_sibcall): Add microMIPS support.
35340 (mips_print_operand_punctuation): Support short delay slots and
35342 (umips_swm_mask, umips_swm_encoding): New.
35343 (umips_build_save_restore): New function.
35344 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
35345 (was_mips16_p): Remove.
35346 (old_compression_mode): New.
35347 (mips_set_compression_mode): New function.
35348 (mips_set_current_function): Add microMIPS support.
35349 (mips_option_override): Likewise.
35350 (umips_save_restore_pattern_p): New function.
35351 (umips_output_save_restore): New function.
35352 (umips_load_store_pair_p_1): New function.
35353 (umips_load_store_pair_p): New function.
35354 (umips_output_load_store_pair_1): New function.
35355 (umips_output_load_store_pair): New function.
35356 (umips_movep_target_p) New function.
35357 (mips_prepare_pch_save): Add microMIPS support.
35358 * config/mips/mips.h (TARGET_COMPRESSION): New.
35359 (TARGET_CPU_CPP_BUILTINS): Update macro
35360 to use new compression flags and to support microMIPS.
35361 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
35362 (MIPS_ARCH_FLOAT_SPEC): Likewise.
35363 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
35364 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
35365 (ASM_SPEC): Support mmicromips and mno-micromips.
35366 (M16STORE_REG_P): New macro.
35367 (MIPS_CALL): Support TARGET_MICROMIPS.
35368 (MICROMIPS_J): New macro.
35369 (mips_base_mips16): Rename this...
35370 (mips_base_compression_flags): ...to this.
35371 (UMIPS_12BIT_OFFSET_P): New macro.
35372 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
35373 (MULTILIB_DIRNAMES): Likewise.
35375 2013-02-24 Jakub Jelinek <jakub@redhat.com>
35378 * target-globals.c (save_target_globals): For init_reg_sets and
35379 target_reinit remporarily set this_fn_optabs to this_target_optabs.
35381 2013-02-22 James Greenhalgh <james.greenhalgh@arm.com>
35383 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
35384 * config/aarch64/t-aarch64
35385 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
35387 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
35389 PR inline-asm/56148
35390 * lra-constraints.c (process_alt_operands): Reload operand
35391 conflicting with earlier clobber only if no more other conflicting
35394 2013-02-22 Jakub Jelinek <jakub@redhat.com>
35397 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
35398 if not linking a shared library.
35400 2013-02-22 Seth LaForge <sethml@google.com>
35402 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
35404 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
35406 * config/arm/arm.md (split for extendsidi): Update condition.
35407 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
35408 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
35409 (qhs_zextenddi_cstr): Likewise.
35411 2013-02-21 Jakub Jelinek <jakub@redhat.com>
35413 PR middle-end/56420
35414 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
35415 avoid signed wrapping.
35416 (expand_mult): Handle properly multiplication by
35417 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
35418 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
35419 in the compiler if coeff is HOST_WIDE_INT_MIN.
35420 (expand_divmod): Don't make ext_op1 static, change it's type to
35421 uhwi. Avoid undefined behavior in -INTVAL (op1).
35423 PR rtl-optimization/50339
35424 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
35426 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
35427 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
35428 into splitting_ashiftrt field.
35429 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
35431 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
35434 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
35436 PR middle-end/56108
35437 * trans-mem.c (execute_tm_mark): Do not expand transactions that
35438 are sure to go irrevocable.
35440 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
35442 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
35443 scalars are valid operands.
35445 2013-02-21 Martin Jambor <mjambor@suse.cz>
35447 PR tree-optimization/56310
35448 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
35449 only matching indices and non-negative final offsets.
35450 (intersect_aggregates_with_edge): Pass src_idx to
35451 agg_replacements_to_vector. Pass src_idx insstead of index to
35452 intersect_with_agg_replacements.
35454 2013-02-21 Martin Jambor <mjambor@suse.cz>
35456 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
35457 instead of hard-wired defaults.
35459 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
35461 * doc/invoke.texi (MIPS Options): Update documentation of the
35462 floating-point multiply-accumulate instruction restrictions.
35464 2013-02-21 Kostya Serebryany <kcc@google.com>
35466 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
35467 asan_shadow_offset on x86_64 linux.
35469 2013-02-21 Richard Biener <rguenther@suse.de>
35471 PR tree-optimization/56415
35473 2013-02-11 Richard Biener <rguenther@suse.de>
35475 PR tree-optimization/56273
35476 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
35479 2013-02-21 Jakub Jelinek <jakub@redhat.com>
35482 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
35485 PR inline-asm/56405
35486 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
35487 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
35489 2013-02-20 Jan Hubicka <jh@suse.cz>
35491 PR tree-optimization/56265
35492 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
35493 when target is referenced for first time.
35495 2013-02-20 Richard Biener <rguenther@suse.de>
35497 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
35498 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
35499 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
35500 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
35501 not return anything.
35502 (rename_ssa_copies): Do not remove unused locals.
35503 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
35504 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
35505 * passes.c (execute_function_todo): Do not schedule unused locals
35506 removal if cleanup_tree_cfg did something.
35507 * tree-ssa-live.c (remove_unused_locals): Dump statistics
35508 about the number of removed locals.
35510 2013-02-20 Richard Biener <rguenther@suse.de>
35512 PR tree-optimization/56398
35513 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
35515 2013-02-20 Martin Jambor <mjambor@suse.cz>
35517 PR tree-optimization/55334
35518 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
35519 restricted pointers to arrays.
35521 2013-02-20 Richard Biener <rguenther@suse.de>
35522 Jakub Jelinek <jakub@redhat.com>
35524 PR tree-optimization/56396
35525 * tree-ssa-ccp.c (n_const_val): New static variable.
35526 (get_value): Return NULL for SSA names we don't have a lattice
35528 (ccp_initialize): Initialize n_const_val.
35529 * tree-ssa-copy.c (n_copy_of): New static variable.
35530 (init_copy_prop): Initialize n_copy_of.
35531 (get_value): Return NULL_TREE for SSA names we don't have a
35534 2013-02-20 Martin Jambor <mjambor@suse.cz>
35536 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
35538 2013-02-20 Richard Biener <rguenther@suse.de>
35540 * genpreds.c (write_lookup_constraint): Do not compare first
35541 letter of the constraint again.
35543 2013-02-20 Richard Biener <rguenther@suse.de>
35545 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
35547 (get_use_iv_cost): Terminate hashtable walk when coming across
35550 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
35552 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
35553 reassociation for avx2 targets.
35555 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
35557 * config/microblaze/microblaze.c: microblaze_has_clz = 0
35558 Add version check for v8.10.a to enable microblaze_has_clz
35559 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
35560 version and TARGET_PATTERN_COMPARE check
35561 * config/microblaze/microblaze.md: New clzsi2 instruction
35563 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
35565 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
35566 function before branching.
35568 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
35570 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
35572 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
35574 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
35576 PR middle-end/55889
35577 * sel-sched.c: Include ira.h.
35578 (implicit_clobber_conflict_p): New function.
35579 (moveup_expr): Use it.
35580 * Makefile.in (sel-sched.o): Depend on ira.h.
35582 2013-02-19 Richard Biener <rguenther@suse.de>
35584 PR tree-optimization/56384
35585 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
35586 (vn_hash_type): Split out from ...
35587 (vn_hash_constant_with_type): ... here.
35588 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
35589 (vn_phi_eq): Compare types from vn_phi_s structure.
35590 (vn_phi_lookup): Populate vn_phi_s type.
35591 (vn_phi_insert): Likewise.
35593 2013-02-19 Jakub Jelinek <jakub@redhat.com>
35595 PR tree-optimization/56350
35596 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
35597 if haven't found reduction or nested cycle operand, rather than
35598 asserting we must find it.
35600 PR tree-optimization/56381
35601 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
35604 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
35605 Jakub Jelinek <jakub@redhat.com>
35608 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
35609 (swap_optab_enable): Same.
35610 (init_all_optabs): Use argument instead of global.
35611 * tree.h (struct tree_optimization_option): New field target_optabs.
35612 * expr.h (init_all_optabs): Add argument to prototype.
35613 (TREE_OPTIMIZATION_OPTABS): New.
35614 (save_optabs_if_changed): Protoize.
35615 * optabs.h: Declare this_fn_optabs.
35616 * optabs.c (save_optabs_if_changed): New.
35617 Declare this_fn_optabs.
35618 (init_optabs): Add argument to init_all_optabs() call.
35619 * function.c (invoke_set_current_function_hook): Handle per
35621 * function.h (struct function): New field optabs.
35622 * config/mips/mips.c (mips_set_mips16_mode): Handle when
35623 optimization_current_node has changed.
35624 * target-globals.h (save_target_globals_default_opts): Protoize.
35625 * target-globals.c (save_target_globals_default_opts): New.
35627 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35630 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
35631 registers %fr12 and %fr12R as call used.
35634 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
35635 and HImode, require all displacements to be an integer multiple of
35637 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
35638 only allow QImode and HImode when reload is in progress and strict is
35639 true. Likewise for symbolic addresses. Use base14_operand to check
35640 displacements in REG+BASE addresses.
35642 2013-02-18 Richard Biener <rguenther@suse.de>
35644 PR tree-optimization/56366
35645 * tree-vect-loop.c (get_initial_def_for_induction): Properly
35646 handle sign-conversion of outer-loop initial induction value.
35648 2013-02-18 Richard Biener <rguenther@suse.de>
35650 PR middle-end/56349
35651 * cfghooks.c (merge_blocks): If we merge a latch into another
35652 block adjust references to it.
35653 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
35654 (verify_loop_structure): Verify that a recorded latch is in fact
35657 2013-02-18 Richard Biener <rguenther@suse.de>
35659 PR tree-optimization/56321
35660 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
35661 order SSA name release and virtual operand unlinking.
35663 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
35665 * config/microblaze/microblaze.md (save_stack_block): Define.
35666 (restore_stack_block): Likewise.
35668 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
35670 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
35671 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
35672 * config/microblaze/microblaze.c (microblaze_option_override):
35673 Bail out early for PIC modes when target does not support PIC.
35675 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
35677 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
35678 Replace with a microblaze version.
35679 (microblaze_trampoline_init): Adapt for microblaze.
35680 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
35683 2013-02-16 Jakub Jelinek <jakub@redhat.com>
35684 Dodji Seketeli <dodji@redhat.com>
35687 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
35688 (instrument_mem_region_access): Do not forget to always put
35689 instrumentation of the of 'base' and 'base + len' in a "if (len !=
35690 0) statement, even for cases where either 'base' or 'base + len'
35691 are not instrumented -- because they have been previously
35692 instrumented. Simplify the logic by putting all the statements
35693 instrument 'base + len' inside a sequence, and then insert that
35694 sequence right before the current insertion point. Then, to
35695 instrument 'base + len', just get an iterator on that statement.
35696 And do not forget to update the pointer to iterator the function
35697 received as argument.
35699 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
35701 PR rtl-optimization/56348
35702 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
35704 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
35706 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
35707 (clean_graph_dump_file): Pass base to start_graph_dump.
35709 2013-02-14 Richard Henderson <rth@redhat.com>
35712 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
35714 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
35716 * collect2-aix.h: Define F_LOADONLY.
35718 2013-02-14 Richard Biener <rguenther@suse.de>
35721 * varasm.c (output_constant_def_1): Get the decl representing
35722 the constant as argument.
35723 (output_constant_def): Wrap output_constant_def_1.
35724 (make_decl_rtl): Use output_constant_def_1 with the decl
35725 representing the constant.
35726 (build_constant_desc): Optionally re-use a decl already
35727 representing the constant.
35728 (tree_output_constant_def): Adjust.
35730 2013-02-14 Dodji Seketeli <dodji@redhat.com>
35733 * asan.c (instrument_builtin_call): Really put the length of the
35734 second source argument into src1_len.
35736 2013-02-13 Jakub Jelinek <jakub@redhat.com>
35738 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
35739 argument. If it is false, don't create edge from then_bb to
35741 (insert_if_then_before_iter): Pass true to it.
35742 (build_check_stmt): Pass false to it.
35743 (transform_statements): Flush hash table only on extended basic
35744 block boundaries, rather than at the beginning of every bb.
35745 Don't flush hash table on nonfreeing_call_p calls.
35746 * tree-flow.h (nonfreeing_call_p): New prototype.
35747 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
35749 2013-02-13 David S. Miller <davem@davemloft.net>
35751 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
35753 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
35756 * ira.c (max_regno_before_ira): Move from ...
35758 (fix_reg_equiv_init): Use max_regno_before_ira instead of
35761 2013-02-13 Jakub Jelinek <jakub@redhat.com>
35763 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
35765 2013-02-13 Richard Biener <rguenther@suse.de>
35768 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
35769 globals in MEM_REFs.
35771 2013-02-13 Richard Biener <rguenther@suse.de>
35773 * loop-init.c (loop_optimizer_init): Clear loop state when
35774 re-initializing preserved loops.
35775 * loop-unswitch.c (unswitch_single_loop): Return whether
35776 we unswitched the loop. Do not verify loop state here.
35777 (unswitch_loops): When we unswitched a loop discover new loops.
35779 2013-02-13 Kostya Serebryany <kcc@google.com>
35781 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
35783 * sanitizer.def: Rename __asan_init to __asan_init_v1.
35785 2013-02-12 Dodji Seketeli <dodji@redhat.com>
35787 Avoid instrumenting duplicated memory access in the same basic block
35788 * Makefile.in (asan.o): Add new dependency on hash-table.h
35789 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
35790 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
35791 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
35792 (free_mem_ref_resources, has_mem_ref_been_instrumented)
35793 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
35794 (get_mem_ref_of_assignment): New functions.
35795 (get_mem_refs_of_builtin_call): Extract from
35796 instrument_builtin_call and tweak a little bit to make it fit with
35798 (instrument_builtin_call): Use the new
35799 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
35800 of is_gimple_builtin_call.
35801 (instrument_derefs, instrument_mem_region_access): Insert the
35802 instrumented memory reference into the hash table.
35803 (maybe_instrument_assignment): Renamed instrument_assignment into
35804 this, and change it to advance the iterator when instrumentation
35805 actually happened and return true in that case. This makes it
35806 homogeneous with maybe_instrument_assignment, and thus give a
35807 chance to callers to be more 'regular'.
35808 (transform_statements): Clear the memory reference hash table
35809 whenever we enter a new BB, when we cross a function call, or when
35810 we are done transforming statements. Use
35811 maybe_instrument_assignment instead of instrumentation. No more
35812 need to special case maybe_instrument_assignment and advance the
35813 iterator after calling it; it's now handled just like
35814 maybe_instrument_call. Update comment.
35816 2013-02-13 Richard Biener <rguenther@suse.de>
35818 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
35819 Fix loop discovery code.
35821 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
35823 PR inline-asm/56148
35824 * lra-constraints.c (process_alt_operands): Match early clobber
35825 operand with itself. Check conflicts with earlyclobber only if
35826 the operand is not reloaded. Prefer to reload conflicting operand
35827 if earlyclobber and matching operands are the same.
35829 2013-02-12 Richard Biener <rguenther@suse.de>
35832 * lto-streamer-out.c (write_symbol): Do not output symbols
35833 for hard register variables.
35835 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
35838 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
35839 (umulsidi3_insn, mulsidi3_insn): New insns.
35841 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
35843 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
35844 (struct tune_params): Add vec_costs field.
35845 * config/arm/arm.c (arm_builtin_vectorization_cost)
35846 (arm_add_stmt_cost): New functions.
35847 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
35848 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
35849 (arm_default_vec_cost): New struct of type cpu_vec_costs.
35850 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
35851 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
35852 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
35853 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
35855 2013-02-12 Richard Biener <rguenther@suse.de>
35858 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
35859 decls again if possible.
35861 2013-02-12 Richard Biener <rguenther@suse.de>
35863 PR middle-end/56288
35864 * tree-ssa.c (verify_ssa_name): Fix check, move
35865 SSA_NAME_IN_FREE_LIST check up.
35867 2013-02-12 Jakub Jelinek <jakub@redhat.com>
35868 Steven Bosscher <steven@gcc.gnu.org>
35870 PR rtl-optimization/56151
35871 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
35872 equal to op0 or op1, and last_insn pattern is CODE operation
35873 with MEM dest and one of the operands matches that MEM.
35875 2013-02-11 Sriraman Tallam <tmsriram@google.com>
35877 * doc/extend.texi: Document Function Multiversioning and "default"
35878 parameter string to target attribute.
35879 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
35880 target attribute parameter is "default".
35881 (ix86_compare_version_priority): Remove checks for target attribute.
35882 (ix86_mangle_function_version_assembler_name): Change error to sorry.
35883 Remove check for target attribute equal to NULL. Add assert.
35884 (ix86_generate_version_dispatcher_body): Change error to sorry.
35886 2013-02-11 Iain Sandoe <iain@codesourcery.com>
35887 Jack Howarth <howarth@bromo.med.uc.edu>
35888 Patrick Marlier <patrick.marlier@gmail.com>
35891 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
35892 define ENDFILE_SPEC as TM_DESTRUCTOR.
35893 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
35895 2013-02-11 Alexander Potapenko <glider@google.com>
35896 Jack Howarth <howarth@bromo.med.uc.edu>
35897 Jakub Jelinek <jakub@redhat.com>
35900 * config/darwin.c (cdtor_record): Rename ctor_record.
35901 (sort_cdtor_records): Rename sort_ctor_records.
35902 (finalize_dtors): New routine to sort destructors by
35903 priority before use in assemble_integer.
35904 (machopic_asm_out_destructor): Use finalize_dtors if needed.
35906 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
35908 PR rtl-optimization/56275
35909 * simplify-rtx.c (avoid_constant_pool_reference): Check that
35910 offset is non-negative and less than cmode size before
35911 calling simplify_subreg.
35913 2013-02-11 Richard Biener <rguenther@suse.de>
35915 PR tree-optimization/56264
35916 * cfgloop.h (fix_loop_structure): Adjust prototype.
35917 * loop-init.c (fix_loop_structure): Return the number of
35918 newly discovered loops.
35919 * tree-cfgcleanup.c (repair_loop_structures): When new loops
35920 are discovered, do a full loop-closed SSA rewrite.
35922 2013-02-11 Richard Biener <rguenther@suse.de>
35924 PR tree-optimization/56273
35925 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
35927 (check_array_ref): Fix missing newline in dumps.
35928 (search_for_addr_array): Likewise.
35930 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
35932 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
35934 2013-02-09 Jakub Jelinek <jakub@redhat.com>
35937 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
35939 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
35941 PR rtl-optimization/56246
35942 * lra-constraints.c (simplify_operand_subreg): Try to reuse
35944 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
35945 constraints are satisfied.
35947 2013-02-08 Jeff Law <law@redhat.com>
35950 * emit-rtl.c (reg_is_parm_p): New function.
35951 * regs.h (reg_is_parm_p): New prototype.
35952 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
35953 callee-clobbered registers.
35955 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
35958 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
35959 If there is no implicit builtin declaration, just return NULL.
35961 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
35963 * config/i386/sse.md (FMAMODEM): New mode iterator.
35964 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
35965 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
35967 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
35969 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
35970 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
35971 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
35973 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
35975 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
35976 (microblaze*-*-elf): Likewise.
35977 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
35979 * config/microblaze/microblaze-c.c: Add builtin defines for
35980 _LITTLE_ENDIAN and _BIG_ENDIAN.
35981 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
35982 add to TARGET_DEFAULT flags.
35983 Expand ASM_SPEC and LINK_SPEC.
35984 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
35985 * config/microblaze/microblaze.md: Update extendsidi2 and
35986 movdi_internal instructions to use low-order / high-order reg
35988 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
35989 options and inversemask / mask of LITTLE_ENDIAN.
35990 * config/microblaze/t-microblaze: Expand multilib options to
35991 include mlittle-endian (le) and update exceptions patterns.
35993 2013-02-08 Jakub Jelinek <jakub@redhat.com>
35995 PR rtl-optimization/56195
35996 * lra-constraints.c (get_reload_reg): Don't reuse regs
35997 if they have smaller mode than requested, if they have
35998 wider mode than requested, try to return a SUBREG.
36000 PR tree-optimization/56250
36001 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
36002 if type is unsigned and code isn't MULT_EXPR.
36004 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
36006 PR tree-optimization/56064
36007 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
36008 bits according to mode.
36009 * fixed-value.h (fixed_from_double_int)
36010 (const_fixed_from_double_int): Adjust comments.
36012 2013-02-08 Richard Biener <rguenther@suse.de>
36015 * lto-streamer.h (struct data_in): Remove current_file, current_line
36016 and current_col members.
36017 * lto-streamer-out.c (lto_output_location): Stream changed bits
36018 en-block for efficiency.
36019 * lto-streamer-in.c (clear_line_info): Remove.
36020 (lto_input_location): Cache current file, line and column
36021 globally via local statics. Read changed bits en-block.
36022 (input_function): Do not call clear_line_info.
36023 (lto_read_body): Likewise.
36024 (lto_input_toplevel_asms): Likewise.
36026 2013-02-08 Michael Matz <matz@suse.de>
36028 PR tree-optimization/52448
36029 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
36030 (nt_call_phase): New static.
36031 (add_or_mark_expr): Only mark accesses with newer phase than any
36033 (nonfreeing_call_p): New.
36034 (nt_init_block): Update nt_call_phase, mark blocks as visited.
36035 (nt_fini_block): Keep blocks marked as visited.
36036 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
36038 2013-02-08 Richard Biener <rguenther@suse.de>
36040 * ira.c (ira): Free broken dominator information.
36042 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
36044 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
36046 2013-02-08 Marek Polacek <polacek@redhat.com>
36048 * cfgloop.c (verify_loop_structure): Add more checking of headers.
36050 2013-02-08 Richard Biener <rguenther@suse.de>
36052 PR middle-end/56181
36053 * cfgloop.h (flow_loops_find): Adjust.
36054 (bb_loop_header_p): Declare.
36055 * cfgloop.c (bb_loop_header_p): New function split out from ...
36056 (flow_loops_find): ... here. Adjust function signature,
36057 support incremental loop structure update.
36058 (verify_loop_structure): Cleanup. Verify a loop is a loop.
36059 * cfgloopmanip.c (fix_loop_structure): Move ...
36060 * loop-init.c (fix_loop_structure): ... here.
36061 (apply_loop_flags): Split out from ...
36062 (loop_optimizer_init): ... here.
36063 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
36064 in incremental mode, only remove dead loops here.
36066 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
36069 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
36070 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
36071 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
36072 (*round<mode>3.libgcc): New insns for fixed-modes.
36073 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
36074 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
36075 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
36076 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
36077 implementations. Define to __builtin_avr_absFX,
36078 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
36079 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
36080 __builtin_avr_countlsFX, respectively.
36081 * config/avr/avr-c.c (target.h): Include it.
36082 (enum avr_builtin_id): New enum.
36083 (avr_resolve_overloaded_builtin): New static function.
36084 (avr_register_target_pragmas): Use it to set
36085 targetm.resolve_overloaded_builtin.
36086 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
36087 tree nodes used by DEF_BUILTIN.
36088 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
36089 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
36090 <AVR_BUILTIN_xxBITS>: Same.
36092 2013-02-08 Richard Biener <rguenther@suse.de>
36094 * cfgloop.c (verify_loop_structure): Properly handle
36095 a loop exiting to another loop header.
36096 * ira-int.h (ira_loops): Remove.
36097 * ira.c (ira_loops): Remove.
36098 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
36099 (do_reload): Use loop_optimizer_finalize.
36100 * ira-build.c (create_loop_tree_nodes): Use get_loops and
36101 number_of_loops to access the loop tree.
36102 (more_one_region_p): Likewise.
36103 (finish_loop_tree_nodes): Likewise.
36104 (rebuild_regno_allocno_maps): Likewise.
36105 (mark_loops_for_removal): Likewise.
36106 (mark_all_loops_for_removal): Likewise.
36107 (remove_unnecessary_regions): Likewise.
36108 (ira_build): Likewise.
36109 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
36111 2013-02-08 Richard Biener <rguenther@suse.de>
36113 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
36114 * ipa-pure-const.c (analyze_function): Avoid calling
36115 mark_irreducible_loops twice.
36116 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
36118 2013-02-07 David S. Miller <davem@davemloft.net>
36120 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
36122 * var-tracking.c (vt_add_function_parameter): Test the presence of
36123 HAVE_window_save properly and do not remap argument registers when
36124 we have a leaf function.
36126 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
36129 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
36131 * config/i386/i386.c (ix86_print_operand): Ditto.
36133 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
36135 * lra-constraints.c (process_alt_operands): Fix recently added comment.
36137 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
36139 PR rtl-optimization/56225
36140 * lra-constraints.c (process_alt_operands): Check that reload hard
36141 reg can hold value for strict_low_part.
36143 2013-02-07 Jakub Jelinek <jakub@redhat.com>
36146 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
36147 dwarf2out_end_function.
36148 (in_first_function_p, maybe_at_text_label_p,
36149 first_loclabel_num_not_at_text_label): New variables.
36150 (dwarf2out_var_location): In the first function find out
36151 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
36152 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
36155 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
36157 PR rtl-optimization/56178
36158 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
36159 SUBREG of a register. Tidy up related block of code.
36160 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
36161 note if the source is a register or a SUBREG of a register.
36163 2013-02-07 Jakub Jelinek <jakub@redhat.com>
36166 * config/rs6000/rs6000.md (ptrm): New mode attr.
36167 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
36168 call_value_indirect_aix<pttrsize>,
36169 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
36172 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
36174 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
36175 if -bnortl. Convert to strcmp and strncmp.
36177 2013-02-07 Alan Modra <amodra@gmail.com>
36180 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
36181 addresses won't wrap when offsetting.
36182 (rs6000_secondary_reload): Provide secondary reloads needed for
36183 wrapping LO_SUM addresses.
36185 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
36187 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
36188 MACH, just __MACH__.
36190 2013-02-06 Richard Biener <rguenther@suse.de>
36192 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
36193 instead of calling fix_loop_structure.
36195 2013-02-06 Jakub Jelinek <jakub@redhat.com>
36197 PR middle-end/56217
36198 * omp-low.c (use_pointer_for_field): Return false if
36199 lower_send_shared_vars doesn't generate any copy-out code.
36201 2013-02-06 Tom de Vries <tom@codesourcery.com>
36203 PR rtl-optimization/56131
36204 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
36205 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
36206 of the label is NULL. Add comment.
36208 2013-02-05 Jakub Jelinek <jakub@redhat.com>
36210 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
36213 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
36214 (STATIC_LIBTSAN_LIBS): Likewise.
36215 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
36216 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
36217 is defined, don't add anything else beyond that.
36218 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
36219 (LINK_COMMAND_SPEC): Use them.
36221 PR tree-optimization/56205
36222 * tree-stdarg.c (check_all_va_list_escapes): Return true if
36223 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
36224 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
36226 2013-02-05 Richard Biener <rguenther@suse.de>
36228 PR tree-optimization/53342
36229 PR tree-optimization/53185
36230 * tree-vectorizer.h (vect_check_strided_load): Remove.
36231 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
36232 not disallow peeling for vectorized strided loads.
36233 (vect_check_strided_load): Make static and simplify.
36234 (vect_analyze_data_refs): Adjust.
36235 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
36236 correctly when vectorizing strided loads.
36238 2013-02-05 Richard Biener <rguenther@suse.de>
36240 * doc/install.texi: Refer to ISL, not PPL.
36242 2013-02-05 Jan Hubicka <jh@suse.cz>
36244 PR tree-optimization/55789
36245 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
36247 2013-02-05 Jan Hubicka <jh@suse.cz>
36249 PR tree-optimization/55789
36250 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
36251 the dead call anyway.
36253 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
36256 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
36258 2013-02-04 Alexander Potapenko <glider@google.com>
36259 Jack Howarth <howarth@bromo.med.uc.edu>
36260 Jakub Jelinek <jakub@redhat.com>
36263 * config/darwin.c (sort_ctor_records): Stabilized qsort
36264 on constructor priority by using original position.
36265 (finalize_ctors): New routine to sort constructors by
36266 priority before use in assemble_integer.
36267 (machopic_asm_out_constructor): Use finalize_ctors if needed.
36269 2013-02-04 Jakub Jelinek <jakub@redhat.com>
36272 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
36273 about visibility on artificial decls.
36274 * config/sol2.c (solaris_assemble_visibility): Likewise.
36276 2013-02-04 Kai Tietz <ktietz@redhat.com>
36279 * config/i386/i386.c (function_value_ms_64): Add additional valtype
36280 argument and improve checking of return-argument types for 16-byte
36282 (ix86_function_value_1): Add additional valtype argument on call
36283 of function_value_64.
36284 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
36285 handling infunction_value_64 function.
36287 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
36289 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
36291 2013-02-04 Richard Biener <rguenther@suse.de>
36293 PR tree-optimization/56188
36294 * tree-ssa-structalias.c (label_visit): Consider case with
36295 initially non-empty points-to set.
36296 (perform_var_substitution): Dump node mapping and clean up.
36298 2013-02-04 Richard Guenther <rguenther@suse.de>
36301 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
36302 node prevail as last resort.
36303 (lto_symtab_merge_decls): Remove guard on LTRANS here.
36304 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
36306 2013-02-04 Richard Biener <rguenther@suse.de>
36308 PR tree-optimization/56113
36309 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
36311 (equiv_class_lookup_or_add): ... this.
36312 (label_visit): Adjust and fix error in previous patch.
36313 (perform_var_substitution): Adjust.
36315 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
36317 * config/sh/divtab.c: Fix formatting and comments throughout the file.
36318 * config/sh/sh4-300.md: Likewise.
36319 * config/sh/sh4a.md: Likewise.
36320 * config/sh/constraints.md: Likewise.
36321 * config/sh/sh.md: Likewise.
36322 * config/sh/netbsd-elf.h: Likewise.
36323 * config/sh/predicates.md: Likewise.
36324 * config/sh/sh-protos.h: Likewise.
36325 * config/sh/ushmedia.h: Likewise.
36326 * config/sh/linux.h: Likewise.
36327 * config/sh/sh.c: Likewise.
36328 * config/sh/superh.h: Likewise.
36329 * config/sh/elf.h: Likewise.
36330 * config/sh/sh4.md: Likewise.
36331 * config/sh/sh.h: Likewise.
36333 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36335 * config/pa/constraints.md: Adjust unused letters. Change "T"
36336 constraint to match_test floating_point_store_memory_operand().
36337 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
36338 (base14_operand): New.
36339 (floating_point_store_memory_operand): New.
36340 (integer_store_memory_operand): Revise to use base14_operand and
36341 reg_plus_base_memory_operand.
36342 (move_dest_operand): Allow symbolic_memory_operands.
36343 (symbolic_memory_operand): Check for LO_SOM.
36344 (symbolic_operand): Change default case to break.
36345 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
36346 CONST_DOUBLE values to be reloaded by putting them into memory when
36347 the destination is a floating point register.
36348 (movdf): Remove code to handle CONST_DOUBLE.
36350 (reload_indf_r1): New.
36351 (reload_insf_r1): New.
36352 Consistently use "Q" and "T" constraints with integer and floating
36353 point move instructions, respectively.
36354 (movdi): Remove FAIL.
36355 Change predicate for source operand unamed DImode move from
36356 general_operand to move_src_operand.
36357 (umulsidi3): Change predicate for destination operand to
36359 Likewise for similar unamed patterns.
36360 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
36361 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
36362 (hppa_legitimize_address): Simplify mask calculation.
36363 (pa_emit_move_sequence): Revised handling of secondary reloads from
36364 REG+D addresses for floating point loads and stores. Directly handle
36365 loading CONST0_RTX (mode) to a floating point register.
36366 (pa_secondary_reload): Handle reloading DF and SFmode constant values
36367 to floating point registers. Don't restrict secondary reloads to
36368 floating point registers to integer modes. Revise some comments and
36370 (TARGET_LEGITIMATE_ADDRESS_P): Define.
36371 (pa_legitimate_address_p): New.
36372 (pa_legitimize_reload_address): New.
36373 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
36374 (STRICT_REG_OK_FOR_BASE_P): New.
36375 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
36376 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
36378 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
36379 Andrew Dixie <andrewd@gentrack.com>
36381 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
36384 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
36386 * expmed.c (extract_bit_field_1): Pass the full width of the
36387 structure to get_best_reg_extraction_insn.
36389 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
36392 * configure.ac (use_cxa_atexit): Add AIX.
36393 * configure: Regenerate.
36395 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
36397 2013-02-01 Jakub Jelinek <jakub@redhat.com>
36400 * final.c (need_profile_function): New variable.
36401 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
36402 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
36403 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
36404 notes, targetm.asm_out.function_prologue doesn't emit anything,
36405 HAVE_prologue and profiler should be emitted before prologue,
36406 set need_profile_function instead of emitting it.
36407 (final_scan_insn): If need_profile_function, emit
36408 profile_function on the first NOTE_INSN_BASIC_BLOCK or
36409 NOTE_INSN_FUNCTION_BEG note.
36411 2013-02-01 Richard Henderson <rth@redhat.com>
36413 * config/rs6000/rs6000.md (smulditi3): New.
36416 * config/alpha/alpha.md (umulditi3): New.
36418 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
36420 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
36421 (ASM_OUTPUT_ALIGNED_LOCAL): New.
36423 2013-02-01 Richard Biener <rguenther@suse.de>
36425 PR tree-optimization/56113
36426 * tree-ssa-structalias.c (label_visit): Reduce work for
36427 single-predecessor nodes.
36429 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
36431 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
36432 range isn't testing for zero.
36434 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
36436 PR middle-end/56113
36437 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
36439 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
36440 Nick Clifton <nickc@redhat.com>
36442 * config/v850/constraints.md (Q): Define as a memory constraint.
36443 * config/v850/predicates.md (label_ref_operand): New predicate.
36444 (e3v5_shift_operand): New predicate.
36445 (ior_operator): New predicate.
36446 * config/v850/t-v850: Add e3v5 multilib.
36447 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
36448 (v850_gen_movdi): Prototype.
36449 * config/v850/v850.c: Add support for e3v5 architecture.
36450 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
36452 (construct_save_jarl): Add e3v5 long JARL support.
36453 (v850_adjust_insn_length): New function. Adjust length of call
36454 insns when using e3v5 instructions.
36455 (v850_gen_movdi): New function: Generate instructions to move a
36457 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
36458 (CPP_SPEC): Define __v850e3v5__ as appropriate.
36459 (TARGET_USE_FPU): Enable for e3v5.
36460 (CONST_OK_FOR_W): New macro.
36461 (ADJUST_INSN_LENGTH): Define.
36462 * config/v850/v850.md (UNSPEC_LOOP): Define.
36463 (attr cpu): Add v850e3v5.
36464 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
36465 (movdi): New pattern.
36466 (movdi_internal): New pattern.
36467 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
36468 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
36469 (cstoresf4): Likewise.
36470 (cstoredf4): Likewise.
36471 (insv): New pattern.
36472 (rotlso3_a): New pattern.
36473 (rotlsi3_b): New pattern
36474 (rotlsi3_v850e3v5): New pattern.
36475 (doloop_begin): New pattern.
36476 (fix_loop_counter): New pattern.
36477 (doloop_end): New pattern.
36478 (branch_normal): Add e3v5 long branch support.
36479 (branch_invert): Likewise.
36480 (branch_z_normal): Likewise.
36481 (branch_z_invert): Likewise.
36482 (branch_nz_normal): Likewise.
36483 (branch_nz_invert): Likewise.
36484 (call_internal_short): Add e3v5 register-indirect JARL support.
36485 (call_internal_long): Likewise.
36486 (call_value_internal_short): Likewise.
36487 (call_value_internal_long): Likewise.
36488 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
36489 (mloop): New option.
36490 * config.gcc: Add support for configuring v840e3v5 target.
36491 * doc/invoke.texi: Document new v850 specific command line options.
36493 2013-01-31 Paul Koning <ni1d@arrl.net>
36497 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
36498 children if parent is a class.
36499 (prune_unused_types_prune): Don't add DW_AT_declaration.
36501 2013-01-31 Richard Biener <rguenther@suse.de>
36503 PR tree-optimization/56157
36504 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
36505 match up operand with SLP child.
36507 2013-01-31 Jason Merrill <jason@redhat.com>
36510 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
36511 parameters the first time.
36512 (gen_scheduled_generic_parms_dies): Check completeness here.
36514 2013-01-31 Richard Biener <rguenther@suse.de>
36516 PR middle-end/53073
36517 * common.opt (faggressive-loop-optimizations): New flag,
36518 enabled by default.
36519 * doc/invoke.texi (faggressive-loop-optimizations): Document.
36520 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
36521 infer_loop_bounds_from_undefined by it.
36523 2013-01-31 Richard Biener <rguenther@suse.de>
36525 PR tree-optimization/56150
36526 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
36527 visit virtual operands.
36528 (find_uses_to_rename_bb): Likewise.
36530 2013-01-31 Richard Biener <rguenther@suse.de>
36532 PR tree-optimization/56150
36533 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
36534 mixed store non-store stmts.
36536 2013-01-30 Jakub Jelinek <jakub@redhat.com>
36539 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
36540 LIBASAN_EARLY_SPEC is defined.
36541 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
36542 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
36544 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
36547 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
36548 invalid args instead of ICEing on it.
36549 (ix86_valid_target_attribute_tree): Return error_mark_node if
36550 ix86_valid_target_attribute_inner_p failed.
36551 (ix86_valid_target_attribute_p): Return false only if
36552 ix86_valid_target_attribute_tree returned error_mark_node. Allow
36553 target("default") attribute.
36554 (sorted_attr_string): Change argument from const char * to tree,
36555 merge in all target attribute arguments rather than just one.
36556 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
36557 instead of free. Avoid using strcat.
36558 (ix86_mangle_function_version_assembler_name): Mangle
36559 target("default") as if no target attribute is present. Adjust
36560 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
36561 instead of xmalloc and XDELETEVEC instead of free.
36562 (ix86_function_versions): Don't return true if one of the decls
36563 doesn't have target attribute. If they don't and one of the decls
36564 is DECL_FUNCTION_VERSIONED, report an error. Adjust
36565 sorted_attr_string caller. Use XDELETEVEC instead of free.
36566 (ix86_supports_function_versions): Remove.
36567 (make_name): Fix up formatting.
36568 (make_dispatcher_decl): Remove resolver_name and its initialization.
36569 Avoid leaking memory.
36570 (is_function_default_version): Return true if there is
36571 target("default") attribute rather than no target attribute at all.
36572 (make_resolver_func): Avoid leaking memory.
36573 (ix86_generate_version_dispatcher_body): Likewise.
36574 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
36575 * target.def (supports_function_versions): Remove.
36576 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
36577 * doc/tm.texi: Regenerated.
36579 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
36581 PR rtl-optimization/56144
36582 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
36583 for values with side effects.
36585 2013-01-30 Richard Biener <rguenther@suse.de>
36587 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
36588 (sparseset_pop): Likewise.
36589 * cfganal.c (compute_idf): Likewise. Increase work-stack size
36590 to be able to use quick_push in the worker loop.
36592 2013-01-30 Marek Polacek <polacek@redhat.com>
36594 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
36596 2013-01-30 Richard Biener <rguenther@suse.de>
36599 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
36601 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
36603 PR tree-optimization/56064
36604 * fixed-value.c (fixed_from_double_int): New function.
36605 * fixed-value.h (fixed_from_double_int): New prototype.
36606 (const_fixed_from_double_int): New static inline function.
36607 * fold-const.c (native_interpret_fixed): New static function.
36608 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
36609 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
36610 (native_encode_fixed): New static function.
36611 (native_encode_expr) <FIXED_CST>: Use it.
36612 (native_interpret_int): Move double_int worker code to...
36613 * double-int.c (double_int::from_buffer): ...this new static method.
36614 * double-int.h (double_int::from_buffer): Prototype it.
36616 2013-01-30 Richard Biener <rguenther@suse.de>
36618 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
36619 New pointer-map and obstack.
36620 (init_alias_vars): Allocate pointer-map and obstack.
36621 (delete_points_to_sets): Free them.
36622 (find_what_var_points_to): Cache result.
36623 (find_what_p_points_to): Adjust for changed interface of
36624 find_what_var_points_to.
36625 (compute_points_to_sets): Likewise.
36626 (ipa_pta_execute): Likewise.
36628 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36630 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
36631 * configure: Regenerate.
36632 * config.in: Regenerate.
36633 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
36634 #nobits/#progbits if supported.
36636 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
36639 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
36640 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
36641 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
36643 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
36645 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
36646 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
36648 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
36650 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
36651 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
36653 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
36655 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
36657 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
36658 * config/arm/cortex-a7.md: New bypasses using
36659 arm_mac_accumulator_is_result.
36661 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
36663 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
36664 (cortex_a7_neon_mla): Likewise.
36665 (cortex_a7_fpfmad): New reservation.
36666 (cortex_a7_fpmacs): Use ffmas and update required units.
36667 (cortex_a7_fpmuld): Update required units and latency.
36668 (cortex_a7_fpmacd): Likewise.
36669 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
36670 (cortex_a7_neon). Likewise.
36671 (bypass) Update participating units.
36673 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
36675 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
36676 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
36678 * config/arm/vfp11.md (vfp_farith): Use ffmas.
36679 (vfp_fmul): Use ffmad.
36680 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
36681 (cortex_r4_fmacd): Use ffmad.
36682 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
36683 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
36684 (cortex_a9_fmacd): Use ffmad.
36685 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
36686 (cortex_a8_vfp_macd): Use ffmad.
36687 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
36688 (cortex_a5_fpmacd): Use ffmad.
36689 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
36690 (cortex_a15_vfp_macd): Use ffmad.
36691 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
36693 2013-01-29 Jason Merrill <jason@redhat.com>
36696 * varasm.c (default_assemble_visibility): Don't warn about
36697 visibility on artificial decls.
36699 2013-01-29 Richard Biener <rguenther@suse.de>
36701 PR tree-optimization/56113
36702 * tree-ssa-structalias.c (equiv_class_lookup): Also return
36704 (label_visit): Free duplicate bitmaps and record the leader instead.
36705 (perform_var_substitution): Adjust.
36707 2013-01-29 Richard Biener <rguenther@suse.de>
36709 PR tree-optimization/55270
36710 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
36711 the CFG, schedule loops for fixup.
36713 2013-01-29 Nick Clifton <nickc@redhat.com>
36715 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
36718 2013-01-28 Leif Ekblad <leif@rdos.net>
36720 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
36721 * config/i386/i386.h (TARGET_RDOS): New macro.
36722 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
36723 * config/i386/i386.c (ix86_option_override_internal): For 64bit
36724 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
36725 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
36726 DEFAULT_LARGE_SECTION_THRESHOLD.
36727 * config/i386/i386.md (R14_REG, R15_REG): New constants.
36728 * config/i386/rdos.h: New file.
36729 * config/i386/rdos64.h: New file.
36731 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
36734 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
36737 2013-01-28 Jakub Jelinek <jakub@redhat.com>
36739 PR rtl-optimization/56117
36740 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
36741 call cselib_lookup_from_insn on the MEM before calling
36742 add_insn_mem_dependence.
36744 2013-01-28 Richard Biener <rguenther@suse.de>
36746 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
36747 to a stmt that didn't have one.
36748 (copy_phis_for_bb): Likewise for PHI arguments.
36749 (copy_debug_stmt): Likewise for debug stmts.
36751 2013-01-28 Richard Biener <rguenther@suse.de>
36753 PR tree-optimization/56034
36754 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
36755 (partition_builtin_p): Adjust.
36756 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
36757 it is the last partition.
36758 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
36759 up the vertex for the definition.
36760 (classify_partition): Classify whether a partition is a
36761 PKIND_REDUCTION, thus has uses outside of the loop.
36762 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
36763 Merge all PKIND_REDUCTION partitions into the last partition.
36764 (tree_loop_distribution): Seed partitions from reductions as well.
36766 2013-01-28 Jakub Jelinek <jakub@redhat.com>
36768 PR tree-optimization/56125
36769 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
36770 pow(x,c) into sqrt(x) * powi(x, n/2) or
36771 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
36772 optimizing for size.
36773 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
36774 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
36777 PR tree-optimization/56094
36778 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
36779 to UNKNOWN_LOCATION while gimplifying expr.
36781 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
36784 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
36785 operand 0 in movabs insn template for -masm=intel asm alternative.
36786 (*movabs<mode>_2): Ditto for operand 1.
36788 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
36791 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
36794 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36796 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
36799 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
36801 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
36802 Undef to avoid warning.
36804 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
36806 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
36807 * configure: Regenerate.
36809 2013-01-25 Jakub Jelinek <jakub@redhat.com>
36811 PR tree-optimization/56098
36812 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
36813 for stmts with volatile ops.
36814 (cond_store_replacement): Don't optimize if assign has volatile ops.
36815 (cond_if_else_store_replacement_1): Don't optimize if either
36816 then_assign or else_assign have volatile ops.
36817 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
36820 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
36822 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
36824 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
36826 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
36827 missing ':' in asm example.
36829 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
36831 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
36832 entries into lane and laneq entries.
36833 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
36834 Remove AdvSIMD scalar modes.
36835 (aarch64_sq<r>dmulh_laneq<mode>): New.
36836 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
36838 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
36839 builtin implementations to relfect changes in RTL in aarch64-simd.md.
36840 * config/aarch64/iterators.md (VCOND): New.
36843 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
36846 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
36847 Add NULL LIBNAME argument to existing definitions.
36848 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
36849 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
36850 * config/avr/avr.c (DEF_BUILTIN): Same.
36851 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
36852 (avr_expand_builtin): Expand to a vanilla call if a libgcc
36853 implementation is available (DECL_ASSEMBLER_NAME is set).
36854 (avr_fold_absfx): New static function.
36855 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
36856 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
36857 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
36858 AVR_BUILTIN_ABSLLK.
36859 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
36860 (abshk, absk, abslk, absllk): Provide as static inline functions.
36862 2013-01-25 Marek Polacek <polacek@redhat.com>
36864 PR tree-optimization/56035
36865 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
36867 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
36869 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
36870 (*movtf_internal_rex64): Add (!o,C) alternative
36871 (*movxf_internal_rex64): Ditto.
36872 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
36874 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
36876 * doc/invoke.texi: fix typo.
36877 * doc/objc.texi: fix typo.
36879 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
36881 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
36882 for the first two alternatives.
36884 2013-01-24 Diego Novillo <dnovillo@google.com>
36886 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
36887 (ggc-zone.o): Remove.
36888 * configure.ac: Remove option --with-gc.
36889 * configure: Re-generate.
36890 * doc/install.texi: Remove documentation for --with-gc.
36891 * gengtype.c (write_enum_defn): Remove. Update all users.
36892 (write_Types_process_field): Remove generation of gt_e_* argument.
36893 (output_type_enum): Remove. Update all users.
36894 (write_enum_defn): Remove. Update all users.
36895 (enum alloc_zone): Remove. Update all users.
36896 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
36897 * ggc-common.c (ggc_splay_alloc): Remove first argument.
36898 Update all callers.
36899 (struct ptr_data): Remove field TYPE. Update all users.
36900 (gt_pch_note_object): Remove argument TYPE. Update all users.
36901 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
36903 * ggc-none.c (ggc_alloc_typed_stat): Remove.
36904 (struct alloc_zone): Remove.
36905 (ggc_internal_alloc_zone_stat): Remove.
36906 (ggc_internal_cleared_alloc_zone_stat): Remove.
36907 * ggc-page.c (ggc_alloc_typed_stat): Remove.
36908 (ggc_pch_count_object): Remove last argument. Update all users.
36909 (ggc_pch_alloc_object): Remove last argument. Update all users.
36910 (struct alloc_zone): Remove.
36911 * ggc-zone.c: Remove.
36912 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
36913 (struct alloc_zone): Remove.
36914 (ggc_alloc_typed_stat): Remove.
36915 (ggc_alloc_typed): Remove.
36916 (ggc_splay_alloc): Remove first argument.
36917 (rtl_zone): Remove. Update all users.
36918 (tree_zone): Remove. Update all users.
36919 (tree_id_zone): Remove. Update all users.
36920 (ggc_internal_zone_alloc_stat): Remove. Update all users.
36921 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
36922 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
36923 * tree-ssanames.c: Remove references to zone allocator in comments.
36925 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
36927 * config/avr/avr.c (avr_out_fract): Make register numbers that
36928 might be outside of source operand signed.
36930 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
36932 * config/i386/constraints.md (Yf): New constraint.
36933 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
36934 of f constraint to conditionaly disable x87 register preferences.
36935 (*movdf_internal): Ditto.
36936 (*movsf_internal): Ditto.
36938 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
36940 PR inline-asm/55934
36941 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
36942 that have operands with impossible constraints.
36943 Add a FIXME for a speed-up opportunity.
36944 * lra-constraints.c (process_alt_operands): Verify that a class
36945 selected from constraints on asms is valid for the operand mode.
36946 (curr_insn_transform): Remove incorrect comment.
36948 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
36950 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
36951 TOC operand is a valid symbol ref in the constant pool.
36953 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36955 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
36957 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
36960 * config/avr/stdfix.h: New file.
36961 * t-avr (stdfix-gcc.h): New rule to build it.
36962 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
36964 2013-01-23 Kostya Serebryany <kcc@google.com>
36966 * config/darwin.h: remove dependency on
36967 CoreFoundation (asan on Mac OS).
36969 2013-01-23 Jakub Jelinek <jakub@redhat.com>
36972 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
36973 instead of cmpdi_operand for first comparison operand.
36974 Don't assert that comparison operands aren't both constants.
36976 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
36978 * doc/install.texi (Downloading the Source): Update references to
36979 downloading separate components.
36981 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
36983 * doc/extend.texi (__int128): Improve grammar.
36985 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
36988 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
36989 alternative to (o,r).
36990 (*movdi_internal_rex64): Remove (!o,n) alternative.
36991 (DImode immediate->memory splitter): Remove.
36992 (DImode immediate->memory peephole2): Remove.
36993 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
36994 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
36995 alternative to (!o,*r).
36996 (*movtf_internal_sse): New pattern.
36997 (*movxf_internal_rex64): New pattern.
36998 (*movxf_internal): Disable for TARGET_64BIT.
36999 (*movdf_internal_rex64): Remove (!o,F) alternative.
37001 2013-01-22 Jakub Jelinek <jakub@redhat.com>
37003 PR middle-end/56074
37004 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
37005 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
37006 * tree-vect-loop-manip.c (find_loop_location): Also ignore
37007 stmt locations where LOCATION_LOCUS of the stmt location is
37008 UNKNOWN_LOCATION or BUILTINS_LOCATION.
37011 * config/i386/i386.md (UNSPEC_STOS): New.
37012 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
37013 *strsetqi_1): Add UNSPEC_STOS.
37015 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
37018 * doc/invoke.texi: Remove left over -Wsynth example.
37020 2013-01-21 Jakub Jelinek <jakub@redhat.com>
37022 PR tree-optimization/56051
37023 * fold-const.c (fold_binary_loc): Don't fold
37024 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
37025 a narrowing conversion, or widening conversion from signed
37028 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
37030 PR rtl-optimization/56023
37031 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
37032 dependent on debug instruction.
37034 2013-01-21 Martin Jambor <mjambor@suse.cz>
37036 PR middle-end/56022
37037 * function.c (allocate_struct_function): Call
37038 invoke_set_current_function_hook earlier.
37040 2013-01-21 Jakub Jelinek <jakub@redhat.com>
37042 * reload1.c (init_reload): Only initialize reload_obstack
37043 during the first call.
37045 2013-01-21 Marek Polacek <polacek@redhat.com>
37047 * cfgloop.c (verify_loop_structure): Fix up grammar.
37049 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
37051 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
37052 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
37054 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
37057 * config/arm/marvell-pj4.md: Update copyright year.
37058 Fix up use of alu to alu_reg and simple_alu_imm.
37060 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
37062 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
37064 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
37067 * lra-constraints.c (curr_insn_transform): Don't reuse original
37068 insn for secondary memory move when memory mode should be different.
37070 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
37072 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
37073 atomic_storedi_1): New patterns.
37075 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
37077 btver2 pipeline descriptions.
37078 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
37080 * config/i386/i386.md (btver2_decode): New type attributes.
37081 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
37083 * config/i386/btver2.md: New file describing btver2 pipelines.
37085 2013-01-19 Andrew Pinski <apinski@cavium.com>
37087 PR tree-optimization/52631
37088 * tree-ssa-sccvn (visit_use): Before looking up the original
37089 statement, try looking up the simplified expression.
37091 2013-01-19 Anthony Green <green@moxielogic.com>
37093 * config/moxie/moxie.c (moxie_expand_prologue): Set
37094 current_function_static_stack_size.
37096 2013-01-18 Jakub Jelinek <jakub@redhat.com>
37098 PR tree-optimization/56029
37099 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
37100 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
37102 2013-01-18 Sharad Singhai <singhai@google.com>
37104 PR tree-optimization/55995
37105 * dumpfile.c (dump_loc): Print location only if available.
37106 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
37108 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
37111 * lra-constraints.c (curr_insn_transform): Reuse original insn for
37112 secondary memory move.
37113 (inherit_reload_reg): Use rclass instead of cl for
37114 check_secondary_memory_needed_p.
37116 2013-01-18 Jakub Jelinek <jakub@redhat.com>
37118 PR middle-end/56015
37119 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
37120 the case where writing real complex part of target modifies op1.
37122 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
37124 * config/aarch64/aarch64-simd.md
37125 (aarch64_vcond_internal<mode>): Handle unordered cases.
37126 * config/aarch64/iterators.md (v_cmp_result): New.
37128 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
37129 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
37131 * config/arm/marvell-pj4.md: New file.
37132 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
37133 * config/arm/arm.md (generic_sched): Add marvell_pj4.
37134 (generic_vfp): Likewise.
37135 * config/arm/arm-cores.def: Add marvell-pj4.
37136 * config/arm/arm-tune.md: Regenerate.
37137 * config/arm/arm-tables.opt: Regenerate.
37138 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
37139 * doc/invoke.texi: Document marvell-pj4.
37141 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
37143 * config/aarch64/arm_neon.h: Map scalar types to standard types.
37145 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
37150 * var-tracking.c (negative_power_of_two_p): New.
37151 (global_get_addr_cache, local_get_addr_cache): New.
37152 (get_addr_from_global_cache, get_addr_from_local_cache): New.
37153 (vt_canonicalize_addr): Rewrite using the above. Adjust the
37155 (vt_stack_offset_p): Remove.
37156 (vt_canon_true_dep): Always canonicalize loc's address.
37157 (clobber_overlapping_mems): Make sure we have a MEM.
37158 (local_get_addr_clear_given_value): New.
37159 (val_reset): Clear local cached entries.
37160 (compute_bb_dataflow): Create and release the local cache.
37161 Disable duplicate MEMs clobbering.
37162 (emit_notes_in_bb): Clobber MEMs likewise.
37163 (vt_emit_notes): Create and release the local cache.
37164 (vt_initialize, vt_finalize): Create and release the global
37165 cache, respectively.
37166 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
37168 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
37170 PR libmudflap/53359
37171 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
37172 not found in the symtab.
37174 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
37177 PR rtl-optimization/55547
37178 PR rtl-optimization/53827
37181 * alias.c (offset_overlap_p): New, factored out of...
37182 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
37183 the conservative special case for symbolic constants. Don't
37184 adjust zero sizes on alignment.
37186 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
37188 PR rtl-optimization/52573
37189 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
37190 REG_UNUSED for the same register.
37192 2013-01-17 Richard Biener <rguenther@suse.de>
37193 Marek Polacek <polacek@redhat.com>
37195 PR rtl-optimization/55833
37196 * loop-unswitch.c (unswitch_loops): Move loop verification...
37197 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
37198 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
37199 Set it to true when we're removing a loop from hierarchy tree in
37200 an irreducible region.
37201 (fix_bb_placements): Adjust caller.
37202 (fix_loop_placements): Likewise.
37204 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
37206 * config/avr/builtins.def (DEF_BUILTIN): Factor out
37207 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
37208 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
37209 Remove ID. Adjust comments.
37210 * config/avr/avr-c.c (avr_builtin_name): Remove.
37211 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
37212 * config/avr/avr.c (avr_tolower): New static function.
37213 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
37214 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
37215 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
37218 2013-01-17 Jan Hubicka <jh@suse.cz>
37220 PR tree-optimization/55273
37221 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
37223 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
37226 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
37227 store through atomic_store<mode>_1.
37228 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
37230 2013-01-17 Martin Jambor <mjambor@suse.cz>
37232 PR tree-optimizations/55264
37233 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
37234 for virtual methods.
37235 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
37236 virtual methods before inlining is over.
37237 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
37239 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
37242 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
37244 PR rtl-optimization/56005
37245 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
37246 pending reads for prefetch.
37248 2013-01-16 Ian Bolton <ian.bolton@arm.com>
37250 * config/aarch64/aarch64.md
37251 (*cstoresi_neg_uxtw): New pattern.
37252 (*cmovsi_insn_uxtw): New pattern.
37253 (*<optab>si3_uxtw): New pattern.
37254 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
37255 (*<optab>si3_insn_uxtw): New pattern.
37256 (*bswapsi2_uxtw): New pattern.
37258 2013-01-16 Richard Biener <rguenther@suse.de>
37260 * tree-inline.c (tree_function_versioning): Remove set but
37261 never used variable.
37263 2013-01-16 Richard Biener <rguenther@suse.de>
37265 PR tree-optimization/55964
37266 * tree-flow.h (rename_variables_in_loop): Remove.
37267 (rename_variables_in_bb): Likewise.
37268 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
37269 (copy_loop_before): Adjust and delete update-ssa status.
37270 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
37271 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
37272 (rename_variables_in_loop): Remove.
37273 (slpeel_update_phis_for_duplicate_loop): Likewise.
37274 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
37275 use available cfg machinery instead of duplicating it.
37276 Update PHI nodes and perform poor-mans SSA update here.
37277 (slpeel_tree_peel_loop_to_edge): Adjust.
37279 2013-01-16 Richard Biener <rguenther@suse.de>
37281 PR tree-optimization/54767
37282 PR tree-optimization/53465
37283 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
37284 (vrp_visit_phi_node): For PHI arguments coming via backedges
37285 drop all symbolical range information.
37286 (execute_vrp): Compute backedges.
37288 2013-01-16 Richard Biener <rguenther@suse.de>
37290 * doc/install.texi: Update CLooG and ISL requirements to
37293 2013-01-16 Christian Bruel <christian.bruel@st.com>
37296 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
37297 (broken_move): Handle UNSPECV_SP_SWITCH_B.
37298 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
37300 2013-01-16 DJ Delorie <dj@redhat.com>
37302 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
37303 (UNSPECV_SP_SWITCH_E): New.
37304 (sp_switch_1): Change to an unspec.
37305 (sp_switch_2): Change to an unspec. Don't use post-inc when we
37308 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
37310 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
37311 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
37312 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
37313 (expand_mem_thread_fence): Ditto.
37314 (expand_mem_signal_fence): Ditto.
37315 (expand_atomic_load): Ditto.
37316 (expand_atomic_store): Ditto.
37318 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
37320 PR rtl-optimization/55547
37321 PR rtl-optimization/53827
37324 * alias.c (memrefs_conflict_p): Set sizes to negative after
37327 2013-01-15 Jakub Jelinek <jakub@redhat.com>
37330 * function.c (thread_prologue_and_epilogue_insns): Always
37331 add crtl->drap_reg to set_up_by_prologue.set, even if
37332 stack_realign_drap is false.
37334 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
37336 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
37337 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
37338 *call): Fix indention.
37340 2013-01-15 Tom de Vries <tom@codesourcery.com>
37343 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
37346 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
37348 PR rtl-optimization/55153
37349 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
37351 2013-01-15 Martin Jambor <mjambor@suse.cz>
37353 PR tree-optimization/55920
37354 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
37355 accesses as grp_to_be_debug_replaced.
37357 2013-01-15 Jakub Jelinek <jakub@redhat.com>
37359 PR tree-optimization/55920
37360 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
37361 there is non-useless type conversion needed from debug rhs to lhs,
37362 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
37364 2013-01-15 Joseph Myers <joseph@codesourcery.com>
37365 Mikael Pettersson <mikpe@it.uu.se>
37368 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
37370 (ASM_OUTPUT_CASE_LABEL): Remove.
37371 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
37372 * final.c (shorten_branches): Update alignment of labels before
37373 jump tables if CASE_VECTOR_SHORTEN_MODE.
37375 2013-01-15 Richard Biener <rguenther@suse.de>
37378 * system.h: Do not include gmp.h for building host tools.
37380 2013-01-15 Richard Biener <rguenther@suse.de>
37382 PR middle-end/55882
37383 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
37384 account for bitpos when computing alignment.
37386 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
37388 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
37389 (ix86_target_macros_internal): Likewise.
37391 * config/i386/i386.c (m_CORE2I7): Removed.
37392 (m_CORE_HASWELL): New macro.
37393 (m_CORE_ALL): Likewise.
37394 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
37395 (initial_ix86_arch_features): Likewise.
37396 (processor_target_table): Initializations for Core avx2.
37397 (cpu_names): New names "core-avx2".
37398 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
37399 PROCESSOR_CORE_HASWELL.
37400 (ix86_issue_rate): New case.
37401 (ia32_multipass_dfa_lookahead): Likewise.
37402 (ix86_sched_init_global): Likewise.
37404 * config/i386/i386.h (TARGET_HASWELL): New macro.
37405 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
37406 (processor_type): New PROCESSOR_HASWELL.
37408 2013-01-15 Jakub Jelinek <jakub@redhat.com>
37410 PR tree-optimization/55955
37411 * tree-vect-loop.c (vectorizable_reduction): Give up early on
37412 *SHIFT_EXPR and *ROTATE_EXPR codes.
37414 PR tree-optimization/48766
37415 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
37416 -ftrapv disable -fwrapv.
37418 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
37421 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
37422 etc. to 1 and not to __flash.
37423 Use LL suffix for __INT24_MAX__ with -mint8.
37424 Use ULL suffix for __UINT24_MAX__ with -mint8.
37426 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
37428 * config/avr/avr-arch.h
37429 (struct base_arch_s): Use typedef avr_arch_t instead.
37430 (struct arch_info_s): Use typedef avr_arch_info_t instead.
37431 (struct mcu_type_s): Use typedef avr_mcu_t instead.
37432 * config/avr/avr.c: Same.
37433 * config/avr/avr-devices.c: Same.
37434 * config/avr/driver-avr.c: Same.
37435 * config/avr/gen-avr-mmcu-texi.c: Same.
37436 * config/avr/avr-mcus.def: Adjust comment.
37438 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
37440 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
37441 * config/aarch64/iterators.md (VALLDI): New.
37443 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
37444 Andi Kleen <ak@linux.intel.com>
37447 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
37448 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
37451 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
37453 * config/avr/avr-stdint.h: Remove trailing blanks.
37454 * config/avr/avr-log.h: Same.
37455 * config/avr/avr-arch.h: Same.
37456 * config/avr/avr-devices.c: Same.
37457 * config/avr/avr-dimode.md: Same.
37458 * config/avr/predicates.md: Same.
37459 * config/avr/avr-c.c: Same. And fix typo.
37461 * config/avr/avr-protos.h: Same. And:
37462 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
37463 (init_cumulative_args): Rename to avr_init_cumulative_args.
37464 (expand_prologue): Rename to avr_expand_prologue.
37465 (expand_epilogue): Rename to avr_expand_epilogue.
37466 (adjust_insn_length): Rename to avr_adjust_insn_length.
37467 (notice_update_cc): Rename to avr_notice_update_cc.
37468 (final_prescan_insn): Rename to avr_final_prescan_insn.
37469 * config/avr/avr.c: Same.
37470 * config/avr/avr.h: Same.
37471 * config/avr/avr.md: Remove trailing blanks.
37472 (prologue): Use avr_expand_prologue.
37473 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
37475 2013-01-14 Richard Biener <rguenther@suse.de>
37477 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
37478 verify_location, collect_subblocks): New functions.
37479 (verify_gimple_in_cfg): Verify that locations only reference
37480 BLOCKs in the functions BLOCK tree.
37482 2013-01-14 Richard Biener <rguenther@suse.de>
37484 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
37486 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
37488 (insert_out_of_ssa_copy_on_edge): Likewise.
37489 (rewrite_close_phi_out_of_ssa): Likewise.
37490 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
37492 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
37493 propagated constants.
37494 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
37497 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
37499 * config/avr/avr-modes.def: Add GPL copyright notice.
37501 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
37503 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
37504 MEMMODEL_MASK to determine memory model.
37505 (atomic_store<mode>): Ditto from operands[2].
37506 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
37508 2013-01-13 Jakub Jelinek <jakub@redhat.com>
37511 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
37512 (fold_gimple_assign): Don't call unshare_expr here.
37513 (fold_ctor_reference): Call unshare_expr.
37515 2013-01-13 Terry Guo <terry.guo@arm.com>
37517 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
37518 * doc/fragments.texi: Document MULTILIB_REUSE.
37519 * gcc.c (multilib_reuse): New internal spec.
37520 (set_multilib_dir): Also search multilib from multilib_reuse.
37521 * genmultilib (tmpmultilib3): Refactor code.
37522 (tmpmultilib4): Ditto.
37523 (multilib_reuse): New multilib argument.
37525 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
37527 * Makefile.in: Update copyright.
37529 2013-01-12 Tom de Vries <tom@codesourcery.com>
37531 PR middle-end/55890
37532 * calls.c (expand_call): Check if arg_nr is valid.
37534 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
37536 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
37537 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
37538 documentation. Add missing '__' in front of
37539 __builtin_ia32_packssdw256.
37541 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
37544 * config/s390/s390.c (s390_preferred_reload_class): Do not return
37545 NO_REGS for larl operands.
37546 (s390_reload_larl_operand): Use s390_load_address instead of
37549 2013-01-11 Richard Biener <rguenther@suse.de>
37551 * tree-cfg.c (verify_node_sharing_1): Split out from ...
37552 (verify_node_sharing): ... here.
37553 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
37555 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
37557 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
37558 Substitute TREECHECKING.
37559 * configure: Regenerate.
37560 * Makefile.in (TREECHECKING): New.
37562 2013-01-11 Richard Guenther <rguenther@suse.de>
37564 PR tree-optimization/44061
37565 * tree-vrp.c (extract_range_basic): Compute zero as
37566 value-range for __builtin_constant_p of function parameters.
37568 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
37570 Update copyright years.
37572 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
37574 PR rtl-optimization/55672
37575 * lra-eliminations.c (mark_not_eliminable): Permit addition with
37576 const to be eliminable.
37578 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
37580 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
37581 * configure: Regenerate.
37583 2013-01-10 Richard Biener <rguenther@suse.de>
37585 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
37587 2013-01-10 Richard Biener <rguenther@suse.de>
37590 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
37591 locations for virtual PHI arguments.
37592 (rewrite_update_phi_arguments): Likewise.
37594 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
37596 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
37599 2013-01-10 Jakub Jelinek <jakub@redhat.com>
37601 PR tree-optimization/55921
37602 * tree-complex.c (expand_complex_asm): New function.
37603 (expand_complex_operations_1): Call it for GIMPLE_ASM.
37605 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
37608 * config/s390/s390.c (s390_symref_operand_p)
37609 (s390_loadrelative_operand_p): Merge the two functions.
37610 (s390_check_qrst_address, print_operand_address): Add parameters
37611 to s390_loadrelative_operand_p invokation.
37612 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
37613 (s390_reload_larl_operand, s390_secondary_reload): Use
37614 s390_loadrelative_operand_p instead of s390_symref_operand_p.
37615 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
37617 2013-01-09 Mike Stump <mikestump@comcast.net>
37619 * dse.c (record_store): Remove unnecessary assert.
37621 2013-01-09 Jan Hubicka <jh@suse.cz>
37623 PR tree-optimization/55569
37624 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
37625 * cfgloop.h (scale_loop_profile): Likewise.
37627 2013-01-09 Jan Hubicka <jh@suse.cz>
37630 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
37632 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
37634 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
37636 PR middle-end/55114
37637 * expr.h (maybe_emit_group_store): Declare.
37638 * expr.c (maybe_emit_group_store): New function.
37639 * builtins.c (expand_builtin_int_roundingfn): Call it.
37640 (expand_builtin_int_roundingfn_2): Likewise.
37642 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
37644 PR rtl-optimization/55829
37645 * lra-constraints.c (match_reload): Add code for absent output.
37646 (curr_insn_transform): Add code for reloads of matched inputs
37649 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
37651 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
37652 attribute of movddup insn to DF.
37653 (*vec_interleave_lowv2df): Ditto.
37654 (vec_dupv2df): Ditto.
37656 2013-01-09 Jan Hubicka <jh@suse.cz>
37658 PR tree-optimiation/55875
37659 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
37660 EVERY_ITERATION parameter.
37661 (number_of_iterations_exit): Check if exit is executed every iteration.
37662 (idx_infer_loop_bounds): Similarly here.
37663 (n_of_executions_at_most): Simplify
37664 to only test for cases where statement is dominated by the
37665 particular bound; handle correctly the "postdominance" test.
37666 (scev_probably_wraps_p): Use max loop iterations info
37667 as a global bound first.
37669 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
37670 Nick Clifton <nickc@redhat.com>
37672 * config/v850/v850.md (cbranchsf4): New pattern.
37673 (cstoresf4): New pattern.
37674 (cbranchdf4): New pattern.
37675 (cstoredf4): New pattern.
37676 (movsicc): Disallow floating point comparisons.
37677 (cmpsf_le_insn): Fix order of operators.
37678 (cmpsf_lt_insn): Likewise.
37679 (cmpsf_eq_insn): Likewise.
37680 (cmpdf_le_insn): Likewise.
37681 (cmpdf_lt_insn): Likewise.
37682 (cmpdf_eq_insn): Likewise.
37683 (cmpsf_ge_insn): Use LE comparison.
37684 (cmpdf_ge_insn): Likewise.
37685 (cmpsf_gt_insn): Use LT comparison.
37686 (cmpdf_gt_insn): Likewise.
37687 (cmpsf_ne_insn): Delete pattern.
37688 (cmpdf_ne_insn): Delete pattern.
37689 * config/v850/v850.c (v850_gen_float_compare): Use
37690 gen_cmpdf_eq_insn for NE comparison.
37691 (v850_float_z_comparison_operator)
37692 (v850_float_nz_comparison_operator): Move from here ...
37693 * config/v850/predicates.md: ... to here. Move GT and GE
37694 comparisons into v850_float_z_comparison_operator.
37695 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
37697 (v850_float_nz_comparison_operator): Likewise.
37699 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
37701 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
37702 with calls to gen_insvsi/gen_insvdi.
37704 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
37706 * config/i386/i386.c (initial_ix86_tune_features): Set up
37707 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
37709 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
37710 Jakub Jelinek <jakub@redhat.com>
37712 PR tree-optimization/48189
37713 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
37714 If nitercst is 0, don't predict the exit edge.
37716 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
37718 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
37719 in asm_fprintf with reg_names.
37720 (aarch64_print_operand_address): Likewise.
37721 (aarch64_return_addr): Likewise.
37722 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
37724 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
37726 * config/pa/pa.h (VAL_U6_BITS_P): Define.
37727 (INT_U6_BITS): Likewise.
37728 * config/pa/predicates.md (uint6_operand): New predicate.
37729 (shift5_operand, shift6_operand): Likewise.
37730 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
37732 (lshrdi3): Use shift6_operand.
37733 (shrpsi4, shrpdi4): New insn patterns.
37734 (extzv): Delete expander.
37735 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
37736 predicates in unamed zero extract patterns. Tighten common constraint.
37737 (extv): Delete expander.
37738 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
37739 predicates in unamed sign extract patterns. Tighten common constraint.
37740 (insv): Delete expander.
37741 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
37742 predicates in unamed insert patterns. Tighten common constraint.
37743 Change uint32_operand predicate to uint6_operand predicate in unamed
37744 DImode pattern to insert constant values of type 1...1xxxx.
37746 2013-01-04 Jan Hubicka <jh@suse.cz>
37748 PR tree-optimization/55823
37749 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
37752 2013-01-08 Jakub Jelinek <jakub@redhat.com>
37753 Uros Bizjak <ubizjak@gmail.com>
37755 PR rtl-optimization/55845
37756 * df-problems.c (can_move_insns_across): Stop scanning at
37757 volatile_insn_p source instruction or give up if
37758 across_from .. across_to range contains any volatile_insn_p
37761 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
37763 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
37764 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
37766 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
37767 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
37769 2013-01-08 Jakub Jelinek <jakub@redhat.com>
37772 * asan.c (asan_clear_shadow): New function.
37773 (asan_emit_stack_protection): Use it.
37775 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
37777 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
37778 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
37779 with tab instead of space.
37781 2013-01-08 Nick Clifton <nickc@redhat.com>
37783 * config/rl78/rl78.c (rl78_expand_prologue): Always select
37784 register bank 0 at the start of an interrupt handler.
37785 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
37788 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
37790 * config/aarch64/aarch64-simd.md
37791 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
37792 (aarch64_simd_bsl): Likewise.
37793 (aarch64_vcond_internal<mode>): Likewise.
37794 (vcond<mode><mode>): Likewise.
37795 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
37796 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
37798 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
37800 * config/aarch64/aarch64-builtins.c
37801 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
37803 2013-01-08 Martin Jambor <mjambor@suse.cz>
37806 * tree-sra.c (analyze_access_subtree): Return true also after
37807 potentially creating a debug-only replacement.
37809 2013-01-08 Jakub Jelinek <jakub@redhat.com>
37811 PR middle-end/55890
37812 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
37814 PR tree-optimization/54120
37815 * tree-vrp.c (range_fits_type_p): Don't allow
37816 src_precision < precision from signed vr to unsigned_p
37817 if vr->min or vr->max is negative.
37818 (simplify_float_conversion_using_ranges): Test can_float_p
37819 against CODE_FOR_nothing.
37821 2013-01-08 Jakub Jelinek <jakub@redhat.com>
37822 Richard Biener <rguenther@suse.de>
37824 PR middle-end/55851
37825 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
37826 types instead of just INTEGER_TYPE types.
37828 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
37830 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
37833 2013-01-07 Steve Ellcey <sellcey@mips.com>
37836 * config/mips/mips.opt: Change mad to mmad to match documentation.
37838 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
37841 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
37842 .progmemx.data now.
37844 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
37847 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
37848 (avr_addrspace_t): Add .section_name field.
37849 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
37851 (avr_addrspace): Same. Initialize .section_name. Remove last
37852 NULL entry. Put __memx into .progmemx.data.
37853 (progmem_section_prefix): Remove.
37854 (avr_asm_init_sections): No need to initialize progmem_section.
37855 (avr_asm_named_section): Use avr_addrspace[].section_name to get
37856 section name prefix.
37857 (avr_asm_select_section): Ditto. And use get_unnamed_section to
37858 retrieve the progmem section.
37859 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
37860 boundary to run over avr_addrspace[].
37861 (avr_register_target_pragmas): Ditto.
37863 2013-01-06 Jakub Jelinek <jakub@redhat.com>
37865 * varasm.c (output_constant_def_contents): For asan_protect_global
37866 protected strings, adjust DECL_ALIGN if needed, before testing for
37868 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
37869 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
37871 (output_object_block): For asan protected decls, emit asan padding
37872 after their contents.
37873 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
37874 (asan_finish_file): Test it here instead.
37876 2013-01-07 Nick Clifton <nickc@redhat.com>
37877 Matthias Klose <doko@debian.org>
37878 Doug Kwan <dougkwan@google.com>
37879 H.J. Lu <hongjiu.lu@intel.com>
37882 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
37884 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
37886 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
37888 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
37890 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
37892 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
37895 * doc/install.texi (Cross-Compiler-Specific Options): Document
37898 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
37900 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
37901 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
37902 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
37903 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
37904 vqmovun_high_s64): Fix source operand number and update copyright.
37906 2013-01-07 Richard Biener <rguenther@suse.de>
37908 PR middle-end/55890
37909 * gimple.h (gimple_call_builtin_p): New overload.
37910 * gimple.c (validate_call): New function.
37911 (gimple_call_builtin_p): Likewise.
37912 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
37913 Use gimple_call_builtin_p.
37914 (find_func_clobbers): Likewise.
37915 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
37916 (strlen_optimize_stmt): Likewise.
37918 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
37920 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
37921 (vld1q_dup_*): Likewise.
37922 (vld1_*): Likewise.
37923 (vld1q_*): Likewise.
37924 (vld1_lane_*): Likewise.
37925 (vld1q_lane_*): Likewise.
37927 2013-01-07 Richard Biener <rguenther@suse.de>
37929 * lto-streamer.h (LTO_minor_version): Bump to 2.
37931 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
37933 * config/aarch64/aarch64-protos.h
37934 (aarch64_const_double_zero_rtx_p): Rename to...
37935 (aarch64_float_const_zero_rtx_p): ...this.
37936 (aarch64_float_const_representable_p): New.
37937 (aarch64_output_simd_mov_immediate): Likewise.
37938 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
37939 move immediate case.
37940 * config/aarch64/aarch64.c
37941 (aarch64_const_double_zero_rtx_p): Rename to...
37942 (aarch64_float_const_zero_rtx_p): ...this.
37943 (aarch64_print_operand): Allow printing of new constants.
37944 (aarch64_valid_floating_const): New.
37945 (aarch64_legitimate_constant_p): Check for valid floating-point
37947 (aarch64_simd_valid_immediate): Likewise.
37948 (aarch64_vect_float_const_representable_p): New.
37949 (aarch64_float_const_representable_p): Likewise.
37950 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
37951 (aarch64_output_simd_mov_immediate): New.
37952 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
37953 (*movdf_aarch64): Likewise.
37954 * config/aarch64/constraints.md (Ufc): New.
37955 (Y): call aarch64_float_const_zero_rtx.
37956 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
37958 2013-01-07 Richard Biener <rguenther@suse.de>
37960 PR tree-optimization/55888
37961 PR tree-optimization/55862
37962 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
37963 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
37964 not if it is contained therein.
37966 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
37968 * config/avr/t-avr: Typo.
37970 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
37973 * config/avr/t-avr: Don't automatically rebuild
37974 $(srcdir)/config/avr/t-multilib
37975 $(srcdir)/config/avr/avr-tables.opt
37976 $(srcdir)/doc/avr-mmcu.texi
37977 (avr-mcus): New phony target to build them on request.
37978 (s-avr-mlib, s-avr-mmcu-texi): Remove.
37979 * avr/avr-mcus.def: Adjust comments.
37981 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
37983 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
37985 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
37987 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
37989 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
37991 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
37993 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
37995 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
37996 to generate profiling.
37997 * config/rs6000/aix64.h (LIB_SPEC): Same.
37999 2013-01-04 Andrew Pinski <apinski@cavium.com>
38001 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
38003 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
38005 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
38007 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
38009 (ix86_expand_move): Ditto.
38010 (ix86_zero_extend_to_Pmode): Ditto.
38011 (ix86_expand_call): Ditto.
38012 (ix86_expand_special_args_builtin): Ditto.
38013 (ix86_expand_builtin): Ditto.
38015 2013-01-04 Richard Biener <rguenther@suse.de>
38017 PR tree-optimization/55862
38018 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
38019 translating them through PHI nodes.
38021 2013-01-04 Martin Jambor <mjambor@suse.cz>
38023 PR tree-optimization/55755
38024 * tree-sra.c (sra_modify_assign): Do not check that an access has no
38025 children when trying to avoid producing a VIEW_CONVERT_EXPR.
38027 2013-01-04 Marek Polacek <polacek@redhat.com>
38029 PR middle-end/55859
38030 * opts.c (default_options_optimization): Clarify error message.
38032 2013-01-04 Richard Biener <rguenther@suse.de>
38034 PR middle-end/55863
38035 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
38038 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
38041 * config/pa/pa.md (movsi): Revert previous change.
38042 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
38045 2013-01-03 Richard Henderson <rth@redhat.com>
38047 * config/i386/i386.c (ix86_expand_move): Always assign to op1
38048 after eliminating TLS symbols.
38050 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
38053 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
38054 * graphite-poly.c (debug_gmp_value): Likewise.
38056 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
38059 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
38060 selected code model, define __code_mode_small__, __code_model_medium__,
38061 __code_model_large__, __code_model_32__ or __code_model_kernel__.
38062 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
38063 xchg temporary register with %k. Declare temporary register as
38065 [__x86_64__]: For medium and large code models, preserve %rbx register.
38067 2013-01-03 Richard Biener <rguenther@suse.de>
38069 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
38070 (dump_subscript): Adjust.
38071 (finalize_ddr_dependent): Do not dump redundant info.
38072 (analyze_siv_subscript): Adjust.
38073 (subscript_dependence_tester): Likewise.
38074 (compute_affine_dependence): Likewise.
38076 2013-01-03 Richard Biener <rguenther@suse.de>
38079 2013-01-03 Richard Biener <rguenther@suse.de>
38081 PR tree-optimization/55857
38082 * tree-vect-stmts.c (vectorizable_load): Do not setup
38083 re-alignment for invariant loads.
38085 2013-01-02 Richard Biener <rguenther@suse.de>
38087 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
38088 invariant load do not generate a vector load from the scalar location.
38090 2013-01-03 Richard Biener <rguenther@suse.de>
38092 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
38093 for not vectorizing.
38094 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
38095 not build INDIRECT_REFs, call get_name once only.
38096 (vect_create_data_ref_ptr): Likewise. Dump base object kind
38097 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
38099 2013-01-03 Richard Biener <rguenther@suse.de>
38101 PR tree-optimization/55857
38102 * tree-vect-stmts.c (vectorizable_load): Do not setup
38103 re-alignment for invariant loads.
38105 2013-01-03 Richard Biener <rguenther@suse.de>
38108 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
38109 prefer a built-in decl.
38111 2013-01-03 Jakub Jelinek <jakub@redhat.com>
38113 * gcc.c (process_command): Update copyright notice dates.
38114 * gcov.c (print_version): Likewise.
38115 * gcov-dump.c (print_version): Likewise.
38117 PR rtl-optimization/55838
38118 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
38119 iv0.step, iv1.step and step.
38121 2013-01-03 Jakub Jelinek <jakub@redhat.com>
38122 Marc Glisse <marc.glisse@inria.fr>
38124 PR tree-optimization/55832
38125 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
38126 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
38127 integer_{one,zero}_node.
38129 2013-01-03 Jakub Jelinek <jakub@redhat.com>
38132 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
38133 * var-tracking.c (reverse_op): Don't add reverse ops to
38134 VALUEs that have already
38135 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
38137 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
38139 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
38141 2013-01-02 Teresa Johnson <tejohnson@google.com>
38143 * dumpfile.c (dump_loc): Print filename with location.
38144 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
38145 new location_t parameter to emit complete unroll message with
38146 new dump framework.
38147 (canonicalize_loop_induction_variables): Compute loops location
38148 and pass to try_unroll_loop_completely.
38149 * loop-unroll.c (report_unroll_peel): New function.
38150 (peel_loops_completely): Use new dump format with location
38151 for main dumpfile message, and invoke report_unroll_peel on success.
38152 (decide_unrolling_and_peeling): Ditto.
38153 (decide_peel_once_rolling): Remove old dumpfile message subsumed
38154 by report_unroll_peel.
38155 (decide_peel_completely): Ditto.
38156 (decide_unroll_constant_iterations): Ditto.
38157 (decide_unroll_runtime_iterations): Ditto.
38158 (decide_peel_simple): Ditto.
38159 (decide_unroll_stupid): Ditto.
38160 * cfgloop.c (get_loop_location): New function.
38161 * cfgloop.h (get_loop_location): Declare.
38163 2013-01-02 Sriraman Tallam <tmsriram@google.com>
38165 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
38168 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
38170 PR middle-end/55198
38171 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
38172 BLKmode objects when EXPAND_MEMORY is specified.
38174 2013-01-02 Sriraman Tallam <tmsriram@google.com>
38176 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
38178 (fold_builtin_cpu): Do not share cpu model decls across statements.
38180 2013-01-02 Jason Merrill <jason@redhat.com>
38183 * tree.c (build_array_type_1): Revert earlier change.
38185 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
38187 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
38189 * config/aarch64/aarch64-tune.md: Re-generate.
38191 2013-01-02 Richard Biener <rguenther@suse.de>
38193 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
38194 invariant load do not generate a vector load from the scalar location.
38196 2013-01-02 Richard Biener <rguenther@suse.de>
38199 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
38200 * configure: Regenerate.
38202 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
38204 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
38205 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
38206 (expand_builtin_int_roundingfn_2): Keep the original target around
38207 for the fallback case.
38209 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
38211 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
38212 to be clear for sign changes.
38214 2013-01-01 Jan Hubicka <jh@suse.cz>
38216 * ipa-inline-analysis.c: Fix formatting.
38218 2013-01-01 Jakub Jelinek <jakub@redhat.com>
38220 PR tree-optimization/55831
38221 * tree-vect-loop.c (get_initial_def_for_induction): Use
38222 gsi_after_labels instead of gsi_start_bb.
38224 Copyright (C) 2013 Free Software Foundation, Inc.
38226 Copying and distribution of this file, with or without modification,
38227 are permitted in any medium without royalty provided the copyright
38228 notice and this notice are preserved.