1 2013-11-19 Marek Polacek <polacek@redhat.com>
3 * opts.c (common_handle_option): Add -fsanitize=null option.
4 Turn off -fdelete-null-pointer-checks option when doing the
6 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
7 * tree-pass.h (make_pass_ubsan): Declare.
8 (make_pass_sanopt): Declare.
9 * timevar.def (TV_TREE_UBSAN): New timevar.
10 * passes.def: Add pass_sanopt and pass_ubsan.
11 * ubsan.h (ubsan_null_ckind): New enum.
12 (ubsan_mismatch_data): New struct.
13 (ubsan_expand_null_ifn): Declare.
14 (ubsan_create_data): Adjust declaration.
15 (ubsan_type_descriptor): Likewise.
16 * asan.c: Include "ubsan.h".
17 (pass_data_sanopt): New pass.
18 (execute_sanopt): New function.
19 (gate_sanopt): Likewise.
20 (make_pass_sanopt): Likewise.
21 (class pass_sanopt): New class.
22 * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
23 gimple-iterator.h and cfgloop.h.
24 (PROB_VERY_UNLIKELY): Define.
25 (tree_type_map_hash): New function.
26 (ubsan_type_descriptor): Add new parameter.
27 Improve type name generation.
28 (ubsan_create_data): Add new parameter. Add pointer data into
30 (ubsan_expand_null_ifn): New function.
31 (instrument_member_call): Likewise.
32 (instrument_mem_ref): Likewise.
33 (instrument_null): Likewise.
34 (ubsan_pass): Likewise.
35 (gate_ubsan): Likewise.
36 (make_pass_ubsan): Likewise.
37 (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
38 (class pass_ubsan): New class.
39 (pass_data_ubsan): New pass.
40 * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
41 * internal-fn.c (expand_UBSAN_NULL): New function.
42 * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
43 even when !flag_toplevel_reorder.
44 * internal-fn.def (UBSAN_NULL): New.
46 2013-11-19 Jan Hubicka <jh@suse.cz>
48 * cgraph.c (cgraph_create_indirect_edge): Use get_polymorphic_call_info.
49 * cgraph.h (cgraph_indirect_call_info): Add outer_type, maybe_in_construction
50 and maybe_derived_type.
51 * ipa-utils.h (ipa_polymorphic_call_context): New structure.
52 (ipa_dummy_polymorphic_call_context): New global var.
53 (possible_polymorphic_call_targets): Add context paramter.
54 (dump_possible_polymorphic_call_targets): Likewise; update
56 (possible_polymorphic_call_target_p): Likewise.
57 (get_polymorphic_call_info): New function.
58 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
59 (add_type_duplicate): Remove forgotten debug output.
60 (method_class_type): Add sanity check.
61 (maybe_record_node): Add FINALP parameter.
62 (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
63 by info by get_binfo_at_offset.
64 (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET parameters;
65 pass them to record-binfo.
66 (polymorphic_call_target_d): Add context and FINAL.
67 (polymorphic_call_target_hasher::hash): Hash context.
68 (polymorphic_call_target_hasher::equal): Compare context.
69 (free_polymorphic_call_targets_hash):
70 (get_class_context): New function.
71 (contains_type_p): New function.
72 (get_polymorphic_call_info): New function.
73 (walk_bases): New function.
74 (possible_polymorphic_call_targets): Add context parameter; honnor it.
75 (dump_possible_polymorphic_call_targets): Dump context.
76 (possible_polymorphic_call_target_p): Add context.
77 (update_type_inheritance_graph): Update comment.s
78 (ipa_set_jf_known_type): Assert that compoentn type is known.
79 (ipa_note_param_call): Do not tamper with offsets.
80 (ipa_analyze_indirect_call_uses): When offset is being changed; clear
82 (update_indirect_edges_after_inlining): Likewise.
83 (ipa_write_indirect_edge_info): Stream new fields.
84 (ipa_read_indirect_edge_info): Stream in new fields.
86 2013-11-19 Jan Hubicka <jh@suse.cz>
88 * tree-pretty-print.c (dump_generic_node): Print class type of
91 2013-11-19 Joey Ye <joey.ye@arm.com>
93 * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
94 * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
96 * config/arm/arm.c (arm_option_override): By default disable
97 -marm-pic-data-is-text-relative.
98 (legitimize_pic_address): Use arm_pic_data_is_text_relative.
99 (arm_assemble_integer): Likewise.
100 * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
101 New macro to initialize -marm-pic-data-is-text-relative.
103 2013-11-19 Bin Cheng <bin.cheng@arm.com>
105 * tree-ssa-loop-ivopts.c (enum ainc_type): New.
106 (address_cost_data): New field.
107 (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
108 Use ainc_costs for auto-increment rtx patterns.
111 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
113 * config/aarch64/aarch64.md: Remove v8type from all insns.
115 2013-11-19 Richard Biener <rguenther@suse.de>
117 PR tree-optimization/57517
118 * tree-predcom.c (combinable_refs_p): Verify the combination
119 is always executed when the refs are.
121 2013-11-19 Jeff Law <law@redhat.com>
123 * tree-ssa-threadupdate.c: Include ssa-iterators.h
124 (copy_phi_arg_into_existing_phi): New function.
125 (any_remaining_duplicated_blocks): Likewise.
126 (ssa_fix_duplicate_block_edges): Handle multiple duplicated
127 blocks on a jump threading path.
129 * tree-ssa-threadupdate.c (thread_through_loop_header): Do not
130 thread through a joiner which has the latch edge.
132 2013-11-19 Jan Hubicka <jh@suse.cz>
134 * md.texi (setmem): Document new parameter.
135 * optabs.c (maybe_gen_insn): Support 9 operands.
136 * builtins.c (determine_block_size): Add probable_max_size;
138 (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
140 * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
141 emit_block_move, clear_storage_hints, set_storage_via_setmem):
143 * expr.h (emit_block_move_hints, clear_storage_hints,
144 set_storage_via_setmem): Update prototype.
145 * i386.md (setmem, movmem patterns): Add 9th operand.
146 * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
147 * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
148 argument; pass it to decide_alg.
150 2013-11-19 David Malcolm <dmalcolm@redhat.com>
152 * basic-block.h (n_basic_blocks_for_function): Rename macro to...
153 (n_basic_blocks_for_fn): ...this.
155 (n_basic_blocks): Eliminate macro as work towards making uses of
158 * cfgloop.c (init_loops_structure): Update for renaming of
159 "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
160 * graph.c (draw_cfg_nodes_no_loops): Likewise.
161 * ipa-utils.c (ipa_merge_profiles): Likewise.
162 * lto-streamer-in.c (make_new_block): Likewise.
163 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
164 (dump_function_to_file): Likewise.
166 * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
167 macro with "n_basic_blocks_for_fn (cfun)".
168 * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
169 (duplicate_computed_gotos): Likewise.
170 (reorder_basic_blocks): Likewise.
171 * bt-load.c (augment_live_range): Likewise.
172 * cfg.c (expunge_block): Likewise.
173 (compact_blocks): Likewise.
174 * cfganal.c (single_pred_before_succ_order): Likewise.
175 (compute_idf): Likewise.
176 (flow_dfs_compute_reverse_init): Likewise.
177 (pre_and_rev_post_order_compute): Likewise.
178 (pre_and_rev_post_order_compute_fn): Likewise.
179 (inverted_post_order_compute): Likewise.
180 (post_order_compute): Likewise.
181 (print_edge_list): Likewise.
182 (find_unreachable_blocks): Likewise.
183 (mark_dfs_back_edges): Likewise.
184 * cfgcleanup.c (try_optimize_cfg): Likewise.
185 (try_forward_edges): Likewise.
186 * cfghooks.c (dump_flow_info): Likewise.
187 * cfgloop.c (verify_loop_structure): Likewise.
188 (get_loop_body): Likewise.
189 (flow_loops_find): Likewise.
190 * cfgloopmanip.c (add_loop): Likewise.
191 (remove_path): Likewise.
192 (find_path): Likewise.
193 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
194 (rtl_verify_bb_layout): Likewise.
195 (entry_of_function): Likewise.
196 (rtl_create_basic_block): Likewise.
197 * coverage.c (coverage_compute_cfg_checksum): Likewise.
198 * cprop.c (one_cprop_pass): Likewise.
199 (is_too_expensive): Likewise.
200 * df-core.c (df_compute_cfg_image): Likewise.
201 (df_compact_blocks): Likewise.
202 (df_worklist_dataflow_doublequeue): Likewise.
203 * dominance.c (calculate_dominance_info): Likewise.
204 (calc_dfs_tree): Likewise.
205 (calc_dfs_tree_nonrec): Likewise.
206 (init_dom_info): Likewise.
207 * domwalk.c (cmp_bb_postorder): Likewise.
208 * function.c (thread_prologue_and_epilogue_insns): Likewise.
209 (generate_setjmp_warnings): Likewise.
210 * fwprop.c (build_single_def_use_links): Likewise.
211 * gcse.c (is_too_expensive): Likewise.
212 (one_code_hoisting_pass): Likewise.
213 (one_pre_gcse_pass): Likewise.
214 * graphite.c (graphite_initialize): Likewise.
215 * haifa-sched.c (haifa_sched_init): Likewise.
216 * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
217 * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
218 * ira-build.c (ira_build): Likewise.
219 * lcm.c (compute_nearerout): Likewise.
220 (compute_available): Likewise.
221 (compute_laterin): Likewise.
222 (compute_antinout_edge): Likewise.
223 * lra-lives.c (lra_create_live_ranges): Likewise.
224 * lra.c (has_nonexceptional_receiver): Likewise.
225 * mcf.c (create_fixup_graph): Likewise.
226 * profile.c (branch_prob): Likewise.
227 * reg-stack.c (convert_regs_2): Likewise.
228 * regrename.c (regrename_analyze): Likewise.
229 * reload1.c (has_nonexceptional_receiver): Likewise.
230 * reorg.c (dbr_schedule): Likewise.
231 * sched-deps.c (sched_deps_init): Likewise.
232 * sched-ebb.c (schedule_ebbs): Likewise.
233 * sched-rgn.c (extend_regions): Likewise.
234 (schedule_insns): Likewise.
235 (sched_rgn_init): Likewise.
236 (extend_rgns): Likewise.
237 (haifa_find_rgns): Likewise.
238 * sel-sched-ir.c (recompute_rev_top_order): Likewise.
239 (sel_recompute_toporder): Likewise.
240 * sel-sched.c (run_selective_scheduling): Likewise.
241 * store-motion.c (one_store_motion_pass): Likewise.
242 (remove_reachable_equiv_notes): Likewise.
243 * tracer.c (tracer): Likewise.
244 (tail_duplicate): Likewise.
245 * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
246 (dump_cfg_stats): Likewise.
247 (gimple_dump_cfg): Likewise.
248 (create_bb): Likewise.
249 (build_gimple_cfg): Likewise.
250 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
251 * tree-inline.c (optimize_inline_calls): Likewise.
252 (fold_marked_statements): Likewise.
253 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
254 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
255 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
256 * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
257 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
258 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
259 * tree-ssa-pre.c (do_pre): Likewise.
260 (init_pre): Likewise.
261 (compute_avail): Likewise.
262 * tree-ssa-reassoc.c (init_reassoc): Likewise.
263 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
264 * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
265 (init_worklist): Likewise.
266 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
267 * var-tracking.c (variable_tracking_main_1): Likewise.
268 (vt_find_locations): Likewise.
269 (vt_stack_adjustments): Likewise.
270 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
271 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
273 2013-11-18 Jan Hubicka <jh@suse.cz>
275 * profile.c (compute_branch_probabilities): Do not sanity check run_max.
277 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
279 * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
281 * fold-const.c (fold_single_bit_test_into_sign_test)
282 (fold_binary_loc): Change GET_MODE_BITSIZE to
285 2013-11-18 Teresa Johnson <tejohnson@google.com>
287 * gcc/cfgrtl.c (cfg_layout_initialize): Assert if we
288 try to go into cfglayout after bb reordering.
289 * gcc/passes.def: Move compgotos before bb reordering
290 since it goes into cfglayout.
292 2013-11-18 Bernd Schmidt <bernds@codesourcery.com>
294 * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
295 * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
297 (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
298 make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
299 pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
300 * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
301 * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
302 Remove all_lto_gen_passes.
303 * passes.c (pass_manager::dump_passes): Remove its use.
304 (pass_manager::register_pass): Likewise.
305 (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
306 (pass_manager::pass_manager): Don't initialize or use it.
307 (write_lto): New static function.
308 (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
309 instead of using all_lto_gen_passes.
310 * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
311 pass_ipa_lto_finish_out): Delete.
312 * tree-pass.h (make_pass_ipa_lto_gimple_out,
313 make_pass_ipa_lto_finish_out): Don't declare.
315 2013-11-18 Jeff Law <law@redhat.com>
317 * tree-ssa-threadupdate.c (redirection_data): Record two
318 duplicated blocks instead of just one.
319 (local_info): Explain why we don't create a template for the
320 second duplicated block in a thread path.
321 (create_block_for_threading): Accept argument indicating array
322 index into redirection_data to store its result.
323 (lookup_redirection_data): Initialize both duplicate blocks.
324 (ssa_create_duplicates): If a jump threading path needs multiple
325 blocks duplicated, then duplicate them.
326 (ssa_fix_duplicate_block_edges): Corresponding changes.
327 (ssa_fixup_template_block, thread_single_edge): Likewise.
329 2013-11-18 Marek Polacek <polacek@redhat.com>
331 * doc/invoke.texi: Extend -fsanitize=undefined documentation.
333 2013-11-18 Andrew Pinski <apinski@cavium.com>
334 Steve Ellcey <sellcey@mips.com>
337 * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
338 type restriction from equality_operator on conditonal move.
339 (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
340 (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
342 2013-11-18 Jeff Law <law@redhat.com>
344 * tree-ssa-threadupdate.c: Fix file block comment.
345 Fix minor indention issue.
347 2013-11-18 Uros Bizjak <ubizjak@gmail.com>
349 * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
350 ix86_address_subreg_operand. Move subreg checks to
351 ix86_validate_address_register. Move address override check to
352 ix86_legitimate_address_p.
353 (ix86_validate_address_register): New function.
354 (ix86_legitimate_address_p): Call ix86_validate_address_register
355 to validate base and index registers. Add address override check
356 from ix86_decompose_address.
357 (ix86_decompose_address): Remove.
359 2013-11-18 Richard Biener <rguenther@suse.de>
361 PR tree-optimization/59125
362 PR tree-optimization/54570
363 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
364 is not complete do not treat component-references with offset zero
365 but different fields as equal.
366 * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
367 (compute_object_sizes): Apply TLC. Propagate the constant
368 results into all uses and fold their stmts.
369 * passes.def (pass_all_optimizations): Move pass_object_sizes
370 after the first pass_forwprop and before pass_fre.
372 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
374 * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
375 * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
376 (tree_ctz): Remove cast to unsigned type.
377 * builtins.c (fold_builtin_memory_op): Likewise.
378 * dwarf2out.c (descr_info_loc): Likewise.
379 * godump.c (go_output_typedef): Likewise.
380 * omp-low.c (expand_omp_simd): Likewise.
381 * stor-layout.c (excess_unit_span): Likewise.
382 * tree-object-size.c (addr_object_size): Likewise.
383 * tree-sra.c (analyze_all_variable_accesses): Likewise.
384 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
385 (simplify_rotate): Likewise.
386 * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
387 (handle_pointer_plus): Likewise.
388 * tree-switch-conversion.c (check_range): Likewise.
389 * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
390 * tsan.c (instrument_builtin_call): Likewise.
391 * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
392 * trans-mem.c (tm_log_add): Likewise.
393 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
394 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
395 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
396 * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
398 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
400 * tree.h (host_integerp, tree_low_cst): Delete.
401 * tree.c (host_integerp, tree_low_cst): Delete.
403 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
405 * expr.h: Update comments to refer to tree_to_[su]hwi rather
407 * fold-const.c (fold_binary_loc): Likewise.
408 * expr.c (store_constructor): Use tree_to_uhwi rather than
410 * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
411 * stmt.c (emit_case_dispatch_table): Likewise.
412 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
414 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
416 * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
417 config/aarch64/aarch64.c, config/alpha/predicates.md,
418 config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
419 config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
420 config/mep/mep-pragma.c, config/mips/mips.c,
421 config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
422 dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
423 function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
424 predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
425 tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
426 tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
427 tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
428 tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
429 tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
430 Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
432 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
434 * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
435 config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
436 config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
437 coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
438 fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
439 predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
440 tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
441 tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
442 tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
443 tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
444 Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
446 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
448 * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
449 * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
451 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
453 * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
456 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
458 * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
459 config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
460 gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
461 tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
462 tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
463 tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
464 tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
465 config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
466 config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
467 config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
468 gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
469 tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
470 tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
471 tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
472 tree_fits_uhwi_p throughout.
474 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
476 * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
477 config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
478 config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
479 expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
480 gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
481 omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
482 stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
483 tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
484 tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
485 tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
486 tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
487 tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
488 varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
491 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
493 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
494 * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
496 2013-11-18 Kirill Yukhin <kirill.yukhin@intel.com>
498 * gcc/config/ia64/ia64.c (ia64_split_tmode_move): Mark load with
499 `dead' flag if it kills address, not its post-increment.
501 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
503 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
504 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
505 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
506 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
507 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
508 (gimple_call_with_bounds_p): New.
509 (gimple_call_set_with_bounds): New.
510 (gimple_call_num_nobnd_args): Remove.
511 (gimple_call_nobnd_arg): Remove.
512 * tree.h (CALL_WITH_BOUNDS_P): New.
513 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
515 2013-11-18 Trevor Saunders <tsaunders@mozilla.com>
517 * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
518 (symtab_node_name): Rename to symtab_node::name.
519 (cgraph_node_asm_name): Remove.
520 (varpool_node_asm_name): Remove.
521 * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
522 ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
523 ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
524 ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
525 tree-ssa-structalias.c value-prof.c varpool.c Adjust.
527 2013-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
529 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
530 * config/arm/arm.c (arm_cortex_a53_tune): New.
531 * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
533 2013-11-12 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
535 * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
536 (case ${target}): Add bdver4.
537 * config/i386/bdver3.md: Add bdver4.
538 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
539 -march=native recognize bdver4 processors.
540 * config/i386/i386-c.c (ix86_target_macros_internal): Add
542 * config/i386/i386.c (struct processor_costs bdver4_cost): New.
543 (m_BDVER4): New definition.
544 (m_AMD_MULTIPLE): Includes m_BDVER4.
545 (processor_target_table): Add bdver4 entry.
546 (static const char *const cpu_names): Add bdver4 entry.
547 (software_prefetching_beneficial_p): Add bdver3.
548 (ix86_option_override_internal): Add bdver4 instruction sets.
549 (ix86_issue_rate): Add bdver4.
550 (ix86_adjust_cost): Add bdver4.
551 (ia32_multipass_dfa_lookahead): Add bdver4.
552 (enum processor_model): Add M_AMDFAM15H_BDVER4.
553 (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
554 (has_dispatch): Add bdver4.
555 * config/i386/i386.h (TARGET_BDVER4): New definition.
556 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
557 (enum processor_type): Add PROCESSOR_BDVER4.
558 * config/i386/i386.md (define_attr "cpu"): Add bdver4.
559 * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
560 * gcc/doc/extend.texi: Add details about bdver4.
561 * gcc/doc/invoke.texi: Add details about bdver4. Add
562 fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
564 2013-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
566 * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
567 sdmode_stack_slot also in little-endian mode.
569 2013-11-17 Jan Hubicka <jh@suse.cz>
571 * doc/md.texi (setmem, movstr): Update documentation.
572 * builtins.c (determine_block_size): New function.
573 (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
574 (expand_builtin_memset_args): Use it and pass it to
575 set_storage_via_setmem.
576 * expr.c (emit_block_move_via_movmem): Add min_size/max_size
577 parameters; update call to expander.
578 (emit_block_move_hints): Add min_size/max_size parameters.
579 (clear_storage_hints): Likewise.
580 (set_storage_via_setmem): Likewise.
581 (clear_storage): Update.
582 * expr.h (emit_block_move_hints, clear_storage_hints,
583 set_storage_via_setmem): Update prototypes.
584 * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
585 (ix86_expand_movmem, ix86_expand_setmem): Remove.
586 (ix86_expand_movmem, ix86_expand_setmem): Remove.
587 * i386.md (movmem, setmem): Pass parameters.
589 2013-11-17 Uros Bizjak <ubizjak@gmail.com>
592 * config/i386/i386.c (ix86_address_subreg_operand): Do not
593 reject non-integer subregs.
594 (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
595 Move check for invalid x32 constant addresses ...
596 (ix86_legitimate_address_p): ... here.
598 2011-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
600 * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
601 parameter and use it in REG_FRAME_RELATED_EXPR note.
602 (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
604 (rs6000_emit_prologue): Likewise, but for little endian VSX
605 stores, pass the source register of the store instead.
607 2013-11-17 Andrew MacLeod <amacleod@redhat.com>
609 * gimple.h: Reorder prototypes to match .c declaration order, and
610 remove protyotypes for functions not in gimple.c.
611 (LABEL): Move to tree-into-ssa.c.
612 * gimple.c: Remove unused prototypes.
613 (get_base_address): Move to tree.c.
614 * tree.c (get_base_address): Relocate from gimple.c.
615 * builtins.h (validate_gimple_arglist): Add prototype.
616 * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
617 * cfgexpand.h: New File.
618 (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
619 * tree.h (build_addr): Move to tree-nested.h.
620 * tree-nested.h: New File.
621 (build_addr, lower_nested_functions, insert_field_into_struct): Add
623 * tree-inline.h (estimated_stack_frame_size): Remove prototype.
624 * ipa-inline-analysis.c: Include cfgexpand.h.
625 * cgraphunit.c: Include tree-nested.h.
626 * omp-low.c: Likewise.
627 * tree-parloops.c: Likewise.
628 * gimple-low.h: Likewise.
629 * tree-profile.h: Likewise.
630 * expr.c: Include cfgexpand.h.
631 * tree-affine.c: Likewise.
632 * tree-ssa.c: Likewise.
633 * tree-ssa-loop-im.c: Include trans-mem.h.
634 * tree-ssa-tail-merge.c: Likewise.
635 * value-prof.c: Include builtins.h and tree-nested.h.
636 * tree-into-ssa.c (LABEL): Define here.
638 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
640 * config/arc/arc.c (arc_predicate_delay_insns): New function.
641 (pass_data_arc_predicate_delay_insns): New pass_data instance.
642 (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
643 (make_pass_arc_predicate_delay_insns): New function.
644 (arc_init): Register pass_arc_predicate_delay_insns if
645 flag_delayed_branch is active.
647 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
649 * config/arc/constraints.md (Rcq): Simplify register number test.
651 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
653 * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
655 2013-11-15 Kaz Kojima <kkojima@gcc.gnu.org>
657 * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
660 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
662 * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
663 * gimple-pretty-print.c (dump_omp_for): Add case for
664 GF_OMP_FOR_KIND_CILKSIMD.
665 * gimple.h (enum gf_mask): Restructure entries to add
666 GF_OMP_FOR_KIND_CILKSIMD.
667 * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
668 (gimplify_omp_for): Handle CILK_SIMD.
669 (gimplify_expr): Add ccase for CILK_SIMD.
670 * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
671 (build_outer_var_ref): Same.
672 (check_omp_nesting_restrictions): Same.
673 (lower_rec_input_clauses): Same.
674 (lower_lastprivate_clauses): Same.
675 (expand_omp_for): Same.
676 (execute_expand_omp): Check flag_enable_cilkplus.
677 (execute_lower_omp): Same.
678 (diagnose_sb_0): Handle CILK_SIMD.
679 (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
680 (setjmp_or_longjmp_p): New.
681 (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
682 * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
683 * tree.def: Add tree code for CILK_SIMD.
685 2013-11-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
687 * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
689 (altivec_vperm_<mode>): Revert earlier little endian change.
690 (*altivec_vperm_<mode>_internal): Remove.
691 (altivec_vperm_<mode>_uns): Revert earlier little endian change.
692 (*altivec_vperm_<mode>_uns_internal): Remove.
693 * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
695 2013-11-15 Jeff Law <law@redhat.com>
697 * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
698 has_abnormal_or_outgoing_edge. Check for EH edges as well.
699 * gimple-ssa-isolate-paths.c
700 (find_implicit_erroneous_behaviour): Corresponding changes.
701 Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
702 (find_explicit_erroneous_behaviour): Likewise.
704 2013-11-15 Jeff Law <law@redhat.com>
706 * ifcvt.c (find_cond_trap): Properly handle case where
709 2013-11-15 Andreas Schwab <schwab@linux-m68k.org>
711 * configure: Regenerate.
713 2013-11-15 James Greenhalgh <james.greenhalgh@arm.com>
715 * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
716 * config/aarch64/aarch64.md: Likewise, correct "type" attribute
717 where it is incorrect or missing.
719 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
721 * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
723 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
724 Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
726 * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
727 pair with a TREE_CODE test and TREE_INT_CST_LOW.
728 * tree-vect-generic.c (expand_vector_divmod): Likewise.
730 2013-11-15 Richard Biener <rguenther@suse.de>
732 PR tree-optimization/50262
733 * tree-ssa-alias.h (struct pt_solution): Split
734 vars_contains_global into vars_contains_nonlocal,
735 vars_contains_escaped and vars_contains_escaped_heap.
736 * tree-ssa-structalias.c (label_visit): Expand comment.
737 (handle_lhs_call): Adjust comment.
738 (set_uids_in_ptset): Set the new flags appropriately.
739 (pt_solution_set): Adjust.
740 (pt_solution_set_var): Likewise.
741 (pt_solution_ior_into): Likewise.
742 (pt_solution_includes_global): Likewise.
743 (pt_solutions_intersect_1): Optimize escaped handling.
744 (compute_points_to_sets): Remove heap variable globalization.
745 (ipa_escaped_pt): Adjust initializer.
746 (pass_data_ipa_pta): Do not run TODO_update_ssa.
747 * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
748 * tree-ssa-alias.c (dump_points_to_solution): Likewise.
750 2013-11-15 Richard Biener <rguenther@suse.de>
752 * tree-loop-distribution.c (tree_loop_distribution): Make sure
753 to distribute all stores.
755 2013-11-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
757 * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
759 2013-11-15 Joseph Myers <joseph@codesourcery.com>
761 * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
762 * configure.ac: Determine target_header_dir earlier.
763 (--with-glibc-version): New configure option.
764 Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
765 gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
766 * configure: Regenerate.
767 * doc/install.texi (--enable-gnu-unique-object): Don't refer to
768 native toolchains for default.
769 (--with-glibc-version): Document.
771 2013-11-15 Eric Botcazou <ebotcazou@adacore.com>
773 * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
775 2013-11-15 Uros Bizjak <ubizjak@gmail.com>
777 * lto-streamer-in.c (input function): Call cgraph_create_node if
778 cgraph_get_node failed.
780 2013-11-14 Olivier Hainque <hainque@adacore.com>
782 * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
783 defer allocation of DECL_IGNORED_P variables at toplevel unless really
784 small. Factorize size threshold computation from the existing one.
785 (expand_used_vars): Refine comment.
787 2013-11-14 Cong Hou <congh@google.com>
789 * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
790 address field as it can be obtained from dr. Rename the struct.
791 * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
792 steps of data references during sort.
793 (vect_prune_runtime_alias_test_list): Adjust with the change to
794 struct dr_with_seg_len.
795 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
796 Adjust with the change to struct dr_with_seg_len.
798 2013-11-14 Jeff Law <law@redhat.com>
801 * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
802 * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
803 * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
804 (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
805 edges, then ignore it. If the statement exhibiting erroneous
806 behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
807 then we can not optimize.
808 (find_explicit_erroneous_behaviour): Likewise.
810 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
812 * gimplify-me.h: New file. Add prototypes.
813 * gimplify.h: Don't include gimple.h.
814 (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
815 Relocate from gimple.h.
816 * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
817 is_gimple_sizepos): Move to gimplify.h.
818 (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
819 (enum gsi_iterator_update): Move to gimple-iterator.h.
820 * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
821 * gimplify-me.c: New File.
822 (force_gimple_operand_1, force_gimple_operand,
823 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
824 gimple_regimplify_operands): Relocate from gimplify.c.
825 * gimplify.c (force_gimple_operand_1, force_gimple_operand,
826 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
827 gimple_regimplify_operands): Move to gimplify-me.c.
828 (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
830 * Makefile.in (OBJS): Add gimplify-me.o
831 * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
833 * cfgloopmanip.c: Likewise.
834 * cgraphunit.c: Likewise.
835 * cilk-common.c: Likewise.
836 * fold-const.c: Likewise.
837 * function.c: Likewise.
838 * gimple-expr.c: Likewise.
839 * gimple-fold.c: Likewise.
840 * gimple-ssa-strength-reduction.c: Likewise.
841 * gimple.c: Likewise.
842 * graphite-clast-to-gimple.c: Likewise.
843 * graphite-sese-to-poly.c: Likewise.
844 * ipa-prop.c: Likewise.
845 * ipa-split.c: Likewise.
847 * langhooks.c: Likewise.
848 * omp-low.c: Likewise.
850 * stor-layout.c: Likewise.
851 * targhooks.c: Likewise.
852 * trans-mem.c: Likewise.
853 * tree-affine.c: Likewise.
854 * tree-cfg.c: Likewise.
855 * tree-cfgcleanup.c: Likewise.
856 * tree-complex.c: Likewise.
857 * tree-if-conv.c: Likewise.
858 * tree-inline.c: Likewise.
859 * tree-loop-distribution.c: Likewise.
860 * tree-nested.c: Likewise.
861 * tree-parloops.c: Likewise.
862 * tree-predcom.c: Likewise.
863 * tree-profile.c: Likewise.
864 * tree-scalar-evolution.c: Likewise.
865 * tree-sra.c: Likewise.
866 * tree-ssa-address.c: Likewise.
867 * tree-ssa-ccp.c: Likewise.
868 * tree-ssa-dce.c: Likewise.
869 * tree-ssa-forwprop.c: Likewise.
870 * tree-ssa-ifcombine.c: Likewise.
871 * tree-ssa-loop-im.c: Likewise.
872 * tree-ssa-loop-ivopts.c: Likewise.
873 * tree-ssa-loop-manip.c: Likewise.
874 * tree-ssa-loop-niter.c: Likewise.
875 * tree-ssa-loop-prefetch.c: Likewise.
876 * tree-ssa-loop-unswitch.c: Likewise.
877 * tree-ssa-math-opts.c: Likewise.
878 * tree-ssa-phiopt.c: Likewise.
879 * tree-ssa-phiprop.c: Likewise.
880 * tree-ssa-pre.c: Likewise.
881 * tree-ssa-propagate.c: Likewise.
882 * tree-ssa-reassoc.c: Likewise.
883 * tree-ssa-sccvn.c: Likewise.
884 * tree-ssa-strlen.c: Likewise.
885 * tree-ssa.c: Likewise.
886 * tree-switch-conversion.c: Likewise.
887 * tree-tailcall.c: Likewise.
888 * tree-vect-data-refs.c: Likewise.
889 * tree-vect-generic.c: Likewise.
890 * tree-vect-loop-manip.c: Likewise.
891 * tree-vect-loop.c: Likewise.
892 * tree-vect-patterns.c: Likewise.
893 * tree-vect-stmts.c: Likewise.
896 * value-prof.c: Likewise.
897 * config/aarch64/aarch64.c: Likewise.
898 * config/alpha/alpha.c: Likewise.
899 * config/darwin.c: Likewise.
900 * config/i386/i386.c: Likewise.
901 * config/ia64/ia64.c: Likewise.
902 * config/mep/mep.c: Likewise.
903 * config/mips/mips.c: Likewise.
904 * config/rs6000/rs6000.c: Likewise.
905 * config/s390/s390.c: Likewise.
906 * config/sh/sh.c: Likewise.
907 * config/sparc/sparc.c: Likewise.
908 * config/spu/spu.c: Likewise.
909 * config/stormy16/stormy16.c: Likewise.
910 * config/tilegx/tilegx.c: Likewise.
911 * config/tilepro/tilepro.c: Likewise.
912 * config/xtensa/xtensa.c: Likewise.
914 2013-11-14 Diego Novillo <dnovillo@google.com>
916 * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
918 2013-11-14 Diego Novillo <dnovillo@google.com>
920 * tree.h: Include fold-const.h.
921 (aggregate_value_p): Moved to function.h.
922 (alloca_call_p): Moved to calls.h.
923 (allocate_struct_function): Moved to function.h.
924 (apply_tm_attr): Moved to attribs.h.
925 (array_at_struct_end_p): Moved to expr.h.
926 (array_ref_element_size): Moved to tree-dfa.h.
927 (array_ref_low_bound): Moved to tree-dfa.h.
928 (array_ref_up_bound): Moved to tree.h.
929 (assemble_alias): Moved to cgraph.h.
930 (bit_from_pos): Moved to stor-layout.h.
931 (build_addr): Moved to tree-nested.h.
932 (build_duplicate_type): Moved to tree-inline.h.
933 (build_fold_addr_expr): Moved to fold-const.h.
934 (build_fold_addr_expr_with_type): Moved to fold-const.h.
935 (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
936 (build_fold_indirect_ref): Moved to fold-const.h.
937 (build_fold_indirect_ref_loc): Moved to fold-const.h.
938 (build_personality_function): Moved to tree.h.
939 (build_range_check): Moved to fold-const.h.
940 (build_simple_mem_ref): Moved to fold-const.h.
941 (build_simple_mem_ref_loc): Moved to fold-const.h.
942 (build_tm_abort_call): Moved to trans-mem.h.
943 (byte_from_pos): Moved to stor-layout.h.
944 (call_expr_flags): Moved to calls.h.
945 (can_move_by_pieces): Moved to expr.h.
946 (categorize_ctor_elements): Moved to expr.h.
947 (change_decl_assembler_name): Moved to gcc-symtab.h.
948 (combine_comparisons): Moved to fold-const.h.
949 (complete_ctor_at_level_p): Moved to tree.h.
950 (component_ref_field_offset): Moved to tree-dfa.h.
951 (compute_builtin_object_size): Moved to tree-object-size.h.
952 (compute_record_mode): Moved to stor-layout.h.
953 (constant_boolean_node): Moved to fold-const.h.
954 (constructor_static_from_elts_p): Moved to varasm.h.
955 (cxx11_attribute_p): Moved to attribs.h.
956 (debug_body): Moved to print-tree.h.
957 (debug_find_tree): Moved to tree-inline.h.
958 (debug_fold_checksum): Moved to fold-const.h.
959 (debug_head): Moved to print-tree.h.
960 (debug_head): Moved to print-tree.h.
961 (debug_raw): Moved to print-tree.h.
962 (debug_tree): Moved to print-tree.h.
963 (debug_vec_tree): Moved to print-tree.h.
964 (debug_verbose): Moved to print-tree.h.
965 (debug_verbose): Moved to print-tree.h.
966 (decl_attributes): Moved to attribs.h.
967 (decl_binds_to_current_def_p): Moved to varasm.h.
968 (decl_default_tls_model): Moved to varasm.h.
969 (decl_replaceable_p): Moved to varasm.h.
970 (div_if_zero_remainder): Moved to fold-const.h.
971 (double_int mem_ref_offset): Moved to fold-const.h.
972 (dump_addr): Moved to print-tree.h.
973 (element_precision): Moved to machmode.h.
974 (expand_dummy_function_end): Moved to function.h.
975 (expand_function_end): Moved to function.h.
976 (expand_function_start): Moved to function.h.
977 (expand_label): Moved to stmt.h.
978 (expr_first): Moved to tree-iterator.h.
979 (expr_last): Moved to tree-iterator.h.
980 (finalize_size_functions): Moved to stor-layout.h.
981 (finish_builtin_struct): Moved to stor-layout.h.
982 (finish_record_layout): Moved to stor-layout.h.
983 (fixup_signed_type): Moved to stor-layout.h.
984 (fixup_unsigned_type): Moved to stor-layout.h.
985 (flags_from_decl_or_type): Moved to calls.h.
986 (fold): Moved to fold-const.h.
987 (fold_abs_const): Moved to fold-const.h.
988 (fold_binary): Moved to fold-const.h.
989 (fold_binary_loc): Moved to fold-const.h.
990 (fold_binary_to_constant): Moved to fold-const.h.
991 (fold_build1): Moved to fold-const.h.
992 (fold_build1_initializer_loc): Moved to fold-const.h.
993 (fold_build1_loc): Moved to fold-const.h.
994 (fold_build1_stat_loc): Moved to fold-const.h.
995 (fold_build2): Moved to fold-const.h.
996 (fold_build2_initializer_loc): Moved to fold-const.h.
997 (fold_build2_loc): Moved to fold-const.h.
998 (fold_build2_stat_loc): Moved to fold-const.h.
999 (fold_build3): Moved to fold-const.h.
1000 (fold_build3_loc): Moved to fold-const.h.
1001 (fold_build3_stat_loc): Moved to fold-const.h.
1002 (fold_build_call_array): Moved to fold-const.h.
1003 (fold_build_call_array_initializer): Moved to fold-const.h.
1004 (fold_build_call_array_initializer_loc): Moved to fold-const.h.
1005 (fold_build_call_array_loc): Moved to fold-const.h.
1006 (fold_build_cleanup_point_expr): Moved to fold-const.h.
1007 (fold_convert): Moved to fold-const.h.
1008 (fold_convert_loc): Moved to fold-const.h.
1009 (fold_convertible_p): Moved to fold-const.h.
1010 (fold_defer_overflow_warnings): Moved to fold-const.h.
1011 (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
1012 (fold_fma): Moved to fold-const.h.
1013 (fold_ignored_result): Moved to fold-const.h.
1014 (fold_indirect_ref): Moved to fold-const.h.
1015 (fold_indirect_ref_1): Moved to fold-const.h.
1016 (fold_indirect_ref_loc): Moved to fold-const.h.
1017 (fold_read_from_constant_string): Moved to fold-const.h.
1018 (fold_real_zero_addition_p): Moved to fold-const.h.
1019 (fold_single_bit_test): Moved to fold-const.h.
1020 (fold_strip_sign_ops): Moved to fold-const.h.
1021 (fold_ternary): Moved to fold-const.h.
1022 (fold_ternary_loc): Moved to fold-const.h.
1023 (fold_unary): Moved to tree-data-ref.h.
1024 (fold_unary_ignore_overflow): Moved to fold-const.h.
1025 (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
1026 (fold_unary_loc): Moved to fold-const.h.
1027 (fold_unary_to_constant): Moved to fold-const.h.
1028 (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
1029 (fold_undefer_overflow_warnings): Moved to fold-const.h.
1030 (folding_initializer): Moved to fold-const.h.
1031 (free_temp_slots): Moved to function.h.
1032 (generate_setjmp_warnings): Moved to function.h.
1033 (get_attribute_name): Moved to attribs.h.
1034 (get_identifier): Moved to stringpool.h.
1035 (get_identifier_with_length): Moved to stringpool.h.
1036 (get_inner_reference): Moved to tree.h.
1037 (gimple_alloca_call_p): Moved to calls.h.
1038 (gimplify_parameters): Moved to function.h.
1039 (highest_pow2_factor): Moved to expr.h.
1040 (indent_to): Moved to print-tree.h.
1041 (init_attributes): Moved to attribs.h.
1042 (init_dummy_function_start): Moved to function.h.
1043 (init_function_start): Moved to function.h.
1044 (init_inline_once): Moved to tree-inline.h.
1045 (init_object_sizes): Moved to tree-object-size.h.
1046 (init_temp_slots): Moved to function.h.
1047 (init_tree_optimization_optabs): Moved to optabs.h.
1048 (initialize_sizetypes): Moved to stor-layout.h.
1049 (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
1050 (initializer_constant_valid_p): Moved to varasm.h.
1051 (int_const_binop): Moved to fold-const.h.
1052 (internal_reference_types): Moved to stor-layout.h.
1053 (invert_tree_comparison): Moved to fold-const.h.
1054 (invert_truthvalue): Moved to fold-const.h.
1055 (invert_truthvalue_loc): Moved to fold-const.h.
1056 (is_tm_ending_fndecl): Moved to trans-mem.h.
1057 (is_tm_may_cancel_outer): Moved to trans-mem.h.
1058 (is_tm_pure): Moved to trans-mem.h.
1059 (is_tm_safe): Moved to trans-mem.h.
1060 (layout_decl): Moved to stor-layout.h.
1061 (layout_type): Moved to stor-layout.h.
1062 (lookup_attribute_spec): Moved to attribs.h.
1063 (make_accum_type): Moved to stor-layout.h.
1064 (make_decl_one_only): Moved to varasm.h.
1065 (make_decl_rtl): Moved to tree.h.
1066 (make_decl_rtl_for_debug): Moved to varasm.h.
1067 (make_fract_type): Moved to stor-layout.h.
1068 (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
1069 (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
1070 (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
1071 (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
1072 (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
1073 (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
1074 (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
1075 (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
1076 (make_range): Moved to fold-const.h.
1077 (make_range_step): Moved to fold-const.h.
1078 (make_sat_signed_accum_type): Moved to stor-layout.h.
1079 (make_sat_signed_fract_type): Moved to stor-layout.h.
1080 (make_sat_unsigned_accum_type): Moved to stor-layout.h.
1081 (make_sat_unsigned_fract_type): Moved to stor-layout.h.
1082 (make_signed_accum_type): Moved to stor-layout.h.
1083 (make_signed_fract_type): Moved to stor-layout.h.
1084 (make_signed_type): Moved to stor-layout.h.
1085 (make_unsigned_accum_type): Moved to stor-layout.h.
1086 (make_unsigned_fract_type): Moved to stor-layout.h.
1087 (make_unsigned_type): Moved to stor-layout.h.
1088 (mark_decl_referenced): Moved to varasm.h.
1089 (mark_referenced): Moved to varasm.h.
1090 (may_negate_without_overflow_p): Moved to fold-const.h.
1091 (maybe_get_identifier): Moved to stringpool.h.
1092 (merge_ranges): Moved to fold-const.h.
1093 (merge_weak): Moved to varasm.h.
1094 (mode_for_size_tree): Moved to stor-layout.h.
1095 (multiple_of_p): Moved to fold-const.h.
1096 (must_pass_in_stack_var_size): Moved to calls.h.
1097 (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
1098 (native_encode_expr): Moved to fold-const.h.
1099 (native_interpret_expr): Moved to fold-const.h.
1100 (non_lvalue): Moved to fold-const.h.
1101 (non_lvalue_loc): Moved to fold-const.h.
1102 (normalize_offset): Moved to stor-layout.h.
1103 (normalize_rli): Moved to stor-layout.h.
1104 (notice_global_symbol): Moved to varasm.h.
1105 (omit_one_operand): Moved to fold-const.h.
1106 (omit_one_operand_loc): Moved to fold-const.h.
1107 (omit_two_operands): Moved to fold-const.h.
1108 (omit_two_operands_loc): Moved to fold-const.h.
1109 (operand_equal_p): Moved to tree-data-ref.h.
1110 (parse_input_constraint): Moved to stmt.h.
1111 (parse_output_constraint): Moved to stmt.h.
1112 (place_field): Moved to stor-layout.h.
1113 (pop_function_context): Moved to function.h.
1114 (pop_temp_slots): Moved to function.h.
1115 (pos_from_bit): Moved to stor-layout.h.
1116 (preserve_temp_slots): Moved to function.h.
1117 (print_node): Moved to print-tree.h.
1118 (print_node_brief): Moved to print-tree.h.
1119 (print_rtl): Moved to rtl.h.
1120 (process_pending_assemble_externals): Moved to varasm.h.
1121 (ptr_difference_const): Moved to fold-const.h.
1122 (push_function_context): Moved to function.h.
1123 (push_struct_function): Moved to function.h.
1124 (push_temp_slots): Moved to function.h.
1125 (record_tm_replacement): Moved to trans-mem.h.
1126 (relayout_decl): Moved to stor-layout.h.
1127 (resolve_asm_operand_names): Moved to stmt.h.
1128 (resolve_unique_section): Moved to varasm.h.
1129 (rli_size_so_far): Moved to stor-layout.h.
1130 (rli_size_unit_so_far): Moved to stor-layout.h.
1131 (round_down): Moved to fold-const.h.
1132 (round_down_loc): Moved to fold-const.h.
1133 (round_up): Moved to fold-const.h.
1134 (round_up_loc): Moved to fold-const.h.
1135 (set_decl_incoming_rtl): Moved to emit-rtl.h.
1136 (set_decl_rtl): Moved to tree.h.
1137 (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
1138 (set_user_assembler_name): Moved to varasm.h.
1139 (setjmp_call_p): Moved to calls.h.
1140 (size_binop): Moved to fold-const.h.
1141 (size_binop_loc): Moved to fold-const.h.
1142 (size_diffop): Moved to fold-const.h.
1143 (size_diffop_loc): Moved to fold-const.h.
1144 (size_int_kind): Moved to fold-const.h.
1145 (stack_protect_epilogue): Moved to function.h.
1146 (start_record_layout): Moved to stor-layout.h.
1147 (supports_one_only): Moved to varasm.h.
1148 (swap_tree_comparison): Moved to fold-const.h.
1149 (tm_malloc_replacement): Moved to trans-mem.h.
1150 (tree build_fold_addr_expr_loc): Moved to fold-const.h.
1151 (tree build_invariant_address): Moved to fold-const.h.
1152 (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
1153 (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
1154 (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
1155 (tree_expr_nonnegative_p): Moved to fold-const.h.
1156 (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
1157 (tree_output_constant_def): Moved to varasm.h.
1158 (tree_overlaps_hard_reg_set): Moved to stmt.h.
1159 (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
1160 (tree_single_nonzero_warnv_p): Moved to fold-const.h.
1161 (tree_swap_operands_p): Moved to fold-const.h.
1162 (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
1163 (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
1164 (update_alignment_for_field): Moved to stor-layout.h.
1165 (use_register_for_decl): Moved to function.h.
1166 (variable_size): Moved to rtl.h.
1167 (vector_type_mode): Moved to stor-layout.h.
1168 * cgraph.h: Corresponding changes.
1169 * emit-rtl.h: Corresponding changes.
1170 * expr.h: Corresponding changes.
1171 * function.h: Corresponding changes.
1172 * optabs.h: Corresponding changes.
1173 * trans-mem.h: Corresponding changes.
1174 Protect against multiple inclusion.
1175 * tree-inline.h: Corresponding changes.
1176 * tree-iterator.h: Corresponding changes.
1177 * tree-dfa.h: Include expr.h.
1178 * tree-ssanames.h: Include stringpool.h.
1179 * attribs.h: New file.
1180 * calls.h: New file.
1181 * fold-const.h: New file.
1182 * gcc-symtab.h: New file.
1183 * print-rtl.h: New file.
1184 * print-tree.h: New file.
1186 * stor-layout.h: New file.
1187 * strinpool.h: New file.
1188 * tree-nested.h: New file
1189 * tree-object-size.h: New file.
1190 * varasm.h: New file.
1192 2013-11-14 Diego Novillo <dnovillo@google.com>
1194 * alias.c: Include varasm.h.
1196 * asan.c: Include calls.h.
1197 Include stor-layout.h.
1199 * attribs.c: Include stringpool.h.
1201 Include stor-layout.h.
1202 * builtins.c: Include stringpool.h.
1203 Include stor-layout.h.
1206 Include tree-object-size.h.
1207 * calls.c: Include stor-layout.h.
1209 Include stringpool.h.
1211 * cfgexpand.c: Include stringpool.h.
1213 Include stor-layout.h.
1215 Include print-tree.h.
1216 * cgraph.c: Include varasm.h.
1218 Include print-tree.h.
1219 * cgraphclones.c: Include stringpool.h.
1222 Move inclusion of rtl.h earlier in the file.
1223 * cgraphunit.c: Include varasm.h.
1224 Include stor-layout.h.
1225 Include stringpool.h.
1226 * cilk-common.c: Include stringpool.h.
1227 Include stor-layout.h.
1228 * combine.c: Include stor-layout.h.
1229 * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
1230 Include stringpool.h.
1232 * config/aarch64/aarch64.c: Include stringpool.h.
1233 Include stor-layout.h.
1236 * config/alpha/alpha.c: Include stor-layout.h.
1239 * config/arc/arc.c: Include varasm.h.
1240 Include stor-layout.h.
1241 Include stringpool.h.
1243 * config/arm/arm.c: Include stringpool.h.
1244 Include stor-layout.h.
1247 * config/avr/avr-c.c: Include stor-layout.h.
1248 * config/avr/avr-log.c: Include print-tree.h.
1249 * config/avr/avr.c: Include print-tree.h.
1251 Include stor-layout.h.
1252 Include stringpool.h.
1253 * config/bfin/bfin.c: Include varasm.h.
1255 * config/c6x/c6x.c: Include stor-layout.h.
1258 Include stringpool.h.
1259 * config/cr16/cr16.c: Include stor-layout.h.
1261 * config/cris/cris.c: Include varasm.h.
1262 Include stor-layout.h.
1265 * config/darwin.c: Include stringpool.h.
1267 Include stor-layout.h.
1268 * config/epiphany/epiphany.c: Include stor-layout.h.
1271 Include stringpool.h.
1272 * config/fr30/fr30.c: Include stor-layout.h.
1274 * config/frv/frv.c: Include varasm.h.
1275 Include stor-layout.h.
1276 Include stringpool.h.
1277 * config/h8300/h8300.c: Include stor-layout.h.
1280 Include stringpool.h.
1281 * config/i386/i386.c: Include stringpool.h.
1284 Include stor-layout.h.
1286 * config/i386/winnt-cxx.c: Include stringpool.h.
1288 * config/i386/winnt.c: Include stringpool.h.
1290 * config/ia64/ia64-c.c: Include stringpool.h.
1291 * config/ia64/ia64.c: Include stringpool.h.
1292 Include stor-layout.h.
1295 * config/iq2000/iq2000.c: Include stor-layout.h.
1298 * config/lm32/lm32.c: Include calls.h.
1299 * config/m32c/m32c.c: Include stor-layout.h.
1302 * config/m32r/m32r.c: Include stor-layout.h.
1304 Include stringpool.h.
1306 * config/m68k/m68k.c: Include calls.h.
1307 Include stor-layout.h.
1309 * config/mcore/mcore.c: Include stor-layout.h.
1311 Include stringpool.h.
1313 * config/mep/mep.c: Include varasm.h.
1315 Include stringpool.h.
1316 Include stor-layout.h.
1317 * config/microblaze/microblaze.c: Include varasm.h.
1318 Include stor-layout.h.
1320 * config/mips/mips.c: Include varasm.h.
1321 Include stringpool.h.
1322 Include stor-layout.h.
1324 * config/mmix/mmix.c: Include varasm.h.
1325 Include stor-layout.h.
1327 * config/mn10300/mn10300.c: Include stor-layout.h.
1330 * config/moxie/moxie.c: Include stor-layout.h.
1333 * config/msp430/msp430.c: Include stor-layout.h.
1335 * config/nds32/nds32.c: Include stor-layout.h.
1338 * config/pa/pa.c: Include stor-layout.h.
1339 Include stringpool.h.
1342 * config/pdp11/pdp11.c: Include stor-layout.h.
1345 * config/picochip/picochip.c: Include calls.h.
1346 Include stor-layout.h.
1347 Include stringpool.h.
1349 * config/rl78/rl78.c: Include varasm.h.
1350 Include stor-layout.h.
1352 * config/rs6000/rs6000-c.c: Include stor-layout.h.
1353 Include stringpool.h.
1354 * config/rs6000/rs6000.c: Include stringpool.h.
1355 Include stor-layout.h.
1357 Include print-tree.h.
1359 * config/rx/rx.c: Include varasm.h.
1360 Include stor-layout.h.
1362 * config/s390/s390.c: Include print-tree.h.
1363 Include stringpool.h.
1364 Include stor-layout.h.
1367 * config/score/score.c: Include stringpool.h.
1370 Include stor-layout.h.
1371 * config/sh/sh-c.c: Include stringpool.h.
1372 Include attribs.h.h.
1373 * config/sh/sh.c: Include stringpool.h.
1374 Include stor-layout.h.
1377 * config/sol2-c.c: Include stringpool.h.
1379 * config/sol2-cxx.c: Include stringpool.h.
1380 * config/sol2.c: Include stringpool.h.
1382 * config/sparc/sparc.c: Include stringpool.h.
1383 Include stor-layout.h.
1386 * config/spu/spu-c.c: Include stringpool.h.
1387 * config/spu/spu.c: Include stringpool.h.
1388 Include stor-layout.h.
1391 * config/stormy16/stormy16.c: Include stringpool.h.
1392 Include stor-layout.h.
1395 * config/tilegx/tilegx.c: Include stringpool.h.
1396 Include stor-layout.h.
1399 * config/tilepro/tilepro.c: Include stringpool.h.
1400 Include stor-layout.h.
1403 * config/v850/v850-c.c: Include stringpool.h.
1405 * config/v850/v850.c: Include stringpool.h.
1406 Include stor-layout.h.
1409 * config/vax/vax.c: Include calls.h.
1411 * config/vms/vms.c: Include stringpool.h.
1412 * config/vxworks.c: Include stringpool.h.
1413 * config/xtensa/xtensa.c: Include stringpool.h.
1414 Include stor-layout.h.
1417 * convert.c: Include stor-layout.h.
1418 * coverage.c: Include stringpool.h.
1419 Include stor-layout.h.
1420 * dbxout.c: Include varasm.h.
1421 Include stor-layout.h.
1422 * dojump.c: Include stor-layout.h.
1423 * dse.c: Include stor-layout.h.
1424 * dwarf2asm.c: Include stringpool.h.
1426 * dwarf2cfi.c: Include stor-layout.h.
1427 * dwarf2out.c: Include rtl.h.
1428 Include stringpool.h.
1429 Include stor-layout.h.
1433 Move inclusion of rtl.h earlier in the file.
1434 * emit-rtl.c: Include varasm.h.
1435 * except.c: Include stringpool.h.
1436 Include stor-layout.h.
1437 * explow.c: Include stor-layout.h.
1438 * expmed.c: Include stor-layout.h.
1439 * expr.c: Include stringpool.h.
1440 Include stor-layout.h.
1443 * final.c: Include varasm.h.
1444 * fold-const.c: Include stor-layout.h.
1446 Include tree-iterator.h.
1447 * function.c: Include stor-layout.h.
1449 Include stringpool.h.
1450 * genattrtab.c (write_header): Emit includes for varasm.h,
1451 stor-layout.h and calls.h.
1452 * genautomata.c (main): Likewise.
1453 * genemit.c: Likewise.
1454 * genopinit.c: Likewise.
1455 * genoutput.c (output_prologue): Likewise.
1456 * genpeep.c: Likewise.
1457 * genpreds.c (write_insn_preds_c): Likewise.
1458 * gengtype.c (open_base_files): Add stringpool.h.
1459 * gimple-expr.c: Include stringpool.h.
1460 Include stor-layout.h.
1461 * gimple-fold.c: Include stringpool.h.
1464 Include stor-layout.h.
1465 * gimple-low.c: Include tree-nested.h.
1467 * gimple-pretty-print.c: Include stringpool.h.
1468 * gimple-ssa-strength-reduction.c: Include stor-layout.h.
1470 * gimple-walk.c: Include stmt.h.
1471 * gimple.c: Include calls.h.
1473 Include stor-layout.h.
1474 * gimplify.c: Include stringpool.h.
1477 Include stor-layout.h.
1479 Include print-tree.h.
1481 * gimplify-me.c: Include stmt.h
1482 Include stor-layout.h
1483 * internal-fn.c: Include stor-layout.h.
1484 * ipa-devirt.c: Include print-tree.h.
1486 * ipa-inline-analysis.c: Include stor-layout.h.
1487 Include stringpool.h.
1488 Include print-tree.h.
1489 * ipa-inline.c: Include trans-mem.h.
1491 * ipa-prop.c: Include expr.h.
1492 Include stor-layout.h.
1493 Include print-tree.h.
1494 * ipa-pure-const.c: Include print-tree.h.
1496 * ipa-reference.c: Include calls.h.
1497 * ipa-split.c: Include stringpool.h.
1500 * ipa.c: Include calls.h.
1501 Include stringpool.h.
1502 * langhooks.c: Include stringpool.h.
1504 * lto-cgraph.c: Include stringpool.h.
1505 * lto-streamer-in.c: Include stringpool.h.
1506 * lto-streamer-out.c: Include stor-layout.h.
1507 Include stringpool.h.
1508 * omp-low.c: Include stringpool.h.
1509 Include stor-layout.h.
1511 * optabs.c: Include stor-layout.h.
1512 Include stringpool.h.
1514 * passes.c: Include varasm.h.
1515 * predict.c: Include calls.h.
1516 * print-rtl.c: Include print-tree.h.
1517 * print-tree.c: Include varasm.h.
1518 Include print-rtl.h.
1519 Include stor-layout.h.
1520 * realmpfr.c: Include stor-layout.h.
1521 * reg-stack.c: Include varasm.h.
1522 * sdbout.c: Include varasm.h.
1523 Include stor-layout.h.
1524 * simplify-rtx.c: Include varasm.h.
1525 * stmt.c: Include varasm.h.
1526 Include stor-layout.h.
1527 * stor-layout.c: Include stor-layout.h.
1528 Include stringpool.h.
1530 Include print-tree.h.
1531 * symtab.c: Include rtl.h.
1532 Include print-tree.h.
1536 * targhooks.c: Include stor-layout.h.
1538 * toplev.c: Include varasm.h.
1539 Include tree-inline.h.
1540 * trans-mem.c: Include calls.h.
1544 * tree-affine.c: Include expr.h.
1545 * tree-browser.c: Include print-tree.h.
1546 * tree-call-cdce.c: Include stor-layout.h.
1547 * tree-cfg.c: Include trans-mem.h.
1548 Include stor-layout.h.
1549 Include print-tree.h.
1550 * tree-complex.c: Include stor-layout.h.
1551 * tree-data-ref.c: Include expr.h.
1552 * tree-dfa.c: Include stor-layout.h.
1553 * tree-eh.c: Include expr.h.
1555 * tree-emutls.c: Include stor-layout.h.
1557 * tree-if-conv.c: Include stor-layout.h.
1558 * tree-inline.c: Include stor-layout.h.
1560 * tree-loop-distribution.c: Include stor-layout.h.
1561 * tree-nested.c: Include stringpool.h.
1562 Include stor-layout.h.
1563 * tree-object-size.c: Include tree-object-size.h.
1564 * tree-outof-ssa.c: Include stor-layout.h.
1565 * tree-parloops.c: Include stor-layout.h.
1566 Include tree-nested.h.
1567 * tree-pretty-print.c: Include stor-layout.h.
1569 * tree-profile.c: Include varasm.h.
1570 Include tree-nested.h.
1571 * tree-scalar-evolution.c: Include expr.h.
1572 * tree-sra.c: Include stor-layout.h.
1573 * tree-ssa-address.c: Include stor-layout.h.
1574 * tree-ssa-ccp.c: Include stor-layout.h.
1575 * tree-ssa-dce.c: Include calls.h.
1576 * tree-ssa-dom.c: Include stor-layout.h.
1577 * tree-ssa-forwprop.c: Include stor-layout.h.
1578 * tree-ssa-ifcombine.c: Include stor-layout.h.
1579 * tree-ssa-loop-ivopts.c: Include stor-layout.h.
1580 * tree-ssa-loop-niter.c: Include calls.h.
1582 * tree-ssa-loop-prefetch.c: Include stor-layout.h.
1583 * tree-ssa-math-opts.c: Include stor-layout.h.
1584 * tree-ssa-operands.c: Include stmt.h.
1585 Include print-tree.h.
1586 * tree-ssa-phiopt.c: Include stor-layout.h.
1587 * tree-ssa-reassoc.c: Include stor-layout.h.
1588 * tree-ssa-sccvn.c: Include stor-layout.h.
1589 * tree-ssa-sink.c: Include stor-layout.h.
1590 * tree-ssa-strlen.c: Include stor-layout.h.
1591 * tree-ssa-structalias.c: Include stor-layout.h.
1593 * tree-ssa-tail-merge.c: Include stor-layout.h.
1594 Include trans-mem.h.
1595 * tree-ssa-uncprop.c: Include stor-layout.h.
1596 * tree-ssa.c: Include stor-layout.h.
1597 * tree-ssanames.c: Include stor-layout.h.
1598 * tree-streamer-in.c: Include stringpool.h.
1599 * tree-streamer-out.c: Include stor-layout.h.
1600 * tree-switch-conversion.c: Include varasm.h.
1601 Include stor-layout.h.
1602 * tree-tailcall.c: Include stor-layout.h.
1603 * tree-vect-data-refs.c: Include stor-layout.h.
1604 * tree-vect-generic.c: Include stor-layout.h.
1605 * tree-vect-loop.c: Include stor-layout.h.
1606 * tree-vect-patterns.c: Include stor-layout.h.
1607 * tree-vect-slp.c: Include stor-layout.h.
1608 * tree-vect-stmts.c: Include stor-layout.h.
1609 * tree-vectorizer.c: Include stor-layout.h.
1610 * tree-vrp.c: Include stor-layout.h.
1612 * tree.c: Include stor-layout.h.
1616 * tsan.c: Include expr.h.
1617 * ubsan.c: Include stor-layout.h.
1618 Include stringpool.h.
1619 * value-prof.c: Include tree-nested.h.
1621 * var-tracking.c: Include varasm.h.
1622 Include stor-layout.h.
1623 * varasm.c: Include stor-layout.h.
1624 Include stringpool.h.
1625 Include gcc-symtab.h.
1627 * varpool.c: Include varasm.h.
1628 * vmsdbgout.c: Include varasm.h.
1629 * xcoffout.c: Include varasm.h.
1631 2013-11-14 Joern Rennecke <joern.rennecke@embecosm.com>
1633 * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
1636 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1638 * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
1640 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1641 Alan Modra <amodra@gmail.com>
1643 * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
1644 (RS6000_SAVE_TOC): Remove.
1645 (RS6000_TOC_SAVE_SLOT): New macro.
1646 * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
1647 (rs6000_parm_start): Use it.
1648 (rs6000_function_arg_advance_1): Likewise.
1649 (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
1650 (rs6000_emit_epilogue): Likewise.
1651 (rs6000_call_aix): Likewise.
1652 (rs6000_output_function_prologue): Do not save/restore r11
1653 around calling _mcount for ABI_ELFv2.
1655 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1656 Alan Modra <amodra@gmail.com>
1658 * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
1660 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
1661 (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
1662 * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
1663 (rs6000_function_parms_need_stack): Likewise.
1664 (rs6000_reg_parm_stack_space): Likewise.
1665 (rs6000_function_arg): Do not replace BLKmode by Pmode when
1666 returning a register argument.
1668 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1669 Michael Gschwind <mkg@us.ibm.com>
1671 * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
1672 (ALTIVEC_ARG_MAX_RETURN): Likewise.
1673 (FUNCTION_VALUE_REGNO_P): Use them.
1674 * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
1675 (rs6000_return_in_msb): New function.
1676 (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
1677 Handle aggregates of up to 16 bytes for ELFv2.
1678 (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
1680 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1681 Michael Gschwind <mkg@us.ibm.com>
1683 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
1684 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
1685 (rs6000_discover_homogeneous_aggregate): Likewise.
1686 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
1687 (rs6000_function_arg_advance_1): Likewise.
1688 (rs6000_function_arg): Likewise.
1689 (rs6000_arg_partial_bytes): Likewise.
1690 (rs6000_psave_function_arg): Handle BLKmode arguments.
1692 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1693 Michael Gschwind <mkg@us.ibm.com>
1695 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
1696 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
1697 (rs6000_discover_homogeneous_aggregate): Likewise.
1698 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
1699 (rs6000_function_arg_advance_1): Likewise.
1700 (rs6000_function_arg): Likewise.
1701 (rs6000_arg_partial_bytes): Likewise.
1702 (rs6000_psave_function_arg): Handle BLKmode arguments.
1704 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1706 * config/rs6000/rs6000.c (machine_function): New member
1708 (rs6000_emit_prologue): Set r2_setup_needed if necessary.
1709 (rs6000_output_mi_thunk): Set r2_setup_needed.
1710 (rs6000_output_function_prologue): Output global entry point
1711 prologue and local entry point marker if needed for ABI_ELFv2.
1712 Output -mprofile-kernel code here.
1713 (output_function_profiler): Do not output -mprofile-kernel
1714 code here; moved to rs6000_output_function_prologue.
1715 (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
1717 (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
1718 (rs6000_output_function_entry): Likewise.
1719 (rs6000_assemble_integer): Likewise.
1720 (rs6000_elf_encode_section_info): Likewise.
1721 (rs6000_elf_declare_function_name): Do not create dot symbols
1722 or .opd section for ABI_ELFv2.
1724 (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
1725 (rs6000_trampoline_init): Likewise.
1726 (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
1728 (rs6000_call_aix): Handle ELFv2 indirect calls. Do not check
1729 for function descriptors in ABI_ELFv2.
1731 * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
1732 on ABI_AIX only, not ABI_ELFv2.
1733 ("*call_value_indirect_aix<mode>"): Likewise.
1734 ("*call_indirect_elfv2<mode>"): New pattern.
1735 ("*call_value_indirect_elfv2<mode>"): Likewise.
1737 * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
1738 check for function descriptors in ABI_ELFv2.
1739 ("current_file_function_operand"): Likewise.
1741 * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
1743 (FUNC_NAME): Define ELFv2 variant.
1744 (JUMP_TARGET): Likewise.
1745 (FUNC_START): Likewise.
1746 (HIDDEN_FUNC): Likewise.
1747 (FUNC_END): Likeiwse.
1749 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1751 * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
1752 and --with-abi=elfv2.
1753 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
1754 * config/rs6000/rs6000.opt (mabi=elfv1): New option.
1755 (mabi=elfv2): Likewise.
1756 * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
1757 * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
1759 (ELFv2_ABI_CHECK): New macro.
1760 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
1761 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
1762 (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
1763 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
1764 _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
1766 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
1767 (debug_stack_info): Likewise.
1768 (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
1769 (rs6000_legitimize_tls_address): Likewise.
1770 (rs6000_conditional_register_usage): Likewise.
1771 (rs6000_emit_move): Likewise.
1772 (init_cumulative_args): Likewise.
1773 (rs6000_function_arg_advance_1): Likewise.
1774 (rs6000_function_arg): Likewise.
1775 (rs6000_arg_partial_bytes): Likewise.
1776 (rs6000_output_function_entry): Likewise.
1777 (rs6000_assemble_integer): Likewise.
1778 (rs6000_savres_strategy): Likewise.
1779 (rs6000_stack_info): Likewise.
1780 (rs6000_function_ok_for_sibcall): Likewise.
1781 (rs6000_emit_load_toc_table): Likewise.
1782 (rs6000_savres_routine_name): Likewise.
1783 (ptr_regno_for_savres): Likewise.
1784 (rs6000_emit_prologue): Likewise.
1785 (rs6000_emit_epilogue): Likewise.
1786 (rs6000_output_function_epilogue): Likewise.
1787 (output_profile_hook): Likewise.
1788 (output_function_profiler): Likewise.
1789 (rs6000_trampoline_size): Likewise.
1790 (rs6000_trampoline_init): Likewise.
1791 (rs6000_elf_output_toc_section_asm_op): Likewise.
1792 (rs6000_elf_encode_section_info): Likewise.
1793 (rs6000_elf_reloc_rw_mask): Likewise.
1794 (rs6000_elf_declare_function_name): Likewise.
1795 (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
1796 except that rs6000_compat_align_parm is always assumed false.
1797 (rs6000_gimplify_va_arg): Likewise.
1798 (rs6000_call_aix): Update comment.
1799 (rs6000_sibcall_aix): Likewise.
1800 * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
1801 Treat ABI_ELFv2 the same as ABI_AIX.
1802 ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
1803 ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
1804 ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
1805 ("load_toc_aix_si"): Likewise.
1806 ("load_toc_aix_di"): Likewise.
1808 ("call_value"): Likewise.
1809 ("*call_local_aix<mode>"): Likewise.
1810 ("*call_value_local_aix<mode>"): Likewise.
1811 ("*call_nonlocal_aix<mode>"): Likewise.
1812 ("*call_value_nonlocal_aix<mode>"): Likewise.
1813 ("*call_indirect_aix<mode>"): Likewise.
1814 ("*call_value_indirect_aix<mode>"): Likewise.
1815 ("sibcall"): Likewise.
1816 ("sibcall_value"): Likewise.
1817 ("*sibcall_aix<mode>"): Likewise.
1818 ("*sibcall_value_aix<mode>"): Likewise.
1819 * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
1820 ("current_file_function_operand"): Likewise.
1822 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1824 * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
1825 by making use of the fact that for vector / floating point arguments
1826 passed both in VRs/FPRs and in the fixed parameter area, the partial
1827 bytes mechanism is in fact not used.
1829 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1831 * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
1832 (rs6000_finish_function_arg): Likewise.
1833 (rs6000_function_arg): Use rs6000_psave_function_arg and
1834 rs6000_finish_function_arg to handle both vector and floating
1835 point arguments that are also passed in GPRs / the stack.
1837 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1839 * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
1840 (USE_ALTIVEC_FOR_ARG_P): Likewise.
1841 (rs6000_darwin64_record_arg_advance_recurse): Update uses.
1842 (rs6000_function_arg_advance_1):Likewise.
1843 (rs6000_darwin64_record_arg_recurse): Likewise.
1844 (rs6000_function_arg): Likewise.
1845 (rs6000_arg_partial_bytes): Likewise.
1847 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1849 * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
1850 "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
1851 (rs6000_savres_strategy): Likewise.
1852 (rs6000_return_addr): Likewise.
1853 (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
1854 testing for ABI_V4 (since ABI_DARWIN is impossible here).
1855 (rs6000_emit_prologue): Likewise.
1856 (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
1857 (rs6000_elf_declare_function_name): Remove duplicated test.
1858 * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
1859 for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
1860 ("load_toc_v4_PIC_1_normal"): Likewise.
1861 ("load_toc_v4_PIC_1_476"): Likewise.
1862 ("load_toc_v4_PIC_1b"): Likewise.
1863 ("load_toc_v4_PIC_1b_normal"): Likewise.
1864 ("load_toc_v4_PIC_1b_476"): Likewise.
1865 ("load_toc_v4_PIC_2"): Likewise.
1866 ("load_toc_v4_PIC_3b"): Likewise.
1867 ("load_toc_v4_PIC_3c"): Likewise.
1868 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
1869 (RS6000_SAVE_AREA): Likewise.
1870 (FP_ARG_MAX_REG): Likewise.
1871 (RETURN_ADDRESS_OFFSET): Likewise.
1872 * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
1874 (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
1875 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
1877 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1879 * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
1880 (rs6000_call_aix): ... this. Handle both direct and indirect calls.
1881 Create call insn directly instead of via various gen_... routines.
1882 Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
1883 (rs6000_sibcall_aix): New function.
1884 * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
1885 (TOC_SAVE_OFFSET_64BIT): Likewise.
1886 (AIX_FUNC_DESC_TOC_32BIT): Likewise.
1887 (AIX_FUNC_DESC_TOC_64BIT): Likewise.
1888 (AIX_FUNC_DESC_SC_32BIT): Likewise.
1889 (AIX_FUNC_DESC_SC_64BIT): Likewise.
1890 ("call" expander): Call rs6000_call_aix.
1891 ("call_value" expander): Likewise.
1892 ("call_indirect_aix<ptrsize>"): Replace this pattern ...
1893 ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
1894 ("*call_indirect_aix<mode>"): ... by this insn pattern.
1895 ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
1896 ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
1897 ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
1898 ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
1899 ("*call_nonlocal_aix<mode>"): ... this pattern.
1900 ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
1901 ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
1902 ("*call_local_aix<mode>"): New insn pattern.
1903 ("*call_value_local_aix<mode>"): Likewise.
1904 ("sibcall" expander): Call rs6000_sibcall_aix.
1905 ("sibcall_value" expander): Likewise. Move earlier in file.
1906 ("*sibcall_nonlocal_aix<mode>"): Replace by ...
1907 ("*sibcall_aix<mode>"): ... this pattern.
1908 ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
1909 ("*sibcall_value_aix<mode>"): ... this pattern.
1910 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
1911 (rs6000_call_aix): Add prototype.
1912 (rs6000_sibcall_aix): Likewise.
1914 2013-11-14 Jakub Jelinek <jakub@redhat.com>
1917 * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
1918 isn't confused by the artificial decl.
1920 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1922 * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
1923 RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
1924 Instead, add USEs of all modified call-saved CR fields to the
1925 insn storing the result to the stack slot, and provide an
1926 appropriate REG_FRAME_RELATED_EXPR for that insn.
1927 * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
1928 * config/rs6000/predicates.md ("crsave_operation"): New predicate.
1930 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1931 Alan Modra <amodra@gmail.com>
1933 * function.c (assign_parms): Use all.reg_parm_stack_space instead
1934 of re-evaluating REG_PARM_STACK_SPACE target macro.
1935 (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE. Use it
1936 instead of evaluating target macro REG_PARM_STACK_SPACE every time.
1937 (assign_parm_find_entry_rtl): Update call.
1938 * calls.c (initialize_argument_information): Update call.
1939 (emit_library_call_value_1): Likewise.
1940 * expr.h (locate_and_pad_parm): Update prototype.
1942 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1944 * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
1947 2013-11-14 DJ Delorie <dj@redhat.com>
1949 * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
1952 2013-11-14 Jeff Law <law@redhat.com>
1954 * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
1955 EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
1957 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
1959 * doc/invoke.texi: Update documentation for AArch64's -mcpu
1962 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
1964 * config/aarch64/aarch64-cores.def (example-1): Remove.
1965 (example-2): Likewise.
1966 * config/aarch64/aarch64-tune.md: Regenerate.
1967 * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
1968 (generic_sched): Remove "large", "small".
1969 * config/aarch64/large.md: Delete.
1970 * config/aarch64/small.md: Delete.
1972 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
1974 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
1975 * config/aarch64/aarch64-tune.md: Regenerate.
1976 * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
1977 (generic_sched): "no" if we are tuning for cortexa15.
1978 * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
1981 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
1983 * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
1984 * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
1985 * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
1986 (all_cores): Use cortexa53 when tuning for "generic".
1987 (aarch64_override_options): Fix comment.
1988 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
1989 * config/aarch64/aarch64-generic.md: Delete.
1991 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
1993 * config/aarch64/aarch64.c (all_architectures): Remove "generic".
1995 2013-11-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1997 * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
1998 (generic_rtx_cost_table): Remove.
1999 (aarch64_rtx_costs): Use fields from cpu_cost_table.
2000 * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
2002 (cpu_rtx_cost_table): Remove.
2004 2013-11-14 Julian Brown <julian@codesourcery.com>
2005 Joey Ye <joey.ye@arm.com>
2007 * config/arm/arm.c (arm_cortex_m_branch_cost): New.
2008 (arm_v7m_tune): New.
2009 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
2010 arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
2011 arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
2012 * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
2014 2013-11-14 Kirill Yukhin <kirill.yukhin@intel.com>
2017 * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
2020 2013-11-14 Jakub Jelinek <jakub@redhat.com>
2021 Uros Bizjak <ubizjak@gmail.com>
2024 * config/i386/i386.md (*anddi_2): Only allow CCZmode if
2025 operands[2] satisfies_constraint_Z that might have bit 31 set.
2027 2013-11-13 Jeff Law <law@redhat.com>
2029 PR tree-optimization/59102
2030 * gimple-ssa-isolate-paths.c
2031 (insert_trap_and_remove_trailing_statments): Ensure STMT is a
2032 gimple assignment before looking at gimple_assign_lhs.
2034 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
2036 * ira.c: Add comment about threads at the top of file.
2038 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
2040 * ira-color.c (coalesce_allocnos): Don't allocate and free
2043 2013-11-14 Tom de Vries <tom@codesourcery.com>
2045 * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
2046 equality for GIMPLE_ASSIGN.
2048 2013-11-14 Tom de Vries <tom@codesourcery.com>
2050 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
2052 (gimple_equal_p): ... here.
2054 2013-11-14 Tom de Vries <tom@codesourcery.com>
2056 * trans-mem.c (is_tm_ending): New function.
2057 * gimple.h (is_tm_ending): Declare.
2058 * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
2060 (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
2062 2013-11-14 Tom de Vries <tom@codesourcery.com>
2064 * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
2066 2013-11-13 Andrew MacLeod <amacleod@redhat.com>
2068 * gimple-walk.h: New File. Relocate prototypes from gimple.h.
2069 (struct walk_stmt_info): Relocate here from gimple.h.
2070 * gimple-iterator.h: New File. Relocate prototypes from gimple.h.
2071 (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
2072 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
2073 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
2074 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
2075 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
2076 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
2077 * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
2078 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
2079 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
2080 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
2081 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
2082 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
2083 (struct walk_stmt_info): Move to gimple-walk.h.
2084 (gimple_seq_set_location): Move to gimple.c
2085 * gimple-walk.c: New File.
2086 (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
2087 walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
2088 walk_stmt_load_store_ops): Relocate here from gimple.c.
2089 * gimple-iterator.c: Include gimple-iterator.h.
2090 * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
2091 walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
2092 walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
2094 (gimple_seq_set_location): Relocate from gimple.h.
2095 * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
2096 * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
2097 * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
2098 * Makefile.in (OBJS): Add gimple-walk.o
2099 * asan.c: Update Include list as required for gimple-iterator.h and
2101 * cfgexpand.c: Likewise.
2102 * cfgloop.c: Likewise.
2103 * cfgloopmanip.c: Likewise.
2104 * cgraph.c: Likewise.
2105 * cgraphbuild.c: Likewise.
2106 * cgraphunit.c: Likewise.
2107 * gimple-fold.c: Likewise.
2108 * gimple-low.c: Likewise.
2109 * gimple-pretty-print.c: Likewise.
2110 * gimple-ssa-isolate-paths.c: Likewise.
2111 * gimple-ssa-strength-reduction.c: Likewise.
2112 * gimple-streamer-in.c: Likewise.
2113 * gimple-streamer-out.c: Likewise.
2114 * gimplify.c: Likewise.
2115 * graphite-blocking.c: Likewise.
2116 * graphite-clast-to-gimple.c: Likewise.
2117 * graphite-dependences.c: Likewise.
2118 * graphite-interchange.c: Likewise.
2119 * graphite-optimize-isl.c: Likewise.
2120 * graphite-poly.c: Likewise.
2121 * graphite-scop-detection.c: Likewise.
2122 * graphite-sese-to-poly.c: Likewise.
2123 * graphite.c: Likewise.
2124 * ipa-inline-analysis.c: Likewise.
2125 * ipa-profile.c: Likewise.
2126 * ipa-prop.c: Likewise.
2127 * ipa-pure-const.c: Likewise.
2128 * ipa-split.c: Likewise.
2129 * lto-streamer-in.c: Likewise.
2130 * lto-streamer-out.c: Likewise.
2131 * omp-low.c: Likewise.
2132 * predict.c: Likewise.
2133 * profile.c: Likewise.
2135 * tracer.c: Likewise.
2136 * trans-mem.c: Likewise.
2137 * tree-call-cdce.c: Likewise.
2138 * tree-cfg.c: Likewise.
2139 * tree-cfgcleanup.c: Likewise.
2140 * tree-complex.c: Likewise.
2141 * tree-data-ref.c: Likewise.
2142 * tree-dfa.c: Likewise.
2143 * tree-eh.c: Likewise.
2144 * tree-emutls.c: Likewise.
2145 * tree-if-conv.c: Likewise.
2146 * tree-inline.c: Likewise.
2147 * tree-into-ssa.c: Likewise.
2148 * tree-loop-distribution.c: Likewise.
2149 * tree-nested.c: Likewise.
2150 * tree-nrv.c: Likewise.
2151 * tree-object-size.c: Likewise.
2152 * tree-outof-ssa.c: Likewise.
2153 * tree-parloops.c: Likewise.
2154 * tree-predcom.c: Likewise.
2155 * tree-profile.c: Likewise.
2156 * tree-scalar-evolution.c: Likewise.
2157 * tree-sra.c: Likewise.
2158 * tree-ssa-ccp.c: Likewise.
2159 * tree-ssa-coalesce.c: Likewise.
2160 * tree-ssa-copy.c: Likewise.
2161 * tree-ssa-copyrename.c: Likewise.
2162 * tree-ssa-dce.c: Likewise.
2163 * tree-ssa-dom.c: Likewise.
2164 * tree-ssa-dse.c: Likewise.
2165 * tree-ssa-forwprop.c: Likewise.
2166 * tree-ssa-ifcombine.c: Likewise.
2167 * tree-ssa-live.c: Likewise.
2168 * tree-ssa-loop-ch.c: Likewise.
2169 * tree-ssa-loop-im.c: Likewise.
2170 * tree-ssa-loop-ivcanon.c: Likewise.
2171 * tree-ssa-loop-ivopts.c: Likewise.
2172 * tree-ssa-loop-manip.c: Likewise.
2173 * tree-ssa-loop-niter.c: Likewise.
2174 * tree-ssa-loop-prefetch.c: Likewise.
2175 * tree-ssa-loop.c: Likewise.
2176 * tree-ssa-math-opts.c: Likewise.
2177 * tree-ssa-phiopt.c: Likewise.
2178 * tree-ssa-phiprop.c: Likewise.
2179 * tree-ssa-pre.c: Likewise.
2180 * tree-ssa-propagate.c: Likewise.
2181 * tree-ssa-reassoc.c: Likewise.
2182 * tree-ssa-sink.c: Likewise.
2183 * tree-ssa-strlen.c: Likewise.
2184 * tree-ssa-structalias.c: Likewise.
2185 * tree-ssa-tail-merge.c: Likewise.
2186 * tree-ssa-ter.c: Likewise.
2187 * tree-ssa-threadedge.c: Likewise.
2188 * tree-ssa-threadupdate.c: Likewise.
2189 * tree-ssa-uncprop.c: Likewise.
2190 * tree-ssa-uninit.c: Likewise.
2191 * tree-ssa.c: Likewise.
2192 * tree-stdarg.c: Likewise.
2193 * tree-switch-conversion.c: Likewise.
2194 * tree-tailcall.c: Likewise.
2195 * tree-vect-data-refs.c: Likewise.
2196 * tree-vect-generic.c: Likewise.
2197 * tree-vect-loop-manip.c: Likewise.
2198 * tree-vect-loop.c: Likewise.
2199 * tree-vect-patterns.c: Likewise.
2200 * tree-vect-slp.c: Likewise.
2201 * tree-vect-stmts.c: Likewise.
2202 * tree-vectorizer.c: Likewise.
2203 * tree-vrp.c: Likewise.
2206 * value-prof.c: Likewise.
2207 * vtable-verify.c: Likewise.
2209 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
2211 * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
2214 2013-11-13 Jeff Law <law@redhat.com>
2216 * PR middle-end/59119
2217 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
2218 function, extracted from gimple_ssa_isolate_erroneous_paths.
2219 (find_explicit_erroneous_behaviour): Similarly.
2220 (insert_trap_and_remove_trailing_statements): Remove statements
2223 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
2225 * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
2226 Make that check explicit. BB_HEAD cannot be NULL, remove check for it.
2227 * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
2228 looking at INSN_CODE.
2229 * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
2230 active_insn_p object, respect basic block boundaries.
2231 * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
2232 follows immediately after the jump table data label.
2233 * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
2234 * config/sh/sh.c (barrier_align): Likewise. Rearrange code such
2235 that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
2237 2013-11-13 Teresa Johnson <tejohnson@google.com>
2240 * predict.c (drop_profile): Error is currently too strict.
2241 (handle_missing_profiles): Pass call_count to drop_profile.
2243 2013-11-13 Teresa Johnson <tejohnson@google.com>
2246 * ipa-inline.c (edge_badness): Fix overflow.
2248 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
2250 PR rtl-optimization/59036
2251 * ira-color.c (struct allocno_color_data): Add new members
2252 first_thread_allocno, next_thread_allocno, thread_freq.
2253 (sorted_copies): New static var.
2254 (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
2255 (allocno_thread_conflict_p, merge_threads)
2256 (form_threads_from_copies, form_threads_from_bucket)
2257 (form_threads_from_colorable_allocno, init_allocno_threads): New
2259 (bucket_allocno_compare_func): Add comparison by thread frequency
2261 (add_allocno_to_ordered_bucket): Rename to
2262 add_allocno_to_ordered_colorable_bucket. Remove parameter.
2263 (push_only_colorable): Call form_threads_from_bucket.
2264 (color_pass): Call init_allocno_threads. Use
2265 consideration_allocno_bitmap instead of coloring_allocno_bitmap
2266 for nuillify allocno color data.
2267 (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
2268 (coalesce_allocnos): Use static sorted copies.
2270 2013-11-13 Jakub Jelinek <jakub@redhat.com>
2272 * passes.c (execute_todo): Don't call do_per_function if
2274 (execute_one_ipa_transform_pass, execute_one_pass): Don't call
2275 execute_function_dump if dump_file is NULL.
2277 2013-11-13 Martin Jambor <mjambor@suse.cz>
2279 * cgraph.c (cgraph_get_create_node): Do what
2280 cgraph_get_create_real_symbol_node used to do.
2281 (cgraph_get_create_real_symbol_node): Removed. Changed all users to
2282 call cgraph_get_create_node.
2283 * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
2284 * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
2285 cgraph_get_create_node. Assert we get a node.
2287 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
2289 * config/aarch64/aarch64-simd.md (vec_extract): New.
2291 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
2293 * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
2296 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
2298 * cfgexpand.c (expand_used_vars): Allocate space for partitions based
2299 on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
2300 or if optimization is enabled.
2301 * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
2302 require that all the names based on a PARM_DECL or a RESULT_DECL that
2303 isn't ignored for debug info be coalesced.
2305 2013-11-13 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2307 * config/c6x/c6x.c: Include "gimple-expr.h".
2309 2013-11-13 Richard Biener <rguenther@suse.de>
2311 * gimple-streamer-out.c (output_gimple_stmt): Also wrap
2312 decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
2313 * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
2314 dealing with type mismatches inside component reference chains.
2316 2013-11-13 Marc Glisse <marc.glisse@inria.fr>
2318 PR tree-optimization/59077
2319 * ipa-pure-const.c (better_state): Update *state.
2321 2013-11-13 Christophe Lyon <christophe.lyon@linaro.org>
2323 * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
2324 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
2325 Update offset calculations.
2327 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
2330 * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
2331 for fields. Do not add the attribute if the size is negative.
2333 2013-11-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2335 * config/arm/arm.c: Include aarch-cost-tables.h.
2336 (generic_extra_costs): Move from here...
2337 * config/arm/aarch-cost-tables.h: ... To here. New file.
2339 2013-11-13 Alexander Ivchenko <alexander.ivchenko@intel.com>
2340 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2341 Sergey Lega <sergey.s.lega@intel.com>
2342 Anna Tikhonova <anna.tikhonova@intel.com>
2343 Ilya Tocar <ilya.tocar@intel.com>
2344 Andrey Turetskiy <andrey.turetskiy@intel.com>
2345 Ilya Verbin <ilya.verbin@intel.com>
2346 Kirill Yukhin <kirill.yukhin@intel.com>
2347 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2349 * config/i386/i386.c (ix86_print_operand): Support z-masking.
2350 * config/i386/predicate.md (const_0_to_4_operand): New.
2351 (const_0_to_5_operand): Ditto.
2352 * config/i386/sse.md (UNSPEC_COMPRESS): New.
2353 (UNSPEC_COMPRESS_STORE): Ditto.
2354 (UNSPEC_EXPAND): Ditto.
2355 (UNSPEC_EMBEDDED_ROUNDING): Ditto.
2356 (define_mode_attr ssescalarsize): Ditto.
2357 (avx512f_load<mode>_mask): Ditto.
2358 (avx512f_store<mode>_mask): Ditto.
2359 (avx512f_storedqu<mode>_mask): Ditto.
2360 (avx512f_vmcmp<mode>3_mask): Ditto.
2361 (avx512f_fmadd_<mode>_mask): Ditto.
2362 (avx512f_fmadd_<mode>_mask3): Ditto.
2363 (avx512f_fmsub_<mode>_mask): Ditto.
2364 (avx512f_fmsub_<mode>_mask3): Ditto.
2365 (avx512f_fnmadd_<mode>_mask): Ditto.
2366 (avx512f_fnmadd_<mode>_mask3): Ditto.
2367 (avx512f_fnmsub_<mode>_mask): Ditto.
2368 (avx512f_fnmsub_<mode>_mask3): Ditto.
2369 (avx512f_fmaddsub_<mode>_mask): Ditto.
2370 (avx512f_fmaddsub_<mode>_mask3): Ditto.
2371 (avx512f_fmsubadd_<mode>_mask): Ditto.
2372 (avx512f_fmsubadd_<mode>_mask3): Ditto.
2373 (vec_unpacku_float_lo_v16si): Ditto.
2374 (avx512f_vextract<shuffletype>32x4_mask): Ditto.
2375 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
2376 (avx512f_vextract<shuffletype>64x4_mask): Ditto.
2377 (vec_extract_lo_<mode>_maskm): Ditto.
2378 (vec_extract_hi_<mode>_maskm): Ditto.
2379 (avx512f_vternlog<mode>_mask): Ditto.
2380 (avx512f_shufps512_mask): Ditto.
2381 (avx512f_fixupimm<mode>_mask): Ditto.
2382 (avx512f_shufpd512_mask): Ditto.
2383 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
2384 (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
2385 (*avx512f_<code>v8div16qi2_store_mask): Ditto.
2386 (ashr<mode>3<mask_name>): Ditto.
2387 (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
2388 (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
2389 (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
2390 (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
2391 (avx512f_pshufdv3_mask): Ditto.
2392 (avx512f_perm<mode>_mask): Ditto.
2393 (avx512f_vpermi2var<mode>3_mask): Ditto.
2394 (avx512f_vpermt2var<mode>3_mask): Ditto.
2395 (avx512f_compress<mode>_mask): Ditto.
2396 (avx512f_compressstore<mode>_mask): Ditto.
2397 (avx512f_expand<mode>_mask): Ditto.
2398 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
2400 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
2401 (<plusminus_insn><mode>3<mask_name>): Ditto.
2402 (*<plusminus_insn><mode>3<mask_name>): Ditto.
2403 (mul<mode>3<mask_name>): Ditto.
2404 (*mul<mode>3<mask_name>): Ditto.
2405 (<sse>_div<mode>3<mask_name>): Ditto.
2406 (<mask_codefor>rcp14<mode><mask_name>): Ditto.
2407 (<sse>_sqrt<mode>2<mask_name>): Ditto.
2408 (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
2409 (<code><mode>3<mask_name>/smaxmin): Ditto.
2410 (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
2411 (*<code><mode>3<mask_name>/smaxmin): Ditto.
2412 (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
2413 (ufloatv16siv16sf2<mask_name>): Ditto.
2414 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
2415 (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
2416 (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
2417 (float<si2dfmodelower><mode>2<mask_name>): Ditto.
2418 (ufloatv8siv8df<mask_name>): Ditto.
2419 (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
2420 (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
2421 (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
2422 (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
2423 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
2424 (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
2425 (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
2426 (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
2427 (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
2428 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
2429 (vec_extract_lo_<mode><mask_name>): Ditto.
2430 (vec_extract_hi_<mode><mask_name>): Ditto.
2431 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
2432 (avx512f_movddup512<mask_name>): Ditto.
2433 (avx512f_unpcklpd512<mask_name>): Ditto.
2434 (*avx512f_unpcklpd512<mask_name>): Ditto.
2435 (*avx512f_vmscalef<mode>): Ditto.
2436 (avx512f_scalef<mode><mask_name>): Ditto.
2437 (avx512f_getexp<mode><mask_name>): Ditto.
2438 (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
2439 (avx512f_rndscale<mode><mask_name>): Ditto.
2440 (avx512f_shufps512_1<mask_name>): Ditto.
2441 (avx512f_shufpd512_1<mask_name>): Ditto.
2442 (<plusminus_insn><mode>3<mask_name>): Ditto.
2443 (*<plusminus_insn><mode>3<mask_name>): Ditto.
2444 (vec_widen_umult_even_v16si<mask_name>): Ditto.
2445 (*vec_widen_umult_even_v16si<mask_name>): Ditto.
2446 (vec_widen_smult_even_v16si<mask_name>): Ditto.
2447 (*vec_widen_smult_even_v16si<mask_name>): Ditto.
2448 (mul<mode>3<mask_name>): Ditto.
2449 (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
2450 (<shift_insn><mode>3<mask_name>): Ditto.
2451 (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
2452 (avx512f_<rotate><mode><mask_name>): Ditto.
2453 (<code><mode>3<mask_name>/maxmin): Ditto.
2454 (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
2455 (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
2456 (*andnot<mode>3<mask_name>): Ditto.
2457 (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
2458 (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
2459 (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
2460 (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
2461 (vec_set_lo_<mode><mask_name>): Ditto.
2462 (vec_set_hi_<mode><mask_name>): Ditto.
2463 (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
2464 (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
2465 (avx512f_pshufd_1<mask_name>): Ditto.
2466 (<mask_codefor>abs<mode>2<mask_name>): Ditto.
2467 (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
2468 (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
2469 (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
2470 (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
2471 (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
2472 (avx512er_exp2<mode><mask_name>): Ditto.
2473 (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
2474 (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
2475 (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
2476 (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
2477 (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
2478 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
2479 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
2480 (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
2481 (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
2482 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
2483 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
2484 (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
2485 (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
2486 (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
2487 (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
2488 (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
2489 (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
2490 (avx512f_getmant<mode><mask_name>): Ditto.
2491 (clz<mode>2<mask_name>): Ditto.
2492 (<mask_codefor>conflict<mode><mask_name>): Ditto.
2493 (*srcp14<mode>): Remove visibility.
2494 (*rsqrt14<mode>): Ditto.
2495 (*fma_fmsub_<mode>): Ditto.
2496 (*fma_fnmadd_<mode>): Ditto.
2497 (*avx512f_rndscale<mode>): Ditto.
2498 * config/i386/subst.md: New file.
2500 2013-11-13 Joseph Myers <joseph@codesourcery.com>
2502 * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
2503 * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
2504 (atomic_load_explicit, atomic_exchange_explicit)
2505 (atomic_compare_exchange_strong_explicit)
2506 (atomic_compare_exchange_weak_explicit): Use __auto_type to
2507 declare variable initialized with PTR argument.
2509 2013-11-12 Jeff Law <law@redhat.com>
2511 * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
2512 backedge_seen_p. Set, use and pass it to children appropriately.
2513 (thread_through_normal_block): Similarly.
2514 (thread_across_edge): Similarly.
2516 * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
2517 memory references as volatile.
2518 (insert_trap_and_remove_trailing_statements): Fix comment.
2520 2013-11-12 Vladimir Makarov <vmakarov@redhat.com>
2523 * ira-costs.c (record_operand_costs): Check operands number for
2526 2013-11-12 Michael Meissner <meissner@linux.vnet.ibm.com>
2529 * config/rs6000/rs6000.md (movdi_internal32): Eliminate
2530 constraints that would allow DImode into the traditional Altivec
2531 registers, but cause undesirable code generation when loading 0 as
2533 (movdi_internal64): Likewise.
2534 (cmp<mode>_fpr): Do not use %x for CR register output.
2535 (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
2536 -mallow-upper-sf debug switches are used.
2538 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
2540 * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
2541 create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
2542 Relocate prototypes from gimple.h.
2543 * gimplify.h: New File. Relocate some prototypes from gimple.h here.
2544 (gimple_predicate, enum fallback, enum gimplify_status): Relocate
2546 * gimple.h: Move some prototypes to gimplify.h.
2547 (gimple_predicate, enum fallback, enum gimplify_status): Move to
2549 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
2550 Relocate from gimpify.c.
2551 * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
2552 create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
2553 is_gimple_reg_rhs) Relocate from gimplify.c.
2554 * gimplify.c (mark_addressable): Move to gimple-expr.c.
2555 (gimple_seq_add_stmt_without_update): Move to gimple.c.
2556 (remove_suffix, tmp_var_id_num, create_tmp_var_name,
2557 create_tmp_var_raw, create_tmp_var, create_tmp_reg,
2558 is_gimple_reg_rhs): Move to gimple-expr.c.
2559 (should_carry_location_p): Move to gimple.c.
2560 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
2562 (annotate_one_with_location, annotate_all_with_location_after,
2563 annotate_all_with_location): Move to gimple.c.
2564 (compare_case_labels, sort_case_labels,
2565 preprocess_case_label_vec_for_gimple): Move to gimple.c.
2566 (rhs_predicate_for): Make static.
2567 (gimplify_assign): Relocate from gimple.c.
2568 * gimple.c (gimplify_assign): Move to gimplify.c.
2569 (gimple_seq_add_stmt_without_update, should_carry_location_p,
2570 annotate_one_with_location, annotate_all_with_location_after,
2571 annotate_all_with_location, compare_case_labels, sort_case_labels,
2572 preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
2573 * tree.h (unshare_expr, unshare_expr_without_location,
2574 mark_addressable): Move prototypes to gimplify.h.
2575 * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
2577 * asan.c: Include gimplify.h rather than gimple.h.
2578 * cfgloopmanip.c: Likewise.
2579 * cgraphunit.c: Likewise.
2580 * cilk-common.c: Likewise.
2581 * dwarf2out.c: Dont include gimple.h.
2582 * fold-const.c: Include gimplify.h rather than gimple.h.
2583 * function.c: Likewise.
2584 * gimple-fold.c: Likewise.
2585 * gimple-ssa-strength-reduction.c: Likewise.
2586 * graphite-clast-to-gimple.c: Likewise.
2587 * graphite-sese-to-poly.c: Likewise.
2588 * ipa-prop.c: Likewise.
2589 * ipa-split.c: Likewise.
2591 * langhooks.c: Dont include gimple.h.
2592 * loop-init.c: Include gimplify.h rather than gimple.h.
2593 * omp-low.c: Likewise.
2595 * stor-layout.c: Likewise.
2596 * targhooks.c: Likewise.
2597 * trans-mem.c: Likewise.
2598 * tree-affine.c: Likewise.
2599 * tree-cfg.c: Likewise.
2600 * tree-cfgcleanup.c: Likewise.
2601 * tree-complex.c: Likewise.
2602 * tree-if-conv.c: Likewise.
2603 * tree-inline.c: Likewise.
2604 * tree-iterator.c: Likewise.
2605 * tree-loop-distribution.c: Likewise.
2606 * tree-nested.c: Likewise.
2607 * tree-parloops.c: Likewise.
2608 * tree-predcom.c: Likewise.
2609 * tree-profile.c: Likewise.
2610 * tree-scalar-evolution.c: Likewise.
2611 * tree-sra.c: Likewise.
2612 * tree-ssa-address.c: Likewise.
2613 * tree-ssa-ccp.c: Likewise.
2614 * tree-ssa-dce.c: Likewise.
2615 * tree-ssa-forwprop.c: Likewise.
2616 * tree-ssa-ifcombine.c: Likewise.
2617 * tree-ssa-loop-im.c: Likewise.
2618 * tree-ssa-loop-ivopts.c: Likewise.
2619 * tree-ssa-loop-manip.c: Likewise.
2620 * tree-ssa-loop-niter.c: Likewise.
2621 * tree-ssa-loop-prefetch.c: Likewise.
2622 * tree-ssa-loop-unswitch.c: Likewise.
2623 * tree-ssa-math-opts.c: Likewise.
2624 * tree-ssa-phiopt.c: Likewise.
2625 * tree-ssa-phiprop.c: Likewise.
2626 * tree-ssa-pre.c: Likewise.
2627 * tree-ssa-propagate.c: Likewise.
2628 * tree-ssa-reassoc.c: Likewise.
2629 * tree-ssa-sccvn.c: Likewise.
2630 * tree-ssa-strlen.c: Likewise.
2631 * tree-ssa.c: Likewise.
2632 * tree-switch-conversio: Likewise.n.c
2633 * tree-tailcall.c: Likewise.
2634 * tree-vect-data-refs.c: Likewise.
2635 * tree-vect-generic.c: Likewise.
2636 * tree-vect-loop-manip.c: Likewise.
2637 * tree-vect-loop.c: Likewise.
2638 * tree-vect-patterns.c: Likewise.
2639 * tree-vect-stmts.c: Likewise.
2641 * value-prof.c: Likewise.
2642 * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
2643 * config/alpha/alpha.c: Likewise.
2644 * config/darwin.c: Likewise.
2645 * config/i386/i386.c: Likewise.
2646 * config/ia64/ia64.c: Likewise.
2647 * config/mep/mep.c: Likewise.
2648 * config/mips/mips.c: Likewise.
2649 * config/rs6000/rs6000.c: Likewise.
2650 * config/s390/s390.c: Likewise.
2651 * config/sh/sh.c: Likewise.
2652 * config/sparc/sparc.c: Likewise.
2653 * config/spu/spu.c: Likewise.
2654 * config/stormy16/stormy16.c: Likewise.
2655 * config/tilegx/tilegx.c: Likewise.
2656 * config/tilepro/tilepro.c: Likewise.
2657 * config/xtensa/xtensa.c: Likewise.
2659 2013-11-12 Adam Butcher <adam@jessamine.co.uk>
2661 * tree.c (grow_tree_vec_stat): New function ...
2662 * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
2663 and macro front-end.
2665 2013-11-12 Marek Polacek <polacek@redhat.com>
2667 * final.c (update_alignments): Initialize label to NULL_RTX.
2669 2013-11-12 Jeff Law <law@redhat.com>
2671 * gimple-ssa-isolate-paths.c (check_loadstore): New function.
2672 (insert_trap_and_remove_trailing_statements): New argument OP which
2673 is the NULL pointer. Emit the trap after the load/store through
2674 the NULL pointer. Simplify the RHS of a store through a NULL pointer
2675 when trivial to do so.
2676 (isolate_path): Corresponding changes.
2677 (gimple_ssa_isolate_erroneous_path): Likewise.
2679 2013-11-12 Teresa Johnson <tejohnson@google.com>
2680 Jan Hubicka <jh@suse.cz>
2682 * predict.c (drop_profile): New function.
2683 (handle_missing_profiles): Ditto.
2684 (counts_to_freqs): Don't overwrite estimated frequencies
2685 when function has no profile counts.
2686 * predict.h (handle_missing_profiles): Declare.
2687 * tree-inline.c (freqs_to_counts): New function.
2688 (copy_cfg_body): Invoke freqs_to_counts as needed.
2689 * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
2691 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
2694 * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
2696 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
2698 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
2701 * config/i386/i386.c (ix86_option_override_internal): Check
2702 X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
2703 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
2704 MASK_AVX256_SPLIT_UNALIGNED_LOAD and
2705 MASK_AVX256_SPLIT_UNALIGNED_STORE.
2707 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
2708 Clear m_COREI7_AVX and update comments.
2709 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
2711 2013-11-12 Martin Jambor <mjambor@suse.cz>
2713 PR rtl-optimization/10474
2714 * ira.c (interesting_dest_for_shprep): New function.
2715 (split_live_ranges_for_shrink_wrap): Likewise.
2716 (find_moveable_pseudos): Move calculation of dominance info,
2717 df_analysios and the final anlyses to...
2718 (ira): ...here, call split_live_ranges_for_shrink_wrap.
2720 2013-11-12 Bin Cheng <bin.cheng@arm.com>
2722 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
2723 Handle type conversion.
2725 2013-11-11 Martin Liska <marxin.liska@gmail.com>
2726 Jan Hubicka <jh@suse.cz>
2728 * cgraph.c (dump_cgraph_node): Profile dump added.
2729 * cgraph.h (struct cgraph_node): New time profile variable added.
2730 * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
2731 * gcov-io.h (gcov_type): New profiler type introduced.
2732 * ipa-profile.c (lto_output_node): Streaming for time profile added.
2733 (input_node): Time profiler is read from LTO stream.
2734 * predict.c (maybe_hot_count_p): Hot prediction changed.
2735 * profile.c (instrument_values): New case for time profiler added.
2736 (compute_value_histograms): Read of time profile.
2737 * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
2738 * tree-profile.c (init_ic_make_global_vars): Time profiler
2740 (gimple_init_edge_profiler): TP function instrumentation.
2741 (gimple_gen_time_profiler): New.
2742 * value-prof.c (gimple_add_histogram_value): Support for time profiler
2744 (dump_histogram_value): TP type added to dumps.
2745 (visit_hist): More sensitive check that takes TP into account.
2746 (gimple_find_values_to_profile): TP instrumentation.
2747 * value-prof.h (hist_type): New histogram type added.
2748 (struct histogram_value_t): Pointer to struct function added.
2749 * libgcc/Makefile.in: New GCOV merge function for TP added.
2750 * libgcov.c: function_counter variable introduced.
2751 (_gcov_merge_time_profile): New.
2752 (_gcov_time_profiler): New.
2754 2013-11-11 Marc Glisse <marc.glisse@inria.fr>
2755 Jeff Law <law@redhat.com>
2757 * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
2758 ao_ref_init_from_ptr_and_size for builtins.
2760 2013-11-11 Uros Bizjak <ubizjak@gmail.com>
2761 H.J. Lu <hongjiu.lu@intel.com>
2764 * config/i386/x86-tune.def
2765 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
2766 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
2767 * config/i386/i386.h
2768 (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
2769 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES. Update for renamed
2770 X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
2771 * config/i386/i386.c (ix86_expand_set_or_movmem): Use
2772 TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
2773 misaligned_prologue_used. Check that
2774 desired_aling <= epilogue_size_needed.
2776 2013-11-11 Cong Hou <congh@google.com>
2778 PR tree-optimization/59050
2779 * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
2781 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
2784 * expmed.c (emit_store_flag): Fail for const-const comparison.
2786 2013-11-11 Tristan Gingold <gingold@adacore.com>
2787 Eric Botcazou <ebotcazou@adacore.com>
2789 * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
2790 * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
2791 * tree.def (CONSTRUCTOR): Likewise.
2792 * doc/generic.texi (CONSTRUCTOR): Likewise. Update description.
2793 * gimplify.c (gimplify_init_constructor): Do not clear the object when
2794 the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
2796 2013-11-11 Basile Starynkevitch <basile@starynkevitch.net>
2798 * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
2801 2013-11-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2803 * config/arm/arm.c (arm_new_rtx_costs): Return after handling
2806 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
2808 * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
2810 2013-11-08 Jeff Law <law@redhat.com>
2812 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
2813 threading paths first, then perform PHI node checks if applicable.
2815 2013-11-10 Karlson2k <k2k@narod.ru>
2816 Kai Tietz <ktietz@redhat.com>
2819 * configure.ac: Adding for exported symbols check
2820 and for rdynamic-check executable-extension.
2821 * configure: Regenerated.
2823 2013-11-10 Uros Bizjak <ubizjak@gmail.com>
2825 * mode-switching.c (optimize_mode_switching): Mark block as
2826 nontransparent, if last_mode at block exit is different from no_mode.
2828 2013-11-09 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2830 * function.c (NAME__MAIN): Move to...
2831 * cfgexpand.c (NAME__MAIN): ...here.
2833 2013-11-09 Richard Sandiford <rdsandiford@googlemail.com>
2835 * target.def (can_use_doloop_p): New hook.
2836 * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
2837 * doc/tm.texi: Regenerate.
2838 * doc/md.texi (doloop_begin, doloop_end): Update documentation.
2839 * hooks.h (hook_bool_dint_dint_uint_true): Declare.
2840 * hooks.c (hook_bool_dint_dint_uint_true): New function.
2841 * targhooks.h (can_use_doloop_if_innermost): Declare.
2842 * targhooks.c (can_use_doloop_if_innermost): New function.
2843 * target.h: Include double-int.h.
2844 * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
2845 Remove iteration count, maximum iteration count, loop depth and
2846 enter-at-top inputs from doloop_begin and doloop_end.
2847 * config/arc/arc.md (doloop_begin, doloop_end): Update for new
2849 * config/arc/arc.c (arc_can_use_doloop_p): New function.
2850 (TARGET_CAN_USE_DOLOOP_P): Define.
2851 * config/arm/thumb2.md (doloop_end): Update for new interface.
2852 * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
2853 * config/bfin/bfin.md (doloop_end): Update for new interface.
2854 * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
2855 (TARGET_CAN_USE_DOLOOP_P): Define.
2856 * config/c6x/c6x.md (doloop_end): Update for new interface.
2857 * config/ia64/ia64.md (doloop_end): Update for new interface.
2858 * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
2859 * config/mep/mep.md (doloop_begin, doloop_end): Update for new
2861 * config/mep/mep.c (mep_emit_doloop): Likewise.
2862 (TARGET_CAN_USE_DOLOOP_P): Define.
2863 * config/rs6000/rs6000.md (doloop_end): Update for new interface.
2864 * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
2865 * config/s390/s390.md (doloop_end): Update for new interface.
2866 * config/sh/sh.md (doloop_end): Likewise.
2867 * config/spu/spu.md (doloop_end): Likewise.
2868 * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
2869 * config/tilegx/tilegx.md (doloop_end): Update for new interface.
2870 * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
2871 * config/tilepro/tilepro.md (doloop_end): Update for new interface.
2872 * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
2873 * config/v850/v850.md (doloop_begin, doloop_end): Update for new
2875 * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
2877 2013-11-08 H.J. Lu <hongjiu.lu@intel.com>
2880 * doc/extend.texi: Move Cilk Plus Builtins node before Other
2883 2013-11-08 Andrew MacLeod <amacleod@redhat.com>
2884 Joseph Myers <joseph@codesourcery.com>
2886 * ginclude/stdatomic.h: New file.
2887 * Makefile.in (USER_H): Add stdatomic.h.
2889 2013-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2891 * config/arm/arm.c (arm_new_rtx_costs): Break after handling
2894 2013-11-08 Jeff Law <law@redhat.com>
2896 * tree-ssa-threadupdate.h (delete_thread_path): Declare.
2897 * tree-ssa-threadupdate.c (delete_thread_path): New function.
2898 (ssa_redirect_edges, thread_block_1): Use it.
2899 (thread_through_loop_header, mark_threaded_blocks): Likewise.
2900 (thread_through_all_blocks, register_jump_thread): Likewise.
2901 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
2903 2013-11-08 James Greenhalgh <james.greenhalgh@arm.com>
2905 * config/arm/aarch-common.c
2906 (search_term): New typedef.
2907 (shift_rtx_costs): New array.
2908 (arm_rtx_shift_left_p): New.
2909 (arm_find_sub_rtx_with_search_term): Likewise.
2910 (arm_find_sub_rtx_with_code): Likewise.
2911 (arm_early_load_addr_dep): Add sanity checking.
2912 (arm_no_early_alu_shift_dep): Likewise.
2913 (arm_no_early_alu_shift_value_dep): Likewise.
2914 (arm_no_early_mul_dep): Likewise.
2915 (arm_no_early_store_addr_dep): Likewise.
2917 2013-11-08 Richard Biener <rguenther@suse.de>
2919 PR tree-optimization/59047
2920 * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
2922 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
2924 * common.opt (fcheck-pointer-bounds): Move to ...
2925 * c-family/c.opt: ... here.
2926 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
2927 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
2928 * langhooks.h (lang_hooks): Remove chkp_supported field.
2929 * toplev.c (process_options): Remove chkp_supported check.
2931 2013-11-08 Richard Biener <rguenther@suse.de>
2933 PR tree-optimization/59038
2934 PR tree-optimization/58955
2935 * tree-loop-distribution.c (pg_add_dependence_edges): Revert
2936 previous change. Handle known dependences correctly.
2938 2013-11-08 Tom de Vries <tom@codesourcery.com>
2940 * config/rs6000/t-xilinx: Remove duplicate contents.
2942 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
2943 Joseph Myers <joseph@codesourcery.com>
2945 * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
2946 (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
2947 TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
2948 (struct tree_base): Add atomic_flag field.
2949 * tree.h (TYPE_ATOMIC): New accessor macro.
2950 (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
2951 (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
2952 (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
2953 (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
2954 * tree.c (set_type_quals): Set TYPE_ATOMIC.
2955 (find_atomic_core_type): New function.
2956 (build_qualified_type): Adjust alignment for qualified types.
2957 (build_atomic_base): New function
2958 (build_common_tree_nodes): Build atomicQI_type_node,
2959 atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
2961 * print-tree.c (print_node): Print atomic qualifier.
2962 * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
2963 * target.def (atomic_assign_expand_fenv): New hook.
2964 * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
2965 * doc/tm.texi: Regenerate.
2966 * targhooks.c (default_atomic_assign_expand_fenv): New function.
2967 * targhooks.h (default_atomic_assign_expand_fenv): Declare.
2968 * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
2969 * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
2971 * config/i386/i386.c (enum ix86_builtins): Add
2972 IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
2973 IX86_BUILTIN_FNCLEX.
2974 (bdesc_special_args): Add __builtin_ia32_fnstenv,
2975 __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
2976 (ix86_expand_builtin): Handle the new built-in functions.
2977 (ix86_atomic_assign_expand_fenv): New function.
2978 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
2979 * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
2980 (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
2981 (fnstenv, fldenv, fnstsw, fnclex): New insns.
2983 2013-11-07 Steve Ellcey <sellcey@mips.com>
2985 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
2986 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
2987 (MULTILIB_DIRNAMES): Add fp64 directory.
2988 (MULTILIB_EXCEPTIONS): Add new exclusions.
2990 2013-11-07 Aldy Hernandez <aldyh@redhat.com>
2992 * gimplify.c (gimple_regimplify_operands): Do not set
2994 * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
2995 (rewrite_close_phi_out_of_ssa): Same.
2996 (rewrite_phi_out_of_ssa): Same.
2997 (rewrite_degenerate_phi): Same.
2998 (handle_scalar_deps_crossing_scop_limits): Same.
2999 * tree-if-conv.c (predicate_scalar_phi): Same.
3000 * tree-parloops.c (create_loads_for_reductions): Same.
3001 (create_final_loads_for_reduction): Same.
3002 (create_loads_and_stores_for_name): Same.
3003 (transform_to_exit_first_loop): Same.
3004 (create_parallel_loop): Same.
3005 * tree-ssa-loop-im.c
3006 (move_computations_dom_walker::before_dom_children): Same.
3007 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
3008 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
3009 * tree-ssa-propagate.c (substitute_and_fold): Same.
3010 * tree-vect-loop.c (vect_finalize_reduction): Same.
3011 * tree-vect-stmts.c (vectorizable_call): Same.
3013 2013-11-07 Mike Stump <mikestump@comcast.net>
3015 * config/pdp11/pdp11.c: Include dbxout.h.
3016 * config/picochip/picochip.c: Likewise.
3018 2013-11-07 Cong Hou <congh@google.com>
3020 PR tree-optimization/56764
3021 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
3022 Combine alias checks if it is possible to amortize the runtime
3023 overhead. Return the number of alias checks after merging.
3024 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
3025 Use the function vect_create_cond_for_alias_checks () to check
3026 the number of alias checks.
3028 2013-11-07 Jeff Law <law@redhat.com>
3030 * varpool.c (ctor_for_folding): Fix typo in comment.
3032 2013-11-07 Joern Rennecke <joern.rennecke@embecosm.com>
3034 * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
3035 reg_a := reg_b + reg_a ==> reg_a := reg_a + reg_b
3037 2013-11-07 Jeff Law <law@redhat.com>
3039 * doc/invoke.texi (-fisolate-erroneous-paths): Document.
3041 * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
3042 No longer check if we have __builtin_trap, assume it's available.
3044 2013-11-07 Diego Novillo <dnovillo@google.com>
3046 * attribs.c (lookup_scoped_attribute_spec): Make static.
3047 (get_attribute_namespace): Likewise.
3048 * builtins.c (more_const_call_expr_args_p): Move from tree.h.
3049 (validate_arglist): Move earlier in the file. Make static.
3050 (expand_stack_restore): Move from stmt.c
3051 (expand_stack_save): Move from stmt.c
3052 (rewrite_call_expr_array): Move earlier in the file.
3053 (rewrite_call_expr_valist): Likewise.
3054 * cfgexpand.c: Include hard-reg-set.h before tree.h
3057 (expand_asm_loc): Move from stmt.c.
3058 (n_occurrences): Move from stmt.c.
3059 (check_operand_nalternatives): Move from stmt.c.
3060 (tree_conflicts_with_clobbers_p): Move from stmt.c.
3061 (expand_asm_operands): Move from stmt.c
3062 (expand_asm_stmt): Move from stmt.c
3063 (expand_computed_goto): Move from stmt.c
3064 (expand_goto): Move from stmt.c
3065 (expand_null_return_1): Move from stmt.c
3066 (expand_null_return): Move from stmt.c
3067 (expand_value_return): Move from stmt.c
3068 (expand_return): Move from stmt.c
3069 (expand_main_function): Move from function.c
3070 (stack_protect_prologue): Move from function.c
3071 * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
3072 (build_function_decl_skip_args): Move from tree.c.
3073 * explow.c (tree_expr_size): Move from tree.c.
3074 * expr.c (addr_expr_of_non_mem_decl_p): Remove.
3075 (fields_length): Move from tree.c.
3076 * fold-const.c (size_low_cst): Move from tree.c.
3077 (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
3078 (tree_expr_nonzero_p): Make static. Move earlier in the file.
3079 (fold_build3_initializer_loc): Remove.
3080 (tree_invalid_nonnegative_warnv_p): Make static.
3081 * function.c (expand_main_function): Move to cfgexpand.c.
3082 (stack_protect_prologue): Move to cfgexpand.c.
3083 (set_insn_locations): Move earlier in the file.
3084 * gimple-fold.c: Include langhooks.h.
3085 (truth_type_for): Move from tree.c.
3086 * print-tree.c (print_vec_tree): Remove.
3087 * stmt.c (expand_computed_goto): Move to cfgexpand.c.
3088 (expand_goto): Move to cfgexpand.c.
3089 (n_occurrences): Move to cfgexpand.c.
3090 (expand_asm_loc): Move to cfgexpand.c
3091 (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
3092 (expand_asm_operands): Move to cfgexpand.c.
3093 (expand_asm_stmt): Move to cfgexpand.c.
3094 (check_operand_nalternatives): Move to cfgexpand.c
3095 (expand_null_return): Move to cfgexpand.c.
3096 (expand_value_return): Move to cfgexpand.c.
3097 (expand_null_return_1): Move to cfgexpand.c.
3098 (expand_return): Move to cfgexpand.c.
3099 (expand_stack_save): Move to builtins.c.
3100 (expand_stack_restore): Move to builtins.c
3101 * symtab.c: Include output.h.
3102 (decl_assembler_name_hash): Move from tree.c.
3103 (decl_assembler_name_equal): Move from tree.c.
3104 * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
3105 * tree-eh.c (in_array_bounds_p): Move from tree.c.
3106 (range_in_array_bounds_p): Move from tree.c.
3107 * tree-object-size.c (fini_object_sizes): Make static.
3108 * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
3109 * tree-vrp.c (ssa_name_nonnegative_p): Remove.
3110 * tree.c (decl_assembler_name_equal): Move to symtab.c.
3111 (tree_expr_size): Move to explow.c.
3112 (decl_assembler_name_hash): Move to symtab.c.
3113 (real_twop): Remove.
3114 (tree_expr_size): Move to explow.c.
3115 (stabilize_reference_1): Move earlier in the file. Make static.
3116 (omp_remove_redundant_declare_simd_attrs): Remove.
3117 (simple_cst_list_equal): Move earlier in the file. Make static.
3118 (size_low_cst): Move to fold-const.c.
3119 (build_type_no_quals): Remove.
3120 (build_function_type_skip_args): Move to cgraphclones.c.
3121 (build_function_decl_skip_args): Move to cgraphclones.c.
3122 (in_array_bounds_p): Move to tree-eh.c.
3123 (range_in_array_bounds_p): Move to tree-eh.c.
3124 (truth_type_for): Move to gimple-fold.c.
3125 (list_equal_p): Remove.
3126 * tree.h (decl_assembler_name_equal): Remove.
3127 (decl_assembler_name_hash): Remove.
3128 (truth_type_for): Remove.
3129 (build_type_no_quals): Remove.
3130 (build_function_decl_skip_args): Remove.
3131 (in_array_bounds_p): Remove.
3132 (range_in_array_bounds_p): Remove.
3133 (size_low_cst): Remove.
3134 (omp_remove_redundant_declare_simd_attrs): Remove.
3135 (tree_expr_size): Remove.
3136 (fields_length): Remove.
3137 (stabilize_reference_1): Remove.
3138 (expand_goto): Remove.
3139 (expand_stack_save): Remove.
3140 (expand_stack_restore): Remove.
3141 (expand_return): Remove.
3142 (fold_build3_initializer_loc): Remove.
3143 (tree_expr_nonzero_p): Remove.
3144 (tree_invalid_nonnegative_warnv_p): Remove.
3145 (tree_expr_nonzero_warnv_p): Remove.
3146 (fold_builtin_snprintf_chk): Remove.
3147 (validate_arglist): Remove.
3148 (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
3149 (simple_cst_list_equal): Remove.
3150 (real_twop): Remove.
3151 (expand_main_function): Remove.
3152 (stack_protect_prologue): Remove.
3153 (print_vec_tree): Remove.
3154 (lookup_scoped_attribute_spec): Remove.
3155 (get_attribute_namespace): Remove.
3156 (expand_computed_goto): Remove.
3157 (expand_asm_stmt): Remove.
3158 (list_equal_p): Remove.
3159 (ssa_name_nonnegative_p): Remove.
3160 (fini_object_sizes): Remove.
3161 (addr_expr_of_non_mem_decl_p): Remove.
3162 (is_tm_safe_or_pure): Move to trans-mem.c.
3163 (more_const_call_expr_args_p): Remove.
3164 (save_vtable_map_decl): Remove.
3166 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
3168 * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
3169 linker plugins, too.
3171 * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
3172 link to libgomp and its dependencies.
3173 * config/ia64/hpux.h (LIB_SPEC): Likewise.
3174 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
3175 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
3176 * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
3178 2013-11-07 Jakub Jelinek <jakub@redhat.com>
3180 * tree-ssa-loop-niter.c: Include tree-ssanames.h.
3181 (determine_value_range): Add loop argument. Use get_range_info to
3183 (bound_difference): Adjust caller.
3185 2013-11-07 Richard Biener <rguenther@suse.de>
3186 Jakub Jelinek <jakub@redhat.com>
3188 * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
3189 latches from header PHI arguments from the latch edge.
3191 2013-11-07 Paolo Carlini <paolo.carlini@oracle.com>
3194 * varasm.c (output_constant): Handle NULLPTR_TYPE.
3196 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
3198 * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
3199 misaligned_prologue_used when it has been set.
3201 2013-11-07 Yury Gribov <y.gribov@samsung.com>
3202 Jakub Jelinek <jakub@redhat.com>
3205 * asan.c (get_mem_refs_of_builtin_call): Allow
3206 integer literals as addresses in instrumented builtins.
3208 2013-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3210 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
3211 Explain why plus_constant is not used.
3213 2013-11-07 Richard Biener <rguenther@suse.de>
3215 * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
3216 (canonicalize_value): ... this. Also handle stripping of
3218 (get_value, set_lattice_value, get_value_for_expr): Adjust.
3219 * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
3220 * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
3222 2013-11-07 Richard Biener <rguenther@suse.de>
3224 * tree-dfa.c (get_ref_base_and_extent): Fix casting.
3226 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
3229 * config/i386/i386.md (push peepholer/splitter): Use Pmode
3230 with stack_pointer_rtx.
3232 2013-11-07 Bin Cheng <bin.cheng@arm.com>
3234 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
3235 using operand_equal_p.
3237 2013-11-07 Bin Cheng <bin.cheng@arm.com>
3239 * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
3240 * tree-affine.c (get_inner_reference_aff): Return base.
3241 * tree-affine.h (get_inner_reference_aff): Change prototype.
3243 2013-11-06 Tobias Burnus <burnus@net-b.de>
3245 * doc/invoke.texi (Wdate-time): Fix typo.
3247 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
3249 * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
3250 cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
3251 fp_arith_reg_operand instead of arith_reg_operand.
3253 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
3255 * config/sh/sh.md (adddi3): Remove empty constraints.
3256 Remove can_create_pseudo_p and arith_reg_operand check.
3257 (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
3258 Split before reload.
3260 2013-11-06 Jeff Law <law@redhat.com>
3261 Tom Tromey <tromey@redhat.com>
3263 * gdbinit.in: Disable strict type checking.
3265 2013-11-06 Vladimir Makarov <vmakarov@redhat.com>
3267 * tree-pass.h (make_pass_live_range_shrinkage): New external.
3268 * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
3269 * sched-rgn.c (gate_handle_live_range_shrinkage): New.
3270 (rest_of_handle_live_range_shrinkage): Ditto
3271 (class pass_live_range_shrinkage): Ditto.
3272 (pass_data_live_range_shrinkage): Ditto.
3273 (make_pass_live_range_shrinkage): Ditto.
3274 * sched-int.h (initialize_live_range_shrinkage): New prototype.
3275 (finish_live_range_shrinkage): Ditto.
3276 * sched-deps.c (create_insn_reg_set): Make void return value.
3277 * passes.def: Add pass_live_range_shrinkage.
3278 * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
3279 * haifa-sched.c (live_range_shrinkage_p): New.
3280 (initialize_live_range_shrinkage, finish_live_range_shrinkage):
3282 (rank_for_schedule): Add code for pressure relief through live
3284 (schedule_insn): Print more debug info.
3285 (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
3286 through live range shrinkage.
3287 * doc/invoke.texi (-flive-range-shrinkage): New.
3288 * common.opt (flive-range-shrinkage): New.
3290 2013-11-06 Uros Bizjak <ubizjak@gmail.com>
3293 * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
3294 AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
3295 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
3296 RTXes that return in AVX256 register.
3298 2013-11-06 Richard Biener <rguenther@suse.de>
3300 PR tree-optimization/58653
3301 * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
3302 (prepare_initializers_chain): Adjust.
3304 2013-11-06 Andrew MacLeod <amacleod@redhat.com>
3306 * gimple.h (block_in_transaction): Move to basic-block.h and rename.
3307 (gimple_in_transaction): Use bb_in_transaction.
3308 * basic-block.h (bb_in_transaction): Relocate here and rename.
3309 * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
3311 2013-11-06 Richard Biener <rguenther@suse.de>
3313 * tree.c (drop_tree_overflow): New function.
3314 * tree.h (drop_tree_overflow): Declare.
3315 * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
3316 * tree-vrp.c (range_int_cst_singleton_p): Use
3317 is_overflow_infinity instead of testing TREE_OVERFLOW.
3318 (extract_range_from_assert): Likewise.
3319 (zero_nonzero_bits_from_vr): Likewise.
3320 (extract_range_basic): Likewise.
3321 (register_new_assert_for): Use drop_tree_overflow.
3322 (vrp_visit_phi_node): Likewise.
3324 2013-11-06 Eric Botcazou <ebotcazou@adacore.com>
3326 * config/i386/i386.c (ix86_expand_prologue): Optimize stack
3327 checking for leaf functions without dynamic stack allocation.
3328 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
3329 (ia64_expand_prologue): Likewise.
3330 * config/mips/mips.c (mips_expand_prologue): Likewise.
3331 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
3332 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
3333 (sparc_flat_expand_prologue): Likewise.
3335 2013-11-06 James Greenhalgh <james.greenhalgh@arm.com>
3337 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
3338 (__ST3_LANE_FUNC): Likewise.
3339 (__ST4_LANE_FUNC): Likewise.
3341 2013-11-06 Nick Clifton <nickc@redhat.com>
3343 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
3344 name returned by msp430_mcu_name.
3345 (LIB_SPEC): If a -T option has not been specified then set a
3346 default, mcu-specific, linker script.
3347 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
3348 * config/msp430/msp430.c (msp430x_names): Likewise.
3349 Alpha sort the names for ease of comparison.
3350 (msp430_mcu_name): New function: Returns a string suitable for
3351 use as a C preprocessor symbol based upon the name of the MCU
3353 (msp430_option_override): Accept msp430x and msp430xv2 as generic
3355 * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
3357 * gcc.c (do_spec_1): Do not insert a space after a %* substitution
3358 unless it is the last part of a spec substring.
3359 * doc/invoke.texi (Spec Files): Document space insertion
3362 2013-11-06 Christian Bruel <christian.bruel@st.com>
3364 * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
3365 Factorize probabilities, Use adjust_address instead of
3366 adjust_automodify_address when possible. Enable for optimize.
3367 (sh_expand_strlen): New function.
3368 * config/sh/sh-protos.h (sh_expand_strlen): Declare.
3369 * config/sh/sh.md (strlensi): New pattern.
3370 (UNSPEC_BUILTIN_STRLEN): Define.
3372 2013-11-06 Jakub Jelinek <jakub@redhat.com>
3375 * expr.c (get_bit_range): Handle *offset == NULL_TREE.
3376 (expand_assignment): If *bitpos is negative, set *offset
3377 and adjust *bitpos, so that it is not negative.
3379 2013-11-06 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3381 * config/i386/bdver3.md : Added two additional decoder units
3382 to support issue rate of 4 and remodeled vector unit.
3383 * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
3384 architectures is set to 4.
3385 * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
3386 lookahead is set to 4 for BD architectures.
3388 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3390 * config/rs6000/rs6000.c (rs6000_option_override_internal):
3391 Remove restriction against use of VSX instructions when generating
3392 code for little endian mode.
3394 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3396 * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
3397 for both big and little endian.
3398 (mulv8hi3): Swap input operands for merge high and merge low
3399 instructions for little endian.
3401 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3403 * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
3404 define_insn to define_expand that uses even patterns for big
3405 endian and odd patterns for little endian.
3406 (vec_widen_smult_even_v16qi): Likewise.
3407 (vec_widen_umult_even_v8hi): Likewise.
3408 (vec_widen_smult_even_v8hi): Likewise.
3409 (vec_widen_umult_odd_v16qi): Likewise.
3410 (vec_widen_smult_odd_v16qi): Likewise.
3411 (vec_widen_umult_odd_v8hi): Likewise.
3412 (vec_widen_smult_odd_v8hi): Likewise.
3413 (altivec_vmuleub): New define_insn.
3414 (altivec_vmuloub): Likewise.
3415 (altivec_vmulesb): Likewise.
3416 (altivec_vmulosb): Likewise.
3417 (altivec_vmuleuh): Likewise.
3418 (altivec_vmulouh): Likewise.
3419 (altivec_vmulesh): Likewise.
3420 (altivec_vmulosh): Likewise.
3422 2013-11-05 Mike Stump <mikestump@comcast.net>
3424 * Makefile.in (mostlyclean): Remove c-family objects.
3426 2013-11-05 Ian Lance Taylor <iant@google.com>
3428 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
3429 If possible, add .cfi directives to record change to bx.
3430 * config/i386/i386.c (ix86_emit_cfi): New function.
3431 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
3433 2013-11-05 Steven Bosscher <steven@gcc.gnu.org>
3435 * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
3436 immediately after a label for a tablejump pattern.
3438 * config/arm/arm.c (is_jump_table): Remove.
3439 (create_fix_barrier): Use tablejump_p instead.
3440 (arm_reorg): Likewise.
3441 (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
3442 (thumb2_output_casesi): Likewise.
3443 * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
3444 * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
3445 casesi_shift_media, casesi_load_media): Likewise.
3446 * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
3447 * config/microblaze/microblaze.md: Likewise.
3449 2013-11-05 Tobias Burnus <burnus@net-b.de>
3451 * doc/invoke.texi (-Wdate-time): Document.
3453 2013-11-05 Richard Sandiford <rdsandiford@googlemail.com>
3455 * double-int.c (lshift_double, rshift_double): Remove
3456 SHIFT_COUNT_TRUNCATED handling.
3458 2013-11-05 Jeff Law <law@redhat.com>
3460 * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
3461 * common.opt (-fisolate-erroneous-paths): Add option and documentation.
3462 * gimple-ssa-isolate-paths.c: New file.
3463 * gimple.c (check_loadstore): New function.
3464 (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
3465 Verify OP is in the argument list and the argument corresponding
3466 to OP is a pointer type. Use operand_equal_p rather than
3467 pointer equality when testing if OP is on the nonnull list.
3468 Use check_loadstore rather than count_ptr_derefs. Handle
3469 GIMPLE_RETURN statements.
3470 * tree-vrp.c (infer_nonnull_range): Remove.
3471 * gimple.h (infer_nonnull_range): Declare.
3472 * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
3473 * passes.def: Add pass_isolate_erroneous_paths.
3474 * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
3475 * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
3476 * tree-ssa.c (struct count_ptr_d): Remove.
3477 (count_ptr_derefs, count_uses_and_derefs): Remove.
3478 * tree-ssa.h (count_uses_and_derefs): Remove.
3480 2013-11-05 Jakub Jelinek <jakub@redhat.com>
3482 PR rtl-optimization/58997
3483 * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
3484 get_iv_value to be in iv->mode rather than iv->extend_mode.
3485 (iv_extend): Likewise. Otherwise, if iv->extend != extend,
3486 use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
3487 * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
3490 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
3492 * gimple.h: Move some prototypes to gimple-expr.h and add to include
3494 (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
3495 Move to gimple-expr.h.
3496 * gimple-expr.h: New file. Relocate some prototypes from gimple.h.
3497 (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
3498 is_gimple_id, virtual_operand_p, is_gimple_addressable,
3499 is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
3501 * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
3502 gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
3503 is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
3504 is_gimple_address, is_gimple_invariant_address,
3505 is_gimple_ip_invariant_address, is_gimple_min_invariant,
3506 is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
3507 virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
3508 is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
3509 gimple_decl_printable_name, useless_type_conversion_p,
3510 types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
3512 * gimple-expr.c: New File.
3513 (useless_type_conversion_p, gimple_set_body, gimple_body,
3514 gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
3515 gimple_can_coalesce_p, extract_ops_from_tree_1,
3516 gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
3517 is_gimple_address, is_gimple_invariant_address,
3518 is_gimple_ip_invariant_address, is_gimple_min_invariant,
3519 is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
3520 is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
3521 is_gimple_mem_ref_addr): Relocate here.
3522 * Makefile.in (OBJS): Add gimple-expr.o.
3524 2013-11-05 David Malcolm <dmalcolm@redhat.com>
3526 * gengtype-parse.c (struct_field_seq): Support empty structs.
3528 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
3530 * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
3532 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
3534 * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
3536 * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
3538 (LONG_DOUBLE_TYPE_SIZE): New define.
3539 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
3541 2013-11-05 Paolo Carlini <paolo.carlini@oracle.com>
3544 * doc/extend.texi [visibility ("visibility_type")]: Add example
3545 about visibility attribute on namespace declaration.
3547 2013-11-05 Richard Biener <rguenther@suse.de>
3550 * passes.def (all_passes): Start with pass_fixup_cfg again.
3552 2013-11-05 Richard Biener <rguenther@suse.de>
3554 PR tree-optimization/58955
3555 * tree-loop-distribution.c (pg_add_dependence_edges): Fix
3558 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3560 * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
3562 (vec_pack_ufix_trunc_v2df): Likewise.
3564 2013-11-05 H.J. Lu <hongjiu.lu@intel.com>
3567 * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
3568 pattern, instead of word_mode.
3570 * expr.c (emit_block_move_via_movmem): Don't use mode wider than
3572 (set_storage_via_setmem): Likewise.
3574 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
3576 * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
3577 gimple.h and the rest of the condition in eliminate_build.
3578 (eliminate_build): Call new routine.
3579 * gimple.h (phi_ssa_name_p): Delete.
3581 2013-11-05 Trevor Saunders <tsaunders@mozilla.com>
3583 * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
3584 case of no prefix and reserving zero slots, because when that's the
3585 case we'll never get here.
3586 * vec.h (va_heap::reserve): Don't try and handle
3587 vec_prefix::calculate_allocation returning zero because that should
3590 2013-11-05 Richard Biener <rguenther@suse.de>
3593 * tree-dfa.c (get_ref_base_and_extent): Merge common code
3594 in MEM_REF and TARGET_MEM_REF handling. Make sure to
3595 process trailing array detection before diving into the
3596 view-converted object (and possibly apply some extra offset).
3598 2013-11-05 Joseph Myers <joseph@codesourcery.com>
3600 * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
3602 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
3604 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
3606 PR tree-optimization/58958
3607 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
3608 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
3610 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
3612 * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
3613 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
3615 2013-11-05 Jakub Jelinek <jakub@redhat.com>
3617 PR tree-optimization/58984
3618 * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
3619 set *SIZE_P if non-NULL on success.
3620 (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
3622 (ipcp_transform_function): Likewise. Punt if size of access
3623 is different from TYPE_SIZE on v->value's type.
3625 2013-11-05 Tobias Burnus <burnus@net-b.de>
3627 * doc/invoke.texi (-fopenmp-simd): Document new option.
3628 * gimplify.c (gimplify_body): Accept -fopenmp-simd.
3629 * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
3630 * tree.c (attribute_value_equal): Ditto.
3632 2013-11-04 Wei Mi <wmi@google.com>
3634 * sched-rgn.c (add_branch_dependences): Keep insns in
3635 a SCHED_GROUP at the end of BB to remain their location.
3637 2013-11-04 Wei Mi <wmi@google.com>
3639 * config/i386/i386.c (memory_address_length): Extract a part
3640 of code to rip_relative_addr_p.
3641 (rip_relative_addr_p): New Function.
3642 (ix86_macro_fusion_p): Ditto.
3643 (ix86_macro_fusion_pair_p): Ditto.
3644 * config/i386/i386.h: Add new tune features about macro-fusion.
3645 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
3646 * doc/tm.texi: Generated.
3647 * doc/tm.texi.in: Ditto.
3648 * haifa-sched.c (try_group_insn): New Function.
3649 (group_insns_for_macro_fusion): Ditto.
3650 (sched_init): Call group_insns_for_macro_fusion.
3651 * target.def: Add two hooks: macro_fusion_p and
3652 macro_fusion_pair_p.
3654 2013-11-04 Kostya Serebryany <kcc@google.com>
3656 Update to match the changed asan API.
3657 * asan.c (asan_function_start): New function.
3658 (asan_emit_stack_protection): Update the string stored in the
3659 stack red zone to match new API. Store the PC of the current
3660 function in the red zone.
3661 (asan_global_struct): Update the __asan_global definition to match
3663 (asan_add_global): Ditto.
3664 * asan.h (asan_function_start): New prototype.
3665 * final.c (final_start_function): Call asan_function_start.
3666 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
3669 2013-11-04 Wei Mi <wmi@google.com>
3671 * config/i386/i386-c.c (ix86_target_macros_internal): Separate
3672 PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
3673 * config/i386/i386.c (ix86_option_override_internal): Ditto.
3674 (ix86_issue_rate): Ditto.
3675 (ix86_adjust_cost): Ditto.
3676 (ia32_multipass_dfa_lookahead): Ditto.
3677 (ix86_sched_init_global): Ditto.
3678 (get_builtin_code_for_version): Ditto.
3679 * config/i386/i386.h (enum target_cpu_default): Ditto.
3680 (enum processor_type): Ditto.
3681 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
3683 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
3685 PR rtl-optimization/58967
3686 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
3687 !lra_in_progress for mode sizes bigger word.
3689 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3691 * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
3692 arguments to merge instruction for little endian.
3693 (vec_widen_umult_lo_v16qi): Likewise.
3694 (vec_widen_smult_hi_v16qi): Likewise.
3695 (vec_widen_smult_lo_v16qi): Likewise.
3696 (vec_widen_umult_hi_v8hi): Likewise.
3697 (vec_widen_umult_lo_v8hi): Likewise.
3698 (vec_widen_smult_hi_v8hi): Likewise.
3699 (vec_widen_smult_lo_v8hi): Likewise.
3701 2013-11-04 Ian Lance Taylor <iant@google.com>
3703 * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
3704 * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
3705 builtins that take pointers.
3706 * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
3707 * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
3708 (run_gcc): Pass -fnon-call-exceptions.
3710 2013-11-04 Jakub Jelinek <jakub@redhat.com>
3712 * optabs.c (expand_vec_perm): Revert one incorrect line from
3715 PR tree-optimization/58978
3716 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
3717 use_stmt by single_imm_use directly. Only call single_imm_use
3720 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
3722 PR rtl-optimization/58968
3723 * lra-spills.c (return_regno_p): New function.
3724 (lra_final_code_change): Use it.
3726 2013-11-04 Joseph Myers <joseph@codesourcery.com>
3728 * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
3729 * target.def (float_exceptions_rounding_supported_p): New hook.
3730 * targhooks.c (default_float_exceptions_rounding_supported_p): New
3732 * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
3733 * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
3735 * doc/tm.texi: Regenerate.
3736 * config.gcc (powerpc*-*-linux*): Set extra_objs.
3737 * config/rs6000/rs6000-linux.c: New file.
3738 * config/rs6000/rs6000-protos.h
3739 (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
3740 * config/rs6000/linux.h
3741 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
3742 * config/rs6000/linux64.h
3743 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
3744 * config/rs6000/t-linux (rs6000-linux.o): New rule.
3745 * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
3747 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3749 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
3750 Replace the define_insn_and_split with a define_insn and two
3751 define_splits, with the split after reload re-permuting the source
3752 register to its original value.
3753 (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
3754 (*vsx_le_perm_store_v8hi): Likewise.
3755 (*vsx_le_perm_store_v16qi): Likewise.
3757 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3759 * config/rs6000/vector.md (vec_pack_trunc_v2df): Adjust for
3762 2013-11-04 Jakub Jelinek <jakub@redhat.com>
3764 PR tree-optimization/58946
3765 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
3766 bbs with bbinfo[idx].op != NULL before all blocks with
3767 bbinfo[idx].op == NULL.
3769 2013-11-04 Richard Sandiford <rdsandiford@googlemail.com>
3771 * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
3772 (avr_dump_double_int_hex): Likewise.
3773 (avr_log_vadump): Remove %D and %X handling.
3774 * config/avr/avr.c (avr_double_int_push_digit): Delete.
3775 (avr_map_op_t): Change map from double_int to unsigned int.
3776 (avr_map_op): Update accordingly.
3777 (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
3778 (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
3779 unsigned ints rather than double_ints.
3781 2013-11-03 Marek Polacek <polacek@redhat.com>
3783 Implement -fsanitize=vla-bound.
3784 * opts.c (common_handle_option): Handle vla-bound.
3785 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
3786 * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
3787 * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
3789 2013-11-02 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
3791 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
3794 2013-11-02 Uros Bizjak <ubizjak@gmail.com>
3796 * config/i386/constraints.md (Ts, Tv): New address constrains.
3797 * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
3798 constraint for address_no_seg_operand.
3799 * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
3800 (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
3801 (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
3802 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
3803 (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
3804 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
3805 (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
3806 (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
3807 constraint for vsib_address_operand.
3809 2013-11-02 Steven Bosscher <steven@gcc.gnu.org>
3811 * gcse.c (pre_delete): Remove references to regmove from comments.
3812 * recog.c: (validate_replace_rtx_1): Likewise.
3813 * config/rl78/rl78.c: Likewise.
3814 * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
3815 * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
3816 * common/config/mmix/mmix-common.c: Likewise.
3818 2013-11-01 Trevor Saunders <tsaunders@mozilla.com>
3820 * function.c (reorder_blocks): Convert block_stack to a stack_vec.
3821 * gimplify.c (gimplify_compound_lval): Likewise.
3822 * graphite-clast-to-gimple.c (gloog): Likewise.
3823 * graphite-dependences.c (loop_is_parallel_p): Likewise.
3824 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
3825 (limit_scop); Likewise.
3826 (build_scops): Likewise.
3827 (dot_scop): Likewise.
3828 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
3829 (build_scop_drs): Likewise.
3830 (insert_stmts): Likewise.
3831 (insert_out_of_ssa_copy): Likewise.
3832 (remove_phi): Likewise.
3833 (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
3834 * hw-doloop.c (discover_loop): Likewise.
3835 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
3836 * tree-dfa.c (dump_enumerated_decls): Likewise.
3837 * tree-if-conv.c (if_convertable_loop_p): Likewise.
3838 * tree-inline.c (tree_function_versioning): Likewise.
3839 * tree-loop-distribution.c (build_rdg): Likewise.
3840 (rdg_flag_vertex_and_dependent): Likewise.
3841 (distribute_loop): Likewise.
3842 * tree-parloops.c (loop_parallel_p): Likewise.
3843 (eliminate_local_variables): Likewise.
3844 (separate_decls_in_region): Likewise.
3845 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
3846 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
3847 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
3848 * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
3849 * tree-vect-patterns.c (vect_pattern_recog): Likewise.
3850 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
3851 (vectorizable_condition): Likewise.
3853 2013-11-01 Uros Bizjak <ubizjak@gmail.com>
3855 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
3856 * configure: Regenerate.
3857 * config/i386/i386.md (*movdi_internal): Change
3858 HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
3859 (*movdf_internal): Ditto.
3860 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
3861 * config/i386/sse.md (vec_concatv2di): Output interunit movq
3862 for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
3864 2013-10-31 Robert Suchanek <Robert.Suchanek@imgtec.com>
3866 * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
3869 2013-10-31 David Malcolm <dmalcolm@redhat.com>
3871 Automated part of renaming of symtab_node_base to symtab_node.
3873 Patch autogenerated by rename_symtab.py from
3874 https://github.com/davidmalcolm/gcc-refactoring-scripts
3875 revision 58bb219cc090b2f4516a9297d868c245495ee622
3876 with ChangeLog entry fixed up by hand.
3878 * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
3880 (cgraph_node_for_asm): Likewise.
3881 * cgraph.h (symtab_node_base): Likewise.
3882 (cgraph_node): Likewise.
3883 (varpool_node): Likewise.
3884 (is_a_helper <cgraph_node>::test): Likewise.
3885 (is_a_helper <varpool_node>::test): Likewise.
3886 (symtab_nodes): Likewise.
3887 (symtab_register_node): Likewise.
3888 (symtab_unregister_node): Likewise.
3889 (symtab_remove_node): Likewise.
3890 (symtab_get_node): Likewise.
3891 (symtab_node_for_asm): Likewise.
3892 (symtab_node_asm_name): Likewise.
3893 (symtab_node_name): Likewise.
3894 (symtab_insert_node_to_hashtable): Likewise.
3895 (symtab_add_to_same_comdat_group): Likewise.
3896 (symtab_dissolve_same_comdat_group_list): Likewise.
3897 (dump_symtab_node): Likewise.
3898 (debug_symtab_node): Likewise.
3899 (dump_symtab_base): Likewise.
3900 (verify_symtab_node): Likewise.
3901 (verify_symtab_base): Likewise.
3902 (symtab_used_from_object_file_p): Likewise.
3903 (symtab_alias_ultimate_target): Likewise.
3904 (symtab_resolve_alias): Likewise.
3905 (fixup_same_cpp_alias_visibility): Likewise.
3906 (symtab_for_node_and_aliases): Likewise.
3907 (symtab_nonoverwritable_alias): Likewise.
3908 (availability symtab_node_availability): Likewise.
3909 (symtab_semantically_equivalent_p): Likewise.
3910 (fixup_same_cpp_alias_visibility): Likewise.
3911 (symtab_prevail_in_asm_name_hash): Likewise.
3913 (varpool): Likewise.
3914 (varpool_first_variable): Likewise.
3915 (varpool_next_variable): Likewise.
3916 (varpool_first_static_initializer): Likewise.
3917 (varpool_next_static_initializer): Likewise.
3918 (varpool_first_defined_variable): Likewise.
3919 (varpool_next_defined_variable): Likewise.
3920 (cgraph_first_defined_function): Likewise.
3921 (cgraph_next_defined_function): Likewise.
3922 (cgraph_first_function): Likewise.
3923 (cgraph_next_function): Likewise.
3924 (cgraph_first_function_with_gimple_body): Likewise.
3925 (cgraph_next_function_with_gimple_body): Likewise.
3926 (symtab_alias_target): Likewise.
3927 (symtab_real_symbol_p): Likewise.
3928 (symtab_can_be_discarded): Likewise.
3929 * cgraphbuild.c (mark_address): Likewise.
3930 (mark_load): Likewise.
3931 (mark_store): Likewise.
3932 * cgraphunit.c (decide_is_symbol_needed): Likewise.
3934 (enqueue_node): Likewise.
3935 (referred_to_p): Likewise.
3936 (cgraph_process_same_body_aliases): Likewise.
3937 (analyze_functions): Likewise.
3938 (handle_alias_pairs): Likewise.
3939 (output_weakrefs): Likewise.
3940 (compile): Likewise.
3941 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
3942 * ipa-inline-analysis.c (inline_write_summary): Likewise.
3943 * ipa-prop.c (remove_described_reference): Likewise.
3944 (try_decrement_rdesc_refcount): Likewise.
3945 (ipa_edge_duplication_hook): Likewise.
3946 * ipa-ref.c (ipa_record_reference): Likewise.
3947 (ipa_maybe_record_reference): Likewise.
3948 (ipa_clone_ref): Likewise.
3949 (ipa_clone_references): Likewise.
3950 (ipa_clone_referring): Likewise.
3951 (ipa_find_reference): Likewise.
3952 (ipa_remove_stmt_references): Likewise.
3953 (ipa_clear_stmts_in_references): Likewise.
3954 * ipa-ref.h (symtab_node_base): Likewise.
3955 (ipa_ref): Likewise.
3956 (ipa_record_reference): Likewise.
3957 (ipa_maybe_record_reference): Likewise.
3958 (ipa_clone_references): Likewise.
3959 (ipa_clone_referring): Likewise.
3960 (ipa_clone_ref): Likewise.
3961 (ipa_find_reference): Likewise.
3962 (ipa_remove_stmt_references): Likewise.
3963 (ipa_clear_stmts_in_references): Likewise.
3964 * ipa-reference.c (ipa_reference_write_optimization_summary):
3966 * ipa.c (enqueue_node): Likewise.
3967 (process_references): Likewise.
3968 (walk_polymorphic_call_targets): Likewise.
3969 (symtab_remove_unreachable_nodes): Likewise.
3970 (address_taken_from_non_vtable_p): Likewise.
3971 (comdat_can_be_unshared_p_1): Likewise.
3972 (comdat_can_be_unshared_p): Likewise.
3973 (can_replace_by_local_alias): Likewise.
3974 (function_and_variable_visibility): Likewise.
3975 * is-a.h: Likewise (within example in comment).
3976 * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
3977 (lto_symtab_encoder_encode): Likewise.
3978 (lto_symtab_encoder_delete_node): Likewise.
3979 (lto_symtab_encoder_in_partition_p): Likewise.
3980 (lto_set_symtab_encoder_in_partition): Likewise.
3981 (output_refs): Likewise.
3982 (compute_ltrans_boundary): Likewise.
3983 (output_symtab): Likewise.
3984 (input_node): Likewise.
3985 (input_ref): Likewise.
3986 (input_edge): Likewise.
3987 (input_cgraph_1): Likewise.
3988 (input_refs): Likewise.
3989 (output_cgraph_opt_summary): Likewise.
3990 (input_node_opt_summary): Likewise.
3991 (input_cgraph_opt_section): Likewise.
3992 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
3994 * lto-streamer-out.c (lto_output): Likewise.
3995 (output_symbol_p): Likewise.
3996 (produce_symtab): Likewise.
3997 * lto-streamer.h (lto_encoder_entry): Likewise.
3998 (lto_free_function_in_decl_state_for_node): Likewise.
3999 (lto_symtab_encoder_encode): Likewise.
4000 (lto_symtab_encoder_delete_node): Likewise.
4001 (lto_symtab_encoder_in_partition_p): Likewise.
4002 (lto_set_symtab_encoder_in_partition): Likewise.
4003 (lto_symtab_encoder_lookup): Likewise.
4004 (lsei_node): Likewise.
4005 (lto_symtab_encoder_deref): Likewise.
4006 * symtab.c (symtab_hash): Likewise.
4007 (assembler_name_hash): Likewise.
4008 (symtab_nodes): Likewise.
4009 (hash_node): Likewise.
4010 (eq_node): Likewise.
4011 (hash_node_by_assembler_name): Likewise.
4012 (eq_assembler_name): Likewise.
4013 (insert_to_assembler_name_hash): Likewise.
4014 (unlink_from_assembler_name_hash): Likewise.
4015 (symtab_prevail_in_asm_name_hash): Likewise.
4016 (symtab_register_node): Likewise.
4017 (symtab_insert_node_to_hashtable): Likewise.
4018 (symtab_unregister_node): Likewise.
4019 (symtab_get_node): Likewise.
4020 (symtab_remove_node): Likewise.
4021 (symtab_initialize_asm_name_hash): Likewise.
4022 (symtab_node_for_asm): Likewise.
4023 (symtab_add_to_same_comdat_group): Likewise.
4024 (symtab_dissolve_same_comdat_group_list): Likewise.
4025 (symtab_node_asm_name): Likewise.
4026 (symtab_node_name): Likewise.
4027 (dump_symtab_base): Likewise.
4028 (dump_symtab_node): Likewise.
4029 (dump_symtab): Likewise.
4030 (debug_symtab_node): Likewise.
4031 (verify_symtab_base): Likewise.
4032 (verify_symtab_node): Likewise.
4033 (verify_symtab): Likewise.
4034 (symtab_used_from_object_file_p): Likewise.
4035 (symtab_node_availability): Likewise.
4036 (symtab_alias_ultimate_target): Likewise.
4037 (fixup_same_cpp_alias_visibility): Likewise.
4038 (symtab_resolve_alias): Likewise.
4039 (symtab_for_node_and_aliases): Likewise.
4040 (symtab_for_node_and_aliases): Likewise.
4041 (symtab_nonoverwritable_alias_1): Likewise.
4042 (symtab_nonoverwritable_alias): Likewise.
4043 (symtab_semantically_equivalent_p): Likewise.
4044 * value-prof.c (init_node_map): Likewise.
4045 * varasm.c (find_decl): Likewise.
4046 * varpool.c (varpool_node_for_asm): Likewise.
4047 (varpool_remove_unreferenced_decls): Likewise.
4049 2013-10-31 David Malcolm <dmalcolm@redhat.com>
4051 Manual part of renaming of symtab_node_base to symtab_node.
4053 * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
4054 clashes with the preferred name for the base class.
4055 (const_symtab_node): Remove redundant typedef.
4057 2013-10-31 Jakub Jelinek <jakub@redhat.com>
4059 * optabs.c (expand_vec_perm): Avoid vector mode punning
4060 SUBREGs in SET_DEST.
4061 * expmed.c (store_bit_field_1): Likewise.
4062 * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
4063 vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
4064 vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
4065 * config/i386/i386.c (ix86_expand_vector_move_misalign,
4066 ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
4067 ix86_expand_sse_unpack, ix86_expand_args_builtin,
4068 ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
4069 emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
4070 expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
4071 expand_vec_perm_vpshufb2_vpermq,
4072 expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
4073 expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
4074 ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
4075 (expand_vec_perm_palignr): Likewise. Modify a copy of *d rather
4078 2013-10-31 Uros Bizjak <ubizjak@gmail.com>
4080 * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
4081 Use gcc_unreachable for unhandled modes. Do not check results of
4082 expand_simple_binop. If not expanded to target, move the result.
4084 2013-10-31 Chung-Ju Wu <jasonwucj@gmail.com>
4085 Shiva Chen <shiva0217@gmail.com>
4087 * config.gcc (nds32*-*-*): Add nds32 target.
4088 * config/nds32/nds32.c: New file.
4089 * config/nds32/nds32.h: New file.
4090 * config/nds32/nds32.md: New file.
4091 * config/nds32/constants.md: New file.
4092 * config/nds32/constraints.md: New file.
4093 * config/nds32/iterators.md: New file.
4094 * config/nds32/nds32-doubleword.md: New file.
4095 * config/nds32/nds32-intrinsic.md: New file.
4096 * config/nds32/nds32_intrinsic.h: New file.
4097 * config/nds32/nds32-modes.def: New file.
4098 * config/nds32/nds32-multiple.md: New file.
4099 * config/nds32/nds32.opt: New file.
4100 * config/nds32/nds32-opts.h: New file.
4101 * config/nds32/nds32-protos.h: New file.
4102 * config/nds32/nds32-peephole2.md: New file.
4103 * config/nds32/pipelines.md: New file.
4104 * config/nds32/predicates.md: New file.
4105 * config/nds32/t-mlibs: New file.
4106 * common/config/nds32: New directory and files.
4108 * doc/invoke.texi (NDS32 options): Document nds32 specific options.
4109 * doc/md.texi (NDS32 family): Document nds32 specific constraints.
4110 * doc/install.texi (Cross-Compiler-Specific Options): Document
4111 --with-nds32-lib for nds32 target.
4112 * doc/extend.texi (Function Attributes, Target Builtins): Document
4113 nds32 specific attributes.
4115 2013-10-31 Vladimir Makarov <vmakarov@redhat.com>
4117 * lra-constraints (process_alt_operands): Use the result
4118 elimination register for operand when matching constraints.
4120 2013-10-31 Jakub Jelinek <jakub@redhat.com>
4122 * tree-vrp.c (maybe_set_nonzero_bits): New function.
4123 (remove_range_assertions): Call it.
4125 * tree.c (tree_ctz): New function.
4126 * tree.h (tree_ctz): New prototype.
4127 * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
4128 first argument from tree to const_tree.
4129 * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
4130 * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
4131 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
4133 * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
4134 * tree-vect-loop.c (vect_analyze_loop_operations,
4135 vect_transform_loop): Don't force scalar loop for bound just because
4136 number of iterations is unknown, only do it if it is not known to be
4137 a multiple of vectorization_factor.
4138 * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
4140 * gimple-pretty-print.c (dump_ssaname_info): Print newline also
4141 in case of VR_VARYING. Print get_nonzero_bits if not all ones.
4142 * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
4143 (set_nonzero_bits, get_nonzero_bits): New prototypes.
4144 * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
4145 a default def isn't partially constant.
4146 (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
4147 is known to be partially zero.
4148 (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
4149 to see if a default def isn't partially constant.
4150 * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
4151 creation of a range, if VR_RANGE, try to improve nonzero_bits from
4153 (set_nonzero_bits, get_nonzero_bits): New functions.
4155 * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
4156 * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
4157 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
4158 (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
4159 uses but in the condition and ASSERT_EXPR and the other successor of
4160 the predecessor bb is __builtin_unreachable (), set_range_info of the
4161 ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
4163 2013-10-31 Martin Jambor <mjambor@suse.cz>
4165 PR rtl-optimization/58934
4167 2013-10-30 Martin Jambor <mjambor@suse.cz>
4168 PR rtl-optimization/10474
4169 * ira.c (find_moveable_pseudos): Do not calculate dominance info
4171 (interesting_dest_for_shprep): New function.
4172 (split_live_ranges_for_shrink_wrap): Likewise.
4173 (ira): Calculate dominance info and df analysis. Call
4174 split_live_ranges_for_shrink_wrap.
4176 2013-10-31 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
4177 Yury Gribov <y.gribov@samsung.com>
4180 * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
4181 shadow pointer to avoid clobbering the main one.
4183 2013-10-31 Zhenqiang Chen <zhenqiang.chen@linaro.org>
4185 * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
4187 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
4190 * ira-color.c (update_costs_from_copies): Add new parameter. Use
4191 it for calling update_costs_from_allocno.
4192 (assign_hard_reg): Call restore_costs_from_copies only for
4193 !retry_p. Pass new argument to update_costs_from_copies.
4194 (color_pass): Pass new argument to update_costs_from_copies.
4195 (ira_mark_allocation_change): Ditto.
4197 2013-10-30 Sharad Singhai <singhai@google.com>
4200 * opts.c (common_handle_option): Remove deprecated option
4201 -ftree-vectorizer-verbose.
4202 * doc/invoke.texi (Debugging Options): Ditto.
4203 * opts-global.c (handle_common_deferred_options): Ditto.
4204 (dump_remap_tree_vectorizer_verbose): Delete.
4205 * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
4207 2013-10-30 DJ Delorie <dj@redhat.com>
4209 * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
4210 that take no arguments.
4212 2013-10-30 Joern Rennecke <joern.rennecke@embecosm.com>
4215 * reload1.c (update_eliminables_and_spill): New function, broken
4217 (reload): Use it. Check for frame size change after frame size
4218 alignment, and call update_eliminables_and_spill first if continue-ing.
4220 2013-10-30 Cong Hou <congh@google.com>
4223 * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
4224 * config/i386/i386.c (ix86_expand_sse2_abs): New function.
4225 * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
4227 2013-10-18 Mikael Pettersson <mikpelinux@gmail.com>
4229 PR rtl-optimization/58369
4230 * reload1.c (compute_reload_subreg_offset): New function.
4231 (choose_reload_regs): Use it to pass endian-correct
4232 offset to subreg_regno_offset.
4234 2013-10-30 Tobias Burnus <burnus@net-b.de>
4237 * tree-cfg.c (replace_loop_annotate): Replace warning by
4240 2013-10-30 Jason Merrill <jason@redhat.com>
4242 * configure.ac (loose_warn): Add -Wno-format if
4243 --disable-build-format-warnings.
4245 2013-10-30 David Malcolm <dmalcolm@redhat.com>
4247 * cgraphunit.c (analyze_functions): Split symtab_node declarations
4248 onto multiple lines to make things easier for rename_symtab.py.
4250 * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
4251 (symtab_semantically_equivalent_p): Likewise.
4253 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
4256 * lra.c (check_rtl): Remove address check before LRA work.
4258 2013-10-30 Marc Glisse <marc.glisse@inria.fr>
4260 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
4261 POINTER_PLUS_EXPR in the defining statement.
4263 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
4265 * regmove.c: Remove.
4266 * tree-pass.h (make_pass_regmove): Remove.
4267 * timevar.def (TV_REGMOVE): Remove.
4268 * passes.def (pass_regmove): Remove.
4269 * opts.c (default_options_table): Remove entry for regmove.
4270 * doc/passes.texi: Remove regmove pass description.
4271 * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
4273 (-fdump-rtl-regmove): Ditto.
4274 * common.opt (foptimize-register-move, fregmove): Ignore.
4275 * Makefile.in (OBJS): Remove regmove.o.
4276 * regmove.c: Remove.
4277 * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
4279 (struct ira_allocno) New member allocno_prefs.
4280 (ALLOCNO_PREFS): New macro.
4281 (ira_prefs, ira_prefs_num): New external vars.
4282 (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
4283 (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
4284 (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
4286 (ira_add_allocno_copy_to_list): Remove prototype.
4287 (ira_swap_allocno_copy_ends_if_necessary): Ditto.
4288 (ira_pref_iterator): New type.
4289 (ira_pref_iter_init, ira_pref_iter_cond): New functions.
4290 (FOR_EACH_PREF): New macro.
4291 * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
4292 (ira_get_dup_out_num): Ditto. Rename from get_dup_num. Modify the
4294 (ira_setup_alts): New function.
4295 (decrease_live_ranges_number): New function.
4296 (ira): Call the above function.
4297 * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
4298 (ira_create_allocno): Initialize allocno prefs.
4299 (pref_pool, pref_vec): New static vars.
4300 (initiate_prefs, find_allocno_pref, ira_create_pref): New
4302 (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
4303 (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
4304 (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
4305 (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
4306 (ira_add_allocno_copy_to_list): Make static. Rename to
4307 add_allocno_copy_to_list.
4308 (ira_swap_allocno_copy_ends_if_necessary): Make static. Rename to
4309 swap_allocno_copy_ends_if_necessary.
4310 (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
4311 ira_remove_allocno_prefs.
4312 (ira_flattening): Ditto.
4313 (ira_build): Call initiate_prefs, print_prefs.
4314 (ira_destroy): Call finish_prefs.
4315 * ira-color.c (struct update_cost_record): New.
4316 (struct allocno_color_data): Add new member update_cost_records.
4317 (update_cost_record_pool): New static var.
4318 (init_update_cost_records, get_update_cost_record): New functions.
4319 (free_update_cost_record_list, finish_update_cost_records): Ditto.
4320 (struct update_cost_queue_elem): Add member from.
4321 (initiate_cost_update): Call init_update_cost_records.
4322 (finish_cost_update): Call finish_update_cost_records.
4323 (queue_update_cost, get_next_update_cost): Add new param from.
4324 (Update_allocno_cost, update_costs_from_allocno): New functions.
4325 (update_costs_from_prefs): Ditto.
4326 (update_copy_costs): Rename to update_costs_from_copies.
4327 (restore_costs_from_copies): New function.
4328 (update_conflict_hard_regno_costs): Don't go back.
4329 (assign_hard_reg): Call restore_costs_from_copies. Add printing
4331 (pop_allocnos): Add priniting more debug info.
4332 (color_allocnos): Remove prefs for conflicting hard regs.
4333 Call update_costs_from_prefs.
4334 * ira-conflicts.c (commutative_constraint_p): Move to ira.c
4335 (get_dup_num): Rename, modify, and move to ira.c
4336 (process_regs_for_copy): Add prefs.
4337 (add_insn_allocno_copies): Put src as first arg of
4338 process_regs_for_copy. Remove dead code. Call ira_setup_alts.
4339 * ira-costs.c (record_reg_classes): Modify and move code into
4340 record_operands_costs.
4341 (find_costs_and_classes): Create prefs for the hard reg of small
4343 (process_bb_node_for_hard_reg_moves): Add prefs.
4345 2013-10-30 Richard Biener <rguenther@suse.de>
4348 * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
4349 * cfganal.c (pre_and_rev_post_order_compute_fn): New function
4351 (pre_and_rev_post_order_compute): ... which now wraps it.
4352 * graph.c (draw_cfg_nodes_no_loops): Use
4353 pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
4356 2013-10-30 Christian Bruel <christian.bruel@st.com>
4358 * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
4359 (sh_expand_cmpstr): Handle known align and schedule improvements.
4360 * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
4361 * config/sh/sh.md (cmpstrnsi): New pattern.
4363 2013-10-30 Martin Jambor <mjambor@suse.cz>
4365 PR rtl-optimization/10474
4366 * ira.c (find_moveable_pseudos): Do not calculate dominance info
4368 (interesting_dest_for_shprep): New function.
4369 (split_live_ranges_for_shrink_wrap): Likewise.
4370 (ira): Calculate dominance info and df analysis. Call
4371 split_live_ranges_for_shrink_wrap.
4373 2013-10-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4376 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
4378 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
4380 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
4381 * tree.h (POINTER_BOUNDS_P): New.
4382 (BOUNDED_TYPE_P): New.
4384 (pointer_bounds_type_node): New.
4385 * tree.c (build_common_tree_nodes): Initialize
4386 pointer_bounds_type_node.
4387 * gimple.h (gimple_call_get_nobnd_arg_index): New.
4388 (gimple_call_num_nobnd_args): New.
4389 (gimple_call_nobnd_arg): New.
4390 (gimple_return_retbnd): New.
4391 (gimple_return_set_retbnd): New
4392 * gimple.c (gimple_build_return): Increase number of ops
4393 for return statement.
4394 (gimple_call_get_nobnd_arg_index): New.
4395 * gimple-pretty-print.c (dump_gimple_return): Print second op.
4397 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
4399 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
4400 with "chkp ctor" and "bnd_legacy" attributes.
4401 * gimplify.c (gimplify_init_constructor): Avoid infinite
4402 loop during gimplification of bounds initializer.
4404 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
4406 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
4407 (handle_bnd_legacy): New.
4408 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
4409 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
4412 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
4414 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
4415 (BT_FN_PTR_CONST_PTR): New.
4416 (BT_FN_CONST_PTR_CONST_PTR): New.
4417 (BT_FN_PTR_CONST_PTR_SIZE): New.
4418 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
4419 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
4420 (BT_FN_VOID_CONST_PTR_SIZE): New.
4421 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
4422 * chkp-builtins.def: New.
4423 * builtins.def: include chkp-builtins.def.
4424 (DEF_CHKP_BUILTIN): New.
4425 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
4426 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
4427 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
4428 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
4429 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
4430 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
4431 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
4432 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
4433 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
4434 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
4435 * common.opt (fcheck-pointer-bounds): New.
4436 * toplev.c (process_options): Check Pointer Bounds Checker is
4438 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
4440 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
4442 * target.def (builtin_chkp_function): New.
4443 (chkp_bound_type): New.
4444 (chkp_bound_mode): New.
4445 (fn_abi_va_list_bounds_size): New.
4446 (load_bounds_for_arg): New.
4447 (store_bounds_for_arg): New.
4448 * targhooks.h (default_load_bounds_for_arg): New.
4449 (default_store_bounds_for_arg): New.
4450 (default_fn_abi_va_list_bounds_size): New.
4451 (default_chkp_bound_type): New.
4452 (default_chkp_bound_mode): New.
4453 (default_builtin_chkp_function): New.
4454 * targhooks.c (default_load_bounds_for_arg): New.
4455 (default_store_bounds_for_arg): New.
4456 (default_fn_abi_va_list_bounds_size): New.
4457 (default_chkp_bound_type): New.
4458 (default_chkp_bound_mode); New.
4459 (default_builtin_chkp_function): New.
4460 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
4461 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
4462 (TARGET_STORE_BOUNDS_FOR_ARG): New.
4463 (TARGET_BUILTIN_CHKP_FUNCTION): New.
4464 (TARGET_CHKP_BOUND_TYPE): New.
4465 (TARGET_CHKP_BOUND_MODE): New.
4466 * doc/tm.texi: Regenerated.
4467 * langhooks.h (lang_hooks): Add chkp_supported field.
4468 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
4469 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
4471 2013-10-29 Andrew Pinski <apinski@cavium.com>
4473 * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
4474 (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
4475 fails, combining the branches anyways.
4476 (tree_ssa_ifcombine): Inverse the order of the basic block walk,
4477 increases the number of combinings.
4478 * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
4480 2013-10-29 Mike Stump <mikestump@comcast.net>
4482 * machmode.def (PARTIAL_INT_MODE): Add precision and name.
4483 * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
4484 (make_vector_mode): Increase namebuf to 16.
4485 (emit_insn_modes_h): When processing BImode, don't
4486 also match partial int modes.
4487 (emit_class_narrowest_mode): Likewise.
4489 * config/bfin/bfin-modes.def: Add precision to PDI.
4490 * config/m32c/m32c-modes.def: Add precision to PSI.
4491 * config/msp430/msp430-modes.def: Add precision to PSI.
4492 * config/rs6000/rs6000-modes.def: Add precision to PTI.
4493 * config/sh/sh-modes.def: Add precision to PSI and PDI.
4495 2013-10-29 Oleg Endo <olegendo@gcc.gnu.org>
4498 * config/sh/sh.md (*addc): Rename existing variations to ...
4499 (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
4500 (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
4501 *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
4502 * config/sh/sh.c (addsubcosts): Handle some addc special cases.
4504 2013-10-29 Teresa Johnson <tejohnson@google.com>
4507 * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
4508 insanities when updating probabilities.
4510 2013-10-29 David Malcolm <dmalcolm@redhat.com>
4512 * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
4513 prettyprinter for cgraph_node to reflect the conversion of the
4514 symtable types to a C++ class hierarchy: it now *is* a
4515 symtab_node_base, rather than having one (named "symbol").
4517 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
4519 * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
4520 __cilkrts_pop_frame. If matched, then return true for built-in
4522 (expand_builtin): Added BUILT_IN_CILK_DETACH and
4523 BUILT_IN_CILK_POP_FRAME case.
4524 * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
4525 (lhs_cilk_detect_spawn): Likewise.
4526 (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
4527 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
4528 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
4529 (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
4530 (LANG_HOOKS_CILKPLUS): Likewise.
4531 * tree.h (CILK_SPAWN_FN): Likewise.
4532 * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
4533 * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
4534 (OBJS): Added cilk-common.o.
4535 (BUILTINS_DEF): Added cilk-builtins.def.
4536 * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
4537 (lhd_cilk_detect_spawn): Likewise.
4538 * langhooks.h (lang_hooks_for_cilkplus): New struct.
4539 (struct lang_hooks): Added new field called "cilkplus."
4540 * cilk-common.c: New file.
4542 * cilk-builtins.def: Likewise.
4543 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
4544 "__cilk" macro and set it to 200.
4545 * function.h (struct function::cilk_frame_decl): New field.
4546 (struct function::is_cilk_function): Likewise.
4547 (struct function::calls_cilk_spawn): Likewise.
4548 * gimplify.c (gimplify_call_expr): Added a check if the function call
4549 being gimplified is a spawn detach point. If so, then add pop_frame
4550 and detach function calls.
4551 (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
4552 for gimplifying _Cilk_spawn and _Cilk_sync statements.
4553 (gimplify_return_expr): Added a check for _Cilk_spawn usage in
4554 function. If so, added a _Cilk_sync and gimplified it.
4555 (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
4556 INIT_EXPRs. If so, then call gimplify_cilk_spawn.
4557 * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
4559 (can_inline_edge_p): Prevent inling of spawnee function.
4560 * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
4561 for functions that use Cilk keywords.
4562 * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
4563 * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
4564 CILK_SYNC_STMT cases.
4565 * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
4567 * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
4568 (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
4569 * passes.texi (Cilk Keywords): New section that describes the compiler
4570 code changes for handling Cilk Keywords.
4572 2013-10-29 David Malcolm <dmalcolm@redhat.com>
4574 Patch autogenerated by refactor_symtab.py from
4575 https://github.com/davidmalcolm/gcc-refactoring-scripts
4576 revision 58bb219cc090b2f4516a9297d868c245495ee622
4578 * asan.c (asan_finish_file): Update for conversion of symtab types to
4579 a true class hierarchy.
4580 * cfgexpand.c (estimated_stack_frame_size): Likewise.
4581 * cgraph.c (cgraph_get_body): Likewise.
4582 (cgraph_get_create_real_symbol_node): Likewise.
4583 (verify_cgraph_node): Likewise.
4584 (verify_edge_corresponds_to_fndecl): Likewise.
4585 (verify_edge_count_and_frequency): Likewise.
4586 (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
4587 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
4588 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
4589 (cgraph_node_cannot_return): Likewise.
4590 (cgraph_set_pure_flag_1): Likewise.
4591 (cgraph_set_const_flag_1): Likewise.
4592 (cgraph_set_nothrow_flag_1): Likewise.
4593 (cgraph_make_node_local_1): Likewise.
4594 (cgraph_for_node_and_aliases): Likewise.
4595 (cgraph_for_node_thunks_and_aliases): Likewise.
4596 (cgraph_node_can_be_local_p): Likewise.
4597 (cgraph_node_cannot_be_local_p_1): Likewise.
4598 (cgraph_function_body_availability): Likewise.
4599 (dump_cgraph_node): Likewise.
4600 (cgraph_rtl_info): Likewise.
4601 (cgraph_mark_address_taken_node): Likewise.
4602 (cgraph_remove_node): Likewise.
4603 (cgraph_release_function_body): Likewise.
4604 (cgraph_update_edges_for_call_stmt_node): Likewise.
4605 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
4606 (cgraph_make_edge_direct): Likewise.
4607 (cgraph_resolve_speculation): Likewise.
4608 (cgraph_speculative_call_info): Likewise.
4609 (cgraph_turn_edge_to_speculative): Likewise.
4610 (cgraph_create_edge_1): Likewise.
4611 (cgraph_set_call_stmt): Likewise.
4612 (cgraph_node_for_asm): Likewise.
4613 (cgraph_add_thunk): Likewise.
4614 (cgraph_same_body_alias): Likewise.
4615 (cgraph_create_function_alias): Likewise.
4616 (cgraph_create_node): Likewise.
4617 (cgraph_create_empty_node): Likewise.
4618 (record_function_versions): Likewise.
4619 (used_from_object_file_p): Likewise.
4620 * cgraph.h (symtab_can_be_discarded): Likewise.
4621 (symtab_real_symbol_p): Likewise.
4622 (cgraph_mark_force_output_node): Likewise.
4623 (cgraph_edge_recursive_p): Likewise.
4624 (symtab_alias_target): Likewise.
4625 (varpool_all_refs_explicit_p): Likewise.
4626 (varpool_can_remove_if_no_refs): Likewise.
4627 (cgraph_only_called_directly_or_aliased_p): Likewise.
4628 (cgraph_next_function_with_gimple_body): Likewise.
4629 (cgraph_first_function_with_gimple_body): Likewise.
4630 (cgraph_function_with_gimple_body_p): Likewise.
4631 (cgraph_next_function): Likewise.
4632 (cgraph_first_function): Likewise.
4633 (cgraph_next_defined_function): Likewise.
4634 (cgraph_first_defined_function): Likewise.
4635 (varpool_next_defined_variable): Likewise.
4636 (varpool_first_defined_variable): Likewise.
4637 (varpool_next_static_initializer): Likewise.
4638 (varpool_first_static_initializer): Likewise.
4639 (varpool_next_variable): Likewise.
4640 (varpool_first_variable): Likewise.
4641 (varpool_node_name): Likewise.
4642 (varpool): Likewise.
4644 (is_a_helper <varpool_node>::test): Likewise.
4645 (is_a_helper <cgraph_node>::test): Likewise.
4646 (varpool_variable_node): Likewise.
4647 (cgraph_function_or_thunk_node): Likewise.
4648 (varpool_alias_target): Likewise.
4649 (cgraph_alias_target): Likewise.
4650 (cgraph_node_name): Likewise.
4651 (varpool_node_asm_name): Likewise.
4652 (cgraph_node_asm_name): Likewise.
4653 * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
4654 (cgraph_rebuild_references): Likewise.
4655 (rebuild_cgraph_edges): Likewise.
4656 (record_eh_tables): Likewise.
4657 (build_cgraph_edges): Likewise.
4658 (mark_store): Likewise.
4659 (mark_load): Likewise.
4660 (mark_address): Likewise.
4661 (record_type_list): Likewise.
4662 (record_reference): Likewise.
4663 * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
4664 (cgraph_materialize_clone): Likewise.
4665 (cgraph_function_versioning): Likewise.
4666 (cgraph_copy_node_for_versioning): Likewise.
4667 (update_call_expr): Likewise.
4668 (cgraph_find_replacement_node): Likewise.
4669 (cgraph_create_virtual_clone): Likewise.
4670 (cgraph_clone_node): Likewise.
4671 * cgraphunit.c (compile): Likewise.
4672 (output_weakrefs): Likewise.
4673 (output_in_order): Likewise.
4674 (expand_function): Likewise.
4675 (assemble_thunks_and_aliases): Likewise.
4676 (expand_thunk): Likewise.
4677 (mark_functions_to_output): Likewise.
4678 (handle_alias_pairs): Likewise.
4679 (analyze_functions): Likewise.
4680 (walk_polymorphic_call_targets): Likewise.
4681 (varpool_finalize_decl): Likewise.
4682 (process_function_and_variable_attributes): Likewise.
4683 (cgraph_process_same_body_aliases): Likewise.
4684 (analyze_function): Likewise.
4685 (cgraph_add_new_function): Likewise.
4686 (cgraph_finalize_function): Likewise.
4687 (referred_to_p): Likewise.
4688 (cgraph_reset_node): Likewise.
4689 (cgraph_process_new_functions): Likewise.
4690 (enqueue_node): Likewise.
4691 (decide_is_symbol_needed): Likewise.
4692 * coverage.c (coverage_compute_profile_id): Likewise.
4693 * dbxout.c (dbxout_expand_expr): Likewise.
4694 * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
4695 (reference_to_unused): Likewise.
4696 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
4697 * gimplify.c (unvisit_body): Likewise.
4698 (unshare_body): Likewise.
4699 * ipa-cp.c (ipcp_generate_summary): Likewise.
4700 (ipcp_decision_stage): Likewise.
4701 (identify_dead_nodes): Likewise.
4702 (decide_whether_version_node): Likewise.
4703 (decide_about_value): Likewise.
4704 (perhaps_add_new_callers): Likewise.
4705 (create_specialized_node): Likewise.
4706 (update_profiling_info): Likewise.
4707 (ipcp_propagate_stage): Likewise.
4708 (estimate_local_effects): Likewise.
4709 (good_cloning_opportunity_p): Likewise.
4710 (devirtualization_time_bonus): Likewise.
4711 (propagate_constants_accross_call): Likewise.
4712 (initialize_node_lattices): Likewise.
4713 (ipcp_cloning_candidate_p): Likewise.
4714 (determine_versionability): Likewise.
4715 (print_all_lattices): Likewise.
4716 (print_lattice): Likewise.
4717 (ipcp_discover_new_direct_edges): Likewise.
4718 * ipa-devirt.c (ipa_devirt): Likewise.
4719 (likely_target_p): Likewise.
4720 (update_type_inheritance_graph): Likewise.
4721 (possible_polymorphic_call_target_p): Likewise.
4722 (dump_possible_polymorphic_call_targets): Likewise.
4723 (devirt_variable_node_removal_hook): Likewise.
4724 (record_binfo): Likewise.
4725 (maybe_record_node): Likewise.
4726 (build_type_inheritance_graph): Likewise.
4727 * ipa-inline-analysis.c (inline_write_summary): Likewise.
4728 (inline_generate_summary): Likewise.
4729 (inline_analyze_function): Likewise.
4730 (do_estimate_growth): Likewise.
4731 (simple_edge_hints): Likewise.
4732 (estimate_node_size_and_time): Likewise.
4733 (estimate_edge_devirt_benefit): Likewise.
4734 (compute_inline_parameters): Likewise.
4735 (estimate_function_body_sizes): Likewise.
4736 (compute_bb_predicates): Likewise.
4737 (initialize_inline_failed): Likewise.
4738 (dump_inline_summary): Likewise.
4739 (dump_inline_edge_summary): Likewise.
4740 * ipa-inline-transform.c (inline_transform): Likewise.
4741 (preserve_function_body_p): Likewise.
4742 (save_inline_function_body): Likewise.
4743 (inline_call): Likewise.
4744 (clone_inlined_nodes): Likewise.
4745 (can_remove_node_now_p): Likewise.
4746 (can_remove_node_now_p_1): Likewise.
4747 * ipa-inline.c (early_inliner): Likewise.
4748 (early_inline_small_functions): Likewise.
4749 (inline_always_inline_functions): Likewise.
4750 (ipa_inline): Likewise.
4751 (flatten_function): Likewise.
4752 (inline_small_functions): Likewise.
4753 (speculation_useful_p): Likewise.
4754 (recursive_inlining): Likewise.
4755 (update_caller_keys): Likewise.
4756 (reset_edge_caches): Likewise.
4757 (update_edge_key): Likewise.
4758 (edge_badness): Likewise.
4759 (relative_time_benefit): Likewise.
4760 (want_inline_self_recursive_call_p): Likewise.
4761 (want_inline_small_function_p): Likewise.
4762 (want_early_inline_function_p): Likewise.
4763 (num_calls): Likewise.
4764 (can_early_inline_edge_p): Likewise.
4765 (can_inline_edge_p): Likewise.
4766 (report_inline_failed_reason): Likewise.
4767 * ipa-profile.c (ipa_profile): Likewise.
4768 (ipa_propagate_frequency): Likewise.
4769 (ipa_propagate_frequency_1): Likewise.
4770 (ipa_profile_generate_summary): Likewise.
4771 * ipa-prop.c (ipcp_transform_function): Likewise.
4772 (read_replacements_section): Likewise.
4773 (ipa_prop_read_section): Likewise.
4774 (ipa_modify_call_arguments): Likewise.
4775 (ipa_print_node_params): Likewise.
4776 (propagate_controlled_uses): Likewise.
4777 (update_indirect_edges_after_inlining): Likewise.
4778 (remove_described_reference): Likewise.
4779 (ipa_make_edge_direct_to_target): Likewise.
4780 (ipa_analyze_node): Likewise.
4781 (ipa_analyze_params_uses): Likewise.
4782 (ipa_compute_jump_functions): Likewise.
4783 (ipa_get_callee_param_type): Likewise.
4784 (ipa_print_node_jump_functions): Likewise.
4785 (ipa_initialize_node_params): Likewise.
4786 (ipa_populate_param_decls): Likewise.
4787 (ipa_func_spec_opts_forbid_analysis_p): Likewise.
4788 (write_agg_replacement_chain): Likewise.
4789 (ipa_write_node_info): Likewise.
4790 (ipa_edge_duplication_hook): Likewise.
4791 (try_decrement_rdesc_refcount): Likewise.
4792 * ipa-pure-const.c (propagate_nothrow): Likewise.
4793 (propagate_pure_const): Likewise.
4794 (pure_const_read_summary): Likewise.
4795 (pure_const_write_summary): Likewise.
4796 (analyze_function): Likewise.
4797 * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
4798 (ipa_ref_referring_ref_list): Likewise.
4799 * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
4800 (ipa_remove_stmt_references): Likewise.
4801 (ipa_find_reference): Likewise.
4802 (ipa_dump_referring): Likewise.
4803 (ipa_dump_references): Likewise.
4804 (ipa_record_reference): Likewise.
4805 * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
4806 (ipa_reference_write_optimization_summary): Likewise.
4807 (write_node_summary_p): Likewise.
4808 (propagate): Likewise.
4809 (read_write_all_from_decl): Likewise.
4810 (generate_summary): Likewise.
4811 (analyze_function): Likewise.
4812 (propagate_bits): Likewise.
4813 (ipa_reference_get_not_written_global): Likewise.
4814 (ipa_reference_get_not_read_global): Likewise.
4815 * ipa-split.c (execute_split_functions): Likewise.
4816 (split_function): Likewise.
4817 * ipa-utils.c (ipa_merge_profiles): Likewise.
4818 (dump_cgraph_node_set): Likewise.
4819 (ipa_reverse_postorder): Likewise.
4820 (ipa_edge_within_scc): Likewise.
4821 (ipa_get_nodes_in_cycle): Likewise.
4822 (ipa_free_postorder_info): Likewise.
4823 (ipa_reduced_postorder): Likewise.
4824 (searchc): Likewise.
4825 (recursive_call_p): Likewise.
4826 * ipa.c (ipa_cdtor_merge): Likewise.
4827 (record_cdtor_fn): Likewise.
4828 (function_and_variable_visibility): Likewise.
4829 (varpool_externally_visible_p): Likewise.
4830 (cgraph_externally_visible_p): Likewise.
4831 (comdat_can_be_unshared_p): Likewise.
4832 (comdat_can_be_unshared_p_1): Likewise.
4833 (address_taken_from_non_vtable_p): Likewise.
4834 (ipa_discover_readonly_nonaddressable_vars): Likewise.
4835 (symtab_remove_unreachable_nodes): Likewise.
4836 (walk_polymorphic_call_targets): Likewise.
4837 (process_references): Likewise.
4838 (enqueue_node): Likewise.
4839 (has_addr_references_p): Likewise.
4840 (cgraph_non_local_node_p_1): Likewise.
4841 * is-a.h (varpool_analyze_node): Likewise.
4842 * lto-cgraph.c (input_symtab): Likewise.
4843 (merge_profile_summaries): Likewise.
4844 (input_cgraph_1): Likewise.
4845 (input_edge): Likewise.
4846 (input_varpool_node): Likewise.
4847 (input_node): Likewise.
4848 (input_overwrite_node): Likewise.
4849 (compute_ltrans_boundary): Likewise.
4850 (output_refs): Likewise.
4851 (lto_output_varpool_node): Likewise.
4852 (lto_output_node): Likewise.
4853 (reachable_from_other_partition_p): Likewise.
4854 (referenced_from_other_partition_p): Likewise.
4855 (lto_output_edge): Likewise.
4856 (output_node_opt_summary): Likewise.
4857 (add_node_to): Likewise.
4858 (reachable_from_this_partition_p): Likewise.
4859 (lto_set_symtab_encoder_in_partition): Likewise.
4860 (lto_symtab_encoder_in_partition_p): Likewise.
4861 (lto_set_symtab_encoder_encode_initializer): Likewise.
4862 (lto_symtab_encoder_encode_initializer_p): Likewise.
4863 (lto_set_symtab_encoder_encode_body): Likewise.
4864 (lto_symtab_encoder_encode_body_p): Likewise.
4865 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
4867 * lto-streamer-in.c (lto_read_body): Likewise.
4868 (fixup_call_stmt_edges): Likewise.
4869 (fixup_call_stmt_edges_1): Likewise.
4870 * lto-streamer-out.c (produce_symtab): Likewise.
4871 (output_symbol_p): Likewise.
4872 (write_symbol): Likewise.
4873 (lto_output): Likewise.
4874 (copy_function): Likewise.
4875 (output_function): Likewise.
4876 * passes.c (function_called_by_processed_nodes_p): Likewise.
4877 (ipa_write_optimization_summaries): Likewise.
4878 (ipa_write_summaries): Likewise.
4879 (do_per_function_toporder): Likewise.
4880 (do_per_function): Likewise.
4881 (dump_passes): Likewise.
4882 * symtab.c (symtab_semantically_equivalent_p): Likewise.
4883 (symtab_nonoverwritable_alias): Likewise.
4884 (symtab_nonoverwritable_alias_1): Likewise.
4885 (symtab_for_node_and_aliases): Likewise.
4886 (symtab_resolve_alias): Likewise.
4887 (fixup_same_cpp_alias_visibility): Likewise.
4888 (symtab_alias_ultimate_target): Likewise.
4889 (symtab_used_from_object_file_p): Likewise.
4890 (verify_symtab_base): Likewise.
4891 (dump_symtab_base): Likewise.
4892 (symtab_node_name): Likewise.
4893 (symtab_node_asm_name): Likewise.
4894 (symtab_dissolve_same_comdat_group_list): Likewise.
4895 (symtab_add_to_same_comdat_group): Likewise.
4896 (symtab_unregister_node): Likewise.
4897 (symtab_insert_node_to_hashtable): Likewise.
4898 (symtab_register_node): Likewise.
4899 (unlink_from_assembler_name_hash): Likewise.
4900 (insert_to_assembler_name_hash): Likewise.
4901 (eq_assembler_name): Likewise.
4902 (hash_node_by_assembler_name): Likewise.
4903 (eq_node): Likewise.
4904 (hash_node): Likewise.
4905 * toplev.c (wrapup_global_declaration_2): Likewise.
4906 * trans-mem.c (ipa_tm_execute): Likewise.
4907 (ipa_tm_transform_clone): Likewise.
4908 (ipa_tm_transform_transaction): Likewise.
4909 (ipa_tm_transform_calls_redirect): Likewise.
4910 (ipa_tm_insert_gettmclone_call): Likewise.
4911 (ipa_tm_insert_irr_call): Likewise.
4912 (ipa_tm_create_version): Likewise.
4913 (ipa_tm_create_version_alias): Likewise.
4914 (ipa_tm_mark_forced_by_abi_node): Likewise.
4915 (ipa_tm_mark_force_output_node): Likewise.
4916 (ipa_tm_diagnose_tm_safe): Likewise.
4917 (ipa_tm_mayenterirr_function): Likewise.
4918 (ipa_tm_scan_irr_function): Likewise.
4919 (ipa_tm_note_irrevocable): Likewise.
4920 (ipa_tm_scan_calls_clone): Likewise.
4921 (get_cg_data): Likewise.
4922 * tree-eh.c (tree_could_trap_p): Likewise.
4923 * tree-emutls.c (ipa_lower_emutls): Likewise.
4924 (create_emultls_var): Likewise.
4925 (lower_emutls_function_body): Likewise.
4926 (gen_emutls_addr): Likewise.
4927 (emutls_decl): Likewise.
4928 (new_emutls_decl): Likewise.
4929 * tree-inline.c (tree_function_versioning): Likewise.
4930 (optimize_inline_calls): Likewise.
4931 (expand_call_inline): Likewise.
4932 (estimate_num_insns): Likewise.
4933 (copy_bb): Likewise.
4934 (delete_unreachable_blocks_update_callgraph): Likewise.
4935 * tree-nested.c (gimplify_all_functions): Likewise.
4936 (create_nesting_tree): Likewise.
4937 (check_for_nested_with_variably_modified): Likewise.
4938 * tree-pretty-print.c (dump_function_header): Likewise.
4939 * tree-profile.c (tree_profiling): Likewise.
4940 * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
4941 (modify_function): Likewise.
4942 (convert_callers): Likewise.
4943 (convert_callers_for_node): Likewise.
4944 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
4945 (associate_varinfo_to_alias): Likewise.
4946 (create_variable_info_for): Likewise.
4947 (get_constraint_for_ssa_var): Likewise.
4948 * tree-vectorizer.c (increase_alignment): Likewise.
4949 * tree.c (find_decls_types_in_var): Likewise.
4950 (find_decls_types_in_node): Likewise.
4951 (free_lang_data_in_decl): Likewise.
4952 * value-prof.c (gimple_ic_transform): Likewise.
4953 (gimple_ic): Likewise.
4954 (check_ic_target): Likewise.
4955 (init_node_map): Likewise.
4956 * varasm.c (decl_binds_to_current_def_p): Likewise.
4957 (default_binds_local_p_1): Likewise.
4958 (dump_tm_clone_pairs): Likewise.
4959 (assemble_alias): Likewise.
4960 (find_decl): Likewise.
4961 (mark_decl_referenced): Likewise.
4962 * varpool.c (varpool_for_node_and_aliases): Likewise.
4963 (varpool_extra_name_alias): Likewise.
4964 (varpool_create_variable_alias): Likewise.
4965 (add_new_static_var): Likewise.
4966 (varpool_finalize_named_section_flags): Likewise.
4967 (varpool_remove_unreferenced_decls): Likewise.
4968 (enqueue_node): Likewise.
4969 (varpool_assemble_decl): Likewise.
4970 (assemble_aliases): Likewise.
4971 (varpool_analyze_node): Likewise.
4972 (cgraph_variable_initializer_availability): Likewise.
4973 (varpool_add_new_variable): Likewise.
4974 (ctor_for_folding): Likewise.
4975 (dump_varpool_node): Likewise.
4976 (varpool_remove_initializer): Likewise.
4977 (varpool_remove_node): Likewise.
4978 (varpool_node_for_decl): Likewise.
4979 (varpool_create_empty_node): Likewise.
4980 * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
4981 (ix86_get_function_versions_dispatcher): Likewise.
4983 2013-10-29 David Malcolm <dmalcolm@redhat.com>
4985 * cgraph.h (symtab_node_base): Convert to a class;
4986 add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
4987 chain_next/prev from symtab_node_def.
4988 (cgraph_node): Inherit from symtab_node; add GTY option
4989 tag ("SYMTAB_FUNCTION").
4990 (varpool_node): Inherit from symtab_node; add GTY option
4991 tag ("SYMTAB_VARIABLE").
4992 (symtab_node_def): Remove.
4993 (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
4994 (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
4995 (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
4996 (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
4998 * ipa-ref.h (symtab_node_def): Drop.
4999 (symtab_node): Change underlying type from symtab_node_def to
5001 (const_symtab_node): Likwise.
5003 * is-a.h: Update examples in comment.
5005 * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
5006 (assembler_name_hash): Likewise.
5008 2013-10-29 Martin Liska <marxin.liska@gmail.com>
5010 * doc/tree-ssa.texi (gimple_phi_result): Document.
5011 (gimple_phi_num_args, gimple_phi_arg): Likewise.
5012 (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
5013 (PHI_RESULT, PHI_NUM_ARGS): Remove.
5014 (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
5016 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
5018 * expr.h: Revert change and include tree-core.h.
5019 * rtl.h: Revert change and don't include tree-core.h.
5021 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
5023 * config/darwin.c: Include gimple.h.
5024 * config/i386/winnt.c: Likewise.
5026 2013-10-29 Marc Glisse <marc.glisse@inria.fr>
5028 PR tree-optimization/19831
5029 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
5031 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
5033 * tree-outof-ssa.h: Remove include files.
5034 * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
5036 * tree-ssa-coalesce.c: Likewise.
5037 * cfgexpand.c: Likewise.
5038 * tree-ssa-ter.c: Likewise.
5039 * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
5040 * lto-streamer.h: Likewise.
5041 * cgraphbuild.c: Add gimple.h to include list.
5042 * data-streamer-in.c: Likewise.
5043 * ipa-cp.c: Likewise.
5044 * tree-streamer.c: Likewise.
5045 * lto-compress.c: Likewise.
5046 * ipa-reference.c: Likewise.
5047 * data-streamer-out.c: Likewise.
5048 * lto-cgraph.c: Likewise.
5049 * cgraphclones.c: Likewise.
5050 * ipa-utils.c: Likewise.
5051 * data-streamer.c: Likewise.
5052 * ipa-split.c: Likewise.
5053 * lto-section-in.c: Likewise.
5054 * tree-streamer-out.c: Likewise.
5055 * ipa-prop.c: Likewise.
5056 * tree-streamer-in.c: Likewise.
5057 * symtab.c: Likewise.
5058 * opts-global.c: Likewise.
5059 * lto-opts.c: Likewise.
5060 * lto-section-out.c: Likewise.
5061 * lto-streamer.c: Likewise.
5062 * rtl.h: Add tree-core.h to include list.
5063 * expr.h: Remove tree-core.h from include list.
5064 * gimple.h: Likewise.
5065 * ipa-utils.h: Likewise.
5066 * streamer-hooks.h: Likewise.
5067 * streamer-hooks.c: Include input.h.
5069 2013-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5071 * config/arm/arm.c (cortexa7_extra_costs): New table.
5072 (arm_cortex_a7_tune): New.
5073 * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
5075 2013-10-29 Eric Botcazou <ebotcazou@adacore.com>
5077 * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
5079 2013-10-29 David Malcolm <dmalcolm@redhat.com>
5081 * doc/gty.texi ("Inheritance and GTY"): Make it clear that
5082 to use autogenerated markers for a class-hierarchy, every class
5083 must have a GTY marker.
5084 * gengtype.h (struct type): Add linked list of subclasses to
5085 the "s" member of the union.
5086 (add_subclass): New decl.
5087 * gengtype-state.c (read_state_struct_type): Set up subclass
5089 * gengtype.c (get_ultimate_base_class): New.
5090 (add_subclass): New.
5091 (new_structure): Set up subclass linked list.
5092 (set_gc_used_type): Propagate usage information to subclasses.
5093 (output_mangled_typename): Use get_ultimate_base_class.
5094 (walk_subclasses): Use the subclass linked list, avoiding an
5095 O(N^2) when writing out all types.
5096 (walk_type): Issue an error if the base class is missing a tag,
5097 rather than generating bogus C code. Add a gcc_unreachable
5098 default case, in case people omit tags from concrete subclasses,
5099 or get the values wrong.
5100 (write_func_for_structure): Issue an error for subclasses for
5101 which the base doesn't have a "desc", since otherwise the
5102 autogenerated routines for the base would silently fail to visit
5103 any subclass fields.
5104 (write_root): Use get_ultimate_base_class, tweaking constness of
5105 tp to match that function's signature.
5107 2013-10-29 David Malcolm <dmalcolm@redhat.com>
5109 * doc/gty.texi (GTY Options): Add note about inheritance to
5110 description of desc and tag.
5111 (Inheritance and GTY): New.
5113 2013-10-29 David Malcolm <dmalcolm@redhat.com>
5115 * gengtype-parse.c (opts_have): Drop "static" so that
5116 we can use this from gengtype.c.
5117 * gengtype.c (set_gc_used_type): Mark any base class as used;
5118 update field traversal to visit inherited fields.
5119 (output_mangled_typename): Convert references to classes within
5120 an inheritance hierarchy to reference the ultimate base class,
5121 since only it will have gt_ functions.
5122 (get_string_option): New.
5123 (walk_subclasses): New.
5124 (walk_type): Treat GTY structs that have a "desc" as being the
5125 root of an inheritance hierarchy. Generate a switch on it
5126 within the marking function which walks all subclasses, adding
5127 cases for them via walk_subclasses. For subclasses, visit all
5128 fields of the type (including inherited ones).
5129 (write_func_for_structure): Don't write fns for subclasses, only
5130 for the ultimate base class within an inheritance hierarchy.
5131 Subclasses-marking will be handled by the base class marking functions.
5132 (write_types): Likewise.
5133 (write_local_func_for_structure): Likewise.
5134 (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
5135 a "tag" option (and are thus concrete subclasses).
5136 (write_root): Use the marker function for the ultimate base class.
5137 * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
5138 (opts_have): Add declaration.
5140 2013-10-28 Vladimir Makarov <vmakarov@redhat.com>
5142 * lra-spills.c (lra_final_code_change): Remove useless move insns
5143 originated from moves of pseudos.
5145 2013-10-28 Jeff Law <law@redhat.com>
5147 * lower-subreg.c (resolve_simple_move): Fix comment typo.
5149 2013-10-28 Trevor Saunders <tsaunders@mozilla.com>
5151 * df-scan.c (df_collection_rec): Adjust.
5152 (copy_defs): New constant.
5153 (copy_uses): Likewise.
5154 (copy_eq_uses): Likewise.
5155 (copy_mw): Likewise.
5156 (copy_all): Likewise.
5157 (df_insn_rescan): Adjust.
5158 (df_notes_rescan): Likewise.
5159 (df_swap_refs): Likewise.
5160 (df_sort_and_compress_refs): Likewise.
5161 (df_sort_and_compress_mws): Likewise.
5162 (df_install_refs): Likewise.
5163 (df_install_mws): Likewise.
5164 (df_refs_add_to_chains): Add flags parameter controlling which vectors
5166 (df_bb_refs_record): Adjust.
5167 (df_record_entry_block_defs): Likewise.
5168 (df_record_exit_block_defs): Likewise.
5169 (df_refs_verify): Likewise.
5170 (df_mws_verify): Likewise.
5171 (df_insn_refs_verify): Likewise.
5172 (df_bb_verify): Likewise.
5173 * ipa-pure-const.c (finish_state): Remove.
5174 (propagate): Adjust.
5175 * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
5176 tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
5177 var-tracking.c: Adjust.
5178 * vec.c (stack_vecs): Remove.
5179 (register_stack_vec): Likewise.
5180 (stack_vec_register_index): Likewise.
5181 (unregister_stack_vec): Likewise.
5182 * vec.h (struct va_stack): Remove.
5183 (struct vec<T, A, vl_ptr>): Specialize as
5184 struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
5185 allocation strategy compatable with the vl_ptr layout.
5186 (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
5187 specialization anyway.
5188 (class stack_vec): New class.
5189 (vec_stack_alloc): Remove.
5190 (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
5192 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
5193 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5194 Sergey Lega <sergey.s.lega@intel.com>
5195 Anna Tikhonova <anna.tikhonova@intel.com>
5196 Ilya Tocar <ilya.tocar@intel.com>
5197 Andrey Turetskiy <andrey.turetskiy@intel.com>
5198 Ilya Verbin <ilya.verbin@intel.com>
5199 Kirill Yukhin <kirill.yukhin@intel.com>
5200 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5202 * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
5203 (*prefetch_avx512pf_<mode>): New.
5204 * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
5205 (avx512f_maskcmp<mode>3): Ditto.
5206 (vashrv16si3): Ditto.
5208 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
5209 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5210 Sergey Lega <sergey.s.lega@intel.com>
5211 Anna Tikhonova <anna.tikhonova@intel.com>
5212 Ilya Tocar <ilya.tocar@intel.com>
5213 Andrey Turetskiy <andrey.turetskiy@intel.com>
5214 Ilya Verbin <ilya.verbin@intel.com>
5215 Kirill Yukhin <kirill.yukhin@intel.com>
5216 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5218 * config/i386/i386.md (any_truncate): New.
5219 (trunsuffix): Ditto.
5220 * config/i386/predicates.md (const_8_to_9_operand): New.
5221 (const_10_to_11_operand): Ditto.
5222 (const_12_to_13_operand): Ditto.
5223 (const_14_to_15_operand): Ditto.
5224 (const_16_to_19_operand): Ditto.
5225 (const_20_to_23_operand): Ditto.
5226 (const_24_to_27_operand): Ditto.
5227 (const_28_to_31_operand): Ditto.
5228 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
5229 (cvtusi2<ssescalarmodesuffix>32): New.
5230 (cvtusi2<ssescalarmodesuffix>64): Ditto.
5231 (ufloatv16siv16sf2): Ditto.
5232 (avx512f_fix_notruncv16sfv16si): Ditto.
5233 (avx512f_ufix_notruncv16sfv16si): Ditto.
5234 (avx512f_vcvtss2usi): Ditto.
5235 (avx512f_vcvtss2usiq): Ditto.
5236 (avx512f_vcvttss2usi): Ditto.
5237 (avx512f_vcvttss2usiq): Ditto.
5238 (avx512f_vcvtsd2usi): Ditto.
5239 (avx512f_vcvtsd2usiq): Ditto.
5240 (avx512f_vcvttsd2usi): Ditto.
5241 (avx512f_vcvttsd2usiq): Ditto.
5242 (ufloatv8siv8df): Ditto.
5243 (avx512f_cvtdq2pd512_2): Ditto.
5244 (avx512f_cvtpd2dq512): Ditto.
5245 (avx512f_ufix_notruncv8dfv8si): Ditto.
5246 (avx512f_cvtpd2ps512): Ditto.
5247 (vec_unpacks_lo_v16sf): Ditto.
5248 (vec_unpacks_hi_v16sf): Ditto.
5249 (vec_unpacks_float_hi_v16si): Ditto.
5250 (vec_unpacks_float_lo_v16si): Ditto.
5251 (avx512f_unpckhps512): Ditto.
5252 (avx512f_unpcklps512): Ditto.
5253 (avx512f_movshdup512): Ditto.
5254 (avx512f_movsldup512): Ditto.
5255 (vec_extract_lo_v32hi): Ditto.
5256 (vec_extract_hi_v32hi): Ditto.
5257 (vec_extract_lo_v64qi): Ditto.
5258 (vec_extract_hi_v64qi): Ditto.
5259 (avx512f_unpckhpd512): Ditto.
5260 (avx512f_movddup512): Ditto.
5261 (avx512f_unpcklpd512): Ditto.
5262 (*avx512f_unpcklpd512): Ditto.
5263 (avx512f_shufps512_1): Ditto.
5264 (avx512f_shufpd512_1): Ditto.
5265 (avx512f_interleave_highv8di): Ditto.
5266 (avx512f_interleave_lowv8di): Ditto.
5267 (PMOV_DST_MODE): Ditto.
5268 (pmov_src_mode): Ditto.
5269 (pmov_src_lower): Ditto.
5271 (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
5272 (*avx512f_<code>v8div16qi2): Ditto.
5273 (*avx512f_<code>v8div16qi2_store): Ditto.
5274 (vec_widen_umult_even_v16si): Ditto.
5275 (*vec_widen_umult_even_v16si): Ditto.
5276 (vec_widen_smult_even_v16si): Ditto.
5277 (*vec_widen_smult_even_v16si): Ditto.
5278 (avx512f_interleave_highv16si): Ditto.
5279 (avx512f_interleave_lowv16si): Ditto.
5280 (avx512f_<code>v16qiv16si2): Ditto.
5281 (avx512f_<code>v16hiv16si2): Ditto.
5282 (avx512f_<code>v8qiv8di2): Ditto.
5283 (avx512f_<code>v8hiv8di2): Ditto.
5284 (avx512f_<code>v8siv8di2): Ditto.
5285 (avx512cd_maskb_vec_dupv8di): Ditto.
5286 (avx512cd_maskw_vec_dupv16si): Ditto.
5287 (avx512f_vcvtph2ps512): Ditto.
5288 (avx512f_vcvtps2ph512): Ditto.
5289 (VEC_EXTRACT_MODE): Extened with wider modes.
5290 (VEC_PERM_AVX2): Ditto.
5291 (VEC_PERM_CONST): Ditto.
5293 2013-10-28 Joern Rennecke <joern.rennecke@embecosm.com>
5295 * config/arc/arc.c (arc_ccfsm_post_advance):
5296 Add comment about TYPE_RETURN.
5298 2013-10-28 Bin Cheng <bin.cheng@arm.com>
5300 * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
5301 Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
5302 (strip_offset): Convert offset to unsigned number.
5304 2013-10-27 Tom de Vries <tom@codesourcery.com>
5306 * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
5307 Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
5309 2013-10-27 Oleg Endo <olegendo@gcc.gnu.org>
5311 * config/sh/sh.c (MSW, LSW): Move and rename macros to...
5312 * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
5313 (TARGET_BIG_ENDIAN): New macro.
5314 * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
5315 Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
5316 * config/sh/sh.c: Likewise.
5317 * config/sh/sh.h: Likewise.
5319 2013-10-27 Hans-Peter Nilsson <hp@axis.com>
5321 * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
5322 removed PRED_MUDFLAP with PRED_NORETURN. Correct file-path in comment.
5324 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
5326 * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
5328 (cmpstr_t, cmpstrsi): Fix formatting.
5330 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
5333 * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
5334 addressing, do not use general_operand for memory operands.
5336 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
5339 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
5340 * lra-spills.c (lra_final_code_change): Remove useless move insns.
5342 2013-10-26 Jeff Law <law@redhat.com>
5344 * predict.c (PRED_MUDFLAP): Remove.
5345 * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
5347 * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
5348 (OBJS): Remove tree-nomudflap.o
5349 (GTFILES): Remove tree-mudflap.c
5350 * builtins.c (expand_builtin_alloc): Remove mudflap support.
5351 * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
5352 (mfwrap_spec, mflib_spec): Likewise.
5353 (cpp_unique_options, cc1_options, static_specs): Likewise.
5354 * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
5355 * passes.def: Likewise.
5356 * toplev.c (compile_file, process_options): Likewise.
5357 * tree-inline.c (copy_tree_r): Likewise.
5358 * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
5359 * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
5360 (build_constant_desc, output_constant_def_contents): Likewise.
5361 (categorize_decl_for_section): Likewise.
5362 * tree-mudflap.c: Removed.
5363 * tree-mudflap.h: Removed.
5364 * tree-nomudflap.c: Removed.
5365 * bfin/uclinux.h (MFWRAP_SPEC): Remove.
5366 * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
5367 * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
5368 * config/sol2.h (MFLIB_SPEC): Likewise.
5369 * doc/install.texi: Remove mudflap references.
5370 * doc/passes.texi: Similarly.
5371 * doc/sourcebuild.texi: Similarly.
5372 * doc/invoke.texi: Remove mudlfap related options.
5374 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
5376 PR rtl-optimization/58759
5377 * lra-constraints.c (lra_constraints): Remove wrong condition to
5378 remove insn setting up an equivalent pseudo.
5380 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
5382 * config/rs6000/rs6000-protos.h
5383 (rs6000_secondary_memory_needed_mode): New prototype.
5384 * config/rs6000/rs6000.c: Include ira.h.
5385 (TARGET_LRA_P): Redefine.
5386 (rs6000_legitimate_offset_address_p): Call
5387 legitimate_constant_pool_address_p in strict mode for LRA.
5388 (rs6000_legitimate_address_p): Ditto.
5389 (legitimate_lo_sum_address_p): Add code for LRA. Use lra_in_progress.
5390 (rs6000_emit_move): Add LRA version of code to generate load/store
5392 (rs6000_secondary_memory_needed_mode): New.
5393 (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
5394 (rs6000_secondary_reload_class): Return NO_REGS for LRA for
5395 constants, memory, and FP registers.
5396 (rs6000_lra_p): New.
5397 * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
5398 * config/rs6000/rs6000.opt (mlra): New option.
5399 * lra-spills.c (lra_final_code_change): Remove useless move insns.
5401 2013-10-25 Yufeng Zhang <yufeng.zhang@arm.com>
5403 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
5404 has_single_use () and not do the conversion if has_single_use ()
5405 returns false for the multiplication result.
5407 2013-10-25 David Malcolm <dmalcolm@redhat.com>
5409 * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
5410 to "NODE", since this works on a "tree", not an
5412 (CONSTANT_CLASS_P): Likewise.
5415 (INDIRECT_REF_P): Likewise.
5416 (REFERENCE_CLASS_P): Likewise.
5417 (COMPARISON_CLASS_P): Likewise.
5418 (UNARY_CLASS_P): Likewise.
5419 (BINARY_CLASS_P): Likewise.
5420 (STATEMENT_CLASS_P): Likewise.
5421 (VL_EXP_CLASS_P): Likewise.
5422 (EXPRESSION_CLASS_P): Likewise.
5423 (IS_TYPE_OR_DECL_P): Likewise.
5425 2013-10-25 Marc Glisse <marc.glisse@inria.fr>
5427 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
5428 ADDR_EXPR in the defining statement.
5430 2013-10-25 Richard Biener <rguenther@suse.de>
5432 PR tree-optimization/58626
5433 * tree-loop-distribution.c (enum rdg_dep_type): Remove
5434 anti_dd, output_dd and input_dd.
5435 (struct rdg_edge): Remove level and relation members.
5436 (RDGE_LEVEL, RDGE_RELATION): Remove.
5437 (dot_rdg_1): Adjust.
5438 (create_rdg_edge_for_ddr): Remove.
5439 (create_rdg_edges_for_scalar): Adjust.
5440 (create_edge_for_control_dependence): Likewise.
5441 (create_rdg_edges): Split into ...
5442 (create_rdg_flow_edges): ... this
5443 (create_rdg_cd_edges): ... and this.
5445 (build_rdg): Likewise, do not compute data dependences or
5447 (pg_add_dependence_edges): New function.
5449 (distribute_loop): First apply all non-dependence based
5450 partition mergings. Then compute dependences between partitions
5451 and merge and order partitions according to them.
5453 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
5455 PR rtl-optimization/58831
5456 * alias.c (init_alias_analysis): At the beginning of each iteration,
5457 set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
5459 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
5461 * recog.c (search_ofs): New static variable moved from...
5462 (peep2_find_free_register): ...here.
5463 (peephole2_optimize): Initialize it.
5465 2013-10-25 Tobias Burnus <burnus@net-b.de>
5467 * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
5469 2013-10-25 Uros Bizjak <ubizjak@gmail.com>
5471 * config/i386/i386.h (TARGET_MPX): New define.
5472 (TARGET_MPX_P): Ditto.
5474 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
5476 * config/i386/constraints.md (B): New.
5479 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
5480 * config/i386/i386-modes.def (BND32): New.
5482 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
5483 * config/i386/i386.c (isa_opts): Add mmpx.
5484 (regclass_map): Add bound registers.
5485 (dbx_register_map): Likewise.
5486 (dbx64_register_map): Likewise.
5487 (svr4_dbx_register_map): Likewise.
5489 (ix86_option_override_internal): Support MPX ISA.
5490 (ix86_conditional_register_usage): Support bound registers.
5491 (print_reg): Likewise.
5492 (ix86_code_end): Add MPX bnd prefix.
5493 (output_set_got): Likewise.
5494 (ix86_output_call_insn): Likewise.
5495 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
5496 (ix86_print_operand_punct_valid_p): Likewise.
5497 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
5499 (ix86_class_likely_spilled_p): Add bound regs support.
5500 (ix86_hard_regno_mode_ok): Likewise.
5501 (x86_order_regs_for_local_alloc): Likewise.
5502 (ix86_bnd_prefixed_insn_p): New.
5503 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
5504 (FIXED_REGISTERS): Add bound registers.
5505 (CALL_USED_REGISTERS): Likewise.
5506 (REG_ALLOC_ORDER): Likewise.
5507 (HARD_REGNO_NREGS): Likewise.
5509 (VALID_BND_REG_MODE): New.
5510 (FIRST_BND_REG): New.
5511 (LAST_BND_REG): New.
5512 (reg_class): Add BND_REGS.
5513 (REG_CLASS_NAMES): Likewise.
5514 (REG_CLASS_CONTENTS): Likewise.
5516 (ANY_BND_REG_P): New.
5518 (HI_REGISTER_NAMES): Add bound registers.
5519 * config/i386/i386.md (UNSPEC_BNDMK): New.
5520 (UNSPEC_BNDMK_ADDR): New.
5521 (UNSPEC_BNDSTX): New.
5522 (UNSPEC_BNDLDX): New.
5523 (UNSPEC_BNDLDX_ADDR): New.
5524 (UNSPEC_BNDCL): New.
5525 (UNSPEC_BNDCU): New.
5526 (UNSPEC_BNDCN): New.
5527 (UNSPEC_MPX_FENCE): New.
5530 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
5531 (length_immediate): Likewise.
5532 (prefix_0f): Likewise.
5534 (prefix_rep): Check for bnd prefix.
5535 (length_nobnd): New.
5536 (length): Use length_nobnd if specified.
5541 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
5544 (simple_return_internal): Likewise.
5545 (simple_return_pop_internal): Likewise.
5546 (*indirect_jump): Add MPX bnd prefix.
5547 (*tablejump_1): Likewise.
5548 (simple_return_internal_long): Likewise.
5549 (simple_return_indirect_internal): Likewise.
5553 (*mov<mode>_internal_mpx): New.
5554 (<mode>_<bndcheck>): New.
5555 (*<mode>_<bndcheck>): New.
5560 * config/i386/predicates.md (lea_address_operand): Rename to...
5561 (address_no_seg_operand): ... this.
5562 (address_mpx_no_base_operand): New.
5563 (address_mpx_no_index_operand): New.
5564 (bnd_mem_operator): New.
5565 * config/i386/i386.opt (mmpx): New.
5566 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
5567 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
5569 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
5571 * mode-classes.def (MODE_POINTER_BOUNDS): New.
5572 * tree.def (POINTER_BOUNDS_TYPE): New.
5573 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
5574 (POINTER_BOUNDS_MODE): New.
5575 (make_pointer_bounds_mode): New.
5576 * machmode.h (POINTER_BOUNDS_MODE_P): New.
5577 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
5578 (layout_type): Support POINTER_BOUNDS_TYPE.
5579 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
5580 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
5581 (type_contains_placeholder_1): Likewise.
5582 * tree.h (POINTER_BOUNDS_TYPE_P): New.
5583 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
5584 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
5586 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
5588 * expr.c (expand_expr_real_1): Use mode of memory reference rather than
5589 mode of address computation when calling memory_address_addr_space.
5591 2013-08-24 Richard Henderson <rth@twiddle.net>
5594 * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
5595 instead of create_convert_operand_to.
5596 (maybe_emit_sync_lock_test_and_set): Likewise.
5597 (expand_atomic_compare_and_swap): Likewise.
5598 (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
5600 2013-08-24 Sriraman Tallam <tmsriram@google.com>
5602 * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
5603 Change param_is to use the struct and not the pointer to the struct.
5605 2013-10-24 Andrew MacLeod <amacleod@redhat.com>
5607 * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
5608 * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
5609 Move to targhooks.c.
5610 (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
5611 * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
5612 Relocate from gimplify.c.
5613 * targhooks.h: Add 2 prototypes.
5614 * tree.h: Delete 2 prototypes.
5616 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
5618 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
5619 [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
5621 2013-10-24 Cong Hou <congh@google.com>
5623 * convert.c (convert_to_real): Guard those unsafe math function
5624 convertions with flag_unsafe_math_optimizations. Handle sqrt()
5627 2013-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
5630 * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
5632 (cgraph_create_edge): Use the new argument.
5633 (cgraph_create_indirect_edge): Likewise.
5635 2013-10-24 Joern Rennecke <joern.rennecke@embecosm.com>
5637 * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
5639 (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
5640 changes statep->state.
5642 2013-10-24 Tobias Burnus <burnus@net-b.de>
5645 * tree-cfg.c (replace_loop_annotate): New function.
5646 (execute_build_cfg): Call it.
5647 * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
5648 * internal-fn.c (expand_ANNOTATE): New function.
5649 * internal-fn.def (ANNOTATE): Define as new internal function.
5650 * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
5651 * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
5652 * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
5653 * doc/extend.texi (Pragmas): Document #pragma ivdep.
5654 * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
5656 2013-10-17 Ian Bolton <ian.bolton@arm.com>
5657 Marcus Shawcroft <marcus.shawcroft@arm.com>
5659 * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
5660 Special case reload SP+C into none GENERAL_REGS.
5662 2013-10-24 Michael Matz <matz@suse.de>
5664 * gengtype.c (is_file_equal): Check that files will be same length.
5666 2013-10-25 Christian Bruel <christian.bruel@st.com>
5668 * config.gcc (sh-*): Add sh-mem.o to extra_obj.
5669 * config/sh/t-sh (sh-mem.o): New rule.
5670 * config/sh/sh-mem.cc (expand_block_move): Moved here.
5671 (sh_expand_cmpstr): New function.
5672 * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
5673 * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
5674 * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
5675 (rotlhi3_8): Rename.
5677 2013-10-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
5679 * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
5680 * Makefile.in (CXXDEPMODE): Assign and change users.
5681 (CCDEPMODE): Delete.
5682 * configure: Regenerate.
5684 2013-10-23 David Malcolm <dmalcolm@redhat.com>
5686 * gengtype-parse.c (require_without_advance): New.
5687 (type): For GTY-marked types that are not GTY((user)), parse any
5688 base classes, requiring them to be single-inheritance, and not
5689 be templates. For non-GTY-marked types and GTY((user)),
5690 continue to skip over any C++ inheritance specification.
5691 * gengtype-state.c (state_writer::write_state_struct_type):
5692 Write base class of type (if any).
5693 (read_state_struct_type): Read base class of type (if any).
5694 * gengtype.c (new_structure): Add a "base_class" parameter.
5695 (create_optional_field_): Update for new parameter to new_structure.
5696 (adjust_field_rtx_def): Likewise.
5697 (adjust_field_tree_exp): Likewise.
5698 * gengtype.h (struct type): Add "base_class" field to the s
5700 (new_structure): Add "base" parameter.
5702 2013-10-23 Sriraman Tallam <tmsriram@google.com>
5705 * config/i386/i386.c (ix86_option_override_internal):
5706 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
5707 (ix86_valid_target_attribute_tree):
5708 Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
5709 Change TARGET_SSE to TARGET_SSE_P (opts->...)
5711 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
5713 * tree-ssa-loop.h: Remove include files.
5714 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
5715 * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
5716 * graphite-clast-to-gimple.c: Likewise.
5717 * graphite-scop-detection.c: Likewise.
5718 * graphite-sese-to-poly.c: Likewise.
5719 * ipa-inline-analysis.c: Likewise.
5720 * ipa-pure-const.c: Likewise.
5721 * loop-init.c: Likewise.
5722 * passes.c: Likewise.
5723 * predict.c: Likewise.
5724 * tree-cfg.c: Likewise.
5725 * tree-cfgcleanup.c: Likewise.
5726 * tree-chrec.c: Likewise.
5727 * tree-data-ref.c: Likewise.
5728 * tree-loop-distribution.c: Likewise.
5729 * tree-parloops.c: Likewise.
5730 * tree-predcom.c: Likewise.
5731 * tree-scalar-evolution.c: Likewise.
5732 * tree-ssa-address.c: Likewise.
5733 * tree-ssa.c: Likewise.
5734 * tree-ssa-dce.c: Likewise.
5735 * tree-ssa-loop.c: Likewise.
5736 * tree-ssa-loop-im.c: Likewise.
5737 * tree-ssa-loop-ivcanon.c: Likewise.
5738 * tree-ssa-loop-ivopts.c: Likewise.
5739 * tree-ssa-loop-manip.c: Likewise.
5740 * tree-ssa-loop-niter.c: Likewise.
5741 * tree-ssa-loop-prefetch.c: Likewise.
5742 * tree-ssa-loop-unswitch.c: Likewise.
5743 * tree-ssa-reassoc.c: Likewise.
5744 * tree-vect-data-refs.c: Likewise.
5745 * tree-vect-loop.c: Likewise.
5746 * tree-vect-loop-manip.c: Likewise.
5747 * tree-vectorizer.c: Likewise.
5748 * tree-vect-stmts.c: Likewise.
5749 * tree-vrp.c: Likewise.
5751 2013-10-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5753 * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
5755 2013-10-23 Jakub Jelinek <jakub@redhat.com>
5757 PR tree-optimization/58775
5758 PR tree-optimization/58791
5759 * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
5760 (insert_stmt_after): Rewritten, don't move the stmt, but really
5762 (get_stmt_uid_with_default): Remove.
5763 (build_and_add_sum): Use insert_stmt_after and
5764 reassoc_stmt_dominates_stmt_p. Fix up uid if bb contains only labels.
5765 (update_range_test): Set uid on stmts added by
5766 force_gimple_operand_gsi. Don't immediately modify statements
5767 in inter-bb optimization, just update oe->op values.
5768 (optimize_range_tests): Return bool whether any changed have been made.
5769 (update_ops): New function.
5770 (struct inter_bb_range_test_entry): New type.
5771 (maybe_optimize_range_tests): Perform statement changes here.
5772 (not_dominated_by, appears_later_in_bb, get_def_stmt,
5773 ensure_ops_are_available): Remove.
5774 (find_insert_point): Rewritten.
5775 (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
5776 return LHS of the (new resp. old) stmt. Don't call
5777 ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
5778 instead of last, move new stmt at the right place.
5779 (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
5780 (negate_value): Likewise. Set uids.
5781 (break_up_subtract_bb): Initialize uids.
5782 (reassociate_bb): Adjust rewrite_expr_tree caller.
5783 (do_reassoc): Don't call renumber_gimple_stmt_uids.
5785 2013-10-23 David Edelsohn <dje.gcc@gmail.com>
5788 * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
5789 TARGET_32BIT final condition.
5790 (mulsi3_internal2 and splitter): Same.
5792 2013-10-23 Jeff Law <law@redhat.com>
5794 * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
5795 through joiner blocks with abnormal outgoing edges.
5797 * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
5798 Add parameter JOINERS, to allow/disallow threading through joiner
5800 (thread_block): New. Call thread_block_1.
5801 (mark_threaded_blocks): Remove code to filter out certain cases
5802 of threading through joiner blocks.
5803 (thread_through_all_blocks): Document how we can have a dangling
5804 edge AUX field and clear it.
5806 2013-10-23 Ian Lance Taylor <iant@google.com>
5808 * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
5809 (C++ Dialect Options): Likewise.
5810 (Optimize Options): Likewise.
5812 2013-10-23 Tom de Vries <tom@codesourcery.com>
5814 PR tree-optimization/58805
5815 * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
5817 2013-10-23 Jakub Jelinek <jakub@redhat.com>
5819 * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
5820 sequence based on get_range_info returned range.
5822 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
5824 * tree-ssa.h: Remove all #include's
5825 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
5826 * alias.c: Move required includes from tree-ssa.h.
5828 * builtins.c: Likewise.
5829 * calls.c: Likewise.
5830 * cfgexpand.c: Likewise.
5831 * cfghooks.c: Likewise.
5832 * cfgloop.c: Likewise.
5833 * cfgloopmanip.c: Likewise.
5834 * cgraph.c: Likewise.
5835 * cgraphbuild.c: Likewise.
5836 * cgraphclones.c: Likewise.
5837 * cgraphunit.c: Likewise.
5839 * except.c: Likewise.
5841 * final.c: Likewise.
5842 * fold-const.c: Likewise.
5843 * ggc-page.c: Likewise.
5844 * gimple-builder.c: Likewise.
5845 * gimple-fold.c: Likewise.
5846 * gimple-iterator.c: Likewise.
5847 * gimple-low.c: Likewise.
5848 * gimple-pretty-print.c: Likewise.
5849 * gimple-ssa-strength-reduction.c: Likewise.
5850 * gimple-streamer-in.c: Likewise.
5851 * gimple-streamer-out.c: Likewise.
5852 * gimplify.c: Likewise.
5853 * graphite-blocking.c: Likewise.
5854 * graphite-clast-to-gimple.c: Likewise.
5855 * graphite-dependences.c: Likewise.
5856 * graphite-interchange.c: Likewise.
5857 * graphite-optimize-isl.c: Likewise.
5858 * graphite-poly.c: Likewise.
5859 * graphite-scop-detection.c: Likewise.
5860 * graphite-sese-to-poly.c: Likewise.
5861 * graphite.c: Likewise.
5862 * ipa-cp.c: Likewise.
5863 * ipa-inline-analysis.c: Likewise.
5864 * ipa-inline-transform.c: Likewise.
5865 * ipa-inline.c: Likewise.
5866 * ipa-prop.c: Likewise.
5867 * ipa-pure-const.c: Likewise.
5868 * ipa-reference.c: Likewise.
5869 * ipa-split.c: Likewise.
5870 * ipa-utils.c: Likewise.
5871 * loop-init.c: Likewise.
5872 * lto-cgraph.c: Likewise.
5873 * lto-section-in.c: Likewise.
5874 * lto-section-out.c: Likewise.
5875 * lto-streamer-in.c: Likewise.
5876 * lto-streamer-out.c: Likewise.
5877 * lto-streamer.c: Likewise.
5878 * omp-low.c: Likewise.
5879 * passes.c: Likewise.
5880 * predict.c: Likewise.
5881 * print-tree.c: Likewise.
5882 * profile.c: Likewise.
5884 * targhooks.c: Likewise.
5885 * tracer.c: Likewise.
5886 * trans-mem.c: Likewise.
5887 * tree-call-cdce.c: Likewise.
5888 * tree-cfg.c: Likewise.
5889 * tree-cfgcleanup.c: Likewise.
5890 * tree-chrec.c: Likewise.
5891 * tree-complex.c: Likewise.
5892 * tree-data-ref.c: Likewise.
5893 * tree-dfa.c: Likewise.
5894 * tree-eh.c: Likewise.
5895 * tree-emutls.c: Likewise.
5896 * tree-if-conv.c: Likewise.
5897 * tree-inline.c: Likewise.
5898 * tree-into-ssa.c: Likewise.
5899 * tree-loop-distribution.c: Likewise.
5900 * tree-mudflap.c: Likewise.
5901 * tree-nested.c: Likewise.
5902 * tree-nrv.c: Likewise.
5903 * tree-object-size.c: Likewise.
5904 * tree-outof-ssa.c: Likewise.
5905 * tree-parloops.c: Likewise.
5906 * tree-phinodes.c: Likewise.
5907 * tree-predcom.c: Likewise.
5908 * tree-pretty-print.c: Likewise.
5909 * tree-profile.c: Likewise.
5910 * tree-scalar-evolution.c: Likewise.
5911 * tree-sra.c: Likewise.
5912 * tree-ssa-address.c: Likewise.
5913 * tree-ssa-alias.c: Likewise.
5914 * tree-ssa-ccp.c: Likewise.
5915 * tree-ssa-coalesce.c: Likewise.
5916 * tree-ssa-copy.c: Likewise.
5917 * tree-ssa-copyrename.c: Likewise.
5918 * tree-ssa-dce.c: Likewise.
5919 * tree-ssa-dom.c: Likewise.
5920 * tree-ssa-dse.c: Likewise.
5921 * tree-ssa-forwprop.c: Likewise.
5922 * tree-ssa-ifcombine.c: Likewise.
5923 * tree-ssa-live.c: Likewise.
5924 * tree-ssa-loop-ch.c: Likewise.
5925 * tree-ssa-loop-im.c: Likewise.
5926 * tree-ssa-loop-ivcanon.c: Likewise.
5927 * tree-ssa-loop-ivopts.c: Likewise.
5928 * tree-ssa-loop-manip.c: Likewise.
5929 * tree-ssa-loop-niter.c: Likewise.
5930 * tree-ssa-loop-prefetch.c: Likewise.
5931 * tree-ssa-loop-unswitch.c: Likewise.
5932 * tree-ssa-loop.c: Likewise.
5933 * tree-ssa-math-opts.c: Likewise.
5934 * tree-ssa-operands.c: Likewise.
5935 * tree-ssa-phiopt.c: Likewise.
5936 * tree-ssa-phiprop.c: Likewise.
5937 * tree-ssa-pre.c: Likewise.
5938 * tree-ssa-propagate.c: Likewise.
5939 * tree-ssa-reassoc.c: Likewise.
5940 * tree-ssa-sccvn.c: Likewise.
5941 * tree-ssa-sink.c: Likewise.
5942 * tree-ssa-strlen.c: Likewise.
5943 * tree-ssa-structalias.c: Likewise.
5944 * tree-ssa-tail-merge.c: Likewise.
5945 * tree-ssa-ter.c: Likewise.
5946 * tree-ssa-threadedge.c: Likewise.
5947 * tree-ssa-threadupdate.c: Likewise.
5948 * tree-ssa-uncprop.c: Likewise.
5949 * tree-ssa-uninit.c: Likewise.
5950 * tree-ssa.c: Likewise.
5951 * tree-ssanames.c: Likewise.
5952 * tree-stdarg.c: Likewise.
5953 * tree-streamer-in.c: Likewise.
5954 * tree-switch-conversion.c: Likewise.
5955 * tree-tailcall.c: Likewise.
5956 * tree-vect-data-refs.c: Likewise.
5957 * tree-vect-generic.c: Likewise.
5958 * tree-vect-loop-manip.c: Likewise.
5959 * tree-vect-loop.c: Likewise.
5960 * tree-vect-patterns.c: Likewise.
5961 * tree-vect-slp.c: Likewise.
5962 * tree-vect-stmts.c: Likewise.
5963 * tree-vectorizer.c: Likewise.
5964 * tree-vrp.c: Likewise.
5967 * value-prof.c: Likewise.
5968 * var-tracking.c: Likewise.
5969 * varpool.c: Likewise.
5970 * vtable-verify.c: Likewise.
5972 2013-10-23 Jan-Benedict Glaw <jbglaw@lug-owl.de>
5974 * config/tilegx/tilegx.c: Include "tree.h".
5976 2013-10-23 Jakub Jelinek <jakub@redhat.com>
5978 * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
5979 the info, not after it.
5980 (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
5981 dump_ssaname_info call.
5982 (pp_gimple_stmt_1): Adjust caller.
5983 (dump_phi_nodes): Likewise. Don't print "# " here.
5985 2013-10-22 Jan Hubicka <jh@suse.cz>
5987 * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
5989 * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
5990 * i386.c (expand_small_movmem_or_setmem): New function.
5991 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
5993 (alg_usable_p): Add support for value ranges; cleanup.
5994 (ix86_expand_set_or_movmem): Add support for misaligned moves.
5996 2013-10-22 Sterling Augustine <saugustine@google.com>
5998 * doc/invoke.texi: Document -ggnu-pubnames.
5999 * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
6001 * dwarf2out.c: Include gdb/gdb-index.h.
6002 (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
6003 debug_generate_pub_sections.
6004 (is_java, output_pubtables, output_pubname): New functions.
6005 (include_pubname_in_output): Handle debug_generate_pub_sections at
6007 (size_of_pubnames): Use new local space_for_flags based on
6008 debug_generate_pub_sections.
6009 (output_pubnames): Unify pubnames and pubtypes output logic.
6010 Genericize comments. Call output_pubname.
6011 (dwarf2out_finish): Move logic to output_pubnames and call it.
6013 2013-10-22 Uros Bizjak <ubizjak@gmail.com>
6016 * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
6017 Remove CCCmode handling.
6018 <case LTU>: Return 'c' suffix for CCCmode.
6019 <case GEU>: Return 'nc' suffix for CCCmode.
6020 (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
6021 * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
6022 (*sub<mode>3_cc_overflow): Ditto.
6023 (*subsi3_zext_cc_overflow): Ditto.
6025 2013-10-22 Steve Ellcey <sellcey@mips.com>
6027 * config/mips/mips.c (mips_rtx_costs): Fix cost estimate for nor
6028 (AND (NOT OP1) (NOT OP2)).
6030 2013-10-22 Bill Schmidt <wschmidt@vnet.ibm.com>
6032 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
6033 meaning of merge-high and merge-low masks for little endian; avoid
6034 use of vector-pack masks for little endian for mismatched modes.
6036 2013-10-22 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6038 * config/tilepro/tilepro.c: Include "tree.h".
6040 2013-10-22 Andreas Schwab <schwab@suse.de>
6042 * config/m68k/m68k.c (notice_update_cc): Handle register conflict
6045 2013-10-22 Paolo Carlini <paolo.carlini@oracle.com>
6047 * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
6048 [Ed Smith-Rowland]): New entries.
6049 ([Stephen M. Webb]): Update.
6051 2013-10-22 Andrew MacLeod <amacleod@redhat.com>
6053 * tree-ssa-ter.h: Remove duplicate copy of file contents.
6055 2013-10-21 Marek Polacek <polacek@redhat.com>
6058 * fold-const.c (fold_range_test): Return 0 if the type is not
6061 2013-10-21 Richard Sandiford <rdsandiford@googlemail.com>
6063 * system.h: Move hwint.h include further down.
6064 * hwint.h (sext_hwi, zext_hwi): Define unconditionally. Add
6065 gcc_checking_asserts.
6066 * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
6068 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
6070 Fix volatile issues in optimize_bit_field_compare.
6071 * fold-const.c (optimize_bit_field_compare): Bail out if
6072 lvolatilep or rvolatilep.
6074 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
6076 Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
6077 and get_inner_reference returning different pmode for non-volatile
6078 bit-field members dependent on flag_strict_volatile_bitfields.
6079 * stor-layout.c (layout_decl): Remove special handling of
6080 flag_strict_volatile_bitfields.
6081 * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
6082 if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
6084 2013-10-21 Paulo Matos <pmatos@broadcom.com>
6086 * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
6089 2013-10-21 Jeff Law <law@redhat.com>
6091 * tree-ssa-threadedge.c (thread_through_normal_block): New
6092 argument VISITED. Remove VISISTED as a local variable. When we
6093 have a threadable jump, verify the destination of the jump has not
6095 (thread_across_edge): Allocate VISITED bitmap once at function
6096 scope and use it throughout. Make sure to set appropriate bits in
6097 VISITED for E (start of jump thread path).
6098 * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
6099 through a joiner if any edge on the path has a recorded jump thread.
6101 2013-10-21 Ian Lance Taylor <iant@google.com>
6103 * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
6104 don't imply that attributes can solve all problems.
6105 (Directory Options): Fix typo.
6107 2013-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6109 * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
6110 extend and extend_add.
6112 2013-10-21 Richard Biener <rguenther@suse.de>
6114 PR tree-optimization/58794
6115 * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
6116 of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
6118 2013-10-21 Richard Biener <rguenther@suse.de>
6121 * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
6122 to (T) X for sign-changing conversions (or no conversion).
6124 2013-10-20 Uros Bizjak <ubizjak@gmail.com>
6126 * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
6128 2013-10-20 Jan Hubicka <jh@suse.cz>
6130 * config/i386/i386-tune.def: Add comment; organize into categories
6132 2013-10-21 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
6134 * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
6135 argument. Update function comment.
6136 (expand_set_or_movmem_via_rep): New function combining
6137 expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
6138 (expand_movmem_via_rep_mov): Remove.
6139 expand_setmem_via_rep_stos): Remove.
6140 (expand_movmem_epilogue): Update calls correspondingly.
6141 (expand_setmem_epilogue_via_loop): Likewise.
6143 (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
6144 (expand_set_or_movmem_prologue): New function combining
6145 expand_movmem_prologue and expand_setmem_prologue.
6146 (expand_movmem_prologue): Remove.
6147 (expand_setmem_prologue): Remove.
6148 (expand_set_or_movmem_constant_prologue): New function combining
6149 expand_constant_movmem_prologue and expand_constant_setmem_prologue.
6150 (expand_constant_movmem_prologue): Remove.
6151 (expand_constant_setmem_prologue): Remove.
6152 (promote_duplicated_reg): Allow vector-const0 value.
6153 (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
6154 and ix86_expand_setmem.
6155 (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
6156 (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
6158 2013-10-21 Diego Novillo <dnovillo@google.com>
6160 * asan.c: Include tree.h
6161 * bb-reorder.c: Likewise.
6162 * cfgcleanup.c: Likewise.
6163 * cfgloopmanip.c: Likewise.
6164 * data-streamer-in.c: Likewise.
6165 * data-streamer-out.c: Likewise.
6166 * data-streamer.c: Likewise.
6167 * dwarf2cfi.c: Likewise.
6168 * graphite-blocking.c: Likewise.
6169 * graphite-clast-to-gimple.c: Likewise.
6170 * graphite-dependences.c: Likewise.
6171 * graphite-interchange.c: Likewise.
6172 * graphite-optimize-isl.c: Likewise.
6173 * graphite-poly.c: Likewise.
6174 * graphite-scop-detection.c: Likewise.
6175 * graphite-sese-to-poly.c: Likewise.
6176 * graphite.c: Likewise.
6177 * ipa-devirt.c: Likewise.
6178 * ipa-profile.c: Likewise.
6181 * loop-init.c: Likewise.
6182 * loop-unroll.c: Likewise.
6183 * lower-subreg.c: Likewise.
6184 * lto/lto-object.c: Likewise.
6185 * recog.c: Likewise.
6186 * reginfo.c: Likewise.
6187 * tree-loop-distribution.c: Likewise.
6188 * tree-parloops.c: Likewise.
6189 * tree-ssa-strlen.c: Likewise.
6190 * tree-streamer.c: Likewise.
6191 * value-prof.c: Likewise.
6192 * target-globals.c: Likewise.
6193 * expr.h: Include tree-core.h instead of tree.h.
6194 * gimple.h: Likewise.
6195 * ipa-prop.h: Likewise.
6196 * ipa-utils.h: Likewise.
6197 * lto-streamer.h: Likewise.
6198 * streamer-hooks.h: Likewise.
6199 * ipa-reference.h: Include cgraph.h instead of tree.h.
6200 * cgraph.h: Include basic-block.h instead of tree.h.
6201 * tree-streamer.h: Do not include tree.h.
6202 * genattrtab.c (write_header): Generate inclusion of tree.h.
6203 * genautomata.c (main): Likewise.
6204 * genemit.c: Likewise.
6205 * genopinit.c: Likewise.
6206 * genoutput.c (output_prologue): Likewise.
6207 * genpeep.c: Likewise.
6209 2013-10-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6211 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
6213 (vec_unpacku_hi_v8hi): Likewise.
6214 (vec_unpacku_lo_v16qi): Likewise.
6215 (vec_unpacku_lo_v8hi): Likewise.
6217 2013-10-20 Jan Hubicka <jh@suse.cz>
6219 * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
6220 X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
6221 (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
6223 2013-10-20 Richard Sandiford <rdsandiford@googlemail.com>
6225 * config/mips/mips.h (ISA_HAS_WSBH): Define.
6226 * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
6228 (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
6230 2013-10-19 John David Anglin <danglin@gcc.gnu.org>
6233 * system.h: Undef m_slot.
6235 2013-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6237 * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
6238 all elements for both endian flavors.
6240 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
6243 * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
6244 ST1_REG and XMM1_REG for 32bit and 64bit targets. Also add DI_REG
6245 and SI_REG for 64bit SYSV ABI targets.
6247 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
6249 * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
6250 to multi_reg_return. Clarify that we are skipping USEs of multiple
6251 return registers. Use bool type where appropriate.
6253 2013-10-18 Jan Hubicka <jh@suse.cz>
6255 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
6257 * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
6258 (X86_TUNE_PUSH_MEMORY): Likewise.
6259 (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
6260 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
6261 (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
6263 * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
6264 x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
6266 (ix86_option_override_internal): Update to use tune features instead
6269 2013-10-18 Cong Hou <congh@google.com>
6271 PR tree-optimization/58508
6272 * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
6273 statement that contains data refs with zero-step.
6275 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
6277 * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
6278 sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
6279 * gimple-low.c (gimple_check_call_arg,
6280 gimple_check_call_matching_types): Move to cgraph.c.
6281 * gimple-low.h: Remove prototype.
6282 * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
6283 Relocate from gimple-low.c.
6284 * cgraph.h: Add prototype. Don't include basic-block.h.
6285 * gimplify.c: Add gimple-low to include list.
6286 * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
6287 * tree-eh.c: Add gimple-low to include list.
6288 * tree-nested.c: Likewise.
6289 * cfgexpand.c: Add tree-ssa-address.h to include list.
6291 * gimple-fold.c: Likewise.
6292 * gimple-ssa-strength-reduction.c: Likewise.
6293 * trans-mem.c: Likewise.
6294 * tree-mudflap.c: Likewise.
6295 * tree-ssa-loop-ivopts.c: Likewise.
6296 * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
6297 (degenerate_phi_result): Move to tree-phinodes.c.
6298 * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
6299 * tree-ssa-threadedge.c: Likewise.
6300 * tree-vrp.c: Likewise.
6301 * tree-phinodes.c (degenerate_phi_result): Relocate here.
6302 * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
6303 * tree-phinodes.h (degenerate_phi_result): Add prototype.
6304 * tree-ssa-copy.c: Include tree-ssa-dom.h.
6305 * tree-ssa-forwprop.c: Likewise.
6306 * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
6307 pass_data_cleanup_cfg_post_optimizing,
6308 make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
6309 * tree-optimize.c: Delete File.
6310 * graphite.c: Include tree-cfgcleanup.h.
6311 * passes.c: Likewise.
6312 * tree-cfg.c: Likewise.
6313 * tree-profile.c: Likewise.
6314 * tree-ssa-dse.c: Likewise.
6315 * tree-ssa-loop-ivcanon.c: Likewise.
6316 * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
6317 * tree-outof-ssa.c: Include sbitmap.h.
6318 * tree-ssa-live.c: Likewise.
6319 * tree-ssa-propagate.c: Likewise.
6320 * tree-ssa-structalias.c: Likewise.
6321 * tree-stdarg.c: Likewise.
6322 * Makefile.in (OBJS): Delete tree-optimize.o.
6323 * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
6324 * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
6325 * varasm.c: Include basic-block.h.
6326 * cfgloop.h: Include function.h instead of basic-block.h
6327 (bb_loop_depth): Move to cfgloop.c.
6328 * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
6330 2013-10-18 Teresa Johnson <tejohnson@google.com>
6332 * predict.c (probably_never_executed): Compare frequency-based
6333 count to number of training runs.
6334 * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
6336 2013-10-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6338 * config/arm/arm.c (cortexa9_extra_costs): New table.
6339 (arm_cortex_a9_tune): Use cortexa9_extra_costs.
6341 2013-10-18 Jeff Law <law@redhat.com>
6343 * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
6345 * tree-ssa-threadupdate.c: Include "dbgcnt.h".
6346 (register_jump_thread): Add "registered_jump_thread" debug
6348 * dbgcnt.def (registered_jump_thread): New debug counter.
6350 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
6352 * config/rs6000/rs6000.c: Include cgraph.h.
6354 2013-10-18 Teresa Johnson <tejohnson@google.com>
6356 * tree-ssa-tail-merge.c (replace_block_by): Update edge
6357 weights during merging.
6359 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
6361 * tree-cfg.h: Rename from tree-flow.h. Remove #includes.
6362 * tree-ssa.h: Relocate required #includes from tree-cfg.h.
6363 * tree-ssa-operands.h: Remove prototype.
6364 * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
6365 * gimple.c (virtual_operand_p): Relocate from gimple.c.
6366 * gimple.h: Add prototype.
6367 * gimple-ssa.h: Include tree-ssa-operands.h.
6368 * tree-dump.c: Add tree-cfg.h to include list.
6369 * tree-ssa-alias.c: Add ipa-reference.h to include list.
6370 * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
6371 * config/i386/i386.c: Don't include tree-flow.h.
6372 * config/rs6000/rs6000.c: Likewise.
6374 2013-10-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6376 * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
6378 2013-10-18 Richard Biener <rguenther@suse.de>
6380 * stor-layout.c (layout_type): Do not change TYPE_PRECISION
6381 or TYPE_UNSIGNED of integral types.
6382 (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
6383 NULL_TREE for zero-precision integral types.
6385 2013-10-18 James Greenhalgh <james.greenhalgh@arm.com>
6387 * config/aarch64/arm_neon.h
6388 (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
6390 2013-10-17 Sriraman Tallam <tmsriram@google.com>
6393 * opth-gen.awk: Define target_flags_explicit.
6395 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
6397 * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
6398 fields to the reg_addr array that describes the valid addressing
6399 mode for any register, general purpose registers, floating point
6400 registers, and Altivec registers.
6401 (FIRST_RELOAD_REG_CLASS): Likewise.
6402 (LAST_RELOAD_REG_CLASS): Likewise.
6403 (struct reload_reg_map_type): Likewise.
6404 (reload_reg_map_type): Likewise.
6405 (RELOAD_REG_VALID): Likewise.
6406 (RELOAD_REG_MULTIPLE): Likewise.
6407 (RELOAD_REG_INDEXED): Likewise.
6408 (RELOAD_REG_OFFSET): Likewise.
6409 (RELOAD_REG_PRE_INCDEC): Likewise.
6410 (RELOAD_REG_PRE_MODIFY): Likewise.
6411 (reg_addr): Likewise.
6412 (mode_supports_pre_incdec_p): New helper functions to say whether
6413 a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
6414 (mode_supports_pre_modify_p): Likewise.
6415 (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
6416 print the valid address mode bits for each mode.
6417 (rs6000_debug_print_mode): Likewise.
6418 (rs6000_debug_reg_global): Likewise.
6419 (rs6000_setup_reg_addr_masks): New function to set up the address
6420 mask bits for each type.
6421 (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
6422 Call rs6000_setup_reg_addr_masks to set up the address mask bits.
6423 (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
6424 mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
6425 PRE_MODIFY are supported.
6426 (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
6427 registers, instead of {src,dest}_av_p.
6428 (rs6000_print_options_internal): Tweak the debug output slightly.
6430 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
6432 * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
6435 2013-10-17 Andrew MacLeod <amacleod@redhat.com>
6437 * tree-flow.h (struct omp_region): Move to omp-low.c.
6438 Remove omp_ prototypes and variables.
6439 * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
6440 (copy_var_decl): Relocate prototype from tree-flow.h.
6441 * gimple.c (copy_var_decl): Relocate from omp-low.c.
6442 * tree.h: Move prototype to omp-low.h.
6443 * omp-low.h: New File. Relocate prototypes here.
6444 * omp-low.c (struct omp_region): Make local here.
6445 (root_omp_region): Make static.
6446 (copy_var_decl) Move to gimple.c.
6447 (new_omp_region): Make static.
6448 (make_gimple_omp_edges): New. Refactored from tree-cfg.c make_edges.
6449 * tree-cfg.c: Include omp-low.h.
6450 (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
6451 * gimplify.c: Include omp-low.h.
6452 * tree-parloops.c: Likewise.
6454 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
6456 * config/i386/i386.c (ix86_fixup_binary_operands): When both source
6457 operands are in memory, prefer to force non-matched operand 1 to
6460 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
6463 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
6464 restrict TImode addresses to single indirect registers if both
6465 -mquad-memory and -mvsx-timode are used.
6466 (rs6000_output_move_128bit): Use quad_load_store_p to determine if
6467 we should emit load/store quad. Remove using %y for quad memory
6470 * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
6471 constraints to allow load/store quad on machines where TImode is
6472 not allowed in VSX registers. Use 'n' instead of 'F' constraint
6473 for TImode to load integer constants.
6475 2013-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6477 * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
6479 2013-10-17 Marcus Shawcroft <marcus.shawcroft@arm.com>
6481 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
6482 handling of STACK_REG.
6484 2013-10-17 Richard Biener <rguenther@suse.de>
6486 PR tree-optimization/58143
6487 * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
6489 (rewrite_to_defined_overflow): Likewise.
6490 (move_computations_dom_walker::before_dom): Rewrite stmts
6491 with undefined signed overflow that are not always executed
6492 into unsigned arithmetic.
6494 2013-10-16 Michael Meissner <meissner@linux.vnet.ibm.com>
6497 * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
6498 explicit isa flag to be an options variable, instead of using
6499 global_options_set. Remove define from rs6000.h.
6500 * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
6502 * config/rs6000/rs6000.c (rs6000_option_override_internal):
6503 Initialize rs6000_isa_flags_explicit.
6504 (rs6000_function_specific_save): Add gcc_options* parameter, so
6505 that the powerpc builds after the 2013-10-15 changes.
6506 (rs6000_function_specific_restore): Likewise.
6508 2013-10-16 DJ Delorie <dj@redhat.com>
6510 * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
6511 op is a REG before checking REGNO.
6512 (rl78_alloc_physical_registers): Verify pattern is a SET before
6515 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6517 * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
6519 (vec_unpacks_lo_v4sf): Likewise.
6520 (vec_unpacks_float_hi_v4si): Likewise.
6521 (vec_unpacks_float_lo_v4si): Likewise.
6522 (vec_unpacku_float_hi_v4si): Likewise.
6523 (vec_unpacku_float_lo_v4si): Likewise.
6525 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6527 * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
6528 (vsx_concat_v2sf): Likewise.
6530 2013-10-16 James Greenhalgh <james.greenhalgh@arm.com>
6532 * config/aarch64/aarch64.md
6533 (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
6535 2013-10-16 Andrew MacLeod <amacleod@redhat.com>
6537 PR tree-optimization/58697
6538 * cfgloop.c (get_estimated_loop_iterations_int): Rename from
6539 estimated_loop_iterations_int.
6540 (max_stmt_executions_int): Call get_max_loop_iterations_int.
6541 (get_max_loop_iterations_int): New. HWINT version of
6542 get_max_loop_iterations.
6543 * cfgloop.h: Add prototypes.
6544 * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
6545 * loop-unroll.c (decide_peel_once_rolling): Call
6546 get_estimated_loop_iterations_int.
6547 * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
6548 * tree-ssa-loop-niter.h: Tweak prototypes.
6550 2013-10-16 David Malcolm <dmalcolm@redhat.com>
6552 * gengtype-parse.c (struct_field_seq): Ignore access-control
6553 keywords ("public:" etc).
6555 2013-10-16 Marcus Shawcroft <marcus.shawcroft@arm.com>
6557 * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
6558 FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
6560 2013-10-16 Yvan Roux <yvan.roux@linaro.org>
6562 * config/arm/arm.opt (mlra): New option.
6563 * config/arm/arm.c (arm_lra_p): New function.
6564 (TARGET_LRA_P): Define.
6566 2013-10-16 Paulo Matos <pmatos@broadcom.com>
6568 * tree-core.h (tree_code_name): Remove.
6569 * tree.h (get_tree_code_name): New prototype.
6570 * tree.c (tree_code_name): Make static.
6571 (get_tree_code_name): New function.
6572 (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
6573 tree_class_check_failed, tree_range_check_failed,
6574 tree_not_class_check_failed, omp_clause_check_failed,
6575 tree_contains_struct_check_failed, tree_operand_check_failed): Use new
6576 wrapper get_tree_code_name instead of calling tree_code_name directly.
6577 * tree-vrp.c (dump_asserts_for): Likewise.
6578 * tree-dump.c (dequeue_and_dump): Likewise.
6579 * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
6580 * tree-pretty-print.h (pp_unsupported_tree): Likewise.
6581 * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
6582 * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
6583 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
6584 dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
6585 dump_gimple_omp_for): Likewise.
6586 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
6587 * tree-ssa-pre.c (print_pre_expr): Likewise.
6588 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
6589 * print-tree.c (print_node_brief, print_node): Likewise.
6590 * gimple.c (gimple_check_failed): Likewise.
6591 * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
6592 * config/frv/frv.c (frv_init_cumulative_args): Likewise.
6593 * config/mep/mep.c (mep_validate_vliw): Likewise.
6594 * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
6595 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
6597 2013-10-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
6599 * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
6602 2013-10-16 Hans-Peter Nilsson <hp@axis.com>
6604 * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
6605 (MULTILIB_MATCHES): Add multilib for -march=v8.
6607 2013-10-15 Sriraman Tallam <tmsriram@google.com>
6610 * optc-save-gen.awk: Add extra parameter to the save and restore
6612 * opth-gen.awk: Generate new TARGET_* macros to accept a parameter.
6613 * tree.c (build_optimization_node): New parameter. Add extra parameter
6614 to call to cl_optimization_save.
6615 (build_target_option_node): New parameter. Add extra parameter
6616 to call to cl_target_option_save.
6617 * tree.h (build_optimization_node): New parameter.
6618 (build_target_option_node): New parameter.
6619 * c-family/c-common.c (handle_optimize_attribute): Fix calls to
6620 build_optimization_node and build_target_option_node.
6621 * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
6622 (handle_pragma_push_options): Ditto.
6623 * toplev.c (process_options): Ditto.
6624 * opts.c (init_options_struct): Check for opts_set non-null.
6625 * target.def (target_option.save): New parameter.
6626 (target_option.restore): New parameter.
6627 * tm.texi: Generate.
6628 * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
6629 (ix86_pragma_target_parse): Ditto.
6630 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
6632 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
6633 to build_optimization_node and build_target_option_node.
6634 (rs6000_valid_attribute_p): Ditto.
6635 (rs6000_pragma_target_parse): Ditto.
6636 * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
6638 * config/i386/i386.h:
6639 TARGET_64BIT_P: New Macro
6640 TARGET_MMX_P: New Macro.
6641 TARGET_3DNOW_P: New Macro.
6642 TARGET_3DNOW_A_P: New Macro.
6643 TARGET_SSE_P: New Macro.
6644 TARGET_SSE2_P: New Macro.
6645 TARGET_SSE3_P: New Macro.
6646 TARGET_SSSE3_P: New Macro.
6647 TARGET_SSE4_1_P: New Macro.
6648 TARGET_SSE4_2_P: New Macro.
6649 TARGET_AVX_P: New Macro.
6650 TARGET_AVX2_P: New Macro.
6651 TARGET_AVX512F_P: New Macro.
6652 TARGET_AVX512PF_P: New Macro.
6653 TARGET_AVX512ER_P: New Macro.
6654 TARGET_AVX512CD_P: New Macro.
6655 TARGET_FMA_P: New Macro.
6656 TARGET_SSE4A_P: New Macro.
6657 TARGET_FMA4_P: New Macro.
6658 TARGET_XOP_P: New Macro.
6659 TARGET_LWP_P: New Macro.
6660 TARGET_ABM_P: New Macro.
6661 TARGET_BMI_P: New Macro.
6662 TARGET_BMI2_P: New Macro.
6663 TARGET_LZCNT_P: New Macro.
6664 TARGET_TBM_P: New Macro.
6665 TARGET_POPCNT_P: New Macro.
6666 TARGET_SAHF_P: New Macro.
6667 TARGET_MOVBE_P: New Macro.
6668 TARGET_CRC32_P: New Macro.
6669 TARGET_AES_P: New Macro.
6670 TARGET_PCLMUL_P: New Macro.
6671 TARGET_CMPXCHG16B_P: New Macro.
6672 TARGET_FSGSBASE_P: New Macro.
6673 TARGET_RDRND_P: New Macro.
6674 TARGET_F16C_P: New Macro.
6675 TARGET_RTM_P: New Macro.
6676 TARGET_HLE_P: New Macro.
6677 TARGET_RDSEED_P: New Macro.
6678 TARGET_PRFCHW_P: New Macro.
6679 TARGET_ADX_P: New Macro.
6680 TARGET_FXSR_P: New Macro.
6681 TARGET_XSAVE_P: New Macro.
6682 TARGET_XSAVEOPT_P: New Macro.
6683 TARGET_LP64_P: New Macro.
6684 TARGET_X32_P: New Macro.
6685 TARGET_FPMATH_DEFAULT_P: New Macro.
6686 TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
6687 * config/i386/i386.c (ix86_option_override_internal): New parameters.
6689 Change ix86_tune_string to access opts->x_ix86_tune_string.
6690 Change ix86_isa_flags to access opts->x_ix86_isa_flags.
6691 Change ix86_arch_string to access opts->x_ix86_arch_string.
6692 Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
6693 Change ix86_pmode to access opts->x_ix86_pmode.
6694 Change ix86_abi to access opts->x_ix86_abi.
6695 Change ix86_cmodel to access opts->x_ix86_cmodel.
6696 Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
6697 Change ix86_isa_flags_explicit to access
6698 opts->x_ix86_isa_flags_explicit.
6699 Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
6700 Change ix86_regparm to access opts->x_ix86_regparm.
6701 Change ix86_branch_cost to access opts->x_ix86_branch_cost.
6702 Change ix86_preferred_stack_boundary_arg to access
6703 opts->x_ix86_preferred_stack_boundary_arg.
6704 Change ix86_force_align_arg_pointer to access
6705 opts->x_ix86_force_align_arg_pointer.
6706 Change ix86_incoming_stack_boundar_arg to access
6707 opts->x_ix86_incoming_stack_boundar_arg.
6708 Change ix86_fpmath to access opts->x_ix86_fpmath.
6709 Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
6710 Change ix86_recip_name to access opts->x_ix86_recip_name.
6711 Change ix86_stack_protector_guard to access
6712 opts->x_ix86_stack_protector_guard.
6713 Change ix86_tune_memcpy_strategy to access
6714 opts->x_ix86_tune_memcpy_strategy.
6715 Change ix86_tune_memset_strategy to access
6716 opts->x_ix86_tune_memset_strategy.
6717 Change global_options to access opts.
6718 Change global_options_set to access opts_set.
6719 Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
6720 Change TARGET_MMX to TARGET_MMX_P (opts->...).
6721 Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
6722 Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
6723 Change TARGET_SSE to TARGET_SSE_P (opts->...).
6724 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
6725 Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
6726 Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
6727 Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
6728 Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
6729 Change TARGET_AVX to TARGET_AVX_P (opts->...).
6730 Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
6731 Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
6732 Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
6733 Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
6734 Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
6735 Change TARGET_FMA to TARGET_FMA_P (opts->...).
6736 Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
6737 Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
6738 Change TARGET_XOP to TARGET_XOP_P (opts->...).
6739 Change TARGET_LWP to TARGET_LWP_P (opts->...).
6740 Change TARGET_ABM to TARGET_ABM_P (opts->...).
6741 Change TARGET_BMI to TARGET_BMI_P (opts->...).
6742 Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
6743 Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
6744 Change TARGET_TBM to TARGET_TBM_P (opts->...).
6745 Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
6746 Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
6747 Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
6748 Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
6749 Change TARGET_AES to TARGET_AES_P (opts->...).
6750 Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
6751 Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
6752 Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
6753 Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
6754 Change TARGET_F16C to TARGET_F16C_P (opts->...).
6755 Change TARGET_RTM to TARGET_RTM_P (opts->...).
6756 Change TARGET_HLE to TARGET_HLE_P (opts->...).
6757 Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
6758 Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
6759 Change TARGET_ADX to TARGET_ADX_P (opts->...).
6760 Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
6761 Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
6762 Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
6763 Change TARGET_LP64 to TARGET_LP64_P (opts->...).
6764 Change TARGET_X32 to TARGET_X32_P (opts->...).
6765 Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
6766 Change TARGET_FLOAT_RETURNS_IN_80387 to
6767 TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
6768 (ix86_function_specific_save): New parameter. Use opts-> fields
6769 to replace global fields.
6770 (ix86_function_specific_restore): Ditto.
6771 (ix86_valid_target_attribute_inner_p): New parameters.
6773 Fix call to ix86_handle_option and set_option.
6774 (ix86_valid_target_attribute_tree): New parameters.
6775 Change global_options to access opts.
6776 Change global_options_set to access opts_set.
6777 Fix call to ix86_valid_target_attribute_inner_p.
6778 Change ix86_tune_string to access opts->x_ix86_tune_string.
6779 Change ix86_arch_string to access opts->x_ix86_arch_string.
6780 Change ix86_fpmath to access opts->x_ix86_fpmath
6781 Fix call to ix86_option_override_internal.
6782 Fix call to ix86_add_new_builtins.
6783 Fix calls to build_optimization_node and build_target_option_node.
6784 (ix86_valid_target_attribute_p): Remove access to global_options.
6785 Use new gcc_options structure func_options.
6786 Fix call to ix86_valid_target_attribute_tree.
6787 Fix call to build_optimization_node.
6788 (get_builtin_code_for_version): Fix call to
6789 ix86_valid_target_attribute_tree.
6791 2013-10-15 David Malcolm <dmalcolm@redhat.com>
6793 * Makefile.in (PICFLAG): New.
6794 (enable_host_shared): New.
6795 (INTERNAL_CFLAGS): Use PICFLAG.
6796 (LIBIBERTY): Use pic build of libiberty.a if configured with
6797 --enable-host-shared.
6798 * configure.ac: Add --enable-host-shared, setting up new
6800 * configure: Regenerate.
6801 * doc/install.texi (--enable-shared): Add note contrasting it with ...
6802 (--enable-host-shared): New option.
6804 2013-10-15 Richard Biener <rguenther@suse.de>
6806 * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
6807 for built-in functions.
6809 2013-10-15 Zhenqiang Chen <zhenqiang.chen@arm.com>
6811 * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
6812 (optimize_range_tests_1): New function,
6813 extracted from optimize_range_tests.
6814 (optimize_range_tests_xor): Similarly.
6815 (optimize_range_tests_diff): New function.
6816 (optimize_range_tests): Use optimize_range_tests_1.
6818 2013-10-15 Cong Hou <congh@google.com>
6820 * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
6821 requirement of the reduction pattern so that one operand of the
6822 reduction operation can come from outside of the loop.
6824 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
6826 * config/arm/neon-schedgen.ml: Remove.
6827 * config/arm/cortex-a9-neon.md: Remove comment regarding
6830 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
6832 * config/arm/types: Remove old neon types.
6834 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
6836 * config/arm/cortex-a7.md
6837 (cortex_a7_neon_type): New.
6838 (cortex_a7_neon_mul): Update for new types.
6839 (cortex_a7_neon_mla): Likewise.
6840 (cortex_a7_neon): Likewise.
6842 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
6844 * config/arm/cortex-a15-neon.md
6845 (cortex_a15_neon_type): New,
6847 (cortex_a15_neon_int_1): Remove.
6848 (cortex_a15_neon_int_2): Likewise.
6849 (cortex_a15_neon_int_3): Likewise.
6850 (cortex_a15_neon_int_4): Likewise.
6851 (cortex_a15_neon_int_5): Likewise.
6852 (cortex_a15_neon_vqneg_vqabs): Likewise.
6853 (cortex_a15_neon_vmov): Likewise.
6854 (cortex_a15_neon_vaba): Likewise.
6855 (cortex_a15_neon_vaba_qqq): Likewise.
6856 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
6857 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
6858 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
6860 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
6861 (cortex_a15_neon_mla_qqq_8_16): Likewise.
6862 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
6863 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
6864 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
6865 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
6866 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
6867 (cortex_a15_neon_shift_1): Likewise.
6868 (cortex_a15_neon_shift_2): Likewise.
6869 (cortex_a15_neon_shift_3): Likewise.
6870 (cortex_a15_neon_vshl_ddd): Likewise.
6871 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
6872 (cortex_a15_neon_vsra_vrsra): Likewise.
6873 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
6874 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
6875 (cortex_a15_neon_bp_3cycle): Likewise.
6876 (cortex_a15_neon_ldm_2): Likewise.
6877 (cortex_a15_neon_stm_2): Likewise.
6878 (cortex_a15_neon_mcr): Likewise.
6879 (cortex_a15_neon_mrc): Likewise.
6880 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
6881 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
6882 (cortex_a15_neon_fp_vmul_ddd): Likewise.
6883 (cortex_a15_neon_fp_vmul_qqd): Likewise.
6884 (cortex_a15_neon_fp_vmla_ddd): Likewise.
6885 (cortex_a15_neon_fp_vmla_qqq): Likewise.
6886 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
6887 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
6888 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
6889 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
6890 (cortex_a15_neon_bp_simple): Likewise.
6891 (cortex_a15_neon_bp_2cycle): Likewise.
6892 (cortex_a15_neon_bp_3cycle): Likewise.
6893 (cortex_a15_neon_vld1_1_2_regs): Likewise.
6894 (cortex_a15_neon_vld1_3_4_regs): Likewise.
6895 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
6896 (cortex_a15_neon_vld2_4_regs): Likewise.
6897 (cortex_a15_neon_vld3_vld4): Likewise.
6898 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
6899 (cortex_a15_neon_vst1_3_4_regs): Likewise.
6900 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
6901 (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
6902 (cortex_a15_neon_vst3_vst4): Rename to...
6903 (cortex_a15_neon_vst4): This, update for new attributes.
6904 (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
6905 (cortex_a15_neon_vld3_vld4_lane): Likewise.
6906 (cortex_a15_neon_vst1_vst2_lane): Likewise.
6907 (cortex_a15_neon_vst3_vst4_lane): Likewise.
6908 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
6909 (cortex_a15_neon_ldm_2): Likewise.
6910 (cortex_a15_neon_stm_2): Likewise.
6911 (cortex_a15_neon_mcr): Likewise.
6912 (cortex_a15_neon_mcr_2_mcrr): Likewise.
6913 (cortex_a15_neon_mrc): Likewise.
6914 (cortex_a15_neon_mrrc): Likewise.
6916 (cortex_a15_neon_abd): New.
6917 (cortex_a15_neon_abd_q): Likewise.
6918 (cortex_a15_neon_aba): Likewise.
6919 (cortex_a15_neon_aba_q): Likewise.
6920 (cortex_a15_neon_acc): Likewise.
6921 (cortex_a15_neon_acc_q): Likewise.
6922 (cortex_a15_neon_arith_basic): Likewise.
6923 (cortex_a15_neon_arith_complex): Likewise.
6924 (cortex_a15_neon_multiply): Likewise.
6925 (cortex_a15_neon_multiply_q): Likewise.
6926 (cortex_a15_neon_mla): Likewise.
6927 (cortex_a15_neon_mla_q): Likewise.
6928 (cortex_a15_neon_sat_mla_long): Likewise.
6929 (cortex_a15_neon_shift_acc): Likewise.
6930 (cortex_a15_neon_shift_imm_basic): Likewise.
6931 (cortex_a15_neon_shift_imm_complex): Likewise.
6932 (cortex_a15_neon_shift_reg_basic): Likewise.
6933 (cortex_a15_neon_shift_reg_basic_q): Likewise.
6934 (cortex_a15_neon_shift_reg_complex): Likewise.
6935 (cortex_a15_neon_shift_reg_complex_q): Likewise.
6936 (cortex_a15_neon_fp_negabs): Likewise
6937 (cortex_a15_neon_fp_arith): Likewise
6938 (cortex_a15_neon_fp_arith_q): Likewise
6939 (cortex_a15_neon_fp_cvt_int): Likewise
6940 (cortex_a15_neon_fp_cvt_int_q): Likewise
6941 (cortex_a15_neon_fp_cvt_16): Likewise
6942 (cortex_a15_neon_fp_mul): Likewise
6943 (cortex_a15_neon_fp_mul_q): Likewise
6944 (cortex_a15_neon_fp_mla): Likewise
6945 (cortex_a15_neon_fp_mla_q): Likewise
6946 (cortex_a15_neon_fp_recps_rsqrte): Likewise.
6947 (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
6948 (cortex_a15_neon_bitops): Likewise.
6949 (cortex_a15_neon_bitops_q): Likewise.
6950 (cortex_a15_neon_from_gp): Likewise.
6951 (cortex_a15_neon_from_gp_q): Likewise.
6952 (cortex_a15_neon_tbl3_tbl4): Likewise.
6953 (cortex_a15_neon_zip_q): Likewise.
6954 (cortex_a15_neon_to_gp): Likewise.
6955 (cortex_a15_neon_load_a): Likewise.
6956 (cortex_a15_neon_load_b): Likewise.
6957 (cortex_a15_neon_load_c): Likewise.
6958 (cortex_a15_neon_load_d): Likewise.
6959 (cortex_a15_neon_load_e): Likewise.
6960 (cortex_a15_neon_load_f): Likewise.
6961 (cortex_a15_neon_store_a): Likewise.
6962 (cortex_a15_neon_store_b): Likewise.
6963 (cortex_a15_neon_store_c): Likewise.
6964 (cortex_a15_neon_store_d): Likewise.
6965 (cortex_a15_neon_store_e): Likewise.
6966 (cortex_a15_neon_store_f): Likewise.
6967 (cortex_a15_neon_store_g): Likewise.
6968 (cortex_a15_neon_store_h): Likewise.
6969 (cortex_a15_vfp_to_from_gp): Likewise.
6971 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
6973 * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
6975 (cortex_a9_neon_vshl_ddd): Remove.
6976 (cortex_a9_neon_vst3_vst4): Likewise.
6977 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
6979 (cortex_a9_neon_bit_ops_q): New.
6981 (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
6982 (cortex_a9_neon_int_2): Likewise.
6983 (cortex_a9_neon_int_3): Likewise.
6984 (cortex_a9_neon_int_4): Likewise.
6985 (cortex_a9_neon_int_5): Likewise.
6986 (cortex_a9_neon_vqneg_vqabs): Likewise.
6987 (cortex_a9_neon_vmov): Likewise.
6988 (cortex_a9_neon_vaba): Likewise.
6989 (cortex_a9_neon_vaba_qqq): Likewise.
6990 (cortex_a9_neon_shift_1): Likewise.
6991 (cortex_a9_neon_shift_2): Likewise.
6992 (cortex_a9_neon_shift_3): Likewise.
6993 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
6994 (cortex_a9_neon_vsra_vrsra): Likewise.
6995 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
6996 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
6997 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
6999 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
7000 (cortex_a9_neon_mla_qqq_8_16): Likewise.
7001 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
7003 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
7004 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
7005 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
7006 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
7007 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
7008 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
7009 (cortex_a9_neon_fp_vsum): Likewise.
7010 (cortex_a9_neon_fp_vmul_ddd): Likewise.
7011 (cortex_a9_neon_fp_vmul_qqd): Likewise.
7012 (cortex_a9_neon_fp_vmla_ddd): Likewise.
7013 (cortex_a9_neon_fp_vmla_qqq): Likewise.
7014 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
7015 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
7016 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
7017 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
7018 (cortex_a9_neon_bp_simple): Likewise.
7019 (cortex_a9_neon_bp_2cycle): Likewise.
7020 (cortex_a9_neon_bp_3cycle): Likewise.
7021 (cortex_a9_neon_ldr): Likewise.
7022 (cortex_a9_neon_str): Likewise.
7023 (cortex_a9_neon_vld1_1_2_regs): Likewise.
7024 (cortex_a9_neon_vld1_3_4_regs): Likewise.
7025 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
7026 (cortex_a9_neon_vld2_4_regs): Likewise.
7027 (cortex_a9_neon_vld3_vld4): Likewise.
7028 (cortex_a9_neon_vld1_vld2_lane): Likewise.
7029 (cortex_a9_neon_vld3_vld4_lane): Likewise.
7030 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
7031 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
7032 (cortex_a9_neon_vst1_3_4_regs): Likewise.
7033 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
7034 (cortex_a9_neon_vst1_vst2_lane): Likewise.
7035 (cortex_a9_neon_vst3_vst4_lane): Likewise.
7036 (cortex_a9_neon_mcr): Likewise.
7037 (cortex_a9_neon_mcr_2_mcrr): Likewise.
7038 (cortex_a9_neon_mrc): Likewise.
7039 (cortex_a9_neon_mrrc): Likewise.
7041 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
7043 * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
7045 (cortex_a8_neon_vshl_ddd): Remove.
7046 (cortex_a8_neon_vst3_vst4): Likewise.
7047 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
7049 (cortex_a8_neon_bit_ops_q): New.
7051 (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
7052 (cortex_a8_neon_int_2): Likewise..
7053 (cortex_a8_neon_int_3): Likewise.
7054 (cortex_a8_neon_int_5): Likewise.
7055 (cortex_a8_neon_vqneg_vqabs): Likewise.
7056 (cortex_a8_neon_int_4): Likewise.
7057 (cortex_a8_neon_vaba): Likewise.
7058 (cortex_a8_neon_vaba_qqq): Likewise.
7059 (cortex_a8_neon_shift_1): Likewise.
7060 (cortex_a8_neon_shift_2): Likewise.
7061 (cortex_a8_neon_shift_3): Likewise.
7062 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
7063 (cortex_a8_neon_vsra_vrsra): Likewise.
7064 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
7065 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
7066 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
7068 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
7069 (cortex_a8_neon_mla_qqq_8_16): Likewise.
7070 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
7072 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
7073 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
7074 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
7075 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
7076 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
7077 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
7078 (cortex_a8_neon_fp_vsum): Likewise.
7079 (cortex_a8_neon_fp_vmul_ddd): Likewise.
7080 (cortex_a8_neon_fp_vmul_qqd): Likewise.
7081 (cortex_a8_neon_fp_vmla_ddd): Likewise.
7082 (cortex_a8_neon_fp_vmla_qqq): Likewise.
7083 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
7084 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
7085 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
7086 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
7087 (cortex_a8_neon_bp_simple): Likewise.
7088 (cortex_a8_neon_bp_2cycle): Likewise.
7089 (cortex_a8_neon_bp_3cycle): Likewise.
7090 (cortex_a8_neon_ldr): Likewise.
7091 (cortex_a8_neon_str): Likewise.
7092 (cortex_a8_neon_vld1_1_2_regs): Likewise.
7093 (cortex_a8_neon_vld1_3_4_regs): Likewise.
7094 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
7095 (cortex_a8_neon_vld2_4_regs): Likewise.
7096 (cortex_a8_neon_vld3_vld4): Likewise.
7097 (cortex_a8_neon_vld1_vld2_lane): Likewise.
7098 (cortex_a8_neon_vld3_vld4_lane): Likewise.
7099 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
7100 (cortex_a8_neon_vst1_3_4_regs): Likewise.
7101 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
7102 (cortex_a8_neon_vst1_vst2_lane): Likewise.
7103 (cortex_a8_neon_vst3_vst4_lane): Likewise.
7104 (cortex_a8_neon_mcr): Likewise.
7105 (cortex_a8_neon_mcr_2_mcrr): Likewise.
7106 (cortex_a8_neon_mrc): Likewise.
7107 (cortex_a8_neon_mrrc): Likewise.
7109 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
7111 * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
7113 * config/aarch64/aarch64-simd.md (neon_type): Remove.
7114 (aarch64_simd_dup<mode>): Add "type" attribute.
7115 (aarch64_dup_lane<mode>): Likewise.
7116 (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
7117 (*aarch64_simd_mov<mode>): Likewise.
7118 (aarch64_simd_mov_from_<mode>low): Likewise.
7119 (aarch64_simd_mov_from_<mode>high): Likewise.
7120 (orn<mode>3): Likewise.
7121 (bic<mode>3): Likewise.
7122 (add<mode>3): Likewise.
7123 (sub<mode>3): Likewise.
7124 (mul<mode>3): Likewise.
7125 (*aarch64_mul3_elt<mode>): Likewise.
7126 (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
7127 (*aarch64_mul3_elt_to_128df): Likewise.
7128 (*aarch64_mul3_elt_to_64v2df): Likewise.
7129 (neg<mode>2): Likewise.
7130 (abs<mode>2): Likewise.
7131 (abd<mode>_3): Likewise.
7132 (aba<mode>_3): Likewise.
7133 (fabd<mode>_3): Likewise.
7134 (*fabd_scalar<mode>3): Likewise.
7135 (and<mode>3): Likewise.
7136 (ior<mode>3): Likewise.
7137 (xor<mode>3): Likewise.
7138 (one_cmpl<mode>2): Likewise.
7139 (aarch64_simd_vec_set<mode>): Likewise.
7140 (aarch64_simd_lshr<mode>): Likewise.
7141 (aarch64_simd_ashr<mode>): Likewise.
7142 (aarch64_simd_imm_shl<mode>): Likewise.
7143 (aarch64_simd_reg_sshl<mode): Likewise.
7144 (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
7145 (aarch64_simd_reg_shl<mode>_signed): Likewise.
7146 (aarch64_simd_vec_setv2di): Likewise.
7147 (aarch64_simd_vec_set<mode>): Likewise.
7148 (aarch64_mla<mode>): Likewise.
7149 (*aarch64_mla_elt<mode>): Likewise.
7150 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
7151 (aarch64_mls<mode>): Likewise.
7152 (*aarch64_mls_elt<mode>): Likewise.
7153 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
7154 (<su><maxmin><mode>3): Likewise.
7155 (move_lo_quad_<mode>): Likewise.
7156 (aarch64_simd_move_hi_quad_<mode>): Likewise.
7157 (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
7158 (vec_pack_trunc_<mode>): Likewise.
7159 (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
7160 (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
7161 (*aarch64_<su>mlal_lo<mode>): Likewise.
7162 (*aarch64_<su>mlal_hi<mode>): Likewise.
7163 (*aarch64_<su>mlsl_lo<mode>): Likewise.
7164 (*aarch64_<su>mlsl_hi<mode>): Likewise.
7165 (*aarch64_<su>mlal<mode>): Likewise.
7166 (*aarch64_<su>mlsl<mode>): Likewise.
7167 (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
7168 (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
7169 (add<mode>3): Likewise.
7170 (sub<mode>3): Likewise.
7171 (mul<mode>3): Likewise.
7172 (div<mode>3): Likewise.
7173 (neg<mode>2): Likewise.
7174 (abs<mode>2): Likewise.
7175 (fma<mode>4): Likewise.
7176 (*aarch64_fma4_elt<mode>): Likewise.
7177 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
7178 (*aarch64_fma4_elt_to_128df): Likewise.
7179 (*aarch64_fma4_elt_to_64v2df): Likewise.
7180 (fnma<mode>4): Likewise.
7181 (*aarch64_fnma4_elt<mode>): Likewise.
7182 (*aarch64_fnma4_elt_<vswap_width_name><mode>
7183 (*aarch64_fnma4_elt_to_128df): Likewise.
7184 (*aarch64_fnma4_elt_to_64v2df): Likewise.
7185 (<frint_pattern><mode>2): Likewise.
7186 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
7187 (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
7188 (vec_unpacks_lo_v4sf): Likewise.
7189 (aarch64_float_extend_lo_v2df): Likewise.
7190 (vec_unpacks_hi_v4sf): Likewise.
7191 (aarch64_float_truncate_lo_v2sf): Likewise.
7192 (aarch64_float_truncate_hi_v4sf): Likewise.
7193 (aarch64_vmls<mode>): Likewise.
7194 (<su><maxmin><mode>3): Likewise.
7195 (<maxmin_uns><mode>3): Likewise.
7196 (reduc_<sur>plus_<mode>): Likewise.
7197 (reduc_<sur>plus_v2di): Likewise.
7198 (reduc_<sur>plus_v2si): Likewise.
7199 (reduc_<sur>plus_<mode>): Likewise.
7200 (aarch64_addpv4sf): Likewise.
7201 (clz<mode>2): Likewise.
7202 (reduc_<maxmin_uns>_<mode>): Likewise.
7203 (reduc_<maxmin_uns>_v2di): Likewise.
7204 (reduc_<maxmin_uns>_v2si): Likewise.
7205 (reduc_<maxmin_uns>_<mode>): Likewise.
7206 (reduc_<maxmin_uns>_v4sf): Likewise.
7207 (aarch64_simd_bsl<mode>_internal): Likewise.
7208 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
7209 (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
7210 (aarch64_get_lane<mode>): Likewise.
7211 (*aarch64_combinez<mode>): Likewise.
7212 (aarch64_combine<mode>): Likewise.
7213 (aarch64_simd_combine<mode>): Likewise.
7214 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
7215 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
7216 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
7217 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
7218 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
7219 (aarch64_<sur>h<addsub><mode>): Likewise.
7220 (aarch64_<sur><addsub>hn<mode>): Likewise.
7221 (aarch64_<sur><addsub>hn2<mode>): Likewise.
7222 (aarch64_pmul<mode>): Likewise.
7223 (aarch64_<su_optab><optab><mode>): Likewise.
7224 (aarch64_<sur>qadd<mode>): Likewise.
7225 (aarch64_sqmovun<mode>): Likewise.
7226 (aarch64_<sur>qmovn<mode>): Likewise.
7227 (aarch64_s<optab><mode>): Likewise.
7228 (aarch64_sq<r>dmulh<mode>): Likewise.
7229 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
7230 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
7231 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
7232 (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
7233 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
7234 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
7235 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
7236 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
7237 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
7238 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
7239 (aarch64_sqdmull<mode>): Likewise.
7240 (aarch64_sqdmull_lane<mode>_internal): Likewise.
7241 (aarch64_sqdmull_n<mode>): Likewise.
7242 (aarch64_sqdmull2<mode>_internal): Likewise.
7243 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
7244 (aarch64_sqdmull2_n<mode>_internal): Likewise.
7245 (aarch64_<sur>shl<mode>): Likewise.
7246 (aarch64_<sur>q<r>shl<mode>
7247 (aarch64_<sur>shll_n<mode>): Likewise.
7248 (aarch64_<sur>shll2_n<mode>): Likewise.
7249 (aarch64_<sur>shr_n<mode>): Likewise.
7250 (aarch64_<sur>sra_n<mode>): Likewise.
7251 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
7252 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
7253 (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
7254 (aarch64_cm<optab><mode>): Likewise.
7255 (aarch64_cm<optab>di): Likewise.
7256 (aarch64_cm<optab><mode>): Likewise.
7257 (aarch64_cm<optab>di): Likewise.
7258 (aarch64_cmtst<mode>): Likewise.
7259 (aarch64_cmtstdi): Likewise.
7260 (aarch64_cm<optab><mode>): Likewise.
7261 (*aarch64_fac<optab><mode>): Likewise.
7262 (aarch64_addp<mode>): Likewise.
7263 (aarch64_addpdi): Likewise.
7264 (sqrt<mode>2): Likewise.
7265 (vec_load_lanesoi<mode>): Likewise.
7266 (vec_store_lanesoi<mode>): Likewise.
7267 (vec_load_lanesci<mode>): Likewise.
7268 (vec_store_lanesci<mode>): Likewise.
7269 (vec_load_lanesxi<mode>): Likewise.
7270 (vec_store_lanesxi<mode>): Likewise.
7271 (*aarch64_mov<mode>): Likewise.
7272 (aarch64_ld2<mode>_dreg): Likewise.
7273 (aarch64_ld2<mode>_dreg): Likewise.
7274 (aarch64_ld3<mode>_dreg): Likewise.
7275 (aarch64_ld3<mode>_dreg): Likewise.
7276 (aarch64_ld4<mode>_dreg): Likewise.
7277 (aarch64_ld4<mode>_dreg): Likewise.
7278 (aarch64_tbl1<mode>): Likewise.
7279 (aarch64_tbl2v16qi): Likewise.
7280 (aarch64_combinev16qi): Likewise.
7281 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
7282 (aarch64_st2<mode>_dreg): Likewise.
7283 (aarch64_st2<mode>_dreg): Likewise.
7284 (aarch64_st3<mode>_dreg): Likewise.
7285 (aarch64_st3<mode>_dreg): Likewise.
7286 (aarch64_st4<mode>_dreg): Likewise.
7287 (aarch64_st4<mode>_dreg): Likewise.
7288 (*aarch64_simd_ld1r<mode>): Likewise.
7289 (aarch64_frecpe<mode>): Likewise.
7290 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
7291 (aarch64_frecps<mode>): Likewise.
7293 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
7295 * config/arm/iterators.md (V_elem_ch): New.
7297 (VQH_type): Likewise.
7298 * config/arm/arm.md (is_neon_type): New.
7299 (conds): Use is_neon_type.
7300 (anddi3_insn): Update type attribute.
7301 (xordi3_insn): Likewise.
7302 (one_cmpldi2): Likewise.
7303 * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
7304 * config/arm/neon.md (neon_mov): Update type attribute.
7305 (*movmisalign<mode>_neon_store): Likewise.
7306 (*movmisalign<mode>_neon_load): Likewise.
7307 (vec_set<mode>_internal): Likewise.
7308 (vec_set<mode>_internal): Likewise.
7309 (vec_setv2di_internal): Likewise.
7310 (vec_extract<mode>): Likewise.
7311 (vec_extract<mode>): Likewise.
7312 (vec_extractv2di): Likewise.
7313 (*add<mode>3_neon): Likewise.
7314 (adddi3_neon): Likewise.
7315 (*sub<mode>3_neon): Likewise.
7316 (subdi3_neon): Likewise.
7317 (fma<VCVTF:mode>4): Likewise.
7318 (fma<VCVTF:mode>4_intrinsic): Likewise.
7319 (*fmsub<VCVTF:mode>4): Likewise.
7320 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
7321 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
7322 (ior<mode>3): Likewise.
7323 (and<mode>3): Likewise.
7324 (orn<mode>3_neon): Likewise.
7325 (orndi3_neon): Likewise.
7326 (bic<mode>3_neon): Likewise.
7327 (bicdi3_neon): Likewise.
7328 (xor<mode>3): Likewise.
7329 (one_cmpl<mode>2): Likewise.
7330 (abs<mode>2): Likewise.
7331 (neg<mode>2): Likewise.
7332 (negdi2_neon): Likewise.
7333 (*umin<mode>3_neon): Likewise.
7334 (*umax<mode>3_neon): Likewise.
7335 (*smin<mode>3_neon): Likewise.
7336 (*smax<mode>3_neon): Likewise.
7337 (vashl<mode>3): Likewise.
7338 (vashr<mode>3_imm): Likewise.
7339 (vlshr<mode>3_imm): Likewise.
7340 (ashl<mode>3_signed): Likewise.
7341 (ashl<mode>3_unsigned): Likewise.
7342 (neon_load_count): Likewise.
7343 (ashldi3_neon_noclobber): Likewise.
7344 (ashldi3_neon): Likewise.
7345 (signed_shift_di3_neon): Likewise.
7346 (unsigned_shift_di3_neon): Likewise.
7347 (ashrdi3_neon_imm_noclobber): Likewise.
7348 (lshrdi3_neon_imm_noclobber): Likewise.
7349 (<shift>di3_neon): Likewise.
7350 (widen_ssum<mode>3): Likewise.
7351 (widen_usum<mode>3): Likewise.
7352 (quad_halves_<code>v4si): Likewise.
7353 (quad_halves_<code>v4sf): Likewise.
7354 (quad_halves_<code>v8hi): Likewise.
7355 (quad_halves_<code>v16qi): Likewise.
7356 (reduc_splus_v2di): Likewise.
7357 (neon_vpadd_internal<mode>): Likewise.
7358 (neon_vpsmin<mode>): Likewise.
7359 (neon_vpsmax<mode>): Likewise.
7360 (neon_vpumin<mode>): Likewise.
7361 (neon_vpumax<mode>): Likewise.
7362 (*ss_add<mode>_neon): Likewise.
7363 (*us_add<mode>_neon): Likewise.
7364 (*ss_sub<mode>_neon): Likewise.
7365 (*us_sub<mode>_neon): Likewise.
7366 (neon_vadd<mode>_unspec): Likewise.
7367 (neon_vaddl<mode>): Likewise.
7368 (neon_vaddw<mode>): Likewise.
7369 (neon_vhadd<mode>): Likewise.
7370 (neon_vqadd<mode>): Likewise.
7371 (neon_vaddhn<mode>): Likewise.
7372 (neon_vmul<mode>): Likewise.
7373 (neon_vfms<VCVTF:mode>): Likewise.
7374 (neon_vmlal<mode>): Likewise.
7375 (neon_vmls<mode>): Likewise.
7376 (neon_vmlsl<mode>): Likewise.
7377 (neon_vqdmulh<mode>): Likewise.
7378 (neon_vqdmlal<mode>): Likewise.
7379 (neon_vqdmlsl<mode>): Likewise.
7380 (neon_vmull<mode>): Likewise.
7381 (neon_vqdmull<mode>): Likewise.
7382 (neon_vsub<mode>_unspec): Likewise.
7383 (neon_vsubl<mode>): Likewise.
7384 (neon_vsubw<mode>): Likewise.
7385 (neon_vqsub<mode>): Likewise.
7386 (neon_vhsub<mode>): Likewise.
7387 (neon_vsubhn<mode>): Likewise.
7388 (neon_vceq<mode>): Likewise.
7389 (neon_vcge<mode>): Likewise.
7390 (neon_vcgeu<mode>): Likewise.
7391 (neon_vcgt<mode>): Likewise.
7392 (neon_vcgtu<mode>): Likewise.
7393 (neon_vcle<mode>): Likewise.
7394 (neon_vclt<mode>): Likewise.
7395 (neon_vcage<mode>): Likewise.
7396 (neon_vcagt<mode>): Likewise.
7397 (neon_vtst<mode>): Likewise.
7398 (neon_vabd<mode>): Likewise.
7399 (neon_vabdl<mode>): Likewise.
7400 (neon_vaba<mode>): Likewise.
7401 (neon_vabal<mode>): Likewise.
7402 (neon_vmax<mode>): Likewise.
7403 (neon_vmin<mode>): Likewise.
7404 (neon_vpaddl<mode>): Likewise.
7405 (neon_vpadal<mode>): Likewise.
7406 (neon_vpmax<mode>): Likewise.
7407 (neon_vpmin<mode>): Likewise.
7408 (neon_vrecps<mode>): Likewise.
7409 (neon_vrsqrts<mode>): Likewise.
7410 (neon_vqabs<mode>): Likewise.
7411 (neon_vqneg<mode>): Likewise.
7412 (neon_vcls<mode>): Likewise.
7413 (clz<mode>2): Likewise.
7414 (popcount<mode>2): Likewise.
7415 (neon_vrecpe<mode>): Likewise.
7416 (neon_vrsqrte<mode>): Likewise.
7417 (neon_vget_lane<mode>_sext_internal): Likewise.
7418 (neon_vget_lane<mode>_zext_internal): Likewise.
7419 (neon_vdup_n<mode>): Likewise.
7420 (neon_vdup_n<mode>): Likewise.
7421 (neon_vdup_nv2di): Likewise.
7422 (neon_vdup_lane<mode>_interal): Likewise.
7423 (*neon_vswp<mode>): Likewise.
7424 (neon_vcombine<mode>): Likewise.
7425 (float<mode><V_cvtto>2): Likewise.
7426 (floatuns<mode><V_cvtto>2): Likewise.
7427 (fix_trunc<mode><V_cvtto>2): Likewise.
7428 (fixuns_trunc<mode><V_cvtto>2
7429 (neon_vcvt<mode>): Likewise.
7430 (neon_vcvt<mode>): Likewise.
7431 (neon_vcvtv4sfv4hf): Likewise.
7432 (neon_vcvtv4hfv4sf): Likewise.
7433 (neon_vcvt_n<mode>): Likewise.
7434 (neon_vcvt_n<mode>): Likewise.
7435 (neon_vmovn<mode>): Likewise.
7436 (neon_vqmovn<mode>): Likewise.
7437 (neon_vqmovun<mode>): Likewise.
7438 (neon_vmovl<mode>): Likewise.
7439 (neon_vmul_lane<mode>): Likewise.
7440 (neon_vmul_lane<mode>): Likewise.
7441 (neon_vmull_lane<mode>): Likewise.
7442 (neon_vqdmull_lane<mode>): Likewise.
7443 (neon_vqdmulh_lane<mode>): Likewise.
7444 (neon_vqdmulh_lane<mode>): Likewise.
7445 (neon_vmla_lane<mode>): Likewise.
7446 (neon_vmla_lane<mode>): Likewise.
7447 (neon_vmlal_lane<mode>): Likewise.
7448 (neon_vqdmlal_lane<mode>): Likewise.
7449 (neon_vmls_lane<mode>): Likewise.
7450 (neon_vmls_lane<mode>): Likewise.
7451 (neon_vmlsl_lane<mode>): Likewise.
7452 (neon_vqdmlsl_lane<mode>): Likewise.
7453 (neon_vext<mode>): Likewise.
7454 (neon_vrev64<mode>): Likewise.
7455 (neon_vrev32<mode>): Likewise.
7456 (neon_vrev16<mode>): Likewise.
7457 (neon_vbsl<mode>_internal): Likewise.
7458 (neon_vshl<mode>): Likewise.
7459 (neon_vqshl<mode>): Likewise.
7460 (neon_vshr_n<mode>): Likewise.
7461 (neon_vshrn_n<mode>): Likewise.
7462 (neon_vqshrn_n<mode>): Likewise.
7463 (neon_vqshrun_n<mode>): Likewise.
7464 (neon_vshl_n<mode>): Likewise.
7465 (neon_vqshl_n<mode>): Likewise.
7466 (neon_vqshlu_n<mode>): Likewise.
7467 (neon_vshll_n<mode>): Likewise.
7468 (neon_vsra_n<mode>): Likewise.
7469 (neon_vsri_n<mode>): Likewise.
7470 (neon_vsli_n<mode>): Likewise.
7471 (neon_vtbl1v8qi): Likewise.
7472 (neon_vtbl2v8qi): Likewise.
7473 (neon_vtbl3v8qi): Likewise.
7474 (neon_vtbl4v8qi): Likewise.
7475 (neon_vtbl1v16qi): Likewise.
7476 (neon_vtbl2v16qi): Likewise.
7477 (neon_vcombinev16qi): Likewise.
7478 (neon_vtbx1v8qi): Likewise.
7479 (neon_vtbx2v8qi): Likewise.
7480 (neon_vtbx3v8qi): Likewise.
7481 (neon_vtbx4v8qi): Likewise.
7482 (*neon_vtrn<mode>_insn): Likewise.
7483 (*neon_vzip<mode>_insn): Likewise.
7484 (*neon_vuzp<mode>_insn): Likewise.
7485 (neon_vld1<mode>): Likewise.
7486 (neon_vld1_lane<mode>): Likewise.
7487 (neon_vld1_lane<mode>): Likewise.
7488 (neon_vld1_dup<mode>): Likewise.
7489 (neon_vld1_dup<mode>): Likewise.
7490 (neon_vld1_dupv2di): Likewise.
7491 (neon_vst1<mode>): Likewise.
7492 (neon_vst1_lane<mode>): Likewise.
7493 (neon_vst1_lane<mode>): Likewise.
7494 (neon_vld2<mode>): Likewise.
7495 (neon_vld2<mode>): Likewise.
7496 (neon_vld2_lane<mode>): Likewise.
7497 (neon_vld2_lane<mode>): Likewise.
7498 (neon_vld2_dup<mode>): Likewise.
7499 (neon_vst2<mode>): Likewise.
7500 (neon_vst2<mode>): Likewise.
7501 (neon_vst2_lane<mode>): Likewise.
7502 (neon_vst2_lane<mode>): Likewise.
7503 (neon_vld3<mode>): Likewise.
7504 (neon_vld3qa<mode>): Likewise.
7505 (neon_vld3qb<mode>): Likewise.
7506 (neon_vld3_lane<mode>): Likewise.
7507 (neon_vld3_lane<mode>): Likewise.
7508 (neon_vld3_dup<mode>): Likewise.
7509 (neon_vst3<mode>): Likewise.
7510 (neon_vst3qa<mode>): Likewise.
7511 (neon_vst3qb<mode>): Likewise.
7512 (neon_vst3_lane<mode>): Likewise.
7513 (neon_vst3_lane<mode>): Likewise.
7514 (neon_vld4<mode>): Likewise.
7515 (neon_vld4qa<mode>): Likewise.
7516 (neon_vld4qb<mode>): Likewise.
7517 (neon_vld4_lane<mode>): Likewise.
7518 (neon_vld4_lane<mode>): Likewise.
7519 (neon_vld4_dup<mode>): Likewise.
7520 (neon_vst4<mode>): Likewise.
7521 (neon_vst4qa<mode>): Likewise.
7522 (neon_vst4qb<mode>): Likewise.
7523 (neon_vst4_lane<mode>): Likewise.
7524 (neon_vst4_lane<mode>): Likewise.
7525 (neon_vec_unpack<US>_lo_<mode>): Likewise.
7526 (neon_vec_unpack<US>_hi_<mode>): Likewise.
7527 (neon_vec_<US>mult_lo_<mode>): Likewise.
7528 (neon_vec_<US>mult_hi_<mode>): Likewise.
7529 (neon_vec_<US>shiftl_<mode>): Likewise.
7530 (neon_unpack<US>_<mode>): Likewise.
7531 (neon_vec_<US>mult_<mode>): Likewise.
7532 (vec_pack_trunc_<mode>): Likewise.
7533 (neon_vec_pack_trunc_<mode>): Likewise.
7534 (neon_vabd<mode>_2): Likewise.
7535 (neon_vabd<mode>_3): Likewise.
7537 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
7539 * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
7540 (load_pair): Update type attribute.
7541 (store_pair): Update type attribute.
7542 * config/aarch64/iterators.md (q): New.
7544 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
7546 * config/arm/types.md: Add new types for Neon insns.
7548 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
7549 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7550 Sergey Lega <sergey.s.lega@intel.com>
7551 Anna Tikhonova <anna.tikhonova@intel.com>
7552 Ilya Tocar <ilya.tocar@intel.com>
7553 Andrey Turetskiy <andrey.turetskiy@intel.com>
7554 Ilya Verbin <ilya.verbin@intel.com>
7555 Kirill Yukhin <kirill.yukhin@intel.com>
7556 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7558 * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
7559 UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
7560 UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
7562 (srcp14<mode>): Ditto.
7563 (rsqrt14<mode>): Ditto.
7564 (rsqrt14<mode>): Ditto.
7565 (avx512f_vmscalef<mode>): Ditto.
7566 (avx512f_scalef<mode>): Ditto.
7567 (avx512f_getexp<mode>): Ditto.
7568 (avx512f_sgetexp<mode>): Ditto.
7569 (avx512f_fixupimm<mode>): Ditto.
7570 (avx512f_sfixupimm<mode>): Ditto.
7571 (avx512f_rndscale<mode>): Ditto.
7572 (*avx512er_exp2<mode>): Ditto.
7573 (*avx512er_rcp28<mode>): Ditto.
7574 (avx512er_rsqrt28<mode>): Ditto.
7575 (avx512f_getmant<mode>): Ditto.
7576 (avx512f_getmant<mode>): Ditto.
7577 (avx512f_rndscale<mode>): Fix formatting.
7579 2013-10-15 Martin Jambor <mjambor@suse.cz>
7581 * ipa-utils.h (ipa_edge_within_scc): Declare.
7582 * ipa-cp.c (edge_within_scc): Moved...
7583 * ipa-utils.c (ipa_edge_within_scc): ...here. Updated all callers.
7585 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
7586 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7587 Sergey Lega <sergey.s.lega@intel.com>
7588 Anna Tikhonova <anna.tikhonova@intel.com>
7589 Ilya Tocar <ilya.tocar@intel.com>
7590 Andrey Turetskiy <andrey.turetskiy@intel.com>
7591 Ilya Verbin <ilya.verbin@intel.com>
7592 Kirill Yukhin <kirill.yukhin@intel.com>
7593 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7595 * config/i386/predicates.md (const_8_to_15_operand): New.
7596 (const_16_to_31_operand): Ditto.
7597 * config/i386/sse.md (V8FI): New.
7599 (reduc_splus_v8df): Ditto.
7600 (reduc_splus_v16sf): Ditto.
7601 (avx512f_vextract<shuffletype>32x4_1): Ditto.
7602 (vec_extract_hi_<mode>): Ditto.
7603 (avx512f_vinsert<shuffletype>32x4_1): Ditto.
7604 (vec_set_lo_<mode>): Ditto.
7605 (vec_set_hi_<mode>): Ditto.
7606 (avx512f_shuf_<shuffletype>64x2_1): Ditto.
7607 (avx512f_shuf_<shuffletype>32x4_1): Ditto.
7608 (avx512f_pshufd_1): Ditto.
7609 (avx512f_broadcast<mode>): Ditto.
7610 (avx512f_broadcast<mode>): Ditto.
7611 (define_split): Split vec_extract_lo into move.
7612 (ssequartermode): Ditto.
7613 (ssedoublemode): Extened with wider modes.
7614 (vec_extract_lo_<mode>): Ditto.
7616 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
7617 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7618 Sergey Lega <sergey.s.lega@intel.com>
7619 Anna Tikhonova <anna.tikhonova@intel.com>
7620 Ilya Tocar <ilya.tocar@intel.com>
7621 Andrey Turetskiy <andrey.turetskiy@intel.com>
7622 Ilya Verbin <ilya.verbin@intel.com>
7623 Kirill Yukhin <kirill.yukhin@intel.com>
7624 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7626 * config/i386/predicates.md (register_or_constm1_operand): New.
7627 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
7628 UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
7629 UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
7630 UNSPEC_SCATTER_PREFETCH
7632 (avx512f_ucmp<mode>3): Ditto.
7633 (avx512f_vternlog<mode>): Ditto.
7634 (avx512f_align<mode>): Ditto.
7635 (<shift_insn><mode>3): Ditto.
7636 (avx512f_<rotate>v<mode>): Ditto.
7637 (avx512f_<rotate><mode>): Ditto.
7638 (avx512f_eq<mode>3): Ditto.
7639 (avx512f_eq<mode>3_1): Ditto.
7640 (avx512f_gt<mode>3): Ditto.
7641 (avx512f_testm<mode>3): Ditto.
7642 (avx512f_testnm<mode>3): Ditto.
7643 (avx512pf_gatherpf<mode>): Ditto.
7644 (*avx512pf_gatherpf<mode>_mask): Ditto.
7645 (*avx512pf_gatherpf<mode>): Ditto.
7646 (avx512pf_scatterpf<mode>): Ditto.
7647 (*avx512pf_scatterpf<mode>_mask): Ditto.
7648 (*avx512pf_scatterpf<mode>): Ditto.
7649 (avx512f_vec_dup_gpr<mode>): Ditto.
7650 (clz<mode>2): Ditto.
7651 (conflict<mode>): Ditto.
7652 (REDUC_SMINMAX_MODE): Extened with wider modes.
7653 (reduc_<code>_<mode>): Ditto.
7654 (vlshr<mode>3): Ditto.
7655 (vashl<mode>3): Ditto.
7657 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
7658 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7659 Sergey Lega <sergey.s.lega@intel.com>
7660 Anna Tikhonova <anna.tikhonova@intel.com>
7661 Ilya Tocar <ilya.tocar@intel.com>
7662 Andrey Turetskiy <andrey.turetskiy@intel.com>
7663 Ilya Verbin <ilya.verbin@intel.com>
7664 Kirill Yukhin <kirill.yukhin@intel.com>
7665 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7667 * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
7670 (avx512fmaskmode): Ditto.
7671 (bcstscalarsuff): Ditto.
7672 (avx512f_blendm<mode>): Ditto.
7673 (cmp_imm_predicate): Ditto.
7674 (avx512f_cmp<mode>3): Ditto.
7675 (avx512f_vec_dup<mode>): Ditto.
7676 (avx512f_vec_dup_mem<mode>): Ditto.
7677 (avx512f_vpermi2var<mode>3): Ditto.
7678 (avx512f_vpermt2var<mode>3): Ditto.
7679 (vec_init<mode>): Ditto.
7680 (avx512f_gathersi<mode>): Ditto.
7681 (*avx512f_gathersi<mode>): Ditto.
7682 (*avx512f_gathersi<mode>_2): Ditto.
7683 (avx512f_gatherdi<mode>): Ditto.
7684 (*avx512f_gatherdi<mode>): Ditto.
7685 (*avx512f_gatherdi<mode>_2): Ditto.
7686 (avx512f_scattersi<mode>): Ditto.
7687 (*avx512f_scattersi<mode>): Ditto.
7688 (avx512f_scatterdi<mode>): Ditto.
7689 (*avx512f_scatterdi<mode>): Ditto.
7690 (sseintprefix): Extened with wider modes.
7691 (VEC_GATHER_IDXSI): Ditto.
7692 (VEC_GATHER_IDXDI): Ditto.
7693 (VEC_GATHER_SRCDI): Ditto.
7695 2013-10-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7696 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7698 * config/arm/t-aprofile: New file.
7699 * config.gcc: Handle --with-multilib-list option.
7701 2013-10-15 Bernd Schmidt <bernds@codesourcery.com>
7703 * reload1.c (reloads_unique_chain_p): Ensure that r1 is
7706 2013-10-15 Richard Biener <rguenther@suse.de>
7708 * tree-loop-distribution.c (build_empty_rdg): Inline into
7710 (rdg_flag_vertex): Inline into single user.
7711 (rdg_flag_vertex_and_dependent): Likewise.
7712 (build_rdg_partition_for_vertex): Remove processed bitmap.
7713 (rdg_build_partitions): Simplify.
7715 2013-10-15 Richard Biener <rguenther@suse.de>
7717 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
7718 Restructure forwarding through conversions and copies to
7719 avoid performing copy-propagation the wrong way. Adjust
7720 recursion invocations.
7721 (forward_propagate_addr_expr): Add argument stating if we
7722 are recursing from a single-use.
7723 (ssa_forward_propagate_and_combine): Adjust.
7725 2013-10-14 David Malcolm <dmalcolm@redhat.com>
7727 * dumpfile.h (gcc::dump_manager): New class, to hold state
7728 relating to dumpfile management.
7729 (get_dump_file_name): Remove in favor of method of dump_manager.
7730 (dump_initialized_p): Likewise.
7731 (dump_start): Likewise.
7732 (dump_finish): Likewise.
7733 (dump_switch_p): Likewise.
7734 (dump_register): Likewise.
7735 (get_dump_file_info): Likewise.
7736 * context.c (gcc::context::context): Construct the dump_manager
7738 * context.h (gcc::context::get_dumps): New.
7739 (gcc::context::m_dumps): New.
7740 * coverage.c (coverage_init): Port to dump_manager API.
7741 * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
7742 (extra_dump_files_in_use): Likewise.
7743 (extra_dump_files_alloced): Likewise.
7744 (gcc::dump_manager::dump_manager): New.
7745 (dump_register): Convert to...
7746 (gcc::dump_manager::dump_register): ...method, replacing
7747 function-static next_dump with m_next_dump field.
7748 (get_dump_file_info): Convert to...
7749 (gcc::dump_manager::get_dump_file_info): ...method.
7750 (get_dump_file_name): Convert to...
7751 (gcc::dump_manager::get_dump_file_name): ...method.
7752 (dump_start): Convert to...
7753 (gcc::dump_manager::dump_start): ...method.
7754 (dump_finish): Convert to...
7755 (gcc::dump_manager::dump_finish): ...method.
7756 (dump_begin): Replace body with...
7757 (gcc::dump_manager::dump_begin): ...new method.
7758 (dump_phase_enabled_p): Convert to...
7759 (gcc::dump_manager::dump_phase_enabled_p): ...method.
7760 (dump_phase_enabled_p): Convert to...
7761 (gcc::dump_manager::dump_phase_enabled_p): ...method.
7762 (dump_initialized_p): Convert to...
7763 (gcc::dump_manager::dump_initialized_p): ...method.
7764 (dump_flag_name): Replace body with...
7765 (gcc::dump_manager::dump_flag_name): ...new method.
7766 (dump_enable_all): Convert to...
7767 (gcc::dump_manager::dump_enable_all): ...new method.
7768 (opt_info_enable_passes): Convert to...
7769 (gcc::dump_manager::opt_info_enable_passes): ...new method.
7770 (dump_switch_p_1): Convert to...
7771 (gcc::dump_manager::dump_switch_p_1): ...new method.
7772 (dump_switch_p): Convert to...
7773 (gcc::dump_manager::dump_switch_p): ...new method.
7774 (opt_info_switch_p): Port to dump_manager API.
7775 (enable_rtl_dump_file): Likewise.
7776 * opts-global.c (handle_common_deferred_options): Port to new
7778 * passes.c (pass_manager::finish_optimization_passes): Likewise.
7779 (pass_manager::register_one_dump_file): Likewise.
7780 (pass_manager::register_pass): Likewise.
7781 (pass_init_dump_file): Likewise.
7782 (pass_fini_dump_file): Likewise.
7783 * statistics.c (statistics_early_init): Likewise.
7785 2013-10-14 Richard Biener <rguenther@suse.de>
7787 * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
7788 iterative_hash_canonical_type, gimple_canonical_type_hash,
7789 gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
7790 gimple_register_canonical_type, print_gimple_types_stats,
7791 free_gimple_type_tables): Move to lto/lto.c
7792 (gt-gimple.h): Do not include.
7793 * gimple.h (gimple_register_canonical_type,
7794 print_gimple_types_stats, free_gimple_type_tables): Remove.
7795 * Makefile.in (GTFILES): Remove gimple.c.
7797 2013-10-14 Travis Snoozy <quandary@remstate.com>
7800 * config/msp430/msp430.c (msp430_option_override): Correct thinko
7801 scanning for msp430x targets.
7803 2013-10-14 Eric Botcazou <ebotcazou@adacore.com>
7806 * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
7807 (registers_ok_for_ldd_peep): Move around.
7808 * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
7809 * config/sparc/sparc.md (widening peepholes): Use it.
7811 2013-10-14 Richard Biener <rguenther@suse.de>
7815 * gimple.c (iterative_hash_canonical_type): Make sure to
7816 record the hash into the correct hashtable slot.
7818 2013-10-13 Eric Botcazou <ebotcazou@adacore.com>
7820 PR rtl-optimization/58662
7821 * combine.c (try_combine): Take into account death nodes on I2 when
7822 splitting a PARALLEL of two independent SETs. Fix dump message.
7824 2013-10-12 Oleg Endo <olegendo@gcc.gnu.org>
7827 * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
7828 * config.gcc (SH extra_objs): Add sh_ifcvt.o.
7829 * config/sh/t-sh (sh_treg_combine.o): New entry.
7830 * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
7831 implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
7832 (register_sh_passes): New function. Register sh_treg_combine pass.
7833 (sh_option_override): Invoke it.
7834 (sh_canonicalize_comparison): Handle op0_preserve_value.
7835 * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
7836 opportunities. Canonicalize branch condition.
7837 (nott): Allow only if pseudos can be created for non-SH2A.
7839 2013-10-12 H.J. Lu <hongjiu.lu@intel.com>
7842 * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
7843 (ix86_expand_movmem): Replace copy_addr_to_reg with
7844 ix86_copy_addr_to_reg.
7845 (ix86_expand_setmem): Likewise.
7847 2013-10-12 Alexander Monakov <amonakov@ispras.ru>
7849 * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
7850 provided by ix86_fp_compare_mode instead of CCFPUmode.
7852 2013-10-12 James Greenhalgh <james.greenhalgh@arm.com>
7854 * config/aarch64/arm_neon.h
7855 (vtbx<1,3>_<psu>8): Fix register constriants.
7857 2013-10-11 Jeff Law <law@redhat.com>
7859 PR tree-optimization/58640
7860 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
7861 threading paths that cross over two loop entry points.
7863 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7865 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
7866 handle vector float as well.
7867 (*vsx_le_perm_load_v4si): Likewise.
7868 (*vsx_le_perm_store_v2di): Likewise.
7869 (*vsx_le_perm_store_v4si): Likewise.
7871 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7873 * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
7874 directly to circumvent subtract from splat{31} workaround.
7875 * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
7877 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
7878 * config/rs6000/altivec.md (define_c_enum "unspec"): Add
7879 UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
7880 (altivec_vperm_<mode>): Convert to define_insn_and_split to
7881 separate big and little endian logic.
7882 (*altivec_vperm_<mode>_internal): New define_insn.
7883 (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
7884 separate big and little endian logic.
7885 (*altivec_vperm_<mode>_uns_internal): New define_insn.
7886 (vec_permv16qi): Add little endian logic.
7888 2013-10-11 Marc Glisse <marc.glisse@inria.fr>
7890 * doc/extend.texi (returns_nonnull): Remove arguments.
7892 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
7893 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7894 Sergey Lega <sergey.s.lega@intel.com>
7895 Anna Tikhonova <anna.tikhonova@intel.com>
7896 Ilya Tocar <ilya.tocar@intel.com>
7897 Andrey Turetskiy <andrey.turetskiy@intel.com>
7898 Ilya Verbin <ilya.verbin@intel.com>
7899 Kirill Yukhin <kirill.yukhin@intel.com>
7900 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7902 * config/i386/sse.md (VI48F_256_512): New.
7903 (avx2_permvar<mode>): Change to ...
7904 (<avx2_avx512f>_permvar<mode>): This.
7906 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
7907 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7908 Sergey Lega <sergey.s.lega@intel.com>
7909 Anna Tikhonova <anna.tikhonova@intel.com>
7910 Ilya Tocar <ilya.tocar@intel.com>
7911 Andrey Turetskiy <andrey.turetskiy@intel.com>
7912 Ilya Verbin <ilya.verbin@intel.com>
7913 Kirill Yukhin <kirill.yukhin@intel.com>
7914 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7916 * config/i386/i386.c (bdesc_args): Change corresponding pattern for
7917 __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
7918 * config/i386/sse.md (VI4_AVX): New.
7919 (sf2simodelower): Ditto.
7920 (sse2_cvtps2dq): Change to ...
7921 (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
7923 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
7924 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7925 Sergey Lega <sergey.s.lega@intel.com>
7926 Anna Tikhonova <anna.tikhonova@intel.com>
7927 Ilya Tocar <ilya.tocar@intel.com>
7928 Andrey Turetskiy <andrey.turetskiy@intel.com>
7929 Ilya Verbin <ilya.verbin@intel.com>
7930 Kirill Yukhin <kirill.yukhin@intel.com>
7931 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7933 * config/i386/sse.md (V_512): New.
7935 (vcond<V_512:mode><VF_512:mode>): Ditto.
7936 (vcond<V_512:mode><VI_512:mode>): Ditto.
7937 (vcondu<V_512:mode><VI_512:mode>): Ditto.
7939 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
7940 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7941 Sergey Lega <sergey.s.lega@intel.com>
7942 Anna Tikhonova <anna.tikhonova@intel.com>
7943 Ilya Tocar <ilya.tocar@intel.com>
7944 Andrey Turetskiy <andrey.turetskiy@intel.com>
7945 Ilya Verbin <ilya.verbin@intel.com>
7946 Kirill Yukhin <kirill.yukhin@intel.com>
7947 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7949 * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
7950 * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
7952 (fma<mode>4): Removed condition.
7953 (fms<mode>4): Ditto.
7954 (fnma<mode>4): Ditto.
7955 (fnms<mode>4): Ditto.
7956 (fma4i_fmadd_<mode>): Ditto.
7957 (*fma_fmadd_<mode>): Ditto.
7958 (*fma_fmsub_<mode>): Ditto.
7959 (*fma_fnmadd_<mode>): Ditto.
7960 (*fma_fnmsub_<mode>): Ditto.
7961 (fmaddsub_<mode>): Allow for TARGET_AVX512F.
7962 (*fma_fmaddsub_<mode>): Ditto.
7963 (*fma_fmsubadd_<mode>): Ditto.
7964 (*fmai_fmadd_<mode>): Ditto.
7965 (*fmai_fmsub_<mode>): Ditto.
7966 (*fmai_fnmadd_<mode>): Ditto.
7967 (*fmai_fnmsub_<mode>): Ditto.
7969 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
7970 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7971 Sergey Lega <sergey.s.lega@intel.com>
7972 Anna Tikhonova <anna.tikhonova@intel.com>
7973 Ilya Tocar <ilya.tocar@intel.com>
7974 Andrey Turetskiy <andrey.turetskiy@intel.com>
7975 Ilya Verbin <ilya.verbin@intel.com>
7976 Kirill Yukhin <kirill.yukhin@intel.com>
7977 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7979 * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
7980 (VI124_256): Changed to ...
7981 (VI124_256_48_512): This.
7982 (ssepackmode): Extended with wider modes.
7983 (<code><mode>3): Changed iterator.
7984 (*avx2_<code><mode>3): Ditto.
7985 (vec_pack_trunc_<mode>): Ditto.
7987 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
7988 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7989 Sergey Lega <sergey.s.lega@intel.com>
7990 Anna Tikhonova <anna.tikhonova@intel.com>
7991 Ilya Tocar <ilya.tocar@intel.com>
7992 Andrey Turetskiy <andrey.turetskiy@intel.com>
7993 Ilya Verbin <ilya.verbin@intel.com>
7994 Kirill Yukhin <kirill.yukhin@intel.com>
7995 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7997 * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
7998 (VI8F_256_512): Ditto.
7999 (abs<mode>2): Changed iterator.
8000 (avx2_perm<mode>): Changed to ...
8001 (<avx2_avx512f>_perm<mode>): This.
8002 (avx2_perm<mode>_1): Changed to ...
8003 (<avx2_avx512f>_perm<mode>_1): This.
8005 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
8006 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8007 Sergey Lega <sergey.s.lega@intel.com>
8008 Anna Tikhonova <anna.tikhonova@intel.com>
8009 Ilya Tocar <ilya.tocar@intel.com>
8010 Andrey Turetskiy <andrey.turetskiy@intel.com>
8011 Ilya Verbin <ilya.verbin@intel.com>
8012 Kirill Yukhin <kirill.yukhin@intel.com>
8013 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8015 * config/i386/sse.md (VI48_AVX512F): New.
8016 (VI48_AVX2): Changed to ...
8017 (VI48_AVX2_48_AVX512F): This.
8018 (avx2_ashrv<mode>): Changed to ...
8019 (<avx2_avx512f>_ashrv<mode>): This.
8020 (avx2_<shift_insn>v<mode>): Changed to ...
8021 (<avx2_avx512f>_<shift_insn>v<mode>): This.
8023 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
8024 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8025 Sergey Lega <sergey.s.lega@intel.com>
8026 Anna Tikhonova <anna.tikhonova@intel.com>
8027 Ilya Tocar <ilya.tocar@intel.com>
8028 Andrey Turetskiy <andrey.turetskiy@intel.com>
8029 Ilya Verbin <ilya.verbin@intel.com>
8030 Kirill Yukhin <kirill.yukhin@intel.com>
8031 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8033 * config/i386/sse.md (VI4_AVX512F): New.
8034 (VI8_AVX2_AVX512F): Ditto.
8035 (mul<mode>3): Extended with wider modes.
8036 (*<sse4_1_avx2>_mul<mode>3): Ditto.
8037 (mul<mode>3): Ditto.
8038 (vec_widen_<s>mult_odd_<mode>): Ditto.
8040 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
8041 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8042 Sergey Lega <sergey.s.lega@intel.com>
8043 Anna Tikhonova <anna.tikhonova@intel.com>
8044 Ilya Tocar <ilya.tocar@intel.com>
8045 Andrey Turetskiy <andrey.turetskiy@intel.com>
8046 Ilya Verbin <ilya.verbin@intel.com>
8047 Kirill Yukhin <kirill.yukhin@intel.com>
8048 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8050 * config/i386/sse.md (VI2_AVX512F): New.
8051 (VI124_AVX512F): Ditto.
8052 (sseunpackmode): Extended with wider modes.
8053 (sseunpackfltmode): Ditto.
8054 (vec_unpacks_float_hi_<mode>): Ditto.
8055 (vec_unpacks_float_lo_<mode>): Ditto.
8056 (vec_unpacku_float_hi_<mode>): Ditto.
8057 (vec_unpacku_float_lo_<mode>): Ditto.
8058 (vec_unpacks_lo_<mode>): Ditto.
8059 (vec_unpacks_hi_<mode>): Ditto.
8060 (vec_unpacku_lo_<mode>): Ditto.
8061 (vec_unpacku_hi_<mode>): Ditto.
8063 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
8064 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8065 Sergey Lega <sergey.s.lega@intel.com>
8066 Anna Tikhonova <anna.tikhonova@intel.com>
8067 Ilya Tocar <ilya.tocar@intel.com>
8068 Andrey Turetskiy <andrey.turetskiy@intel.com>
8069 Ilya Verbin <ilya.verbin@intel.com>
8070 Kirill Yukhin <kirill.yukhin@intel.com>
8071 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8073 * config/i386/i386.md (multdiv): New.
8074 (multdiv_mnemonic): Ditto.
8075 * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
8076 (<sse>_vm<multdiv_mnemonic><mode>3): This.
8077 (<sse>_vmdiv<mode>3): Removed.
8079 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
8080 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8081 Sergey Lega <sergey.s.lega@intel.com>
8082 Anna Tikhonova <anna.tikhonova@intel.com>
8083 Ilya Tocar <ilya.tocar@intel.com>
8084 Andrey Turetskiy <andrey.turetskiy@intel.com>
8085 Ilya Verbin <ilya.verbin@intel.com>
8086 Kirill Yukhin <kirill.yukhin@intel.com>
8087 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8089 * config/i386/sse.md (V): Extended with wider modes.
8091 (ssehalfvecmode): Ditto.
8093 (ssepackfltmode): Ditto.
8094 (avx_vec_concat<mode>): Ditto.
8095 (V_256_512): New iterator.
8096 (VF2_512_256): Ditto.
8097 (si2dfmode): New attribute.
8098 (si2dfmodelower): Ditto.
8100 (concat_tg_mode): Ditto.
8101 (floatv4siv4df2): Changed to ...
8102 (float<si2dfmodelower><mode>2): This.
8103 (avx_cvtps2pd256): Changed to ...
8104 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
8105 (vec_pack_trunc_v4df): Changed to ...
8106 (vec_pack_trunc_<mode>): This.
8107 (avx_vpermil<mode>): Changed to ...
8108 (<sse2_avx_avx512f>_vpermil<mode>): This.
8109 (<fixsuffix>fix_truncv8dfv8si2): New.
8110 (vec_pack_sfix_trunc_v8df): Ditto.
8111 (avx512f_rndscale<mode>): Ditto.
8112 (avx512f_roundpd512): Ditto.
8113 (vec_pack_ufix_trunc_<mode>): Updated iterator.
8115 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
8116 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8117 Sergey Lega <sergey.s.lega@intel.com>
8118 Anna Tikhonova <anna.tikhonova@intel.com>
8119 Ilya Tocar <ilya.tocar@intel.com>
8120 Andrey Turetskiy <andrey.turetskiy@intel.com>
8121 Ilya Verbin <ilya.verbin@intel.com>
8122 Kirill Yukhin <kirill.yukhin@intel.com>
8123 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8125 * config/i386/i386.md (any_fix): New iterator.
8126 (fixsuffix): New attribute.
8127 * config/i386/sse.md (VF1): Extened with wider modes.
8131 (sseintvecmodelower): Ditto.
8132 (ssescalarmode): Ditto.
8133 (ssescalarnum): Ditto.
8135 (ssexmmmode): Ditto.
8136 (<fixsuffix>fix_truncv16sfv16si2): Ditto.
8137 (<sse>_rcp<mode>2): Change iterator.
8138 (rsqrt<mode>2): Ditto.
8139 (<sse>_rsqrt<mode>2): Ditto.
8140 (avx2_vec_dup<mode>): Ditto.
8141 (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
8142 (round<mode>2_sfix): Ditto.
8143 (avx2_pbroadcast<mode>): Ditto.
8144 (*andnot<mode>3): Handle XI mode.
8145 (*<code><mode>3): Ditto.
8146 (AVXTOSSEMODE): Removed.
8147 (avx_vpermil<mode>): Changed to ...
8148 (<sse2_avx_avx512f>_vpermil<mode>): This.
8150 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
8151 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8152 Sergey Lega <sergey.s.lega@intel.com>
8153 Anna Tikhonova <anna.tikhonova@intel.com>
8154 Ilya Tocar <ilya.tocar@intel.com>
8155 Andrey Turetskiy <andrey.turetskiy@intel.com>
8156 Ilya Verbin <ilya.verbin@intel.com>
8157 Kirill Yukhin <kirill.yukhin@intel.com>
8158 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8160 * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
8161 (<sse>_comi): Ditto.
8162 (<sse>_ucomi): Ditto.
8163 (sse_cvtss2siq_2): Ditto.
8164 (sse2_cvtsd2si): Ditto.
8165 (sse2_cvtsd2siq): Ditto.
8166 (sse2_cvttsd2si): Ditto.
8167 (sse2_cvttsd2siq): Ditto.
8168 (<shift_insn><mode>3): Ditto.
8169 (sse2_cvtsi2sdq): Update constraint and prefix.
8170 (sse_cvtsi2ss): Update prefix.
8171 (sse_cvtsi2ssq): Ditto.
8173 2013-10-11 Jakub Jelinek <jakub@redhat.com>
8175 * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
8176 ignore internal calls.
8178 2013-10-11 Richard Biener <rguenther@suse.de>
8180 * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
8181 and (ab) for SSA_NAMEs. Mark INTEGER_CSTs with (OVF) if
8182 TREE_OVERFLOW is set.
8184 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
8186 * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
8188 * gimple.c: GIMPLE statements have subcodes, not sub-codes.
8189 * gimple.h: Likewise.
8191 * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
8193 * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
8196 * doc/gimple.texi (is_gimple_omp): Move into the correct section.
8198 * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
8199 * configure: Regenerate.
8201 2013-10-11 Jakub Jelinek <jakub@redhat.com>
8203 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
8204 and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
8205 formatting fixes, use pp_colon instead of pp_character (..., ':'),
8206 similarly pp_right_paren.
8207 (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
8208 OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
8209 allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
8210 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
8212 (omp_declare_simd_clauses_equal,
8213 omp_remove_redundant_declare_simd_attrs): New functions.
8214 (attribute_value_equal): Use omp_declare_simd_clauses_equal.
8215 (walk_tree_1): Handle new OpenMP 4.0 clauses.
8216 * tree.h (OMP_LOOP_CHECK): Define.
8217 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
8218 OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
8219 (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
8220 OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
8221 OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
8222 OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
8223 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
8224 OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
8225 OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
8226 OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
8227 OMP_CLAUSE_SIMDLEN_EXPR): Define.
8228 (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
8229 (omp_remove_redundant_declare_simd_attrs): New prototype.
8230 * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
8231 GIMPLE_OMP_TEAMS): New codes.
8232 (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
8233 * omp-low.c (struct omp_context): Add cancel_label and cancellable
8235 (target_nesting_level): New variable.
8236 (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
8237 OMP_CLAUSE_DIST_SCHEDULE. Don't fallback to library implementation
8238 for collapse > 1 static schedule unless ordered.
8239 (get_ws_args_for): Add par_stmt argument. Handle combined loops.
8240 (determine_parallel_type): Adjust get_ws_args_for caller.
8241 (install_var_field): Handle mask & 4 for double indirection.
8242 (scan_sharing_clauses): Ignore shared clause on teams construct.
8243 Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
8244 (create_omp_child_function): If inside target or declare target
8245 constructs, set "omp declare target" attribute on the child function.
8246 (find_combined_for): New function.
8247 (scan_omp_parallel): Handle combined loops.
8248 (scan_omp_target, scan_omp_teams): New functions.
8249 (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
8250 restrictions and set ctx->cancellable for cancellable constructs.
8251 (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
8252 selected builtin calls. Handle GIMPLE_OMP_TASKGROUP,
8253 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
8254 (build_omp_barrier): Add lhs argument, return gimple rather than tree.
8255 (omp_clause_aligned_alignment): New function.
8256 (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
8257 (lower_rec_input_clauses): Add FD argument. Ignore shared clauses
8258 on teams constructs. Handle user defined reductions and new
8260 (lower_reduction_clauses): Don't set placeholder to address of ref
8261 if it has already the right type.
8262 (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
8263 (expand_parallel_call): Use the new non-_start suffixed builtins,
8264 handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
8265 and GOMP_parallel_end after the call.
8266 (expand_task_call): Handle OMP_CLAUSE_DEPEND.
8267 (expand_omp_for_init_counts): Handle combined loops.
8268 (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
8270 (expand_omp_for_generic): Likewise. Use GOMP_loop_end_cancel at the
8271 end of cancellable loops.
8272 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
8273 Likewise. Handle collapse > 1 loops.
8274 (expand_omp_simd): Handle combined loops.
8275 (expand_omp_for): Add inner_stmt argument, adjust callers of
8276 expand_omp_for* functions, use expand_omp_for_static*chunk even
8277 for collapse > 1 unless ordered.
8278 (expand_omp_sections): Use GOMP_sections_end_cancel at the end
8279 of cancellable sections.
8280 (expand_omp_single): Remove need_barrier variable, just rely on
8281 gimple_omp_return_nowait_p. Adjust build_omp_barrier caller.
8282 (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
8283 (expand_omp_atomic_load, expand_omp_atomic_store,
8284 expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
8285 (expand_omp_target): New function.
8286 (expand_omp): Handle combined loops. Handle GIMPLE_OMP_TASKGROUP,
8287 GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
8288 (build_omp_regions_1): Immediately close region for
8289 GF_OMP_TARGET_KIND_UPDATE.
8290 (maybe_add_implicit_barrier_cancel): New function.
8291 (lower_omp_sections): Adjust lower_rec_input_clauses caller. Handle
8293 (lower_omp_single): Likewise. Add clobber after the barrier.
8294 (lower_omp_taskgroup): New function.
8295 (lower_omp_for): Handle combined loops. Adjust
8296 lower_rec_input_clauses caller. Handle cancellation.
8297 (lower_depend_clauses): New function.
8298 (lower_omp_taskreg): Lower depend clauses. Adjust
8299 lower_rec_input_clauses caller. Add clobber after the call. Handle
8301 (lower_omp_target, lower_omp_teams): New functions.
8302 (lower_omp_1): Handle cancellation. Handle GIMPLE_OMP_TASKGROUP,
8303 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
8304 and GOMP_cancellation_point calls.
8305 (lower_omp): Fold stmts inside of target region.
8306 (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
8307 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
8308 * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
8309 (BT_FN_VOID_OMPFN_PTR_UINT,
8310 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
8311 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
8312 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
8313 (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
8314 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
8315 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
8316 BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
8317 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
8318 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
8319 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
8320 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
8321 call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
8322 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
8323 BUILT_IN_GOMP_SECTIONS_END_CANCEL. Don't handle
8324 BUILT_IN_GOMP_PARALLEL_END.
8325 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
8326 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
8327 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
8328 GF_OMP_FOR_KIND_DISTRIBUTE.
8329 (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
8330 (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
8331 (dump_gimple_omp_return): Print lhs if it has any.
8332 (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
8333 gimple_omp_atomic_seq_cst_p.
8334 (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
8335 and GIMPLE_OMP_TEAMS.
8336 * langhooks.c (lhd_omp_mappable_type): New function.
8337 * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
8338 * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
8340 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
8341 GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
8342 (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
8343 (struct gimplify_omp_ctx): Add combined_loop field.
8344 (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
8345 on stmts inside of target region.
8346 (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
8347 (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
8348 ORT_TARGET and ORT_TARGET_DATA.
8349 (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
8351 (omp_notice_threadprivate_variable): Complain about threadprivate
8352 variables in target region.
8353 (omp_notice_variable): Complain about vars with non-mappable type
8354 in target region. Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
8355 (omp_check_private): Ignore ORT_TARGET* regions.
8356 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
8357 gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
8358 (find_combined_omp_for): New function.
8359 (gimplify_omp_for): Handle gimplification of combined loops.
8360 (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
8362 (gimplify_omp_target_update): New function.
8363 (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
8364 (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
8365 OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
8366 (gimplify_body): If fndecl has "omp declare target" attribute, add
8367 implicit ORT_TARGET context around it.
8368 * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
8369 OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
8370 * tree-nested.c (convert_nonlocal_reference_stmt,
8371 convert_local_reference_stmt, convert_gimple_call): Handle
8372 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
8373 * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
8374 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
8375 instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
8376 (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
8377 BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
8378 BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
8379 BUILT_IN_GOMP_LOOP_END_CANCEL,
8380 BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
8381 BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
8382 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
8383 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
8384 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
8385 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
8386 BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
8387 BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
8388 (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
8389 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
8390 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
8391 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
8392 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
8393 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
8394 * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
8395 Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
8396 * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
8397 gimple_build_omp_teams): New functions.
8398 (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
8399 GIMPLE_OMP_TASKGROUP. Walk optional lhs on GIMPLE_OMP_RETURN.
8400 (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
8401 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
8402 * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
8403 GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
8404 GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
8405 GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
8406 GF_OMP_ATOMIC_SEQ_CST): New.
8407 (gimple_build_omp_taskgroup, gimple_build_omp_target,
8408 gimple_build_omp_teams): New prototypes.
8409 (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
8410 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
8411 (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
8412 GIMPLE_OMP_SINGLE as end of range.
8413 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
8414 gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
8415 gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
8416 gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
8417 gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
8418 gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
8419 gimple_omp_target_kind, gimple_omp_target_set_kind,
8420 gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
8421 gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
8422 gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
8423 gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
8424 gimple_omp_teams_set_clauses): New inlines.
8425 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
8426 and GIMPLE_OMP_TASKGROUP.
8427 * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
8428 (enum omp_clause_depend_kind, enum omp_clause_map_kind,
8429 enum omp_clause_proc_bind_kind): New.
8430 (union omp_clause_subcode): Add depend_kind, map_kind and
8431 proc_bind_kind fields.
8432 * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
8433 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
8434 * langhooks-def.h (lhd_omp_mappable_type): New prototype.
8435 (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
8436 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
8438 2013-10-10 Teresa Johnson <tejohnson@google.com>
8440 * predict.c (tree_estimate_probability): Add new parameter
8441 for estimate_bb_frequencies.
8442 (estimate_bb_frequencies): Add new parameter to force estimation.
8443 (rebuild_frequencies): When max frequency in function is small,
8444 recompute counts from frequencies.
8445 * predict.h (estimate_bb_frequencies): New parameter.
8447 2013-10-10 David Malcolm <dmalcolm@redhat.com>
8449 * ipa-inline.c (ipa_inline): Fix leak of "order" when
8450 optimizations are disabled.
8452 2013-10-10 David Malcolm <dmalcolm@redhat.com>
8454 * coverage.c (coverage_finish): Fix leak of da_file_name.
8456 2013-10-10 Jan Hubicka <jh@suse.cz>
8458 * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
8459 for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
8462 2013-10-10 Jakub Jelinek <jakub@redhat.com>
8465 * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
8466 if any labels are in FALLTHRU_BB, use a special label emitted
8467 immediately after the asm goto insn rather than label_rtx
8469 (expand_asm_stmt): Adjust caller.
8470 * cfgrtl.c (commit_one_edge_insertion): Force splitting of
8471 edge if the last insn in predecessor is a jump with single successor,
8472 but it isn't simplejump_p.
8474 2013-10-10 Richard Biener <rguenther@suse.de>
8476 PR tree-optimization/58656
8477 * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
8479 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
8481 * gimplify.c: Include expr.h and tm_p.h for targets with special
8482 va-arg padding requirements.
8484 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
8486 * tree-flow.h: Move some prototypes to gimple.h.
8487 (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
8488 * gimple.h: Relocate some prototypes from tree-flow.h
8489 * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
8491 * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
8492 (build_va_arg_indirect_ref): Relocate and make static.
8493 (std_gimplify_va_arg_expr): Relocate here.
8494 * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
8495 * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
8497 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8499 * doc/md.texi: Document the mnemonic attribute.
8501 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8504 * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
8505 (set_attr_alternative x ...) when searching for user defined
8508 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
8510 * config/aplha/alpha.c: Add gimple-ssa.h to include list.
8512 2013-10-09 Easwaran Raman <eraman@google.com>
8514 * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
8515 * cfgexpand.c (defer_stack_allocation): ...use here
8516 * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
8518 2013-10-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
8520 * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
8521 (operand_equal_for_value_replacement): New function, extracted from
8522 value_replacement and enhanced to catch more cases.
8523 (value_replacement): Use operand_equal_for_value_replacement.
8525 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
8527 * loop-doloop.c (doloop_modify, doloop_optimize): Use
8528 get_max_loop_iterations.
8530 2013-10-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8532 * config/arm/aarch-common.c (arm_early_load_addr_dep):
8533 Place comment above function.
8535 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
8537 * tree-flow.h: Remove all remaining prototypes, enums and structs that
8538 are not related to tree-cfg.c.
8539 * tree-ssa-address.h: New file. Relocate prototypes.
8540 * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
8541 (addr_for_mem_ref): New. Combine call to get_address_description and
8542 return addr_for_mem_ref.
8543 * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
8544 * tree-ssa-live.h: Adjust prototypes.
8545 * passes.c: Include tree-ssa-live.h.
8546 * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
8547 * graphite.c (graphite_transform_loops): Make static.
8548 (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
8549 make_pass_graphite, pass_data_graphite_transforms,
8550 make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
8551 * ipa-pure-const.c (warn_function_noreturn): Make static.
8552 (execute_warn_function_noreturn, gate_warn_function_noreturn,
8553 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
8554 Relocate from tree-cfg.c
8555 * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
8557 (execute_warn_function_noreturn, gate_warn_function_noreturn,
8558 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
8559 Move to ipa-pure-const.c.
8560 (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
8561 Relocate from tree-optimize.c.
8562 * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
8563 make_pass_fixup_cfg): Move to tree-cfg.c.
8564 * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
8565 Relocate some prototypes.
8566 * tree-data-ref.h (tree_check_data_deps) Add prototype.
8567 * tree-dump.c (dump_function_to_file): Remove prototype.
8568 Add tree-flow.h to the include file.
8569 * tree-dump.h: Remove prototype.
8570 * tree-parloops.h: New File. Add prototypes.
8571 * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
8572 pass_data_parallelize_loops, make_pass_parallelize_loops): Relocate
8573 from tree-ssa-loop.c.
8574 * tree-predcom.c (run_tree_predictive_commoning,
8575 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
8576 Relocate here from tree-ssa-loop.c.
8577 * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
8578 ssa_name_values.release ().
8579 * tree-ssa-threadedge.h: New File. Relocate prototypes here.
8580 (ssa_name_values): Relocate from tree-flow.h.
8581 * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
8582 * tree-ssa-loop.c (run_tree_predictive_commoning,
8583 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
8584 graphite_transforms, gate_graphite_transforms, pass_data_graphite,
8585 make_pass_graphite, pass_data_graphite_transforms,
8586 make_pass_graphite_transforms, gate_tree_parallelize_loops,
8587 tree_parallelize_loops, pass_data_parallelize_loops,
8588 make_pass_parallelize_loops): Move to other files.
8589 * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
8591 * tree.h: Remove prototypes from tree-address.c.
8593 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
8595 * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
8596 (struct int_tree_map): Move to tree-hasher.h
8597 (SCALE, LABEL, PERCENT): Move to gimple.h
8598 * tree-flow-inline.h: Delete. Move functions to other files.
8599 (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
8600 * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
8601 (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
8602 * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
8603 inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
8604 (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
8605 * tree-hasher.h: Don't include tree-flow.h.
8606 (struct int_tree_map): Relocate from tree-flow.h.
8607 * tree-sra.c (contains_view_convert_expr_p): Relocate from
8608 tree-flow-inline.h and make static.
8609 * tree-ssa-alias.h (ranges_overlap_p): Relocate from
8611 * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
8612 tree-flow-inline.h and make static.
8613 * tree.h (is_global_var, may_be_aliased): Relocate from
8615 * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
8616 * value-prof.c: No longer include tree-flow-inline.h.
8617 * tree-switch-conversion.c: No longer include tree-flow-inline.h.
8619 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
8621 * tree-flow.h: Move some protoypes. Include new tree-ssa-loop.h.
8622 (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
8623 (enum move_pos): Move to tree-ssa-loop-im.h
8624 * cfgloop.h: Move some prototypes.
8625 (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
8626 * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
8627 * tree-ssa-loop.h: New File. Include other tree-ssa-loop-*.h files.
8628 (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
8629 (loop_containing_stmt): Relocate from tree-flow-inline.h.
8630 * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
8631 * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
8632 (enum move_pos): Relocate here.
8633 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
8635 (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
8636 (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
8637 make_pass_lim): Relocate here from tree-ssa-loop.c.
8638 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
8640 (loop_edge_to_cancel, unloop_loops): Make static.
8641 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
8642 make_pass_iv_canon): Relocate from tree-ssa-loop.c.
8643 (tree_complete_unroll, gate_tree_complete_unroll,
8644 pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
8645 (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
8646 pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
8647 * tree-ssa-loop-ivopts.c: Remove local prototypes.
8648 (stmt_invariant_in_loop_p): Remove unused function.
8649 * tree-ssa-loop-ivopts.h: New file. Add prototypes.
8650 * tree-ssa-loop-manip.h: New file. Add prototypes.
8651 * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
8652 (gcov_type_to_double_int): Move to cfgloop.h.
8653 (double_int_cmp, bound_index,
8654 estimate_numbers_of_iterations_loop): Make static.
8655 (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
8656 (max_loop_iterations): Factor out get_max_loop_iterations.
8657 (estimated_loop_iterations_int, max_stmt_executions_int): Move to
8659 * tree-ssa-loop-niter.h: New file. Add prototypes.
8660 * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
8661 gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
8662 make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
8663 * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
8664 gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
8665 make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
8666 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
8667 pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
8668 (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
8669 pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
8670 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
8671 make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
8672 pass_data_complete_unroll, make_pass_complete_unroll,
8673 tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
8674 pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
8675 tree-ssa-loop-ivcanon.c.
8676 (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
8677 pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
8678 tree-ssa-loop-prefetch.c.
8679 (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
8681 (get_lsm_tmp_name): Relocate and add suffix parameter.
8682 (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
8683 * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
8684 * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
8685 max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
8686 (get_estimated_loop_iterations): Factor out accessor from
8687 estimated_loop_iterations in tree-ssa-loop-niter.c.
8688 (get_max_loop_iterations): Factor out accessor from
8689 _max_loop_iterations in tree-ssa-niter.c.
8690 * loop-unroll.c (decide_unroll_constant_iterations,
8691 decide_unroll_runtime_iterations, decide_peel_simple,
8692 decide_unroll_stupid): Use new get_* accessors.
8694 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
8696 PR tree-optimization/20318
8697 * doc/extend.texi (returns_nonnull): New function attribute.
8698 * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
8700 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
8701 (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
8703 2013-10-09 Eric Botcazou <ebotcazou@adacore.com>
8706 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
8707 false if both components are bitfields.
8709 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
8711 * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
8712 (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
8713 (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
8714 * config/aarch64/aarch64.h
8715 (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
8716 * config/aarch64/aarch64-simd-builtins.def
8717 (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
8719 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
8721 * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
8723 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
8725 * config/aarch64/arm_neon.h (vdiv_f64): Added.
8727 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
8729 * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
8730 (vneg_f64): New intrinsic.
8731 (vneg_s8): Asm replaced with C.
8732 (vneg_s16): Likewise.
8733 (vneg_s32): Likewise.
8734 (vneg_s64): New intrinsic.
8735 (vnegq_f32): Asm replaced with C.
8736 (vnegq_f64): Likewise.
8737 (vnegq_s8): Likewise.
8738 (vnegq_s16): Likewise.
8739 (vnegq_s32): Likewise.
8740 (vnegq_s64): Likewise.
8742 2013-10-09 Renlin Li <Renlin.Li@arm.com>
8744 * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
8746 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8748 * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
8749 packed stack special handling.
8750 (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
8751 back to fixed stack slots for FPRs saved due to stdarg.
8753 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8755 * config/s390/s390.c (s390_frame_info): Restructure function.
8757 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8759 * config/s390/s390.c (struct s390_frame_layout): New field
8761 (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
8762 (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
8763 regs_ever_clobbered to char*.
8764 (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
8765 of cfun->has_nonlocal_label. Ignore frame related restore INSNs.
8766 (s390_register_info): Enable FPR save slots. Move/Copy some
8767 functionality into ...
8768 (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
8769 (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
8771 (s390_frame_info): Do gpr slot allocation here now. stdarg does
8772 not imply a stack frame.
8773 (s390_init_frame_layout): Remove variable clobbered_regs.
8774 (s390_update_register_info): Remove function.
8775 (s390_hard_regno_rename_ok): Call-saved regs without a save slot
8776 cannot be used for register renaming.
8777 (s390_hard_regno_scratch_ok): New function.
8778 (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
8779 (s390_initial_elimination_offset): Change offset calculation of
8780 the return address pointer.
8781 (save_gprs): Deal with only r6 being saved from the call-saved regs.
8782 (restore_gprs): Set frame related flag.
8783 (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
8784 (s390_emit_prologue): Call s390_register_info instead of
8785 s390_update_frame_layout. Call s390_save_gprs_to_fprs.
8786 (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
8787 (s390_optimize_prologue): Call s390_optimize_register_info.
8788 Try to remove also FPR slot save/restore INSNs. Remove frame
8789 related flags from restore INSNs.
8791 2013-10-08 DJ Delorie <dj@redhat.com>
8793 * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
8796 * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
8797 avoid conflict with the MI use of %c.
8798 * config/rl78/rl78-real.md: change %c to %C throughout.
8799 * config/rl78/rl78-virt.md: Likewise.
8801 2013-10-08 Jan Hubicka <jh@suse.cz>
8803 * config/i386/i386.c (ix86_option_override_internal): Switch
8804 to SSE math for -ffast-math when target ISA supports SSE2.
8806 2013-10-08 Andrew MacLeod <amacleod@redhat.com>
8808 * tree-flow.h: Remove some prototypes.
8809 * tree.h: Remove some protypes, add a couple.
8810 * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
8811 using_eh_for_cleanups_p): Add interface routines for front ends.
8812 * tree-eh.h: New file. Add protoptyes.
8813 * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
8814 (add_stmt_to_eh_lp_fn): Make static.
8815 (lower_try_finally): Use new using_eh_for_cleanups_p.
8816 * emit-rtl.c: Include tree-eh.h.
8817 * gimple.h: Include tree-eh.h.
8819 2013-10-08 Marc Glisse <marc.glisse@inria.fr>
8821 PR tree-optimization/58480
8822 * tree-vrp.c (infer_nonnull_range): New function.
8823 (infer_value_range): Call infer_nonnull_range.
8825 2013-10-08 Dehao Chen <dehao@google.com>
8827 PR tree-optimization/58619
8828 * tree-inline.c (copy_phis_for_bb): Combine location data
8831 2013-10-08 Zhenqiang Chen <zhenqiang.chen@linaro.org>
8834 * config/arm/arm.c (arm_emit_ldrd_pop): Attach
8835 RTX_FRAME_RELATED_P on INSN.
8837 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8839 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
8840 (altivec_expand_vec_perm_const): Call it.
8842 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8844 * config/rs6000/vector.md (mov<mode>): Emit permuted move
8845 sequences for LE VSX loads and stores at expand time.
8846 * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
8848 * config/rs6000/rs6000.c (rs6000_const_vec): New.
8849 (rs6000_gen_le_vsx_permute): New.
8850 (rs6000_gen_le_vsx_load): New.
8851 (rs6000_gen_le_vsx_store): New.
8852 (rs6000_gen_le_vsx_move): New.
8853 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
8854 (*vsx_le_perm_load_v4si): New.
8855 (*vsx_le_perm_load_v8hi): New.
8856 (*vsx_le_perm_load_v16qi): New.
8857 (*vsx_le_perm_store_v2di): New.
8858 (*vsx_le_perm_store_v4si): New.
8859 (*vsx_le_perm_store_v8hi): New.
8860 (*vsx_le_perm_store_v16qi): New.
8861 (*vsx_xxpermdi2_le_<mode>): New.
8862 (*vsx_xxpermdi4_le_<mode>): New.
8863 (*vsx_xxpermdi8_le_V8HI): New.
8864 (*vsx_xxpermdi16_le_V16QI): New.
8865 (*vsx_lxvd2x2_le_<mode>): New.
8866 (*vsx_lxvd2x4_le_<mode>): New.
8867 (*vsx_lxvd2x8_le_V8HI): New.
8868 (*vsx_lxvd2x16_le_V16QI): New.
8869 (*vsx_stxvd2x2_le_<mode>): New.
8870 (*vsx_stxvd2x4_le_<mode>): New.
8871 (*vsx_stxvd2x8_le_V8HI): New.
8872 (*vsx_stxvd2x16_le_V16QI): New.
8874 2013-10-07 Renlin Li <Renlin.Li@arm.com>
8876 * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
8878 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8880 * config/s390/s390.c (s390_register_info): Make the call-saved FPR
8881 loop to work also for 31bit ABI.
8882 Save the stack pointer for frame_size > 0.
8884 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8886 * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
8887 ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
8888 constraint letters from expanders.
8889 ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
8890 retry count to general_operand.
8891 ("tabort"): Give operand 0 a mode.
8892 ("tabort_1"): Add mode and constraint letter for operand 0.
8893 * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
8895 2013-10-04 Jeff Law <law@redhat.com>
8897 * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
8899 * tree-ssa-threadedge.c (thread_through_normal_block): Broken
8901 (thread_across_edge): Here. Call it.
8903 2013-10-04 Cary Coutant <ccoutant@google.com>
8905 * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
8906 discarding a location list expression (or a piece of one).
8908 2013-10-03 Jan Hubicka <jh@suse.cz>
8910 * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
8911 rate of 2. Core2, Corei7 and Haswell has issue rate of 4.
8912 (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
8914 2013-10-03 Jan Hubicka <jh@suse.cz>
8916 * config/i386/i386.c (ix86_option_override_internal): Do not enable
8917 accumulate-outgoing-args when producing unwind info.
8919 2013-10-03 Wei Mi <wmi@google.com>
8921 * lra-constraints.c (insert_move_for_subreg): New function
8922 extracted from simplify_operand_subreg.
8923 (simplify_operand_subreg): Add reload for paradoxical subreg.
8925 2013-10-03 Rong Xu <xur@google.com>
8927 * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
8928 the candidate of builtin_expect such that we should fix the
8929 size/time estimation.
8930 (estimate_function_body_sizes): Do the acutally size/time fix-up
8933 2013-10-03 Rong Xu <xur@google.com>
8935 * predict.c (tree_predict_by_opcode): Get the probability
8936 for builtin_expect from param builtin_expect_probability.
8937 * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
8938 * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
8939 * doc/invoke.texi: Add documentation for builtin-expect-probability.
8941 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
8944 * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
8945 * calls.c (alloca_call_p): Use get_callee_fndecl.
8946 * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
8947 * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
8949 (vrp_visit_stmt): Remove duplicated code.
8951 2013-10-03 Michael Meissner <meissner@linux.vnet.ibm.com>
8953 * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
8954 ceildf2, btruncdf2, instead of vsx_* name.
8956 * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
8957 iterators to only do V2DF and V4SF here. Move the DF code to
8958 rs6000.md where it is combined with SF mode. Replace <VSv> with
8959 just 'v' since only vector operations are handled with these insns
8960 after moving the DF support to rs6000.md.
8961 (vsx_sub<mode>3): Likewise.
8962 (vsx_mul<mode>3): Likewise.
8963 (vsx_div<mode>3): Likewise.
8964 (vsx_fre<mode>2): Likewise.
8965 (vsx_neg<mode>2): Likewise.
8966 (vsx_abs<mode>2): Likewise.
8967 (vsx_nabs<mode>2): Likewise.
8968 (vsx_smax<mode>3): Likewise.
8969 (vsx_smin<mode>3): Likewise.
8970 (vsx_sqrt<mode>2): Likewise.
8971 (vsx_rsqrte<mode>2): Likewise.
8972 (vsx_fms<mode>4): Likewise.
8973 (vsx_nfma<mode>4): Likewise.
8974 (vsx_copysign<mode>3): Likewise.
8975 (vsx_btrunc<mode>2): Likewise.
8976 (vsx_floor<mode>2): Likewise.
8977 (vsx_ceil<mode>2): Likewise.
8978 (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
8979 (vsx_sminsf3): Likewise.
8980 (vsx_fmadf4): Likewise.
8981 (vsx_fmsdf4): Likewise.
8982 (vsx_nfmadf4): Likewise.
8983 (vsx_nfmsdf4): Likewise.
8984 (vsx_cmpdf_internal1): Likewise.
8986 * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
8987 simpler to select whether a target has SPE or traditional floating
8988 point support in iterators.
8989 (TARGET_DF_SPE): Likewise.
8990 (TARGET_SF_FPR): Likewise.
8991 (TARGET_DF_FPR): Likewise.
8992 (TARGET_SF_INSN): Macros to say whether floating point support
8993 exists for a given operation for expanders.
8994 (TARGET_DF_INSN): Likewise.
8996 * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
8997 combining of SF/DF mode operations, using both traditional and VSX
9005 (abs<mode>2): Combine SF/DF modes using traditional floating point
9006 instructions. Add support for using the upper DF registers with
9007 VSX support, and SF registers with power8-vector support. Update
9008 expanders for operations supported by both the SPE and traditional
9009 floating point units.
9010 (abs<mode>2_fpr): Likewise.
9011 (nabs<mode>2): Likewise.
9012 (nabs<mode>2_fpr): Likewise.
9013 (neg<mode>2): Likewise.
9014 (neg<mode>2_fpr): Likewise.
9015 (add<mode>3): Likewise.
9016 (add<mode>3_fpr): Likewise.
9017 (sub<mode>3): Likewise.
9018 (sub<mode>3_fpr): Likewise.
9019 (mul<mode>3): Likewise.
9020 (mul<mode>3_fpr): Likewise.
9021 (div<mode>3): Likewise.
9022 (div<mode>3_fpr): Likewise.
9023 (sqrt<mode>3): Likewise.
9024 (sqrt<mode>3_fpr): Likewise.
9025 (fre<Fs>): Likewise.
9026 (rsqrt<mode>2): Likewise.
9027 (cmp<mode>_fpr): Likewise.
9028 (smax<mode>3): Likewise.
9029 (smin<mode>3): Likewise.
9030 (smax<mode>3_vsx): Likewise.
9031 (smin<mode>3_vsx): Likewise.
9032 (negsf2): Delete SF operations that are merged with DF.
9039 (fmasf4_fpr): Likewise.
9040 (fmssf4_fpr): Likewise.
9041 (nfmasf4_fpr): Likewise.
9042 (nfmssf4_fpr): Likewise.
9043 (sqrtsf2): Likewise.
9044 (rsqrtsf_internal1): Likewise.
9045 (smaxsf3): Likewise.
9046 (sminsf3): Likewise.
9047 (cmpsf_internal1): Likewise.
9048 (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
9049 (negdf2): Delete DF operations that are merged with SF.
9051 (nabsdf2): Likewise.
9057 (rsqrtdf_internal1): Likewise.
9058 (fmadf4_fpr): Likewise.
9059 (fmsdf4_fpr): Likewise.
9060 (nfmadf4_fpr): Likewise.
9061 (nfmsdf4_fpr): Likewise.
9062 (sqrtdf2): Likewise.
9063 (smaxdf3): Likewise.
9064 (smindf3): Likewise.
9065 (cmpdf_internal1): Likewise.
9066 (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
9067 (btrunc<mode>2): Delete separate expander, and combine with the
9068 insn and add VSX instruction support. Use TARGET_<MODE>_FPR.
9069 (btrunc<mode>2_fpr): Likewise.
9070 (ceil<mode>2): Likewise.
9071 (ceil<mode>2_fpr): Likewise.
9072 (floor<mode>2): Likewise.
9073 (floor<mode>2_fpr): Likewise.
9074 (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
9075 Add support for using the upper registers with VSX and
9076 power8-vector. Move insns to be closer to the define_expands. On
9077 VSX systems, prefer the traditional form of FMA over the VSX
9078 version, since the traditional form allows the target not to
9079 overlap with the inputs.
9080 (fms<mode>4_fpr): Likewise.
9081 (nfma<mode>4_fpr): Likewise.
9082 (nfms<mode>4_fpr): Likewise.
9084 2013-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9085 Richard Earnshaw <richard.earnshaw@arm.com>
9087 * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
9088 (struct mult_cost_table): Likewise.
9089 (struct mem_cost_table): Likewise.
9090 (struct fp_cost_table): Likewise.
9091 (struct vector_cost_table): Likewise.
9092 (cpu_cost_table): Likewise.
9093 * config/arm/arm.opt (mold-rts-costs): New option.
9094 (mnew-generic-costs): Likewise.
9095 * config/arm/arm.c (generic_extra_costs): New table.
9096 (cortexa15_extra_costs): Likewise.
9097 (arm_slowmul_tune): Use NULL as new costs.
9098 (arm_fastmul_tune): Likewise.
9099 (arm_strongarm_tune): Likewise.
9100 (arm_xscale_tune): Likewise.
9101 (arm_9e_tune): Likewise.
9102 (arm_v6t2_tune): Likewise.
9103 (arm_cortex_a5_tune): Likewise.
9104 (arm_cortex_a9_tune): Likewise.
9105 (arm_v6m_tune): Likewise.
9106 (arm_fa726te_tune): Likewise.
9107 (arm_cortex_a15_tune): Use cortex15_extra_costs.
9108 (arm_cortex_tune): Use generict_extra_costs.
9109 (shifter_op_p): New function.
9110 (arm_unspec_cost): Likewise.
9111 (LIBCALL_COST): Define.
9112 (arm_new_rtx_costs): New function.
9113 (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
9114 table is available. Use old costs otherwise unless mnew-generic-costs
9116 * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
9117 (cpu_cost_table): Declare.
9119 2013-10-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
9122 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
9123 (*subs_mul_imm_<mode>)
9124 (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
9125 (*sub_<shift>_<mode>)
9126 (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
9127 Remove k constraint.
9129 2013-10-03 Ian Bolton <ian.bolton@arm.com>
9131 * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
9133 * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
9135 2013-10-02 Teresa Johnson <tejohnson@google.com>
9137 * predict.c (probably_never_executed): New function.
9138 (probably_never_executed_bb_p): Invoke probably_never_executed.
9139 (probably_never_executed_edge_p): Ditto.
9140 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
9141 Treat profile insanities conservatively.
9143 2013-10-02 John David Anglin <danglin@gcc.gnu.org>
9145 * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
9147 2013-10-02 Vladimir Makarov <vmakarov@redhat.com>
9149 * lra-constraints.c (process_alt_operand): Calculate scratch_p and
9150 use it. Use smaller increase for scratch. Don't increase reject
9151 for early clobber scratch.
9152 * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
9153 setting eliminated regs except setting fp from hfp.
9154 (lra_eliminate): Check lra_insn_recog_data on NULL.
9156 2013-10-02 Michael Meissner <meissner@linux.vnet.ibm.com>
9159 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
9160 setting -mvsx-timode by default until the underlying problem is fixed.
9161 (RS6000_CPU, power7 defaults): Likewise.
9163 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
9165 * config/x-linux (host-linux.o): Remove header dependencies.
9166 Use $(COMPILE) and $(POSTCOMPILE).
9167 * config/t-linux-android (linux-android.o): Ditto.
9169 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
9171 * Makefile.in (expmed.o-warn): Remove.
9173 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
9175 * graphite-scop-detection.c: Include tree-ssa-propagate,h.
9176 * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
9178 2013-10-02 Teresa Johnson <tejohnson@google.com>
9180 * dojump.c (do_jump_1): Divide probability between
9181 both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
9183 2013-10-02 Tom Tromey <tromey@redhat.com>
9185 * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
9187 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
9189 * tree-flow.h: Remove some prototypes.
9190 * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
9191 mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
9192 * tree-into-ssa.c (mark_virtual_operand_for_renaming,
9193 mark_virtual_phi_result_for_renaming): Relocate here.
9194 * tree-into-ssa.h: Add prototypes.
9195 * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
9196 single_pred_before_succ_order.
9197 (blocks_in_phiopt_order): Rename and move to cfganal.c.
9198 (nonfreeing_call_p) Move to gimple.c.
9199 * cfganal.c (single_pred_before_succ_order): Move and renamed from
9201 * basic-block.h (single_pred_before_succ_order): Add prototype.
9202 * gimple.c (nonfreeing_call_p): Relocate here.
9203 * gimple.h: Add prototype.
9204 * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
9205 * tree-ssa-dom.h: New file. Relocate prototypes here.
9206 * tree-ssa.h: Include tree-ssa-dom.h.
9208 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
9210 * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
9211 Use $(COMPILE) and $(POSTCOMPILE).
9213 * config/alpha/x-alpha (driver-alpha.o): Ditto.
9215 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
9217 * tree-flow.h: Remove some prototypes.
9218 * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
9219 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
9220 * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
9221 propagate_tree_value*): Move from here to...
9222 * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
9223 propagate_tree_value*): Relocate here.
9224 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
9225 * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
9226 * gimple-fold.c: Remove gimple-fold.h from include list.
9227 * tree-vrp.c: Remove gimple-fold.h from include list.
9228 * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
9229 * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
9230 * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
9231 * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
9232 * sese.c: Add tree-ssa-propagate.h to include list.
9234 2013-10-02 Richard Biener <rguenther@suse.de>
9236 * tree-loop-distribution.c: Include tree-vectorizer.h for
9238 (enum partition_kind): Remove PKIND_REDUCTION.
9239 (struct partition_s): Remove has_writes member, add reduction_p member.
9240 (partition_alloc): Adjust.
9241 (partition_builtin_p): Likewise.
9242 (partition_has_writes): Remove.
9243 (partition_reduction_p): New function.
9244 (partition_merge_into): Likewise.
9245 (generate_code_for_partition): Commonize builtin partition
9247 (rdg_cannot_recompute_vertex_p): Remove.
9248 (already_processed_vertex_p): Likewise.
9249 (rdg_flag_vertex): Do not set has_writes.
9250 (classify_partition): Adjust.
9251 (rdg_build_partitions): Do not set has_writes, treat all
9252 partitions as useful.
9253 (distribute_loop): Record number of library calls generated. Adjust.
9254 (tree_loop_distribution): Report number of loops and library
9255 calls generated as opt-info.
9257 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
9259 * tree-flow.h: Include new .h files. Move prototypes.
9260 * tree-cfgcleanup.h: New file. Add prototypes from tree-flow.h.
9261 * tree-dfa.h: New File. Add prototypes from tree-flow.h.
9262 (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
9263 * tree-pretty-print.h: Add prototypes from tree-flow.h.
9264 * tree-into-ssa.h: New File. Add prototypes from tree-flow.h.
9265 ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
9266 * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
9267 * tree.h (get_ref_base_and_extent): Move prototype out.
9268 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
9270 * gimple-low.h: New File. Add prototypes from tree-flow.h.
9271 * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
9272 * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
9273 * tree-scalar-evolution.c: Include tree.h.
9274 * sese.c: Include tree.h.
9275 * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
9276 * dwarf2out.c: Include tree-dfa.h.
9277 * tree-chrec.c: Include tree.h.
9278 * tree-data-ref.c: Include tree.h.
9280 2013-10-02 Yufeng Zhang <yufeng.zhang@arm.com>
9282 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
9285 2013-10-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9287 * config/t-sol2 (sol2-c.o): Remove header dependencies.
9288 Use $(COMPILE) and $(POSTCOMPILE).
9289 (sol2-cxx.o): Likewise.
9290 (sol2-stubs.o): Likewise.
9292 * config/x-solaris (host-solaris.o): Likewise.
9294 * config/sparc/t-sparc (sparc.o): Remove.
9295 (sparc-c.o): Remove header dependencies.
9296 Use $(COMPILE) and $(POSTCOMPILE).
9297 * config/sparc/x-sparc: Likewise.
9299 2013-10-02 Joern Rennecke <joern.rennecke@embecosm.com>
9301 * config/arc/arc-opts.h: Add 2013 to Copyright years.
9302 * config/arc/arc700.md: Likewise.
9303 * config/arc/arc-modes.def: Likewise.
9304 * config/arc/arc-simd.h: Likewise.
9305 * config/arc/t-arc-uClibc: Likewise.
9306 * config/arc/t-arc-newlib: Likewise.
9308 2013-10-02 Renlin Li <renlin.li@arm.com>
9310 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
9312 (aarch64_expand_epilogue): Likewise.
9314 2013-10-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9315 Yufeng Zhang <yufeng.zhang@arm.com>
9317 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
9319 (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
9320 'base_in' represent a conversion and legal_cast_p_1 holds; set
9321 'base_in' with the returned value from get_unwidened.
9323 2013-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9325 * config/arm/arm.c (arm_legitimize_reload_address): Explain why
9326 plus_constant is not used.
9328 2013-10-01 Wei Mi <wmi@google.com>
9330 * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
9331 * config/i386/i386.md: Add define_peephole2 to
9332 break partial reg stall for cvtss2sd/cvtsd2ss.
9334 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
9336 * config/arc/arc.c (pass_arc_ifcvt::clone):
9337 Update for ctxt_ -> m_ctxt change.
9339 2013-10-01 Jeff Law <law@redhat.com>
9341 * tree-ssa-threadupdate.c (struct redirection_data): Delete
9342 outgoing_edge and intermediate_edge fields. Instead store the path.
9343 (redirection_data::hash): Hash on the last edge's destination index.
9344 (redirection_data::equal): Check the entire thread path.
9345 (lookup_redirectio_data): Corresponding changes.
9346 (create_edge_and_update_destination_phis): Likewise.
9347 (thread_single_edge): Likewise.
9349 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
9350 Diego Novillo <dnovillo@google.com>
9352 * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
9353 (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
9354 (vld32wh_insn, vld32wl_insn): Delete commented-out old
9355 versions of these patterns.
9357 * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
9358 (__builtin_arc_aligned): Likewise.
9360 * config/arc/arc.md: Expand adc_0 comment stating the intended
9361 purpose and why it isn't ready.
9362 Replace commented out call_value_via_label_mixed with a
9363 plain comment about bl_s.
9365 * config/arc/arc.c (stdio.h): Don't include directly.
9366 (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
9367 Remove if (1) condition.
9368 (arc_encode_section_info): Fix comment.
9370 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
9372 * config/arc/arc.c (arc_conditional_register_usage):
9373 Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
9374 Also set reg_alloc_order for DMA config regs.
9376 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
9377 Jeremy Bennett <jeremy.bennett@embecosm.com>
9379 * doc/install.texi (--with-cpu): Mention ARC.
9380 (arc-*-elf32): New paragraph.
9381 (arc-linux-uclibc): Likewise.
9382 * doc/md.texi (Machine Constraints): Add ARC part.
9383 * doc/invoke.texi: (menu): Add ARC Options.
9384 (Machine Dependent Options) <ARC Options>: Add synopsis.
9385 (node ARC Options): Add.
9386 * doc/extend.texi (long_call / short_call attribute): Add ARC.
9387 (ARC Built-in Functions): New section defining
9388 generic ARC built-in functions.
9389 (ARC SIMD Built-in Functions): New section defining SIMD specific
9391 (Declaring Attributes of Functions): Extended
9392 description of short_call and long_call attributes for ARC and
9393 added index entries.
9395 2013-10-01 Saurabh Verma <saurabh.verma@codito.com>
9396 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
9397 Joern Rennecke <joern.rennecke@embecosm.com>
9398 Muhammad Khurram Riaz <khurram.riaz@arc.com>
9399 Brendan Kehoe <brendan@zen.org>
9400 Michael Eager <eager@eagercon.com>
9401 Simon Cook <simon.cook@embecosm.com>
9402 Jeremy Bennett <jeremy.bennett@embecosm.com>
9404 * config/arc, common/config/arc: New directories.
9406 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
9407 Brendan Kehoe <brendan@zen.org>
9408 Simon Cook <simon.cook@embecosm.com>
9410 * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
9412 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
9414 * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
9415 * tree-ssa-coalesce.h: New. Move prototype to here.
9416 * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
9417 * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
9418 (gimple_can_coalesce_p): Move to...
9419 * gimple.c (gimple_can_coalesce_p): Here.
9421 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
9423 * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
9424 (dump_decl_set): Move to gimple.c.
9425 * gimple.h: Don't include tree-ssa-operands.h.
9426 (dump_decl_set): Add prototype.
9427 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
9428 Move to gimple-ssa.h.
9429 (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
9430 gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
9431 gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
9432 gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
9433 * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
9435 (dump_decl_set): Relocate here.
9436 * gimple-ssa.h: New file.
9437 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
9438 Relocate from gimple.h.
9439 * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
9440 * tree-ssa-operands.c (swap_ssa_operands): Rename from
9441 swap_tree_operands and remove non-ssa path.
9442 (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
9443 * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
9445 * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
9446 vect_is_simple_reduction_1): Use swap_ssa_operands.
9447 * tree-flow.h: Move various prototypes to tree-phinodes.h.
9448 (enum need_phi_state): Move to tree-into-ssa.c.
9449 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
9450 BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
9451 (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
9452 * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
9453 link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
9454 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
9455 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
9456 num_imm_uses): Move to ssa-iterators.h.
9457 (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
9458 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
9460 (op_iter_done, op_iter_next_def, op_iter_next_tree,
9461 clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
9462 op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
9463 single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
9464 num_ssa_operands, delink_stmt_imm_use, single_phi_def,
9465 op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
9466 end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
9467 first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
9468 end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
9469 (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
9470 gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
9471 gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
9472 phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
9473 (set_phi_nodes): Move to tree-phinodes.h.
9474 * tree-ssa-operands.h (enum ssa_op_iter_type,
9475 struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
9476 ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
9477 (dump_decl_set): Remove prototype.
9478 (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
9479 * tree-phinodes.h: New file. Move some prototypes from tree-flow.h.
9480 (set_phi_nodes): Relocate from tree-flow-inline.h.
9481 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
9483 * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
9484 include list. Temporarily add gimple.h to include list.
9485 * ssa-iterators.h: New file.
9486 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
9487 BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
9488 (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
9489 FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
9490 Relocate from tree-ssa-operands.h.
9491 (delink_imm_use, link_imm_use_to_list, link_imm_use,
9492 set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
9493 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
9494 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
9495 num_imm_uses, get_use_from_ptr, get_def_from_ptr,
9496 phi_arg_index_from_use, op_iter_done, op_iter_next_def,
9497 op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
9498 op_iter_init_use, op_iter_init_def, op_iter_init_tree,
9499 single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
9500 zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
9501 single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
9502 end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
9503 link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
9504 first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
9505 Relocate from tree-flow-inline.h.
9506 * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
9508 2013-10-01 Vidya Praveen <vidyapraveen@arm.com>
9511 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
9512 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
9513 Insert '\t' to output template.
9514 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
9515 (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
9516 gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
9517 (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
9519 2013-10-01 Uros Bizjak <ubizjak@gmail.com>
9521 * doc/install.texi (Host/target specific installation notes for GCC):
9522 Put @anchor before @heading.
9523 * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
9524 Use @email for email addresses.
9526 2013-10-01 Jeff Law <law@redhat.com>
9528 * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
9529 a vec. Only delete the path if we create one without successfully
9530 registering a jump thread.
9531 * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
9533 * tree-ssa-threadupdate.c (threaded_edges): Remove. No longer used
9534 (paths): New vector of jump threading paths.
9535 (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
9536 (THREAD_PATH): New accessor macro for the entire thread path.
9537 (lookup_redirection_data): Get intermediate and final outgoing edge
9538 from the thread path.
9539 (create_edge_and_update_destination_phis): Copy the threading path.
9540 (ssa_fix_duplicate_block_edges): Get edges and block types from the
9541 jump threading path.
9542 (ssa_redirect_edges): Get edges and block types from the jump threading
9543 path. Free the path vector.
9544 (thread_block): Get edges from the jump threading path. Look at the
9545 entire path to see if we thread to a loop exit. If we cancel a jump
9546 thread request, then free the path vector.
9547 (thread_single_edge): Get edges and block types from the jump threading
9548 path. Free the path vector.
9549 (thread_through_loop_header): Get edges and block types from the jump
9550 threading path. Free the path vector.
9551 (mark_threaded_blocks): Iterate over the vector of paths and store
9552 the path on the appropriate edge. Get edges and block types from the
9553 jump threading path.
9554 (mark_threaded_blocks): Get edges and block types from the jump
9555 threading path. Free the path vector.
9556 (thread_through_all_blocks): Use the vector of paths rather than
9557 a vector of 3-edge sets.
9558 (register_jump_thread): Accept pointer to a path vector rather
9559 than the path vector itself. Store the path vector for later use.
9562 2013-10-01 Jakub Jelinek <jakub@redhat.com>
9563 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9566 * config/s390/s390.c (s390_split_branches): Modify check for table
9568 (s390_chunkify_start): Rearrange table jump insn check in order to
9569 deal with compare and branch insns correctly.
9571 2013-10-01 Kugan Vivekanandarajah <kuganv@linaro.org>
9575 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9576 * config/arm/arm.md (arm_ashldi3_1bit): define_insn into
9577 define_insn_and_split.
9578 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
9579 (shiftsi3_compare): New pattern.
9581 * config/arm/unspecs.md (UNSPEC_RRX): New.
9583 2013-10-01 Alan Modra <amodra@gmail.com>
9585 * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
9586 casing inout operands.
9588 2013-10-01 Richard Biener <rguenther@suse.de>
9590 PR tree-optimization/58553
9591 * tree-loop-distribution.c (struct partition_s): Add niter member.
9592 (classify_partition): Populate niter member for the partition
9593 and properly identify whether the relevant store happens before
9594 or after the loop exit.
9595 (generate_memset_builtin): Use niter member from the partition.
9596 (generate_memcpy_builtin): Likewise.
9598 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
9600 * vec.h (vec_prefix, vec): Prefix member names with "m_".
9601 * vec.c (vec_prefix::calculate_allocation): Update accordingly.
9603 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
9605 * basic-block.h (edge_list): Prefix member names with "m_".
9606 * context.h (context): Likewise.
9607 * domwalk.h (dom_walker): Likewise.
9608 * gengtype-state.c (s_expr_writer, state_writer): Likewise.
9609 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
9610 * hash-table.h (hash_table): Likewise.
9611 * machmode.h (bit_field_mode_iterator): Likewise.
9612 * pass_manager.h (pass_list): Likewise.
9613 * tree-into-ssa.c (mark_def_dom_walker): Likewise.
9614 * tree-pass.h (pass_data): Likewise.
9615 * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
9616 * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
9617 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
9618 * asan.c (pass_data_asan): Update accordingly.
9619 * cfganal.c (control_dependences::find_control_dependence): Likewise.
9620 (control_dependences::control_dependences): Likewise.
9621 (control_dependences::~control_dependences): Likewise.
9622 (control_dependences::~control_dependences): Likewise.
9623 (control_dependences::get_edges_dependent_on): Likewise.
9624 * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
9625 (pass_data_remove_cgraph_callee_edges::clone): Likewise.
9626 * context.c (gcc::context::context): Likewise.
9627 * cprop.c (pass_rtl_cprop::clone): Likewise.
9628 * domwalk.c (dom_walker::walk): Likewise.
9629 * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
9630 * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
9631 * mode-switching.c (pass_mode_switching::clone): Likewise.
9632 * passes.c (opt_pass::opt_pass): Likewise.
9633 (pass_manager::pass_manager): Likewise.
9634 * predict.c (pass_strip_predict_hints::clone): Likewise.
9635 * recog.c (pass_data pass_data_peephole2::clone): Likewise.
9636 (pass_split_all_insns::clone): Likewise.
9637 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
9639 (bit_field_mode_iterator::next_mode): Likewise.
9640 (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
9641 * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
9642 * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
9643 * tree-complex.c (pass_lower_complex::clone): Likewise.
9644 * tree-eh.c (pass_cleanup_eh::clone): Likewise.
9645 * tree-object-size.c (pass_object_sizes::clone): Likewise.
9646 * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
9647 * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
9648 (pass_fold_builtins::clone): Likewise.
9649 * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
9650 * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
9651 * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
9652 (pass_cd_dce::clone): Likewise.
9653 * tree-ssa-dom.c (pass_dominator::clone): Likewise.
9654 (pass_phi_only_cprop::clone): Likewise.
9655 * tree-ssa-dse.c (pass_dse::clone): Likewise.
9656 * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
9657 * tree-ssa-loop.c (pass_lim::clone): Likewise.
9658 * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
9659 * tree-ssa-pre.c (pass_fre::clone): Likewise.
9660 * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
9661 * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
9662 * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
9663 * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
9664 * tree-vrp.c (pass_vrp::clone): Likewise.
9665 * tsan.c (pass_tsan::clone): Likewise.
9667 2013-09-30 Jakub Jelinek <jakub@redhat.com>
9670 * fold-const.c (tree_unary_nonnegative_warnv_p): Use
9671 INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
9674 * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
9675 optimization, punt if sign_bit_p looked through any zero extension.
9677 2013-09-30 Teresa Johnson <tejohnson@google.com>
9679 * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
9680 Update redirected out edge count in joiner case.
9681 (ssa_redirect_edges): Common the joiner and non-joiner cases
9682 so that joiner case gets profile updates.
9684 2013-09-30 Richard Biener <rguenther@suse.de>
9686 PR tree-optimization/58554
9687 * tree-loop-distribution.c (classify_partition): Require
9688 unconditionally executed stores for memcpy and memset recognition.
9689 (tree_loop_distribution): Calculate dominance info.
9691 2013-09-30 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
9693 * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
9694 (NO_PROFILE_COUNTERS): Likewise.
9695 (PROFILE_HOOK): Likewise.
9696 (FUNCTION_PROFILER): Likewise.
9697 * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
9699 2013-09-30 Iain Sandoe <iain@codesourcery.com>
9701 * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
9702 calls and defines in TARGET_MACHO conditional.
9703 (load_macho_picbase_di): Likewise.
9704 (reload_macho_picbase): Likewise.
9705 (reload_macho_picbase_si): Likewise.
9706 (reload_macho_picbase_di): Likewise.
9707 (nonlocal_goto_receiver): Likewise.
9709 2013-09-30 Nick Clifton <nickc@redhat.com>
9711 * config/msp430/msp430.c (msp430x_names): New array. Lists MCUs
9712 that use the MSP430X ISA.
9713 (msp430_option_override): Scan -mmcu command line option for any
9714 MCU name that supports the MSP430X ISA.
9715 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
9716 -mmcu options which enable the MSP430X ISA.
9718 2013-09-30 Richard Biener <rguenther@suse.de>
9721 * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
9722 before looking for setjmp-like calls.
9724 2013-09-29 Iain Sandoe <iain@codesourcery.com>
9727 * config/darwin-protos.h (machopic_get_function_picbase): New.
9728 * config/darwin.c (machopic_get_function_picbase): New.
9729 * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
9730 label for a new func. (load_macho_picbase_di): Likewise.
9731 (reload_macho_picbase): New expand.
9732 (reload_macho_picbase_si): New insn.
9733 (reload_macho_picbase_di): New insn.
9734 (nonlocal_goto_receiver): New define and split.
9735 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
9736 (unspecv enum): Add UNSPECV_NLGR.
9738 2013-09-29 Iain Sandoe <iain@codesourcery.com>
9740 * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
9741 that altivec registers are correctly sized on Darwin.
9743 2013-09-29 Iain Sandoe <iain@codesourcery.com>
9745 * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
9746 darwin-driver.o): Use COMPILE and POSTCOMPILE.
9747 * config/x-darwin (host-darwin.o): Likewise.
9748 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
9749 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
9750 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
9752 2013-09-29 Uros Bizjak <ubizjak@gmail.com>
9754 * doc/invoke.texi: Fix usage of @tie{} command.
9756 2013-09-29 Eric Botcazou <ebotcazou@adacore.com>
9758 * config/sparc/sync.md: Add peephole for consecutive memory barriers.
9760 2013-09-28 Jan Hubicka <jh@suse.cz>
9762 * config/i386/x86-tune.def: Add documentation for each of the options;
9765 2013-09-28 Jan Hubicka <jh@suse.cz>
9767 * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
9769 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
9770 (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
9771 (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
9772 (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
9773 (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
9775 2013-09-28 Richard Sandiford <rdsandiford@googlemail.com>
9777 * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
9778 bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
9779 cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
9780 cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
9781 combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
9782 cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
9783 df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
9784 dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
9785 errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
9786 fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
9787 gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
9788 genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
9789 genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
9790 genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
9791 gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
9792 gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
9793 gimple.h, godump.c, graphite-clast-to-gimple.c,
9794 graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
9795 graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
9796 hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
9797 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
9798 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
9799 ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
9800 loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
9801 lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
9802 mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
9803 pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
9804 predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
9805 profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
9806 regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
9807 reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
9808 sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
9809 statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
9810 system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
9811 tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
9812 tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
9813 tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
9814 tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
9815 tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
9816 tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
9817 tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
9818 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
9819 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9820 tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
9821 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
9822 tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
9823 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
9824 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
9825 tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
9826 tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
9827 tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
9828 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
9829 tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
9830 tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
9831 varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
9832 whitespace before "(".
9834 2013-09-28 Sandra Loosemore <sandra@codesourcery.com>
9836 * expr.h (extract_bit_field): Remove packedp parameter.
9837 * expmed.c (extract_fixed_bit_field): Remove packedp parameter
9838 from forward declaration.
9839 (store_split_bit_field): Remove packedp arg from calls to
9840 extract_fixed_bit_field.
9841 (extract_bit_field_1): Remove packedp parameter and packedp
9842 argument from recursive calls and calls to extract_fixed_bit_field.
9843 (extract_bit_field): Remove packedp parameter and corresponding
9844 arg to extract_bit_field_1.
9845 (extract_fixed_bit_field): Remove packedp parameter. Remove code
9847 (extract_split_bit_field): Remove packedp arg from call to
9848 extract_fixed_bit_field.
9849 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
9850 (copy_blkmode_from_reg): Likewise.
9851 (copy_blkmode_to_reg): Likewise.
9852 (read_complex_part): Likewise.
9853 (store_field): Likewise.
9854 (expand_expr_real_1): Likewise.
9855 * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
9856 to extract_bit_field.
9857 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
9858 call to extract_bit_field.
9859 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
9860 call to extract_bit_field.
9861 * doc/invoke.texi (Code Gen Options): Remove mention of warnings
9862 and special packedp behavior from -fstrict-volatile-bitfields
9865 2013-09-27 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9867 * lra-eliminations.c (init_elim_table): Guard value_p.
9869 2013-09-27 Michael Meissner <meissner@linux.vnet.ibm.com>
9871 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
9872 DFmode, DImode, and SFmode in the upper VSX registers based on the
9873 -mupper-regs-{df,sf} flags. Fix wu constraint to be ALTIVEC_REGS
9874 if -mpower8-vector. Combine -mvsx-timode handling with the rest
9875 of the VSX register handling.
9877 * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
9879 (zero_extendsidi2_lfiwzx): Add support for loading into the
9880 Altivec registers with -mpower8-vector. Use wu/wv constraints to
9881 only do VSX memory options on Altivec registers.
9882 (extendsidi2_lfiwax): Likewise.
9883 (extendsfdf2_fpr): Likewise.
9884 (mov<mode>_hardfloat, SF/SD modes): Likewise.
9885 (mov<mode>_hardfloat32, DF/DD modes): Likewise.
9886 (mov<mode>_hardfloat64, DF/DD modes): Likewise.
9887 (movdi_internal64): Likewise.
9889 2013-09-27 Xinliang David Li <davidxl@google.com>
9891 * opts.c (finish_options): Adjust parameters
9892 according to vect cost model.
9893 (common_handle_option): Set dynamic vect cost
9895 targhooks.c (default_add_stmt_cost): Compute stmt cost
9897 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
9898 Use helper function.
9899 * tree-vectorizer.h (unlimited_cost_model): New function.
9900 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
9901 * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
9903 (vect_enhance_data_refs_alignment): Ditto.
9904 * flag-types.h: New enum.
9905 * common/config/i386/i386-common.c (ix86_option_init_struct):
9906 No need to initialize vect_cost_model flag.
9907 * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
9910 2013-09-27 Diego Novillo <dnovillo@google.com>
9912 * gimple.h (enum ssa_mode): Remove.
9914 2013-09-27 Paulo Matos <pmatos@broadcom.com>
9916 * cfgloop.h (number_of_loops): Fix typo in check for null.
9918 2013-09-27 Jakub Jelinek <jakub@redhat.com>
9921 * tree-cfg.c (move_sese_region_to_fn): Also move loops that
9922 are children of outermost saved_cfun's loop, and set it up to
9923 be moved to dest_cfun's outermost loop. Fix up num_nodes adjustments
9924 if loop != loop0 and SESE region contains bbs that belong to loop0.
9926 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
9928 * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
9929 (binary_scale_code_p, get_base_term, get_index_term): New functions.
9930 (set_address_segment, set_address_base, set_address_index)
9931 (set_address_disp): Accept the argument unconditionally.
9932 (baseness): Remove must_be_base_p and must_be_index_p checks.
9933 (decompose_normal_address): Classify as much as possible in the
9936 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
9938 * cse.c (count_reg_usage): Handle INT_LIST.
9939 * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
9940 * reginfo.c (reg_scan_mark_refs): Likewise.
9941 * reload1.c (eliminate_regs_1): Likewise.
9943 2013-09-27 Iain Sandoe <iain@codesourcery.com>
9946 * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
9949 2013-09-27 Richard Biener <rguenther@suse.de>
9951 PR tree-optimization/58459
9952 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
9953 restriction not propagating into loops.
9955 2013-09-26 Florian Weimer <fw@deneb.enyo.de>
9957 * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
9958 * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
9959 * doc/tree-ssa.texi (Walking use-def chains): Delete.
9961 2013-09-26 Richard Biener <rguenther@suse.de>
9963 * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
9965 2013-09-26 Richard Biener <rguenther@suse.de>
9967 * alias.h (component_uses_parent_alias_set): Rename to ...
9968 (component_uses_parent_alias_set_from): ... this.
9969 * alias.c (component_uses_parent_alias_set): Rename to ...
9970 (component_uses_parent_alias_set_from): ... this and return
9972 (reference_alias_ptr_type_1): Use the result from
9973 component_uses_parent_alias_set_from instead of stripping
9974 components one at a time.
9975 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
9977 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
9979 * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
9980 Move prototypes to...
9981 * tree-ssa-ter.h: New File. Move prototypes here.
9982 * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
9983 * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
9984 * tree-outof-ssa.c (ssa_is_replaceable_p): New. Refactor common bits
9985 from is_replaceable_p.
9986 * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
9987 (ter_is_replaceable_p): New. Use new refactored ssa_is_replaceable_p.
9988 (process_replaceable): Use ter_is_replaceable_p.
9989 (find_replaceable_in_bb): Use ter_is_replaceable_p.
9990 * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c. Use
9991 newly refactored ssa_is_replaceable_p.
9992 * cfgexpand.c: Include tree-outof-ssa.h.
9993 * ssaexpand.h: Delete.
9995 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
9997 * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
9998 (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
10000 (create_gimple_tmp): Delete.
10001 (get_expr_type, build_assign, build_type_cast): Move to...
10002 * gimple-builder.c: New File.
10003 (get_expr_type): Relocate from gimple.c.
10004 (build_assign, build_type_cast): Change to only create ssanames.
10005 * gimple.h: Move prototypes to...
10006 * gimple-builder.h: New File. Here.
10007 * tree-ssa.h: And here.
10008 * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
10009 count_uses_and_derefs): Relocate from gimple.c.
10010 (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
10011 * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
10012 * tree-ssa-math-opts (execute_cse_reciprocals): Use
10013 gimple_replace_ssa_lhs.
10014 * asan.c: Include gimple-builder.h.
10015 * Makefile.in: Add gimple-builder.o.
10017 2013-09-26 Richard Biener <rguenther@suse.de>
10019 * tree-ssa-live.c (var_map_base_init): Handle SSA names with
10020 DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
10021 (loe_visit_block): Use gcc_checking_assert.
10022 * tree-ssa-coalesce.c (create_outofssa_var_map): Use
10023 gimple_assign_ssa_name_copy_p.
10024 (gimple_can_coalesce_p): Adjust according to the var_map_base_init
10027 2013-09-26 David Edelsohn <dje.gcc@gmail.com>
10029 * config/rs6000/t-rs6000 (rs6000.o): Remove.
10030 (rs6000-c.o): Use COMPILE and POSTCOMPILE.
10032 2013-09-26 Richard Biener <rguenther@suse.de>
10034 PR tree-optimization/58539
10035 * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
10036 the fact that debug statements are not taking part in loop-closed
10039 2013-09-26 Nick Clifton <nickc@redhat.com>
10041 * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
10042 time warning message.
10043 (msp430_print_operand_raw): Delete unused letter parameter.
10044 (TARGET_PRINT_OPERAND_ADDRESS): Define.
10045 (msp430_print_operand_address): New function.
10046 (msp430_print_operand): Move address printing code from here to
10048 * config/msp430/msp430.md (movsipsi2): Add comment in generated
10050 (zero_extendpsisi2): Likewise.
10051 (extendpsisi2): New pattern.
10052 (andneghi3): New pattern.
10054 2013-09-26 Yvan Roux <yvan.roux@linaro.org>
10056 * config/aarch64/aarch64.opt (mlra): New option.
10057 * config/aarch64/aarch64.c (aarch64_lra_p): New function.
10058 (TARGET_LRA_P): Define.
10060 2013-09-26 Eric Botcazou <ebotcazou@adacore.com>
10062 * expr.c (expand_assignment): Remove obsolete comment.
10064 2013-09-25 Jeff Law <law@redhat.com>
10066 * tree-flow.h (thread_through_all_blocks): Prototype moved into
10067 tree-ssa-threadupdate.h.
10068 (register_jump_thread): Similarly.
10069 * tree-ssa-threadupdate.h: New header file.
10070 * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
10071 * tree-vrp.c: Likewise.
10072 * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
10073 (thread_around_empty_blocks): Change type of path vector argument to
10074 an edge,type pair from just an edge. Initialize both elements when
10075 appending to a jump threading path. Tweak references to elements
10077 (thread_across_edge): Similarly. Release memory for the elements
10079 * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
10080 (dump_jump_thread_path): New function broken out from
10081 register_jump_thread.
10082 (register_jump_thread): Use dump_jump_thread_path. Change type of
10083 path vector entries. Search the path for NULL edges and dump
10084 the path if one is found. Tweak the conversion of path to 3-edge
10085 form to use the block copy type information embedded in the path.
10087 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
10089 * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
10091 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
10092 Vladimir Makarov <vmakarov@redhat.com>
10094 * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
10095 from the least significant bit.
10096 (strip_address_mutations): Add bitfield operations handling.
10097 (must_be_index_p): Add shifting and rotate operations handling.
10098 (set_address_base): Use must_be_base_p predicate.
10099 (set_address_index): Use must_be_index_p predicate.
10101 2013-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
10102 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10103 Sergey Lega <sergey.s.lega@intel.com>
10104 Anna Tikhonova <anna.tikhonova@intel.com>
10105 Ilya Tocar <ilya.tocar@intel.com>
10106 Andrey Turetskiy <andrey.turetskiy@intel.com>
10107 Ilya Verbin <ilya.verbin@intel.com>
10108 Kirill Yukhin <kirill.yukhin@intel.com>
10109 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10111 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
10113 (ix86_expand_vector_move_misalign): Support new unaligned load and
10114 stores and use new names.
10115 (CODE_FOR_sse2_storedqu): Rename to ...
10116 (CODE_FOR_sse2_storedquv16qi): ... this.
10117 (CODE_FOR_sse2_loaddqu): Rename to ...
10118 (CODE_FOR_sse2_loaddquv16qi): ... this.
10119 (CODE_FOR_avx_loaddqu256): Rename to ...
10120 (CODE_FOR_avx_loaddquv32qi): ... this.
10121 (CODE_FOR_avx_storedqu256): Rename to ...
10122 (CODE_FOR_avx_storedquv32qi): ... this.
10123 * config/i386/i386.md (fpint_logic): New.
10124 * config/i386/sse.md (VMOVE): Extend for AVX512.
10128 (VI_UNALIGNED_LOADSTORE): Ditto.
10129 (sse2_avx_avx512f): Ditto.
10130 (sse2_avx2): Extend for AVX512.
10131 (sse4_1_avx2): Ditto.
10132 (avx2_avx512f): New.
10133 (sse): Extend for AVX512.
10136 (avxsizesuffix): Ditto.
10137 (sseintvecmode): Ditto.
10138 (ssePSmode): Ditto.
10139 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
10140 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
10141 (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
10142 (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
10143 (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
10144 (<sse2_avx_avx512f>_storedqu<mode): ... this.
10145 (<sse>_movnt<mode>): Replace constraint "x" with "v".
10146 (STORENT_MODE): Extend for AVX512.
10147 (*absneg<mode>2): Replace constraint "x" with "v".
10148 (*mul<mode>3): Ditto.
10149 (*ieee_smin<mode>3): Ditto.
10150 (*ieee_smax<mode>3): Ditto.
10151 (avx_cmp<mode>3): Replace VF with VF_128_256.
10152 (*<sse>_maskcmp<mode>3_comm): Ditto.
10153 (<sse>_maskcmp<mode>3): Ditto.
10154 (<sse>_andnot<mode>3): Extend for AVX512.
10155 (<code><mode>3, anylogic): Replace VF with VF_128_256.
10156 (<code><mode>3, fpint_logic): New.
10157 (*<code><mode>3): Extend for AVX512.
10158 (avx512flogicsuff): New.
10159 (avx512f_<logic><mode>): Ditto.
10160 (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
10162 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
10163 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
10164 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
10165 (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
10166 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
10167 (xop_vpermil2<mode>3): Ditto.
10168 (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
10169 (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
10170 (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
10171 (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
10173 2013-09-25 Tom Tromey <tromey@redhat.com>
10175 * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
10176 (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
10177 (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
10178 (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
10179 (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
10180 (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
10181 (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
10182 (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
10183 (GRAPHITE_HTAB_H): Remove.
10185 2013-09-25 Tom Tromey <tromey@redhat.com>
10187 * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
10189 2013-09-25 Tom Tromey <tromey@redhat.com>
10191 * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
10193 2013-09-25 Tom Tromey <tromey@redhat.com>
10195 * config/i386/t-i386 (i386.o): Remove.
10196 (i386-c.o): Use COMPILE and POSTCOMPILE.
10198 2013-09-25 Tom Tromey <tromey@redhat.com>
10200 * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
10202 2013-09-25 Tom Tromey <tromey@redhat.com>
10204 * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
10205 (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
10206 (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
10207 (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
10208 (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
10209 (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
10210 (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
10211 (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
10212 (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
10213 (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
10214 (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
10215 (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
10216 (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
10217 (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
10218 (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
10219 (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
10220 (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
10221 (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
10222 (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
10223 (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
10224 (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
10225 (tree-ssa-pre.o, tree-ssa-sccvn.o)
10226 (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
10227 (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
10228 (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
10229 (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
10230 (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
10231 (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
10232 (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
10233 (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
10234 (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
10235 (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
10236 (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
10237 (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
10238 (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
10239 (graphite-clast-to-gimple.o, graphite-dependences.o)
10240 (graphite-interchange.o, graphite-poly.o)
10241 (graphite-scop-detection.o, graphite-sese-to-poly.o)
10242 (graphite-optimize-isl.o, tree-vect-loop.o)
10243 (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
10244 (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
10245 (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
10246 (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
10247 (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
10248 (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
10249 (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
10250 (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
10251 (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
10252 (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
10253 (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
10254 (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
10255 (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
10256 (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
10257 (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
10258 (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
10259 (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
10260 (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
10261 (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
10262 (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
10263 (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
10264 (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
10265 (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
10266 (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
10267 (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
10268 (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
10269 (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
10270 (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
10271 (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
10272 (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
10273 (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
10274 (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
10275 (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
10276 (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
10277 (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
10278 (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
10279 (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
10280 (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
10281 (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
10282 (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
10283 (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
10284 (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
10285 (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
10286 (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
10287 (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
10288 (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
10289 (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
10290 (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
10291 (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
10292 (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
10293 (gcov-dump.o): Remove.
10294 (default-c.o): Use COMPILE and POSTCOMPILE.
10295 (CFLAGS-gcc.o): New variable.
10296 ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
10298 2013-09-25 Tom Tromey <tromey@redhat.com>
10300 * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
10301 (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
10302 (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
10303 (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
10304 (c-family/c-pragma.o, c-family/c-pretty-print.o)
10305 (c-family/c-semantics.o, c-family/c-ada-spec.o)
10306 (c-family/array-notation-common.o, c-family/stub-objc.o)
10307 (c-family/c-ubsan.o): Remove.
10309 2013-09-25 Tom Tromey <tromey@redhat.com>
10311 * Makefile.in (C_TREE_H): Reference c/c-tree.h.
10313 2013-09-25 Tom Tromey <tromey@redhat.com>
10315 * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
10316 to add -DENABLE_SHARED_LIBGCC.
10317 (gcc.o): Don't use subshell.
10319 2013-09-25 Tom Tromey <tromey@redhat.com>
10321 * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
10322 * configure.ac: Don't invoke AM_PROG_CC_C_O.
10323 (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
10324 * configure, config.in: Rebuild.
10326 2013-09-25 Tom Tromey <tromey@redhat.com>
10328 * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
10329 (COMPILE, POSTCOMPILE): New variables.
10330 (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
10331 (DEPFILES): New variable.
10332 Include ".Po" files.
10333 * configure.ac: Add checks for dependency checking.
10334 * configure, aclocal.m4: Regenerate.
10336 2013-09-25 Tom Tromey <tromey@redhat.com>
10338 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
10339 ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
10341 2013-09-25 Tom Tromey <tromey@redhat.com>
10343 * Makefile.in (generated_files): Add options.h,
10344 target-hooks-def.h, insn-opinit.h,
10345 common/common-target-hooks-def.h, pass-instances.def,
10346 c-family/c-target-hooks-def.h.
10348 2013-09-25 Jeff Law <law@redhat.com>
10350 * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
10351 than foo[foo.length () - 1] to access last member in a vec.
10352 * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
10354 2013-09-25 Richard Biener <rguenther@suse.de>
10356 PR middle-end/58521
10357 * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
10359 2013-09-25 Jan Hubicka <jh@suse.cz>
10361 * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
10364 2013-09-25 Marek Polacek <polacek@redhat.com>
10367 * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
10368 when determining the type name.
10370 2013-09-24 Oleg Endo <olegendo@gcc.gnu.org>
10372 * config/sh/sh.md: Fix formatting.
10374 2013-09-24 Xinliang David Li <davidxl@google.com>
10376 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
10377 max peel iterations parameter.
10378 * param.def: New parameter.
10379 * doc/invoke.texi: Document New parameter.
10381 2013-09-24 Christophe Lyon <christophe.lyon@linaro.org>
10383 * gimple-pretty-print.c: Various whitespace tweaks.
10384 * tree-core.h: Likewise.
10385 * tree-pretty-print.c: Likewise.
10386 * tree-ssa-alias.c: Likewise.
10387 * tree-ssa-copy.c: Likewise.
10388 * tree-ssanames.c: Likewise.
10389 * tree-ssanames.h: Likewise.
10390 * tree-vrp.c: Likewise.
10392 2013-09-24 Alan Modra <amodra@gmail.com>
10394 PR middle-end/57134
10395 PR middle-end/57586
10396 * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
10397 for output operands that disallow regs. Don't use EXPAND_WRITE on
10400 2013-09-24 Richard Biener <rguenther@suse.de>
10402 PR middle-end/58513
10403 * tree.c (reference_alias_ptr_type): Move ...
10404 * alias.c (reference_alias_ptr_type): ... here and implement
10405 in terms of the new reference_alias_ptr_type_1.
10406 (ref_all_alias_ptr_type_p): New helper.
10407 (get_deref_alias_set_1): Drop flag_strict_aliasing here,
10408 use ref_all_alias_ptr_type_p.
10409 (get_deref_alias_set): Add flag_strict_aliasing check here.
10410 (reference_alias_ptr_type_1): New function, split out from ...
10411 (get_alias_set): ... here.
10412 (alias_ptr_types_compatible_p): New function.
10413 * alias.h (reference_alias_ptr_type): Declare.
10414 (alias_ptr_types_compatible_p): Likewise.
10415 * tree.h (reference_alias_ptr_type): Remove.
10416 * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
10417 to compare MEM_REF alias types.
10419 2013-09-24 Richard Biener <rguenther@suse.de>
10421 * tree-vrp.c (vrp_finalize): Check for SSA name presence.
10423 2013-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
10425 * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
10426 reload helper function arrays into a single array reg_addr.
10427 (reload_fpr_gpr): Likewise.
10428 (reload_gpr_vsx): Likewise.
10429 (reload_vsx_gpr): Likewise.
10430 (struct rs6000_reg_addr): Likewise.
10431 (reg_addr): Likewise.
10432 (rs6000_debug_reg_global): Change rs6000_vector_reload,
10433 reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
10434 (rs6000_init_hard_regno_mode_ok): Likewise.
10435 (rs6000_secondary_reload_direct_move): Likewise.
10436 (rs6000_secondary_reload): Likewise.
10438 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
10439 constraints: wu, ww, and wy. Repurpose wv constraint added during
10440 power8 changes. Put wg constraint in alphabetical order.
10442 * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
10443 for future work to add ISA 2.07 VSX single precision support.
10444 (-mvsx-scalar-double): Change default from -1 to 1, update
10445 documentation comment.
10446 (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
10447 (-mupper-regs-df): New debug switch to control whether DF values
10448 can go in the traditional Altivec registers.
10449 (-mupper-regs-sf): New debug switch to control whether SF values
10450 can go in the traditional Altivec registers.
10452 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
10453 and wy constraints.
10454 (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
10455 loop variables. Rename -mvsx-scalar-memory to -mupper-regs-df.
10456 Add new constraints, wu/ww/wy. Repurpose wv constraint.
10457 (rs6000_debug_legitimate_address_p): Print if we are running
10458 before, during, or after reload.
10459 (rs6000_secondary_reload): Add a comment.
10460 (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
10462 * config/rs6000/constraints.md (wa constraint): Sort w<x>
10463 constraints. Update documentation string.
10464 (wd constraint): Likewise.
10465 (wf constraint): Likewise.
10466 (wg constraint): Likewise.
10467 (wn constraint): Likewise.
10468 (ws constraint): Likewise.
10469 (wt constraint): Likewise.
10470 (wx constraint): Likewise.
10471 (wz constraint): Likewise.
10472 (wu constraint): New constraint for ISA 2.07 SFmode scalar
10474 (ww constraint): Likewise.
10475 (wy constraint): Likewise.
10476 (wv constraint): Repurpose ISA 2.07 constraint that we did not use
10477 in the previous submissions.
10478 * doc/md.texi (PowerPC and IBM RS6000): Likewise.
10480 2013-09-23 Richard Sandiford <rdsandiford@googlemail.com>
10482 * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
10483 (REG_BR_PROB): Say that the probability is stored in an int_list.
10484 * reg-notes.def: Update commentary to mention INT_LIST.
10485 * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
10486 (INT_LIST): New rtx.
10487 * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
10488 * rtlanal.c (int_reg_note_p): New function.
10489 (alloc_reg_note): Assert that the note does not have an int argument.
10490 (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
10491 * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
10492 * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
10493 rather than an INSN_LIST. Handle INT_LIST.
10494 * ifcvt.c (cond_exec_process_insns): Take the probability as an int
10495 rather than an rtx. Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
10496 (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
10497 Manipulate them as ints rather than rtxes.
10498 * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
10499 * regmove.c (copy_src_to_dest): Likewise.
10500 * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
10502 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
10503 into the cases that need it.
10504 * config/arm/arm.c (arm_unwind_emit): Likewise.
10506 * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
10507 * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
10508 * loop-doloop.c (add_test, doloop_modify): Likewise.
10509 * loop-unswitch.c (compare_and_jump_seq): Likewise.
10510 * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
10511 * predict.c (combine_predictions_for_insn): Likewise.
10512 * print-rtl.c (print_rtx): Handle INT_LIST.
10513 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
10514 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
10515 * config/arm/arm.c (emit_unlikely_jump): Likewise.
10516 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
10517 (ix86_split_fp_branch, predict_jump): Likewise.
10518 * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
10519 * config/sh/sh.c (expand_cbranchsi4): Likewise.
10520 * config/spu/spu.c (ea_load_store_inline): Likewise.
10522 * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
10523 value of a REG_BR_PROB note.
10524 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
10525 (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
10526 * emit-rtl.c (try_split): Likewise.
10527 * predict.c (br_prob_note_reliable_p): Likewise.
10528 (invert_br_probabilities, combine_predictions_for_insn): Likewise.
10529 * reorg.c (mostly_true_jump): Likewise.
10530 * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
10531 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
10532 * config/i386/i386.c (ix86_print_operand): Likewise.
10533 * config/ia64/ia64.c (ia64_print_operand): Likewise.
10534 * config/mmix/mmix.c (mmix_print_operand): Likewise.
10535 * config/rs6000/rs6000.c (output_cbranch): Likewise.
10536 * config/s390/s390.c (s390_expand_tbegin): Likewise.
10537 * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
10538 * config/sparc/sparc.c (output_cbranch): Likewise.
10539 * config/spu/spu.c (get_branch_target): Likewise.
10540 * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
10541 * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
10543 2013-09-23 Jan Hubicka <jh@suse.cz>
10545 * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
10547 * ipa-utils.h (possible_polymorphic_call_target_p): New function.
10548 * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
10550 * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
10551 (gimple_fold_call): Dump inconsistent devirtualizations; add
10552 sanity check for type based devirtualizations.
10553 * ipa-prop.c: Include ipa-utils.h
10554 (ipa_intraprocedural_devirtualization): Add sanity check.
10555 (try_make_edge_direct_virtual_call): Likewise.
10557 2013-09-23 Eric Botcazou <ebotcazou@adacore.com>
10559 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
10560 assignment statements.
10562 2013-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
10564 * gimple-pretty-print.c (dump_ssaname_info): New function.
10565 (dump_gimple_phi): Call it.
10566 (pp_gimple_stmt_1): Likewise.
10567 * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
10568 (range_info_def): Declare.
10569 * tree-pretty-print.c (pp_double_int): New function.
10570 (dump_generic_node): Call it.
10571 * tree-pretty-print.h (pp_double_int): Declare.
10572 * tree-ssa-alias.c (dump_alias_info): Check pointer type.
10573 * tree-ssanames.h (range_info_def): New structure.
10574 (value_range_type): Move definition here.
10575 (set_range_info, value_range_type, duplicate_ssa_name_range_info):
10577 * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
10579 (set_range_info): New function.
10580 (get_range_info): Likewise.
10581 (duplicate_ssa_name_range_info): Likewise.
10582 (duplicate_ssa_name_fn): Check pointer type and call
10583 duplicate_ssa_name_range_info.
10584 * tree-ssa-copy.c (fini_copy_prop): Likewise.
10585 * tree-vrp.c (value_range_type): Remove definition, now in
10587 (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
10588 * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
10589 (SSA_NAME_RANGE_INFO): New macro.
10591 2013-09-23 Richard Biener <rguenther@suse.de>
10593 PR tree-optimization/58464
10594 * tree-ssa-pre.c (phi_trans_lookup): Remove.
10595 (phi_trans_add): Change to add conditionally on being not present.
10596 (phi_translate_1): Remove recursion detection here.
10597 (phi_translate): Pre-seed the cache with NULL to catch
10598 recursion here in a more generic way.
10599 (bitmap_find_leader): Adjust comment.
10600 (get_representative_for): Dump value-numbers.
10601 (create_expression_by_pieces): Likewise.
10602 (insert_into_preds_of_block): Likewise.
10604 2013-09-23 Christian Bruel <christian.bruel@st.com>
10607 * config/sh/sh.md (movsf_ie): Allow fpul_operand.
10608 * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
10610 2013-09-23 James Greenhalgh <james.greenhalgh@arm.com>
10613 2013-09-20 Renlin Li <renlin.li@arm.com>
10615 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
10617 (aarch64_expand_epilogue): Likewise.
10618 (aarch64_legitimize_reload_address): Likewise.
10620 2013-09-22 Eric Botcazou <ebotcazou@adacore.com>
10622 * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
10623 NULL_TREE before pushing them onto the vector. Likewise for labels.
10625 2013-09-21 Eric Botcazou <ebotcazou@adacore.com>
10627 * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
10628 comparison operators when -fno-trapping-math is in effect.
10629 * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
10630 comparison operators in TFmode and assert that unsupported operators
10632 (ia64_print_operand): Likewise.
10634 2013-09-21 Jan Hubicka <jh@suse.cz>
10636 * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
10637 (sse_typeless_stores): Enable for core
10638 (sse_load0_by_pxor): Likewise.
10639 (four_jump_limit): Disable for core.
10640 (pad_returns): Likewise.
10641 (avoid_vector_decode): Likewise.
10642 (fuse_cmp_and_branch): Enable for cores.
10643 * i386.c (x86_accumulate_outgoing_args): Disable for cores.
10645 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
10647 PR middle-end/56791
10648 * config/pa/pa.c (pa_option_override): Disable auto increment and
10649 decrement instructions until reload is completed.
10651 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
10652 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
10653 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
10655 2013-09-20 DJ Delorie <dj@redhat.com>
10656 Nick Clifton <nickc@redhat.com>
10658 * config/rl78/rl78.c: Various whitespace and comment tweaks.
10659 (need_to_save): Save bank 0 on interrupts.
10660 (characterize_address): Strip far address wrappers.
10661 (rl78_as_legitimate_address): Likewise.
10662 (transcode_memory_rtx): Likewise.
10663 (rl78_peep_movhi_p): Disable this peephole after devirt.
10664 (rl78_propogate_register_origins): Forget all origins when a
10666 * config/rl78/rl78-virt.md: Various whitespace tweaks.
10667 * config/rl78/rl78-real.md: Various whitespace tweaks. Additional
10669 * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
10670 * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
10671 * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
10673 * config/rl78/constraints.md: Various whitespace and paren tweaks.
10675 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
10677 * config/pa/pa.md: In "scc" insn patterns, change output template to
10678 handle const0_rtx in reg_or_0_operand operands.
10680 2013-09-20 Martin Husemann <martin@NetBSD.org>
10683 * config/vax/vax.c (vax_output_int_move): Use D format specifier.
10684 * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
10686 2013-09-20 Richard Biener <rguenther@suse.de>
10688 PR middle-end/58484
10689 * tree-scalar-evolution.c (struct scev_info_str): Shrink by
10690 remembering SSA name version and block index.
10691 (new_scev_info_str): Adjust.
10692 (hash_scev_info): Likewise. Also hash the block index.
10693 (eq_scev_info): Adjust.
10694 (find_var_scev_info): Likewise.
10695 (struct instantiate_cache_entry): Remove.
10696 (struct instantiate_cache_type): Use a htab to map name, block
10698 (instantiate_cache_type::~instantiate_cache_type): Adjust.
10699 (get_instantiated_value_entry): Likewise.
10700 (hash_idx_scev_info, eq_idx_scev_info): New functions.
10701 (instantiate_scev_name): Adjust.
10703 2013-09-20 Jeff Law <law@redhat.com>
10705 * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
10707 2013-09-20 Yufeng Zhang <yufeng.zhang@arm.com>
10709 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
10710 Call aarch64_simd_expand_args to update op[argc].
10712 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
10714 * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
10717 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
10719 * gengtype.c (file_rules): Added rule for *.cc files.
10720 (get_output_file_with_visibility): Give fatal message when no
10723 2013-09-20 Renlin Li <renlin.li@arm.com>
10725 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
10726 (aarch64_expand_epilogue): Likewise.
10727 (aarch64_legitimize_reload_address): Likewise.
10729 2013-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
10731 PR middle-end/57748
10732 * expr.c (expand_assignment): Remove misalignp code path.
10734 2013-09-20 Marek Polacek <polacek@redhat.com>
10737 * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
10738 TYPE_PRECISION. Add asserts.
10740 2013-09-20 Richard Biener <rguenther@suse.de>
10742 PR tree-optimization/58453
10743 * tree-loop-distribution.c (distribute_loop): Apply the cost
10744 model for -ftree-loop-distribute-patterns, too.
10746 2013-09-20 Richard Biener <rguenther@suse.de>
10748 PR middle-end/58473
10749 * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
10750 make type comparison less strict.
10752 2013-09-20 Alan Modra <amodra@gmail.com>
10754 * configure: Regenerate.
10755 * aclocal.m4: Regenerate.
10757 2013-09-20 Marek Polacek <polacek@redhat.com>
10760 * doc/extend.texi: Document that attribute used is meant to be used
10761 on variables with static storage duration.
10763 2013-09-19 Jakub Jelinek <jakub@redhat.com>
10765 PR tree-optimization/58472
10766 * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
10767 simd_lane_access set inv_p = false.
10768 * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
10769 the simduid magic VAR_DECL.
10771 2013-09-19 Jan Hubicka <jh@suse.cz>
10773 * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
10775 2013-09-17 Jeff Law <law@redhat.com>
10777 * tree-ssa-dom.c (record_temporary_equivalences): New function
10778 split out of dom_opt_dom_walker::after_dom_children.
10779 (dom_opt_dom_walker::thread_across_edge): Move common code
10780 in here from dom_opt_dom_walker::after_dom_children.
10781 (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
10783 2013-09-19 Jan Hubicka <jh@suse.cz>
10785 * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
10786 (TARGET_GENERIC): Use PROCESOR_GENERIC
10787 (enum processor_type): Unify generic32 and 64.
10788 * i386.md (cpu): Likewise.
10789 * x86-tune.def (use_leave): Enable for generic32.
10790 (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
10791 * athlon.md: Change generic64 to generic in all occurences.
10792 * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
10793 (ix86_target_macros_internal): Likewise.
10794 * driver-i386.c (host_detect_local_cpu): Likewise.
10795 * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
10797 (generic_memcpy, generic_memset, generic_cost): This one.
10798 (generic32_memcpy, generic32_memset, generic32_cost): Remove.
10799 (m_GENERIC32, m_GENERIC64): Remove.
10800 (m_GENERIC): Turn into one flag.
10801 (processor_target): Unify generic tunnings.
10802 (ix86_option_override_internal): Replace generic32/64 by generic.
10803 (ix86_issue_rate): Likewise.
10804 (ix86_adjust_cost): Likewise.
10806 2013-09-19 Jan Hubicka <jh@suse.cz>
10808 * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
10809 of speculative flag.
10811 2013-09-19 Jakub Jelinek <jakub@redhat.com>
10813 * omp-low.c (expand_omp_sections): Always pass len - 1 to
10814 GOMP_sections_start, even if !exit_reachable.
10816 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
10818 * lra-constraints.c (need_for_all_save_p): Use macro
10819 HARD_REGNO_CALL_PART_CLOBBERED.
10820 * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
10821 set up pseudo conflict hard regs.
10823 2013-09-18 Michael Meissner <meissner@linux.vnet.ibm.com>
10826 * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
10829 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
10831 PR rtl-optimization/58438
10832 * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
10833 * lra-constraints.c (undo_optional_reloads): Keep optional reloads
10834 from previous subpasses.
10836 2013-09-18 Richard Earnshaw <rearnsha@arm.com>
10838 * arm.c (arm_get_frame_offsets): Validate architecture supports
10839 LDRD/STRD before accepting the tuning preference.
10840 (arm_expand_prologue): Likewise.
10841 (arm_expand_epilogue): Likewise.
10843 2013-09-18 Richard Biener <rguenther@suse.de>
10845 PR tree-optimization/58417
10846 * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
10847 have chrecs with symbols defined in the loop as operands.
10848 (chrec_fold_multiply): Likewise.
10849 * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
10850 parameters before folding binary operations.
10851 (struct instantiate_cache_entry_hasher): Remove.
10852 (struct instantiate_cache_type): Use a pointer-map.
10853 (instantiate_cache_type::instantiate_cache_type): New function.
10854 (instantiate_cache_type::get): Likewise.
10855 (instantiate_cache_type::set): Likewise.
10856 (instantiate_cache_type::~instantiate_cache_type): Adjust.
10857 (get_instantiated_value_entry): Likewise.
10858 (global_cache): New global.
10859 (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
10860 instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
10861 instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
10862 (instantiate_scev_name): Adjust.
10863 (instantiate_scev): Construct global instead of local cache.
10864 (resolve_mixers): Likewise.
10866 2013-09-18 Daniel Morris <danielm@ecoscentric.com>
10867 Paolo Carlini <paolo.carlini@oracle.com>
10870 * doc/implement-cxx.texi: Fix references to the C++ standards.
10872 2013-09-18 Jakub Jelinek <jakub@redhat.com>
10874 * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
10875 * tree-vect-data-refs.c (vect_analyze_data_refs): For
10876 simd_lane_access drs, update also DR_ALIGNED_TO.
10878 2013-09-18 Marek Polacek <polacek@redhat.com>
10881 * doc/extend.texi: Document no_sanitize_undefined attribute.
10882 * builtins.c (fold_builtin_0): Don't sanitize function if it has the
10883 no_sanitize_undefined attribute.
10885 2013-09-18 Nick Clifton <nickc@redhat.com>
10887 * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
10888 (ASM_DECLARE_FUNCTION_NAME): Define.
10890 2013-09-17 Trevor Saunders <tsaunders@mozilla.com>
10892 * compare-elim.c (find_comparison_dom_walker): New class
10893 (find_comparisons_in_bb): Rename to
10894 find_comparison_dom_walker::before_dom_children
10895 (find_comparisons): Adjust
10896 * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
10898 (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
10899 * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
10900 (init_walk_dominator_tree): Remove declaration.
10901 (fini_walk_dominator_tree): Remove declaration.
10902 * fwprop.c (single_def_use_dom_walker): New class
10903 (single_def_use_enter_block): Convert to
10904 single_def_use_dom_walker::before_dom_children.
10905 (single_def_use_leave_block): Convert to
10906 single_def_use_dom_walker::after_dom_children.
10907 (build_single_def_use_links): Adjust.
10908 * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
10910 (find_candidates_in_block): Convert to
10911 find_candidates_dom_walker::before_dom_children.
10912 (execute_strength_reduction): Adjust.
10913 * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
10914 (sese_dom_walker): New class.
10915 (sese_dom_walker::sese_dom_walker): New constructor.
10916 (sese_dom_walker::~sese_dom_walker): New destructor.
10917 (build_sese_conditions_before): Convert to
10918 sese_dom_walker::before_dom_children.
10919 (build_sese_conditions_after): Convert to
10920 sese_dom_walker::after_dom_children.
10921 (build_poly_scop): Adjust
10922 * tree-into-ssa.c (rewrite_dom_walker): New class
10923 (rewrite_enter_block): Convert to
10924 rewrite_dom_walker::before_dom_children.
10925 (rewrite_leave_block): Convert to
10926 rewrite_dom_walker::after_dom_children.
10927 (rewrite_update_dom_walker): New class.
10928 (rewrite_update_enter_block): Convert to
10929 rewrite_update_dom_walker::before_dom_children.
10930 (rewrite_update_leave_block): Convert to
10931 rewrite_update_dom_walker::after_dom_children.
10932 (rewrite_blocks, rewrite_into_ssa): Adjust.
10933 (mark_def_dom_walker): New class.
10934 (mark_def_dom_walker::mark_def_dom_walker): New constructor.
10935 (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
10936 (mark_def_sites_blocks): Convert to
10937 mark_def_dom_walker::before_dom_children.
10938 (mark_def_site_blocks): Remove.
10939 * tree-ssa-dom.c (dom_opt_dom_walker): New class.
10940 (tree_ssa_dominator_optimize): Adjust.
10941 (dom_thread_across_edge): Convert to method
10942 dom_opt_dom_walker::thread_across_edge.
10943 (dom_opt_enter_block): Convert to member function
10944 dom_opt_dom_walker::before_dom_children.
10945 (dom_opt_leave_block): Convert to member function
10946 dom_opt_dom_walker::after_dom_children.
10947 * tree-ssa-dse.c (dse_dom_walker): New class.
10948 (dse_enter_block): Convert to member function
10949 dse_dom_walker::before_dom_children.
10950 (tree_ssa_dse): Adjust.
10951 * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
10952 (determine_invariantness_stmt): Convert to method
10953 invariantness_dom_walker::before_dom_children.
10954 (determine_invariantness): Remove
10955 (move_computations_dom_walker): New class.
10956 (move_computations_stmt): Convert to method
10957 move_computations_dom_walker::before_dom_children.
10958 (move_computations, tree_ssa_lim): Adjust.
10959 * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
10960 (nt_init_block): Convert to method
10961 notrappping_dom_walker::before_dom_children.
10962 (nt_fini_block): Convert to method
10963 method nontrapping_dom_walker::after_dom_children.
10964 (get_non_trapping): Adjust.
10965 * tree-ssa-pre.c (eliminate_dom_walker): New class.
10966 (eliminate_bb): Convert to method
10967 eliminate_dom_walker::before_dom_children.
10968 (eliminate_leave_block): Convert to method
10969 eliminate_dom_walker::after_dom_children.
10970 (eliminate): Adjust.
10971 * tree-ssa-strlen.c (strlen_dom_walker): New class.
10972 (strlen_enter_block): Convert to method
10973 strlen_dom_walker::before_dom_children.
10974 (strlen_leave_block): Convert to method
10975 method strlen_dom_walker::after_dom_children.
10976 (tree_ssa_strlen): Adjust.
10977 * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
10978 (tree_ssa_uncprop): Adjust.
10979 (uncprop_leave_block): Convert to method
10980 uncprop_dom_walker::after_dom_children.
10981 (uncprop_leave_block): Convert to method
10982 uncprop_dom_walker::before_dom_children.
10984 2013-09-18 Bin Cheng <bin.cheng@arm.com>
10986 * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
10987 branch in same basic block. Check both src and dest of the move insn.
10989 2013-09-17 Nick Clifton <nickc@redhat.com>
10991 * config/rl78/rl78-real.md (bf): New pattern.
10993 * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
10994 (rl78_print_operand): Do not put a # before a %B.
10995 * config/rl78/rl78.opt: Tweak doc strings.
10997 2013-09-17 DJ Delorie <dj@redhat.com>
10999 * config/rl78/constraints.md (Wcv): Allow up to $r31.
11000 * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
11001 (rl78_option_override): Likewise, if -mallregs.
11002 (is_virtual_register): Likewise.
11003 * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
11004 (REGNO_OK_FOR_BASE_P): Likewise.
11005 * config/rl78/rl78.opt (-mallregs): New.
11007 2013-09-17 Nick Clifton <nickc@redhat.com>
11009 * config/rl78/rl78.c (need_to_save): Change return type to bool.
11010 For interrupt functions: save all call clobbered registers if the
11011 interrupt handler is not a leaf function.
11012 (rl78_expand_prologue): Always recompute the frame information.
11013 For interrupt functions: only select bank 0 if one of the bank 0
11014 registers is going to be psuhed.
11016 2013-09-17 DJ Delorie <dj@redhat.com>
11018 * config/rl78/constraints.md: For each W* constraint, rename to C*
11019 and create a W* constraint that checks for an optional ES: prefix
11021 * config/rl78/rl78.md (UNS_ES_ADDR): New.
11022 (es_addr): New. Used to wrap far addresses.
11023 * config/rl78/rl78-protos.h (rl78_es_addr): New.
11024 (rl78_es_base): New.
11025 * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
11026 wrapped far addresses.
11027 (rl78_print_operand_1): Unwrap far addresses before processing.
11028 (rl78_lo16): Wrap far addresses in unspecs.
11029 (rl78_es_addr): New.
11030 (rl78_es_base): New.
11031 (insn_ok_now): Check for not-yet-wrapped far addresses.
11032 (transcode_memory_rtx): Properly re-wrap far addresses.
11034 2013-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
11036 * config/sparc/t-rtems: Add leon3 multilibs.
11038 2013-09-17 Cong Hou <congh@google.com>
11040 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
11041 when checking the dot production pattern. The type of rhs operand
11042 of multiply is now checked correctly.
11044 2013-09-17 Jeff Law <law@redhat.com>
11046 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
11047 edge implied equivalences into successor phis.
11048 * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
11049 here from tree-ssa-threadedge.c.
11050 (mark_threaded_blocks): When threading through a joiner, if both
11051 successors of the joiner's clone reach the same block, verify the
11052 PHI arguments are equal. If not, cancel the jump threading request.
11053 * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
11054 tree-ssa-threadupdate.c
11055 (thread_across_edge): Don't check PHI argument equality when
11056 threading through joiner block here.
11058 2013-09-17 Andrew MacLeod <amacleod@redhat.com>
11060 * tree-flow.h (ssa_undefined_value_p): Remove prototype.
11061 * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
11062 (warn_uninit, warn_uninitialized_vars,
11063 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
11064 Move to tree-ssa-uninit.c.
11065 * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
11066 (has_undefined_value_p): New. Pass dependant parts of
11067 ssa_undefined_value_p.
11068 (uninit_undefined_value_p): Use has_undefined_value_p.
11069 (warn_uninit, warn_uninitialized_vars,
11070 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
11071 Move from tree-ssa.c.
11072 * tree-ssa.h: Adjust prototypes.
11074 2013-09-17 Jan Hubicka <jh@suse.cz>
11076 PR middle-end/58332
11077 * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
11078 * ipa-inline.c (can_inline_edge_p): Do not downgrade
11079 FUNCTION_NOT_OPTIMIZED.
11080 * ipa-inline-analysis.c (compute_inline_parameters): Function
11081 not optimized is not inlinable unless it is alwaysinline.
11082 (inline_analyze_function): Force calls in not optimized
11083 function not inlinable.
11085 2013-09-17 Jan Hubicka <jh@suse.cz>
11087 PR middle-end/58329
11088 * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
11090 * ipa.c (function_and_variable_visibility): Likewise.
11091 * ipa-profile.c (ipa_profile): Likewise.
11093 2013-09-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
11096 * cgraph.c (cgraph_function_body_availability): Check for ifunc
11097 attribute, and don't inline the resolver in this case.
11099 2013-09-17 Teresa Johnson <tejohnson@google.com>
11101 * coverage.c (get_coverage_counts): Add missing newline.
11103 2013-09-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11105 PR tree-optimization/58088
11106 * fold-const.c (mask_with_trailing_zeros): New function.
11107 (fold_binary_loc): Make sure we don't recurse infinitely
11108 when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
11109 Use mask_with_trailing_zeros where appropriate.
11111 2013-09-17 Yuri Rumyantsev <ysrumyan@gmail.com>
11113 * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
11114 of 'prev' var to get better distance estimation.
11116 2013-09-17 Eric Botcazou <ebotcazou@adacore.com>
11118 * tree-inline.h (struct copy_body_data): Add transform_parameter.
11119 * tree-inline.c (is_parameter_of): New predicate.
11120 (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
11121 a parameter has been remapped.
11122 (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
11123 (optimize_inline_calls): Initialize transform_parameter.
11124 (copy_gimple_seq_and_replace_locals): Likewise.
11125 (tree_function_versioning): Likewise.
11126 (maybe_inline_call_in_expr): Likewise.
11128 2013-09-17 Nick Clifton <nickc@redhat.com>
11130 * config/msp430/msp430-protos.h: Add prototypes for new functions.
11131 * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
11132 interrupt handlers.
11133 (is_attr_func): New function.
11134 (msp430_is_interrupt_func): New function.
11135 (is_naked_func): New function.
11136 (is_reentrant_func): New function.
11137 (is_critical_func): New function.
11138 (msp430_start_function): Add annotations for function attributes.
11139 (msp430_attr): New function.
11140 (msp430_attribute_table): New.
11141 (msp430_function_section): New function.
11142 (TARGET_ASM_FUNCTION_SECTION): Define.
11143 (msp430_builtin): New enum.
11144 (msp430_init_builtins): New function.
11145 (msp430_builtin_devl): New function.
11146 (msp430_expand_builtin): New function.
11147 (TARGET_INIT_BUILTINS): Define.
11148 (TARGET_EXPAND_BUILTINS): Define.
11149 (TARGET_BUILTIN_DECL): Define.
11150 (msp430_expand_prologue): Add support for naked, interrupt,
11151 critical and reentrant functions.
11152 (msp430_expand_epilogue): Likewise.
11153 (msp430_print_operand): Handle 'O' character.
11154 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
11156 * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
11157 UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
11158 (pushm): Use a 'n' rather than an 'i' constraint.
11159 (msp_return): Add generation of the interrupt return instruction.
11160 (disable_interrupts): New pattern.
11161 (enable_interrupts): New pattern.
11162 (push_intr_state): New pattern.
11163 (pop_intr_state): New pattern.
11164 (bic_SR): New pattern.
11165 (bis_SR): New pattern.
11166 * doc/extend.texi: Document MSP430 function attributes and builtin
11169 2013-09-17 Richard Biener <rguenther@suse.de>
11171 PR tree-optimization/58432
11172 * tree-loop-distribution.c (tree_loop_distribution): Also
11173 scan PHIs for outside loop uses and seed a partition from them.
11175 2013-09-17 Bin Cheng <bin.cheng@arm.com>
11177 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
11178 (restructure_reference): Call backtrace_base_for_ref.
11180 2013-09-17 Alan Modra <amodra@gmail.com>
11183 * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
11186 2013-09-16 DJ Delorie <dj@redhat.com>
11188 * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
11189 vregs location for RL78/G10.
11190 (rl78_expand_prologue): Avoid SEL on G10.
11191 (rl78_expand_epilogue): Likewise.
11192 (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
11193 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
11194 __RL78_G10__ when appropriate.
11195 (ASM_SPEC): Pass -mg10 along to the assembler.
11196 * config/rl78/rl78.md (sel_rb): Disable for G10.
11197 * config/rl78/rl78.opt: Add -mg10 option.
11198 * config/rl78/t-rl78: Add -mg10 multilib.
11200 2013-09-16 Xinliang David Li <davidxl@google.com>
11202 * tree-if-conv.c (main_tree_if_conversion): Check new flag.
11203 * omp-low.c (omp_max_vf): Ditto.
11204 (expand_omp_simd): Ditto.
11205 * tree-vectorizer.c (vectorize_loops): Ditto.
11206 (gate_vect_slp): Ditto.
11207 (gate_increase_alignment): Ditto.
11208 * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
11209 * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
11210 (gate_tree_vectorize): Name change.
11211 (tree_vectorize): Ditto.
11212 (pass_vectorize::gate): Call new function.
11213 (pass_vectorize::execute): Ditto.
11214 * opts.c: O3 default setting change.
11215 (finish_options): Check new flag.
11216 * doc/invoke.texi: Document new flags.
11217 * common.opt: New flags.
11219 2013-09-16 Andreas Schwab <schwab@linux-m68k.org>
11221 * doc/tm.texi.in (Cond Exec Macros): Remove node.
11222 (Condition Code): Don't reference it.
11223 * doc/tm.texi: Regenerate.
11225 2013-09-16 Vladimir Makarov <vmakarov@redhat.com>
11227 PR middle-end/58418
11228 * lra-constraints.c (undo_optional_reloads): Consider all optional
11229 reload even if it did not get a hard reg.
11231 2013-09-16 Teresa Johnson <tejohnson@google.com>
11233 * dumpfile.c (dump_loc): Remove newline emission.
11234 * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
11235 emission to dump_printf_loc calls where missing.
11236 (vect_mark_for_runtime_alias_test): Ditto.
11237 (vect_analyze_data_ref_dependence): Ditto.
11238 (vect_analyze_data_ref_dependences): Ditto.
11239 (vect_slp_analyze_data_ref_dependence): Ditto.
11240 (vect_slp_analyze_data_ref_dependences): Ditto.
11241 (vect_compute_data_ref_alignment): Ditto.
11242 (vect_update_misalignment_for_peel): Ditto.
11243 (vect_verify_datarefs_alignment): Ditto.
11244 (vector_alignment_reachable_p): Ditto.
11245 (vect_get_data_access_cost): Ditto.
11246 (vect_enhance_data_refs_alignment): Ditto.
11247 (vect_find_same_alignment_drs): Ditto.
11248 (vect_analyze_data_refs_alignment): Ditto.
11249 (vect_analyze_group_access): Ditto.
11250 (vect_analyze_data_ref_access): Ditto.
11251 (vect_analyze_data_ref_accesses): Ditto.
11252 (vect_prune_runtime_alias_test_list): Ditto.
11253 (vect_analyze_data_refs): Ditto.
11254 (vect_create_addr_base_for_vector_ref): Ditto.
11255 (vect_create_data_ref_ptr): Ditto.
11256 (vect_grouped_store_supported): Ditto.
11257 (vect_grouped_load_supported): Ditto.
11258 * value-prof.c (check_counter): Ditto.
11259 (check_ic_target): Ditto.
11260 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
11261 (vect_recog_widen_mult_pattern): Ditto.
11262 (vect_recog_widen_sum_pattern): Ditto.
11263 (vect_recog_over_widening_pattern): Ditto.
11264 (vect_recog_widen_shift_pattern): Ditto.
11265 (vect_recog_rotate_pattern): Ditto.
11266 (vect_recog_vector_vector_shift_pattern): Ditto.
11267 (vect_recog_divmod_pattern): Ditto.
11268 (vect_recog_mixed_size_cond_pattern): Ditto.
11269 (vect_recog_bool_pattern): Ditto.
11270 (vect_pattern_recog_1): Ditto.
11271 (vect_pattern_recog): Ditto.
11272 * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
11273 (vect_is_simple_iv_evolution): Ditto.
11274 (vect_analyze_scalar_cycles_1): Ditto.
11275 (vect_get_loop_niters): Ditto.
11276 (vect_analyze_loop_1): Ditto.
11277 (vect_analyze_loop_form): Ditto.
11278 (vect_analyze_loop_operations): Ditto.
11279 (vect_analyze_loop_2): Ditto.
11280 (vect_analyze_loop): Ditto.
11281 (report_vect_op): Ditto.
11282 (vect_is_slp_reduction): Ditto.
11283 (vect_is_simple_reduction_1): Ditto.
11284 (vect_get_known_peeling_cost): Ditto.
11285 (vect_estimate_min_profitable_iters): Ditto.
11286 (vect_model_reduction_cost): Ditto.
11287 (vect_model_induction_cost): Ditto.
11288 (get_initial_def_for_induction): Ditto.
11289 (vect_create_epilog_for_reduction): Ditto.
11290 (vectorizable_reduction): Ditto.
11291 (vectorizable_induction): Ditto.
11292 (vectorizable_live_operation): Ditto.
11293 (vect_loop_kill_debug_uses): Ditto.
11294 (vect_transform_loop): Ditto.
11295 * tree-vect-stmts.c (vect_mark_relevant): Ditto.
11296 (vect_stmt_relevant_p): Ditto.
11297 (process_use): Ditto.
11298 (vect_mark_stmts_to_be_vectorized): Ditto.
11299 (vect_model_simple_cost): Ditto.
11300 (vect_model_promotion_demotion_cost): Ditto.
11301 (vect_model_store_cost): Ditto.
11302 (vect_get_store_cost): Ditto.
11303 (vect_model_load_cost): Ditto.
11304 (vect_get_load_cost): Ditto.
11305 (vect_init_vector_1): Ditto.
11306 (vect_get_vec_def_for_operand): Ditto.
11307 (vect_finish_stmt_generation): Ditto.
11308 (vectorizable_call): Ditto.
11309 (vectorizable_conversion): Ditto.
11310 (vectorizable_assignment): Ditto.
11311 (vectorizable_shift): Ditto.
11312 (vectorizable_operation): Ditto.
11313 (vectorizable_store): Ditto.
11314 (vectorizable_load): Ditto.
11315 (vectorizable_condition): Ditto.
11316 (vect_analyze_stmt): Ditto.
11317 (vect_transform_stmt): Ditto.
11318 (vect_is_simple_use): Ditto.
11319 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
11320 (vect_can_advance_ivs_p): Ditto.
11321 (vect_update_ivs_after_vectorizer): Ditto.
11322 (vect_do_peeling_for_loop_bound): Ditto.
11323 (vect_gen_niters_for_prolog_loop): Ditto.
11324 (vect_update_inits_of_drs): Ditto.
11325 (vect_create_cond_for_alias_checks): Ditto.
11326 * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
11327 (vect_build_slp_tree_1): Ditto.
11328 (vect_supported_load_permutation_p): Ditto.
11329 (vect_analyze_slp_instance): Ditto.
11330 (vect_analyze_slp): Ditto.
11331 (vect_make_slp_decision): Ditto.
11332 (vect_detect_hybrid_slp): Ditto.
11333 (vect_bb_vectorization_profitable_p): Ditto.
11334 (vect_slp_analyze_bb_1): Ditto.
11335 (vect_update_slp_costs_according_to_vf): Ditto.
11336 (vect_get_mask_element): Ditto.
11337 (vect_transform_slp_perm_load): Ditto.
11338 (vect_schedule_slp_instance): Ditto.
11339 (vect_schedule_slp): Ditto.
11340 (vect_slp_transform_bb): Ditto.
11341 * profile.c (read_profile_edge_counts): Ditto.
11342 (compute_branch_probabilities): Ditto.
11343 * coverage.c (get_coverage_counts): Ditto.
11345 2013-09-16 Diego Novillo <dnovillo@google.com>
11347 * tree-core.h: Add missing comment lines from refactoring of tree.h.
11349 2013-09-16 Jan Hubicka <jh@suse.cz>
11351 * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
11352 abstract functions; for static functions check the presence of body.
11354 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
11356 * config/aarch64/aarch64-simd-builtins.def (fma): New.
11357 * config/aarch64/aarch64-simd.md
11358 (aarch64_mla_elt<mode>): New.
11359 (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
11360 (aarch64_mls_elt<mode>): Likewise.
11361 (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
11362 (aarch64_fma4_elt<mode>): Likewise.
11363 (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
11364 (aarch64_fma4_elt_to_128v2df): Likewise.
11365 (aarch64_fma4_elt_to_64df): Likewise.
11366 (fnma<mode>4): Likewise.
11367 (aarch64_fnma4_elt<mode>): Likewise.
11368 (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
11369 (aarch64_fnma4_elt_to_128v2df): Likewise.
11370 (aarch64_fnma4_elt_to_64df): Likewise.
11371 * config/aarch64/iterators.md (VDQSF): New.
11372 * config/aarch64/arm_neon.h
11373 (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
11374 (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
11376 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
11378 * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
11379 (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
11380 (aarch64_mul3_elt_to_128df): Likewise.
11381 (aarch64_mul3_elt_to_64v2df): Likewise.
11382 * config/aarch64/iterators.md (VEL): Also handle DFmode.
11384 (VMUL_CHANGE_NLANES) Likewise.
11387 * config/aarch64/arm_neon.h
11388 (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
11390 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
11392 * config/aarch64/arm_neon.h
11393 (vcvtx_high_f32_f64): Fix parameters.
11395 2013-09-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11396 Uros Bizjak <ubizjak@gmail.com>
11398 * config/alpha.c: Include tree-ssanames.h.
11400 2013-09-16 Richard Biener <rguenther@suse.de>
11402 * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
11403 (dot_rdg_1): Handle control_dd.
11404 (create_edge_for_control_dependence): New function.
11405 (create_rdg_edges): Add control dependences if asked for.
11406 (build_rdg): Likewise.
11407 (generate_loops_for_partition): If there are not necessary
11408 control stmts remove all their dependencies.
11409 (collect_condition_stmts, rdg_flag_loop_exits): Remove.
11410 (distribute_loop): Pass on control dependences.
11411 (tree_loop_distribution): Compute control dependences and remove
11412 restriction on number of loop nodes.
11414 2013-09-16 Jakub Jelinek <jakub@redhat.com>
11416 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
11417 for internal calls.
11419 2013-09-16 Richard Sandiford <rdsandiford@googlemail.com>
11421 * cse.c (try_const_anchors): Punt on CC modes.
11423 2013-09-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11425 * config/vax/constraints.md (T): Add missing CONSTANT_P check.
11427 2013-09-14 John David Anglin <danglin@gcc.gnu.org>
11430 * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
11431 calls to word_mode.
11433 2013-09-14 Iain Sandoe <iain@codesourcery.com>
11436 * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
11438 (darwin_objc1_section): Likewise.
11439 (darwin_file_end): Emit Image Info section when required.
11441 2013-09-14 Jan Hubicka <jh@suse.cz>
11443 * tree-into-ssa.c (gate_into_ssa): New.
11444 (pass_data_build_ssa): Use it.
11445 * cgraph.h (expand_thunk): Update prototype.
11446 * cgraphunit.c (analyze_function): Expand thunks early.
11447 (expand_thunk): Fix DECL_CONTEXT of reust_decl;
11448 build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
11449 set lowered flag; do not add new function.
11450 (assemble_thunks_and_aliases): Update.
11451 * tree-ssa.c (gate_init_datastructures): New gate.
11452 (pass_data_init_datastructures): Use it.
11454 2013-09-14 Iain Sandoe <iain@codesourcery.com>
11457 * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
11458 xmm register set described in the psABI.
11460 2013-09-13 Evgeny Gavrin <e.gavrin@samsung.com>
11462 * dwarf2out.c (should_emit_struct_debug): Add check
11463 for type_decl variable is not NULL.
11465 2013-09-13 Jacek Caban <jacek@codeweavers.com>
11467 * config.gcc: Use new winnt-c.c target hooks
11468 * config/t-winnt: New file
11469 * config/winnt-c.c: New file
11470 * doc/tm.texi.in: Document new hook
11471 * doc/tm.texi: Regenerated
11473 2013-09-13 Jan Hubicka <jh@suse.cz>
11475 PR middle-end/58094
11476 * ipa-inline.c (check_callers): New function.
11477 (check_caller_edge): Remove.
11478 (want_inline_function_to_all_callers_p): Also permit alises that are
11480 (inline_to_all_callers): Terminate the walk when devirtualization
11481 introduce new calls.
11483 2013-09-13 Jan Hubicka <jh@suse.cz>
11485 * ipa-inline-analysis.c (struct growth_data): Add node.
11486 (do_estimate_growth_1): Fix detection of recursion.
11488 2013-09-13 Jakub Jelinek <jakub@redhat.com>
11490 PR tree-optimization/58392
11491 * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
11492 to avoid shadowing of outer loop variable. If
11493 saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
11494 replace_by_duplicate_decl simduid of loops that have it set and
11495 set dest_cfun->has_simduid_loops and/or
11496 dest_cfun->has_force_vect_loops.
11497 * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
11498 instead of maybe_lookup_decl.
11499 * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
11500 Use id->blocks_to_copy instead of blocks_to_copy. Adjust recursive
11501 call. Copy over force_vect and copy and remap simduid. Set
11502 cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
11503 (copy_cfg_body): Remove blocks_to_copy argument. Use
11504 id->blocks_to_copy instead of blocks_to_copy. Adjust copy_loops
11505 caller. Don't set cfun->has_simduid_loops and/or
11506 cfun->has_force_vect_loops here.
11507 (copy_body): Remove blocks_to_copy argument. Adjust copy_cfg_body
11509 (expand_call_inline, tree_function_versioning): Adjust copy_body
11512 2013-09-13 Martin Jambor <mjambor@suse.cz>
11515 * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
11516 the assert if the edge was a speculative one.
11518 2013-09-13 Richard Biener <rguenther@suse.de>
11520 * tree-data-ref.h (known_dependences_p): Move here ...
11521 * tree-loop-distribution.c (known_dependences_p): ... from here.
11522 (dump_rdg_component, debug_rdg_component): Remove.
11523 (dump_rdg): Adjust.
11524 (generate_loops_for_partition): Use gimple_uid instead of
11525 relying on matching stmt visit order.
11526 (rdg_build_partitions): Take starting stmt vector.
11527 (ldist_gen): Merge into ...
11528 (distribute_loop): ... this function. Do not compute starting
11530 * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
11532 2013-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11534 * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
11535 Set type attribute correctly. Set predicable_short_it attribute.
11536 (cmpsi_shiftsi): Remove %? from output template.
11538 2013-09-13 Richard Biener <rguenther@suse.de>
11540 * tree-loop-distribution.c (struct rdg_component,
11541 rdg_defs_used_in_other_loops_p, free_rdg_components,
11542 rdg_build_components): Remove.
11543 (stmts_from_loop): Do not record virtual PHIs.
11544 (generate_loops_for_partition): Skip virtual PHIs.
11545 (build_rdg_partition_for_component): Rename to ...
11546 (build_rdg_partition_for_vertex): ... this and adjust.
11547 (rdg_build_partitions): Take a vector of starting vertices
11548 instead of components. Remove unnecessary leftover handling.
11549 (ldist_gen): Do not build components or record other stores.
11550 (distribute_loop): Do not distribute loops containing stmts
11553 2013-09-13 Christian Bruel <christian.bruel@st.com>
11556 * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
11558 2013-09-13 Kai Tietz <ktietz@redhat.com>
11560 * config.gcc: Separate cases for mingw and cygwin targets,
11561 and add 64-bit cygwin target case.
11563 * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
11564 dll-export inline-functions.
11565 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
11567 2013-09-13 Jeff Law <law@redhat.com>
11569 PR middle-end/58387
11571 2013-09-06 Jeff Law <law@redhat.com>
11573 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
11574 edge implied equivalences into successor phis.
11576 2013-09-12 DJ Delorie <dj@redhat.com>
11578 * config/rl78/rl78-virt.md: Change from | to \; for asm line
11581 2013-09-12 Brooks Moses <bmoses@google.com>
11584 * Makefile.in: Do not install driver binaries in $(target)/bin.
11586 2013-09-12 DJ Delorie <dj@redhat.com>
11588 * config/rl78/rl78.opt (mrelax): New.
11589 * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
11590 * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
11592 * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
11594 (rl78_expand_epilogue): Likewise.
11596 2013-09-12 Vladimir Makarov <vmakarov@redhat.com>
11598 PR middle-end/58335
11599 * lra-eliminations.c (remove_reg_equal_offset_note): New.
11600 (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
11601 pointer elimination with using remove_reg_equal_offset_note.
11603 2013-09-12 DJ Delorie <dj@redhat.com>
11605 * config/msp430/: New port.
11606 * config.gcc (msp430): Added.
11607 * doc/invoke.texi: Document MSP430 options.
11608 * doc/install.texi: Document msp430-elf
11609 * doc/md.texi: Document msp430-elf
11610 * doc/contrib.texi: Document msp430-elf
11612 * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
11615 2013-09-12 Martin Jambor <mjambor@suse.cz>
11618 * ipa-prop.c (remove_described_reference): Give up if the edge in the
11619 reference descriptor is NULL.
11620 (ipa_edge_removal_hook): If owning a reference descriptor, set its
11623 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
11625 * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
11626 (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
11627 num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
11628 * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
11629 make_temp_ssa_name): move to tree-ssanames.h
11630 * tree-ssa-alias.h: Move prototype.
11631 * tree-ssa.h: Include tree-ssanames.h.
11632 * tree-ssanames.c (FREE_SSANAMES): Move to here.
11633 * tree-ssanames.h: New. Move items from tree-flow*.h
11634 * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
11636 2013-09-12 Richard Biener <rguenther@suse.de>
11638 PR tree-optimization/58404
11639 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
11640 propagate non-invariant addresses into dereferences wrapped
11641 in component references.
11643 2013-09-12 Richard Biener <rguenther@suse.de>
11645 PR tree-optimization/58402
11646 * passes.def: Move pass_late_warn_uninitialized later.
11648 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
11650 * tree-ssa.h: New. Move content from tree-flow.h and
11651 tree-flow-inline.h.
11652 * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
11653 Move prototypes belonging to tree-ssa.c.
11654 * tree-flow-inline.h (redirect_edge_var_map_def,
11655 redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
11657 * gimple.h: Adjust prototypes.
11658 * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
11660 * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
11661 * tree.h: Move prototype to tree-ssa.h.
11662 * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
11663 * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
11664 * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
11665 cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
11666 cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
11667 ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
11668 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
11669 gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
11670 graphite-blocking.c, graphite-clast-to-gimple.c,
11671 graphite-dependences.c, graphite-interchange.c,
11672 graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
11673 graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
11674 ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
11675 ipa-reference.c, ipa-split.c, ipa-utils.c,
11676 loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
11677 lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
11678 passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
11679 tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
11680 tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
11681 tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
11682 tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
11683 tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
11684 tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
11685 tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
11686 tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
11687 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
11688 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
11689 tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
11690 value-prof.c, var-tracking.c,
11691 varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
11693 2013-09-12 Richard Biener <rguenther@suse.de>
11695 PR tree-optimization/58396
11696 * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
11697 (build_rdg): Take a loop-nest parameter, fix memleaks.
11698 (distribute_loop): Compute loop-nest here and pass it to build_rdg.
11700 2013-09-12 Yuri Rumyantsev <ysrumyan@gmail.com>
11702 * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
11705 2013-09-12 Cameron McInally <cameron.mcinally@nyu.edu>
11707 * doc/extend.texi: Fix errors in x86 FMA builtin naming.
11708 The FMA instruction names should have a 'v' prefix.
11710 2013-09-12 Richard Biener <rguenther@suse.de>
11712 * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
11713 (dot_rdg): Use popen instead of system in optional code.
11714 (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
11715 (already_processed_vertex_p): Adjust.
11716 (has_anti_or_output_dependence, predecessor_has_mem_write,
11717 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
11718 rdg_flag_uses): Remove.
11719 (rdg_flag_vertex): Simplify.
11720 (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
11722 (build_rdg_partition_for_component): Process the first vertex
11723 of a component only.
11724 (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
11726 2013-09-12 Alan Modra <amodra@gmail.com>
11728 * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
11730 2013-09-11 DJ Delorie <dj@redhat.com>
11731 Nick Clifton <nickc@redhat.com>
11733 * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
11734 (rl78_stack_based_mem): New.
11735 * config/rl78/constraints.md (Iv08): New.
11744 * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
11746 (movsi): Change from expand to insn-and-split.
11747 (ashrsi3): Clobber AX.
11751 * config/rl78/rl78.md (CC_REG): Fix.
11752 (addsi3): Allow memory and immediate operands.
11753 (addsi3_internal): Split into...
11754 (addsi3_internal_virt): ...new, and ...
11755 (addsi3_internal_real): ...new.
11757 (subsi3_internal_virt): New.
11758 (subsi3_internal_real): New.
11759 (mulsi3): Add memory operand.
11760 (mulsi3_rl78): Likewise.
11761 (mulsi3_g13): Likewise.
11762 * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
11763 (cbranchqi4_real): Add more constraint options.
11764 (cbranchhi4_real): Expand pattern.
11765 (cbranchhi4_real_signed): New.
11766 (cbranchhi4_real_inverted): New.
11767 (cbranchsi4_real_lt): New.
11768 (cbranchsi4_real_ge): New.
11769 (cbranchsi4_real_signed): New.
11770 (cbranchsi4_real): New.
11772 * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
11774 (lshrsi3_virt): Likewise.
11775 (ashlsi3_virt): Likewise.
11776 (cbranchqi4_virt_signed): New.
11777 (cbranchhi4_virt_signed): New.
11778 (cbranchsi4_virt): New.
11779 * config/rl78/rl78.c: Whitespace fixes throughout.
11780 (move_elim_pass): New.
11781 (pass_data_rl78_move_elim): New.
11782 (pass_rl78_move_elim): New.
11783 (make_pass_rl78_move_elim): New.
11784 (rl78_devirt_info): Run devirt earlier.
11785 (rl78_move_elim_info): New.
11786 (rl78_asm_file_start): Register it.
11787 (rl78_split_movsi): New.
11788 (rl78_as_legitimate_address): Allow virtual base registers when
11790 (rl78_addr_space_convert): Remove spurious debug stuff.
11791 (rl78_print_operand_1): Add z,s,S,r,E modifiers.
11792 (rl78_print_operand): More cases for not printing '#'.
11793 (rl78_expand_compare): Remove most of the logic.
11794 (content_memory): New.
11795 (clear_content_memory): New.
11796 (get_content_index): New.
11797 (get_content_name): New.
11798 (display_content_memory): New.
11799 (update_content): New.
11800 (record_content): New.
11801 (already_contains): New.
11802 (insn_ok_now): Re-recog insns with virtual registers.
11803 (add_postponed_content_update): New.
11804 (process_postponed_content_update): New.
11805 (gen_and_emit_move): New.
11806 (transcode_memory_rtx): Record new location content.
11807 Use gen_and_emit_move.
11808 (force_into_acc): New.
11809 (move_to_acc): Use gen_and_emit_move.
11810 (move_from_acc): Likewise.
11811 (move_acc_to_reg): Likewise.
11812 (move_to_x): Likewise.
11813 (move_to_hl): Likewise.
11814 (move_to_de): Likewise.
11815 (rl78_alloc_physical_registers_op1): Record location content.
11816 (has_constraint): New.
11817 (rl78_alloc_physical_registers_op2): Record location content.
11818 Optimize use of HL.
11819 (rl78_alloc_physical_registers_ro1): Likewise.
11820 (rl78_alloc_physical_registers_cmp): Likewise.
11821 (rl78_alloc_physical_registers_umul): Likewise.
11822 (rl78_alloc_address_registers_macax): New.
11823 (rl78_alloc_physical_registers): Initialize and set location
11824 content memory as needed.
11825 (rl78_reorg): Make sure split2 is called.
11826 (rl78_rtx_costs): New.
11828 2013-09-11 Richard Sandiford <rdsandiford@googlemail.com>
11830 * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
11831 for (not (neg ...)) and (neg (not ...)) cases.
11833 2013-09-11 Richard Biener <rguenther@suse.de>
11835 PR middle-end/58377
11836 * passes.def: Split critical edges before late uninit warning passes.
11837 * tree-cfg.c (pass_split_crit_edges): Implement clone method.
11839 2013-09-11 Jakub Jelinek <jakub@redhat.com>
11841 PR tree-optimization/58385
11842 * fold-const.c (build_range_check): If both low and high are NULL,
11843 use omit_one_operand_loc to preserve exp side-effects.
11845 2013-09-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11847 * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
11849 2013-09-11 Richard Biener <rguenther@suse.de>
11851 * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
11852 dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
11853 dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
11854 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
11855 stmts_from_loop, known_dependences_p, build_empty_rdg,
11856 build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
11857 * tree-loop-distribution.c: ... here.
11858 * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
11859 RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
11860 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
11861 struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
11862 * tree-loop-distribution.c: ... here.
11863 * tree-loop-distribution.c: Include gimple-pretty-print.h.
11864 (struct partition_s): Add loops member.
11865 (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
11866 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
11867 build_rdg_partition_for_component, rdg_build_partitions): Adjust.
11869 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11870 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11871 Sergey Lega <sergey.s.lega@intel.com>
11872 Anna Tikhonova <anna.tikhonova@intel.com>
11873 Ilya Tocar <ilya.tocar@intel.com>
11874 Andrey Turetskiy <andrey.turetskiy@intel.com>
11875 Ilya Verbin <ilya.verbin@intel.com>
11876 Kirill Yukhin <kirill.yukhin@intel.com>
11877 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11879 * config/i386/constraints.md (k): New.
11881 * config/i386/i386.c (const regclass_map): Add new mask registers.
11882 (dbx_register_map): Ditto.
11883 (dbx64_register_map): Ditto.
11884 (svr4_dbx_register_map): Ditto.
11885 (ix86_conditional_register_usage): Squash mask registers if AVX512F is
11887 (ix86_preferred_reload_class): Disable constants for mask registers.
11888 (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
11889 (ix86_hard_regno_mode_ok): Support new mask registers.
11890 (x86_order_regs_for_local_alloc): Ditto.
11891 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
11892 (FIXED_REGISTERS): Add new mask registers.
11893 (CALL_USED_REGISTERS): Ditto.
11894 (REG_ALLOC_ORDER): Ditto.
11895 (VALID_MASK_REG_MODE): New.
11896 (FIRST_MASK_REG): Ditto.
11897 (LAST_MASK_REG): Ditto.
11898 (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
11899 (MAYBE_MASK_CLASS_P): New.
11900 (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
11901 (REG_CLASS_CONTENTS): Ditto.
11902 (MASK_REGNO_P): New.
11903 (ANY_MASK_REG_P): Ditto.
11904 (HI_REGISTER_NAMES): Add new mask registers.
11905 * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
11906 MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
11908 (attribute "type"): Add mskmov, msklog.
11909 (attribute "length_immediate"): Support them.
11910 (attribute "memory"): Ditto.
11911 (attribute "prefix_0f"): Ditto.
11912 (*movhi_internal): Support new mask registers.
11913 (*movqi_internal): Ditto.
11914 (define_split): Split out clobber pattern is a logic
11915 insn on mask registers.
11916 (*k<logic><mode>): New.
11917 (*andhi_1): Extend to support mask regs.
11918 (*andqi_1): Extend to support mask regs.
11919 (kandn<mode>): New.
11920 (define_split): Split and-not to and and not if operands
11922 (*<code><mode>_1): Separate HI mode to new pattern...
11923 (*<code>hi_1): This.
11924 (*<code>qi_1): Extend to support mask regs.
11925 (kxnor<mode>): New.
11926 (kortestzhi): Ditto.
11927 (kortestchi): Ditto.
11929 (*one_cmpl<mode>2_1): Remove HImode and handle it...
11930 (*one_cmplhi2_1): ...Here, now with mask registers support.
11931 (*one_cmplqi2_1): Support new mask registers.
11932 (HI/QImode arithmetics splitter): Don't split if mask registers
11934 (HI/QImode not splitter): Ditto.
11935 * config/i386/predicated.md (mask_reg_operand): New.
11936 (general_reg_operand): Ditto.
11938 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11940 * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
11941 * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
11943 2013-09-10 Jeff Law <law@redhat.com>
11945 PR tree-optimization/58380
11946 * tree-ssa-threadupdate.c (thread_block): Recognize another case
11947 of threading through a buried loop header.
11949 * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
11950 return value for single successor case.
11952 2013-09-10 Jan Hubicka <jh@suse.cz>
11954 * ipa-devirt.c (ipa_devirt): Enable with LTO.
11956 2013-09-10 Richard Earnshaw <rearnsha@arm.com>
11959 * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
11960 support conditional execution.
11961 (combine_vcvt_f64_<FCVTI32typename>): Likewise.
11963 2013-09-10 Vladimir Makarov <vmakarov@redhat.com>
11965 * lra.c (lra): Clear lra_optional_reload_pseudos before every
11967 * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
11968 Check destination too to check move insn.
11969 (undo_optional_reloads): Add check that the original peudo did not
11970 changed its allocation and the optional reload was inherited on last
11971 inheritance pass. Break loop after deciding to keep optional reload.
11972 (lra_undo_inheritance): Add check that inherited pseudo still in
11975 2013-09-10 James Greenhalgh <james.greenhalgh@arm.com>
11977 * config/aarch64/aarch64.md (generic_sched): New.
11978 * config/aarch64/aarch64-generic.md (load): Make conditional
11979 on generic_sched attribute.
11980 (nonload): Likewise.
11982 2013-09-10 Jan Hubicka <jh@suse.cz>
11984 * lto-cgraph.c: Include ipa-utils.h.
11985 (compute_ltrans_boundary): Also add possible targets into the boundary.
11987 2013-09-10 Jan Hubicka <jh@suse.cz>
11989 * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
11990 VAR_DECL of vtable rather than full expression.
11992 2013-09-10 Jan Hubicka <jh@suse.cz>
11993 Paolo Carlini <paolo.carlini@oracle.com>
11995 * cgraphunit.c (analyze_functions): Save input_location, set it
11996 to UNKNOWN_LOCATION and restore it at the end.
11998 2013-09-10 Martin Jambor <mjambor@suse.cz>
12000 * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
12001 represented by a thunk.
12003 2013-09-10 Jeff Law <law@redhat.com>
12005 PR tree-optimization/58343
12006 * tree-ssa-threadupdate.c (thread_block): Identify and disable
12007 jump threading requests through loop headers buried in the middle
12008 of a jump threading path.
12010 * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
12011 in return value/type.
12013 2013-09-10 Jakub Jelinek <jakub@redhat.com>
12015 PR rtl-optimization/58365
12016 * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
12017 resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
12020 2013-09-10 Richard Biener <rguenther@suse.de>
12022 * tree-data-ref.h (build_rdg): Drop all parameters but loop.
12023 * tree-data-ref.c (create_rdg_vertices): Collect all data
12024 references, signal failure to the caller, use data-ref API.
12025 (build_rdg): Compute data references only once. Maintain lifetime
12026 of data references and data dependences from within RDG.
12027 (free_rdg): Free dependence relations.
12028 * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
12029 inventing extra dependences.
12030 (distribute_loop): Update for RDG API changes.
12032 2013-09-10 Kai Tietz <ktietz@redhat.com>
12034 * doc/invoke.texi (fms-extensions): Document changed
12035 behavior for ms-abi targets.
12036 * config/i386/i386.c (ix86_option_override_internal):
12037 Set default value of option -fms-extension for ms-abi targets.
12039 2013-09-10 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
12041 * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
12043 2013-09-10 Alan Modra <amodra@gmail.com>
12046 * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
12048 2013-09-10 Alan Modra <amodra@gmail.com>
12050 * config/rs6000/predicates.md (add_cint_operand): New.
12051 (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
12052 * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
12053 using add_cint_operand.
12054 (largetoc_high_plus_aix): Likewise.
12056 2013-09-09 Jakub Jelinek <jakub@redhat.com>
12058 PR tree-optimization/58364
12059 * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
12060 BOOLEAN_TYPE, only invert in_p and continue with arg0 if
12061 the current range can't be an unconditional true or false.
12063 2013-09-09 James Greenhalgh <james.greenhalgh@arm.com>
12065 * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
12067 2013-09-09 Uros Bizjak <ubizjak@gmail.com>
12069 * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
12071 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
12074 * doc/invoke.texi (-Wdelete-incomplete): Document it.
12076 2013-09-09 Ian Bolton <ian.bolton@arm.com>
12078 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
12079 NO_REGS for immediate that can't be moved directly into FP_REGS.
12081 2013-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12083 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
12084 comparison with negated operand.
12085 * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
12088 2013-09-09 Richard Biener <rguenther@suse.de>
12090 PR middle-end/58326
12091 * cfgloopmanip.c (fix_bb_placements): When fixing the placement
12092 of a subloop record all its block as affecting loop-closed SSA form.
12094 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
12096 * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
12097 of an rtx/bitpos pair.
12098 (store_fixed_bit_field): Update accordingly.
12100 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
12102 * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
12104 * builtins.c (expand_errno_check): Likewise.
12105 * dwarf2cfi.c (init_return_column_size): Likewise.
12106 * except.c (sjlj_mark_call_sites): Likewise.
12107 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
12108 * lra-constraints.c (emit_inc): Likewise.
12109 * ree.c (combine_set_extension): Likewise.
12110 * regmove.c (fixup_match_2): Likewise.
12111 * reload1.c (inc_for_reload): Likewise.
12113 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
12115 * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
12116 (force_to_mode, simplify_shift_const_1, simplify_comparison):
12117 Use gen_int_mode with the mode of the associated simplify_* call.
12118 * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
12119 * expmed.c (expand_shift_1): Likewise.
12120 * function.c (instantiate_virtual_regs_in_insn): Likewise.
12121 * loop-iv.c (iv_number_of_iterations): Likewise.
12122 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
12123 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
12125 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
12127 * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
12128 of the associated expand_* call.
12129 (asan_emit_stack_protection): Likewise.
12130 * builtins.c (round_trampoline_addr): Likewise.
12131 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
12132 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
12133 (emit_store_flag): Likewise.
12134 * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
12135 (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
12137 * function.c (instantiate_virtual_regs_in_insn): Likewise.
12138 * ifcvt.c (noce_try_store_flag_constants): Likewise.
12139 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
12140 * modulo-sched.c (generate_prolog_epilog): Likewise.
12141 * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
12142 (expand_ctz, expand_ffs, expand_unop): Likewise.
12144 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
12146 * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
12147 of the associated gen_rtx_* call.
12148 * caller-save.c (init_caller_save): Likewise.
12149 * combine.c (find_split_point, make_extraction): Likewise.
12150 (make_compound_operation): Likewise.
12151 * dwarf2out.c (mem_loc_descriptor): Likewise.
12152 * explow.c (plus_constant, probe_stack_range): Likewise.
12153 * expmed.c (expand_mult_const): Likewise.
12154 * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
12155 * reload1.c (init_reload): Likewise.
12156 * valtrack.c (cleanup_auto_inc_dec): Likewise.
12157 * var-tracking.c (adjust_mems): Likewise.
12158 * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
12159 rather than gen_rtx_fmt_ee.
12161 2013-09-09 Jan Hubicka <jh@suse.cz>
12163 PR middle-end/58294
12164 * value-prof.c (gimple_ic): Copy also abnormal edges.
12166 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
12168 * asan.c (asan_shadow_cst): Use gen_int_mode.
12170 2013-09-08 Jan Hubicka <jh@suse.cz>
12172 * ipa-profile.c: Add toplevel comment.
12173 (ipa_propagate_frequency_1): Be more conservative when profile is read.
12174 (contains_hot_call_p): New function.
12175 (ipa_propagate_frequency): Set frequencies based on counts when
12177 * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
12178 profile; do not tamper with profile after inlining if it is read.
12180 2013-09-08 Jan Hubicka <jh@suse.cz>
12182 * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
12185 2013-09-08 Jan Hubicka <jh@suse.cz>
12187 * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
12188 summary generation.
12190 2013-09-08 Jeff Law <law@redhat.com>
12193 * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
12196 2013-09-08 Andi Kleen <ak@linux.intel.com>
12198 * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
12200 2013-09-08 Jan Hubicka <jh@suse.cz>
12202 * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
12204 2013-09-08 Richard Sandiford <rdsandiford@googlemail.com>
12206 * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
12207 for non-debug insns.
12208 * lra.c (new_insn_reg): Take the containing insn as a parameter.
12209 Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
12210 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
12213 2013-09-08 Jan Hubicka <jh@suse.cz>
12215 * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
12216 targets and devirtualize to BUILT_IN_UNREACHABLE.
12217 * timevar.def (TV_IPA_UNREACHABLE): New timevar.
12218 * ipa.c (walk_polymorphic_call_targets): New function.
12219 (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
12220 functions; use the new timevar.
12221 * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
12222 was removed from the program.
12223 (record_binfo): If BINFO corresponds to an anonymous namespace, we may
12224 not consider it in the walk when its vtable is dead.
12225 (possible_polymorphic_call_targets_1): Pass anonymous flag to
12227 (devirt_variable_node_removal_hook): New function.
12228 (possible_polymorphic_call_targets): Also register
12229 devirt_variable_node_removal_hook.
12230 (ipa_devirt): Do not do non-speculative devirtualization.
12231 (gate_ipa_devirt): One execute if devirtualizing speculatively.
12233 2013-09-08 Jan Hubicka <jh@suse.cz>
12235 * cgraph.h (varpool_node_hook, varpool_node_hook_list,
12236 varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
12237 varpool_remove_variable_insertion_hook): Declare.
12238 * varpool.c (varpool_node_hook_list): New structure.
12239 (first_varpool_node_removal_hook,
12240 first_varpool_variable_insertion_hook): New variables.
12241 (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
12242 varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
12243 varpool_remove_variable_insertion_hook,
12244 varpool_call_variable_insertion_hooks): New functions.
12245 (varpool_remove_node): Use it.
12247 2013-09-08 Paolo Carlini <paolo.carlini@oracle.com>
12250 * diagnostic.c (diagnostic_build_prefix): When s.file is
12251 "<built-in>" don't output line and column numbers.
12253 2013-09-06 Jan Hubicka <jh@suse.cz>
12255 * cgraphunit.c (expand_thunk): Get body before touching arguments.
12256 * lto-streamer-out.c: Stream thunks, too.
12257 * lto-streamer-in.c (input_function): Pop cfun here
12258 (lto_read_body): Instead of here.
12260 2013-09-06 Caroline Tice <cmtice@google.com>
12262 * doc/install.texi: Add documentation for the --enable-vtable-verify
12263 and the --disable-libvtv configure options.
12265 2013-09-06 Jeff Law <law@redhat.com>
12267 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
12268 edge implied equivalences into successor phis.
12270 2013-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
12272 * resource.c (mark_referenced_resources): Handle COND_EXEC.
12274 2013-09-06 Claudiu Zissulescu <claziss@synopsys.com>
12276 * resource.c (mark_target_live_regs): Compute resources taking
12277 into account if a call is predicated or not.
12279 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
12281 * toplev.c (output_stack_usage): Be prepared for suffixes created by
12282 the compiler in the function names.
12284 2013-09-06 Jan Hubicka <jh@suse.cz>
12286 PR middle-end/58094
12287 * ipa-inline.c (has_caller_p): New function.
12288 (want_inline_function_to_all_callers_p): Use it.
12289 (sum_callers, inline_to_all_callers): Break out from ...
12290 (ipa_inline): ... here.
12292 2013-09-06 Jan Hubicka <jh@suse.cz>
12294 * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
12295 only when AVX is enabled.
12297 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
12299 * config/aarch64/aarch64.md
12300 (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
12301 is fpsimd_<load/store>2.
12302 (load_pair<mode>): Likewise.
12303 (store_pair<mode>): Likewise.
12305 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
12307 * config/arm/types.md (type): Add "mrs" type.
12308 * config/aarch64/aarch64.md
12309 (aarch64_load_tp_hard): Make type "mrs".
12310 * config/arm/arm.md
12311 (load_tp_hard): Make type "mrs".
12312 * config/arm/cortex-a15.md: Update with new attributes.
12313 * config/arm/cortex-a5.md: Update with new attributes.
12314 * config/arm/cortex-a53.md: Update with new attributes.
12315 * config/arm/cortex-a7.md: Update with new attributes.
12316 * config/arm/cortex-a8.md: Update with new attributes.
12317 * config/arm/cortex-a9.md: Update with new attributes.
12318 * config/arm/cortex-m4.md: Update with new attributes.
12319 * config/arm/cortex-r4.md: Update with new attributes.
12320 * config/arm/fa526.md: Update with new attributes.
12321 * config/arm/fa606te.md: Update with new attributes.
12322 * config/arm/fa626te.md: Update with new attributes.
12323 * config/arm/fa726te.md: Update with new attributes.
12325 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
12327 * config/aarch64/aarch64.md
12328 (*movti_aarch64): Use "multiple" for type where v8type is "move2".
12329 (*movtf_aarch64): Likewise.
12330 * config/arm/arm.md
12331 (thumb1_movdi_insn): Use "multiple" for type where more than one
12332 instruction is used for a move.
12333 (*arm32_movhf): Likewise.
12334 (*thumb_movdf_insn): Likewise.
12336 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
12338 * config/arm/types.md (type): Rename fcpys to fmov.
12339 * config/arm/vfp.md
12340 (*arm_movsi_vfp): Rename type fcpys as fmov.
12341 (*thumb2_movsi_vfp): Likewise
12342 (*movhf_vfp_neon): Likewise
12343 (*movhf_vfp): Likewise
12344 (*movsf_vfp): Likewise
12345 (*thumb2_movsf_vfp): Likewise
12346 (*movsfcc_vfp): Likewise
12347 (*thumb2_movsfcc_vfp): Likewise
12348 * config/aarch64/aarch64-simd.md
12349 (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
12350 * config/aarch64/aarch64.md
12351 (*movsi_aarch64): Replace type mov_reg with fmovs.
12352 (*movdi_aarch64): Likewise
12353 (*movsf_aarch64): Likewise
12354 (*movdf_aarch64): Likewise
12356 (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
12357 * config/arm/iwmmxt.md
12358 (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
12359 * config/arm/arm1020e.md: Update with new attributes.
12360 * config/arm/cortex-a15-neon.md: Update with new attributes.
12361 * config/arm/cortex-a5.md: Update with new attributes.
12362 * config/arm/cortex-a53.md: Update with new attributes.
12363 * config/arm/cortex-a7.md: Update with new attributes.
12364 * config/arm/cortex-a8-neon.md: Update with new attributes.
12365 * config/arm/cortex-a9.md: Update with new attributes.
12366 * config/arm/cortex-m4-fpu.md: Update with new attributes.
12367 * config/arm/cortex-r4f.md: Update with new attributes.
12368 * config/arm/marvell-pj4.md: Update with new attributes.
12369 * config/arm/vfp11.md: Update with new attributes.
12371 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
12373 * config/aarch64/aarch64.md
12374 (*madd<mode>): Fix type attribute.
12375 (*maddsi_uxtw): Likewise.
12376 (*msub<mode>): Likewise.
12377 (*msubsi_uxtw): Likewise.
12378 (<su_optab>maddsidi4): Likewise.
12379 (<su_optab>msubsidi4): Likewise.
12381 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
12383 * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
12384 * config/arm/arm.md (core_cycles): Remove fdiv.
12385 * config/arm/vfp.md:
12386 (*sqrtsf2_vfp): Update for attribute changes.
12387 (*sqrtdf2_vfp): Likewise.
12388 * config/aarch64/aarch64.md:
12389 (sqrt<mode>2): Update for attribute changes.
12390 * config/arm/arm1020e.md: Update with new attributes.
12391 * config/arm/cortex-a15-neon.md: Update with new attributes.
12392 * config/arm/cortex-a5.md: Update with new attributes.
12393 * config/arm/cortex-a53.md: Update with new attributes.
12394 * config/arm/cortex-a7.md: Update with new attributes.
12395 * config/arm/cortex-a8-neon.md: Update with new attributes.
12396 * config/arm/cortex-a9.md: Update with new attributes.
12397 * config/arm/cortex-m4-fpu.md: Update with new attributes.
12398 * config/arm/cortex-r4f.md: Update with new attributes.
12399 * config/arm/marvell-pj4.md: Update with new attributes.
12400 * config/arm/vfp11.md: Update with new attributes.
12402 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
12404 * config/arm/types.md
12405 (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
12406 * config/aarch64/aarch64.md
12407 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
12409 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
12410 (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
12411 (float<GPI:mode><GPF:mode>2): Likewise.
12412 * config/arm/vfp.md
12413 (*truncsisf2_vfp): Update with new attributes.
12414 (*truncsidf2_vfp): Likewise.
12415 (fixuns_truncsfsi2): Likewise.
12416 (fixuns_truncdfsi2): Likewise.
12417 (*floatsisf2_vfp): Likewise.
12418 (*floatsidf2_vfp): Likewise.
12419 (floatunssisf2): Likewise.
12420 (floatunssidf2): Likewise.
12421 (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
12422 (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
12423 * config/arm/arm1020e.md: Update with new attributes.
12424 * config/arm/cortex-a15-neon.md: Update with new attributes.
12425 * config/arm/cortex-a5.md: Update with new attributes.
12426 * config/arm/cortex-a53.md: Update with new attributes.
12427 * config/arm/cortex-a7.md: Update with new attributes.
12428 * config/arm/cortex-a8-neon.md: Update with new attributes.
12429 * config/arm/cortex-a9.md: Update with new attributes.
12430 * config/arm/cortex-m4-fpu.md: Update with new attributes.
12431 * config/arm/cortex-r4f.md: Update with new attributes.
12432 * config/arm/marvell-pj4.md: Update with new attributes.
12433 * config/arm/vfp11.md: Update with new attributes.
12435 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
12437 * config/aarch64/arm_neon.h
12438 (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
12439 (vqtbx<1,2,3,4><q>_s8): Likewise.
12441 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
12443 * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
12444 * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
12445 (add<mode>3): Add type attribute.
12446 (add<mode>3): Likewise.
12447 (usadd<mode>3): Likewise.
12448 (ssadd<mode>3): Likewise.
12449 (sub<mode>3): Likewise.
12450 (sub<mode>3): Likewise.
12451 (ussub<mode>3): Likewise.
12452 (sssub<mode>3): Likewise.
12453 (ssmulsa3): Likewise.
12454 (usmulusa3): Likewise.
12455 (arm_usatsihi): Likewise.
12456 * config/arm/vfp.md
12457 (*movdi_vfp): Add types for all instructions.
12458 (*movdi_vfp_cortexa8): Likewise.
12459 (*movhf_vfp_neon): Likewise.
12460 (*movhf_vfp): Likewise.
12461 (*movdf_vfp): Likewise.
12462 (*thumb2_movdf_vfp): Likewise.
12463 (*thumb2_movdfcc_vfp): Likewise.
12464 * config/arm/arm.md: Add type attribute to all insn patterns.
12465 (*thumb1_adddi3): Add type attribute.
12466 (*arm_adddi3): Likewise.
12467 (*adddi_sesidi_di): Likewise.
12468 (*adddi_zesidi_di): Likewise.
12469 (*thumb1_addsi3): Likewise.
12470 (addsi3_compare0): Likewise.
12471 (*addsi3_compare0_scratch): Likewise.
12472 (*compare_negsi_si): Likewise.
12473 (cmpsi2_addneg): Likewise.
12474 (*addsi3_carryin_<optab>): Likewise.
12475 (*addsi3_carryin_alt2_<optab>): Likewise.
12476 (*addsi3_carryin_clobercc_<optab>): Likewise.
12477 (*subsi3_carryin): Likewise.
12478 (*subsi3_carryin_const): Likewise.
12479 (*subsi3_carryin_compare): Likewise.
12480 (*subsi3_carryin_compare_const): Likewise.
12481 (*arm_subdi3): Likewise.
12482 (*thumb_subdi3): Likewise.
12483 (*subdi_di_zesidi): Likewise.
12484 (*subdi_di_sesidi): Likewise.
12485 (*subdi_zesidi_di): Likewise.
12486 (*subdi_sesidi_di): Likewise.
12487 (*subdi_zesidi_ze): Likewise.
12488 (thumb1_subsi3_insn): Likewise.
12489 (*arm_subsi3_insn): Likewise.
12490 (*anddi3_insn): Likewise.
12491 (*anddi_zesidi_di): Likewise.
12492 (*anddi_sesdi_di): Likewise.
12493 (*ne_zeroextracts): Likewise.
12494 (*ne_zeroextracts): Likewise.
12495 (*ite_ne_zeroextr): Likewise.
12496 (*ite_ne_zeroextr): Likewise.
12497 (*anddi_notdi_di): Likewise.
12498 (*anddi_notzesidi): Likewise.
12499 (*anddi_notsesidi): Likewise.
12500 (andsi_notsi_si): Likewise.
12501 (thumb1_bicsi3): Likewise.
12502 (*iordi3_insn): Likewise.
12503 (*iordi_zesidi_di): Likewise.
12504 (*iordi_sesidi_di): Likewise.
12505 (*thumb1_iorsi3_insn): Likewise.
12506 (*xordi3_insn): Likewise.
12507 (*xordi_zesidi_di): Likewise.
12508 (*xordi_sesidi_di): Likewise.
12509 (*arm_xorsi3): Likewise.
12510 (*andsi_iorsi3_no): Likewise.
12511 (*smax_0): Likewise.
12512 (*smax_m1): Likewise.
12513 (*arm_smax_insn): Likewise.
12514 (*smin_0): Likewise.
12515 (*arm_smin_insn): Likewise.
12516 (*arm_umaxsi3): Likewise.
12517 (*arm_uminsi3): Likewise.
12518 (*minmax_arithsi): Likewise.
12519 (*minmax_arithsi_): Likewise.
12520 (*satsi_<SAT:code>): Likewise.
12521 (arm_ashldi3_1bit): Likewise.
12522 (arm_ashrdi3_1bit): Likewise.
12523 (arm_lshrdi3_1bit): Likewise.
12524 (*arm_negdi2): Likewise.
12525 (*thumb1_negdi2): Likewise.
12526 (*arm_negsi2): Likewise.
12527 (*thumb1_negsi2): Likewise.
12528 (*negdi_extendsid): Likewise.
12529 (*negdi_zero_extend): Likewise.
12530 (*arm_abssi2): Likewise.
12531 (*thumb1_abssi2): Likewise.
12532 (*arm_neg_abssi2): Likewise.
12533 (*thumb1_neg_abss): Likewise.
12534 (one_cmpldi2): Likewise.
12535 (extend<mode>di2): Likewise.
12536 (*compareqi_eq0): Likewise.
12537 (*arm_extendhisi2addsi): Likewise.
12538 (*arm_movdi): Likewise.
12539 (*thumb1_movdi_insn): Likewise.
12540 (*arm_movt): Likewise.
12541 (*thumb1_movsi_insn): Likewise.
12542 (pic_add_dot_plus_four): Likewise.
12543 (pic_add_dot_plus_eight): Likewise.
12544 (tls_load_dot_plus_eight): Likewise.
12545 (*thumb1_movhi_insn): Likewise.
12546 (*thumb1_movsf_insn): Likewise.
12547 (*movdf_soft_insn): Likewise.
12548 (*thumb_movdf_insn): Likewise.
12549 (cbranchsi4_insn): Likewise.
12550 (cbranchsi4_scratch): Likewise.
12551 (*negated_cbranchsi4): Likewise.
12552 (*tbit_cbranch): Likewise.
12553 (*tlobits_cbranch): Likewise.
12554 (*tstsi3_cbranch): Likewise.
12555 (*cbranchne_decr1): Likewise.
12556 (*addsi3_cbranch): Likewise.
12557 (*addsi3_cbranch_scratch): Likewise.
12558 (*arm_cmpdi_insn): Likewise.
12559 (*arm_cmpdi_unsig): Likewise.
12560 (*arm_cmpdi_zero): Likewise.
12561 (*thumb_cmpdi_zero): Likewise.
12562 (*deleted_compare): Likewise.
12563 (*mov_scc): Likewise.
12564 (*mov_negscc): Likewise.
12565 (*mov_notscc): Likewise.
12566 (*cstoresi_eq0_thumb1_insn): Likewise.
12567 (cstoresi_nltu_thumb1): Likewise.
12568 (cstoresi_ltu_thu): Likewise.
12569 (thumb1_addsi3_addgeu): Likewise.
12570 (*arm_jump): Likewise.
12571 (*thumb_jump): Likewise.
12572 (*check_arch2): Likewise.
12573 (arm_casesi_internal): Likewise.
12574 (thumb1_casesi_dispatch): Likewise.
12575 (*arm_indirect_jump): Likewise.
12576 (*thumb1_indirect_jump): Likewise.
12578 (*and_scc): Likewise.
12579 (*ior_scc): Likewise.
12580 (*compare_scc): Likewise.
12581 (*cond_move): Likewise.
12582 (*cond_arith): Likewise.
12583 (*cond_sub): Likewise.
12584 (*cmp_ite0): Likewise.
12585 (*cmp_ite1): Likewise.
12586 (*cmp_and): Likewise.
12587 (*cmp_ior): Likewise.
12588 (*ior_scc_scc): Likewise.
12589 (*ior_scc_scc_cmp): Likewise.
12590 (*and_scc_scc): Likewise.
12591 (*and_scc_scc_cmp): Likewise.
12592 (*and_scc_scc_nod): Likewise.
12593 (*negscc): Likewise.
12594 (movcond_addsi): Likewise.
12595 (movcond): Likewise.
12596 (*ifcompare_plus_move): Likewise.
12597 (*if_plus_move): Likewise.
12598 (*ifcompare_move_plus): Likewise.
12599 (*if_move_plus): Likewise.
12600 (*ifcompare_arith_arith): Likewise.
12601 (*if_arith_arith): Likewise.
12602 (*ifcompare_arith_move): Likewise.
12603 (*if_arith_move): Likewise.
12604 (*ifcompare_move_arith): Likewise.
12605 (*if_move_arith): Likewise.
12606 (*ifcompare_move_not): Likewise.
12607 (*if_move_not): Likewise.
12608 (*ifcompare_not_move): Likewise.
12609 (*if_not_move): Likewise.
12610 (*ifcompare_shift_move): Likewise.
12611 (*if_shift_move): Likewise.
12612 (*ifcompare_move_shift): Likewise.
12613 (*if_move_shift): Likewise.
12614 (*ifcompare_shift_shift): Likewise.
12615 (*ifcompare_not_arith): Likewise.
12616 (*ifcompare_arith_not): Likewise.
12617 (*if_arith_not): Likewise.
12618 (*ifcompare_neg_move): Likewise.
12619 (*if_neg_move): Likewise.
12620 (*ifcompare_move_neg): Likewise.
12621 (*if_move_neg): Likewise.
12622 (prologue_thumb1_interwork): Likewise.
12623 (*cond_move_not): Likewise.
12624 (*sign_extract_onebit): Likewise.
12625 (*not_signextract_onebit): Likewise.
12626 (stack_tie): Likewise.
12627 (align_4): Likewise.
12628 (align_8): Likewise.
12629 (consttable_end): Likewise.
12630 (consttable_1): Likewise.
12631 (consttable_2): Likewise.
12632 (consttable_4): Likewise.
12633 (consttable_8): Likewise.
12634 (consttable_16): Likewise.
12635 (*thumb1_tablejump): Likewise.
12636 (prefetch): Likewise.
12637 (force_register_use): Likewise.
12638 (thumb_eh_return): Likewise.
12639 (load_tp_hard): Likewise.
12640 (load_tp_soft): Likewise.
12641 (tlscall): Likewise.
12642 (*arm_movtas_ze): Likewise.
12643 (*arm_rev): Likewise.
12644 (*arm_revsh): Likewise.
12645 (*arm_rev16): Likewise.
12646 * config/arm/thumb2.md
12647 (*thumb2_smaxsi3): Likewise.
12648 (*thumb2_sminsi3): Likewise.
12649 (*thumb32_umaxsi3): Likewise.
12650 (*thumb2_uminsi3): Likewise.
12651 (*thumb2_negdi2): Likewise.
12652 (*thumb2_abssi2): Likewise.
12653 (*thumb2_neg_abss): Likewise.
12654 (*thumb2_movsi_insn): Likewise.
12655 (tls_load_dot_plus_four): Likewise.
12656 (*thumb2_movhi_insn): Likewise.
12657 (*thumb2_mov_scc): Likewise.
12658 (*thumb2_mov_negs): Likewise.
12659 (*thumb2_mov_negs): Likewise.
12660 (*thumb2_mov_nots): Likewise.
12661 (*thumb2_mov_nots): Likewise.
12662 (*thumb2_movsicc_): Likewise.
12663 (*thumb2_movsfcc_soft_insn): Likewise.
12664 (*thumb2_indirect_jump): Likewise.
12665 (*thumb2_and_scc): Likewise.
12666 (*thumb2_ior_scc): Likewise.
12667 (*thumb2_ior_scc_strict_it): Likewise.
12668 (*thumb2_cond_move): Likewise.
12669 (*thumb2_cond_arith): Likewise.
12670 (*thumb2_cond_ari): Likewise.
12671 (*thumb2_cond_sub): Likewise.
12672 (*thumb2_negscc): Likewise.
12673 (*thumb2_movcond): Likewise.
12674 (thumb2_casesi_internal): Likewise.
12675 (thumb2_casesi_internal_pic): Likewise.
12676 (*thumb2_alusi3_short): Likewise.
12677 (*thumb2_mov<mode>_shortim): Likewise.
12678 (*thumb2_addsi_short): Likewise.
12679 (*thumb2_subsi_short): Likewise.
12680 (thumb2_addsi3_compare0): Likewise.
12681 (*thumb2_cbz): Likewise.
12682 (*thumb2_cbnz): Likewise.
12683 (*thumb2_one_cmplsi2_short): Likewise.
12684 (*thumb2_negsi2_short): Likewise.
12685 (*orsi_notsi_si): Likewise.
12686 * config/arm/arm1020e.md: Update with new attributes.
12687 * config/arm/arm1026ejs.md: Update with new attributes.
12688 * config/arm/arm1136jfs.md: Update with new attributes.
12689 * config/arm/arm926ejs.md: Update with new attributes.
12690 * config/arm/cortex-a15.md: Update with new attributes.
12691 * config/arm/cortex-a5.md: Update with new attributes.
12692 * config/arm/cortex-a53.md: Update with new attributes.
12693 * config/arm/cortex-a7.md: Update with new attributes.
12694 * config/arm/cortex-a8.md: Update with new attributes.
12695 * config/arm/cortex-a9.md: Update with new attributes.
12696 * config/arm/cortex-m4.md: Update with new attributes.
12697 * config/arm/cortex-r4.md: Update with new attributes.
12698 * config/arm/fa526.md: Update with new attributes.
12699 * config/arm/fa606te.md: Update with new attributes.
12700 * config/arm/fa626te.md: Update with new attributes.
12701 * config/arm/fa726te.md: Update with new attributes.
12703 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
12705 * config/aarch64/aarch64-simd.md
12706 (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
12707 <vwx> iterator to ensure correct register choice.
12708 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
12709 (aarch64_sqdmull_n<mode>): Likewise.
12710 (aarch64_sqdmull2_n<mode>_internal): Likewise.
12711 * config/aarch64/arm_neon.h
12712 (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
12713 (vml<as><q>_n_<su>16): Likewise.
12714 (vml<as>l_high_lane<q>_<su>16): Likewise.
12715 (vml<as>l_high_n_<su>16): Likewise.
12716 (vml<as>l_lane<q>_<su>16): Likewise.
12717 (vml<as>l_n_<su>16): Likewise.
12718 (vmul<q>_lane<q>_<su>16): Likewise.
12719 (vmul<q>_n_<su>16): Likewise.
12720 (vmull_lane<q>_<su>16): Likewise.
12721 (vmull_n_<su>16): Likewise.
12722 (vmull_high_lane<q>_<su>16): Likewise.
12723 (vmull_high_n_<su>16): Likewise.
12724 (vqrdmulh<q>_n_s16): Likewise.
12726 2013-09-06 Tejas Belagod <tejas.belagod@arm.com>
12728 * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
12729 have the correct lane parameter.
12731 2013-09-06 Richard Biener <rguenther@suse.de>
12733 * cfganal.c (control_dependences::~control_dependences):
12734 Properly free all of the vector.
12736 2013-09-06 Kirill Yukhin <kirill.yukhin@intel.com>
12739 * config/i386/i386.c (ix86_conditional_register_usage):
12740 Proper initialize extended SSE registers.
12742 2013-09-06 Jan Hubicka <jh@suse.cz>
12744 PR tree-optimization/58311
12745 * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
12747 2013-09-06 Jan Hubicka <jh@suse.cz>
12749 * Makefile.in (tree-sra.o): Update dependencies.
12750 * tree-sra.c: Include ipa-utils.h
12751 (scan_function): Use recursive_call_p.
12752 (has_caller_p): New function.
12753 (cgraph_for_node_and_aliases): Count also callers of aliases.
12755 2013-09-06 Jan Hubicka <jh@suse.cz>
12757 PR middle-end/58094
12758 * cgraph.h (symtab_semantically_equivalent_p): Declare.
12759 * tree-tailcall.c: Include ipa-utils.h.
12760 (find_tail_calls): Use it.
12761 * ipa-pure-const.c (check_call): Likewise.
12762 * ipa-utils.c (recursive_call_p): New function.
12763 * ipa-utils.h (recursive_call_p): Dclare.
12764 * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
12765 (symtab_semantically_equivalent_p): New function.
12766 * Makefile.in (tree-tailcall.o): Update dependencies.
12768 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
12770 * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
12771 non-inlinable part.
12773 2013-09-06 Richard Biener <rguenther@suse.de>
12775 * lto-streamer.h (lto_global_var_decls): Remove.
12776 * Makefile.in (OBJS): Remove lto-symtab.o.
12777 (lto-symtab.o): Remove.
12778 (GTFILES): Remove lto-symtab.c
12779 * lto-symtab.c: Move to lto/
12781 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12783 * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
12784 (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
12785 (UNSPEC_FPINT_RINT): New constant definitions.
12786 (FPINT, fpint_name, fpint_roundingmode): New integer iterator
12787 definition with 2 attributes.
12788 ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
12789 ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
12792 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12794 * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
12795 ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
12796 Set the mnemonic attribute to "bcr_flush". Set the "z196prop"
12797 attribute to "z196_alone".
12798 * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
12801 2013-09-06 Richard Biener <rguenther@suse.de>
12803 * basic-block.h (class control_dependences): New.
12804 * tree-ssa-dce.c (control_dependence_map): Remove.
12806 (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
12807 (set_control_dependence_map_bit, clear_control_dependence_bitmap,
12808 find_pdom, find_control_dependence, find_all_control_dependences):
12810 (mark_control_dependent_edges_necessary,
12811 find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
12812 tree_dce_done, perform_tree_ssa_dce): Adjust.
12813 * cfganal.c (set_control_dependence_map_bit,
12814 clear_control_dependence_bitmap, find_pdom, find_control_dependence,
12815 find_all_control_dependences): Move from tree-ssa-dce.c and
12816 implement as methods of control_dependences class.
12817 (control_dependences::control_dependences): New.
12818 (control_dependences::~control_dependences): Likewise.
12819 (control_dependences::get_edges_dependent_on): Likewise.
12820 (control_dependences::get_edge): Likewise.
12822 2013-09-04 Jan Hubicka <jh@suse.cz>
12824 * tree.c (types_same_for_odr): Drop overactive check.
12825 * ipa-devirt.c (hash_type_name): Likewise.
12827 2013-09-04 Jan Hubicka <jh@suse.cz>
12829 * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
12830 (analyze_functions): ... here.
12832 2013-09-04 Jan Hubicka <jh@suse.cz>
12834 PR middle-end/58201
12835 * cgraphunit.c (analyze_functions): Clear AUX fields
12836 after processing; initialize assembler name has.
12838 2013-09-05 Jeff Law <law@redhat.com>
12840 * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
12841 from thread_around_empty_block. Record threading path into PATH.
12842 Recurse if threading through the initial block is successful.
12843 (thread_across_edge): Corresponding changes to slightly simplify.
12845 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
12847 * config/aarch64/aarch64.md
12848 (type): Remove frecpe, frecps, frecpx.
12849 (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
12850 fix to be a TARGET_SIMD instruction.
12851 (aarch64_frecps): Remove.
12852 * config/aarch64/aarch64-simd.md
12853 (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
12854 (aarch64_frecps<mode>): Handle all float/vector of float modes.
12856 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
12857 Sofiane Naci <sofiane.naci@arm.com>
12859 * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
12860 into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
12861 Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
12862 "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
12863 "logic_reg", "logics_reg", "rev". Expand "arlo_shift" into
12864 "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
12865 "logics_shift_imm". Expand "arlo_shift_reg" into "alu_shift_reg",
12866 "alus_shift_reg", "logic_shift_reg", "logics_shift_reg". Expand "clz"
12867 into "clz, "rbit". Rename "shift" to "shift_imm".
12868 * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
12869 changes. Update for attribute changes all occurrences of arlo_* and
12871 * config/arm/arm-fixed.md: Update for attribute changes
12872 all occurrences of arlo_* types.
12873 * config/arm/thumb2.md: Update for attribute changes all occurrences
12875 * config/arm/arm.c (xscale_sched_adjust_cost): (rtx insn, rtx
12876 (cortexa7_older_only): Likewise.
12877 (cortexa7_younger): Likewise.
12878 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
12879 (1020alu_shift_op): Likewise.
12880 (1020alu_shift_reg_op): Likewise.
12881 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
12882 (alu_shift_op): Likewise.
12883 (alu_shift_reg_op): Likewise.
12884 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
12885 (11_alu_shift_op): Likewise.
12886 (11_alu_shift_reg_op): Likewise.
12887 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
12888 (9_alu_shift_reg_op): Likewise.
12889 * config/arm/cortex-a15.md (cortex_a15_alu): Update for
12891 (cortex_a15_alu_shift): Likewise.
12892 (cortex_a15_alu_shift_reg): Likewise.
12893 * config/arm/cortex-a5.md (cortex_a5_alu): Update for
12895 (cortex_a5_alu_shift): Likewise.
12896 * config/arm/cortex-a53.md (cortex_a53_alu): Update for
12898 (cortex_a53_alu_shift): Likewise.
12899 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
12901 (cortex_a7_alu_reg): Likewise.
12902 (cortex_a7_alu_shift): Likewise.
12903 * config/arm/cortex-a8.md (cortex_a8_alu): Update for
12905 (cortex_a8_alu_shift): Likewise.
12906 (cortex_a8_alu_shift_reg): Likewise.
12907 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
12908 (cortex_a9_dp_shift): Likewise.
12909 * config/arm/cortex-m4.md (cortex_m4_alu): Update for
12911 * config/arm/cortex-r4.md
12912 (cortex_r4_alu): Update for attribute changes.
12913 (cortex_r4_mov): Likewise.
12914 (cortex_r4_alu_shift_reg): Likewise.
12915 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
12916 (526_alu_shift_op): Likewise.
12917 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
12918 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
12919 (626te_alu_shift_op): Likewise.
12920 * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
12921 (726te_alu_shift_op): Likewise.
12922 (726te_alu_shift_reg_op): Likewise.
12923 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
12924 (mp626_alu_shift_op): Likewise.
12925 * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
12926 (pj4_alu_conds): Likewise.
12927 (pj4_shift): Likewise.
12928 (pj4_shift_conds): Likewise.
12929 (pj4_alu_shift): Likewise.
12930 (pj4_alu_shift_conds): Likewise.
12931 * config/aarch64/aarch64.md: Update for attribute change
12932 all occurrences of arlo_* and shift* types.
12934 2013-09-05 Mike Stump <mikestump@comcast.net>
12936 * tree.h: Move documentation for tree_function_decl to tree-core.h
12937 with the declaration.
12939 2013-09-05 Peter Bergner <bergner@vnet.ibm.com>
12942 * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
12943 looking for widest mode.
12945 2013-09-05 Eric Botcazou <ebotcazou@adacore.com>
12947 * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
12949 2013-09-05 Richard Biener <rguenther@suse.de>
12951 PR tree-optimization/58137
12952 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
12953 Do not create vectors of pointers.
12954 * tree-vect-loop.c (get_initial_def_for_induction): Use proper
12955 types for the components of the vector initializer.
12956 * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
12957 allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
12959 2013-09-05 Martin Jambor <mjambor@suse.cz>
12961 * ipa-prop.c (remove_described_reference): Accept missing references,
12962 return false if that hppens, otherwise return true.
12963 (cgraph_node_for_jfunc): New function.
12964 (try_decrement_rdesc_refcount): Likewise.
12965 (try_make_edge_direct_simple_call): Use them.
12966 (ipa_edge_removal_hook): Remove references from rdescs.
12967 (ipa_edge_duplication_hook): Clone rdescs and their references
12968 when the new edge has the same caller as the old one.
12969 * cgraph.c (cgraph_resolve_speculation): Remove speculative
12970 reference before removing any edges.
12972 2013-09-05 Richard Earnshaw <rearnsha@arm.com>
12974 * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
12976 * thumb2.md (thumb2_storewb_parisi): New pattern.
12978 2013-09-05 Yufeng Zhang <yufeng.zhang@arm.com>
12980 * config/aarch64/aarch64-option-extensions.def: Add
12981 AARCH64_OPT_EXTENSION of 'crc'.
12982 * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
12983 (AARCH64_ISA_CRC): Ditto.
12984 * doc/invoke.texi (-march and -mcpu feature modifiers): Add
12985 description of the CRC extension.
12987 2013-09-05 Alexander Ivchenko <alexander.ivchenko@intel.com>
12989 * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
12990 * config/rs6000/linux.h: Ditto.
12991 * alpha/linux.h: Ditto.
12992 * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
12993 no_c99_libc_has_function.
12994 * config/c6x/uclinux-elf.h: Ditto.
12995 * config/lm32/uclinux-elf.h: Ditto.
12996 * config/m68k/uclinux.h: Ditto.
12997 * config/moxie/uclinux.h: Ditto.
12998 * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
12999 (crisv32-*-linux*, cris-*-linux*): Ditto.
13000 * config/bfin/bfin.c: Include "tm_p.h".
13002 2013-09-05 Richard Biener <rguenther@suse.de>
13004 * tree-vect-loop.c (vect_analyze_loop_operations): Properly
13005 check for a definition without a basic-block.
13007 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
13008 Sofiane Naci <sofiane.naci@arm.com>
13010 * config/aarch64/aarch64.md
13011 (*movti_aarch64): Rename r_2_f and f_2_r.
13012 (*movsf_aarch64): Likewise.
13013 (*movdf_aarch64): Likewise.
13014 (*movtf_aarch64): Likewise.
13015 (aarch64_movdi_<mode>low): Likewise.
13016 (aarch64_movdi_<mode>high): Likewise.
13017 (aarch64_mov<mode>high_di): Likewise.
13018 (aarch64_mov<mode>low_di): Likewise.
13019 (aarch64_movtilow_tilow): Likewise.
13020 * config/arm/arm.md (attribute "neon_type"): Delete. Move attribute
13021 values to config/arm/types.md
13022 (attribute "conds"): Update for attribute change.
13023 (anddi3_insn): Likewise.
13024 (iordi3_insn): Likewise.
13025 (xordi3_insn): Likewise.
13026 (one_cmpldi2): Likewise.
13027 * config/arm/types.md (type): Add Neon types.
13028 * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
13029 use "type" attribute.
13030 (movmisalign<mode>_neon_store): Likewise.
13031 (movmisalign<mode>_neon_load): Likewise.
13032 (vec_set<mode>_internal): Likewise.
13033 (vec_setv2di_internal): Likewise.
13034 (vec_extract<mode>): Likewise.
13035 (vec_extractv2di): Likewise.
13036 (add<mode>3_neon): Likewise.
13037 (adddi3_neon): Likewise.
13038 (sub<mode>3_neon): Likewise.
13039 (subdi3_neon): Likewise.
13040 (mul<mode>3_neon): Likewise.
13041 (mul<mode>3add<mode>_neon): Likewise.
13042 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
13043 (fma<VCVTF:mode>4)): Likewise.
13044 (fma<VCVTF:mode>4_intrinsic): Likewise.
13045 (fmsub<VCVTF:mode>4)): Likewise.
13046 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
13047 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
13048 (ior<mode>3): Likewise.
13049 (and<mode>3): Likewise.
13050 (anddi3_neon): Likewise.
13051 (orn<mode>3_neon): Likewise.
13052 (orndi3_neon): Likewise.
13053 (bic<mode>3_neon): Likewise.
13054 (bicdi3_neon): Likewise.
13055 (xor<mode>3): Likewise.
13056 (one_cmpl<mode>2): Likewise.
13057 (abs<mode>2): Likewise.
13058 (neg<mode>2): Likewise.
13059 (umin<mode>3_neon): Likewise.
13060 (umax<mode>3_neon): Likewise.
13061 (smin<mode>3_neon): Likewise.
13062 (smax<mode>3_neon): Likewise.
13063 (vashl<mode>3): Likewise.
13064 (vashr<mode>3_imm): Likewise.
13065 (vlshr<mode>3_imm): Likewise.
13066 (ashl<mode>3_signed): Likewise.
13067 (ashl<mode>3_unsigned): Likewise.
13068 (neon_load_count): Likewise.
13069 (ashldi3_neon_noclobber): Likewise.
13070 (signed_shift_di3_neon): Likewise.
13071 (unsigned_shift_di3_neon): Likewise.
13072 (ashrdi3_neon_imm_noclobber): Likewise.
13073 (lshrdi3_neon_imm_noclobber): Likewise.
13074 (widen_ssum<mode>3): Likewise.
13075 (widen_usum<mode>3): Likewise.
13076 (quad_halves_<code>v4si): Likewise.
13077 (quad_halves_<code>v4sf): Likewise.
13078 (quad_halves_<code>v8hi): Likewise.
13079 (quad_halves_<code>v16qi): Likewise.
13080 (reduc_splus_v2di): Likewise.
13081 (neon_vpadd_internal<mode>): Likewise.
13082 (neon_vpsmin<mode>): Likewise.
13083 (neon_vpsmax<mode>): Likewise.
13084 (neon_vpumin<mode>): Likewise.
13085 (neon_vpumax<mode>): Likewise.
13086 (ss_add<mode>_neon): Likewise.
13087 (us_add<mode>_neon): Likewise.
13088 (ss_sub<mode>_neon): Likewise.
13089 (us_sub<mode>_neon): Likewise.
13090 (neon_vadd<mode>_unspec): Likewise.
13091 (neon_vaddl<mode>): Likewise.
13092 (neon_vaddw<mode>): Likewise.
13093 (neon_vhadd<mode>): Likewise.
13094 (neon_vqadd<mode>): Likewise.
13095 (neon_vaddhn<mode>): Likewise.
13096 (neon_vmul<mode>): Likewise.
13097 (neon_vmla<mode>): Likewise.
13098 (neon_vmlal<mode>): Likewise.
13099 (neon_vmls<mode>): Likewise.
13100 (neon_vmlsl<mode>): Likewise.
13101 (neon_vqdmulh<mode>): Likewise.
13102 (neon_vqdmlal<mode>): Likewise.
13103 (neon_vqdmlsl<mode>): Likewise.
13104 (neon_vmull<mode>): Likewise.
13105 (neon_vqdmull<mode>): Likewise.
13106 (neon_vsub<mode>_unspec): Likewise.
13107 (neon_vsubl<mode>): Likewise.
13108 (neon_vsubw<mode>): Likewise.
13109 (neon_vqsub<mode>): Likewise.
13110 (neon_vhsub<mode>): Likewise.
13111 (neon_vsubhn<mode>): Likewise.
13112 (neon_vceq<mode>): Likewise.
13113 (neon_vcge<mode>): Likewise.
13114 (neon_vcgeu<mode>): Likewise.
13115 (neon_vcgt<mode>): Likewise.
13116 (neon_vcgtu<mode>): Likewise.
13117 (neon_vcle<mode>): Likewise.
13118 (neon_vclt<mode>): Likewise.
13119 (neon_vcage<mode>): Likewise.
13120 (neon_vcagt<mode>): Likewise.
13121 (neon_vtst<mode>): Likewise.
13122 (neon_vabd<mode>): Likewise.
13123 (neon_vabdl<mode>): Likewise.
13124 (neon_vaba<mode>): Likewise.
13125 (neon_vabal<mode>): Likewise.
13126 (neon_vmax<mode>): Likewise.
13127 (neon_vmin<mode>): Likewise.
13128 (neon_vpaddl<mode>): Likewise.
13129 (neon_vpadal<mode>): Likewise.
13130 (neon_vpmax<mode>): Likewise.
13131 (neon_vpmin<mode>): Likewise.
13132 (neon_vrecps<mode>): Likewise.
13133 (neon_vrsqrts<mode>): Likewise.
13134 (neon_vqabs<mode>): Likewise.
13135 (neon_vqneg<mode>): Likewise.
13136 (neon_vcls<mode>): Likewise.
13137 (clz<mode>2): Likewise.
13138 (popcount<mode>2): Likewise.
13139 (neon_vrecpe): Likewise.
13140 (neon_vrsqrte): Likewise.
13141 (neon_vget_lane<mode>_sext_internal): Likewise.
13142 (neon_vget_lane<mode>_zext_internal): Likewise.
13143 (neon_vdup_n<mode>): Likewise.
13144 (neon_vdup_nv2di): Likewise.
13145 (neon_vdpu_lane<mode>_internal): Likewise.
13146 (neon_vswp<mode>): Likewise.
13147 (float<mode><V_cvtto>2): Likewise.
13148 (floatuns<mode><V_cvtto>2): Likewise.
13149 (fix_trunc<mode><V_cvtto>)2): Likewise
13150 (fixuns_trunc<mode><V_cvtto)2): Likewise.
13151 (neon_vcvt<mode>): Likewise.
13152 (neon_vcvtv4sfv4hf): Likewise.
13153 (neon_vcvtv4hfv4sf): Likewise.
13154 (neon_vcvt_n<mode>): Likewise.
13155 (neon_vmovn<mode>): Likewise.
13156 (neon_vqmovn<mode>): Likewise.
13157 (neon_vqmovun<mode>): Likewise.
13158 (neon_vmovl<mode>): Likewise.
13159 (neon_vmul_lane<mode>): Likewise.
13160 (neon_vmull_lane<mode>): Likewise.
13161 (neon_vqdmull_lane<mode>): Likewise.
13162 (neon_vqdmulh_lane<mode>): Likewise.
13163 (neon_vmla_lane<mode>): Likewise.
13164 (neon_vmlal_lane<mode>): Likewise.
13165 (neon_vqdmlal_lane<mode>): Likewise.
13166 (neon_vmls_lane<mode>): Likewise.
13167 (neon_vmlsl_lane<mode>): Likewise.
13168 (neon_vqdmlsl_lane<mode>): Likewise.
13169 (neon_vext<mode>): Likewise.
13170 (neon_vrev64<mode>): Likewise.
13171 (neon_vrev32<mode>): Likewise.
13172 (neon_vrev16<mode>): Likewise.
13173 (neon_vbsl<mode>_internal): Likewise.
13174 (neon_vshl<mode>): Likewise.
13175 (neon_vqshl<mode>): Likewise.
13176 (neon_vshr_n<mode>): Likewise.
13177 (neon_vshrn_n<mode>): Likewise.
13178 (neon_vqshrn_n<mode>): Likewise.
13179 (neon_vqshrun_n<mode>): Likewise.
13180 (neon_vshl_n<mode>): Likewise.
13181 (neon_vqshl_n<mode>): Likewise.
13182 (neon_vqshlu_n<mode>): Likewise.
13183 (neon_vshll_n<mode>): Likewise.
13184 (neon_vsra_n<mode>): Likewise.
13185 (neon_vsri_n<mode>): Likewise.
13186 (neon_vsli_n<mode>): Likewise.
13187 (neon_vtbl1v8qi): Likewise.
13188 (neon_vtbl2v8qi): Likewise.
13189 (neon_vtbl3v8qi): Likewise.
13190 (neon_vtbl4v8qi): Likewise.
13191 (neon_vtbx1v8qi): Likewise.
13192 (neon_vtbx2v8qi): Likewise.
13193 (neon_vtbx3v8qi): Likewise.
13194 (neon_vtbx4v8qi): Likewise.
13195 (neon_vtrn<mode>_internal): Likewise.
13196 (neon_vzip<mode>_internal): Likewise.
13197 (neon_vuzp<mode>_internal): Likewise.
13198 (neon_vld1<mode>): Likewise.
13199 (neon_vld1_lane<mode>): Likewise.
13200 (neon_vld1_dup<mode>): Likewise.
13201 (neon_vld1_dupv2di): Likewise.
13202 (neon_vst1<mode>): Likewise.
13203 (neon_vst1_lane<mode>): Likewise.
13204 (neon_vld2<mode>): Likewise.
13205 (neon_vld2_lane<mode>): Likewise.
13206 (neon_vld2_dup<mode>): Likewise.
13207 (neon_vst2<mode>): Likewise.
13208 (neon_vst2_lane<mode>): Likewise.
13209 (neon_vld3<mode>): Likewise.
13210 (neon_vld3qa<mode>): Likewise.
13211 (neon_vld3qb<mode>): Likewise.
13212 (neon_vld3_lane<mode>): Likewise.
13213 (neon_vld3_dup<mode>): Likewise.
13214 (neon_vst3<mode>): Likewise.
13215 (neon_vst3qa<mode>): Likewise.
13216 (neon_vst3qb<mode>): Likewise.
13217 (neon_vst3_lane<mode>): Likewise.
13218 (neon_vld4<mode>): Likewise.
13219 (neon_vld4qa<mode>): Likewise.
13220 (neon_vld4qb<mode>): Likewise.
13221 (neon_vld4_lane<mode>): Likewise.
13222 (neon_vld4_dup<mode>): Likewise.
13223 (neon_vst4<mode>): Likewise.
13224 (neon_vst4qa<mode>): Likewise.
13225 (neon_vst4qb<mode>): Likewise.
13226 (neon_vst4_lane<mode>): Likewise.
13227 (neon_vec_unpack<US>_lo_<mode>): Likewise.
13228 (neon_vec_unpack<US>_hi_<mode>): Likewise.
13229 (neon_vec_<US>mult_lo_<mode>): Likewise.
13230 (neon_vec_<US>mult_hi_<mode>): Likewise.
13231 (neon_vec_<US>shiftl_<mode>): Likewise.
13232 (neon_unpack<US>_<mode>): Likewise.
13233 (neon_vec_<US>mult_<mode>): Likewise.
13234 (vec_pack_trunc_<mode>): Likewise.
13235 (neon_vec_pack_trunk_<mode>): Likewise.
13236 (neon_vabd<mode>_2): Likewise.
13237 (neon_vabd<mode>_3): Likewise.
13238 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
13239 (thumb2_movsi_vfp): Likewise.
13240 (movdi_vfp): Likewise.
13241 (movdi_vfp_cortexa8): Likewise.
13242 (movhf_vfp_neon): Likewise.
13243 (movhf_vfp): Likewiwse.
13244 (movsf_vfp): Likewiwse.
13245 (thumb2_movsf_vfp): Likewiwse.
13246 (movdf_vfp): Likewise.
13247 (thumb2_movdf_vfp): Likewise.
13248 (movsfcc_vfp): Likewise.
13249 (thumb2_movsfcc_vfp): Likewise.
13250 (movdfcc_vfp): Likewise.
13251 (thumb2_movdfcc_vfp): Likewise.
13252 * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
13253 * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
13254 (v10_v2c): Likewise.
13255 * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
13257 (cortex_a15_neon_int_2): Likewise.
13258 (cortex_a15_neon_int_3): Likewise.
13259 (cortex_a15_neon_int_4): Likewise.
13260 (cortex_a15_neon_int_5): Likewise.
13261 (cortex_a15_neon_vqneg_vqabs): Likewise.
13262 (cortex_a15_neon_vmov): Likewise.
13263 (cortex_a15_neon_vaba): Likewise.
13264 (cortex_a15_neon_vaba_qqq): Likewise.
13265 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13266 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
13267 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
13268 scalar_64_32_long_scalar): Likewise.
13269 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13270 (cortex_a15_neon_mla_qqq_8_16): Likewise.
13271 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
13272 lotype_qdd_64_32_long): Likewise.
13273 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
13274 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
13275 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
13276 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
13277 (cortex_a15_neon_shift_1): Likewise.
13278 (cortex_a15_neon_shift_2): Likewise.
13279 (cortex_a15_neon_shift_3): Likewise.
13280 (cortex_a15_neon_vshl_ddd): Likewise.
13281 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
13282 (cortex_a15_neon_vsra_vrsra): Likewise.
13283 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
13284 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
13285 (cortex_a15_neon_fp_vmul_ddd): Likewise.
13286 (cortex_a15_neon_fp_vmul_qqd): Likewise.
13287 (cortex_a15_neon_fp_vmla_ddd): Likewise.
13288 (cortex_a15_neon_fp_vmla_qqq): Likewise.
13289 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
13290 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
13291 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
13292 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
13293 (cortex_a15_neon_bp_simple): Likewise.
13294 (cortex_a15_neon_bp_2cycle): Likewise.
13295 (cortex_a15_neon_bp_3cycle): Likewise.
13296 (cortex_a15_neon_vld1_1_2_regs): Likewise.
13297 (cortex_a15_neon_vld1_3_4_regs): Likewise.
13298 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
13299 (cortex_a15_neon_vld2_4_regs): Likewise.
13300 (cortex_a15_neon_vld3_vld4): Likewise.
13301 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
13302 (cortex_a15_neon_vst1_3_4_regs): Likewise.
13303 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
13304 (cortex_a15_neon_vst3_vst4): Likewise.
13305 (cortex_a15_neon_vld1_vld2_lane): Likewise.
13306 (cortex_a15_neon_vld3_vld4_lane" 10
13307 (cortex_a15_neon_vst1_vst2_lane): Likewise.
13308 (cortex_a15_neon_vst3_vst4_lane): Likewise.
13309 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
13310 (cortex_a15_neon_ldm_2): Likewise.0
13311 (cortex_a15_neon_stm_2): Likewise.
13312 (cortex_a15_neon_mcr): Likewise.
13313 (cortex_a15_neon_mcr_2_mcrr): Likewise.
13314 (cortex_a15_neon_mrc): Likewise.
13315 (cortex_a15_neon_mrrc): Likewise.
13316 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
13318 (cortex_a15_alu_shift): Likewise.
13319 (cortex_a15_alu_shift_reg): Likewise.
13320 (cortex_a15_mult32): Likewise.
13321 (cortex_a15_mult64): Likewise.
13322 (cortex_a15_block): Likewise.
13323 (cortex_a15_branch): Likewise.
13324 (cortex_a15_load1): Likewise.
13325 (cortex_a15_load3): Likewise.
13326 (cortex_a15_store1): Likewise.
13327 (cortex_a15_store3): Likewise.
13328 (cortex_a15_call): Likewise.
13329 * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
13330 (cortex_a5_f2r): Likewise.
13331 * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
13333 (cortex_a53_f2r): Likewise.
13334 * config/arm/cortex-a7.md
13335 (cortex_a7_branch): Update for attribute change.
13336 (cortex_a7_call): Likewise.
13337 (cortex_a7_alu_imm): Likewise.
13338 (cortex_a7_alu_reg): Likewise.
13339 (cortex_a7_alu_shift): Likewise.
13340 (cortex_a7_mul): Likewise.
13341 (cortex_a7_load1): Likewise.
13342 (cortex_a7_store1): Likewise.
13343 (cortex_a7_load2): Likewise.
13344 (cortex_a7_store2): Likewise.
13345 (cortex_a7_load3): Likewise.
13346 (cortex_a7_store3): Likewise.
13347 (cortex_a7_load4): Likewise.
13348 (cortex_a7_store4): Likewise.
13349 (cortex_a7_fpalu): Likewise.
13350 (cortex_a7_fconst): Likewise.
13351 (cortex_a7_fpmuls): Likewise.
13352 (cortex_a7_neon_mul): Likewise.
13353 (cortex_a7_fpmacs): Likewise.
13354 (cortex_a7_neon_mla: Likewise.
13355 (cortex_a7_fpmuld: Likewise.
13356 (cortex_a7_fpmacd: Likewise.
13357 (cortex_a7_fpfmad: Likewise.
13358 (cortex_a7_fdivs: Likewise.
13359 (cortex_a7_fdivd: Likewise.
13360 (cortex_a7_r2f: Likewise.
13361 (cortex_a7_f2r: Likewise.
13362 (cortex_a7_f_flags: Likewise.
13363 (cortex_a7_f_loads: Likewise.
13364 (cortex_a7_f_loadd: Likewise.
13365 (cortex_a7_f_stores: Likewise.
13366 (cortex_a7_f_stored: Likewise.
13367 (cortex_a7_neon): Likewise.
13368 * config/arm/cortex-a8-neon.md
13369 (cortex_a8_neon_mrc): Update for attribute change.
13370 (cortex_a8_neon_mrrc): Likewise.
13371 (cortex_a8_neon_int_1): Likewise.
13372 (cortex_a8_neon_int_2): Likewise.
13373 (cortex_a8_neon_int_3): Likewise.
13374 (cortex_a8_neon_int_4): Likewise.
13375 (cortex_a8_neon_int_5): Likewise.
13376 (cortex_a8_neon_vqneg_vqabs): Likewise.
13377 (cortex_a8_neon_vmov): Likewise.
13378 (cortex_a8_neon_vaba): Likewise.
13379 (cortex_a8_neon_vaba_qqq): Likewise.
13380 (cortex_a8_neon_vsma): Likewise.
13381 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13382 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
13383 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
13384 long_scalar): Likewise.
13385 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13386 (cortex_a8_neon_mla_qqq_8_16): Likewise.
13387 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
13388 long_scalar_qdd_64_32_long): Likewise.
13389 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
13390 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
13391 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
13392 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
13393 (cortex_a8_neon_shift_1): Likewise.
13394 (cortex_a8_neon_shift_2): Likewise.
13395 (cortex_a8_neon_shift_3): Likewise.
13396 (cortex_a8_neon_vshl_ddd): Likewise.
13397 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
13398 (cortex_a8_neon_vsra_vrsra): Likewise.
13399 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
13400 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
13401 (cortex_a8_neon_fp_vsum): Likewise.
13402 (cortex_a8_neon_fp_vmul_ddd): Likewise.
13403 (cortex_a8_neon_fp_vmul_qqd): Likewise.
13404 (cortex_a8_neon_fp_vmla_ddd): Likewise.
13405 (cortex_a8_neon_fp_vmla_qqq): Likewise.
13406 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
13407 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
13408 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
13409 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
13410 (cortex_a8_neon_bp_simple): Likewise.
13411 (cortex_a8_neon_bp_2cycle): Likewise.
13412 (cortex_a8_neon_bp_3cycle): Likewise.
13413 (cortex_a8_neon_ldr): Likewise.
13414 (cortex_a8_neon_str): Likewise.
13415 (cortex_a8_neon_vld1_1_2_regs): Likewise.
13416 (cortex_a8_neon_vld1_3_4_regs): Likewise.
13417 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
13418 (cortex_a8_neon_vld2_4_regs): Likewise.
13419 (cortex_a8_neon_vld3_vld4): Likewise.
13420 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
13421 (cortex_a8_neon_vst1_3_4_regs): Likewise.
13422 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
13423 (cortex_a8_neon_vst3_vst4): Likewise.
13424 (cortex_a8_neon_vld1_vld2_lane): Likewise.
13425 (cortex_a8_neon_vld3_vld4_lane): Likewise.
13426 (cortex_a8_neon_vst1_vst2_lane): Likewise.
13427 (cortex_a8_neon_vst3_vst4_lane): Likewise.
13428 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
13429 (cortex_a8_neon_mcr): Likewise.
13430 (cortex_a8_neon_mcr_2_mcrr): Likewise.
13431 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
13432 * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
13434 (ca9_neon_mrrc): Likewise.
13435 (cortex_a9_neon_int_1): Likewise.
13436 (cortex_a9_neon_int_2): Likewise.
13437 (cortex_a9_neon_int_3): Likewise.
13438 (cortex_a9_neon_int_4): Likewise.
13439 (cortex_a9_neon_int_5): Likewise.
13440 (cortex_a9_neon_vqneg_vqabs): Likewise.
13441 (cortex_a9_neon_vmov): Likewise.
13442 (cortex_a9_neon_vaba): Likewise.
13443 (cortex_a9_neon_vaba_qqq): Likewise.
13444 (cortex_a9_neon_vsma): Likewise.
13445 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13446 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
13447 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
13448 long_scalar): Likewise.
13449 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13450 (cortex_a9_neon_mla_qqq_8_16): Likewise.
13451 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
13452 long_scalar_qdd_64_32_long): Likewise.
13453 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
13454 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
13455 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
13456 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
13457 (cortex_a9_neon_shift_1): Likewise.
13458 (cortex_a9_neon_shift_2): Likewise.
13459 (cortex_a9_neon_shift_3): Likewise.
13460 (cortex_a9_neon_vshl_ddd): Likewise.
13461 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
13462 (cortex_a9_neon_vsra_vrsra): Likewise.
13463 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
13464 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
13465 (cortex_a9_neon_fp_vsum): Likewise.
13466 (cortex_a9_neon_fp_vmul_ddd): Likewise.
13467 (cortex_a9_neon_fp_vmul_qqd): Likewise.
13468 (cortex_a9_neon_fp_vmla_ddd): Likewise.
13469 (cortex_a9_neon_fp_vmla_qqq): Likewise.
13470 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
13471 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
13472 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
13473 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
13474 (cortex_a9_neon_bp_simple): Likewise.
13475 (cortex_a9_neon_bp_2cycle): Likewise.
13476 (cortex_a9_neon_bp_3cycle): Likewise.
13477 (cortex_a9_neon_ldr): Likewise.
13478 (cortex_a9_neon_str): Likewise.
13479 (cortex_a9_neon_vld1_1_2_regs): Likewise.
13480 (cortex_a9_neon_vld1_3_4_regs): Likewise.
13481 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
13482 (cortex_a9_neon_vld2_4_regs): Likewise.
13483 (cortex_a9_neon_vld3_vld4): Likewise.
13484 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
13485 (cortex_a9_neon_vst1_3_4_regs): Likewise.
13486 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
13487 (cortex_a9_neon_vst3_vst4): Likewise.
13488 (cortex_a9_neon_vld1_vld2_lane): Likewise.
13489 (cortex_a9_neon_vld3_vld4_lane): Likewise.
13490 (cortex_a9_neon_vst1_vst2_lane): Likewise.
13491 (cortex_a9_neon_vst3_vst4_lane): Likewise.
13492 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
13493 (cortex_a9_neon_mcr): Likewise.
13494 (cortex_a9_neon_mcr_2_mcrr): Likewise.
13495 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
13496 (cortex_a9_fps): Likewise.
13497 * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
13499 (cortex_m4_fmuls): Likewise.
13500 * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
13502 (cortex_r4_mrc): Likewise.
13503 * config/arm/iterators.md: Update comment referring to neon_type.
13504 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
13505 (iwmmxt_movsi_insn): Likewise.
13506 * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
13508 (pj4_core_to_vfp): Likewise.
13509 * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
13511 * config/arm/vfp11.md (vfp_fload): Update for attribute change.
13512 (vfp_fstore): Likewise.
13513 * doc/md.texi: Change references to neon_type to refer to type.
13515 2013-09-04 Dodji Seketeli <dodji@redhat.com>
13517 * tree.h (DECL_BUILT_IN): Fix typo in comment.
13519 2013-09-04 David Edelsohn <dje.gcc@gmail.com>
13521 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
13522 lglobl if not weak.
13524 2013-09-04 Easwaran Raman <eraman@google.com>
13526 PR middle-end/57370
13527 * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
13528 (build_and_add_sum): Use it.
13529 (appears_later_in_bb): Simplify code.
13531 2013-09-04 Teresa Johnson <tejohnson@google.com>
13533 * dumpfile.c (dump_finish): Don't close stderr/stdout.
13535 2013-09-04 James Greenhalgh <james.greenhalgh@arm.com>
13537 * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
13539 2013-09-04 Jan Hubicka <jh@suse.cz>
13541 * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
13542 * ipa-devirt.c: Include diganostic.h
13543 (odr_type_d): Add types and types_set.
13544 (hash_type_name): Work for types with vtables during LTO.
13545 (odr_hasher::remove): Fix comment; destroy types_set.
13546 (add_type_duplicate): New function,
13547 (get_odr_type): Use it.
13548 (dump_type_inheritance_graph): Dump type duplicates.
13549 * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
13551 * tree.c (types_same_for_odr): Give exact answers on types with
13554 2013-09-04 Dodji Seketeli <dodji@redhat.com>
13556 * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
13557 explaining their differences.
13559 2013-09-04 Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
13561 * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
13563 2013-09-03 Jeff Law <law@redhat.com>
13565 * tree-ssa-threadedge.c (thread_across_edge): Record entire path
13566 when not threading through a joiner block. Pass joiner/no joiner
13567 state to register_jump_thread.
13568 * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
13569 state from argument rather than implying on path length.
13570 Dump the entire jump thread path into debugging dump.
13571 * tree-flow.h (register_jump_thread): Update prototype.
13573 2013-08-29 Xinliang David Li <davidxl@google.com>
13575 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
13576 Remove a trivial gcc_assert.
13578 2013-08-29 Xinliang David Li <davidxl@google.com>
13580 * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
13581 * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
13582 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
13583 Delay base decl alignment adjustment.
13584 * tree-vectorizer.c (vect_destroy_datarefs): New function.
13585 * tree-vectorizer.h: New data structure.
13586 (set_dr_misalignment): New function.
13587 (dr_misalignment): Ditto.
13588 * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
13589 (vectorizable_load): Ditto.
13590 (ensure_base_align): New function.
13591 (vectorize_loops): Add dbg_cnt support.
13592 (execute_vect_slp): Ditto.
13593 * dbgcnt.def: New debug counter.
13594 * Makefile: New dependency.
13596 2013-09-03 Meador Inge <meadori@codesourcery.com>
13600 2013-08-30 Meador Inge <meadori@codesourcery.com>
13602 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
13604 2013-09-03 David Edelsohn <dje.gcc@gmail.com>
13606 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
13607 function descriptor.
13609 2013-09-03 Richard Biener <rguenther@suse.de>
13611 * tree-affine.c (add_elt_to_tree): Fix association issue,
13612 avoid useless converts and make sure to always return a
13613 properly typed result.
13615 2013-09-03 Richard Biener <rguenther@suse.de>
13617 PR middle-end/57656
13618 * fold-const.c (negate_expr_p): Fix division case.
13619 (negate_expr): Likewise.
13621 2013-09-03 Richard Biener <rguenther@suse.de>
13624 * tree-streamer-out.c: Include tm.h.
13625 * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
13627 2013-09-03 Jan Hubicka <jh@suse.cz>
13629 * tree-profile.c (tree_profiling): Cleanup CFG when done.
13631 2013-09-03 Alan Modra <amodra@gmail.com>
13633 * config.gcc (powerpc*-*-linux*): Add support for little-endian
13634 multilibs to big-endian target and vice versa.
13635 * config/rs6000/t-linux64: Use := assignment on all vars.
13636 (MULTILIB_EXTRA_OPTS): Remove fPIC.
13637 (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
13638 * config/rs6000/t-linux64le: New file.
13639 * config/rs6000/t-linux64bele: New file.
13640 * config/rs6000/t-linux64lebe: New file.
13642 2013-09-02 Jan Hubicka <jh@suse.cz>
13644 * ipa-inline-transform.c (inline_transform): Do not
13645 optimize_inline_calls when not optimizing.
13647 2013-09-02 Jan Hubicka <jh@suse.cz>
13649 * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
13650 duplicated nodes for assembler names.
13651 * symtab.c (symtab_unregister_node): Do not attempt to unlink
13652 hard registers from assembler name hash.
13654 2013-09-02 Jan Hubicka <jh@suse.cz>
13656 * ipa-split.c (execute_split_functions): Split externally visible
13657 functions called once.
13659 2013-09-02 Martin Jambor <mjambor@suse.cz>
13662 * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
13663 linked list. When finding the correct duplicate, also consider also
13664 the caller in additon to its inlined_to node.
13666 2013-09-02 James Greenhalgh <james.greenhalgh@arm.com>
13668 * config/aarch64/aarch64-simd-builtins.def
13669 (dup_lane_scalar): Remove.
13670 * config/aarch64/aarch64-simd.md
13671 (aarch64_simd_dup): Add 'w->w' alternative.
13672 (aarch64_dup_lane<mode>): Allow for VALL.
13673 (aarch64_dup_lane_scalar<mode>): Remove.
13674 (aarch64_dup_lane_<vswap_width_name><mode>): New.
13675 (aarch64_get_lane_signed<mode>): Add w->w altenative.
13676 (aarch64_get_lane_unsigned<mode>): Likewise.
13677 (aarch64_get_lane<mode>): Likewise.
13678 * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
13679 (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
13680 * config/aarch64/iterators.md (VSWAP_WIDTH): New.
13681 (VCON): Change container of V2SF.
13682 (vswap_width_name): Likewise.
13683 * config/aarch64/arm_neon.h
13684 (__aarch64_vdup_lane_any): New.
13685 (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
13686 (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
13687 (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
13689 2013-09-02 Eric Botcazou <ebotcazou@adacore.com>
13691 PR middle-end/56382
13692 * expr.c (emit_move_complex): Do not move complex FP values as parts if
13693 the source or the destination is a single hard register.
13695 2013-09-02 Richard Biener <rguenther@suse.de>
13697 PR middle-end/57511
13698 * tree-scalar-evolution.c (instantiate_scev_name): Allow
13701 2013-09-02 Richard Biener <rguenther@suse.de>
13703 * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
13704 arithmetic to sizetype.
13706 2013-09-02 Bin Cheng <bin.cheng@arm.com>
13708 * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
13709 Find auto-increment use both before and after candidate.
13711 2013-09-02 Marek Polacek <polacek@redhat.com>
13713 * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
13715 2013-09-01 Jan Hubicka <jh@suse.cz>
13717 * Makefile.in: Add ipa-profile.o
13718 (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
13719 * cgraph.c (struct cgraph_propagate_frequency_data,
13720 cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
13721 ipa-profile.c; replace cgraph_ by ipa_ prefix.
13722 * cgraph.h (cgraph_propagate_frequency): Remove.
13723 * ipa-inline-analysis.c: Include ipa-utils.h;
13724 drop duplicated cfgloop.h.
13725 (inline_update_callee_summaries): Update.
13726 * ipa-profile.c: New file.
13727 * ipa-utils.h (ipa_propagate_frequency): Declare.
13728 * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
13729 data-streamer.h, value-prof.h.
13730 (symtab_remove_unreachable_nodes): Update profile.
13731 (struct histogram_entry, histogram, histogram_pool, histogram_hash,
13732 account_time_size, cmp_counts, dump_histogram,
13733 ipa_profile_generate_summary, ipa_profile_write_summary,
13734 ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
13735 pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
13736 Move to ipa-profile.c.
13738 2013-09-01 John David Anglin <danglin@gcc.gnu.org>
13740 * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
13742 2013-09-01 Jan Hubicka <jh@suse.cz>
13744 * common.opt (fdevirtualize-speculatively): New function.
13745 * invoke.texi (fdevirtualize-speculatively): Document.
13746 * ipa-devirt.c: Include ipa-inline.h
13747 (likely_target_p): New function.
13748 (ipa_devirt): New function.
13749 (gate_ipa_devirt): New function.
13750 (pass_data_ipa_devirt): New static var.
13751 (pass_ipa_devirt): Likewise.
13752 (make_pass_ipa_devirt): New function.
13753 * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
13754 (common_handle_option): Disable devirtualization when
13755 value range profiling is available.
13756 * passes.def (pass_ipa_devirt): Add.
13757 * timever.def (TV_IPA_DEVIRT): New timevar.
13758 * tree-pass.h (make_pass_ipa_devirt):
13760 2013-09-01 Iain Sandoe <iain@codesourcery.com>
13762 * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
13763 include sanitize(undefined).
13765 2013-08-31 Diego Novillo <dnovillo@google.com>
13767 * Makefile.in (TREE_CORE_H): Define.
13769 (GTFILES): Add tree-core.h.
13770 * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
13772 * tree-core.h: New file.
13773 Move all data structures, enum, typedefs, global
13774 declarations and constants from ...
13775 * tree.h: ... here.
13777 2013-08-31 Jan Hubicka <jh@suse.cz>
13779 * bulitins.c (expand_builtin): Do not early exit for gcov
13780 instrumented functions.
13782 2013-08-31 Marek Polacek <polacek@redhat.com>
13784 * ubsan.c: Include tm_p.h.
13786 2013-08-31 Jan Hubicka <jh@suse.cz>
13788 * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
13791 * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
13792 * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
13793 * tree-cfg.c (verify_gimple_label): ... here.
13794 * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
13795 (ipa_merge_profiles): New function.
13796 * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
13797 (lto_input_function_body): Likewise.
13798 * ipa-utils.h (ipa_merge_profiles): Declare.
13799 * lto-streamer.h (lto_input_function_body): Update prototype.
13800 (emit_label_in_global_context_p): Remove.
13801 * lto-symtab.c: Include ipa-utils.h
13802 (lto_cgraph_replace_node): Use ipa_merge_profiles.
13804 2013-08-31 Jan Hubicka <jh@suse.cz>
13806 * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
13808 2013-08-31 Jan Hubicka <jh@suse.cz>
13810 * basic-block.h (apply_scale): Make scale parmeter gcov_type.
13812 2013-08-31 Uros Bizjak <ubizjak@gmail.com>
13814 * config/alpha/alpha.c (alpha_emit_conditional_move): Update
13815 "cmp" RTX before signed_comparison_operator check to account
13816 for "code" changes.
13818 2013-08-30 Jan Hubicka <jh@suse.cz>
13820 * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
13821 (detect_type_change_1): Rename to ...
13822 (detect_type_change): ... this one; early return on non-polymorphic
13824 (detect_type_change_ssa): Add comp_type parameter; update
13825 use of detect_type_change.
13826 (compute_complex_assign_jump_func): Add param_type parameter;
13827 update use of detect_type_change_ssa.
13828 (compute_complex_ancestor_jump_func): Likewise.
13829 (ipa_get_callee_param_type): New function.
13830 (ipa_compute_jump_functions_for_edge): Compute parameter type;
13831 update calls to the jump function computation functions.
13833 2013-08-30 Teresa Johnson <tejohnson@google.com>
13834 Steven Bosscher <steven@gcc.gnu.org>
13836 * cfgrtl.c (fixup_new_cold_bb): New routine.
13837 (commit_edge_insertions): Invoke fixup_partitions.
13838 (find_partition_fixes): New routine.
13839 (fixup_partitions): Ditto.
13840 (verify_hot_cold_block_grouping): Update comments.
13841 (rtl_verify_edges): Invoke find_partition_fixes.
13842 (rtl_verify_bb_pointers): Update comments.
13843 (rtl_verify_bb_layout): Ditto.
13844 * basic-block.h (probably_never_executed_edge_p): Declare.
13845 (fixup_partitions): Ditto.
13846 * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
13847 * bb-reorder.c (sanitize_hot_paths): New function.
13848 (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
13849 sanitize_hot_paths.
13850 * predict.c (probably_never_executed_edge_p): New routine.
13851 * cfg.c (check_bb_profile): Add partition insanity warnings.
13853 2013-08-30 Meador Inge <meadori@codesourcery.com>
13855 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
13857 2013-08-30 Marek Polacek <polacek@redhat.com>
13859 * Makefile.in (ubsan.o): Add.
13860 (c-family/c-ubsan.o): Add.
13861 (builtins.o): Add ubsan.h dependency.
13862 * ubsan.h: New file.
13863 * ubsan.c: New file.
13864 * common.opt: Add -fsanitize=undefined option.
13865 (flag_sanitize): Add variable.
13866 (fsanitize=): Add option. Add Driver.
13867 (fsanitize=thread): Remove option.
13868 (fsanitize=address): Likewise.
13869 (static-libubsan): New option.
13870 * doc/invoke.texi: Document the new flag and -static-libubsan.
13871 * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
13872 (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
13873 * builtin-attrs.def (ATTR_COLD): Define.
13874 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
13875 * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
13876 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
13877 * flag-types.h (sanitize_code): New enum.
13878 * opts.c (common_handle_option): Parse command line arguments
13879 of -fsanitize=. Add -fsanitize=unreachable option.
13880 * varasm.c (get_variable_section): Adjust.
13881 (assemble_noswitch_variable): Likewise.
13882 (assemble_variable): Likewise.
13883 (output_constant_def_contents): Likewise.
13884 (categorize_decl_for_section): Likewise.
13885 (place_block_symbol): Likewise.
13886 (output_object_block): Likewise.
13887 * builtins.def: Likewise.
13888 * toplev.c (compile_file): Likewise.
13889 (process_options): Likewise.
13890 * cppbuiltin.c: Likewise.
13891 * tsan.c (tsan_pass): Likewise.
13892 (tsan_gate): Likewise.
13893 (tsan_gate_O0): Likewise.
13894 * cfgexpand.c (partition_stack_vars): Likewise.
13895 (expand_stack_vars): Likewise.
13896 (defer_stack_allocation): Likewise.
13897 (expand_used_vars): Likewise.
13898 * cfgcleanup.c (old_insns_match_p): Likewise.
13899 * asan.c (asan_finish_file): Likewise.
13900 (asan_instrument): Likewise.
13901 (gate_asan): Likewise.
13902 (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
13903 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
13904 (asan_global_struct): Use pointer_sized_int_node instead
13905 calling build_nonstandard_integer_type.
13906 (initialize_sanitizer_builtins): Likewise.
13907 (asan_finish_file): Likewise.
13908 * gcc.c: Document %{%:function(args):X}.
13909 (static_spec_functions): Add sanitize.
13910 (handle_spec_function): Add retval_nonnull argument and if non-NULL,
13911 store funcval != NULL there.
13912 (do_spec_1): Adjust handle_spec_function caller.
13913 (handle_braces): Allow %:function(args) as condition.
13914 (sanitize_spec_function): New function.
13915 (ADD_STATIC_LIBUBSAN_LIBS): Define.
13916 (LIBUBSAN_SPEC): Likewise.
13917 (LIBUBSAN_EARLY_SPEC): Likewise.
13918 (SANITIZER_SPEC): Handle libubsan.
13919 (SANITIZER_EARLY_SPEC): Likewise.
13920 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
13921 instead of fsanitize=address.
13922 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
13923 instead of fsanitize=address*.
13924 * builtins.c: Include ubsan.h.
13925 (fold_builtin_0): Instrument __builtin_unreachable.
13926 * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
13927 instead of flag_asan.
13928 * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
13929 (pointer_sized_int_node): Define.
13930 * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
13932 2013-08-30 Mike Stump <mikestump@comcast.net>
13934 * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
13937 2013-08-29 Jan Hubicka <jh@suse.cz>
13939 * cgraph.c (cgraph_function_body_availability): Handle weakref
13941 * passes.def: Remove pass_fixup_cfg.
13942 * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
13943 track when we need to remove functions.
13944 (gate_ipa_inline): Execute inlining always; add comment why.
13945 (pass_data_ipa_inline): Remove TODO_remove_functions.
13946 * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
13947 do not produce summaries.
13948 * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
13949 (symtab_nonoverwritable_alias): Assert we are not called on weakref.
13950 * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
13951 constant pool and vtable.
13953 2013-08-30 Tejas Belagod <tejas.belagod@arm.com>
13955 * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
13956 New arm_neon.h's internal macros to specify 64-bit constants.
13957 Avoid using stdint.h's macros.
13959 2013-08-30 Joern Rennecke <joern.rennecke@embecosm.com>
13961 * recog.c (verify_changes): Verify that changes[i].old is non-zero
13962 before applying REG_P.
13964 2013-08-30 Jakub Jelinek <jakub@redhat.com>
13966 PR tree-optimization/58277
13967 * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
13968 after seeing too many stmts with vdef in between dombb and current
13969 bb, invalidate everything.
13971 2013-08-30 Richard Biener <rguenther@suse.de>
13973 * fold-const.c (fold_single_bit_test): Fix overflow test.
13975 2013-08-30 Eric Botcazou <ebotcazou@adacore.com>
13977 * function.c (assign_parm_setup_reg): For a parameter passed by pointer
13978 and which can live in a register, always retrieve the value on entry.
13979 * var-tracking.c (add_stores): Treat the copy on entry for a parameter
13980 passed by invisible reference specially.
13981 (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
13982 (vt_add_function_parameter): Correctly deal with a parameter passed by
13983 invisible reference.
13985 2013-08-30 Jan Hubicka <jh@suse.cz>
13987 * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
13989 2013-08-30 Richard Biener <rguenther@suse.de>
13991 PR tree-optimization/58228
13992 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
13993 allow invariant loads in nested loop vectorization.
13995 2013-08-30 Richard Biener <rguenther@suse.de>
13997 PR tree-optimization/58223
13998 * tree-loop-distribution.c (has_anti_dependence): Rename to ...
13999 (has_anti_or_output_dependence): ... this and adjust to also
14000 look for output dependences.
14001 (mark_nodes_having_upstream_mem_writes): Adjust.
14002 (rdg_flag_uses): Likewise.
14004 2013-08-30 Richard Biener <rguenther@suse.de>
14006 PR tree-optimization/58010
14007 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
14008 assert that we have a loop-closed PHI.
14010 2013-08-29 Jan Hubicka <jh@suse.cz>
14012 * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
14013 * cgraph.c (cgraph_release_function_body): Free decl_in_state.
14014 * lto-section-in.c (lto_free_function_in_decl_state): New function.
14015 (lto_free_function_in_decl_state_for_node): New function.
14017 2013-08-29 Xinliang David Li <davidxl@google.com>
14019 * loop-unroll.c (report_unroll_peel): Minor message change.
14020 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
14021 Emit alignment peeling message with default -fopt-info.
14022 (vect_loop_versioning): Emit loop version info message.
14023 * tree-vectorizer.c (vectorize_loops): Minor message change.
14024 (execute_vect_slp): Ditto.
14026 2013-08-29 Eric Botcazou <ebotcazou@adacore.com>
14028 * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
14029 of the clone from the DECL_NAME of the original function.
14031 2013-08-29 Oleg Endo <olegendo@gcc.gnu.org>
14033 * passes.c (register_pass): Add overload.
14034 * tree-pass.h (register_pass): Forward declare it. Add comment.
14036 2013-08-29 Jan Hubicka <jh@suse.cz>
14038 * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
14039 DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
14040 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
14041 DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
14042 (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
14043 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
14044 Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
14045 (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
14047 2013-08-29 Teresa Johnson <tejohnson@google.com>
14049 * dumpfile.c (dump_loc): Output column number.
14050 * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
14051 * doc/invoke.texi: Document optall -fopt-info flag.
14052 * profile.c (read_profile_edge_counts): Use new dump framework.
14053 (compute_branch_probabilities): Ditto.
14054 * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
14055 when pass not in any opt group.
14056 * pass_manager.h (pass_manager::get_pass_profile): New method.
14057 * value-prof.c (check_counter): Use new dump framework.
14058 (check_ic_target): Ditto.
14059 * coverage.c (get_coverage_counts): Ditto.
14060 (coverage_init): Setup new dump framework.
14062 2013-08-29 Richard Biener <rguenther@suse.de>
14064 PR tree-optimization/58246
14065 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
14066 handle the dominance check inside a basic-block.
14068 2013-08-29 Richard Biener <rguenther@suse.de>
14070 PR middle-end/57287
14071 * tree-ssa-copy.c (may_propagate_copy): Allow propagating
14072 of default defs that appear in abnormal PHI nodes.
14074 2013-08-29 Richard Biener <rguenther@suse.de>
14076 PR tree-optimization/57685
14077 * tree-vrp.c (register_edge_assert_for_1): Recurse only for
14078 single-use operands to avoid exponential complexity.
14080 2013-08-28 Dehao Chen <dehao@google.com>
14082 * ipa-inline.c (edge_badness): Fix integer underflow.
14084 2013-08-28 Uros Bizjak <ubizjak@gmail.com>
14086 * gtm-builtins.def (_ITM_free): Declare leaf.
14088 2013-08-28 Jakub Jelinek <jakub@redhat.com>
14091 * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
14092 (*tls_local_dynamic_base_64_largepic): Likewise.
14093 (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
14094 Remove predicate from call operand.
14095 * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
14096 return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
14098 2013-08-28 Jeff Law <law@redhat.com>
14100 * tree-ssa-threadedge.c (thread_around_empty_block): Remove
14101 checks for the number of predecessors and successors allowed.
14102 * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
14103 which require copying a joiner block if there is a request which
14104 is a subpath that requires no joiner block copying.
14106 2013-08-28 Jan Hubicka <jh@suse.cz>
14108 * lto-streamer-out.c (DFS_write_tree_body): Drop
14109 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
14110 (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
14111 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
14112 * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
14113 Do not read DECL_ERROR_ISSUED.
14114 (unpack_ts_decl_with_vis_value_fields): Do not read
14116 (lto_input_ts_binfo_tree_pointers): Do not read
14117 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
14118 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
14119 write DECL_ERROR_ISSUED..
14120 (pack_ts_decl_with_vis_value_fields): Do not write
14122 (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
14123 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
14124 * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
14125 * tree.h (tree_decl_common): Update comment.
14126 (DECL_ERROR_ISSUED): Remove.
14128 2013-08-28 Jakub Jelinek <jakub@redhat.com>
14130 PR middle-end/58257
14131 * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
14133 2013-08-28 Jan Hubicka <jh@suse.cz>
14135 * builtins.def (free): Declare leaf.
14137 2013-08-27 David Malcolm <dmalcolm@redhat.com>
14139 * gdbhooks.py: New.
14140 * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
14141 * configure: Regenerate.
14143 2013-08-27 Martin Jambor <mjambor@suse.cz>
14145 * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
14146 (ipa_ancestor_jf_data): Likewise.
14147 (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
14148 (ipa_get_jf_pass_through_type_preserved): New function.
14149 (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
14150 (ipa_get_jf_ancestor_type_preserved): New function.
14151 * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
14152 (ipa_get_jf_ancestor_result): Likewise.
14153 (propagate_vals_accross_pass_through): Use
14154 ipa_get_jf_pass_through_result to do all the value mappings.
14155 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
14156 type_preserved flag.
14157 (ipa_set_jf_cst_copy): New function.
14158 (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
14159 (ipa_set_jf_arith_pass_through): Likewise.
14160 (ipa_set_ancestor_jf): Likewise.
14161 (compute_complex_assign_jump_func): Set type_preserved instead of
14163 (ipa_compute_jump_functions_for_edge): Likewise.
14164 (combine_known_type_and_ancestor_jfs): Honor type_preserved.
14165 (update_jump_functions_after_inlining): Update type_preserved.
14166 Explicitely create jump functions when combining one with pass_through.
14167 (ipa_write_jump_function): Stream the type_preserved flags.
14168 (ipa_read_jump_function): Likewise.
14170 2013-08-27 Jakub Jelinek <jakub@redhat.com>
14171 Aldy Hernandez <aldyh@redhat.com>
14173 * Makefile.in (omp-low.o): Depend on $(TARGET_H).
14174 * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
14175 * function.h (struct function): Add has_force_vect_loops and
14177 * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
14178 * gimple.c (gimple_build_omp_critical): Add KIND argument and
14180 * gimple.def: Update CLAUSES comments.
14181 * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
14182 (gimple_build_omp_for): Add argument to prototype.
14183 (gimple_omp_for_kind): New.
14184 (gimple_omp_for_set_kind): New.
14185 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
14186 GOVD_DATA_SHARE_CLASS.
14187 (enum omp_region_type): Add ORT_SIMD.
14188 (gimple_add_tmp_var): Handle ORT_SIMD.
14189 (gimplify_var_or_parm_decl): Same.
14190 (is_gimple_stmt): Same.
14191 (omp_firstprivatize_variable): Same.
14192 (omp_add_variable): Only use splay_tree_insert if lookup failed.
14193 (omp_notice_variable): Handle ORT_SIMD.
14194 (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
14195 (omp_check_private): Handle ORT_SIMD.
14196 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
14197 OMP_CLAUSE_SAFELEN.
14198 (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
14199 Handle OMP_CLAUSE_LASTPRIVATE.
14200 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
14201 OMP_CLAUSE_SAFELEN.
14202 (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
14203 (gimplify_expr): Handle OMP_SIMD.
14204 * internal-fn.c (expand_GOMP_SIMD_LANE): New.
14205 (expand_GOMP_SIMD_VF): New.
14206 (expand_GOMP_SIMD_LAST_LANE): New.
14207 * internal-fn.def (GOMP_SIMD_LANE): New.
14208 (GOMP_SIMD_VF): New.
14209 (GOMP_SIMD_LAST_LANE): New.
14210 * omp-low.c: Include target.h.
14211 (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
14212 OMP_CLAUSE_SAFELEN.
14213 (check_omp_nesting_restrictions): Same.
14215 (lower_rec_simd_input_clauses): New.
14216 (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
14218 (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
14219 GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
14220 (expand_omp_build_assign): New.
14221 (expand_omp_for_init_counts): New.
14222 (expand_omp_for_init_vars): New.
14223 (extract_omp_for_update_vars): New.
14224 (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
14225 and rewrite accordingly.
14226 (expand_omp_simd): New.
14227 (expand_omp_for): Use expand_omp_simd.
14228 (lower_omp_for_lastprivate): Unshare vinit when appropriate.
14229 (lower_omp_for): Do not lower the body.
14230 * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
14231 in their own loops.
14232 * tree-flow.h (find_omp_clause): Remove prototype.
14233 * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
14234 forcing vectorization of the loop, or if flag_tree_vectorize.
14235 (gate_tree_if_conversion): Similarly.
14236 * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
14237 gimple_build_omp_for.
14238 (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
14239 * tree-parloops (create_parallel_loop): Pass kind argument to
14240 gimple_build_omp_for.
14241 * tree-pretty-print.c (dump_omp_clause): Add cases for
14242 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
14243 OMP_CLAUSE__SIMDUID_.
14244 (dump_generic_node): Handle OMP_SIMD.
14245 * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
14246 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
14247 unroll OMP_SIMD loops here.
14248 * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
14249 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
14251 (vect_analyze_data_refs): Handle simd loops.
14252 * tree-vect-loop.c (vectorizable_live_operation): Handle
14254 * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
14255 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
14256 (vectorizable_load): Same.
14257 * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
14258 (struct simduid_to_vf): New.
14259 (simduid_to_vf::hash): New.
14260 (simduid_to-vf::equal): New.
14261 (struct simd_array_to_simduid): New.
14262 (simd_array_to_simduid::hash): New.
14263 (simd_array_to_simduid::equal): New.
14264 (adjust_simduid_builtins): New.
14265 (struct note_simd_array_uses_struct): New.
14266 (note_simd_array_uses_cb): New.
14267 (note_simd_array_uses): New.
14268 (vectorize_loops): Handle simd hints and adjust simd builtins
14270 * tree-vectorizer.h (struct _stmt_vec_info): Add
14271 simd_lane_access_p field.
14272 (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
14273 * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
14274 OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
14275 (omp_clause_code_name): Same.
14276 (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
14277 OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
14278 * tree.def (OMP_SIMD): New entry.
14279 * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
14280 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
14281 (OMP_CLAUSE_DECL): Adjust range for new clauses.
14282 (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
14283 (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
14284 (OMP_CLAUSE_LINEAR_STEP): New.
14285 (OMP_CLAUSE_SAFELEN_EXPR): New.
14286 (OMP_CLAUSE__SIMDUID__DECL): New.
14287 (find_omp_clause): New prototype.
14289 2013-08-27 H.J. Lu <hongjiu.lu@intel.com>
14291 * config/i386/driver-i386.c (host_detect_local_cpu): Update
14292 Haswell processor detection.
14294 2013-08-27 Christian Widmer <shadow@umbrox.de>
14297 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
14298 of Ivy Bridge and Haswell processors. Assume core-avx2 for unknown
14299 AVX2 capable processors.
14301 2013-08-27 Tejas Belagod <tejas.belagod@arm.com>
14303 * config/aarch64/arm_neon.h: Replace all inline asm implementations
14304 of vget_low_* with implementations in terms of other intrinsics.
14306 2013-08-27 Marc Glisse <marc.glisse@inria.fr>
14308 PR middle-end/57219
14309 * doc/extend.texi (__builtin_isinf_sign): Restrict the return
14310 values to -1, 0 and 1.
14312 2013-08-27 Vidya Praveen <vidyapraveen@arm.com>
14314 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
14315 UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
14316 (<optab><mode>3_insn): Remove.
14317 (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
14318 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
14319 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
14320 (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
14321 (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
14322 (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
14323 (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
14324 (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
14325 (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
14326 (ror<mode>3_insn): Likewise.
14327 * config/aarch64/predicates.md (aarch64_simd_register): New.
14329 2013-08-27 Richard Biener <rguenther@suse.de>
14331 PR tree-optimization/57521
14332 * tree-if-conv.c (if_convertible_bb_p): Verify that at least
14333 one edge is non-critical.
14334 (find_phi_replacement_condition): Make sure to use a non-critical
14335 edge. Cleanup and remove old bug workarounds.
14336 (bb_postdominates_preds): Remove.
14337 (if_convertible_loop_p_1): Do not compute post-dominators.
14338 (combine_blocks): Do not free post-dominators.
14339 (main_tree_if_conversion): Likewise.
14340 (pass_data_if_conversion): Add TODO_verify_ssa.
14342 2013-08-27 DJ Delorie <dj@redhat.com>
14344 * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
14346 2013-08-27 Yufeng Zhang <yufeng.zhang@arm.com>
14348 * function.c (assign_parm_find_data_types): Set passed_mode and
14349 nominal_mode to the TYPE_MODE of nominal_type for the built
14350 pointer type in case of the struct-pass-by-reference.
14352 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
14354 * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
14355 (UINT16_TYPE): Change default to "unsigned int".
14357 * config/avr/avr.opt (mfract-convert-truncate): New option.
14358 * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
14359 is set, round negative fractional integers according to n1169
14360 when converting to integer types.
14362 2013-08-26 Jan Hubicka <jh@suse.cz>
14364 * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
14365 methods can not be called indirectly when their address is not taken.
14367 2013-08-26 Jan Hubicka <jh@suse.cz>
14369 * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
14372 2013-08-26 Jan Hubicka <jh@suse.cz>
14374 * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
14377 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
14379 * reload.c (find_valid_class): Allow classes that do not include
14380 FIRST_PSEUDO_REGISTER - 1.
14382 2013-08-26 Jan Hubicka <jh@suse.cz>
14384 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
14385 fix edge count/frequency when speculation failed; fix type check
14386 for the direct call.
14388 2013-08-26 Jan Hubicka <jh@suse.cz>
14390 * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
14392 2013-08-26 Jan Hubicka <jh@suse.cz>
14394 * ipa-inline-transform.c (inline_transform): Be ready for basic block
14395 to be changed by edge redirection.
14397 2013-08-26 Jan Hubicka <jh@suse.cz>
14399 * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
14400 formating; add sanity check.
14401 (cgraph_resolve_speculation): Add FIXME about scaling profiles.
14402 (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
14403 * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
14404 (resolve_noninline_speculation): Update callee keys, too.
14406 2013-08-26 Jan Hubicka <jh@suse.cz>
14408 * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
14409 (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
14411 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
14413 * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
14416 2013-08-26 Uros Bizjak <ubizjak@gmail.com>
14418 * config/i386/i386.c (ix86_debug_options): Remove prototype.
14419 (x86_64_elf_select_section): Ditto.
14420 (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
14422 (ix86_pass_by_reference): Ditto.
14423 (output_set_got): Ditto.
14424 (ix86_unary_operator_ok): Ditto.
14425 (ix86_expand_builtin): Ditto.
14427 2013-08-23 Jan Hubicka <jh@suse.cz>
14429 * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
14431 2013-08-23 Jan Hubicka <jh@suse.cz>
14433 * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
14434 (tree_decl_with_vis): Add FINAL field.
14436 2013-08-23 Jeff Law <law@redhat.com>
14438 * tree-ssa-pre.c (do_regular_insertion): Include the expression in
14439 the debugging dump when the expression is fully redundant.
14441 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
14443 * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
14444 * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
14445 * pretty-print.c (pp_formatted_text_data): Likewise.
14446 (pp_write_text_to_stream): Likewise.
14447 (pp_write_text_as_dot_label_to_stream): Likewise.
14448 (pp_append_r): Likewise.
14449 (pp_format): Likewise.
14450 (pp_flush): Likewise.
14451 (pp_clear_output_area): Likewise.
14452 (pp_append_text): Likewise.
14453 (pp_formatted_text): Likewise.
14454 (pp_remaining_character_count_for_line): Likewise.
14455 (pp_newline): Likewise.
14456 (pp_character): Likewise.
14457 (output_buffer::~output_buffer): Define.
14458 (pretty_printer::~pretty_printer): Destruct output buffer.
14459 * pretty-print.h (output_buffer::~output_buffer): Declare.
14460 (pretty_printer::~pretty_printer): Declare virtual.
14462 2013-08-24 Marc Glisse <marc.glisse@inria.fr>
14465 * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
14466 HOST_WIDE_INT_M1U): New macros.
14467 * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
14468 fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
14469 unsigned -1 for lshift.
14470 * cse.c (cse_insn): Likewise.
14471 * double-int.c (rshift_double, lshift_double): Likewise.
14472 * builtins.c (fold_builtin_bitop): Likewise.
14473 * combine.c (force_to_mode): Likewise.
14474 * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
14475 * simplify-rtx.c (simplify_const_unary_operation,
14476 simplify_const_binary_operation): Likewise.
14477 * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
14478 check_va_list_escapes): Likewise.
14479 * rtlanal.c (nonzero_bits1): Likewise.
14480 * expmed.c (expand_smod_pow2): Likewise.
14481 * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
14483 2013-08-23 Jan Hubicka <jh@suse.cz>
14485 * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
14486 as having address taken.
14488 2013-08-23 Jan Hubicka <jh@suse.cz>
14490 * ipa-utils.h (method_class_type): Declare.
14491 * ipa-devirt.c (method_class_type): Export.
14493 * cgraphunit.c (analyze_functions): Do basic devirtualization;
14494 do not walk base classes of anonymous types.
14496 2013-08-23 Kaz Kojima <kkojima@gcc.gnu.org>
14498 PR rtl-optimization/58220
14499 PR regression/58221
14500 * final.c (reemit_insn_block_notes): Use NEXT_INSN to
14501 handle SEQUENCE insns properly.
14503 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
14505 * pretty-print.h (pp_newline_and_flush): Declare. Remove macro
14507 (pp_newline_and_indent): Likewise.
14508 (pp_separate_with): Likewise.
14509 * pretty-print.c (pp_newline_and_flush): Define.
14510 (pp_newline_and_indent): Likewise.
14511 (pp_separate_with): Likewise.
14513 2013-08-23 Jakub Jelinek <jakub@redhat.com>
14516 * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
14517 * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
14519 2013-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
14521 * config/i386/predicates.md (ext_sse_reg_operand): New.
14522 * config/i386/i386.md (*movti_internal): Use
14523 predicate to determine if EVEX is needed.
14524 (*movsi_internal): Ditto.
14525 (*movdf_internal): Ditto.
14526 (*movsf_internal): Ditto.
14527 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
14529 2013-08-23 Jakub Jelinek <jakub@redhat.com>
14531 PR tree-optimization/58209
14532 * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
14533 (find_tail_calls): Give up for pointer result types if m is non-NULL.
14534 (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
14535 emit POINTER_PLUS_EXPR.
14536 (create_tailcall_accumulator): For pointer result type accumulate in
14539 2013-08-22 Paolo Carlini <paolo.carlini@oracle.com>
14541 * configure.ac: Add backslashes missing from the last change.
14542 * configure: Regenerate.
14544 2013-08-22 Jan Hubicka <jh@susue.cz>
14546 * ipa.c (function_and_variable_visibility): First remember function
14547 was global and then make it local.
14549 2013-08-22 Julian Brown <julian@codesourcery.com>
14551 * configure.ac: Add aarch64 to list of arches which use "nop" in
14553 * configure: Regenerate.
14555 2013-08-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14557 * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
14558 gnu_libc_has_function.
14559 * config/s390/tpf.h: Likewise.
14561 2013-08-22 Jan Hubicka <jh@susue.cz>
14563 * timevar.c (validate_phases): Add cast.
14565 2013-08-22 Jan Hubicka <jh@susue.cz>
14567 * timevar.c (validate_phases): Use size_t for memory.
14568 * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
14570 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
14572 * pretty-print.h (output_buffer::output_buffer): Declare.
14573 (pretty_printer::pretty_printer): Likewise.
14574 (pp_construct): Remove.
14575 * pretty-print.c (output_buffer::output_buffer): Define.
14576 (pretty_printer::pretty_printer): Rename from pp_construct. Simplify.
14577 * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
14578 (print_gimple_expr): Likewise.
14579 (print_gimple_seq): Likewise.
14580 (gimple_dump_bb): Likewise.
14581 * sched-vis.c (dump_value_slim): Likewise.
14582 (dump_insn_slim): Likewise.
14583 (dump_rtl_slim): Likewise.
14584 (str_pattern_slim): Likewise.
14585 * tree-mudflap.c (mf_varname_tree): Likewise.
14586 * graph.c (print_graph_cfg): Likewise.
14587 (start_graph_dump): Likewise.
14588 * tree-pretty-print.c (maybe_init_pretty_print): Likewise. Use
14590 * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
14591 pretty printer initialization.
14592 * coretypes.h (diagnostic_context): Remove superflous type alias
14594 (pretty_printer): Likewise. Declare directly as a class.
14595 (pretty_print_info): Remove declaration as class.
14596 * asan.c (asan_emit_stack_protection): Remove call to pp_construct
14597 and pp_clear_output_area.
14598 (asan_add_global): Likewise.
14600 2013-08-22 Jan Hubicka <jh@suse.cz>
14602 * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
14603 * ipa-utils.h (update_type_inheritance_graph): Declare.
14604 (possible_polymorphic_call_target_p): Declare.
14605 (possible_polymorphic_call_target_p): New.
14606 * ipa-devirt.c: Update toplevel comments.
14607 (cached_polymorphic_call_targets): Move up.
14608 (odr_type_d): Move ID down.
14609 (polymorphic_type_binfo_p): Update comment.
14610 (odr_hasher::remove): Likewise;
14611 (get_odr_type): Set anonymous_namespace.
14612 (dump_odr_type): Dump it.
14613 (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
14614 (maybe_record_node): Record node in cached_polymorphic_call_targets.
14615 (record_binfo): Add comment.
14616 (free_polymorphic_call_targets_hash): Do not ICE when cache is not
14618 (devirt_node_removal_hook): Do not iCE when cache is freed.
14619 (possible_polymorphic_call_target_p): New predicate.
14620 (update_type_inheritance_graph): New function.
14622 2013-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
14623 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14624 Sergey Lega <sergey.s.lega@intel.com>
14625 Anna Tikhonova <anna.tikhonova@intel.com>
14626 Ilya Tocar <ilya.tocar@intel.com>
14627 Andrey Turetskiy <andrey.turetskiy@intel.com>
14628 Ilya Verbin <ilya.verbin@intel.com>
14629 Kirill Yukhin <kirill.yukhin@intel.com>
14630 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14632 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
14633 (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
14634 (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
14635 (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
14636 (OPTION_MASK_ISA_AVX2_UNSET): Update.
14637 (OPTION_MASK_ISA_AVX512F_UNSET): New.
14638 (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
14639 (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
14640 (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
14641 (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
14642 OPT_mavx512pf, OPT_mavx512er cases.
14643 * config/i386/constraints.md (v): New constraint.
14644 (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
14645 * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
14646 (bit_AVX512CD): New.
14647 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
14648 AVX512F, AVX512ER, AVX512PF, AVX512CD features.
14649 * config/i386/i386-c.c (ix86_target_macros_internal):
14650 Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
14652 * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
14653 (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
14654 * config/i386/i386.c (regclass_map, dbx_register_map)
14655 (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
14656 (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
14657 (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
14658 -mavx512pf options.
14659 (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
14660 PTA_AVX512PF, PTA_AVX512CD. Handle -mavx512f, -mavx512er, -mavx512cd,
14661 -mavx512pf options. Fix formatting.
14662 (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
14663 targets. Squash EVEX_SSE_REGS if AVX512F is disabled.
14664 (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
14665 -mavx512cd, -mavx512pf options.
14666 (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
14667 (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
14668 (ix86_preferred_output_reload_class): Replace SSE_REGS with
14670 (ix86_hard_regno_mode_ok): Support 512-bit registers.
14671 (ix86_set_reg_reg_cost): Ditto.
14672 (x86_order_regs_for_local_alloc): Ditto.
14673 (MAX_VECT_LEN): Extend to 64-byte.
14674 (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
14675 * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
14676 (TARGET_AVX512ER, TARGET_AVX512CD): New.
14677 (BIGGEST_ALIGNMENT): Extend to 512-bits.
14678 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
14679 (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
14680 (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
14681 (SSE_REG_MODE_P): Support new modes.
14682 (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
14683 (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
14684 (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
14685 (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
14686 (REG_CLASS_CONTENTS): Add new registers.
14687 (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
14688 (EXT_REX_SSE_REGNO_P): New.
14689 (HI_REGISTER_NAMES): Add new registers.
14690 * config/i386/i386.md: Define constants for new registers.
14691 (mode): Add new 512-bit modes.
14692 (prefix): Support evex prefix.
14693 (isa): Support avx512f, noavx512f, fma_avx512f.
14694 (ssemodesuffix): Add new 512-bit modes.
14696 (*movxi_internal_avx512f): Ditto.
14697 (*movdi_internal): Replace constraint "x" with the new constraint "v".
14699 (*movsi_internal): Likewise.
14700 (*movdf_internal): Likewise.
14701 (*movsf_internal): Likewise.
14702 (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
14703 (<code><mode>3): Likewise.
14704 * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
14706 * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
14707 with the new constraint "v".
14708 * config/i386/sse.md (*mov<mode>_internal): Support new registers and
14710 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
14711 with the new constraint "v".
14712 (<sse2>_loaddqu<avxsizesuffix>): Likewise.
14713 (<sse2>_storedqu<avxsizesuffix>): Likewise.
14714 (*<plusminus_insn><mode>3): Likewise.
14715 (<sse>_vm<plusminus_insn><mode>3): Likewise.
14716 (*mul<mode>3): Likewise.
14717 (<sse>_vmmul<mode>3): Likewise.
14718 (<sse>_div<mode>3): Likewise.
14719 (<sse>_vmdiv<mode>3): Likewise.
14720 (<sse>_sqrt<mode>2): Likewise.
14721 (<sse>_vmsqrt<mode>2): Likewise.
14722 (*<code><mode>3_finite): Likewise.
14723 (*<code><mode>3) <smaxmin>: Likewise.
14724 (<sse>_vm<code><mode>3): Likewise.
14725 (*<code><mode>3) <any_logic>: Likewise.
14726 (*fma_fmadd_<mode>): Likewise.
14727 (*fma_fmsub_<mode>): Likewise.
14728 (*fma_fnmadd_<mode>): Likewise.
14729 (*fma_fnmsub_<mode>): Likewise.
14730 (*fma_fmaddsub_<mode>): Likewise.
14731 (*fma_fmsubadd_<mode>): Likewise.
14732 (*fmai_fmadd_<mode>): Likewise.
14733 (*fmai_fmsub_<mode>): Likewise.
14734 (*fmai_fnmadd_<mode>): Likewise.
14735 (*fmai_fnmsub_<mode>): Likewise.
14736 (sse_cvtsi2ss): Likewise.
14737 (sse_cvtsi2ssq): Likewise.
14738 (sse_cvtss2si): Likewise.
14739 (sse_cvtss2si_2): Likewise.
14740 (sse_cvtss2siq): Likewise.
14741 (sse_cvtss2siq_2): Likewise.
14742 (sse_cvttss2si): Likewise.
14743 (sse_cvtss2siq_2): Likewise.
14744 (float<sseintvecmodelower><mode>2): Likewise.
14745 (sse2_cvtsd2si_2): Likewise.
14746 (sse2_cvtsd2siq_2): Likewise.
14747 (*<plusminus_insn><mode>3): Likewise.
14748 (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
14749 (*<sse4_1_avx2>_mul<mode>3): Likewise.
14750 (ashr<mode>3): Likewise.
14751 (<shift_insn><mode>3): Likewise.
14752 (avx2_<code><mode>3): Likewise.
14753 (*avx2_<code><mode>3): Likewise.
14754 (*andnot<mode>3): Likewise.
14755 (*<code><mode>3) <any_logic>: Likewise.
14756 (abs<mode>2): Likewise.
14757 (avx2_permvar<mode>): Likewise.
14758 (avx2_perm<mode>_1): Likewise.
14759 (*avx_vpermilp<mode>): Likewise.
14760 (avx_vpermilvar<mode>3): Likewise.
14761 (avx2_ashrv<mode>): Likewise.
14762 (avx2_<shift_insn>v<mode>): Likewise.
14763 * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
14765 * doc/rtl.texi: Document XImode.
14767 2013-08-21 Jeff Law <law@redhat.com>
14769 * tree-flow.h (register_jump_thread): Pass vector of edges
14770 instead of each important edge.
14771 * tree-ssa-threadedge.c (thread_across_edge): Build the jump
14772 thread path into a vector and pass that to register_jump_thread.
14773 * tree-ssa-threadupdate.c (register_jump_thread): Conver the
14774 passed in edge vector to the current 3-edge form.
14777 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
14779 * dce.c (fini_dce): Call df_analyze again just in case
14780 delete_unmarked_insns removed anything.
14782 2013-08-21 Joern Rennecke <joern.rennecke@embecosm.com>
14784 * reload.h (struct reg_equivs): Rename to ..
14785 (struct reg_equivs_s): .. this.
14787 2013-08-20 Martin Liska <marxin.liska@gmail.com>
14789 * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
14791 2013-08-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14793 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
14795 2013-08-21 Jeff Law <law@redhat.com>
14797 * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
14798 simplify assignments too. If the RHS collapses to a singleton
14799 range, then return the value for the range.
14801 2013-08-21 Kirill Yukhin <kirill.yukhin@intel.com>
14803 * config/i386/sse.md (V16): Rename to...
14805 (mov<mode>): Update iterator name.
14806 (*mov<mode>_internal): Ditto.
14807 (push<mode>1): Ditto.
14808 (movmisalign<mode>): Ditto.
14810 2013-08-20 Jan Hubicka <jh@suse.cz>
14813 * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
14814 entry for direct edges.
14815 (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
14817 2013-08-20 David Malcolm <dmalcolm@redhat.com>
14819 Revert my last two changes, r201865 and r201864:
14822 2013-08-20 David Malcolm <dmalcolm@redhat.com>
14824 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
14825 instances can own GC refs.
14827 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
14828 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
14829 (gcc::context::gt_pch_nx): Likewise.
14830 (gcc::context::gt_pch_nx): Likewise.
14831 * ggc.h (gt_ggc_mx <T>): New.
14832 (gt_pch_nx_with_op <T>): New.
14833 (gt_pch_nx <T>): New.
14834 * passes.c (opt_pass::gt_ggc_mx): New.
14835 (opt_pass::gt_pch_nx): New.
14836 (opt_pass::gt_pch_nx_with_op): New.
14837 (pass_manager::gt_ggc_mx): New.
14838 (pass_manager::gt_pch_nx): New.
14839 (pass_manager::gt_pch_nx_with_op): New.
14840 (pass_manager::operator new): Use
14841 ggc_internal_cleared_alloc_stat rather than xcalloc.
14842 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
14843 (pass_manager::gt_ggc_mx): New.
14844 (pass_manager::gt_pch_nx): New.
14845 (pass_manager::gt_pch_nx_with_op): New.
14846 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
14847 (opt_pass::operator new): New.
14848 (opt_pass::gt_ggc_mx): New.
14849 (opt_pass::gt_pch_nx): New.
14850 (opt_pass::gt_pch_nx_with_op): New.
14853 2013-08-20 David Malcolm <dmalcolm@redhat.com>
14855 * Makefile.in (GTFILES): Add context.h.
14856 * context.c (gcc::context::operator new): New.
14857 (gcc::context::gt_ggc_mx): New.
14858 (gcc::context::gt_pch_nx): New.
14859 (gcc::context::gt_pch_nx): New.
14860 * context.h (gcc::context): Add GTY((user)) marking.
14861 (gcc::context::operator new): New.
14862 (gcc::context::gt_ggc_mx): New.
14863 (gcc::context::gt_pch_nx): New.
14864 (gcc::context::gt_pch_nx): New.
14865 (g): Add GTY marking.
14866 (gt_ggc_mx (gcc::context *)): New.
14867 (gt_pch_nx (gcc::context *)): New.
14868 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
14869 void *cookie)): New.
14870 * gengtype.c (open_base_files) <ifiles>: Add context.h.
14872 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
14874 * dce.c (fini_dce): Call df_analyze again just in case
14875 delete_unmarked_insns removed anything.
14877 2013-08-20 Teresa Johnson <tejohnson@google.com>
14879 PR rtl-optimizations/57451
14880 * final.c (reemit_insn_block_notes): Prevent lexical blocks
14881 from crossing split section boundaries.
14883 2013-08-20 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
14885 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
14886 * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
14887 with MULTLIB_DEFAULTS.
14889 2013-08-20 Nick Clifton <nickc@redhat.com>
14891 * target.def (narrow_volatile_bitfield): Note that the default
14892 value is false, not !TARGET_STRICT_ALIGN.
14893 * doc/tm.texi: Regenerate.
14895 2013-08-20 Pavel Chupin <pavel.v.chupin@intel.com>
14897 Fix LIB_SPEC for systems without libpthread.
14899 * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
14900 * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
14902 * config/i386/linux-common.h: Likewise.
14903 * config/mips/linux-common.h: Likewise.
14905 2013-08-20 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
14907 * tree-ssa-ccp.c (get_default_value): Remove redundant condition
14910 2013-08-20 David Malcolm <dmalcolm@redhat.com>
14912 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
14913 instances can own GC refs.
14915 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
14916 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
14917 (gcc::context::gt_pch_nx): Likewise.
14918 (gcc::context::gt_pch_nx): Likewise.
14919 * ggc.h (gt_ggc_mx <T>): New.
14920 (gt_pch_nx_with_op <T>): New.
14921 (gt_pch_nx <T>): New.
14922 * passes.c (opt_pass::gt_ggc_mx): New.
14923 (opt_pass::gt_pch_nx): New.
14924 (opt_pass::gt_pch_nx_with_op): New.
14925 (pass_manager::gt_ggc_mx): New.
14926 (pass_manager::gt_pch_nx): New.
14927 (pass_manager::gt_pch_nx_with_op): New.
14928 (pass_manager::operator new): Use
14929 ggc_internal_cleared_alloc_stat rather than xcalloc.
14930 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
14931 (pass_manager::gt_ggc_mx): New.
14932 (pass_manager::gt_pch_nx): New.
14933 (pass_manager::gt_pch_nx_with_op): New.
14934 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
14935 (opt_pass::operator new): New.
14936 (opt_pass::gt_ggc_mx): New.
14937 (opt_pass::gt_pch_nx): New.
14938 (opt_pass::gt_pch_nx_with_op): New.
14940 2013-08-20 David Malcolm <dmalcolm@redhat.com>
14942 * Makefile.in (GTFILES): Add context.h.
14943 * context.c (gcc::context::operator new): New.
14944 (gcc::context::gt_ggc_mx): New.
14945 (gcc::context::gt_pch_nx): New.
14946 (gcc::context::gt_pch_nx): New.
14947 * context.h (gcc::context): Add GTY((user)) marking.
14948 (gcc::context::operator new): New.
14949 (gcc::context::gt_ggc_mx): New.
14950 (gcc::context::gt_pch_nx): New.
14951 (gcc::context::gt_pch_nx): New.
14952 (g): Add GTY marking.
14953 (gt_ggc_mx (gcc::context *)): New.
14954 (gt_pch_nx (gcc::context *)): New.
14955 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
14956 void *cookie)): New.
14957 * gengtype.c (open_base_files) <ifiles>: Add context.h.
14959 2013-08-20 Alan Modra <amodra@gmail.com>
14962 * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
14963 (rs6000_emit_epilogue): Likewise.
14965 2013-08-19 Dehao Chen <dehao@google.com>
14967 * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
14969 2013-08-19 Peter Bergner <bergner@vnet.ibm.com>
14970 Jakub Jelinek <jakub@redhat.com>
14972 * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
14973 (BUILT_IN_FABSD64): Likewise.
14974 (BUILT_IN_FABSD128): Likewise.
14975 * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
14976 (fold_builtin_1): Likewise.
14977 * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
14978 destination and source operands.
14979 (*abstd2_fpr): Likewise.
14980 (*nabstd2_fpr): Likewise.
14982 2013-08-19 Richard Sandiford <rdsandiford@googlemail.com>
14984 * config/mips/mips.c (mips_adjust_insn_length): Add checks for
14987 2013-08-19 Aldy Hernandez <aldyh@redhat.com>
14989 * doc/invoke.texi (-fcilkplus): Clarify that implementation is
14992 2013-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
14994 * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
14995 * builtins.c (default_libc_has_function): New.
14996 (gnu_libc_has_function): Ditto.
14997 (no_c99_libc_has_function): Ditto.
14998 (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
14999 instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
15000 (fold_builtin_sincos): Likewise.
15001 (fold_builtin_cexp): Likewise.
15002 * builtins.def (DEF_C94_BUILTIN): Likewise.
15003 (DEF_C99_BUILTIN): Likewise.
15004 (DEF_C99_C90RES_BUILTIN): Likewise.
15005 (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
15006 definitions to using this define.
15007 * config/darwin-protos.h (darwin_libc_has_function): New.
15008 * config/darwin.c (darwin_libc_has_function): Ditto.
15009 * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
15010 TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
15011 * config/darwin.h: Ditto.
15012 * config/elfos.h: Ditto.
15013 * config/freebsd.h: Ditto.
15014 * config/i386/cygming.h: Ditto.
15015 * config/i386/djgpp.h: Ditto.
15016 * config/i386/i386-interix.h: Ditto.
15017 * config/microblaze/microblaze.h: Ditto.
15018 * config/mmix/mmix.h: Ditto.
15019 * config/gnu-user.h: Ditto.
15020 * config/ia64/hpux.h: Ditto.
15021 * config/pa/pa-hpux.h: Ditto.
15022 * config/pdp11/pdp11.h: Ditto.
15023 * config/picochip/picochip.h: Ditto.
15024 * config/linux.h: Ditto.
15025 * config/netbsd.h: Ditto.
15026 * config/openbsd.h: Ditto.
15027 * config/rs6000/aix43.h: Ditto.
15028 * config/rs6000/aix51.h: Ditto.
15029 * config/rs6000/aix52.h: Ditto.
15030 * config/rs6000/aix53.h: Ditto.
15031 * config/rs6000/aix61.h: Ditto.
15032 * config/rs6000/darwin.h: Ditto.
15033 * config/rs6000/linux.h: Ditto.
15034 * config/rs6000/linux64.h: Ditto.
15035 * config/s390/tpf.h: Ditto.
15036 * config/sol2-10.h: Ditto.
15037 * config/sol2.h: Ditto.
15038 * config/vms/vms.h: Ditto.
15039 * config/vxworks.h: Ditto.
15040 * config/linux-android.c (linux_android_libc_has_function):
15041 New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
15042 * config/linux-protos.h (linux_android_libc_has_function):
15044 * config/i386/i386.c (ix86_libc_has_function): New.
15045 * config/i386/i386-protos.h
15046 (ix86_libc_has_function): New declaration.
15047 * config/i386/i386.md
15048 ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
15049 ("isinf<mode>2): Likewise.
15050 * convert.c (convert_to_integer): Using new target hook
15051 TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
15052 TARGET_C99_FUNCTIONS.
15053 * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
15054 * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
15055 * coretypes.h (function_class): New enum for different
15056 classes of functions.
15057 * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
15058 * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
15059 (TARGET_HAS_SINCOS): Likewise.
15060 (TARGET_LIBC_HAS_FUNCTION): New.
15061 * doc/tm.texi: Regenerated.
15062 * targhooks.h (default_libc_has_function): New declaration.
15063 (no_c99_libc_has_function): Ditto.
15064 (gnu_libc_has_function): Ditto.
15065 * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
15066 and TARGET_HAS_SINCOS.
15068 2013-08-18 Jan Hubicka <jh@suse.cz>
15070 * Makeifle-in (ipa-devirt.o): New.
15071 (GTFILES): Add ipa-utils.h and ipa-devirt.c
15072 * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
15073 (analyze_functions): Look into possible targets of polymorphic call.
15074 * dumpfile.c (dump_files): Add type-inheritance dump.
15075 * dumpfile.h (TDI_inheritance): New.
15076 * ipa-devirt.c: New file.
15077 * ipa-utils.h (odr_type_d): Forward declare.
15078 (odr_type): New type.
15079 (build_type_inheritance_graph): Declare.
15080 (possible_polymorphic_call_targets): Declare and introduce inline
15081 variant when only edge is pased.
15082 (dump_possible_polymorphic_call_targets): Likewise.
15083 * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
15084 * tree.c (type_in_anonymous_namespace_p): Break out from ...
15085 (types_same_for_odr): ... here.
15086 * tree.h (type_in_anonymous_namespace_p): Declare.
15088 2013-08-18 Jakub Jelinek <jakub@redhat.com>
15090 PR tree-optimization/58006
15091 * tree-parloops.c (take_address_of): Don't ICE if get_name
15093 (eliminate_local_variables_stmt): Remove clobber stmts.
15095 2013-08-18 Eric Botcazou <ebotcazou@adacore.com>
15097 * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
15098 error message is issued for an alias to undefined symbol.
15100 2013-08-18 Jan Hubicka <jh@suse.cz>
15102 * cgraph.c (cgraph_create_indirect_edge): Discover
15103 polymorphic calls and record basic info into indirect_info.
15104 * gimple-fold.c (gimple_fold_call): When doing BINFO based
15105 devirtualization, ignore objc function calls.
15106 * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
15107 call with no parm index info.
15108 * ipa-prop.c (ipa_analyze_call_uses): Likewise.
15109 * tree.c (virtual_method_call_p): New function.
15110 * tree.h (virtual_method_call_p): Declare.
15112 2013-08-16 Jan Hubicka <jh@suse.cz>
15114 PR middle-end/58179
15115 * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
15117 2013-08-16 David Edelsohn <dje.gcc@gmail.com>
15119 * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
15122 2013-08-16 David Malcolm <dmalcolm@redhat.com>
15124 * gengtype.c (type_for_name): Add special-case support for
15125 locating types within the "gcc::" namespace.
15126 (open_base_files): Emit a "using namespace gcc" directive.
15128 2013-08-16 Michael Meissner <meissner@linux.vnet.ibm.com>
15131 * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
15132 memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
15134 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
15135 array instead of each individual operand as a separate argument.
15136 (emit_fusion_gpr_load): Likewise.
15137 (expand_fusion_gpr_load): Add new function declaration.
15139 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
15140 signature to have the operands passed as an array, instead of as
15141 separate arguments. Allow ZERO_EXTEND to be in the memory
15142 address, and also SIGN_EXTEND if -mpower8-fusion-sign. Do not
15143 depend on the register live/dead flags when peepholes are run.
15144 (expand_fusion_gpr_load): New function to be called from the
15145 peephole2 pass, to change the register that addis sets to be the
15147 (emit_fusion_gpr_load): Change the calling signature to have the
15148 operands passed as an array, instead of as separate arguments.
15149 Allow ZERO_EXTEND to be in the memory address, and also
15150 SIGN_EXTEND if -mpower8-fusion-sign.
15152 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
15153 unspec enumeration.
15154 (power8 fusion peephole/peephole2): Rework the fusion peepholes to
15155 adjust the register addis loads up in the peephole2 pass. Do not
15156 depend on the register live/dead state when the peephole pass is done.
15158 2013-08-16 David Malcolm <dmalcolm@redhat.com>
15160 * gengtype.c (create_user_defined_type): Ensure that the kind
15161 is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
15162 declaration is seen before the GTY((user)) marking.
15164 2013-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
15167 * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
15169 2013-08-16 Jan Hubicka <jh@suse.cz>
15171 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
15172 arugment expected_type.
15173 (gimple_fold_call): Use it.
15174 * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
15175 * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
15176 * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
15177 (try_make_edge_direct_virtual_call): Likewise.
15178 * tree.c (obj_type_ref_class): New.
15179 * tree.h (obj_type_ref_class): Use it.
15181 2013-08-16 Gabriel Dos Reis <gdr@integrable-solutions.net>
15183 * sched-vis.c (rtl_slim_pp_initialized): Remove.
15184 (rtl_slim_pp): Likewise.
15185 (init_rtl_slim_pretty_print): Likewise.
15186 (dump_value_slim): Don't call it. Use local pretty printer.
15187 (dump_insn_slim): Likewise.
15188 (dump_rtl_slim): Likewise.
15189 (str_pattern_slim): Likewise.
15190 * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
15193 2013-08-16 Jakub Jelinek <jakub@redhat.com>
15195 PR tree-optimization/58164
15196 * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
15197 walk gimple_goto_dest of GIMPLE_GOTO.
15199 PR tree-optimization/58165
15200 * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
15201 bi_call must be the last stmt in a bb, don't split_block, instead
15202 use fallthru edge from it and give up if there is none.
15203 Release conds vector when returning early.
15205 2013-08-14 Xinliang David Li <davidxl@google.com>
15207 * config/i386/i386.c (ix86_option_override_internal):
15208 Remove unused variable and field.
15210 2013-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15213 * doc/invoke.texi: Add documentation of mcompat-align-parm option.
15214 * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
15215 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
15216 and Linux, correct BLKmode alignment when 128-bit alignment is
15217 required and compatibility flag is not set.
15218 (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
15219 for zero-size arguments when compatibility flag is not set.
15221 2013-08-14 Jakub Jelinek <jakub@redhat.com>
15223 PR tree-optimization/58145
15224 * tree-sra.c (build_ref_for_offset): If prev_base has
15225 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
15227 2013-08-14 Xinliang David Li <davidxl@google.com>
15229 * config/i386/i386.c (ix86_option_override_internal):
15230 Fix uninitialized variable error.
15232 2013-08-14 Xinliang David Li <davidxl@google.com>
15234 * config/i386/i386.opt: Define two new options.
15235 * config/i386/x86-tune.def: Add arch selector field in macros.
15236 * config/i386/i386.h: Adjust macro definition.
15237 * config/i386/i386.c (ix86_option_override_internal):
15239 (parse_mtune_ctrl_str): New function.
15240 (set_ix86_tune_features): New function.
15241 (ix86_function_specific_restore): Call the new helper function.
15243 2013-08-14 Andrey Belevantsev <abel@ispras.ru>
15245 PR rtl-optimization/57662
15246 * sel-sched.c (code_motion_process_successors): When the current insn
15247 is removed after the recursive traversal, break from the loop.
15248 Add comments and debug printouts.
15250 2013-08-14 Jakub Jelinek <jakub@redhat.com>
15251 Alexandre Oliva <aoliva@redhat.com>
15254 * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
15255 and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
15256 there also UNSPEC_PLTOFF.
15258 2013-08-14 Marek Polacek <polacek@redhat.com>
15260 * ipa-inline-analysis.c (add_clause): Avoid shifting integer
15261 NUM_CONDITIONS bit positions.
15263 2013-08-13 Cary Coutant <ccoutant@google.com>
15265 * dwarf2out.c (CHECKSUM_BLOCK): New macro.
15266 (attr_checksum): Hash vector contents instead of pointer.
15267 (attr_checksum_ordered): Likewise.
15269 2013-08-13 Uros Bizjak <ubizjak@gmail.com>
15271 * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
15272 when Pmode != word_mode. Add length_address attribute.
15273 (sse3_monitor_<mode>): Merge from sse3_monitor and
15274 sse3_monitor64_<mode> insn patterns. Emit addr32 prefix when
15275 Pmode != word_mode. Update insn length attribute.
15276 * config/i386/i386.c (ix86_option_override_internal): Update
15277 ix86_gen_monitor selection for merged sse3_monitor insn.
15279 2013-08-13 Julian Brown <julian@codesourcery.com>
15281 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
15282 perform invalid legitimization on greater-than-word-size modes for
15283 TARGET_E500_DOUBLE.
15285 2013-08-13 Vladimir Makarov <vmakarov@redhat.com>
15287 * ira.c (setup_class_translate_array): Use aclass instead of cl
15288 for classes not fully covered by allocno classes.
15290 2013-08-13 Jakub Jelinek <jakub@redhat.com>
15292 PR tree-optimization/57661
15293 * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
15294 * tree-inline.c (tree_function_versioning): Initialize it.
15295 (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
15296 if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
15297 that is not being copied.
15300 * asan.c (instrument_strlen_call): Fix typo in comment.
15301 Use char * type even for the lhs of POINTER_PLUS_EXPR.
15303 2013-08-13 Steve Ellcey <sellcey@mips.com>
15305 * config/mips/mips.md (prefetch): Use lw instead of ld on
15306 loongson in 32bit mode.
15308 2013-08-13 Nick Clifton <nickc@redhat.com>
15310 * config.gcc: (avr-linux): Allow for tmake_file not being empty.
15312 2013-08-13 Jan Hubicka <jh@suse.cz>
15314 * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
15315 introduced edge; fix typo in sanity check.
15316 (cgraph_resolve_speculation): Export; improve diagnostic.
15317 (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
15318 speculation at type mismatch.
15319 * cgraph.h (cgraph_turn_edge_to_speculative): Update.
15320 (cgraph_resolve_speculation): Declare.
15321 (symtab_can_be_discarded): New function.
15322 * value-prof.c (gimple_ic_transform): Remove actual transform code.
15323 * ipa-inline-transform.c (speculation_removed): New global var.
15324 (clone_inlined_nodes): See if speculation can be removed.
15325 (inline_call): If speculations was removed, we growths may not match.
15326 * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
15327 (speculation_useful_p): New function.
15328 (resolve_noninline_speculation): New function.
15329 (inline_small_functions): Resolve useless speculations.
15330 * ipa-inline.h (speculation_useful_p): Declare
15331 * ipa.c (can_replace_by_local_alias): Simplify.
15332 (ipa_profile): Produce speculative calls in non-lto, too;
15333 add simple cost model; produce local aliases.
15335 2013-08-13 David Malcolm <dmalcolm@redhat.com>
15337 * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
15340 2013-08-12 Paolo Carlini <paolo.carlini@oracle.com>
15342 * config/i386/i386.c (ix86_function_versions): Use error + inform.
15344 2013-08-12 Uros Bizjak <ubizjak@gmail.com>
15346 * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
15347 iterator instead of X87MODEF.
15349 2013-08-12 Perez Read <netfirewall@gmail.com>
15352 * config/i386/i386.md (*movabs<mode>_1): Add <ptrsize> PTR before
15353 operand 0 for intel asm alternative.
15354 (*movabs<mode>_2): Ditto for operand 1.
15356 2013-08-12 James Greenhalgh <james.greenhalgh@arm.com>
15358 * config/aarch64/arm_none.h
15359 (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
15361 2013-08-12 Nick Clifton <nickc@redhat.com>
15363 * config.gcc (m32r-linux): Allow for tmake_file not being empty.
15365 2013-08-12 Yuri Rumyantsev <ysrumyan@gmail.com>
15367 * config/i386/i386.md (floatunssi<mode>2 expand): Add new
15368 expand for QI/HImode operand to produce more effictive code for
15369 unsigned char(short) --> float(double) conversion.
15371 2013-08-12 Alexander Monakov <amonakov@ispras.ru>
15373 * doc/invoke.texi: Mention that -ftls-model does not force the final
15376 2013-08-12 Marek Polacek <polacek@redhat.com>
15377 Marc Glisse <marc.glisse@inria.fr>
15379 PR tree-optimization/57980
15380 * tree-tailcall.c (process_assignment): Call build_minus_one_cst
15381 when creating -1 constant.
15383 2013-08-10 Jan Hubicka <jh@suse.cz>
15385 Workaround binutils PR14342.
15386 * tree-profile.c (init_ic_make_global_vars): Add LTO path.
15387 (gimple_init_edge_profiler): Likewise.
15388 (gimple_gen_ic_func_profiler): Likewise.
15390 2013-08-09 Jan Hubicka <jh@suse.cz>
15392 * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
15394 2013-08-09 Xinliang David Li <davidxl@google.com>
15396 * config/i386/stringop.def: New file.
15397 * config/i386/stringop.opt: New file.
15398 * config/i386/i386-opts.h: Include stringopt.def.
15399 * config/i386/i386.opt: Include stringopt.opt.
15400 * config/i386/i386.c (ix86_option_override_internal):
15401 Override default size based stringop inline strategies with options.
15402 * config/i386/i386.c (ix86_parse_stringop_strategy_string):
15405 2013-08-09 Jan Hubicka <jh@suse.cz>
15407 * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
15409 2013-08-09 Jan Hubicka <jh@suse.cz>
15411 * cgraph.c (cgraph_resolve_speculation): Cut frequency to
15413 (dump_cgraph_node): Dump profile-id.
15414 * cgraph.h (cgraph_indirect_call_info): Add common_target_id
15415 and common_target_probability.
15416 * lto-cgraph.c (lto_output_edge): Stream common targets.
15417 (lto_output_node): Stream profile ids.
15418 (input_node): Stream profile ids.
15419 (input_edge): Stream common targets.
15420 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
15421 * ipa.c: Include value-prof.h
15422 (ipa_profile_generate_summary): Turn indirect call statement histograms
15423 into common targets.
15424 (ipa_profile): Turn common targets into speculative edges.
15426 2013-08-09 Jan Hubicka <jh@suse.cz>
15428 * cgraph.h (cgraph_node): Add profile_id.
15429 * value-prof.c (cgraph_node_map): Turn into pointer_map.
15430 (init_node_map): Rewrite to handle hashes increas of incremental IDs.
15431 (del_node_map): Update.
15432 (find_func_by_funcdef_no): Replace by ...
15433 (find_func_by_profile_id): ... this one.
15434 (gimple_ic_transform): Do not remove useful histograms when
15435 speculation is not done; dump info when indirect call removal
15437 * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
15438 * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
15439 (__gcov_indirect_call_profiler_v2): .. this one.
15440 * profile.h (init_node_map): Update.
15441 * coverage.c (coverage_compute_profile_id): New function.
15442 * coverage.h (coverage_compute_profile_id): Declare.
15443 * tree-profile.c (init_ic_make_global_vars): Make
15444 __gcov_indirect_call_callee and __gcov_indirect_call_counters global.
15445 (gimple_init_edge_profiler): Update prototype of
15446 __gcov_indirect_call_profiler.
15447 (gimple_gen_ic_func_profiler): Simplify.
15448 (tree_profiling): Use init_node_map
15450 2013-08-09 Jan Hubicka <jh@suse.cz>
15452 * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
15453 non-speculative refs.
15454 * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
15455 (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
15456 (cgraph_set_call_stmt): Likewise.
15457 (cgraph_create_edge_1): Fix release checking compilatoin;
15458 clear lto_stmt_uid.
15459 (cgraph_free_edge): Free indirect info.
15460 (cgraph_turn_edge_to_speculative): New function.
15461 (cgraph_speculative_call_info): New function.
15462 (cgraph_make_edge_direct): Return direct edge; handle speculation.
15463 (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
15464 (dump_cgraph_node): Dump speculation.
15465 (verify_edge_count_and_frequency): Accept speculative edges.
15466 (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
15467 (verify_cgraph_node): Handle speculation.
15468 * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
15469 (cgraph_set_call_stmt): Update prototype.
15470 (cgraph_make_edge_direct): Update prototype.
15471 (cgraph_speculative_call_info): Declare.
15472 * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
15473 to change; update call of ipa_find_references.
15474 * ipa-ref.c (ipa_record_reference): Fix return value; clear
15475 lto_stmt_uid and speculative flags.
15476 (ipa_dump_references): Dump speculation.
15477 (ipa_clone_references): Clone speculative flag.
15478 (ipa_clone_referring): Likewise.
15479 (ipa_clone_ref): New function.
15480 (ipa_find_reference): Look into lto_stmt_uids
15481 (ipa_clear_stmts_in_references): Do not clear speculative calls.
15482 * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
15483 (ipa_find_reference): Update declaration.
15484 (ipa_clone_ref): Declare.
15485 * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
15486 stream speculative flag.
15487 (lto_output_ref): Stream statements uids and speculation.
15488 (input_ref): Likewise.
15489 (input_edge): Stream speuclation.
15490 * cgraphclones.c (cgraph_clone_edge): Clone speculation.
15491 (cgraph_set_call_stmt_including_clones): Handle speculation.
15492 * ipa-inline.c (heap_edge_removal_hook): New function.
15493 (inline_small_functions): Register it.
15494 * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
15495 also initialize refs.
15496 * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
15498 (try_make_edge_direct_simple_call): Likewise.
15499 (try_make_edge_direct_simple_call): Likewise.
15500 (update_indirect_edges_after_inlining): Likewise.
15501 (remove_described_reference): Look proper lto_stmt_uid.
15502 (propagate_controlled_uses): Likewise.
15503 (propagate_controlled_uses): Liekwise.
15504 * tree-inline.c (copy_bb): Copy speculative edges.
15505 (redirect_all_calls): New function.
15506 (copy_cfg_body): Do redirection after loop info is updated.
15507 (delete_unreachable_blocks_update_callgraph): Updadte speculation.
15509 2013-08-09 Jan Hubicka <jh@suse.cz>
15511 * lto-streamer-out.c (output_function): Renumber PHIs.
15512 * lto-streamer-in.c (input_function): Likewise.
15514 2013-08-09 James Greenhalgh <james.greenhalgh@arm.com>
15516 * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
15517 (get_lane_unsigned): Likewise.
15518 (dup_lane_scalar): Likewise.
15519 (get_lane): enable for VALL.
15520 * config/aarch64/aarch64-simd.md
15521 (aarch64_dup_lane_scalar<mode>): Remove.
15522 (aarch64_get_lane_signed<mode>): Likewise.
15523 (aarch64_get_lane_unsigned<mode>): Likewise.
15524 (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
15525 (aarch64_get_lane_zero_extendsi<mode>): Likewise.
15526 (aarch64_get_lane<mode>): Enable for all vector modes.
15527 (aarch64_get_lanedi): Remove misleading constraints.
15528 * config/aarch64/arm_neon.h
15529 (__aarch64_vget_lane_any): Define.
15530 (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
15531 (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
15532 (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
15533 * config/aarch64/iterators.md (VDQQH): New.
15534 (VDQQHS): Likewise.
15535 (vwcore): Likewise.
15537 2013-08-09 Eric Botcazou <ebotcazou@adacore.com>
15539 * configure.ac: Add GAS check for LEON instructions on SPARC.
15540 * configure: Regenerate.
15541 * config.in: Likewise.
15542 * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
15544 * config/sparc/sparc.opt (LEON, LEON3): New masks.
15545 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
15547 (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
15548 (AS_LEON_FLAG): New macro.
15549 * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
15550 and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
15551 Deal with LEON and LEON3 for the memory model.
15552 * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
15553 (atomic_compare_and_swap<mode>_1): Likewise.
15554 (*atomic_compare_and_swap<mode>_1): Likewise.
15556 2013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15558 * config/arm/neon.md (vcond): Fix floating-point vector
15559 comparisons against 0.
15561 2013-08-08 Vladimir Makarov <vmakarov@redhat.com>
15563 * lra-constraints.c (emit_spill_move): Remove assert.
15564 (process_alt_operands): Add more debugging
15565 output. Increase reject for spilling into memory. Decrease
15566 reject for reloading scratch.
15567 (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
15569 2013-08-08 Steve Ellcey <sellcey@mips.com>
15571 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
15572 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
15573 micromips incompatible. Add nan2008.
15574 (MULTILIB_DIRNAMES): Add nan2008.
15575 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
15576 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
15577 and micromips incompatible. Add nan2008.
15578 (MULTILIB_DIRNAMES): Add nan2008.
15579 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
15581 2013-08-08 Richard Sandiford <rdsandiford@googlemail.com>
15583 PR rtl-optimization/58079
15584 * combine.c (combine_simplify_rtx): Avoid using SUBST if
15585 simplify_comparison has widened a comparison with an integer.
15587 2013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15589 * config/arm/neon.md (movmisalign<mode>): Disable when we
15590 don't allow unaligned accesses.
15591 (*movmisalign<mode>_neon_store): Likewise.
15592 (*movmisalign<mode>_neon_load): Likewise.
15593 (*movmisalign<mode>_neon_store): Likewise.
15594 (*movmisalign<mode>_neon_load): Likewise.
15596 2013-08-08 Jan Hubicka <jh@suse.cz>
15598 * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
15599 (make_pass_rebuild_cgraph_edges): Also clear references.
15600 * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
15601 * ipa-inline-transform.c (inline_transform): Remove all references
15603 * cgraphunit.c (expand_function): Remove all references after
15605 * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
15606 (ipa_find_reference): Rewrite to iterator.
15607 (remove_stmt_references): Likewise.
15608 (ipa_clear_stmts_in_references): New function.
15609 * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
15610 * cgraphclones.c (cgraph_materialize_all_clones): Remove or
15612 * ipa-split.c (split_function): Remove references in split function.
15614 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
15617 * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
15618 (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
15620 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
15623 * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
15624 suggested mode for the assignment isn't compatible with the
15625 registers required.
15627 2013-08-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
15630 * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
15632 2013-08-07 Xinliang David Li <davidxl@google.com>
15634 * config/i386/i386.opt: New option -mtune-ctrl=.
15635 * config/i386/x86-tune.def: New file.
15636 * config/i386/i386.h: include x86-tune.def.
15637 * config/i386/i386.c (ix86_option_override_internal):
15638 Parsing -mtune-ctrl= option and set tune features.
15640 2013-08-07 Oleg Endo <olegendo@gcc.gnu.org>
15643 * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
15644 (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
15647 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
15649 * rtl.h (update_alignments): Declare.
15650 * final.c (grow_label_align): New function extracted from...
15651 (shorten_branches): ...here. Call it.
15652 (update_alignments): New function.
15653 * reorg.c (sibling_labels): New variable.
15654 (get_label_before): Add SIBLING parameter. If it is non-zero, push
15655 the new label along with it onto the sibling_labels vector.
15656 (fill_simple_delay_slots): Adjust call to get_label_before.
15657 (fill_slots_from_thread): Likewise.
15658 (relax_delay_slots): Likewise.
15659 (make_return_insns): Likewise.
15660 (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
15662 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
15664 * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
15665 document its semantics.
15666 (diagnostic_report_diagnostic): Adjust accordingly.
15668 2013-08-07 David Malcolm <dmalcolm@redhat.com>
15670 * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
15671 (sparc_option_override): ...and port to new C++ pass API.
15672 * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
15674 2013-08-07 Peter Bergner <bergner@vnet.ibm.com>
15676 * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
15678 2013-08-06 Caroline Tice <cmtice@google.com>
15680 * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
15681 (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
15682 * tree-pass.h: Add pass_vtable_verify.
15683 * varasm.c (assemble_variable): Add code to properly set the comdat
15684 section and name for the .vtable_map_vars section.
15685 (assemble_vtyv_preinit_initializer): New function.
15686 (default_sectin_type_flags): Make sure .vtable_map_vars section has
15688 * output.h: Add function decl for assemble_vtv_preinit_initializer.
15689 * vtable-verify.c: New file.
15690 * vtable-verify.h: New file.
15691 * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
15692 initialiation levels.
15693 * timevar.def (TV_VTABLE_VERIFICATION): New definition.
15694 * passes.def: Insert pass_vtable_verify.
15695 * aclocal.m4: Reorder includes.
15696 * doc/invoke.texi: Document the -fvtable-verify=, -fvtv-debug, and
15697 -fvtv-counts options.
15698 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
15699 as appropriate, if -fvtable-verify=... is used.
15700 (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
15701 -fvtable-verify=... is used.
15702 * Makefile.in (OBJS): Add vtable-verify.o to list.
15703 (vtable-verify.o): Add new build rule.
15704 (GTFILES): Add vtable-verify.c to list.
15705 * common.opt (fvtable-verify=): New flag.
15706 (vtv_priority): Values for fvtable-verify= flag.
15707 (fvtv-counts): New flag.
15708 (fvtv-debug): New flag.
15709 * tree.h (save_vtable_map_decl): New extern function decl.
15711 2013-08-07 David Malcolm <dmalcolm@redhat.com>
15713 * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
15714 (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
15715 (pass_data_rl78_devirt): ...new pass_data instance and...
15716 (make_pass_rl78_devirt): ...new function.
15717 (rl78_asm_file_start): Port pass registration to new C++ API.
15719 2013-08-07 David Malcolm <dmalcolm@redhat.com>
15721 * coretypes.h (rtl_opt_pass): Add.
15722 (gcc::context): Add.
15723 * config/epiphany/epiphany.c (pass_mode_switch_use): New.
15724 (epiphany_init): Port to new C++ pass API.
15725 (epiphany_optimize_mode_switching): Likewise.
15726 * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
15727 (pass_manager::get_pass_mode_switching): New.
15728 (pass_manager::get_pass_peephole2): New.
15729 * mode-switching.c (pass_mode_switching): Add clone method.
15730 * recog.c (pass_peephole2): Add clone method.
15731 (pass_split_all_insns): Add clone method.
15733 2013-08-06 David Malcolm <dmalcolm@redhat.com>
15735 * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
15736 (mips_option_override): ...here, porting to new C++ API for passes.
15738 2013-08-06 Jan Hubicka <jh@suse.cz>
15740 * cgraph.c (cgraph_get_body): New function based on lto.c
15742 * cgraph.h (cgraph_get_body): Declare.
15743 * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
15745 * cgraphunit.c (expand_function): Get body prior expanding.
15746 * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
15747 * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
15749 * passes.c (do_per_function_toporder): Get body.
15750 * tree-inline.c (expand_call_inline): Get body prior inlining it.
15751 * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
15753 2013-08-06 Martin Jambor <mjambor@suse.cz>
15756 * cgraphunit.c (cgraph_finalize_function): Assert that nested function
15757 is not re-finalized. Rename second parameter to no_collect.
15759 2013-08-06 Martin Jambor <mjambor@suse.cz>
15761 PR middle-end/58041
15762 * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
15763 MEM_REF has proper alignment information.
15765 2013-08-05 Oleg Endo <olegendo@gcc.gnu.org>
15768 * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
15770 * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
15771 rtx (*) (rtx, ...) with insn_gen_fn.
15772 * genoutput.c (output_insn_data): Cast gen_? function pointers to
15773 insn_gen_fn::stored_funcptr. Add initializer braces.
15775 2013-08-05 David Malcolm <dmalcolm@redhat.com>
15777 Rewrite how instances of passes are cloned to remove assumptions
15778 about their sizes (thus allowing pass subclasses to have
15779 additional data fields, albeit non-GC-managed ones at this point).
15781 * passes.c (make_pass_instance): Now that passes have clone
15782 methods, rewrite this function to eliminate XNEW and memcpy
15783 calls that used hardcoded sizes. Since this function no longer
15784 creates pass instances, rename it to...
15785 (add_pass_instance): ...this. Document the old way that passes were
15786 numbered and flagged, and rework this function to continue using it.
15787 (next_pass_1): Add an initial_pass argument for use by
15789 (position_pass): When adding multiple instances of a pass, use
15790 the pass's clone method, rather than relying on the XNEW/memcpy
15791 within the former make_pass_instance (now add_pass_instance).
15792 (pass_manager::pass_manager): When invoking next_pass_1, also supply
15793 the initial instance of the current pass within the pass manager.
15795 2013-08-05 David Malcolm <dmalcolm@redhat.com>
15797 This is the automated part of the conversion of passes from C
15798 structs to C++ classes.
15800 Patch autogenerated by refactor_passes.py from
15801 https://github.com/davidmalcolm/gcc-refactoring-scripts
15802 revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
15804 * asan.c (pass_asan): Convert from a global struct to a subclass of
15805 gimple_opt_pass along with...
15806 (pass_data_asan): ...new pass_data instance and...
15807 (make_pass_asan): ...new function.
15808 (pass_asan_O0): Convert from a global struct to a subclass of
15809 gimple_opt_pass along with...
15810 (pass_data_asan_O0): ...new pass_data instance and...
15811 (make_pass_asan_O0): ...new function.
15812 * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
15813 subclass of rtl_opt_pass along with...
15814 (pass_data_inc_dec): ...new pass_data instance and...
15815 (make_pass_inc_dec): ...new function.
15816 * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
15817 a subclass of rtl_opt_pass along with...
15818 (pass_data_reorder_blocks): ...new pass_data instance and...
15819 (make_pass_reorder_blocks): ...new function.
15820 (pass_duplicate_computed_gotos): Convert from a global struct to a
15821 subclass of rtl_opt_pass along with...
15822 (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
15823 (make_pass_duplicate_computed_gotos): ...new function.
15824 (pass_partition_blocks): Convert from a global struct to a subclass of
15825 rtl_opt_pass along with...
15826 (pass_data_partition_blocks): ...new pass_data instance and...
15827 (make_pass_partition_blocks): ...new function.
15828 * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
15829 struct to a subclass of rtl_opt_pass along with...
15830 (pass_data_branch_target_load_optimize1): ...new pass_data instance
15832 (make_pass_branch_target_load_optimize1): ...new function.
15833 (pass_branch_target_load_optimize2): Convert from a global struct to a
15834 subclass of rtl_opt_pass along with...
15835 (pass_data_branch_target_load_optimize2): ...new pass_data instance
15837 (make_pass_branch_target_load_optimize2): ...new function.
15838 * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
15839 of rtl_opt_pass along with...
15840 (pass_data_jump): ...new pass_data instance and...
15841 (make_pass_jump): ...new function.
15842 (pass_jump2): Convert from a global struct to a subclass of
15843 rtl_opt_pass along with...
15844 (pass_data_jump2): ...new pass_data instance and...
15845 (make_pass_jump2): ...new function.
15846 * cfgexpand.c (pass_expand): Convert from a global struct to a
15847 subclass of rtl_opt_pass along with...
15848 (pass_data_expand): ...new pass_data instance and...
15849 (make_pass_expand): ...new function.
15850 * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
15851 of rtl_opt_pass along with...
15852 (pass_data_free_cfg): ...new pass_data instance and...
15853 (make_pass_free_cfg): ...new function.
15854 (pass_into_cfg_layout_mode): Convert from a global struct to a
15855 subclass of rtl_opt_pass along with...
15856 (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
15857 (make_pass_into_cfg_layout_mode): ...new function.
15858 (pass_outof_cfg_layout_mode): Convert from a global struct to a
15859 subclass of rtl_opt_pass along with...
15860 (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
15861 (make_pass_outof_cfg_layout_mode): ...new function.
15862 * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
15863 struct to a subclass of gimple_opt_pass along with...
15864 (pass_data_build_cgraph_edges): ...new pass_data instance and...
15865 (make_pass_build_cgraph_edges): ...new function.
15866 (pass_rebuild_cgraph_edges): Convert from a global struct to a
15867 subclass of gimple_opt_pass along with...
15868 (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
15869 (make_pass_rebuild_cgraph_edges): ...new function.
15870 (pass_remove_cgraph_callee_edges): Convert from a global struct to a
15871 subclass of gimple_opt_pass along with...
15872 (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
15874 (make_pass_remove_cgraph_callee_edges): ...new function.
15875 * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
15876 struct to a subclass of rtl_opt_pass along with...
15877 (pass_data_stack_adjustments): ...new pass_data instance and...
15878 (make_pass_stack_adjustments): ...new function.
15879 * combine.c (pass_combine): Convert from a global struct to a subclass
15880 of rtl_opt_pass along with...
15881 (pass_data_combine): ...new pass_data instance and...
15882 (make_pass_combine): ...new function.
15883 * compare-elim.c (pass_compare_elim_after_reload): Convert from a
15884 global struct to a subclass of rtl_opt_pass along with...
15885 (pass_data_compare_elim_after_reload): ...new pass_data instance
15887 (make_pass_compare_elim_after_reload): ...new function.
15888 * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
15889 of rtl_opt_pass along with...
15890 (pass_data_rtl_cprop): ...new pass_data instance and...
15891 (make_pass_rtl_cprop): ...new function.
15892 * cse.c (pass_cse): Convert from a global struct to a subclass of
15893 rtl_opt_pass along with...
15894 (pass_data_cse): ...new pass_data instance and...
15895 (make_pass_cse): ...new function.
15896 (pass_cse2): Convert from a global struct to a subclass of
15897 rtl_opt_pass along with...
15898 (pass_data_cse2): ...new pass_data instance and...
15899 (make_pass_cse2): ...new function.
15900 (pass_cse_after_global_opts): Convert from a global struct to a
15901 subclass of rtl_opt_pass along with...
15902 (pass_data_cse_after_global_opts): ...new pass_data instance and...
15903 (make_pass_cse_after_global_opts): ...new function.
15904 * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
15905 of rtl_opt_pass along with...
15906 (pass_data_ud_rtl_dce): ...new pass_data instance and...
15907 (make_pass_ud_rtl_dce): ...new function.
15908 (pass_fast_rtl_dce): Convert from a global struct to a subclass of
15909 rtl_opt_pass along with...
15910 (pass_data_fast_rtl_dce): ...new pass_data instance and...
15911 (make_pass_fast_rtl_dce): ...new function.
15912 * df-core.c (pass_df_initialize_opt): Convert from a global struct to
15913 a subclass of rtl_opt_pass along with...
15914 (pass_data_df_initialize_opt): ...new pass_data instance and...
15915 (make_pass_df_initialize_opt): ...new function.
15916 (pass_df_initialize_no_opt): Convert from a global struct to a
15917 subclass of rtl_opt_pass along with...
15918 (pass_data_df_initialize_no_opt): ...new pass_data instance and...
15919 (make_pass_df_initialize_no_opt): ...new function.
15920 (pass_df_finish): Convert from a global struct to a subclass of
15921 rtl_opt_pass along with...
15922 (pass_data_df_finish): ...new pass_data instance and...
15923 (make_pass_df_finish): ...new function.
15924 * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
15925 rtl_opt_pass along with...
15926 (pass_data_rtl_dse1): ...new pass_data instance and...
15927 (make_pass_rtl_dse1): ...new function.
15928 (pass_rtl_dse2): Convert from a global struct to a subclass of
15929 rtl_opt_pass along with...
15930 (pass_data_rtl_dse2): ...new pass_data instance and...
15931 (make_pass_rtl_dse2): ...new function.
15932 * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
15933 subclass of rtl_opt_pass along with...
15934 (pass_data_dwarf2_frame): ...new pass_data instance and...
15935 (make_pass_dwarf2_frame): ...new function.
15936 * except.c (pass_set_nothrow_function_flags): Convert from a global
15937 struct to a subclass of rtl_opt_pass along with...
15938 (pass_data_set_nothrow_function_flags): ...new pass_data instance
15940 (make_pass_set_nothrow_function_flags): ...new function.
15941 (pass_convert_to_eh_region_ranges): Convert from a global struct to a
15942 subclass of rtl_opt_pass along with...
15943 (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
15945 (make_pass_convert_to_eh_region_ranges): ...new function.
15946 * final.c (pass_compute_alignments): Convert from a global struct to a
15947 subclass of rtl_opt_pass along with...
15948 (pass_data_compute_alignments): ...new pass_data instance and...
15949 (make_pass_compute_alignments): ...new function.
15950 (pass_final): Convert from a global struct to a subclass of
15951 rtl_opt_pass along with...
15952 (pass_data_final): ...new pass_data instance and...
15953 (make_pass_final): ...new function.
15954 (pass_shorten_branches): Convert from a global struct to a subclass of
15955 rtl_opt_pass along with...
15956 (pass_data_shorten_branches): ...new pass_data instance and...
15957 (make_pass_shorten_branches): ...new function.
15958 (pass_clean_state): Convert from a global struct to a subclass of
15959 rtl_opt_pass along with...
15960 (pass_data_clean_state): ...new pass_data instance and...
15961 (make_pass_clean_state): ...new function.
15962 * function.c (pass_instantiate_virtual_regs): Convert from a global
15963 struct to a subclass of rtl_opt_pass along with...
15964 (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
15965 (make_pass_instantiate_virtual_regs): ...new function.
15966 (pass_leaf_regs): Convert from a global struct to a subclass of
15967 rtl_opt_pass along with...
15968 (pass_data_leaf_regs): ...new pass_data instance and...
15969 (make_pass_leaf_regs): ...new function.
15970 (pass_thread_prologue_and_epilogue): Convert from a global struct to a
15971 subclass of rtl_opt_pass along with...
15972 (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
15974 (make_pass_thread_prologue_and_epilogue): ...new function.
15975 (pass_match_asm_constraints): Convert from a global struct to a
15976 subclass of rtl_opt_pass along with...
15977 (pass_data_match_asm_constraints): ...new pass_data instance and...
15978 (make_pass_match_asm_constraints): ...new function.
15979 * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
15980 subclass of rtl_opt_pass along with...
15981 (pass_data_rtl_fwprop): ...new pass_data instance and...
15982 (make_pass_rtl_fwprop): ...new function.
15983 (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
15984 rtl_opt_pass along with...
15985 (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
15986 (make_pass_rtl_fwprop_addr): ...new function.
15987 * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
15988 rtl_opt_pass along with...
15989 (pass_data_rtl_pre): ...new pass_data instance and...
15990 (make_pass_rtl_pre): ...new function.
15991 (pass_rtl_hoist): Convert from a global struct to a subclass of
15992 rtl_opt_pass along with...
15993 (pass_data_rtl_hoist): ...new pass_data instance and...
15994 (make_pass_rtl_hoist): ...new function.
15995 * gimple-low.c (pass_lower_cf): Convert from a global struct to a
15996 subclass of gimple_opt_pass along with...
15997 (pass_data_lower_cf): ...new pass_data instance and...
15998 (make_pass_lower_cf): ...new function.
15999 * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
16000 from a global struct to a subclass of gimple_opt_pass along with...
16001 (pass_data_strength_reduction): ...new pass_data instance and...
16002 (make_pass_strength_reduction): ...new function.
16003 * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
16004 of rtl_opt_pass along with...
16005 (pass_data_rtl_ifcvt): ...new pass_data instance and...
16006 (make_pass_rtl_ifcvt): ...new function.
16007 (pass_if_after_combine): Convert from a global struct to a subclass of
16008 rtl_opt_pass along with...
16009 (pass_data_if_after_combine): ...new pass_data instance and...
16010 (make_pass_if_after_combine): ...new function.
16011 (pass_if_after_reload): Convert from a global struct to a subclass of
16012 rtl_opt_pass along with...
16013 (pass_data_if_after_reload): ...new pass_data instance and...
16014 (make_pass_if_after_reload): ...new function.
16015 * init-regs.c (pass_initialize_regs): Convert from a global struct to
16016 a subclass of rtl_opt_pass along with...
16017 (pass_data_initialize_regs): ...new pass_data instance and...
16018 (make_pass_initialize_regs): ...new function.
16019 * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
16020 of ipa_opt_pass_d along with...
16021 (pass_data_ipa_cp): ...new pass_data instance and...
16022 (make_pass_ipa_cp): ...new function.
16023 * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
16024 global struct to a subclass of gimple_opt_pass along with...
16025 (pass_data_inline_parameters): ...new pass_data instance and...
16026 (make_pass_inline_parameters): ...new function.
16027 * ipa-inline.c (pass_early_inline): Convert from a global struct to a
16028 subclass of gimple_opt_pass along with...
16029 (pass_data_early_inline): ...new pass_data instance and...
16030 (make_pass_early_inline): ...new function.
16031 (pass_ipa_inline): Convert from a global struct to a subclass of
16032 ipa_opt_pass_d along with...
16033 (pass_data_ipa_inline): ...new pass_data instance and...
16034 (make_pass_ipa_inline): ...new function.
16035 * ipa-pure-const.c (pass_local_pure_const): Convert from a global
16036 struct to a subclass of gimple_opt_pass along with...
16037 (pass_data_local_pure_const): ...new pass_data instance and...
16038 (make_pass_local_pure_const): ...new function.
16039 (pass_ipa_pure_const): Convert from a global struct to a subclass of
16040 ipa_opt_pass_d along with...
16041 (pass_data_ipa_pure_const): ...new pass_data instance and...
16042 (make_pass_ipa_pure_const): ...new function.
16043 * ipa-reference.c (pass_ipa_reference): Convert from a global struct
16044 to a subclass of ipa_opt_pass_d along with...
16045 (pass_data_ipa_reference): ...new pass_data instance and...
16046 (make_pass_ipa_reference): ...new function.
16047 * ipa-split.c (pass_split_functions): Convert from a global struct to
16048 a subclass of gimple_opt_pass along with...
16049 (pass_data_split_functions): ...new pass_data instance and...
16050 (make_pass_split_functions): ...new function.
16051 (pass_feedback_split_functions): Convert from a global struct to a
16052 subclass of gimple_opt_pass along with...
16053 (pass_data_feedback_split_functions): ...new pass_data instance and...
16054 (make_pass_feedback_split_functions): ...new function.
16055 * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
16056 global struct to a subclass of simple_ipa_opt_pass along with...
16057 (pass_data_ipa_function_and_variable_visibility): ...new pass_data
16059 (make_pass_ipa_function_and_variable_visibility): ...new function.
16060 (pass_ipa_free_inline_summary): Convert from a global struct to a
16061 subclass of simple_ipa_opt_pass along with...
16062 (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
16063 (make_pass_ipa_free_inline_summary): ...new function.
16064 (pass_ipa_whole_program_visibility): Convert from a global struct to a
16065 subclass of ipa_opt_pass_d along with...
16066 (pass_data_ipa_whole_program_visibility): ...new pass_data instance
16068 (make_pass_ipa_whole_program_visibility): ...new function.
16069 (pass_ipa_profile): Convert from a global struct to a subclass of
16070 ipa_opt_pass_d along with...
16071 (pass_data_ipa_profile): ...new pass_data instance and...
16072 (make_pass_ipa_profile): ...new function.
16073 (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
16074 ipa_opt_pass_d along with...
16075 (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
16076 (make_pass_ipa_cdtor_merge): ...new function.
16077 * ira.c (pass_ira): Convert from a global struct to a subclass of
16078 rtl_opt_pass along with...
16079 (pass_data_ira): ...new pass_data instance and...
16080 (make_pass_ira): ...new function.
16081 (pass_reload): Convert from a global struct to a subclass of
16082 rtl_opt_pass along with...
16083 (pass_data_reload): ...new pass_data instance and...
16084 (make_pass_reload): ...new function.
16085 * jump.c (pass_cleanup_barriers): Convert from a global struct to a
16086 subclass of rtl_opt_pass along with...
16087 (pass_data_cleanup_barriers): ...new pass_data instance and...
16088 (make_pass_cleanup_barriers): ...new function.
16089 * loop-init.c (pass_loop2): Convert from a global struct to a subclass
16090 of rtl_opt_pass along with...
16091 (pass_data_loop2): ...new pass_data instance and...
16092 (make_pass_loop2): ...new function.
16093 (pass_rtl_loop_init): Convert from a global struct to a subclass of
16094 rtl_opt_pass along with...
16095 (pass_data_rtl_loop_init): ...new pass_data instance and...
16096 (make_pass_rtl_loop_init): ...new function.
16097 (pass_rtl_loop_done): Convert from a global struct to a subclass of
16098 rtl_opt_pass along with...
16099 (pass_data_rtl_loop_done): ...new pass_data instance and...
16100 (make_pass_rtl_loop_done): ...new function.
16101 (pass_rtl_move_loop_invariants): Convert from a global struct to a
16102 subclass of rtl_opt_pass along with...
16103 (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
16104 (make_pass_rtl_move_loop_invariants): ...new function.
16105 (pass_rtl_unswitch): Convert from a global struct to a subclass of
16106 rtl_opt_pass along with...
16107 (pass_data_rtl_unswitch): ...new pass_data instance and...
16108 (make_pass_rtl_unswitch): ...new function.
16109 (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
16110 subclass of rtl_opt_pass along with...
16111 (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
16113 (make_pass_rtl_unroll_and_peel_loops): ...new function.
16114 (pass_rtl_doloop): Convert from a global struct to a subclass of
16115 rtl_opt_pass along with...
16116 (pass_data_rtl_doloop): ...new pass_data instance and...
16117 (make_pass_rtl_doloop): ...new function.
16118 * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
16119 a subclass of rtl_opt_pass along with...
16120 (pass_data_lower_subreg): ...new pass_data instance and...
16121 (make_pass_lower_subreg): ...new function.
16122 (pass_lower_subreg2): Convert from a global struct to a subclass of
16123 rtl_opt_pass along with...
16124 (pass_data_lower_subreg2): ...new pass_data instance and...
16125 (make_pass_lower_subreg2): ...new function.
16126 * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
16127 struct to a subclass of ipa_opt_pass_d along with...
16128 (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
16129 (make_pass_ipa_lto_gimple_out): ...new function.
16130 (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
16131 of ipa_opt_pass_d along with...
16132 (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
16133 (make_pass_ipa_lto_finish_out): ...new function.
16134 * mode-switching.c (pass_mode_switching): Convert from a global struct
16135 to a subclass of rtl_opt_pass along with...
16136 (pass_data_mode_switching): ...new pass_data instance and...
16137 (make_pass_mode_switching): ...new function.
16138 * modulo-sched.c (pass_sms): Convert from a global struct to a
16139 subclass of rtl_opt_pass along with...
16140 (pass_data_sms): ...new pass_data instance and...
16141 (make_pass_sms): ...new function.
16142 * omp-low.c (pass_expand_omp): Convert from a global struct to a
16143 subclass of gimple_opt_pass along with...
16144 (pass_data_expand_omp): ...new pass_data instance and...
16145 (make_pass_expand_omp): ...new function.
16146 (pass_lower_omp): Convert from a global struct to a subclass of
16147 gimple_opt_pass along with...
16148 (pass_data_lower_omp): ...new pass_data instance and...
16149 (make_pass_lower_omp): ...new function.
16150 (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
16151 of gimple_opt_pass along with...
16152 (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
16153 (make_pass_diagnose_omp_blocks): ...new function.
16154 * passes.c (pass_early_local_passes): Convert from a global struct to
16155 a subclass of simple_ipa_opt_pass along with...
16156 (pass_data_early_local_passes): ...new pass_data instance and...
16157 (make_pass_early_local_passes): ...new function.
16158 (pass_all_early_optimizations): Convert from a global struct to a
16159 subclass of gimple_opt_pass along with...
16160 (pass_data_all_early_optimizations): ...new pass_data instance and...
16161 (make_pass_all_early_optimizations): ...new function.
16162 (pass_all_optimizations): Convert from a global struct to a subclass
16163 of gimple_opt_pass along with...
16164 (pass_data_all_optimizations): ...new pass_data instance and...
16165 (make_pass_all_optimizations): ...new function.
16166 (pass_all_optimizations_g): Convert from a global struct to a subclass
16167 of gimple_opt_pass along with...
16168 (pass_data_all_optimizations_g): ...new pass_data instance and...
16169 (make_pass_all_optimizations_g): ...new function.
16170 (pass_rest_of_compilation): Convert from a global struct to a subclass
16171 of rtl_opt_pass along with...
16172 (pass_data_rest_of_compilation): ...new pass_data instance and...
16173 (make_pass_rest_of_compilation): ...new function.
16174 (pass_postreload): Convert from a global struct to a subclass of
16175 rtl_opt_pass along with...
16176 (pass_data_postreload): ...new pass_data instance and...
16177 (make_pass_postreload): ...new function.
16178 * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
16179 subclass of rtl_opt_pass along with...
16180 (pass_data_gcse2): ...new pass_data instance and...
16181 (make_pass_gcse2): ...new function.
16182 * postreload.c (pass_postreload_cse): Convert from a global struct to
16183 a subclass of rtl_opt_pass along with...
16184 (pass_data_postreload_cse): ...new pass_data instance and...
16185 (make_pass_postreload_cse): ...new function.
16186 * predict.c (pass_profile): Convert from a global struct to a subclass
16187 of gimple_opt_pass along with...
16188 (pass_data_profile): ...new pass_data instance and...
16189 (make_pass_profile): ...new function.
16190 (pass_strip_predict_hints): Convert from a global struct to a subclass
16191 of gimple_opt_pass along with...
16192 (pass_data_strip_predict_hints): ...new pass_data instance and...
16193 (make_pass_strip_predict_hints): ...new function.
16194 * recog.c (pass_peephole2): Convert from a global struct to a subclass
16195 of rtl_opt_pass along with...
16196 (pass_data_peephole2): ...new pass_data instance and...
16197 (make_pass_peephole2): ...new function.
16198 (pass_split_all_insns): Convert from a global struct to a subclass of
16199 rtl_opt_pass along with...
16200 (pass_data_split_all_insns): ...new pass_data instance and...
16201 (make_pass_split_all_insns): ...new function.
16202 (pass_split_after_reload): Convert from a global struct to a subclass
16203 of rtl_opt_pass along with...
16204 (pass_data_split_after_reload): ...new pass_data instance and...
16205 (make_pass_split_after_reload): ...new function.
16206 (pass_split_before_regstack): Convert from a global struct to a
16207 subclass of rtl_opt_pass along with...
16208 (pass_data_split_before_regstack): ...new pass_data instance and...
16209 (make_pass_split_before_regstack): ...new function.
16210 (pass_split_before_sched2): Convert from a global struct to a subclass
16211 of rtl_opt_pass along with...
16212 (pass_data_split_before_sched2): ...new pass_data instance and...
16213 (make_pass_split_before_sched2): ...new function.
16214 (pass_split_for_shorten_branches): Convert from a global struct to a
16215 subclass of rtl_opt_pass along with...
16216 (pass_data_split_for_shorten_branches): ...new pass_data instance
16218 (make_pass_split_for_shorten_branches): ...new function.
16219 * ree.c (pass_ree): Convert from a global struct to a subclass of
16220 rtl_opt_pass along with...
16221 (pass_data_ree): ...new pass_data instance and...
16222 (make_pass_ree): ...new function.
16223 * reg-stack.c (pass_stack_regs): Convert from a global struct to a
16224 subclass of rtl_opt_pass along with...
16225 (pass_data_stack_regs): ...new pass_data instance and...
16226 (make_pass_stack_regs): ...new function.
16227 (pass_stack_regs_run): Convert from a global struct to a subclass of
16228 rtl_opt_pass along with...
16229 (pass_data_stack_regs_run): ...new pass_data instance and...
16230 (make_pass_stack_regs_run): ...new function.
16231 * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
16232 subclass of rtl_opt_pass along with...
16233 (pass_data_cprop_hardreg): ...new pass_data instance and...
16234 (make_pass_cprop_hardreg): ...new function.
16235 * reginfo.c (pass_reginfo_init): Convert from a global struct to a
16236 subclass of rtl_opt_pass along with...
16237 (pass_data_reginfo_init): ...new pass_data instance and...
16238 (make_pass_reginfo_init): ...new function.
16239 * regmove.c (pass_regmove): Convert from a global struct to a subclass
16240 of rtl_opt_pass along with...
16241 (pass_data_regmove): ...new pass_data instance and...
16242 (make_pass_regmove): ...new function.
16243 * regrename.c (pass_regrename): Convert from a global struct to a
16244 subclass of rtl_opt_pass along with...
16245 (pass_data_regrename): ...new pass_data instance and...
16246 (make_pass_regrename): ...new function.
16247 * reorg.c (pass_delay_slots): Convert from a global struct to a
16248 subclass of rtl_opt_pass along with...
16249 (pass_data_delay_slots): ...new pass_data instance and...
16250 (make_pass_delay_slots): ...new function.
16251 (pass_machine_reorg): Convert from a global struct to a subclass of
16252 rtl_opt_pass along with...
16253 (pass_data_machine_reorg): ...new pass_data instance and...
16254 (make_pass_machine_reorg): ...new function.
16255 * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
16256 of rtl_opt_pass along with...
16257 (pass_data_sched): ...new pass_data instance and...
16258 (make_pass_sched): ...new function.
16259 (pass_sched2): Convert from a global struct to a subclass of
16260 rtl_opt_pass along with...
16261 (pass_data_sched2): ...new pass_data instance and...
16262 (make_pass_sched2): ...new function.
16263 * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
16264 to a subclass of rtl_opt_pass along with...
16265 (pass_data_stack_ptr_mod): ...new pass_data instance and...
16266 (make_pass_stack_ptr_mod): ...new function.
16267 * store-motion.c (pass_rtl_store_motion): Convert from a global struct
16268 to a subclass of rtl_opt_pass along with...
16269 (pass_data_rtl_store_motion): ...new pass_data instance and...
16270 (make_pass_rtl_store_motion): ...new function.
16271 * tracer.c (pass_tracer): Convert from a global struct to a subclass
16272 of gimple_opt_pass along with...
16273 (pass_data_tracer): ...new pass_data instance and...
16274 (make_pass_tracer): ...new function.
16275 * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
16276 to a subclass of gimple_opt_pass along with...
16277 (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
16278 (make_pass_diagnose_tm_blocks): ...new function.
16279 (pass_lower_tm): Convert from a global struct to a subclass of
16280 gimple_opt_pass along with...
16281 (pass_data_lower_tm): ...new pass_data instance and...
16282 (make_pass_lower_tm): ...new function.
16283 (pass_tm_init): Convert from a global struct to a subclass of
16284 gimple_opt_pass along with...
16285 (pass_data_tm_init): ...new pass_data instance and...
16286 (make_pass_tm_init): ...new function.
16287 (pass_tm_mark): Convert from a global struct to a subclass of
16288 gimple_opt_pass along with...
16289 (pass_data_tm_mark): ...new pass_data instance and...
16290 (make_pass_tm_mark): ...new function.
16291 (pass_tm_edges): Convert from a global struct to a subclass of
16292 gimple_opt_pass along with...
16293 (pass_data_tm_edges): ...new pass_data instance and...
16294 (make_pass_tm_edges): ...new function.
16295 (pass_tm_memopt): Convert from a global struct to a subclass of
16296 gimple_opt_pass along with...
16297 (pass_data_tm_memopt): ...new pass_data instance and...
16298 (make_pass_tm_memopt): ...new function.
16299 (pass_ipa_tm): Convert from a global struct to a subclass of
16300 simple_ipa_opt_pass along with...
16301 (pass_data_ipa_tm): ...new pass_data instance and...
16302 (make_pass_ipa_tm): ...new function.
16303 * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
16304 subclass of gimple_opt_pass along with...
16305 (pass_data_call_cdce): ...new pass_data instance and...
16306 (make_pass_call_cdce): ...new function.
16307 * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
16308 subclass of gimple_opt_pass along with...
16309 (pass_data_build_cfg): ...new pass_data instance and...
16310 (make_pass_build_cfg): ...new function.
16311 (pass_split_crit_edges): Convert from a global struct to a subclass of
16312 gimple_opt_pass along with...
16313 (pass_data_split_crit_edges): ...new pass_data instance and...
16314 (make_pass_split_crit_edges): ...new function.
16315 (pass_warn_function_return): Convert from a global struct to a
16316 subclass of gimple_opt_pass along with...
16317 (pass_data_warn_function_return): ...new pass_data instance and...
16318 (make_pass_warn_function_return): ...new function.
16319 (pass_warn_function_noreturn): Convert from a global struct to a
16320 subclass of gimple_opt_pass along with...
16321 (pass_data_warn_function_noreturn): ...new pass_data instance and...
16322 (make_pass_warn_function_noreturn): ...new function.
16323 (pass_warn_unused_result): Convert from a global struct to a subclass
16324 of gimple_opt_pass along with...
16325 (pass_data_warn_unused_result): ...new pass_data instance and...
16326 (make_pass_warn_unused_result): ...new function.
16327 * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
16328 a subclass of gimple_opt_pass along with...
16329 (pass_data_merge_phi): ...new pass_data instance and...
16330 (make_pass_merge_phi): ...new function.
16331 * tree-complex.c (pass_lower_complex): Convert from a global struct to
16332 a subclass of gimple_opt_pass along with...
16333 (pass_data_lower_complex): ...new pass_data instance and...
16334 (make_pass_lower_complex): ...new function.
16335 (pass_lower_complex_O0): Convert from a global struct to a subclass of
16336 gimple_opt_pass along with...
16337 (pass_data_lower_complex_O0): ...new pass_data instance and...
16338 (make_pass_lower_complex_O0): ...new function.
16339 * tree-eh.c (pass_lower_eh): Convert from a global struct to a
16340 subclass of gimple_opt_pass along with...
16341 (pass_data_lower_eh): ...new pass_data instance and...
16342 (make_pass_lower_eh): ...new function.
16343 (pass_refactor_eh): Convert from a global struct to a subclass of
16344 gimple_opt_pass along with...
16345 (pass_data_refactor_eh): ...new pass_data instance and...
16346 (make_pass_refactor_eh): ...new function.
16347 (pass_lower_resx): Convert from a global struct to a subclass of
16348 gimple_opt_pass along with...
16349 (pass_data_lower_resx): ...new pass_data instance and...
16350 (make_pass_lower_resx): ...new function.
16351 (pass_lower_eh_dispatch): Convert from a global struct to a subclass
16352 of gimple_opt_pass along with...
16353 (pass_data_lower_eh_dispatch): ...new pass_data instance and...
16354 (make_pass_lower_eh_dispatch): ...new function.
16355 (pass_cleanup_eh): Convert from a global struct to a subclass of
16356 gimple_opt_pass along with...
16357 (pass_data_cleanup_eh): ...new pass_data instance and...
16358 (make_pass_cleanup_eh): ...new function.
16359 * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
16360 to a subclass of simple_ipa_opt_pass along with...
16361 (pass_data_ipa_lower_emutls): ...new pass_data instance and...
16362 (make_pass_ipa_lower_emutls): ...new function.
16363 * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
16364 a subclass of gimple_opt_pass along with...
16365 (pass_data_if_conversion): ...new pass_data instance and...
16366 (make_pass_if_conversion): ...new function.
16367 * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
16368 subclass of gimple_opt_pass along with...
16369 (pass_data_build_ssa): ...new pass_data instance and...
16370 (make_pass_build_ssa): ...new function.
16371 * tree-loop-distribution.c (pass_loop_distribution): Convert from a
16372 global struct to a subclass of gimple_opt_pass along with...
16373 (pass_data_loop_distribution): ...new pass_data instance and...
16374 (make_pass_loop_distribution): ...new function.
16375 * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
16376 subclass of gimple_opt_pass along with...
16377 (pass_data_mudflap_1): ...new pass_data instance and...
16378 (make_pass_mudflap_1): ...new function.
16379 (pass_mudflap_2): Convert from a global struct to a subclass of
16380 gimple_opt_pass along with...
16381 (pass_data_mudflap_2): ...new pass_data instance and...
16382 (make_pass_mudflap_2): ...new function.
16383 * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
16384 subclass of gimple_opt_pass along with...
16385 (pass_data_mudflap_1): ...new pass_data instance and...
16386 (make_pass_mudflap_1): ...new function.
16387 (pass_mudflap_2): Convert from a global struct to a subclass of
16388 gimple_opt_pass along with...
16389 (pass_data_mudflap_2): ...new pass_data instance and...
16390 (make_pass_mudflap_2): ...new function.
16391 * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
16392 gimple_opt_pass along with...
16393 (pass_data_nrv): ...new pass_data instance and...
16394 (make_pass_nrv): ...new function.
16395 (pass_return_slot): Convert from a global struct to a subclass of
16396 gimple_opt_pass along with...
16397 (pass_data_return_slot): ...new pass_data instance and...
16398 (make_pass_return_slot): ...new function.
16399 * tree-object-size.c (pass_object_sizes): Convert from a global struct
16400 to a subclass of gimple_opt_pass along with...
16401 (pass_data_object_sizes): ...new pass_data instance and...
16402 (make_pass_object_sizes): ...new function.
16403 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
16404 global struct to a subclass of gimple_opt_pass along with...
16405 (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
16407 (make_pass_cleanup_cfg_post_optimizing): ...new function.
16408 (pass_fixup_cfg): Convert from a global struct to a subclass of
16409 gimple_opt_pass along with...
16410 (pass_data_fixup_cfg): ...new pass_data instance and...
16411 (make_pass_fixup_cfg): ...new function.
16412 * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
16413 (make_pass_mudflap_1): ...new function.
16414 (pass_mudflap_2): Replace declaration with that of...
16415 (make_pass_mudflap_2): ...new function.
16416 (pass_asan): Replace declaration with that of...
16417 (make_pass_asan): ...new function.
16418 (pass_asan_O0): Replace declaration with that of...
16419 (make_pass_asan_O0): ...new function.
16420 (pass_tsan): Replace declaration with that of...
16421 (make_pass_tsan): ...new function.
16422 (pass_tsan_O0): Replace declaration with that of...
16423 (make_pass_tsan_O0): ...new function.
16424 (pass_lower_cf): Replace declaration with that of...
16425 (make_pass_lower_cf): ...new function.
16426 (pass_refactor_eh): Replace declaration with that of...
16427 (make_pass_refactor_eh): ...new function.
16428 (pass_lower_eh): Replace declaration with that of...
16429 (make_pass_lower_eh): ...new function.
16430 (pass_lower_eh_dispatch): Replace declaration with that of...
16431 (make_pass_lower_eh_dispatch): ...new function.
16432 (pass_lower_resx): Replace declaration with that of...
16433 (make_pass_lower_resx): ...new function.
16434 (pass_build_cfg): Replace declaration with that of...
16435 (make_pass_build_cfg): ...new function.
16436 (pass_early_tree_profile): Replace declaration with that of...
16437 (make_pass_early_tree_profile): ...new function.
16438 (pass_cleanup_eh): Replace declaration with that of...
16439 (make_pass_cleanup_eh): ...new function.
16440 (pass_sra): Replace declaration with that of...
16441 (make_pass_sra): ...new function.
16442 (pass_sra_early): Replace declaration with that of...
16443 (make_pass_sra_early): ...new function.
16444 (pass_early_ipa_sra): Replace declaration with that of...
16445 (make_pass_early_ipa_sra): ...new function.
16446 (pass_tail_recursion): Replace declaration with that of...
16447 (make_pass_tail_recursion): ...new function.
16448 (pass_tail_calls): Replace declaration with that of...
16449 (make_pass_tail_calls): ...new function.
16450 (pass_tree_loop): Replace declaration with that of...
16451 (make_pass_tree_loop): ...new function.
16452 (pass_tree_loop_init): Replace declaration with that of...
16453 (make_pass_tree_loop_init): ...new function.
16454 (pass_lim): Replace declaration with that of...
16455 (make_pass_lim): ...new function.
16456 (pass_tree_unswitch): Replace declaration with that of...
16457 (make_pass_tree_unswitch): ...new function.
16458 (pass_predcom): Replace declaration with that of...
16459 (make_pass_predcom): ...new function.
16460 (pass_iv_canon): Replace declaration with that of...
16461 (make_pass_iv_canon): ...new function.
16462 (pass_scev_cprop): Replace declaration with that of...
16463 (make_pass_scev_cprop): ...new function.
16464 (pass_empty_loop): Replace declaration with that of...
16465 (make_pass_empty_loop): ...new function.
16466 (pass_record_bounds): Replace declaration with that of...
16467 (make_pass_record_bounds): ...new function.
16468 (pass_graphite): Replace declaration with that of...
16469 (make_pass_graphite): ...new function.
16470 (pass_graphite_transforms): Replace declaration with that of...
16471 (make_pass_graphite_transforms): ...new function.
16472 (pass_if_conversion): Replace declaration with that of...
16473 (make_pass_if_conversion): ...new function.
16474 (pass_loop_distribution): Replace declaration with that of...
16475 (make_pass_loop_distribution): ...new function.
16476 (pass_vectorize): Replace declaration with that of...
16477 (make_pass_vectorize): ...new function.
16478 (pass_slp_vectorize): Replace declaration with that of...
16479 (make_pass_slp_vectorize): ...new function.
16480 (pass_complete_unroll): Replace declaration with that of...
16481 (make_pass_complete_unroll): ...new function.
16482 (pass_complete_unrolli): Replace declaration with that of...
16483 (make_pass_complete_unrolli): ...new function.
16484 (pass_parallelize_loops): Replace declaration with that of...
16485 (make_pass_parallelize_loops): ...new function.
16486 (pass_loop_prefetch): Replace declaration with that of...
16487 (make_pass_loop_prefetch): ...new function.
16488 (pass_iv_optimize): Replace declaration with that of...
16489 (make_pass_iv_optimize): ...new function.
16490 (pass_tree_loop_done): Replace declaration with that of...
16491 (make_pass_tree_loop_done): ...new function.
16492 (pass_ch): Replace declaration with that of...
16493 (make_pass_ch): ...new function.
16494 (pass_ccp): Replace declaration with that of...
16495 (make_pass_ccp): ...new function.
16496 (pass_phi_only_cprop): Replace declaration with that of...
16497 (make_pass_phi_only_cprop): ...new function.
16498 (pass_build_ssa): Replace declaration with that of...
16499 (make_pass_build_ssa): ...new function.
16500 (pass_build_alias): Replace declaration with that of...
16501 (make_pass_build_alias): ...new function.
16502 (pass_build_ealias): Replace declaration with that of...
16503 (make_pass_build_ealias): ...new function.
16504 (pass_dominator): Replace declaration with that of...
16505 (make_pass_dominator): ...new function.
16506 (pass_dce): Replace declaration with that of...
16507 (make_pass_dce): ...new function.
16508 (pass_dce_loop): Replace declaration with that of...
16509 (make_pass_dce_loop): ...new function.
16510 (pass_cd_dce): Replace declaration with that of...
16511 (make_pass_cd_dce): ...new function.
16512 (pass_call_cdce): Replace declaration with that of...
16513 (make_pass_call_cdce): ...new function.
16514 (pass_merge_phi): Replace declaration with that of...
16515 (make_pass_merge_phi): ...new function.
16516 (pass_split_crit_edges): Replace declaration with that of...
16517 (make_pass_split_crit_edges): ...new function.
16518 (pass_pre): Replace declaration with that of...
16519 (make_pass_pre): ...new function.
16520 (pass_profile): Replace declaration with that of...
16521 (make_pass_profile): ...new function.
16522 (pass_strip_predict_hints): Replace declaration with that of...
16523 (make_pass_strip_predict_hints): ...new function.
16524 (pass_lower_complex_O0): Replace declaration with that of...
16525 (make_pass_lower_complex_O0): ...new function.
16526 (pass_lower_complex): Replace declaration with that of...
16527 (make_pass_lower_complex): ...new function.
16528 (pass_lower_vector): Replace declaration with that of...
16529 (make_pass_lower_vector): ...new function.
16530 (pass_lower_vector_ssa): Replace declaration with that of...
16531 (make_pass_lower_vector_ssa): ...new function.
16532 (pass_lower_omp): Replace declaration with that of...
16533 (make_pass_lower_omp): ...new function.
16534 (pass_diagnose_omp_blocks): Replace declaration with that of...
16535 (make_pass_diagnose_omp_blocks): ...new function.
16536 (pass_expand_omp): Replace declaration with that of...
16537 (make_pass_expand_omp): ...new function.
16538 (pass_expand_omp_ssa): Replace declaration with that of...
16539 (make_pass_expand_omp_ssa): ...new function.
16540 (pass_object_sizes): Replace declaration with that of...
16541 (make_pass_object_sizes): ...new function.
16542 (pass_strlen): Replace declaration with that of...
16543 (make_pass_strlen): ...new function.
16544 (pass_fold_builtins): Replace declaration with that of...
16545 (make_pass_fold_builtins): ...new function.
16546 (pass_stdarg): Replace declaration with that of...
16547 (make_pass_stdarg): ...new function.
16548 (pass_early_warn_uninitialized): Replace declaration with that of...
16549 (make_pass_early_warn_uninitialized): ...new function.
16550 (pass_late_warn_uninitialized): Replace declaration with that of...
16551 (make_pass_late_warn_uninitialized): ...new function.
16552 (pass_cse_reciprocals): Replace declaration with that of...
16553 (make_pass_cse_reciprocals): ...new function.
16554 (pass_cse_sincos): Replace declaration with that of...
16555 (make_pass_cse_sincos): ...new function.
16556 (pass_optimize_bswap): Replace declaration with that of...
16557 (make_pass_optimize_bswap): ...new function.
16558 (pass_optimize_widening_mul): Replace declaration with that of...
16559 (make_pass_optimize_widening_mul): ...new function.
16560 (pass_warn_function_return): Replace declaration with that of...
16561 (make_pass_warn_function_return): ...new function.
16562 (pass_warn_function_noreturn): Replace declaration with that of...
16563 (make_pass_warn_function_noreturn): ...new function.
16564 (pass_cselim): Replace declaration with that of...
16565 (make_pass_cselim): ...new function.
16566 (pass_phiopt): Replace declaration with that of...
16567 (make_pass_phiopt): ...new function.
16568 (pass_forwprop): Replace declaration with that of...
16569 (make_pass_forwprop): ...new function.
16570 (pass_phiprop): Replace declaration with that of...
16571 (make_pass_phiprop): ...new function.
16572 (pass_tree_ifcombine): Replace declaration with that of...
16573 (make_pass_tree_ifcombine): ...new function.
16574 (pass_dse): Replace declaration with that of...
16575 (make_pass_dse): ...new function.
16576 (pass_nrv): Replace declaration with that of...
16577 (make_pass_nrv): ...new function.
16578 (pass_rename_ssa_copies): Replace declaration with that of...
16579 (make_pass_rename_ssa_copies): ...new function.
16580 (pass_sink_code): Replace declaration with that of...
16581 (make_pass_sink_code): ...new function.
16582 (pass_fre): Replace declaration with that of...
16583 (make_pass_fre): ...new function.
16584 (pass_check_data_deps): Replace declaration with that of...
16585 (make_pass_check_data_deps): ...new function.
16586 (pass_copy_prop): Replace declaration with that of...
16587 (make_pass_copy_prop): ...new function.
16588 (pass_vrp): Replace declaration with that of...
16589 (make_pass_vrp): ...new function.
16590 (pass_uncprop): Replace declaration with that of...
16591 (make_pass_uncprop): ...new function.
16592 (pass_return_slot): Replace declaration with that of...
16593 (make_pass_return_slot): ...new function.
16594 (pass_reassoc): Replace declaration with that of...
16595 (make_pass_reassoc): ...new function.
16596 (pass_rebuild_cgraph_edges): Replace declaration with that of...
16597 (make_pass_rebuild_cgraph_edges): ...new function.
16598 (pass_remove_cgraph_callee_edges): Replace declaration with that of...
16599 (make_pass_remove_cgraph_callee_edges): ...new function.
16600 (pass_build_cgraph_edges): Replace declaration with that of...
16601 (make_pass_build_cgraph_edges): ...new function.
16602 (pass_local_pure_const): Replace declaration with that of...
16603 (make_pass_local_pure_const): ...new function.
16604 (pass_tracer): Replace declaration with that of...
16605 (make_pass_tracer): ...new function.
16606 (pass_warn_unused_result): Replace declaration with that of...
16607 (make_pass_warn_unused_result): ...new function.
16608 (pass_diagnose_tm_blocks): Replace declaration with that of...
16609 (make_pass_diagnose_tm_blocks): ...new function.
16610 (pass_lower_tm): Replace declaration with that of...
16611 (make_pass_lower_tm): ...new function.
16612 (pass_tm_init): Replace declaration with that of...
16613 (make_pass_tm_init): ...new function.
16614 (pass_tm_mark): Replace declaration with that of...
16615 (make_pass_tm_mark): ...new function.
16616 (pass_tm_memopt): Replace declaration with that of...
16617 (make_pass_tm_memopt): ...new function.
16618 (pass_tm_edges): Replace declaration with that of...
16619 (make_pass_tm_edges): ...new function.
16620 (pass_split_functions): Replace declaration with that of...
16621 (make_pass_split_functions): ...new function.
16622 (pass_feedback_split_functions): Replace declaration with that of...
16623 (make_pass_feedback_split_functions): ...new function.
16624 (pass_strength_reduction): Replace declaration with that of...
16625 (make_pass_strength_reduction): ...new function.
16626 (pass_ipa_lower_emutls): Replace declaration with that of...
16627 (make_pass_ipa_lower_emutls): ...new function.
16628 (pass_ipa_function_and_variable_visibility): Replace declaration with
16630 (make_pass_ipa_function_and_variable_visibility): ...new function.
16631 (pass_ipa_tree_profile): Replace declaration with that of...
16632 (make_pass_ipa_tree_profile): ...new function.
16633 (pass_early_local_passes): Replace declaration with that of...
16634 (make_pass_early_local_passes): ...new function.
16635 (pass_ipa_whole_program_visibility): Replace declaration with that
16637 (make_pass_ipa_whole_program_visibility): ...new function.
16638 (pass_ipa_lto_gimple_out): Replace declaration with that of...
16639 (make_pass_ipa_lto_gimple_out): ...new function.
16640 (pass_ipa_increase_alignment): Replace declaration with that of...
16641 (make_pass_ipa_increase_alignment): ...new function.
16642 (pass_ipa_inline): Replace declaration with that of...
16643 (make_pass_ipa_inline): ...new function.
16644 (pass_ipa_free_lang_data): Replace declaration with that of...
16645 (make_pass_ipa_free_lang_data): ...new function.
16646 (pass_ipa_free_inline_summary): Replace declaration with that of...
16647 (make_pass_ipa_free_inline_summary): ...new function.
16648 (pass_ipa_cp): Replace declaration with that of...
16649 (make_pass_ipa_cp): ...new function.
16650 (pass_ipa_reference): Replace declaration with that of...
16651 (make_pass_ipa_reference): ...new function.
16652 (pass_ipa_pure_const): Replace declaration with that of...
16653 (make_pass_ipa_pure_const): ...new function.
16654 (pass_ipa_pta): Replace declaration with that of...
16655 (make_pass_ipa_pta): ...new function.
16656 (pass_ipa_lto_finish_out): Replace declaration with that of...
16657 (make_pass_ipa_lto_finish_out): ...new function.
16658 (pass_ipa_tm): Replace declaration with that of...
16659 (make_pass_ipa_tm): ...new function.
16660 (pass_ipa_profile): Replace declaration with that of...
16661 (make_pass_ipa_profile): ...new function.
16662 (pass_ipa_cdtor_merge): Replace declaration with that of...
16663 (make_pass_ipa_cdtor_merge): ...new function.
16664 (pass_cleanup_cfg_post_optimizing): Replace declaration with that
16666 (make_pass_cleanup_cfg_post_optimizing): ...new function.
16667 (pass_init_datastructures): Replace declaration with that of...
16668 (make_pass_init_datastructures): ...new function.
16669 (pass_fixup_cfg): Replace declaration with that of...
16670 (make_pass_fixup_cfg): ...new function.
16671 (pass_expand): Replace declaration with that of...
16672 (make_pass_expand): ...new function.
16673 (pass_instantiate_virtual_regs): Replace declaration with that of...
16674 (make_pass_instantiate_virtual_regs): ...new function.
16675 (pass_rtl_fwprop): Replace declaration with that of...
16676 (make_pass_rtl_fwprop): ...new function.
16677 (pass_rtl_fwprop_addr): Replace declaration with that of...
16678 (make_pass_rtl_fwprop_addr): ...new function.
16679 (pass_jump): Replace declaration with that of...
16680 (make_pass_jump): ...new function.
16681 (pass_jump2): Replace declaration with that of...
16682 (make_pass_jump2): ...new function.
16683 (pass_lower_subreg): Replace declaration with that of...
16684 (make_pass_lower_subreg): ...new function.
16685 (pass_cse): Replace declaration with that of...
16686 (make_pass_cse): ...new function.
16687 (pass_fast_rtl_dce): Replace declaration with that of...
16688 (make_pass_fast_rtl_dce): ...new function.
16689 (pass_ud_rtl_dce): Replace declaration with that of...
16690 (make_pass_ud_rtl_dce): ...new function.
16691 (pass_rtl_dce): Replace declaration with that of...
16692 (make_pass_rtl_dce): ...new function.
16693 (pass_rtl_dse1): Replace declaration with that of...
16694 (make_pass_rtl_dse1): ...new function.
16695 (pass_rtl_dse2): Replace declaration with that of...
16696 (make_pass_rtl_dse2): ...new function.
16697 (pass_rtl_dse3): Replace declaration with that of...
16698 (make_pass_rtl_dse3): ...new function.
16699 (pass_rtl_cprop): Replace declaration with that of...
16700 (make_pass_rtl_cprop): ...new function.
16701 (pass_rtl_pre): Replace declaration with that of...
16702 (make_pass_rtl_pre): ...new function.
16703 (pass_rtl_hoist): Replace declaration with that of...
16704 (make_pass_rtl_hoist): ...new function.
16705 (pass_rtl_store_motion): Replace declaration with that of...
16706 (make_pass_rtl_store_motion): ...new function.
16707 (pass_cse_after_global_opts): Replace declaration with that of...
16708 (make_pass_cse_after_global_opts): ...new function.
16709 (pass_rtl_ifcvt): Replace declaration with that of...
16710 (make_pass_rtl_ifcvt): ...new function.
16711 (pass_into_cfg_layout_mode): Replace declaration with that of...
16712 (make_pass_into_cfg_layout_mode): ...new function.
16713 (pass_outof_cfg_layout_mode): Replace declaration with that of...
16714 (make_pass_outof_cfg_layout_mode): ...new function.
16715 (pass_loop2): Replace declaration with that of...
16716 (make_pass_loop2): ...new function.
16717 (pass_rtl_loop_init): Replace declaration with that of...
16718 (make_pass_rtl_loop_init): ...new function.
16719 (pass_rtl_move_loop_invariants): Replace declaration with that of...
16720 (make_pass_rtl_move_loop_invariants): ...new function.
16721 (pass_rtl_unswitch): Replace declaration with that of...
16722 (make_pass_rtl_unswitch): ...new function.
16723 (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
16724 (make_pass_rtl_unroll_and_peel_loops): ...new function.
16725 (pass_rtl_doloop): Replace declaration with that of...
16726 (make_pass_rtl_doloop): ...new function.
16727 (pass_rtl_loop_done): Replace declaration with that of...
16728 (make_pass_rtl_loop_done): ...new function.
16729 (pass_web): Replace declaration with that of...
16730 (make_pass_web): ...new function.
16731 (pass_cse2): Replace declaration with that of...
16732 (make_pass_cse2): ...new function.
16733 (pass_df_initialize_opt): Replace declaration with that of...
16734 (make_pass_df_initialize_opt): ...new function.
16735 (pass_df_initialize_no_opt): Replace declaration with that of...
16736 (make_pass_df_initialize_no_opt): ...new function.
16737 (pass_reginfo_init): Replace declaration with that of...
16738 (make_pass_reginfo_init): ...new function.
16739 (pass_inc_dec): Replace declaration with that of...
16740 (make_pass_inc_dec): ...new function.
16741 (pass_stack_ptr_mod): Replace declaration with that of...
16742 (make_pass_stack_ptr_mod): ...new function.
16743 (pass_initialize_regs): Replace declaration with that of...
16744 (make_pass_initialize_regs): ...new function.
16745 (pass_combine): Replace declaration with that of...
16746 (make_pass_combine): ...new function.
16747 (pass_if_after_combine): Replace declaration with that of...
16748 (make_pass_if_after_combine): ...new function.
16749 (pass_ree): Replace declaration with that of...
16750 (make_pass_ree): ...new function.
16751 (pass_partition_blocks): Replace declaration with that of...
16752 (make_pass_partition_blocks): ...new function.
16753 (pass_match_asm_constraints): Replace declaration with that of...
16754 (make_pass_match_asm_constraints): ...new function.
16755 (pass_regmove): Replace declaration with that of...
16756 (make_pass_regmove): ...new function.
16757 (pass_split_all_insns): Replace declaration with that of...
16758 (make_pass_split_all_insns): ...new function.
16759 (pass_fast_rtl_byte_dce): Replace declaration with that of...
16760 (make_pass_fast_rtl_byte_dce): ...new function.
16761 (pass_lower_subreg2): Replace declaration with that of...
16762 (make_pass_lower_subreg2): ...new function.
16763 (pass_mode_switching): Replace declaration with that of...
16764 (make_pass_mode_switching): ...new function.
16765 (pass_sms): Replace declaration with that of...
16766 (make_pass_sms): ...new function.
16767 (pass_sched): Replace declaration with that of...
16768 (make_pass_sched): ...new function.
16769 (pass_ira): Replace declaration with that of...
16770 (make_pass_ira): ...new function.
16771 (pass_reload): Replace declaration with that of...
16772 (make_pass_reload): ...new function.
16773 (pass_clean_state): Replace declaration with that of...
16774 (make_pass_clean_state): ...new function.
16775 (pass_branch_prob): Replace declaration with that of...
16776 (make_pass_branch_prob): ...new function.
16777 (pass_value_profile_transformations): Replace declaration with that
16779 (make_pass_value_profile_transformations): ...new function.
16780 (pass_postreload_cse): Replace declaration with that of...
16781 (make_pass_postreload_cse): ...new function.
16782 (pass_gcse2): Replace declaration with that of...
16783 (make_pass_gcse2): ...new function.
16784 (pass_split_after_reload): Replace declaration with that of...
16785 (make_pass_split_after_reload): ...new function.
16786 (pass_branch_target_load_optimize1): Replace declaration with that
16788 (make_pass_branch_target_load_optimize1): ...new function.
16789 (pass_thread_prologue_and_epilogue): Replace declaration with that
16791 (make_pass_thread_prologue_and_epilogue): ...new function.
16792 (pass_stack_adjustments): Replace declaration with that of...
16793 (make_pass_stack_adjustments): ...new function.
16794 (pass_peephole2): Replace declaration with that of...
16795 (make_pass_peephole2): ...new function.
16796 (pass_if_after_reload): Replace declaration with that of...
16797 (make_pass_if_after_reload): ...new function.
16798 (pass_regrename): Replace declaration with that of...
16799 (make_pass_regrename): ...new function.
16800 (pass_cprop_hardreg): Replace declaration with that of...
16801 (make_pass_cprop_hardreg): ...new function.
16802 (pass_reorder_blocks): Replace declaration with that of...
16803 (make_pass_reorder_blocks): ...new function.
16804 (pass_branch_target_load_optimize2): Replace declaration with that
16806 (make_pass_branch_target_load_optimize2): ...new function.
16807 (pass_leaf_regs): Replace declaration with that of...
16808 (make_pass_leaf_regs): ...new function.
16809 (pass_split_before_sched2): Replace declaration with that of...
16810 (make_pass_split_before_sched2): ...new function.
16811 (pass_compare_elim_after_reload): Replace declaration with that of...
16812 (make_pass_compare_elim_after_reload): ...new function.
16813 (pass_sched2): Replace declaration with that of...
16814 (make_pass_sched2): ...new function.
16815 (pass_stack_regs): Replace declaration with that of...
16816 (make_pass_stack_regs): ...new function.
16817 (pass_stack_regs_run): Replace declaration with that of...
16818 (make_pass_stack_regs_run): ...new function.
16819 (pass_df_finish): Replace declaration with that of...
16820 (make_pass_df_finish): ...new function.
16821 (pass_compute_alignments): Replace declaration with that of...
16822 (make_pass_compute_alignments): ...new function.
16823 (pass_duplicate_computed_gotos): Replace declaration with that of...
16824 (make_pass_duplicate_computed_gotos): ...new function.
16825 (pass_variable_tracking): Replace declaration with that of...
16826 (make_pass_variable_tracking): ...new function.
16827 (pass_free_cfg): Replace declaration with that of...
16828 (make_pass_free_cfg): ...new function.
16829 (pass_machine_reorg): Replace declaration with that of...
16830 (make_pass_machine_reorg): ...new function.
16831 (pass_cleanup_barriers): Replace declaration with that of...
16832 (make_pass_cleanup_barriers): ...new function.
16833 (pass_delay_slots): Replace declaration with that of...
16834 (make_pass_delay_slots): ...new function.
16835 (pass_split_for_shorten_branches): Replace declaration with that of...
16836 (make_pass_split_for_shorten_branches): ...new function.
16837 (pass_split_before_regstack): Replace declaration with that of...
16838 (make_pass_split_before_regstack): ...new function.
16839 (pass_convert_to_eh_region_ranges): Replace declaration with that
16841 (make_pass_convert_to_eh_region_ranges): ...new function.
16842 (pass_shorten_branches): Replace declaration with that of...
16843 (make_pass_shorten_branches): ...new function.
16844 (pass_set_nothrow_function_flags): Replace declaration with that of...
16845 (make_pass_set_nothrow_function_flags): ...new function.
16846 (pass_dwarf2_frame): Replace declaration with that of...
16847 (make_pass_dwarf2_frame): ...new function.
16848 (pass_final): Replace declaration with that of...
16849 (make_pass_final): ...new function.
16850 (pass_rtl_seqabstr): Replace declaration with that of...
16851 (make_pass_rtl_seqabstr): ...new function.
16852 (pass_release_ssa_names): Replace declaration with that of...
16853 (make_pass_release_ssa_names): ...new function.
16854 (pass_early_inline): Replace declaration with that of...
16855 (make_pass_early_inline): ...new function.
16856 (pass_inline_parameters): Replace declaration with that of...
16857 (make_pass_inline_parameters): ...new function.
16858 (pass_update_address_taken): Replace declaration with that of...
16859 (make_pass_update_address_taken): ...new function.
16860 (pass_convert_switch): Replace declaration with that of...
16861 (make_pass_convert_switch): ...new function.
16862 * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
16863 to a subclass of simple_ipa_opt_pass along with...
16864 (pass_data_ipa_tree_profile): ...new pass_data instance and...
16865 (make_pass_ipa_tree_profile): ...new function.
16866 * tree-sra.c (pass_sra_early): Convert from a global struct to a
16867 subclass of gimple_opt_pass along with...
16868 (pass_data_sra_early): ...new pass_data instance and...
16869 (make_pass_sra_early): ...new function.
16870 (pass_sra): Convert from a global struct to a subclass of
16871 gimple_opt_pass along with...
16872 (pass_data_sra): ...new pass_data instance and...
16873 (make_pass_sra): ...new function.
16874 (pass_early_ipa_sra): Convert from a global struct to a subclass of
16875 gimple_opt_pass along with...
16876 (pass_data_early_ipa_sra): ...new pass_data instance and...
16877 (make_pass_early_ipa_sra): ...new function.
16878 * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
16879 subclass of gimple_opt_pass along with...
16880 (pass_data_ccp): ...new pass_data instance and...
16881 (make_pass_ccp): ...new function.
16882 (pass_fold_builtins): Convert from a global struct to a subclass of
16883 gimple_opt_pass along with...
16884 (pass_data_fold_builtins): ...new pass_data instance and...
16885 (make_pass_fold_builtins): ...new function.
16886 * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
16887 subclass of gimple_opt_pass along with...
16888 (pass_data_copy_prop): ...new pass_data instance and...
16889 (make_pass_copy_prop): ...new function.
16890 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
16891 global struct to a subclass of gimple_opt_pass along with...
16892 (pass_data_rename_ssa_copies): ...new pass_data instance and...
16893 (make_pass_rename_ssa_copies): ...new function.
16894 * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
16895 subclass of gimple_opt_pass along with...
16896 (pass_data_dce): ...new pass_data instance and...
16897 (make_pass_dce): ...new function.
16898 (pass_dce_loop): Convert from a global struct to a subclass of
16899 gimple_opt_pass along with...
16900 (pass_data_dce_loop): ...new pass_data instance and...
16901 (make_pass_dce_loop): ...new function.
16902 (pass_cd_dce): Convert from a global struct to a subclass of
16903 gimple_opt_pass along with...
16904 (pass_data_cd_dce): ...new pass_data instance and...
16905 (make_pass_cd_dce): ...new function.
16906 * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
16907 subclass of gimple_opt_pass along with...
16908 (pass_data_dominator): ...new pass_data instance and...
16909 (make_pass_dominator): ...new function.
16910 (pass_phi_only_cprop): Convert from a global struct to a subclass of
16911 gimple_opt_pass along with...
16912 (pass_data_phi_only_cprop): ...new pass_data instance and...
16913 (make_pass_phi_only_cprop): ...new function.
16914 * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
16915 subclass of gimple_opt_pass along with...
16916 (pass_data_dse): ...new pass_data instance and...
16917 (make_pass_dse): ...new function.
16918 * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
16919 a subclass of gimple_opt_pass along with...
16920 (pass_data_forwprop): ...new pass_data instance and...
16921 (make_pass_forwprop): ...new function.
16922 * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
16923 struct to a subclass of gimple_opt_pass along with...
16924 (pass_data_tree_ifcombine): ...new pass_data instance and...
16925 (make_pass_tree_ifcombine): ...new function.
16926 * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
16927 subclass of gimple_opt_pass along with...
16928 (pass_data_ch): ...new pass_data instance and...
16929 (make_pass_ch): ...new function.
16930 * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
16931 subclass of gimple_opt_pass along with...
16932 (pass_data_tree_loop): ...new pass_data instance and...
16933 (make_pass_tree_loop): ...new function.
16934 (pass_tree_loop_init): Convert from a global struct to a subclass of
16935 gimple_opt_pass along with...
16936 (pass_data_tree_loop_init): ...new pass_data instance and...
16937 (make_pass_tree_loop_init): ...new function.
16938 (pass_lim): Convert from a global struct to a subclass of
16939 gimple_opt_pass along with...
16940 (pass_data_lim): ...new pass_data instance and...
16941 (make_pass_lim): ...new function.
16942 (pass_tree_unswitch): Convert from a global struct to a subclass of
16943 gimple_opt_pass along with...
16944 (pass_data_tree_unswitch): ...new pass_data instance and...
16945 (make_pass_tree_unswitch): ...new function.
16946 (pass_predcom): Convert from a global struct to a subclass of
16947 gimple_opt_pass along with...
16948 (pass_data_predcom): ...new pass_data instance and...
16949 (make_pass_predcom): ...new function.
16950 (pass_vectorize): Convert from a global struct to a subclass of
16951 gimple_opt_pass along with...
16952 (pass_data_vectorize): ...new pass_data instance and...
16953 (make_pass_vectorize): ...new function.
16954 (pass_graphite): Convert from a global struct to a subclass of
16955 gimple_opt_pass along with...
16956 (pass_data_graphite): ...new pass_data instance and...
16957 (make_pass_graphite): ...new function.
16958 (pass_graphite_transforms): Convert from a global struct to a subclass
16959 of gimple_opt_pass along with...
16960 (pass_data_graphite_transforms): ...new pass_data instance and...
16961 (make_pass_graphite_transforms): ...new function.
16962 (pass_check_data_deps): Convert from a global struct to a subclass of
16963 gimple_opt_pass along with...
16964 (pass_data_check_data_deps): ...new pass_data instance and...
16965 (make_pass_check_data_deps): ...new function.
16966 (pass_iv_canon): Convert from a global struct to a subclass of
16967 gimple_opt_pass along with...
16968 (pass_data_iv_canon): ...new pass_data instance and...
16969 (make_pass_iv_canon): ...new function.
16970 (pass_scev_cprop): Convert from a global struct to a subclass of
16971 gimple_opt_pass along with...
16972 (pass_data_scev_cprop): ...new pass_data instance and...
16973 (make_pass_scev_cprop): ...new function.
16974 (pass_record_bounds): Convert from a global struct to a subclass of
16975 gimple_opt_pass along with...
16976 (pass_data_record_bounds): ...new pass_data instance and...
16977 (make_pass_record_bounds): ...new function.
16978 (pass_complete_unroll): Convert from a global struct to a subclass of
16979 gimple_opt_pass along with...
16980 (pass_data_complete_unroll): ...new pass_data instance and...
16981 (make_pass_complete_unroll): ...new function.
16982 (pass_complete_unrolli): Convert from a global struct to a subclass of
16983 gimple_opt_pass along with...
16984 (pass_data_complete_unrolli): ...new pass_data instance and...
16985 (make_pass_complete_unrolli): ...new function.
16986 (pass_parallelize_loops): Convert from a global struct to a subclass
16987 of gimple_opt_pass along with...
16988 (pass_data_parallelize_loops): ...new pass_data instance and...
16989 (make_pass_parallelize_loops): ...new function.
16990 (pass_loop_prefetch): Convert from a global struct to a subclass of
16991 gimple_opt_pass along with...
16992 (pass_data_loop_prefetch): ...new pass_data instance and...
16993 (make_pass_loop_prefetch): ...new function.
16994 (pass_iv_optimize): Convert from a global struct to a subclass of
16995 gimple_opt_pass along with...
16996 (pass_data_iv_optimize): ...new pass_data instance and...
16997 (make_pass_iv_optimize): ...new function.
16998 (pass_tree_loop_done): Convert from a global struct to a subclass of
16999 gimple_opt_pass along with...
17000 (pass_data_tree_loop_done): ...new pass_data instance and...
17001 (make_pass_tree_loop_done): ...new function.
17002 * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
17003 struct to a subclass of gimple_opt_pass along with...
17004 (pass_data_cse_reciprocals): ...new pass_data instance and...
17005 (make_pass_cse_reciprocals): ...new function.
17006 (pass_cse_sincos): Convert from a global struct to a subclass of
17007 gimple_opt_pass along with...
17008 (pass_data_cse_sincos): ...new pass_data instance and...
17009 (make_pass_cse_sincos): ...new function.
17010 (pass_optimize_bswap): Convert from a global struct to a subclass of
17011 gimple_opt_pass along with...
17012 (pass_data_optimize_bswap): ...new pass_data instance and...
17013 (make_pass_optimize_bswap): ...new function.
17014 (pass_optimize_widening_mul): Convert from a global struct to a
17015 subclass of gimple_opt_pass along with...
17016 (pass_data_optimize_widening_mul): ...new pass_data instance and...
17017 (make_pass_optimize_widening_mul): ...new function.
17018 * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
17019 subclass of gimple_opt_pass along with...
17020 (pass_data_phiopt): ...new pass_data instance and...
17021 (make_pass_phiopt): ...new function.
17022 (pass_cselim): Convert from a global struct to a subclass of
17023 gimple_opt_pass along with...
17024 (pass_data_cselim): ...new pass_data instance and...
17025 (make_pass_cselim): ...new function.
17026 * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
17027 subclass of gimple_opt_pass along with...
17028 (pass_data_phiprop): ...new pass_data instance and...
17029 (make_pass_phiprop): ...new function.
17030 * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
17031 subclass of gimple_opt_pass along with...
17032 (pass_data_pre): ...new pass_data instance and...
17033 (make_pass_pre): ...new function.
17034 (pass_fre): Convert from a global struct to a subclass of
17035 gimple_opt_pass along with...
17036 (pass_data_fre): ...new pass_data instance and...
17037 (make_pass_fre): ...new function.
17038 * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
17039 subclass of gimple_opt_pass along with...
17040 (pass_data_reassoc): ...new pass_data instance and...
17041 (make_pass_reassoc): ...new function.
17042 * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
17043 subclass of gimple_opt_pass along with...
17044 (pass_data_sink_code): ...new pass_data instance and...
17045 (make_pass_sink_code): ...new function.
17046 * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
17047 subclass of gimple_opt_pass along with...
17048 (pass_data_strlen): ...new pass_data instance and...
17049 (make_pass_strlen): ...new function.
17050 * tree-ssa-structalias.c (pass_build_alias): Convert from a global
17051 struct to a subclass of gimple_opt_pass along with...
17052 (pass_data_build_alias): ...new pass_data instance and...
17053 (make_pass_build_alias): ...new function.
17054 (pass_build_ealias): Convert from a global struct to a subclass of
17055 gimple_opt_pass along with...
17056 (pass_data_build_ealias): ...new pass_data instance and...
17057 (make_pass_build_ealias): ...new function.
17058 (pass_ipa_pta): Convert from a global struct to a subclass of
17059 simple_ipa_opt_pass along with...
17060 (pass_data_ipa_pta): ...new pass_data instance and...
17061 (make_pass_ipa_pta): ...new function.
17062 * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
17063 subclass of gimple_opt_pass along with...
17064 (pass_data_uncprop): ...new pass_data instance and...
17065 (make_pass_uncprop): ...new function.
17066 * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
17067 global struct to a subclass of gimple_opt_pass along with...
17068 (pass_data_late_warn_uninitialized): ...new pass_data instance and...
17069 (make_pass_late_warn_uninitialized): ...new function.
17070 * tree-ssa.c (pass_init_datastructures): Convert from a global struct
17071 to a subclass of gimple_opt_pass along with...
17072 (pass_data_init_datastructures): ...new pass_data instance and...
17073 (make_pass_init_datastructures): ...new function.
17074 (pass_early_warn_uninitialized): Convert from a global struct to a
17075 subclass of gimple_opt_pass along with...
17076 (pass_data_early_warn_uninitialized): ...new pass_data instance and...
17077 (make_pass_early_warn_uninitialized): ...new function.
17078 (pass_update_address_taken): Convert from a global struct to a
17079 subclass of gimple_opt_pass along with...
17080 (pass_data_update_address_taken): ...new pass_data instance and...
17081 (make_pass_update_address_taken): ...new function.
17082 * tree-ssanames.c (pass_release_ssa_names): Convert from a global
17083 struct to a subclass of gimple_opt_pass along with...
17084 (pass_data_release_ssa_names): ...new pass_data instance and...
17085 (make_pass_release_ssa_names): ...new function.
17086 * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
17087 subclass of gimple_opt_pass along with...
17088 (pass_data_stdarg): ...new pass_data instance and...
17089 (make_pass_stdarg): ...new function.
17090 * tree-switch-conversion.c (pass_convert_switch): Convert from a
17091 global struct to a subclass of gimple_opt_pass along with...
17092 (pass_data_convert_switch): ...new pass_data instance and...
17093 (make_pass_convert_switch): ...new function.
17094 * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
17095 to a subclass of gimple_opt_pass along with...
17096 (pass_data_tail_recursion): ...new pass_data instance and...
17097 (make_pass_tail_recursion): ...new function.
17098 (pass_tail_calls): Convert from a global struct to a subclass of
17099 gimple_opt_pass along with...
17100 (pass_data_tail_calls): ...new pass_data instance and...
17101 (make_pass_tail_calls): ...new function.
17102 * tree-vect-generic.c (pass_lower_vector): Convert from a global
17103 struct to a subclass of gimple_opt_pass along with...
17104 (pass_data_lower_vector): ...new pass_data instance and...
17105 (make_pass_lower_vector): ...new function.
17106 (pass_lower_vector_ssa): Convert from a global struct to a subclass of
17107 gimple_opt_pass along with...
17108 (pass_data_lower_vector_ssa): ...new pass_data instance and...
17109 (make_pass_lower_vector_ssa): ...new function.
17110 * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
17111 to a subclass of gimple_opt_pass along with...
17112 (pass_data_slp_vectorize): ...new pass_data instance and...
17113 (make_pass_slp_vectorize): ...new function.
17114 (pass_ipa_increase_alignment): Convert from a global struct to a
17115 subclass of simple_ipa_opt_pass along with...
17116 (pass_data_ipa_increase_alignment): ...new pass_data instance and...
17117 (make_pass_ipa_increase_alignment): ...new function.
17118 * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
17119 gimple_opt_pass along with...
17120 (pass_data_vrp): ...new pass_data instance and...
17121 (make_pass_vrp): ...new function.
17122 * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
17123 subclass of simple_ipa_opt_pass along with...
17124 (pass_data_ipa_free_lang_data): ...new pass_data instance and...
17125 (make_pass_ipa_free_lang_data): ...new function.
17126 * tsan.c (pass_tsan): Convert from a global struct to a subclass of
17127 gimple_opt_pass along with...
17128 (pass_data_tsan): ...new pass_data instance and...
17129 (make_pass_tsan): ...new function.
17130 (pass_tsan_O0): Convert from a global struct to a subclass of
17131 gimple_opt_pass along with...
17132 (pass_data_tsan_O0): ...new pass_data instance and...
17133 (make_pass_tsan_O0): ...new function.
17134 * var-tracking.c (pass_variable_tracking): Convert from a global
17135 struct to a subclass of rtl_opt_pass along with...
17136 (pass_data_variable_tracking): ...new pass_data instance and...
17137 (make_pass_variable_tracking): ...new function.
17138 * web.c (pass_web): Convert from a global struct to a subclass of
17139 rtl_opt_pass along with...
17140 (pass_data_web): ...new pass_data instance and...
17141 (make_pass_web): ...new function.
17142 * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
17143 declaration with that of...
17144 (make_pass_mode_switch_use): ...new function.
17145 (pass_resolve_sw_modes): Replace declaration with that of...
17146 (make_pass_resolve_sw_modes): ...new function.
17147 * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
17148 from a global struct to a subclass of rtl_opt_pass along with...
17149 (pass_data_mode_switch_use): ...new pass_data instance and...
17150 (make_pass_mode_switch_use): ...new function.
17151 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
17152 from a global struct to a subclass of rtl_opt_pass along with...
17153 (pass_data_resolve_sw_modes): ...new pass_data instance and...
17154 (make_pass_resolve_sw_modes): ...new function.
17155 * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
17156 struct to a subclass of rtl_opt_pass along with...
17157 (pass_data_insert_vzeroupper): ...new pass_data instance and...
17158 (make_pass_insert_vzeroupper): ...new function.
17159 * config/sparc/sparc.c (pass_work_around_errata): Convert from a
17160 global struct to a subclass of rtl_opt_pass along with...
17161 (pass_data_work_around_errata): ...new pass_data instance and...
17162 (make_pass_work_around_errata): ...new function.
17163 * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
17164 struct to a subclass of rtl_opt_pass along with...
17165 (pass_data_mips_machine_reorg2): ...new pass_data instance and...
17166 (make_pass_mips_machine_reorg2): ...new function.
17168 2013-08-05 David Malcolm <dmalcolm@redhat.com>
17170 * passes.c (pass_manager::operator new): New.
17172 2013-08-05 David Malcolm <dmalcolm@redhat.com>
17174 Handwritten part of conversion of passes to C++ classes.
17176 * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
17177 (toplev.o): Add dep on PASS_MANAGER_H.
17178 * cgraphunit.c (cgraph_process_new_functions): Rework invocation
17179 of early local pases to reflect this moving from a global to a
17180 member of gcc::pass_manager.
17181 (cgraph_add_new_function): Likewise.
17182 * lto-cgraph.c (lto_output_node): Update for conversion of
17183 struct ipa_opt_pass_d to a C++ subclass of opt_pass.
17184 * passes.c (opt_pass::clone): New.
17185 (opt_pass::gate): New.
17186 (opt_pass::execute): New.
17187 (opt_pass::opt_pass): New.
17188 (pass_manager::execute_early_local_passes): New.
17189 (pass_manager::execute_pass_mode_switching): new.
17190 (finish_optimization_passes): Convert to...
17191 (pass_manager::finish_optimization_passes): ...this.
17192 (finish_optimization_passes): Update for conversion of passes to
17194 (register_dump_files_1): Use has_gate since we cannot portably
17195 check a vtable entry against NULL.
17196 (dump_one_pass): Likewise.
17197 (ipa_write_summaries_2): Likewise.
17198 (ipa_write_optimization_summaries_1): Likewise.
17199 (ipa_read_summaries_1): Likewise.
17200 (ipa_read_optimization_summaries_1): Likewise.
17201 (execute_ipa_stmt_fixups): Likewise.
17202 (pass_manager::pass_manager): Rewrite pass-creation, invoking
17203 pass-creation functions rather than wiring up globals, and
17204 storing the results in fields of pass_manager generated using
17205 pass-instances.def.
17206 (pass_manager::dump_profile_report): Update for conversion of
17207 passes to C++ classes.
17208 (pass_manager::execute_ipa_summary_passes): Likewise.
17209 (execute_one_ipa_transform_pass): Likewise.
17210 (execute_one_pass): Use has_gate and has_execute since we cannot
17211 portably check a vtable entry against NULL.
17212 * pass_manager.h (pass_manager::finish_optimization_passes): New.
17213 (pass_manager): Use pass-instances.def to add fields for the
17214 various pass instances.
17215 * toplev.c (finalize): Update for move of
17216 finish_optimization_passes to a method of gcc::pass_manager.
17217 * toplev.h (finish_optimization_passes): Move to method of class
17219 * tree-pass.h (struct pass_data): New.
17220 (opt_pass): Convert to C++ class, make it a subclass of pass_data.
17221 (opt_pass::gate): Convert to virtual function.
17222 (opt_pass::~opt_pass): New.
17223 (opt_pass::clone): New.
17224 (opt_pass::execute): Convert to virtual function.
17225 (opt_pass::opt_pass): New.
17226 (opt_pass::ctxt_): new.
17227 (gimple_opt_pass): Convert to subclass of opt_pass.
17228 (gimple_opt_pass::gimple_opt_pass): New.
17229 (rtl_opt_pass): Convert to subclass of opt_pass.
17230 (rtl_opt_pass::rtl_opt_pass): New.
17231 (ipa_opt_pass_d): Convert to subclass of opt_pass.
17232 (ipa_opt_pass_d::ipa_opt_pass_d): New.
17233 (simple_ipa_opt_pass): Convert to subclass of opt_pass.
17234 (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
17235 * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
17236 invocation of pass_mode_switching to reflect this moving from a
17237 global to a member of gcc::pass_manager.
17238 (ix86_option_override): Rework how pass_insert_vzeroupper is
17239 added to the pass_manager to reflect autogenerated changes.
17240 * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
17242 2013-08-05 Richard Earnshaw <rearnsha@arm.com>
17244 PR rtl-optimization/57708
17245 * recog.c (peep2_find_free_register): Validate all regs in a
17248 2013-08-05 Jan Hubicka <jh@suse.cz>
17251 * cgraph.c (verify_cgraph_node): Accept local flags from other
17253 * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
17254 (function_and_variable_visibility): Likewise.
17255 * trans-mem.c (ipa_tm_create_version): TM versions are not local.
17257 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
17259 * graph.c (init_graph_slim_pretty_print): Remove.
17260 (print_graph_cfg): Do not call it. Use local pretty printer.
17261 (start_graph_dump): Likewise.
17263 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
17265 * gimple-pretty-print.c (buffer): Remove.
17266 (initialized): Likewise.
17267 (maybe_init_pretty_print): Likewise.
17268 (print_gimple_stmt): Do not call it. Use non-static local
17269 pretty_printer variable.
17270 (print_gimple_expr): Likewise.
17271 (print_gimple_seq): Likewise.
17272 (gimple_dump_bb): Likewise.
17274 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
17276 * asan.c (asan_pp): Remove.
17277 (asan_pp_initialized): Likewise.
17278 (asan_pp_initialize): Likewise.
17279 (asan_pp_string): Take a pretty_printer parameter. Adjust callers.
17280 (asan_emit_stack_protection): Tidy. Use local pretty printer.
17281 (asan_add_global): Likewise.
17283 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
17285 * pretty-print.h (pp_base): Remove. Adjust dependent macros.
17286 * diagnostic.h (diagnostic_flush_buffer): Adjust.
17287 * pretty-print.c (pp_formatted_text_data): Likewise.
17288 (pp_indent): Rename from pp_base_indent.
17289 (pp_format): Rename from pp_base_format.
17290 (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
17291 (pp_format_verbatim): Rename from pp_base_format_verbatim.
17292 (pp_flush): Rename from pp_base_flush.
17293 (pp_set_line_maximum_length): Rename from
17294 pp_base_set_line_maximum_length.
17295 (pp_clear_output_area): Rename from pp_base_clear_output_area.
17296 (pp_set_prefix): Rename from pp_base_set_prefix.
17297 (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
17298 (pp_emit_prefix): Rename from pp_base_emit_prefix.
17299 (pp_append_text): Rename from pp_base_append_text.
17300 (pp_formatted_text): Rename from pp_base_formatted_text.
17301 (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
17302 (pp_remaining_character_count_for_line): Rename from
17303 pp_base_remaining_character_count_for_line.
17304 (pp_newline): Rename from pp_base_newline.
17305 (pp_character): Rename from pp_base_character.
17306 (pp_string): Rename from pp_base_string.
17307 (pp_maybe_space): Rename from pp_base_maybe_space.
17308 * asan.c (asan_pp_string): Adjust.
17309 (asan_emit_stack_protection): Likewise.
17310 (asan_add_global): Likewise.
17311 * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
17312 * tree-mudflap.c (mf_varname_tree): Likewise.
17313 * tree-pretty-print.c (pp_tree_identifier): Rename from
17314 pp_base_tree_identifier.
17315 * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
17316 Declare as function.
17318 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
17320 * pretty-print.h (pp_bar_bar): New.
17321 (pp_ampersand_ampersand): Likewise.
17322 (pp_less_equal): Likewise.
17323 (pp_greater_equal): Likewise.
17324 * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
17325 printer functions instead of pp_string or operators and punctuators.
17326 (dump_gimple_call): Likewise.
17327 (dump_gimple_omp_for): Likewise.
17328 (dump_gimple_transaction): Likewise.
17329 (dump_gimple_phi): Likewise.
17330 (pp_gimple_stmt_1): Likewise.
17331 * sched-vis.c (print_insn): Likewise.
17332 * tree-mudflap.c (mf_varname_tree): Likewise.
17333 * tree-pretty-print.c (dump_block_node): Likewise.
17334 (dump_generic_node): Likewise.
17336 2013-08-02 Jan Hubicka <jh@suse.cz>
17338 * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
17340 * lto-streamer-out.c (tree_is_indexable): Results decls and
17341 parm decls are not indexable.
17342 (DFS_write_tree_body): Do not follow args and results.
17343 (hash_tree): Likewise.
17344 (output_functions): Rearrange so struct function is needed
17345 only when real body is output; be able to also ouptut abstract
17346 functions; output DECL_ARGUMENTS and DECL_RESULT.
17347 (lto_output): When not in WPA, ale store abstract functions.
17348 (write_symbol): Do not care about RESULT_DECL.
17349 (output_symbol_p): Handle correctly sbtract decls.
17350 * lto-streamer-in.c (input_function): Rearrange so struct
17351 function can be NULL at entry; allow streaming of
17352 functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
17353 * ipa.c (symtab_remove_unreachable_nodes): Silence confused
17354 sanity check during LTO.
17355 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
17356 RESULT_DECl and DECL_ARGUMENTS.
17357 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
17360 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
17362 * pretty-print.h (pp_underscore): New.
17364 * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
17365 printer functions instead of pp_character.
17366 (dump_binary_rhs): Likewise.
17367 (dump_ternary_rhs): Likewise.
17368 (dump_gimple_call_args): Likewise.
17369 (pp_points_to_solution): Likewise.
17370 (dump_gimple_call): Likewise.
17371 (dump_gimple_switch): Likewise.
17372 (dump_gimple_cond): Likewise.
17373 (dump_gimple_bind): Likewise.
17374 (dump_gimple_try): Likewise.
17375 (dump_gimple_omp_for): Likewise.
17376 (dump_gimple_omp_continue): Likewise.
17377 (dump_gimple_omp_single): Likewise.
17378 (dump_gimple_omp_sections): Likewise.
17379 (dump_gimple_omp_block): Likewise.
17380 (dump_gimple_omp_critical): Likewise.
17381 (dump_gimple_transaction): Likewise.
17382 (dump_gimple_asm): Likewise.
17383 (dump_gimple_phi): Likewise.
17384 (dump_gimple_omp_parallel): Likewise.
17385 (dump_gimple_omp_task): Likewise.
17386 (dump_gimple_omp_atomic_load): Likewise.
17387 (dump_gimple_omp_atomic_store): Likewise.
17388 (dump_gimple_mem_ops): Likewise.
17389 (pp_gimple_stmt_1): Likewise.
17390 (pp_cfg_jump): Likewise.
17391 (dump_implicit_edges): Likewise.
17392 (gimple_dump_bb_for_graph): Likewise.
17393 * graph.c (draw_cfg_node): Likewise.
17394 * langhooks.c (lhd_print_error_function): Likewise.
17395 * sched-vis.c (print_exp): Likewise.
17396 (print_value): Likewise.
17397 (print_pattern): Likewise.
17398 (print_insn): Likewise.
17399 (rtl_dump_bb_for_graph): Likewise.
17400 * tree-pretty-print.c (dump_function_declaration): Likewise.
17401 (dump_array_domain): Likewise.
17402 (dump_omp_clause): Likewise.
17403 (dump_location): Likewise.
17404 (dump_generic_node): Likewise.
17405 (print_struct_decl): Likewise.
17406 * diagnostic.c (diagnostic_show_locus): Use pp_space.
17408 2013-08-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
17410 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
17411 candidate table when replacing a candidate statement.
17412 (replace_rhs_if_not_dup): Likewise.
17413 (replace_one_candidate): Likewise.
17415 2013-08-02 Jan Hubicka <jh@suse.cz>
17416 Martin Liska <marxin.liska@gmail.com>
17418 * cgraphunit.c (add_new_function): Fix logic when adding from
17420 (assemble_thunk): Rename to ...
17421 (expand_thunk); .. this one; export; get it working with
17422 general functions; make produced gimple valid.
17423 * cgraph.h (expand_thunk): Declare.
17425 2013-08-02 Jan Hubicka <jh@suse.cz>
17427 * ipa-cp.c (gather_context_independent_values): Use
17428 ipa_get_param_move_cost.
17429 (get_replacement_map): Remove PARAM; move parameter folding
17431 (create_specialized_node): Update.
17432 * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
17433 assert that we have gimple body; update move_cost.
17434 (count_formal_params): Assert that we have gimple body.
17435 (ipa_dump_param): New function.
17436 (ipa_alloc_node_params): Break out from ...
17437 (ipa_initialize_node_params): ... here.
17438 (ipa_get_vector_of_formal_parms): ICE when used in WPA.
17439 (ipa_write_node_info): Stream move costs.
17440 (ipa_read_node_info): Read move costs.
17441 (ipa_update_after_lto_read): Do not recompute node params.
17442 * ipa-prop.h (ipa_param_descriptor): Add move_cost.
17443 (ipa_get_param): Check we are not in WPA.
17444 (ipa_get_param_move_cost): New.
17445 * tree-inline.c (tree_function_versioning): Fold replacement as needed.
17446 * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
17447 parm numbers to be present.
17449 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
17451 PR rtl-optimization/58048
17452 * lra-constraints.c (process_alt_operands): Don't check asm
17453 operand on register.
17455 2013-08-02 Eric Botcazou <ebotcazou@adacore.com>
17457 * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
17458 the implied StoreLoad barrier for atomic operations if before.
17460 2013-08-02 Jan Hubicka <jh@suse.cz>
17461 Martin Liska <marxin.liska@gmail.com>
17463 * cgraph.c (cgraph_function_body_availability): Do not check
17465 * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
17466 symtab_node_availability): Declare.
17467 * ipa.c (can_replace_by_local_alias): New.
17468 (function_and_variable_visibility): Use it.
17469 * symtab.c (symtab_for_node_and_aliases,
17470 symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
17472 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
17474 PR rtl-optimization/57963
17475 * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
17476 (lra_constraints): Use them.
17478 2013-08-02 Sofiane Naci <sofiane.naci@arm.com>
17480 * config/arm/types.md (define_attr "type"): Add "load_acq"
17482 * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
17484 (cortex_a53_store1): Likewise.
17486 2013-08-01 Jan Hubicka <jh@suse.cz>
17488 * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
17489 partitions are not needed.
17491 2013-08-01 Uros Bizjak <ubizjak@gmail.com>
17493 * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
17494 * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
17495 MAYBE_NON_Q_CLASS_P where appropriate.
17497 2013-08-01 Jan Hubicka <jh@suse.cz>
17499 * cgraph.h (release_function_body): Declare.
17500 * tree.c (free_lang_data_in_decl): Free, parameters and return values
17501 of unused delcarations.
17503 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17505 * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
17506 RTL form when subtracting a constant.
17508 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17510 * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
17511 Generate canonical plus rtx with negated immediate instead of minus
17513 * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
17515 2013-08-01 Jan Hubicka <jh@suse.cz>
17517 * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
17518 (cgraph_release_function_body): Likewise.
17519 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
17520 * cgraph.h (cgrpah_node): Rename abstract_and_needed
17521 to used_as_abstract_origin.
17522 * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
17523 symbols used as abstract origins.
17524 * cgraphunit.c (analyze_functions): Update.
17525 * ipa.c (symtab_remove_unreachable_nodes): Recompute
17526 used_as_abstract_origin.
17527 * tree-inline.c (tree_function_versioning): Update
17528 used_as_abstract_origin; be ready for DECL_RESULT and
17529 DECL_ARGUMENTS to be NULL.
17531 * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
17532 for abstract functions.
17533 * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
17536 2013-08-01 Jan Hubicka <jh@suse.cz>
17538 * profile.c (compute_value_histograms): Fix thinko.
17540 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
17542 * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs. Add
17543 aarch-common-protos.h to extra_headers.
17544 (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
17545 * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
17546 * config/aarch64/t-aarch64 (aarch-common.o): Define.
17548 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
17550 * config/aarch64/aarch64.md (define_attr "type"): Delete.
17551 Include "../arm/types.md". Define "type" attribute for all patterns.
17552 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
17555 2013-07-31 Michael Meissner <meissner@linux.vnet.ibm.com>
17557 * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
17558 to support power8 load fusion.
17559 (fusion_gpr_mem_load): Likewise.
17561 * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
17563 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
17564 declarations for power8 load fusion.
17565 (emit_fusion_gpr_load): Likewise.
17567 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
17568 tuning for power8, turn on fusion mode by default. Turn on sign
17569 extending fusion mode if normal fusion mode is on, and we are at
17571 (fusion_gpr_load_p): New function, return true if we can fuse an
17572 addis instruction with a dependent load to a GPR.
17573 (emit_fusion_gpr_load): Emit the instructions for power8 load
17576 * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
17577 (VSX load fusion peepholes): New peepholes to fuse together an
17578 addi instruction with a VSX load instruction.
17580 * config/rs6000/rs6000.md (GPR load fusion peepholes): New
17581 peepholes to fuse an addis instruction with a load to a GPR base
17582 register. If we are supporting sign extending fusions, convert
17583 sign extending loads to zero extending loads and add an explicit
17586 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
17588 * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs. Add
17589 aarch-common-protos.h to extra_headers.
17590 (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
17591 * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
17592 (arm_early_store_addr_dep): Likewise.
17593 (arm_no_early_alu_shift_dep): Likewise.
17594 (arm_no_early_alu_shift_value_dep): Likewise.
17595 (arm_no_early_mul_dep): Likewise.
17596 (arm_no_early_store_addr_dep): Likewise.
17597 (arm_mac_accumulator_is_mul_result): Likewise.
17598 (arm_mac_accumulator_is_result): Likewise.
17599 * config/arm/aarch-common.c: ... here. New file.
17600 * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
17602 (arm_early_store_addr_dep): Likewise.
17603 (arm_no_early_alu_shift_dep): Likewise.
17604 (arm_no_early_alu_shift_value_dep): Likewise.
17605 (arm_no_early_mul_dep): Likewise.
17606 (arm_no_early_store_addr_dep): Likewise.
17607 (arm_mac_accumulator_is_mul_result): Likewise.
17608 (arm_mac_accumulator_is_result): Likewise.
17609 * config/arm/aarch-common-protos.h: ... here. New file.
17610 * config/arm/t-arm (aarch-common.o): Define.
17612 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
17614 * config/arm/arm.md: Include new file "types.md".
17615 (define_attr "type"): Move from here to ...
17616 (define_attr "mul32"): Likewise.
17617 (define_attr "mul64"): Likewise.
17618 * config/arm/types.md: ... here. New file.
17620 2013-07-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
17622 * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
17623 * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
17625 2013-07-31 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17627 * gen-pass-instances.awk: Fix offset of substr().
17629 2013-07-31 David Malcolm <dmalcolm@redhat.com>
17631 * Makefile.in (pass-instances.def): New.
17632 (passes.o): Replace dependency on passes.def with one on
17635 * gen-pass-instances.awk: New.
17637 * passes.c (pass_manager::pass_manager): Use pass-instances.def
17638 rather than passes.def, updating local definition of NEXT_PASS
17639 macro to add an extra NUM parameter (currently unused).
17641 2013-07-30 David Malcolm <dmalcolm@redhat.com>
17643 * Makefile.in (PASS_MANAGER_H): New.
17644 (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
17645 (passes.o): Likewise.
17646 (statistics.o): Likewise.
17647 (cgraphunit.o): Likewise.
17648 (context.o): Depend on PASS_MANAGER_H.
17650 * pass_manager.h: New.
17652 * cgraphunit.c (cgraph_add_new_function): Update for moves
17653 of globals to fields of pass_manager.
17654 (analyze_function): Likewise.
17655 (expand_function): Likewise.
17656 (ipa_passes): Likewise.
17657 (compile): Likewise.
17659 * context.c (context::context): New.
17660 * context.h (context::context): New.
17661 (context::get_passes): New.
17662 (context::passes_): New.
17664 * lto-cgraph.c (input_node): Update for moves of globals to
17665 fields of pass_manager.
17667 * passes.c (all_passes): Remove, in favor of a field of the
17668 same name within the new class pass_manager.
17669 (all_small_ipa_passes): Likewise.
17670 (all_lowering_passes): Likewise.
17671 (all_regular_ipa_passes): Likewise.
17672 (all_late_ipa_passes): Likewise.
17673 (all_lto_gen_passes): Likewise.
17674 (passes_by_id): Likewise.
17675 (passes_by_id_size): Likewise.
17676 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
17677 the new class pass_manager.
17678 (set_pass_for_id): Convert to...
17679 (pass_manager::set_pass_for_id): ...method.
17680 (get_pass_for_id): Convert to...
17681 (pass_manager::get_pass_for_id): ...method.
17682 (register_one_dump_file): Move body of implementation into...
17683 (pass_manager::register_one_dump_file): ...here.
17684 (register_dump_files_1): Convert to...
17685 (pass_manager::register_dump_files_1): ...method.
17686 (register_dump_files): Convert to...
17687 (pass_manager::register_dump_files): ...method.
17688 (create_pass_tab): Update for moves of globals to fields of
17690 (dump_passes): Move body of implementation into...
17691 (pass_manager::dump_passes): ...here.
17692 (register_pass): Move body of implementation into...
17693 (pass_manager::register_pass): ...here.
17694 (init_optimization_passes): Convert into...
17695 (pass_manager::pass_manager): ...constructor for new
17696 pass_manager class, and initialize the pass_lists array.
17697 (check_profile_consistency): Update for moves of globals to
17698 fields of pass_manager.
17699 (dump_profile_report): Move body of implementation into...
17700 (pass_manager::dump_profile_report): ...here.
17701 (ipa_write_summaries_1): Update for moves of pass lists from
17702 being globals to fields of pass_manager.
17703 (ipa_write_optimization_summaries): Likewise.
17704 (ipa_read_summaries): Likewise.
17705 (ipa_read_optimization_summaries): Likewise.
17706 (execute_all_ipa_stmt_fixups): Likewise.
17708 * statistics.c (statistics_fini): Update for moves of globals to
17709 fields of pass_manager.
17711 * toplev.c (general_init): Replace call to
17712 init_optimization_passes with construction of the pass_manager
17715 * tree-pass.h (all_passes): Remove, in favor of a field of the
17716 same name within the new class pass_manager.
17717 (all_small_ipa_passes): Likewise.
17718 (all_lowering_passes): Likewise.
17719 (all_regular_ipa_passes): Likewise.
17720 (all_lto_gen_passes): Likewise.
17721 (all_late_ipa_passes): Likewise.
17722 (passes_by_id): Likewise.
17723 (passes_by_id_size): Likewise.
17724 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
17725 the new class pass_manager.
17726 (get_pass_for_id): Remove.
17728 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
17730 * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
17733 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
17735 * arm.md (mulhi3): New expand pattern.
17737 2013-07-30 Jan Hubicka <jh@suse.cz>
17738 Martin Liska <marxin.liska@gmail.com>
17740 * profile.c (compute_value_histograms): Do not ICE when
17741 there is mismatch only on some counters.
17743 2013-07-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17745 PR rtl-optimization/57637
17746 * function.c (move_insn_for_shrink_wrap): Also check the
17747 GEN set of the LIVE problem for the liveness analysis
17748 if it exists, otherwise give up.
17750 2013-07-29 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
17752 PR tree-optimization/57993
17753 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
17754 replaced statement in the candidate table.
17755 (phi_add_costs): Return infinite cost when the hidden basis does
17756 not dominate all phis on which the candidate is dependent.
17757 (replace_one_candidate): Record replaced statement in the
17760 2013-07-29 Joern Rennecke <joern.rennecke@embecosm.com>
17762 * config/epiphany/epiphany.md (*isub_i+2): New peephole.
17763 (ashlv2si3): New expander.
17764 (*ashlv2si3_i): New define_insn_and_split.
17765 * predicates.md (float_operation): Allow patterns with three
17766 basic sub-patterns.
17768 PR rtl-optimization/58021
17769 * mode-switching.c (create_pre_exit): Always split off preceding
17770 insns if we are not at the basic block head.
17772 2013-07-29 Maciej W. Rozycki <macro@codesourcery.com>
17774 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
17775 (UCLIBC_DYNAMIC_LINKER): New macro.
17776 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
17778 (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
17779 (UCLIBC_DYNAMIC_LINKER32): Undefine macro first. Handle
17781 (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
17782 (UCLIBC_DYNAMIC_LINKERN32): Likewise.
17783 * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
17784 for SF and DF modes. Use ieee_quad_format for TF mode.
17785 * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
17786 * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
17787 (mips_option_override): Handle `-mnan=legacy'.
17788 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
17789 `-mabs=2008' and `-mnan=2008'.
17790 (OPTION_DEFAULT_SPECS): Add "nan" default.
17791 (ASM_SPEC): Handle `-mnan='.
17792 [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
17793 * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
17794 comment accordingly.
17795 (neg<mode>2): Likewise.
17796 * config/mips/mips.opt (mabs, mnan): New options.
17797 * doc/install.texi (Configuration): Document `--with-nan=' option.
17798 * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
17800 (MIPS Options): Document them.
17801 * config.gcc <mips*-*-*>: Handle `--with-nan='.
17802 * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
17803 * configure: Regenerate.
17804 * config.in: Regenerate.
17806 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
17808 * config/i386/i386.md (float post-reload splitters): Do not check
17809 for subregs of SSE registers.
17811 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
17812 H.J. Lu <hongjiu.lu@intel.com>
17816 * config/i386/i386.md (post-reload splitter
17817 to avoid partial SSE reg dependency stalls): New pattern.
17819 2013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
17821 * config/s390/s390.md ("movcc"): Swap load and store instructions.
17823 2013-07-27 Joern Rennecke <joern.rennecke@embecosm.com>
17825 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
17826 Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
17828 2013-07-26 Cary Coutant <ccoutant@google.com>
17830 * dwarf2out.c (die_checksum_ordered): Don't include template
17831 instantiations in signature.
17832 (is_template_parameter): New function.
17833 (is_template_instantiation): New function.
17834 (generate_skeleton_bottom_up): Don't include template instantiations
17836 (generate_skeleton): Likewise.
17837 (break_out_comdat_types): Move recursive call to break out nested
17839 (prune_unused_types_mark_generic_parms_dies): Call
17840 is_template_parameter.
17842 2013-07-26 Ian Bolton <ian.bolton@arm.com>
17844 * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
17845 uses vector registers.
17846 * config/aarch64/iterators.md: Add attributes rtn and vas.
17848 2013-07-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17849 Richard Earnshaw <richard.earnshaw@arm.com>
17851 * combine.c (simplify_comparison): Re-canonicalize operands
17853 * config/arm/arm.md (movcond_addsi): New splitter.
17855 2013-07-25 Sterling Augustine <saugustine@google.com>
17857 * dwarf2out.c (size_of_pubnames): Move code to...
17858 (include_pubname_in_output): ...here. New.
17859 (want_pubnames): Rearrange.
17860 (output_pubnames): Call include_pubname_in_output. Move assertion.
17862 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
17864 * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
17866 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
17869 * doc/extend.texi: Remove obsolete builtins. Fix
17870 typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
17872 2013-07-25 Jan Hubicka <jh@suse.cz>
17874 * cgraph.c (release_function_body): Break out from ...
17875 (cgraph_release_function_body): ... this one; also release DECL_RESULT
17876 and DECL_ARGUMENTS.
17877 * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
17878 old_tree in the map.
17879 (create_specialized_node): Update.
17880 * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
17882 * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
17883 DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
17884 * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
17885 * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
17888 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17890 * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
17891 addsi3_carryin_alt2_<optab>): Correct output template.
17893 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17895 * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
17896 Adjust for arm_restrict_it.
17897 Remove trailing whitespace.
17899 2013-07-25  Mark Kettenis  <kettenis@openbsd.org>
17901 * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
17902 libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
17904 * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
17906 2013-07-25 Vladimir Makarov <vmakarov@redhat.com>
17908 PR rtl-optimization/57960
17909 * lra-constraints.c (process_alt_operands): Use the right mode
17910 when checking strict_low.
17912 2013-07-25 Jan Hubicka <jh@suse.cz>
17914 * lto-symtab.c (lto_cgraph_replace_node): Release function body.
17915 * cgraph.c (cgraph_remove_node): Do not release function body
17916 when in cgraph streaming.
17917 * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
17918 in other partitions are not considered reachable; fix handling of
17921 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17923 * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
17925 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17930 * config/arm/arm.md ("*sibcall_insn): Replace use of
17931 Ss with US. Adjust output for v5 and v4t.
17932 (*sibcall_value_insn): Likewise and loosen predicate on operand0.
17934 * config/arm/constraints.md ("Ss"): Rename to US.
17936 2013-07-25 Terry Guo <terry.guo@arm.com>
17938 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
17939 shift_add/shift_sub0/shift_sub1 RTXs.
17941 2013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
17942 Anton Blanchard <anton@au1.ibm.com>
17944 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
17945 (altivec_vpks<VI_char>ss): Likewise.
17946 (altivec_vpks<VI_char>us): Likewise.
17947 (altivec_vpku<VI_char>us): Likewise.
17948 (altivec_vpku<VI_char>um): Likewise.
17950 2013-07-24 David Malcolm <dmalcolm@redhat.com>
17952 Introduce context class.
17954 * Makefile.in (CONTEXT_H): New.
17955 (OBJS): Add context.o.
17956 (toplev.o): Add CONTEXT_H to dependencies.
17959 * toplev.c (general_init): Create the singleton gcc::context instance.
17965 2013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
17967 PR rtl-optimization/57968
17968 * mode-switching.c (create_pre_exit): Allow instructions that
17969 don't set a return register to need a non-exit mode.
17971 2013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
17972 Anton Blanchard <anton@au1.ibm.com>
17974 * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
17975 operands to vperm for little endian.
17976 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
17977 of lvsl to create the control mask for a vperm for little endian.
17979 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17980 Anton Blanchard <anton@au1.ibm.com>
17982 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
17983 two operands for little-endian.
17985 2013-07-23 Steve Ellcey <sellcey@mips.com>
17987 * config/mips/mips.c (mips_case_values_threshold): New.
17988 (TARGET_CASE_VALUES_THRESHOLD): Define.
17990 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17991 Anton Blanchard <anton@au1.ibm.com>
17993 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
17994 selection of field for vector splat in little endian mode.
17996 2013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
17998 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
17999 expanders to rs6000.md.
18000 (ior<mode>3): Likewise.
18001 (and<mode>3): Likewise.
18002 (one_cmpl<mode>2): Likewise.
18003 (nor<mode>3): Likewise.
18004 (andc<mode>3): Likewise.
18005 (eqv<mode>3): Likewise.
18006 (nand<mode>3): Likewise.
18007 (orc<mode>3): Likewise.
18009 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
18012 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
18013 to split multi-word logical operations.
18014 (rs6000_split_logical_di): Likewise.
18015 (rs6000_split_logical): Likewise.
18017 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
18018 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
18019 and allow TImode operations in 32-bit.
18020 (vsx_and<mode>3_64bit): Likewise.
18021 (vsx_ior<mode>3_32bit): Likewise.
18022 (vsx_ior<mode>3_64bit): Likewise.
18023 (vsx_xor<mode>3_32bit): Likewise.
18024 (vsx_xor<mode>3_64bit): Likewise.
18025 (vsx_one_cmpl<mode>2_32bit): Likewise.
18026 (vsx_one_cmpl<mode>2_64bit): Likewise.
18027 (vsx_nor<mode>3_32bit): Likewise.
18028 (vsx_nor<mode>3_64bit): Likewise.
18029 (vsx_andc<mode>3_32bit): Likewise.
18030 (vsx_andc<mode>3_64bit): Likewise.
18031 (vsx_eqv<mode>3_32bit): Likewise.
18032 (vsx_eqv<mode>3_64bit): Likewise.
18033 (vsx_nand<mode>3_32bit): Likewise.
18034 (vsx_nand<mode>3_64bit): Likewise.
18035 (vsx_orc<mode>3_32bit): Likewise.
18036 (vsx_orc<mode>3_64bit): Likewise.
18038 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
18039 logical types in GPRs.
18041 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
18042 logical insns to rs6000.md, and allow TImode operations in
18044 (altivec_ior<mode>3): Likewise.
18045 (altivec_xor<mode>3): Likewise.
18046 (altivec_one_cmpl<mode>2): Likewise.
18047 (altivec_nor<mode>3): Likewise.
18048 (altivec_andc<mode>3): Likewise.
18050 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
18051 attributes for moving the 128-bit logical operations into
18053 (BOOL_REGS_OUTPUT): Likewise.
18054 (BOOL_REGS_OP1): Likewise.
18055 (BOOL_REGS_OP2): Likewise.
18056 (BOOL_REGS_UNARY): Likewise.
18057 (BOOL_REGS_AND_CR0): Likewise.
18058 (one_cmpl<mode>2): Add support for DI logical operations on
18059 32-bit, splitting the operations to 32-bit.
18060 (anddi3): Likewise.
18061 (iordi3): Likewise.
18062 (xordi3): Likewise.
18063 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
18064 changes to combine the 32/64-bit code, allow logical operations on
18065 TI mode in 32-bit, and to use similar match_operator patterns like
18066 scalar mode uses. Combine the Altivec and VSX code for logical
18067 operations, and move it here.
18068 (ior<mode>3, 128-bit types): Likewise.
18069 (xor<mode>3, 128-bit types): Likewise.
18070 (one_cmpl<mode>3, 128-bit types): Likewise.
18071 (nor<mode>3, 128-bit types): Likewise.
18072 (andc<mode>3, 128-bit types): Likewise.
18073 (eqv<mode>3, 128-bit types): Likewise.
18074 (nand<mode>3, 128-bit types): Likewise.
18075 (orc<mode>3, 128-bit types): Likewise.
18076 (and<mode>3_internal): Likewise.
18077 (bool<mode>3_internal): Likewise.
18078 (boolc<mode>3_internal1): Likewise.
18079 (boolc<mode>3_internal2): Likewise.
18080 (boolcc<mode>3_internal1): Likewise.
18081 (boolcc<mode>3_internal2): Likewise.
18082 (eqv<mode>3_internal1): Likewise.
18083 (eqv<mode>3_internal2): Likewise.
18084 (one_cmpl1<mode>3_internal): Likewise.
18086 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
18088 * config/microblaze/microblaze.c (microblaze_expand_prologue):
18089 Rename flag_stack_usage to flag_stack_usage_info.
18091 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
18093 * config/microblaze/sync.md: New file.
18094 * config/microblaze/microblaze.md: Include sync.md
18095 * config/microblaze/microblaze.c: Add print_operand 'y'.
18096 * config/microblaze/constraints.md: Add memory_contraint
18097 'Q' which is a single register.
18099 2013-07-23 Eric Botcazou <ebotcazou@adacore.com>
18101 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
18103 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
18105 * reload.c (find_reloads): Exit loop once we find this operand
18106 cannot be reloaded somehow for this alternative.
18108 * reload.c (find_reloads): Exit loop once we find a hard register.
18110 * rtlanal.c (computed_jump_p): Exit loop once we find label
18113 * i386.c (ix86_pad_returns): Exit loop after setting replace.
18115 * cfgloopmanip.c (remove_path): Exit loop after setting
18118 * gensupport.c (subst_dup): Avoid loop if code is not
18119 MATCH_DUP nor MATCH_OP_DUP.
18121 2013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
18123 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
18125 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
18127 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
18128 true for SP_REGNUM if mode == ptr_mode.
18129 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
18130 with value R0_REGNUM + 31.
18132 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
18134 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
18135 pad pointer-typed argument downward.
18137 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
18139 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
18140 and __ILP32__ when the ILP32 model is in use.
18142 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
18144 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
18145 (aarch64_load_symref_appropriately): In the case of
18146 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
18147 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
18148 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
18149 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
18150 if 'mode' doesn't equal to 'ptr_mode'.
18151 (aarch64_output_mi_thunk): Add an assertion on the alignment of
18152 'vcall_offset'; change to call aarch64_emit_move differently depending
18153 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
18154 to calculate the upper bound of 'vcall_offset'.
18155 (aarch64_cannot_force_const_mem): Change to also return true if
18157 (aarch64_legitimize_reload_address): In the case of large
18158 displacements, add new local variable 'xmode' and an assertion
18159 based on it; change to use 'xmode' to generate the new rtx and
18161 (aarch64_asm_trampoline_template): Change to generate the template
18162 differently depending on TARGET_ILP32 or not; change to use
18163 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
18164 (aarch64_trampoline_size): Removed.
18165 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
18166 and replace immediate literals with it. Change to use 'ptr_mode'
18167 instead of 'DImode' and call convert_memory_address if the mode
18168 of 'fnaddr' doesn't equal to 'ptr_mode'.
18169 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
18171 (aarch64_elf_asm_destructor): Likewise.
18172 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
18173 on TARGET_ILP32 instead of aarch64_trampoline_size.
18174 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
18175 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
18176 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
18177 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
18178 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
18179 (storewb_pair<GPI:mode>_<P:mode>): ... this.
18180 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
18181 depending on the value of 'mode'.
18182 (add_losym_<mode>): New.
18183 (ldr_got_small_<mode>): New, based on ldr_got_small.
18184 (ldr_got_small): Remove.
18185 (ldr_got_small_sidi): New.
18186 * config/aarch64/iterators.md (P): New.
18187 (PTR): Change to 'ptr_mode' in the condition.
18189 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
18191 * config.gcc (aarch64*-*-*): Support --with-abi.
18192 (aarch64*-*-elf): Support --with-multilib-list.
18193 (aarch64*-*-linux*): Likewise.
18194 (supported_defaults): Add abi to aarch64*-*-*.
18195 * configure.ac: Mention AArch64 for --with-multilib-list.
18196 * configure: Re-generated.
18197 * config/aarch64/biarchilp32.h: New file.
18198 * config/aarch64/biarchlp64.h: New file.
18199 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
18201 (MULTILIB_DEFAULTS): Ditto.
18202 (DRIVER_SELF_SPECS): Ditto.
18203 (ASM_SPEC): Update to also substitute -mabi.
18204 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
18205 file whose name depends on -mabi= and -mbig-endian.
18206 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
18208 (POINTER_SIZE): New define.
18209 (POINTERS_EXTEND_UNSIGNED): Ditto.
18210 (enum aarch64_abi_type): New enumeration tag.
18211 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
18212 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
18213 (TARGET_ILP32): New define.
18214 * config/aarch64/aarch64.opt (mabi): New.
18215 (aarch64_abi): New.
18216 (ilp32, lp64): New values for -mabi.
18217 * config/aarch64/t-aarch64 (comma): New define.
18218 (MULTILIB_OPTIONS): Ditto.
18219 (MULTILIB_DIRNAMES): Ditto.
18220 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
18221 * doc/invoke.texi: Document -mabi for AArch64.
18223 2013-07-23 Georg-Johann Lay <avr@gjlay.de>
18225 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
18227 2013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
18228 Anton Blanchard <anton@au1.ibm.com>
18230 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
18231 endianness when selecting field to splat.
18233 2013-07-22 Eric Christopher <echristo@gmail.com>
18235 * dwarf2out.c (die_odr_checksum): New function to use
18236 CHECKSUM_ macros and ULEB128 for DIE tag.
18237 (generate_type_signature): Use.
18239 2013-07-22 Eric Botcazou <ebotcazou@adacore.com>
18241 * config.gcc (sparc*-*-*): Accept leon3 processor.
18242 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
18243 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
18244 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
18245 * config/sparc/sparc.opt (enum processor_type): Add leon3.
18246 (mfix-ut699): Adjust comment.
18247 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
18248 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
18249 (CPP_CPU_SPEC): Likewise.
18250 (ASM_CPU_SPEC): Likewise.
18251 * config/sparc/sparc.c (leon3_cost): New constant.
18252 (sparc_option_override): Add leon3 support.
18253 (mem_ref): New function.
18254 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
18255 (sparc_do_work_around_errata): Look into the instruction in the delay
18256 slot and adjust accordingly. Add fix for the data cache nullify issues
18257 of the UT699. Change insertion position for the NOP.
18258 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
18259 (leon3_load): New reservation.
18260 (leon_store): Bump latency to 2.
18261 (grfpu): New automaton.
18262 (grfpu_alu): New unit.
18263 (grfpu_ds): Likewise.
18264 (leon_fp_alu): Adjust.
18265 (leon_fp_mult): Delete.
18266 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
18267 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
18268 * config/sparc/sparc.md (cpu): Add leon3.
18269 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
18270 (swapsi): Likewise.
18271 (atomic_test_and_set): Likewise.
18272 (ldstub): Likewise.
18274 2013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
18276 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
18277 default for R5900 targets.
18278 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
18279 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
18280 * config/mips/mips.c (mips_option_override): Report an error for
18281 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
18282 for -march=r5900 -mhard-float.
18284 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
18286 * df-problems.c (can_move_insns_across): Exit loop once we
18287 find a non-fixed, non-global register.
18289 * ipa-pure-const.c (propagate_nothrow): Exit loop after
18292 * omega.c (omega_eliminate_red): Break after setting red_found.
18293 (omega_problem_has_red_equations): Similarly after setting found.
18294 (omega_query_variable): Similarly after setting coupled.
18296 2013-07-22 Marek Polacek <polacek@redhat.com>
18298 * gimplify.c: Don't include gimple.h twice.
18300 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18302 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
18303 instead of TARGET_THUMB1.
18304 (Pz): New constraint.
18305 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
18307 (compare_negsi_si): Likewise.
18308 (compare_addsi2_op0): Likewise.
18309 (compare_addsi2_op1): Likewise.
18310 (addsi3_carryin_<optab>): Likewise.
18311 (addsi3_carryin_alt2_<optab>): Likewise.
18312 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
18313 for arm_restrict_it.
18314 (subsi3_carryin): Likewise.
18315 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
18316 (minmax_arithsi): Disable for arm_restrict_it.
18317 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
18318 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
18319 (satsi_<SAT:code>_shift): Likewise.
18320 (arm_shiftsi3): Add alternative for 16-bit encoding.
18321 (arm32_movhf): Disable for arm_restrict_it.
18322 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
18323 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
18325 2013-07-22 Sofiane Naci <sofiane.naci@arm.com>
18327 * config/arm/arm.md (attribute "insn"): Delete.
18328 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
18329 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
18330 (not_shiftsi): Update for attribute change.
18331 (not_shiftsi_compare0): Likewise.
18332 (not_shiftsi_compare0_scratch): Likewise.
18333 (arm_one_cmplsi2): Likewise.
18334 (thumb1_one_cmplsi2): Likewise.
18335 (notsi_compare0): Likewise.
18336 (notsi_compare0_scratch): Likewise.
18337 (thumb1_movdi_insn): Likewise.
18338 (arm_movsi_insn): Likewise.
18339 (movhi_insn_arch4): Likewise.
18340 (movhi_bytes): Likewise.
18341 (arm_movqi_insn): Likewise.
18342 (thumb1_movqi_insn): Likewise.
18343 (arm32_movhf): Likewise.
18344 (thumb1_movhf): Likewise.
18345 (arm_movsf_soft_insn): Likewise.
18346 (thumb1_movsf_insn): Likewise.
18347 (thumb_movdf_insn): Likewise.
18348 (movsicc_insn): Likewise.
18349 (movsfcc_soft_insn): Likewise.
18350 (and_scc): Likewise.
18351 (cond_move): Likewise.
18352 (if_move_not): Likewise.
18353 (if_not_move): Likewise.
18354 (if_shift_move): Likewise.
18355 (if_move_shift): Likewise.
18356 (if_shift_shift): Likewise.
18357 (if_not_arith): Likewise.
18358 (if_arith_not): Likewise.
18359 (cond_move_not): Likewise.
18360 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
18361 (neon_mov<mode>): Likewise.
18362 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
18363 (thumb2_movsi_vfp): Likewise.
18364 (movsf_vfp): Likewise.
18365 (thumb2_movsf_vfp): Likewise.
18366 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
18368 (cortexa7_older_only): Likewise.
18369 (cortexa7_younger): Likewise.
18370 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
18371 (1020alu_shift_op): Likewise.
18372 (1020alu_shift_reg_op): Likewise.
18373 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
18374 (alu_shift_op): Likewise.
18375 (alu_shift_reg_op): Likewise.
18376 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
18377 (11_alu_shift_op): Likewise.
18378 (11_alu_shift_reg_op): Likewise.
18379 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
18380 (9_alu_shift_reg_op): Likewise.
18381 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
18383 (cortex_a15_alu_shift): Likewise.
18384 (cortex_a15_alu_shift_reg): Likewise.
18385 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
18386 (cortex_a5_alu_shift): Likewise.
18387 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
18389 (cortex_a53_alu_shift): Likewise.
18390 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
18392 (cortex_a7_alu_reg): Likewise.
18393 (cortex_a7_alu_shift): Likewise.
18394 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
18395 (cortex_a8_alu_shift): Likewise.
18396 (cortex_a8_alu_shift_reg): Likewise.
18397 (cortex_a8_mov): Likewise.
18398 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
18399 (cortex_a9_dp_shift): Likewise.
18400 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
18401 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
18402 (cortex_r4_mov): Likewise.
18403 (cortex_r4_alu_shift): Likewise.
18404 (cortex_r4_alu_shift_reg): Likewise.
18405 * config/arm/fa526.md (526_alu_op): Update for attribute change.
18406 (526_alu_shift_op): Likewise.
18407 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
18408 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
18409 (626te_alu_shift_op): Likewise.
18410 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
18411 (726te_alu_op): Likewise.
18412 (726te_alu_shift_op): Likewise.
18413 (726te_alu_shift_reg_op): Likewise.
18414 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
18415 (mp626_alu_shift_op): Likewise.
18416 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
18417 (pj4_alu_e1_conds): Likewise.
18418 (pj4_alu): Likewise.
18419 (pj4_alu_conds): Likewise.
18420 (pj4_shift): Likewise.
18421 (pj4_shift_conds): Likewise.
18422 (pj4_alu_shift): Likewise.
18423 (pj4_alu_shift_conds): Likewise.
18425 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18427 * config/arm/predicates.md (shiftable_operator_strict_it):
18429 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
18430 Disable cond_exec version for arm_restrict_it.
18431 (thumb2_smaxsi3): Convert to generate cond_exec.
18432 (thumb2_sminsi3): Likewise.
18433 (thumb32_umaxsi3): Likewise.
18434 (thumb2_uminsi3): Likewise.
18435 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
18436 (thumb2_neg_abssi2): Likewise.
18437 (thumb2_mov_scc): Add alternative for 16-bit encoding.
18438 (thumb2_movsicc_insn): Adjust alternatives.
18439 (thumb2_mov_negscc): Disable for arm_restrict_it.
18440 (thumb2_mov_negscc_strict_it): New pattern.
18441 (thumb2_mov_notscc_strict_it): New pattern.
18442 (thumb2_mov_notscc): Disable for arm_restrict_it.
18443 (thumb2_ior_scc): Likewise.
18444 (thumb2_ior_scc_strict_it): New pattern.
18445 (thumb2_cond_move): Adjust for arm_restrict_it.
18446 (thumb2_cond_arith): Disable for arm_restrict_it.
18447 (thumb2_cond_arith_strict_it): New pattern.
18448 (thumb2_cond_sub): Adjust for arm_restrict_it.
18449 (thumb2_movcond): Likewise.
18450 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
18451 (thumb2_zero_extendhisi2_v6): Likewise.
18452 (thumb2_zero_extendqisi2_v6): Likewise.
18453 (orsi_notsi_si): Likewise.
18454 (orsi_not_shiftsi_si): Likewise.
18456 2013-07-22 Georg-Johann Lay <avr@gjlay.de>
18458 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
18459 instruction sequence is 1 byte shorter.
18461 2013-07-22 Uros Bizjak <ubizjak@gmail.com>
18463 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
18464 it is not needed after split.
18466 2013-07-20 Iain Sandoe <iain@codesourcery.com>
18469 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
18470 second label for nonlocal goto receivers. Don't output pic base labels
18471 unless we're producing PIC; mark that action unreachable().
18472 (ix86_save_reg): If the function contains a nonlocal label, save the
18474 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
18475 * config/darwin.c (emitted_pic_label_num): New GTY.
18476 (update_pic_label_number_if_needed): New.
18477 (machopic_output_function_base_name): Adjust for nonlocal receiver
18479 (machopic_should_output_picbase_label): New.
18480 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
18481 (nonlocal_goto_receiver): New insn and split.
18483 2013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
18485 * config/aarch64/aarch64-builtins.c
18486 (aarch64_fold_builtin): Fold abs in all modes.
18487 * config/aarch64/aarch64-simd-builtins.def
18488 (abs): Enable for all modes.
18489 * config/aarch64/arm_neon.h
18490 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
18491 (vabs_f64): Add missing intrinsic.
18493 2013-07-19 Ian Bolton <ian.bolton@arm.com>
18495 * config/aarch64/arm_neon.h (vabs_s64): New function
18497 2013-07-19 Georg-Johann Lay <avr@gjlay.de>
18500 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
18501 * config/avr/avr.md (adjust_len): Add `round'.
18502 * config/avr/avr-protos.h (avr_out_round): New prototype.
18503 (avr_out_plus): Add `out_label' argument.
18504 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
18505 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
18506 Handle the case where `insn' is just a pattern.
18507 (avr_out_bitop): Handle the case where `insn' is just a pattern.
18508 (avr_out_round): New function.
18509 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
18511 2013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
18513 * config/microblaze/microblaze.c (microblaze_expand_prologue):
18514 Add check for flag_stack_usage to handle -fstack-usage support
18516 2013-07-18 Pat Haugen <pthaugen@us.ibm.com>
18518 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
18519 interaction for new Power8 flags and VSX.
18521 2013-07-18 Sriraman Tallam <tmsriram@google.com>
18523 PR middle-end/57698
18524 * tree-inline.c (expand_call_inline): Emit errors during
18525 early_inlining only if optimization is not turned on.
18527 2013-07-18 David Malcolm <dmalcolm@redhat.com>
18531 * passes.c (init_optimization_passes): Move the construction of
18532 the pass hierarchy into a new passes.def file.
18534 * Makefile.in (passes.o): Add dependency on passes.def.
18536 2013-07-18 David Malcolm <dmalcolm@redhat.com>
18538 * passes.c (init_optimization_passes): Introduce macros for
18539 constructing the tree of passes (INSERT_PASSES_AFTER,
18540 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
18541 TERMINATE_PASS_LIST).
18543 2013-07-18 Vladimir Makarov <vmakarov@redhat.com>
18544 Wei Mi <wmi@google.com>
18546 PR rtl-optimization/57878
18547 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
18549 (reload_pseudo_compare_func): Check nregs first for reload
18552 2013-07-18 David Malcolm <dmalcolm@redhat.com>
18554 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
18556 2013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
18558 * read-rtl.c (validate_const_int): Once an invalid character is
18559 seen, quit the loop.
18561 * gengtype.c (write_roots): Similarly once we find the "deletable"
18562 or "if_marked" option.
18564 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
18566 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
18567 "xtab" and "sat". Move value "clz" from here to ...
18568 (attriubte "type"): ... here.
18569 (satsi_<SAT:code>): Delete "insn" attribute.
18570 (satsi_<SAT:code>_shift): Likewise.
18571 (arm_zero_extendqisi2addsi): Likewise.
18572 (arm_extendqisi2addsi): Likewise.
18573 (clzsi2): Update for attribute changes.
18574 (rbitsi2): Likewise.
18575 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
18577 (arm_usatsihi): Likewise.
18578 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
18580 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
18582 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
18583 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
18584 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
18585 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
18586 in alphabetical order.
18587 (attribute "core_cycles"): Update for attribute changes.
18588 (arm_addsi3): Likewise.
18589 (addsi3_compare0): Likewise.
18590 (addsi3_compare0_scratch): Likewise.
18591 (addsi3_compare_op1): Likewise.
18592 (addsi3_compare_op2): Likewise.
18593 (compare_addsi2_op0): Likewise.
18594 (compare_addsi2_op1): Likewise.
18595 (addsi3_carryin_shift_<optab>): Likewise.
18596 (subsi3_carryin_shift): Likewise.
18597 (rsbsi3_carryin_shift): Likewise.
18598 (arm_subsi3_insn): Likewise.
18599 (subsi3_compare0): Likewise.
18600 (subsi3_compare): Likewise.
18601 (arm_andsi3_insn): Likewise.
18602 (thumb1_andsi3_insn): Likewise.
18603 (andsi3_compare0): Likewise.
18604 (andsi3_compare0_scratch): Likewise.
18605 (zeroextractsi_compare0_scratch
18606 (andsi_not_shiftsi_si): Likewise.
18607 (iorsi3_insn): Likewise.
18608 (iorsi3_compare0): Likewise.
18609 (iorsi3_compare0_scratch): Likewise.
18610 (arm_xorsi3): Likewise.
18611 (thumb1_xorsi3_insn): Likewise.
18612 (xorsi3_compare0): Likewise.
18613 (xorsi3_compare0_scratch): Likewise.
18614 (satsi_<SAT:code>_shift): Likewise.
18616 (arm_shiftsi3): Likewise.
18617 (shiftsi3_compare0): Likewise.
18618 (not_shiftsi): Likewise.
18619 (not_shiftsi_compare0): Likewise.
18620 (not_shiftsi_compare0_scratch): Likewise.
18621 (arm_one_cmplsi2): Likewise.
18622 (thumb_one_complsi2): Likewise.
18623 (notsi_compare0): Likewise.
18624 (notsi_compare0_scratch): Likewise.
18625 (thumb1_zero_extendhisi2): Likewise.
18626 (arm_zero_extendhisi2): Likewise.
18627 (arm_zero_extendhisi2_v6): Likewise.
18628 (arm_zero_extendhisi2addsi): Likewise.
18629 (thumb1_zero_extendqisi2): Likewise.
18630 (thumb1_zero_extendqisi2_v6): Likewise.
18631 (arm_zero_extendqisi2): Likewise.
18632 (arm_zero_extendqisi2_v6): Likewise.
18633 (arm_zero_extendqisi2addsi): Likewise.
18634 (thumb1_extendhisi2): Likewise.
18635 (arm_extendhisi2): Likewise.
18636 (arm_extendhisi2_v6): Likewise.
18637 (arm_extendqisi): Likewise.
18638 (arm_extendqisi_v6): Likewise.
18639 (arm_extendqisi2addsi): Likewise.
18640 (thumb1_extendqisi2): Likewise.
18641 (thumb1_movdi_insn): Likewise.
18642 (arm_movsi_insn): Likewise.
18643 (movsi_compare0): Likewise.
18644 (movhi_insn_arch4): Likewise.
18645 (movhi_bytes): Likewise.
18646 (arm_movqi_insn): Likewise.
18647 (thumb1_movqi_insn): Likewise.
18648 (arm32_movhf): Likewise.
18649 (thumb1_movhf): Likewise.
18650 (arm_movsf_soft_insn): Likewise.
18651 (thumb1_movsf_insn): Likewise.
18652 (movdf_soft_insn): Likewise.
18653 (thumb_movdf_insn): Likewise.
18654 (arm_cmpsi_insn): Likewise.
18655 (cmpsi_shiftsi): Likewise.
18656 (cmpsi_shiftsi_swp): Likewise.
18657 (arm_cmpsi_negshiftsi_si): Likewise.
18658 (movsicc_insn): Likewise.
18659 (movsfcc_soft_insn): Likewise.
18660 (arith_shiftsi): Likewise.
18661 (arith_shiftsi_compare0
18662 (arith_shiftsi_compare0_scratch
18663 (sub_shiftsi): Likewise.
18664 (sub_shiftsi_compare0
18665 (sub_shiftsi_compare0_scratch
18666 (and_scc): Likewise.
18667 (cond_move): Likewise.
18668 (if_plus_move): Likewise.
18669 (if_move_plus): Likewise.
18670 (if_move_not): Likewise.
18671 (if_not_move): Likewise.
18672 (if_shift_move): Likewise.
18673 (if_move_shift): Likewise.
18674 (if_shift_shift): Likewise.
18675 (if_not_arith): Likewise.
18676 (if_arith_not): Likewise.
18677 (cond_move_not): Likewise.
18678 (thumb1_ashlsi3): Set type attribute.
18679 (thumb1_ashrsi3): Likewise.
18680 (thumb1_lshrsi3): Likewise.
18681 (thumb1_rotrsi3): Likewise.
18682 (shiftsi3_compare0_scratch): Likewise.
18683 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
18684 (neon_mov<mode>): Likewise.
18685 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
18687 (thumb2_movsi_insn): Likewise.
18688 (thumb2_cmpsi_neg_shiftsi): Likewise.
18689 (thumb2_extendqisi_v6): Likewise.
18690 (thumb2_zero_extendhisi2_v6): Likewise.
18691 (thumb2_zero_extendqisi2_v6): Likewise.
18692 (thumb2_shiftsi3_short): Likewise.
18693 (thumb2_addsi3_compare0_scratch): Likewise.
18694 (orsi_not_shiftsi_si): Likewise.
18695 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
18696 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
18698 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
18699 (1020alu_shift_op): Likewise.
18700 (1020alu_shift_reg_op): Likewise.
18701 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
18702 (alu_shift_op): Likewise.
18703 (alu_shift_reg_op): Likewise.
18704 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
18705 (11_alu_shift_op): Likewise.
18706 (11_alu_shift_reg_op): Likewise.
18707 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
18708 (9_alu_shift_reg_op): Likewise.
18709 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
18711 (cortex_a15_alu_shift): Likewise.
18712 (cortex_a15_alu_shift_reg): Likewise.
18713 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
18715 (cortex_a5_alu_shift): Likewise.
18716 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
18718 (cortex_a53_alu_shift): Likewise.
18719 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
18721 (cortex_a7_alu_reg): Likewise.
18722 (cortex_a7_alu_shift): Likewise.
18723 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
18725 (cortex_a8_alu_shift): Likewise.
18726 (cortex_a8_alu_shift_reg): Likewise.
18727 (cortex_a8_mov): Likewise.
18728 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
18729 (cortex_a9_dp_shift): Likewise.
18730 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
18732 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
18734 (cortex_r4_mov): Likewise.
18735 (cortex_r4_alu_shift): Likewise.
18736 (cortex_r4_alu_shift_reg): Likewise.
18737 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
18738 (526_alu_shift_op): Likewise.
18739 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
18740 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
18741 (626te_alu_shift_op): Likewise.
18742 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
18743 (726te_alu_op): Likewise.
18744 (726te_alu_shift_op): Likewise.
18745 (726te_alu_shift_reg_op): Likewise.
18746 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
18747 (mp626_alu_shift_op): Likewise.
18748 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
18749 (pj4_alu_e1_conds): Likewise.
18750 (pj4_alu): Likewise.
18751 (pj4_alu_conds): Likewise.
18752 (pj4_shift): Likewise.
18753 (pj4_shift_conds): Likewise.
18754 (pj4_alu_shift): Likewise.
18755 (pj4_alu_shift_conds): Likewise.
18756 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
18758 (cortexa7_older_only): Likewise.
18759 (cortexa7_younger): Likewise.
18761 2013-07-18 David Malcolm <dmalcolm@redhat.com>
18763 * ipa-pure-const.c (generate_summary): Rename to...
18764 (pure_const_generate_summary): ... this.
18766 2013-07-17 Iain Sandoe <iain@codesourcery.com>
18768 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
18770 2013-07-17 Yvan Roux <yvan.roux@linaro.org>
18773 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
18776 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18778 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
18779 enabled without -march=zEC12.
18780 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
18783 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
18785 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
18786 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
18787 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
18788 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
18789 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
18790 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
18791 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
18793 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
18794 and ISA_HAS_NMADD3_NMSUB3.
18795 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
18796 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
18797 (nmsub4<mode>, nmsub3<mode>): Likewise.
18798 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
18800 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
18802 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
18803 TARGET_MIPS5400 checking.
18805 2013-07-16 Jakub Jelinek <jakub@redhat.com>
18806 Peter Bergner <bergner@vnet.ibm.com>
18808 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
18809 registers in the comment.
18810 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
18811 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
18812 rather than FIRST_PSEUDO_REGISTERS.
18814 2013-07-16 Peter Bergner <bergner@vnet.ibm.com>
18816 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
18817 enable extra ISA flags with TARGET_HTM.
18819 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
18821 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
18824 2013-07-15 Cong Hou <congh@google.com>
18826 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
18827 in compare function for sorting.
18829 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
18831 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
18832 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
18833 * config/rs6000/rs6000.opt: Add -mhtm option.
18834 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
18835 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
18836 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
18837 __HTM__ if the HTM instructions are available.
18838 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
18839 htm_spr_reg_operand): New define_predicates.
18840 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
18841 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
18843 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
18844 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
18845 HTM builtin functions.
18846 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
18847 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
18848 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
18849 (rs6000_builtin_mask_calculate): Likewise.
18850 (rs6000_option_override_internal): Likewise.
18851 (bdesc_htm): Add new HTM builtin support.
18852 (htm_spr_num): New function.
18853 (htm_spr_regno): Likewise.
18854 (rs6000_htm_spr_icode): Likewise.
18855 (htm_expand_builtin): Likewise.
18856 (htm_init_builtins): Likewise.
18857 (rs6000_expand_builtin): Add support for HTM builtin functions.
18858 (rs6000_init_builtins): Likewise.
18859 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
18861 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
18862 (TARGET_HTM, MASK_HTM): Define macros.
18863 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
18864 (FIXED_REGISTERS): Likewise.
18865 (CALL_USED_REGISTERS): Likewise.
18866 (CALL_REALLY_USED_REGISTERS): Likewise.
18867 (REG_ALLOC_ORDER): Likewise.
18868 (enum reg_class): Likewise.
18869 (REG_CLASS_NAMES): Likewise.
18870 (REG_CLASS_CONTENTS): Likewise.
18871 (REGISTER_NAMES): Likewise.
18872 (ADDITIONAL_REGISTER_NAMES): Likewise.
18873 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
18874 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
18875 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
18876 * config/rs6000/htm.md: New file.
18877 * config/rs6000/htmintrin.h: New file.
18878 * config/rs6000/htmxlintrin.h: New file.
18880 2013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
18882 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
18883 Define SYMBOL_TINY_GOT, update comment.
18884 * config/aarch64/aarch64.c
18885 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
18886 (aarch64_expand_mov_immediate): Likewise.
18887 (aarch64_print_operand): Likewise.
18888 (aarch64_classify_symbol): Likewise.
18889 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
18890 (ldr_got_tiny): Define.
18892 2013-07-13 Tobias Grosser <tobias@grosser.es>
18894 PR tree-optimization/54094
18895 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
18896 scheduling dimension for the parallelism check from the polyhedral
18897 information in the AST.
18898 * graphite-dependences.c (carries_deps): Do not assume the schedule is
18901 2013-07-13 Jason Merrill <jason@redhat.com>
18903 * print-tree.c (debug_vec_tree): Use debug_raw.
18904 (debug_raw (vec<tree, va_gc> &)): New.
18905 (debug_raw (vec<tree, va_gc> *)): New.
18906 * tree.h: Declare them.
18908 2013-07-13 Bin Cheng <bin.cheng@arm.com>
18910 * ifcvt.c (ifcvt_after_combine): New static variable.
18911 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
18913 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
18914 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
18915 rest_of_handle_if_after_reload): Pass new argument for if_convert.
18917 2013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
18919 * config/mips/mips.c (mips_expand_call): Remove empty statement.
18921 2013-07-12 Michael Matz <matz@suse.de>
18923 PR middle-end/55771
18924 * convert.c (convert_to_real): Reject non-float inner types.
18926 2013-07-12 Tejas Belagod <tejas.belagod@arm.com>
18928 * config/aarch64/aarch64-protos.h
18929 (aarch64_simd_immediate_valid_for_move): Remove.
18930 * config/aarch64/aarch64.c (simd_immediate_info): New member.
18931 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
18933 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
18935 2013-07-11 Steve Ellcey <sellcey@mips.com>
18937 * config/mips/mips.c (mips_conditional_register_usage): Do not
18938 use t[0-7] registers in MIPS16 mode when optimizing for size.
18940 2013-07-11 Sriraman Tallam <tmsriram@google.com>
18942 * config/i386/i386.c (dispatch_function_versions): Fix array
18943 indexing of function_version_info to match actual_versions.
18945 2013-07-11 Teresa Johnson <tejohnson@google.com>
18947 * vec.h (struct va_gc): Move release out-of-line.
18948 (va_gc::release): Call ggc_free on released vec.
18950 2013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18952 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
18953 Require GOT register as additional operand in UNSPEC.
18954 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
18955 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
18956 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
18957 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
18958 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
18959 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
18960 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
18962 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
18965 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
18966 name seen by assembler/linker rather if available.
18968 2013-07-11 Andreas Schwab <schwab@suse.de>
18970 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
18972 2013-07-10 Vladimir Makarov <vmakarov@redhat.com>
18974 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
18976 2013-07-10 Joseph Myers <joseph@codesourcery.com>
18978 * doc/tm.texi.in: Move hook documentation to ....
18979 * target.def: ... here.
18981 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
18982 text on @hook line.
18983 * doc/tm.texi: Regenerate.
18985 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
18988 * doc/invoke.texi: Document -Wconditionally-supported.
18990 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
18993 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
18996 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
18999 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
19000 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
19001 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
19002 Remove duplicate devices.
19003 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
19004 * config/avr/t-multilib: Regenerate.
19005 * config/avr/avr-tables.opt: Regenerate.
19006 * doc/avr-mmcu.texi: Regenerate.
19008 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
19011 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
19013 2013-07-10 Graham Stott <graham.stott@btinternet.com>
19015 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
19016 the cost of MULT when optimizing for size.
19018 2013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
19020 * config/cr16/cr16-protos.h: Don't include target.h.
19022 2013-07-09 Joseph Myers <joseph@codesourcery.com>
19024 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
19025 adjust register size for TDmode and TFmode for VSX registers.
19027 2013-07-08 Kai Tietz <ktietz@redhat.com>
19030 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
19031 hook_bool_const_tree_true.
19033 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19035 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
19036 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
19037 * config/s390/s390.md: Define FPR*_REGNUM constants.
19038 Fix FPR2_REGNUM constant (18 -> 17).
19039 ("*trunc<BFP:mode><DFP_ALL:mode>2")
19040 ("*trunc<DFP_ALL:mode><BFP:mode>2")
19041 ("trunc<BFP:mode><DFP_ALL:mode>2")
19042 ("trunc<DFP_ALL:mode><BFP:mode>2")
19043 ("*extend<BFP:mode><DFP_ALL:mode>2")
19044 ("*extend<DFP_ALL:mode><BFP:mode>2")
19045 ("extend<BFP:mode><DFP_ALL:mode>2")
19046 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
19049 2013-07-08 Graham Stott <graham.stott@btinternet.com>
19051 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
19053 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19055 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
19056 and cfun_fpr_bit_p to cfun_fpr_save_p.
19057 (s390_frame_area, s390_register_info, s390_frame_info)
19058 (s390_emit_prologue, s390_emit_epilogue)
19059 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
19061 * config/s390/s390.h: Define *_REGNUM macros for floating point
19064 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
19066 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
19068 2013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
19070 PR rtl-optimization/57786
19071 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
19072 and break out of the loop when it is set to false.
19074 2013-07-08 Jakub Jelinek <jakub@redhat.com>
19077 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
19078 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
19079 (const_int 63)) 0)).
19080 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
19081 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
19082 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
19084 PR rtl-optimization/57829
19085 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
19086 mask bits outside of mode are just sign-extension from mode to HWI.
19088 2013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
19090 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
19091 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
19092 adjust_address instead of change_address to keep info about alignment.
19093 (emit_strmov): Remove.
19094 (emit_memmov): New function.
19095 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
19096 (expand_movmem_epilogue): Likewise and return updated rtx for
19098 (expand_constant_movmem_prologue): Likewise and return updated rtx for
19099 destination and source.
19100 (decide_alignment): Refactor, handle vector_loop.
19101 (ix86_expand_movmem): Likewise.
19102 (ix86_expand_setmem): Likewise.
19103 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
19105 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
19107 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
19108 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
19110 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
19112 * config/i386/sse.md (sse_movlhps): Change alternative 3
19113 of operand 2 to "m".
19115 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
19118 * config/i386/sse.md (iptr): New mode attribute.
19119 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
19120 (<sse>_vm<plusminus_insn><mode>3): Ditto.
19121 (<sse>_vmmul<mode>3): Ditto.
19122 (<sse>_vmdiv<mode>3): Ditto.
19123 (sse_vmrcpv4sf2): Ditto.
19124 (<sse>_vmsqrt<mode>2): Ditto.
19125 (sse_vmrsqrtv4sf2): Ditto.
19126 (<sse>_vm<code><mode>3): Ditto.
19127 (avx_vmcmp<mode>3): Ditto.
19128 (<sse>_vmmaskcmp<mode>3): Ditto.
19129 (<sse>_comi): Ditto.
19130 (<sse>_ucomi): Ditto.
19131 (*xop_vmfrcz_<mode>): Ditto.
19132 (*fmai_fmadd_<mode>): Ditto.
19133 (*fmai_fmsub_<mode>): Ditto.
19134 (*fmai_fnmadd_<mode>): Ditto.
19135 (*fmai_fnmsub_<mode>): Ditto.
19136 (*fma4i_vmfmadd_<mode>): Ditto.
19137 (*fma4i_vmfmsub_<mode>): Ditto.
19138 (*fma4i_vmfnmadd_<mode>): Ditto.
19139 (*fma4i_vmfnmsub_<mode>): Ditto.
19140 (*xop_vmfrcz_<mode>): Ditto.
19141 (sse_cvtps2pi): Ditto.
19142 (sse_cvttps2pi): Ditto.
19143 (sse_cvtss2si): Ditto.
19144 (sse_cvtss2si_2): Ditto.
19145 (sse_cvtss2siq_2): Ditto.
19146 (sse_cvttss2si): Ditto.
19147 (sse_cvttss2siq): Ditto.
19148 (sse_cvtsd2si): Ditto.
19149 (sse_cvtsd2si_2): Ditto.
19150 (sse_cvtsd2siq_2): Ditto.
19151 (sse_cvttsd2si): Ditto.
19152 (sse_cvttsd2siq): Ditto.
19153 (sse_cvtsd2ss): Ditto.
19154 (sse_cvtss2sd): Ditto.
19155 (avx2_pbroadcast<mode>): Ditto.
19156 (avx2_pbroadcast<mode>_1): Ditto.
19157 (*avx_vperm_broadcast_v4sf): Ditto.
19159 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
19160 (sse_movlhps): Ditto.
19161 (sse_storehps): Ditto.
19162 (sse_loadhps): Ditto.
19163 (sse_storelps): Ditto.
19164 (sse_loadlps): Ditto.
19165 (*vec_concatv4sf): Ditto.
19166 (*vec_interleave_highv2df): Ditto.
19167 (*vec_interleave_lowv2df): Ditto.
19168 (*vec_extractv2df_1_sse): Ditto.
19169 (*vec_extractv2df_0_sse): Ditto.
19170 (sse2_storelpd): Ditto.
19171 (sse2_loadlpd): Ditto.
19172 (sse2_movsd): Ditto.
19173 (*vec_concatv4si): Ditto.
19174 (vec_concatv2di): Ditto.
19176 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
19177 for Intel asm dialect.
19178 (mmx_punpcklwd): Ditto.
19179 (mmx_punpckldq): Ditto.
19181 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
19182 for intel assembler dialect.
19184 2013-07-06 Jakub Jelinek <jakub@redhat.com>
19187 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
19188 for BUILT_IN_C{LZ,LRSB}*.
19189 * tree.h (CASE_INT_FN): Add FN##IMAX case.
19190 * tree-vrp.c (extract_range_basic): Handle
19191 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
19192 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
19193 fall thru to code calling set_value*.
19194 * builtins.c (expand_builtin): Remove *IMAX cases.
19195 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
19196 if width is bigger than 2*HWI.
19198 2013-07-05 Vladimir Makarov <vmakarov@redhat.com>
19200 PR rtl-optimization/55342
19201 * lra-int.h (lra_subreg_reload_pseudos): New.
19202 * lra.c: Add undoing optional reloads to the block diagram.
19203 (lra_subreg_reload_pseudos): New.
19204 (lra_optional_reload_pseudos): Change comments.
19205 (lra): Init and clear lra_subreg_reload_pseudos. Clear
19206 lra_optional_reload_pseudos after undo transformations.
19207 * lra-assigns.c (pseudo_prefix_title): New.
19208 (lra_setup_reg_renumber): Use it.
19209 (spill_for): Ditto. Check subreg reload pseudos too.
19210 (assign_by_spills): Consider subreg reload pseudos too.
19211 * lra-constraints.c (simplify_operand_subreg): Use
19212 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
19213 (curr_insn_transform): Recognize and do optional reloads.
19214 (undo_optional_reloads): New.
19215 (lra_undo_inheritance): Call undo_optional_reloads.
19217 2013-07-05 Thomas Quinot <quinot@adacore.com>
19219 * tree-complex.c (expand_complex_operations_1): Fix typo.
19221 2013-07-04 Tejas Belagod <tejas.belagod@arm.com>
19223 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
19224 (tune_params): New member 'const vec_costs'.
19225 * config/aarch64/aarch64.c (generic_vector_cost): New.
19226 (generic_tunings): New member 'generic_vector_cost'.
19227 (aarch64_builtin_vectorization_cost): New.
19228 (aarch64_add_stmt_cost): New.
19229 (TARGET_VECTORIZE_ADD_STMT_COST): New.
19230 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
19232 2013-07-03 Jakub Jelinek <jakub@redhat.com>
19235 * config/i386/predicates.md (vsib_address_operand): Disallow
19236 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
19238 2013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
19240 PR middle-end/55030
19241 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
19242 expand_builtin_setjmp_receiver.
19243 (expand_label): Adjust, call expand_builtin_setjmp_receiver
19244 with NULL for the label parameter.
19245 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
19246 the frame-pointer. Adjust comments.
19247 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
19248 only if LABEL is non-NULL.
19250 2013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
19252 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
19253 (ARM_ABI_AAPCS64): Ditto.
19255 (ARM_DEFAULT_ABI): Ditto.
19257 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
19259 * config/aarch64/aarch64-builtins.c
19260 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
19261 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
19263 * config/aarch64/aarch64-simd.md
19264 (aarch64_ld1<VALL:mode>): New.
19265 (aarch64_st1<VALL:mode>): Likewise.
19266 * config/aarch64/arm_neon.h
19267 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
19269 2013-07-02 Sriraman Tallam <tmsriram@google.com>
19271 * config/i386/i386.c (gate_insert_vzeroupper): Check if
19273 (ix86_option_override_internal):Turn on all -mavx target flags by
19274 default as they are dependent on AVX anyway.
19276 2013-07-02 Cary Coutant <ccoutant@google.com>
19278 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
19279 deterministic hash.
19280 (loc_checksum_ordered): Likewise.
19281 (hash_loc_operands): Remove inline keyword.
19283 2013-07-02 Jakub Jelinek <jakub@redhat.com>
19285 PR tree-optimization/57741
19286 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
19287 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
19288 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
19289 Allow REAL_CST step_exprs if flag_associative_math.
19290 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
19292 2013-07-02 Ian Bolton <ian.bolton@arm.com>
19294 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
19296 2013-07-02 Ian Bolton <ian.bolton@arm.com>
19298 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
19300 2013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19302 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
19304 (iorsi3_insn): Likewise.
19305 (arm_xorsi3): Likewise.
19307 2013-07-01 Sofiane Naci <sofiane.naci@arm.com>
19309 * arm.md (attribute "wtype"): Delete. Move attribute values from here
19311 (attribute "type"): ... here, and prefix with "wmmx_".
19312 (attribute "core_cycles"): Update for attribute changes.
19313 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
19314 (tbcstv4hi): Likewise.
19315 (tbcstv2si): Likewise.
19316 (iwmmxt_iordi3): Likewise.
19317 (iwmmxt_xordi3): Likewise.
19318 (iwmmxt_anddi3): Likewise.
19319 (iwmmxt_nanddi3): Likewise.
19320 (iwmmxt_arm_movdi): Likewise.
19321 (iwmmxt_movsi_insn): Likewise.
19322 (mov<mode>_internal): Likewise.
19323 (and<mode>3_iwmmxt): Likewise.
19324 (ior<mode>3_iwmmxt): Likewise.
19325 (xor<mode>3_iwmmxt): Likewise.
19326 (add<mode>3_iwmmxt): Likewise.
19327 (ssaddv8qi3): Likewise.
19328 (ssaddv4hi3): Likewise.
19329 (ssaddv2si3): Likewise.
19330 (usaddv8qi3): Likewise.
19331 (usaddv4hi3): Likewise.
19332 (usaddv2si3): Likewise.
19333 (sub<mode>3_iwmmxt): Likewise.
19334 (sssubv8qi3): Likewise.
19335 (sssubv4hi3): Likewise.
19336 (sssubv2si3): Likewise.
19337 (ussubv8qi3): Likewise.
19338 (ussubv4hi3): Likewise.
19339 (ussubv2si3): Likewise.
19340 (mulv4hi3_iwmmxt): Likewise.
19341 (smulv4hi3_highpart): Likewise.
19342 (umulv4hi3_highpart): Likewise.
19343 (iwmmxt_wmacs): Likewise.
19344 (iwmmxt_wmacsz): Likewise.
19345 (iwmmxt_wmacu): Likewise.
19346 (iwmmxt_wmacuz): Likewise.
19347 (iwmmxt_clrdi): Likewise.
19348 (iwmmxt_clrv8qi): Likewise.
19349 (iwmmxt_clr4hi): Likewise.
19350 (iwmmxt_clr2si): Likewise.
19351 (iwmmxt_uavgrndv8qi3): Likewise.
19352 (iwmmxt_uavgrndv4hi3): Likewise.
19353 (iwmmxt_uavgv8qi3): Likewise.
19354 (iwmmxt_uavgv4hi3): Likewise.
19355 (iwmmxt_tinsrb): Likewise.
19356 (iwmmxt_tinsrh): Likewise.
19357 (iwmmxt_tinsrw): Likewise.
19358 (iwmmxt_textrmub): Likewise.
19359 (iwmmxt_textrmsb): Likewise.
19360 (iwmmxt_textrmuh): Likewise.
19361 (iwmmxt_textrmsh): Likewise.
19362 (iwmmxt_textrmw): Likewise.
19363 (iwmxxt_wshufh): Likewise.
19364 (eqv8qi3): Likewise.
19365 (eqv4hi3): Likewise.
19366 (eqv2si3): Likewise.
19367 (gtuv8qi3): Likewise.
19368 (gtuv4hi3): Likewise.
19369 (gtuv2si3): Likewise.
19370 (gtv8qi3): Likewise.
19371 (gtv4hi3): Likewise.
19372 (gtv2si3): Likewise.
19373 (smax<mode>3_iwmmxt): Likewise.
19374 (umax<mode>3_iwmmxt): Likewise.
19375 (smin<mode>3_iwmmxt): Likewise.
19376 (umin<mode>3_iwmmxt): Likewise.
19377 (iwmmxt_wpackhss): Likewise.
19378 (iwmmxt_wpackwss): Likewise.
19379 (iwmmxt_wpackdss): Likewise.
19380 (iwmmxt_wpackhus): Likewise.
19381 (iwmmxt_wpackwus): Likewise.
19382 (iwmmxt_wpackdus): Likewise.
19383 (iwmmxt_wunpckihb): Likewise.
19384 (iwmmxt_wunpckihh): Likewise.
19385 (iwmmxt_wunpckihw): Likewise.
19386 (iwmmxt_wunpckilb): Likewise.
19387 (iwmmxt_wunpckilh): Likewise.
19388 (iwmmxt_wunpckilw): Likewise.
19389 (iwmmxt_wunpckehub): Likewise.
19390 (iwmmxt_wunpckehuh): Likewise.
19391 (iwmmxt_wunpckehuw): Likewise.
19392 (iwmmxt_wunpckehsb): Likewise.
19393 (iwmmxt_wunpckehsh): Likewise.
19394 (iwmmxt_wunpckehsw): Likewise.
19395 (iwmmxt_wunpckelub): Likewise.
19396 (iwmmxt_wunpckeluh): Likewise.
19397 (iwmmxt_wunpckeluw): Likewise.
19398 (iwmmxt_wunpckelsb): Likewise.
19399 (iwmmxt_wunpckelsh): Likewise.
19400 (iwmmxt_wunpckelsw): Likewise.
19401 (ror<mode>3): Likewise.
19402 (ashr<mode>3_iwmmxt): Likewise.
19403 (lshr<mode>3_iwmmxt): Likewise.
19404 (ashl<mode>3_iwmmxt): Likewise.
19405 (ror<mode>3_di): Likewise.
19406 (ashr<mode>3_di): Likewise.
19407 (lshr<mode>3_di): Likewise.
19408 (ashl<mode>3_di): Likewise.
19409 (iwmmxt_wmadds): Likewise.
19410 (iwmmxt_wmaddu): Likewise.
19411 (iwmmxt_tmia): Likewise.
19412 (iwmmxt_tmiaph): Likewise.
19413 (iwmmxt_tmiabb): Likewise.
19414 (iwmmxt_tmiatb): Likewise.
19415 (iwmmxt_tmiabt): Likewise.
19416 (iwmmxt_tmiatt): Likewise.
19417 (iwmmxt_tmovmskb): Likewise.
19418 (iwmmxt_tmovmskh): Likewise.
19419 (iwmmxt_tmovmskw): Likewise.
19420 (iwmmxt_waccb): Likewise.
19421 (iwmmxt_wacch): Likewise.
19422 (iwmmxt_waccw): Likewise.
19423 (iwmmxt_waligni): Likewise.
19424 (iwmmxt_walignr): Likewise.
19425 (iwmmxt_walignr0): Likewise.
19426 (iwmmxt_walignr1): Likewise.
19427 (iwmmxt_walignr2): Likewise.
19428 (iwmmxt_walignr3): Likewise.
19429 (iwmmxt_wsadb): Likewise.
19430 (iwmmxt_wsadh): Likewise.
19431 (iwmmxt_wsadbz): Likewise.
19432 (iwmmxt_wsadhz): Likewise.
19433 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
19434 (iwmmxt_wabsdiffb): Likewise.
19435 (iwmmxt_wabsdiffh): Likewise.
19436 (iwmmxt_wabsdiffw): Likewise.
19437 (iwmmxt_waddsubhx): Likewise
19438 (iwmmxt_wsubaddhx): Likewise.
19439 (addc<mode>3): Likewise.
19440 (iwmmxt_avg4): Likewise.
19441 (iwmmxt_avg4r): Likewise.
19442 (iwmmxt_wmaddsx): Likewise.
19443 (iwmmxt_wmaddux): Likewise.
19444 (iwmmxt_wmaddsn): Likewise.
19445 (iwmmxt_wmaddun): Likewise.
19446 (iwmmxt_wmulwsm): Likewise.
19447 (iwmmxt_wmulwum): Likewise.
19448 (iwmmxt_wmulsmr): Likewise.
19449 (iwmmxt_wmulumr): Likewise.
19450 (iwmmxt_wmulwsmr): Likewise.
19451 (iwmmxt_wmulwumr): Likewise.
19452 (iwmmxt_wmulwl): Likewise.
19453 (iwmmxt_wqmulm): Likewise.
19454 (iwmmxt_wqmulwm): Likewise.
19455 (iwmmxt_wqmulmr): Likewise.
19456 (iwmmxt_wqmulwmr): Likewise.
19457 (iwmmxt_waddbhusm): Likewise.
19458 (iwmmxt_waddbhusl): Likewise.
19459 (iwmmxt_wqmiabb): Likewise.
19460 (iwmmxt_wqmiabt): Likewise.
19461 (iwmmxt_wqmiatb): Likewise.
19462 (iwmmxt_wqmiatt): Likewise.
19463 (iwmmxt_wqmiabbn): Likewise.
19464 (iwmmxt_wqmiabtn): Likewise.
19465 (iwmmxt_wqmiatbn): Likewise.
19466 (iwmmxt_wqmiattn): Likewise.
19467 (iwmmxt_wmiabb): Likewise.
19468 (iwmmxt_wmiabt): Likewise.
19469 (iwmmxt_wmiatb): Likewise.
19470 (iwmmxt_wmiatt): Likewise.
19471 (iwmmxt_wmiabbn): Likewise.
19472 (iwmmxt_wmiabtn): Likewise.
19473 (iwmmxt_wmiatbn): Likewise.
19474 (iwmmxt_wmiattn): Likewise.
19475 (iwmmxt_wmiawbb): Likewise.
19476 (iwmmxt_wmiawbt): Likewise.
19477 (iwmmxt_wmiawtb): Likewise.
19478 (iwmmxt_wmiawtt): Likewise.
19479 (iwmmxt_wmiawbbn): Likewise.
19480 (iwmmxt_wmiawbtn): Likewise.
19481 (iwmmxt_wmiawtbn): Likewise.
19482 (iwmmxt_wmiawttn): Likewise.
19483 (iwmmxt_wmerge): Likewise.
19484 (iwmmxt_tandc<mode>3): Likewise.
19485 (iwmmxt_torc<mode>3): Likewise.
19486 (iwmmxt_torvsc<mode>3): Likewise.
19487 (iwmmxt_textrc<mode>3): Likewise.
19488 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
19489 (wmmxt_pack): Likewise.
19490 (wmmxt_mult_c1): Likewise.
19491 (wmmxt_mult_c2): Likewise.
19492 (wmmxt_alu_c1): Likewise.
19493 (wmmxt_alu_c2): Likewise.
19494 (wmmxt_alu_c3): Likewise.
19495 (wmmxt_transfer_c1): Likewise.
19496 (wmmxt_transfer_c2): Likewise.
19497 (wmmxt_transfer_c3): Likewise.
19498 (marvell_f_iwmmxt_wstr): Likewise.
19499 (marvell_f_iwmmxt_wldr): Likewise.
19501 2013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
19503 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
19505 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
19508 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
19509 * lra-constraints.c (need_for_split_p): Check call used hard regs
19510 living through calls.
19512 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
19513 call used regs for call insn.
19515 2013-06-28 Jakub Jelinek <jakub@redhat.com>
19518 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
19519 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
19521 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
19523 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
19525 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
19527 * lra-constraints.c (need_for_split_p): Check call used hard regs
19528 living through calls.
19530 2013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
19533 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
19534 to tie with any other modes. Eliminate Altivec vector mode tests,
19535 since these are a subset of ALTIVEC or VSX vector modes. Simplify
19536 code, to return 0 if testing MODE2 for a condition, if we've
19537 already tested MODE1 for the same condition.
19539 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
19541 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
19544 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
19546 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
19547 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
19549 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
19551 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
19553 (aarch64_symbolic_constant_p): Remove.
19554 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
19555 static. Fix line length and white space.
19556 (aarch64_symbolic_constant_p): Remove.
19557 * config/aarch64/predicates.md (aarch64_valid_symref):
19558 Use aarch64_classify_symbol_expression.
19560 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19562 * config/arm/constraints.md (Ts): New constraint.
19563 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
19565 (compare_scc): Use "Ts" constraint for operand 0.
19566 (ior_scc_scc): Likewise.
19567 (and_scc_scc): Likewise.
19568 (and_scc_scc_nodom): Likewise.
19569 (ior_scc_scc_cmp): Likewise for operand 7.
19570 (and_scc_scc_cmp): Likewise.
19571 * config/arm/thumb2.md (thumb2_movsi_insn):
19572 Add alternatives for 16-bit encodings.
19573 (thumb2_movhi_insn): Likewise.
19574 (thumb2_movsicc_insn): Likewise.
19575 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
19576 (thumb2_negscc): Use "Ts" constraint.
19577 Move mvn instruction outside cond_exec block.
19578 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
19579 for 16-bit encodings.
19581 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19583 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
19585 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
19586 (mulsi3subsi): Likewise.
19587 (mulsidi3adddi): Likewise.
19588 (mulsidi3_v6): Likewise.
19589 (umulsidi3_v6): Likewise.
19590 (umulsidi3adddi_v6): Likewise.
19591 (smulsi3_highpart_v6): Likewise.
19592 (umulsi3_highpart_v6): Likewise.
19593 (mulhisi3tb): Likewise.
19594 (mulhisi3bt): Likewise.
19595 (mulhisi3tt): Likewise.
19596 (maddhisi4): Likewise.
19597 (maddhisi4tb): Likewise.
19598 (maddhisi4tt): Likewise.
19599 (maddhidi4): Likewise.
19600 (maddhidi4tb): Likewise.
19601 (maddhidi4tt): Likewise.
19602 (zeroextractsi_compare0_scratch): Likewise.
19603 (insv_zero): Likewise.
19604 (insv_t2): Likewise.
19605 (anddi_notzesidi_di): Likewise.
19606 (anddi_notsesidi_di): Likewise.
19607 (andsi_notsi_si): Likewise.
19608 (iordi_zesidi_di): Likewise.
19609 (xordi_zesidi_di): Likewise.
19610 (andsi_iorsi3_notsi): Likewise.
19611 (smax_0): Likewise.
19612 (smax_m1): Likewise.
19613 (smin_0): Likewise.
19614 (not_shiftsi): Likewise.
19615 (unaligned_loadsi): Likewise.
19616 (unaligned_loadhis): Likewise.
19617 (unaligned_loadhiu): Likewise.
19618 (unaligned_storesi): Likewise.
19619 (unaligned_storehi): Likewise.
19620 (extv_reg): Likewise.
19621 (extzv_t2): Likewise.
19622 (divsi3): Likewise.
19623 (udivsi3): Likewise.
19624 (arm_zero_extendhisi2addsi): Likewise.
19625 (arm_zero_extendqisi2addsi): Likewise.
19626 (compareqi_eq0): Likewise.
19627 (arm_extendhisi2_v6): Likewise.
19628 (arm_extendqisi2addsi): Likewise.
19629 (arm_movt): Likewise.
19630 (thumb2_ldrd): Likewise.
19631 (thumb2_ldrd_base): Likewise.
19632 (thumb2_ldrd_base_neg): Likewise.
19633 (thumb2_strd): Likewise.
19634 (thumb2_strd_base): Likewise.
19635 (thumb2_strd_base_neg): Likewise.
19636 (arm_negsi2): Add alternative for 16-bit encoding.
19637 (arm_one_cmplsi2): Likewise.
19639 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19641 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
19642 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
19643 (movdfcc): Likewise.
19644 * config/arm/vfp.md (*thumb2_movsf_vfp):
19645 Disable predication for arm_restrict_it.
19646 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
19647 (*thumb2_movdfcc_vfp): Likewise.
19648 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
19649 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
19650 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
19651 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
19652 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
19653 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
19654 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
19655 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
19656 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
19657 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
19658 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
19659 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
19660 Disable predication for arm_restrict_it.
19662 2013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
19664 * config/i386/bmiintrin.h (_bextr_u32): New.
19665 (_bextr_u64): Ditto.
19667 2013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
19669 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
19670 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
19671 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
19672 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
19673 * config/mips/n32-elf.h: ...this new file.
19675 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
19678 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
19679 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
19681 2013-06-27 Catherine Moore <clm@codesourcery.com>
19683 * config/mips/mips-tables.opt: Regenerate.
19684 * config/mips/mips-cpus.def: Add m14ke and m14kec.
19685 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
19686 * doc/invoke.texi: Add -m14kc.
19688 2013-06-27 Jakub Jelinek <jakub@redhat.com>
19691 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
19692 constraints of operand 1 and 2.
19695 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
19696 to match RTL canonicalization. Swap predicates and
19697 constraints of operand 1 and 2.
19699 2013-06-27 Vladimir Makarov <vmakarov@redhat.com>
19701 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
19702 Process OP_INOUT regs for splitting too.
19704 2013-06-27 Jakub Jelinek <jakub@redhat.com>
19706 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
19707 decl before the loop, initialize to NULL.
19708 (vectorizable_load): Initialize ptr_incr to NULL.
19710 2013-06-27 Martin Jambor <mjambor@suse.cz>
19713 * ipa-ref.h (ipa_maybe_record_reference): Declare.
19714 * ipa-ref.c (ipa_maybe_record_reference): New function.
19715 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
19716 * ipa-cp.c (create_specialized_node): Record potential references from
19718 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
19720 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
19722 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
19723 parameter 'mode' of type 'enum machine_mode mode'; change to pass
19724 'mode' to force_reg.
19725 (aarch64_add_offset): Update calls to aarch64_force_temporary.
19726 (aarch64_expand_mov_immediate): Likewise.
19728 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
19730 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
19731 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
19733 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19735 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
19736 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
19737 (struct machine_function): Add tbegin_p.
19738 (s390_canonicalize_comparison): Fold CC mode compares to
19739 conditional jump if possible.
19740 (s390_emit_jump): Return the emitted jump.
19741 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
19742 Handle CCRAWmode compares.
19743 (s390_option_override): Default to -mhtm if available.
19744 (s390_reg_clobbered_rtx): Handle floating point regs as well.
19745 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
19746 FPRs instead of df_regs_ever_live_p.
19747 (s390_optimize_nonescaping_tx): New function.
19748 (s390_init_frame_layout): Extend clobbered_regs array to cover
19750 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
19751 (s390_expand_tbegin): New function.
19752 (enum s390_builtin): New enum definition.
19753 (code_for_builtin): New array definition.
19754 (s390_init_builtins): New function.
19755 (s390_expand_builtin): New function.
19756 (TARGET_INIT_BUILTINS): Define.
19757 (TARGET_EXPAND_BUILTIN): Define.
19758 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
19759 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
19760 (s390_alc_comparison): Likewise.
19761 * config/s390/s390-modes.def: Add CCRAWmode.
19762 * config/s390/s390.h (processor_flags): Add PF_TX.
19763 (TARGET_CPU_HTM): Define macro.
19764 (TARGET_HTM): Define macro.
19765 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
19766 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
19767 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
19768 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
19769 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
19770 (TBEGIN_MASK, TBEGINC_MASK): New constants.
19771 ("*cc_to_int"): Move up.
19772 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
19773 constants other than 0.
19774 ("*ccraw_to_int"): New insn and splitter definition.
19775 ("tbegin", "tbegin_nofloat", "tbegin_retry")
19776 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
19777 ("tx_assist"): New expander.
19778 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
19779 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
19780 * config/s390/s390.opt: Add -mhtm option.
19781 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
19782 * config/s390/htmxlintrin.h: New file.
19783 * config/s390/htmintrin.h: New file.
19784 * config/s390/s390intrin.h: New file.
19785 * doc/extend.texi: Document htm builtins.
19786 * config.gcc: Add the new header files to extra_headers.
19788 2013-06-26 Thomas Schwinge <thomas@codesourcery.com>
19790 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
19791 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
19793 2013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
19794 Pat Haugen <pthaugen@us.ibm.com>
19795 Peter Bergner <bergner@vnet.ibm.com>
19797 * config/rs6000/power8.md: New.
19798 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
19799 setting for power8 entry.
19800 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
19801 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
19802 test for Power4/Power5 only.
19803 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
19805 (force_new_group): Adjust comment.
19806 * config/rs6000/rs6000.md: Include power8.md.
19808 2013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
19810 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
19811 * config/arm/arm-protos.h (arm_max_conditional_execute): New
19813 (tune_params): Update comment.
19814 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
19815 (arm_max_conditional_execute): New function.
19816 (thumb2_final_prescan_insn): Use max_insn_skipped and
19817 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
19819 2013-06-25 Jakub Jelinek <jakub@redhat.com>
19821 PR tree-optimization/57705
19822 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
19823 SSA_NAME step, provided that it is not defined inside the loop.
19824 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
19825 (get_initial_def_for_induction): Handle SSA_NAME IV step.
19827 2013-06-25 Martin Jambor <mjambor@suse.cz>
19829 PR middle-end/57670
19830 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
19831 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
19833 (ipa_note_param_call): Initialize member_ptr flag.
19834 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
19835 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
19836 (ipa_write_indirect_edge_info): Stream member_ptr flag.
19837 (ipa_read_indirect_edge_info): Likewise.
19839 2013-06-25 Richard Biener <rguenther@suse.de>
19841 PR middle-end/56977
19842 * passes.c (init_optimization_passes): Move pass_fold_builtins
19843 and pass_dce earlier with -Og.
19845 2013-06-25 Eric Botcazou <ebotcazou@adacore.com>
19847 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
19848 <BIT_FIELD_REF>: Remove trailing TAB.
19849 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
19852 2013-06-24 Martin Jambor <mjambor@suse.cz>
19854 PR tree-optimization/57358
19855 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
19856 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
19857 (ipa_analyze_params_uses): Generate pessimistic info when true.
19859 2013-06-24 Martin Jambor <mjambor@suse.cz>
19861 PR tree-optimization/57539
19862 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
19863 global.inlined_to of the new node to it. All callers changed.
19864 * ipa-inline-transform.c (clone_inlined_nodes): New variable
19865 inlining_into, pass it to cgraph_clone_node.
19866 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
19867 ipa_free_edge_args_substructures.
19868 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
19869 rdesc linked list. Do not assert rdesc edges have inlined caller.
19870 Assert we have found an rdesc in the rdesc list.
19872 2013-06-24 Richard Biener <rguenther@suse.de>
19874 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
19875 (pointer_set_lookup): Declare.
19876 (class pointer_map): New template class implementing a
19877 generic pointer to T map.
19878 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
19879 pointer_map<T>::contains, pointer_map<T>::insert,
19880 pointer_map<T>::traverse): New functions.
19881 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
19882 (pointer_set_lookup): New function.
19883 (pointer_set_contains): Use pointer_set_lookup.
19884 (pointer_set_insert): Likewise.
19885 (insert_aux): Remove.
19886 (struct pointer_map_t): Embed a pointer_set_t.
19887 (pointer_map_create): Adjust.
19888 (pointer_map_destroy): Likewise.
19889 (pointer_map_contains): Likewise.
19890 (pointer_map_insert): Likewise.
19891 (pointer_map_traverse): Likewise.
19892 * tree-streamer.h (struct streamer_tree_cache_d): Use a
19893 pointer_map<unsigned> instead of a pointer_map_t.
19894 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
19895 (streamer_tree_cache_lookup): Likewise.
19896 (streamer_tree_cache_create): Likewise.
19897 (streamer_tree_cache_delete): Likewise.
19898 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
19899 pointer_map<unsigned> instead of a pointer_map_t.
19900 (lto_init_tree_ref_encoder): Adjust.
19901 (lto_destroy_tree_ref_encoder): Likewise.
19902 * lto-section-out.c (lto_output_decl_index): Likewise.
19903 (lto_record_function_out_decl_state): Likewise.
19904 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
19906 2013-06-24 Richard Biener <rguenther@suse.de>
19908 PR tree-optimization/57488
19909 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
19911 2013-06-24 Alan Modra <amodra@gmail.com>
19913 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
19914 (gen_easy_altivec_constant): Likewise.
19915 * config/rs6000/predicates.md (easy_vector_constant_add_self,
19916 easy_vector_constant_msb): Likewise.
19918 2013-06-23 Jakub Jelinek <jakub@redhat.com>
19921 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
19922 add missing return true.
19924 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
19927 * config/sh/predicates.md (general_extend_operand): Invoke
19928 general_movsrc_operand for memory operands.
19929 (general_movsrc_operand): Allow reg+reg addressing, do not use
19930 general_operand for memory operands.
19932 2013-06-23 Sriraman Tallam <tmsriram@google.com>
19934 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
19935 when current target options does not apply.
19936 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
19937 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
19938 * config/i386/bmiintrin.h: Pass appropriate target
19939 attributes to header.
19940 * config/i386/mmintrin.h: Ditto.
19941 * config/i386/nmmintrin.h: Ditto.
19942 * config/i386/avx2intrin.h: Ditto.
19943 * config/i386/fxsrintrin.h: Ditto.
19944 * config/i386/tbmintrin.h: Ditto.
19945 * config/i386/xsaveintrin.h: Ditto.
19946 * config/i386/f16cintrin.h: Ditto.
19947 * config/i386/xtestintrin.h: Ditto.
19948 * config/i386/xsaveoptintrin.h: Ditto.
19949 * config/i386/bmi2intrin.h: Ditto.
19950 * config/i386/lzcntintrin.h: Ditto.
19951 * config/i386/smmintrin.h: Ditto.
19952 * config/i386/wmmintrin.h: Ditto.
19953 * config/i386/x86intrin.h: Remove all header include guards.
19954 * config/i386/prfchwintrin.h: Ditto.
19955 * config/i386/pmmintrin.h: Ditto.
19956 * config/i386/tmmintrin.h: Ditto.
19957 * config/i386/xmmintrin.h: Ditto.
19958 * config/i386/popcntintrin.h: Ditto.
19959 * config/i386/rdseedintrin.h: Ditto.
19960 * config/i386/ammintrin.h: Ditto.
19961 * config/i386/emmintrin.h: Ditto.
19962 * config/i386/immintrin.h: Remove all header include guards.
19963 * config/i386/fma4intrin.h: Ditto.
19964 * config/i386/lwpintrin.h: Ditto.
19965 * config/i386/xopintrin.h: Ditto.
19966 * config/i386/ia32intrin.h: Ditto.
19967 * config/i386/avxintrin.h: Ditto.
19968 * config/i386/rtmintrin.h: Ditto.
19969 * config/i386/fmaintrin.h: Ditto.
19970 * config/i386/mm3dnow.h: Ditto.
19972 2013-06-22 Sriraman Tallam <tmsriram@google.com>
19974 * common/config/i386/i386-common.c: Handle LZCNT.
19976 2013-06-22 Andi Kleen <ak@linux.intel.com>
19978 * doc/extend.texi: Use __atomic_store_n instead of
19979 __atomic_store in HLE example.
19981 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
19983 * config/sh/sh.c: Remove <cstdlib> workaround.
19985 2013-06-21 Andi Kleen <ak@linux.intel.com>
19987 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
19989 2013-06-21 Andi Kleen <ak@linux.intel.com>
19991 * doc/extend.texi: Document that __atomic_clear and
19992 __atomic_test_and_set should only be used with bool.
19994 2013-06-20 Jan Hubicka <jh@suse.cz>
19996 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
19997 types_same_for_odr.
19998 * tree.c (decls_same_for_odr): New function.
19999 (same_for_edr): New function.
20000 (types_same_for_odr): New function.
20001 (get_binfo_at_offset): Use it.
20002 * tree.h (types_same_for_odr): Declare.
20004 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
20005 Jason Merrill <jason@redhat.com>
20007 * system.h: Include <cstdlib> as well as <stdlib.h>.
20009 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
20012 * config/i386/i386.c (construct_container): Report error if
20013 long double is used with disabled x87 float returns.
20015 2013-06-20 Jan Hubicka <jh@suse.cz>
20017 * lto-cgraph.c (input_symtab): Do not set cgraph state.
20019 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
20021 PR rtl-optimization/57425
20022 PR rtl-optimization/57569
20023 * alias.c (write_dependence_p): Remove parameters mem_mode and
20024 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
20025 Changed all callers.
20026 (canon_anti_dependence): Get comments and semantics in sync.
20027 Add parameter mem_canonicalized. Changed all callers.
20028 * rtl.h (canon_anti_dependence): Update prototype.
20030 2013-06-20 Richard Biener <rguenther@suse.de>
20032 * data-streamer-in.c (streamer_read_uhwi): Optimize single
20033 byte case, inline streamer_read_uchar and defer section
20036 2013-06-20 Richard Biener <rguenther@suse.de>
20038 PR tree-optimization/57584
20039 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
20040 SSA names into the expanded expression that take part in
20041 abnormal coalescing.
20043 2013-06-19 Sharad Singhai <singhai@google.com>
20045 * gcov.c (print_usage): Handle new option.
20046 (process_args): Ditto.
20047 (get_gcov_intermediate_filename): New function.
20048 (output_intermediate_file): New function.
20049 (output_gcov_file): New function
20050 (generate_results): Handle new option.
20051 (release_function): Relase demangled name.
20052 (read_graph_file): Handle demangled name.
20053 (output_lines): Ditto.
20054 * doc/gcov.texi: Document gcov intermediate format.
20056 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
20059 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
20060 (lra_emit_add): Use the functions. Add comment about Y as an
20063 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
20066 * collect2.c (collect_atexit): New.
20067 (collect_exit): Delete.
20068 (main): Register collect_atexit with atexit.
20069 (collect_wait): Change collect_exit to exit.
20071 * collect2.h (collect_exit): Delete.
20072 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
20074 2013-06-19 Wei Mi <wmi@google.com>
20076 PR rtl-optimization/57518
20077 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
20078 if regno is used in paradoxical subreg.
20079 (update_equiv_regs): Check pdx_subregs[regno] before
20080 set a reg to be equivalent with a mem.
20082 2013-06-19 Matthias Klose <doko@ubuntu.com>
20085 * file-find.h (find_a_file): Add a mode parameter.
20086 * file-find.c (find_a_file): Likewise.
20087 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
20088 with X_OK for the executables.
20089 * collect2.c (main): Call find_a_file with X_OK.
20091 2013-06-19 Steve Ellcey <sellcey@mips.com>
20094 * config/mips/mips.md (casesi_internal_mips16_<mode>):
20095 Use NEXT_INSN instead of next_real_insn.
20097 2013-06-19 Jan Hubicka <jh@suse.cz>
20099 * cgraph.h (const_value_known_p): Replace by ...
20100 (ctor_for_folding): .. this one.
20101 * cgraphunit.c (process_function_and_variable_attributes): Use it.
20102 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
20103 * expr.c (expand_expr_real_1): Likewise.
20104 (string_constant): Likewise.
20105 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
20106 * ipa.c (process_references): Likewise.
20107 (symtab_remove_unreachable_nodes): Likewise.
20108 * ipa-inline-analysis.c (param_change_prob): Likewise.
20109 * gimple-fold.c (canonicalize_constructor_val): Likewise.
20110 (get_base_constructor): Likwise.
20111 * varpool.c (varpool_remove_node): Likewise.
20112 (varpool_remove_initializer): LIkewise.
20113 (dump_varpool_node): LIkwise.
20114 (const_value_known_p): Rewrite to ...
20115 (ctor_for_folding): ... this one.
20117 2013-06-19 Jakub Jelinek <jakub@redhat.com>
20120 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
20121 PERSONALITY in $PATH derived prefixes.
20123 2013-06-19 Jeff Law <law@redhat.com>
20125 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
20128 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
20129 (simplify_bitwise_binary): Use it to simpify certain binary ops on
20132 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
20134 * config/arm/vfp.md: Move VFP instruction classification documentation
20136 * config/arm/arm.md: ... here. Update instruction classification
20139 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
20141 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
20142 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
20143 pattern. Use more efficient sequences on ARMv5 and Thumb2.
20145 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
20148 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
20149 with NEXT_INSN. Use tablejump_p to check for jump table data
20152 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
20155 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
20156 that now in C++ the value is correct per the C++ standards.
20158 2013-06-19 Richard Biener <rguenther@suse.de>
20160 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
20161 for global context.
20163 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20166 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20169 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
20170 with next_active_insn.
20172 2013-06-18 Sriraman Tallam <tmsriram@google.com>
20174 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
20175 functions are inlined during failures to flag an error.
20176 * tree-inline.c (expand_call_inline): Allow the error to be flagged
20177 in early inline pass.
20179 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
20181 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
20184 2013-06-18 Julian Brown <julian@codesourcery.com>
20186 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
20187 Permit virtual register pre-reload if !strict.
20188 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
20190 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
20192 * config/arm/neon.md (movmisalign<mode>): Use
20193 neon_perm_struct_or_reg_operand instead of
20194 neon_struct_or_register_operand.
20195 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
20196 neon_permissive_struct_operand instead of neon_struct_operand.
20197 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
20198 neon_vector_mem_operand.
20199 * config/arm/predicates.md (neon_struct_operand): Adjust call to
20200 neon_vector_mem_operand.
20201 (neon_permissive_struct_operand): New.
20202 (neon_struct_or_register_operand): Rename to...
20203 (neon_perm_struct_or_reg_operand): This. Adjust call to
20204 neon_vector_mem_operand.
20206 2013-06-18 Richard Biener <rguenther@suse.de>
20208 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
20209 * lto-streamer.h: Include pointer-set.h.
20210 (struct lto_decl_slot): Remove.
20211 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
20212 Remove next_index entry.
20213 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
20214 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
20215 (lto_init_tree_ref_encoder): Adjust.
20216 (lto_destroy_tree_ref_encoder): Likewise.
20217 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
20218 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
20219 (lto_output_decl_index): Adjust.
20220 (lto_new_out_decl_state): Likewise.
20221 (lto_record_function_out_decl_state): Likewise.
20222 * lto-streamer-out.c (copy_function): Likewise.
20224 2013-06-18 Richard Biener <rguenther@suse.de>
20226 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
20227 * cgraphunit.c: Include cfgloop.h.
20228 (init_lowered_empty_function): Initialize the loop tree.
20229 (assemble_thunk): Insert new BBs into loops.
20231 2013-06-18 Richard Biener <rguenther@suse.de>
20233 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
20234 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
20235 the map from cache entry to cache index optional.
20236 (streamer_tree_cache_replace_tree): Adjust accordingly.
20237 (streamer_tree_cache_append): Likewise.
20238 (streamer_tree_cache_delete): Likewise.
20239 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
20240 streamer cache map from cache entry to cache index.
20241 * lto-streamer-out.c (create_output_block): Adjust.
20243 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
20245 * config/arm/arm.md (attribute "insn"): Move multiplication and
20246 division attributes to...
20247 (attribute "type"): ... here. Remove mult.
20248 (attribute "mul32"): New attribute.
20249 (attribute "mul64"): Add umaal.
20250 (*arm_mulsi3): Update attributes.
20251 (*arm_mulsi3_v6): Likewise.
20252 (*thumb_mulsi3): Likewise.
20253 (*thumb_mulsi3_v6): Likewise.
20254 (*mulsi3_compare0): Likewise.
20255 (*mulsi3_compare0_v6): Likewise.
20256 (*mulsi_compare0_scratch): Likewise.
20257 (*mulsi_compare0_scratch_v6): Likewise.
20258 (*mulsi3addsi): Likewise.
20259 (*mulsi3addsi_v6): Likewise.
20260 (*mulsi3addsi_compare0): Likewise.
20261 (*mulsi3addsi_compare0_v6): Likewise.
20262 (*mulsi3addsi_compare0_scratch): Likewise.
20263 (*mulsi3addsi_compare0_scratch_v6): Likewise.
20264 (*mulsi3subsi): Likewise.
20265 (*mulsidi3adddi): Likewise.
20266 (*mulsi3addsi_v6): Likewise.
20267 (*mulsidi3adddi_v6): Likewise.
20268 (*mulsidi3_nov6): Likewise.
20269 (*mulsidi3_v6): Likewise.
20270 (*umulsidi3_nov6): Likewise.
20271 (*umulsidi3_v6): Likewise.
20272 (*umulsidi3adddi): Likewise.
20273 (*umulsidi3adddi_v6): Likewise.
20274 (*smulsi3_highpart_nov6): Likewise.
20275 (*smulsi3_highpart_v6): Likewise.
20276 (*umulsi3_highpart_nov6): Likewise.
20277 (*umulsi3_highpart_v6): Likewise.
20278 (mulhisi3): Likewise.
20279 (*mulhisi3tb): Likewise.
20280 (*mulhisi3bt): Likewise.
20281 (*mulhisi3tt): Likewise.
20282 (maddhisi4): Likewise.
20283 (*maddhisi4tb): Likewise.
20284 (*maddhisi4tt): Likewise.
20285 (maddhidi4): Likewise.
20286 (*maddhidi4tb): Likewise.
20287 (*maddhidi4tt): Likewise.
20288 (divsi3): Likewise.
20289 (udivsi3): Likewise.
20290 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
20291 (thumb2_mulsi_short_compare0): Likewise.
20292 (thumb2_mulsi_short_compare0_scratch): Likewise.
20293 * config/arm/arm1020e.md (1020mult1): Update attribute change.
20294 (1020mult2): Likewise.
20295 (1020mult3): Likewise.
20296 (1020mult4): Likewise.
20297 (1020mult5): Likewise.
20298 (1020mult6): Likewise.
20299 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
20301 (cortex_a15_mult64): Likewise.
20302 (cortex_a15_sdiv): Likewise.
20303 (cortex_a15_udiv): Likewise.
20304 * config/arm/arm1026ejs.md (mult1): Update attribute change.
20310 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
20311 (pj4_ir_div): Likewise.
20312 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
20313 (11_mult2): Likewise.
20314 (11_mult3): Likewise.
20315 (11_mult4): Likewise.
20316 (11_mult5): Likewise.
20317 (11_mult6): Likewise.
20318 (11_mult7): Likewise.
20319 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
20320 (cortex_a8_mla): Likewise.
20321 (cortex_a8_mull): Likewise.
20322 (cortex_a8_smulwy): Likewise.
20323 (cortex_a8_smlald): Likewise.
20324 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
20325 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
20326 (cortex_r4_mul_3): Likewise.
20327 (cortex_r4_mla_4): Likewise.
20328 (cortex_r4_mla_3): Likewise.
20329 (cortex_r4_smlald): Likewise.
20330 (cortex_r4_mull): Likewise.
20331 (cortex_r4_sdiv): Likewise.
20332 (cortex_r4_udiv): Likewise.
20333 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
20334 (cortex_a7_idiv): Likewise.
20335 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
20336 (9_mult2): Likewise.
20337 (9_mult3): Likewise.
20338 (9_mult4): Likewise.
20339 (9_mult5): Likewise.
20340 (9_mult6): Likewise.
20341 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
20342 (cortex_a53_sdiv): Likewise.
20343 (cortex_a53_udiv): Likewise.
20344 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
20345 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
20346 (mp626_mult2): Likewise.
20347 (mp626_mult3): Likewise.
20348 (mp626_mult4): Likewise.
20349 * config/arm/fa526.md (526_mult1): Update attribute change.
20350 (526_mult2): Likewise.
20351 * config/arm/arm-generic.md (mult): Update attribute change.
20352 (mult_ldsched_strongarm): Likewise.
20353 (mult_ldsched): Likewise.
20354 (multi_cycle): Likewise.
20355 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
20356 * config/arm/fa606te.md (606te_mult1): Update attribute change.
20357 (606te_mult2): Likewise.
20358 (606te_mult3): Likewise.
20359 (606te_mult4): Likewise.
20360 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
20361 (cortex_a9_mac16): Likewise.
20362 (cortex_a9_multiply): Likewise.
20363 (cortex_a9_mac): Likewise.
20364 (cortex_a9_multiply_long): Likewise.
20365 * config/arm/fa626te.md (626te_mult1): Update attribute change.
20366 (626te_mult2): Likewise.
20367 (626te_mult3): Likewise.
20368 (626te_mult4): Likewise.
20370 2013-06-18 Richard Biener <rguenther@suse.de>
20373 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
20375 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20378 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
20379 with next_active_insn.
20381 2013-06-18 Alan Modra <amodra@gmail.com>
20383 * config/rs6000/rs6000.h (enum data_align): New.
20384 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
20385 (DATA_ABI_ALIGNMENT): Define.
20386 (CONSTANT_ALIGNMENT): Correct comment.
20387 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
20388 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
20390 2013-06-17 David Malcolm <dmalcolm@redhat.com>
20392 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
20393 ATTRIBUTE_UNUSED marking.
20395 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
20397 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
20398 alternative and update.
20399 (aarch64_dup_lanedi): Delete.
20400 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
20401 * config/aarch64/aarch64-simd-builtins.def: Update.
20403 2013-06-17 Richard Biener <rguenther@suse.de>
20405 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
20406 (lto_input_scc): Declare.
20407 (lto_input_tree_1): Likewise.
20408 (struct lto_stats_d): Add num_tree_bodies_output and
20409 num_pickle_refs_output.
20410 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
20411 (lto_read_tree_1): Split out from ...
20412 (lto_read_tree): ... this.
20413 (lto_input_scc): New function.
20414 (lto_input_tree_1): Split out from ...
20415 (lto_input_tree): ... this. Handle LTO_tree_scc.
20416 (lto_data_in_create): Create the streamer cache without hashes.
20417 * lto-streamer-out.c (create_output_block): Create the streamer
20418 cache with hashes when not doing WPA.
20419 (lto_write_tree_1): Split out from ...
20420 (lto_write_tree): ... this.
20421 (get_symbol_initial_value): New function.
20422 (lto_output_tree_1): Split out from ...
20423 (lto_output_tree): ... this. Write trees as series of SCCs
20424 using a DFS walk via DFS_write_tree.
20425 (struct sccs, struct scc_entry): New types.
20426 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
20427 (DFS_write_tree_body): New function.
20428 (DFS_write_tree): Likewise.
20429 (hash_tree): Likewise.
20430 (scc_entry_compare): Likewise.
20431 (hash_scc): Likewise.
20432 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
20433 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
20434 TREE_CHAIN as regular reference.
20435 (streamer_read_integer_cst): Remove.
20436 (streamer_get_pickled_tree): Adjust.
20437 * tree-streamer-out.c (streamer_write_chain): Disable streaming
20438 of DECL_EXTERNALs in BLOCK_VARS for now.
20439 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
20441 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
20442 Add hash value argument and record that if hashes are recorded
20444 (streamer_tree_cache_insert_1): Adjust.
20445 (streamer_tree_cache_insert): Likewise.
20446 (streamer_tree_cache_insert_at): Rename to ...
20447 (streamer_tree_cache_replace_tree): ... this and adjust.
20448 (streamer_tree_cache_append): Adjust.
20449 (record_common_node): Likewise.
20450 (streamer_tree_cache_create): Add argument whether to
20451 record hash values together with trees.
20452 (streamer_tree_cache_delete): Adjust.
20453 * tree-streamer.h (struct streamer_tree_cache_d): Add
20455 (streamer_read_integer_cst): Remove.
20456 (streamer_tree_cache_insert): Adjust.
20457 (streamer_tree_cache_append): Likewise.
20458 (streamer_tree_cache_insert_at): Rename to ...
20459 (streamer_tree_cache_replace_tree): ... this and adjust.
20460 (streamer_tree_cache_create): Add argument whether to record hashes.
20461 (streamer_tree_cache_get): Rename to ...
20462 (streamer_tree_cache_get_tree): ... this.
20463 (streamer_tree_cache_get_hash): New function.
20464 * tree.c (cache_integer_cst): New function.
20465 * tree.h (cache_integer_cst): Declare.
20466 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
20467 * lto-symtab.c (lto_varpool_replace_node): Only release
20468 DECL_INITIAL of non-prevailing decls.
20469 * varpool.c (varpool_remove_initializer): Do not release
20470 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
20472 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
20474 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
20475 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
20476 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
20477 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
20478 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
20479 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
20480 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
20481 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
20482 instead of TARGET_64BIT.
20483 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
20484 Require ISA_HAS_<D>DIV.
20486 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
20488 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
20489 (mips*-*-linux*): Move default with_llsc setting to where other
20491 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
20493 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
20494 Likewise. Remove default with_tune setting. Move default float
20495 setting to its own block. Handle with_llsc in the same block as above.
20497 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
20499 PR rtl-optimization/57425
20500 PR rtl-optimization/57569
20501 * alias.c (write_dependence_p): Add new parameters mem_mode,
20502 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
20503 Changed all callers.
20504 (canon_anti_dependence): New function.
20505 * cse.c (check_dependence): Use canon_anti_dependence.
20506 * cselib.c (cselib_invalidate_mem): Likewise.
20507 * rtl.h (canon_anti_dependence): Declare.
20509 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
20511 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
20512 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
20513 ".set mips3" for 64-bit targets.
20515 2013-06-15 Dehao Chen <dehao@google.com>
20517 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
20518 * gimple-low.c (gimple_check_call_matching_types): Likewise.
20519 (gimple_check_call_args): Likewise.
20520 * value-prof.c (check_ic_target): Likewise.
20521 * ipa-inline.c (early_inliner): Likewise.
20522 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
20523 * cgraph.c (cgraph_create_edge_1): Likewise.
20524 (cgraph_make_edge_direct): Likewise.
20526 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
20529 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
20530 rs6000_output_move_128bit to handle emitting quad memory
20531 operations. Set attribute length to 8 bytes.
20533 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
20535 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
20537 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
20538 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
20539 (aarch64_<su>mlsl<mode>): Likewise.
20541 2013-06-14 Mike Stump <mikestump@comcast.net>
20543 * Makefile.in (TARGET_H): Add insn-codes.h.
20545 2013-06-14 Alan Modra <amodra@gmail.com>
20547 PR middle-end/57134
20548 PR middle-end/57586
20549 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
20550 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
20551 bitfield expansion when EXPAND_MEMORY.
20552 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
20554 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
20556 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
20557 test for clearing quad memory on 32-bit later.
20559 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
20561 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
20562 (fold_negate_expr): Likewise.
20563 (fold_real_zero_addition_p): Handle vectors.
20564 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
20566 2013-06-14 Alan Modra <amodra@gmail.com>
20568 * varasm.c (force_const_mem): Revert 2013-06-07 change.
20570 2013-06-13 Jan Hubicka <jh@suse.cz>
20572 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
20573 Local comdats are not externally visible.
20574 * symtab.c (dump_symtab_base): Dump externally visible.
20575 (verify_symtab_base): Verify back links in the symtab hash.
20577 2013-06-13 Bin Cheng <bin.cheng@arm.com>
20579 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
20580 CONVERT_EXPR as equal nodes.
20582 2013-06-13 Bin Cheng <bin.cheng@arm.com>
20584 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
20586 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
20588 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
20589 Generalize to complex and vector.
20590 * tree.c (build_all_ones_cst): New function.
20591 * tree.h (build_all_ones_cst): Declare it.
20593 2013-06-13 Alan Modra <amodra@gmail.com>
20595 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
20596 * config/rs6000/rs6000.md (signbittf2): New insn.
20597 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
20598 (abstf2_internal, cmptf_internal2): Likewise.
20599 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
20601 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
20602 Pat Haugen <pthaugen@us.ibm.com>
20603 Peter Bergner <bergner@vnet.ibm.com>
20605 * config/rs6000/rs6000.c (emit_load_locked): Add support for
20606 power8 byte, half-word, and quad-word atomic instructions.
20607 (emit_store_conditional): Likewise.
20608 (rs6000_expand_atomic_compare_and_swap): Likewise.
20609 (rs6000_expand_atomic_op): Likewise.
20611 * config/rs6000/sync.md (larx): Add new modes for power8.
20613 (AINT): New mode iterator to include TImode as well as normal
20614 integer modes on power8.
20615 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
20616 that VSX registers are not considered. Use AINT mode iterator
20617 instead of INT1 to allow inclusion of quad word atomic operations
20619 (load_locked<mode>): Likewise.
20620 (store_conditional<mode>): Likewise.
20621 (atomic_compare_and_swap<mode>): Likewise.
20622 (atomic_exchange<mode>): Likewise.
20623 (atomic_nand<mode>): Likewise.
20624 (atomic_fetch_<fetchop_name><mode>): Likewise.
20625 (atomic_nand_fetch<mode>): Likewise.
20626 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
20628 (ATOMIC): On power8, add QImode, HImode modes.
20629 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
20630 modes that promote to SImode.
20631 (load_lockedti): Convert TImode arguments to PTImode, so that we
20632 get a guaranteed even/odd register pair.
20633 (load_lockedpti): Likewise.
20634 (store_conditionalti): Likewise.
20635 (store_conditionalpti): Likewise.
20637 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
20638 atomic load/store instructions.
20641 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
20643 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
20645 (insn_count): New attribute, with most cases extracted from...
20646 (length): ...here. Redefine most cases in terms of insn_count.
20647 (single_insn): Delete.
20648 (can_delay): Use insn_count to check for single instructions.
20649 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
20650 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
20651 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
20652 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
20653 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
20654 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
20655 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
20656 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
20657 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
20658 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
20659 rather than "length".
20660 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
20661 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
20662 Use "insn_count" rather than "length".
20663 * config/mips/mips-dsp.md
20664 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
20665 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
20668 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
20670 PR tree-optimization/57361
20671 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
20673 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
20675 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
20677 (aarch64_simd_combine<mode>): New instruction expansion.
20678 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
20679 function prototype.
20680 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
20681 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
20683 2013-06-12 Jan Hubicka <jh@suse.cz>
20685 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
20686 decl has when in streaming stage.
20687 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
20688 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
20690 2013-06-12 Roland Stigge <stigge@antcom.de>
20693 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
20695 2013-06-12 Jakub Jelinek <jakub@redhat.com>
20697 PR tree-optimization/57537
20698 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
20699 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
20701 2013-06-12 Richard Biener <rguenther@suse.de>
20703 * data-streamer.h (streamer_write_char_stream): CSE
20704 obs->current_pointer.
20705 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
20706 streamer_write_char_stream manually and optimize the resulting loop.
20707 (streamer_write_hwi_stream): Likewise.
20709 2013-06-12 Jan Hubicka <jh@suse.cz>
20711 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
20712 * cgraph.h (varpool_create_empty_node): Declare.
20713 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
20715 * symtab.c (symtab_unregister_node): Be lax about missin entries
20717 (symtab_get_node): Update comment.
20718 * varpool.c (varpool_create_empty_node): Break out from ...
20719 (varpool_node_for_decl): ... here.
20720 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
20722 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
20724 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
20725 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
20726 part. Use straight-line flow at the end.
20727 <COMPONENT_REF>: Remove superfluous else.
20728 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
20730 2013-06-12 Jakub Jelinek <jakub@redhat.com>
20733 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
20734 target hook even for !TREE_PUBLIC decls. If no resolution info
20735 is available, return false for common and external decls.
20737 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
20739 * config/rl78/constraints.md (U): New constraint.
20740 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
20743 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
20746 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
20747 to allow returning address to AT_PLATFORM name.
20749 2013-06-11 Jan Hubicka <jh@suse.cz>
20751 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
20752 * cgraph.h (symtab_node_base): Add weakref flag.
20753 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
20754 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
20755 (output_weakrefs): Use weakref flag.
20756 * fold-const.c (simple_operand_p): Handle WEAK.
20757 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
20758 * ipa.c (varpool_externally_visible_p): Drop weakref.
20759 (function_and_variable_visibility): Update comment; fix weakref
20760 sanity checks; do not clear DECL_WEAK on them.
20761 * lto-cgraph.c (lto_output_node): update.
20762 (lto_output_varpool_node): Update.
20763 (input_overwrite_node): Update.
20764 (input_node): Update.
20765 (input_varpool_node): Update.
20766 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
20767 (lto_symtab_merge_symbols): Add sanity check.
20768 (lto_symtab_prevailing_decl): Do not special case weakrefs.
20769 * passes.c (rest_of_decl_compilation): Set static flag, too.
20770 * symtab.c (dump_symtab_base): Dump weakref.
20771 (verify_symtab_base): Sanity check weakrefs.
20772 (symtab_make_decl_local): Remove duplicated code.
20773 (symtab_alias_ultimate_target): Simplify.
20774 * varpool.c (varpool_create_variable_alias): Set weakref flag.
20776 2013-06-11 Tom de Vries <tom@codesourcery.com>
20778 * genautomata.c (gen_regexp_sequence): Handle els_num == -1. Handle
20779 sequence_vect == NULL.
20781 2013-06-11 DJ Delorie <dj@redhat.com>
20783 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
20784 (rl78_unwind_word_mode): New.
20786 2013-06-11 David Malcolm <dmalcolm@redhat.com>
20788 * final.c (debug_prefix_maps): Make static.
20790 2013-06-11 David Malcolm <dmalcolm@redhat.com>
20792 * function.c (initial_trampoline): Remove stray copy.
20794 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
20796 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
20798 2013-06-11 Martin Jambor <mjambor@suse.cz>
20800 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
20801 within bounds at the beginning of the function.
20803 2013-06-11 Alan Modra <amodra@gmail.com>
20805 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
20807 (get_named_section): Don't NULL !DECL_P decl.
20809 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
20811 * doc/invoke.texi (core-avx2): Document.
20813 (atom): Updated with MOVBE.
20815 2013-06-11 Richard Biener <rguenther@suse.de>
20817 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
20819 2013-06-11 Anton Blanchard <anton@samba.org>
20821 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
20822 correct shift value in little-endian mode.
20824 2013-06-11 Jakub Jelinek <jakub@redhat.com>
20827 * varasm.c (get_variable_align): Move #endif to the right place.
20829 2013-06-10 Cary Coutant <ccoutant@google.com>
20831 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
20832 for hash so that hash table traversal order is deterministic.
20834 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
20835 Pat Haugen <pthaugen@us.ibm.com>
20836 Peter Bergner <bergner@vnet.ibm.com>
20838 * config/rs6000/vector.md (GPR move splitter): Do not split moves
20839 of vectors in GPRS if they are direct moves or quad word load or
20842 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
20844 (direct_move_p): Likewise.
20845 (quad_load_store_p): Likewise.
20847 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
20848 classes into bins based on the physical register type.
20849 (reg_class_to_reg_type): Likewise.
20850 (IS_STD_REG_TYPE): Likewise.
20851 (IS_FP_VECT_REG_TYPE): Likewise.
20852 (reload_fpr_gpr): Arrays to determine what insn to use if we can
20853 use direct move instructions.
20854 (reload_gpr_vsx): Likewise.
20855 (reload_vsx_gpr): Likewise.
20856 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
20857 information that is a simplification of register classes. Also
20858 precalculate direct move reload helpers.
20859 (direct_move_p): New function to return true if the operation can
20860 be done as a direct move instruciton.
20861 (quad_load_store_p): New function to return true if the operation
20862 is a quad memory operation.
20863 (rs6000_legitimize_address): If quad memory, only allow register
20864 indirect for TImode addresses.
20865 (rs6000_legitimate_address_p): Likewise.
20866 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
20867 (rs6000_reload_register_type): Likewise.
20868 (register_to_reg_type): Return register type.
20869 (rs6000_secondary_reload_simple_move): New helper function for
20870 secondary reload and secondary memory needed to identify anything
20871 that is a simple move, and does not need reloading.
20872 (rs6000_secondary_reload_direct_move): New helper function for
20873 secondary reload to identify cases that can be done with several
20874 instructions via the direct move instructions.
20875 (rs6000_secondary_reload_move): New helper function for secondary
20876 reload to identify moves between register types that can be done.
20877 (rs6000_secondary_reload): Add support for quad memory operations
20878 and for direct move.
20879 (rs6000_secondary_memory_needed): Likewise.
20880 (rs6000_debug_secondary_memory_needed): Change argument names.
20881 (rs6000_output_move_128bit): New function to return the move to
20882 use for 128-bit moves, including knowing about the various
20883 limitations of quad memory operations.
20885 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
20886 memory operations. call rs6000_output_move_128bit for the actual
20887 instruciton(s) to generate.
20888 (vsx_movti_64bit): Likewise.
20890 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
20891 (UNSPEC_P8V_MTVSRWZ): Likewise.
20892 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
20893 (UNSPEC_P8V_MTVSRD): Likewise.
20894 (UNSPEC_P8V_XXPERMDI): Likewise.
20895 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
20896 (UNSPEC_FUSION_GPR): Likewise.
20897 (FMOVE128_GPR): New iterator for direct move.
20898 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
20899 (f32_sv): Likewise.
20900 (f32_dm): Likewise.
20901 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
20902 loads and direct move instructions.
20903 (zero_extendsidi2_lfiwzx): Likewise.
20904 (extendsidi2_lfiwax): Likewise.
20905 (extendsidi2_nocell): Likewise.
20906 (floatsi<mode>2_lfiwax): Likewise.
20907 (lfiwax): Likewise.
20908 (floatunssi<mode>2_lfiwzx): Likewise.
20909 (lfiwzx): Likewise.
20910 (fix_trunc<mode>_stfiwx): Likewise.
20911 (fixuns_trunc<mode>_stfiwx): Likewise.
20912 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
20913 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
20914 (parity<mode>2_cmpb): Set length/type attr.
20915 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
20916 for 'mr.' to fast_compare.
20917 (bpermd_<mode>): Change type attr to popcnt.
20918 (p8_fmrgow_<mode>): New insns for power8 direct move support.
20919 (p8_mtvsrwz_1): Likewise.
20920 (p8_mtvsrwz_2): Likewise.
20921 (reload_fpr_from_gpr<mode>): Likewise.
20922 (p8_mtvsrd_1): Likewise.
20923 (p8_mtvsrd_2): Likewise.
20924 (p8_xxpermdi_<mode>): Likewise.
20925 (reload_vsx_from_gpr<mode>): Likewise.
20926 (reload_vsx_from_gprsf): Likewise.
20927 (p8_mfvsrd_3_<mode>): LIkewise.
20928 (reload_gpr_from_vsx<mode>): Likewise.
20929 (reload_gpr_from_vsxsf): Likewise.
20930 (p8_mfvsrd_4_disf): Likewise.
20931 (multi-word GPR splits): Do not split direct moves or quad memory
20934 2013-06-10 David Malcolm <dmalcolm@redhat.com>
20936 * tree-into-ssa.c (interesting_blocks): Make static.
20938 2013-06-10 Jakub Jelinek <jakub@redhat.com>
20941 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
20942 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
20943 Use DATA_ABI_ALIGNMENT for that case instead if defined.
20944 (get_variable_align): New function.
20945 (get_variable_section, emit_bss, emit_common,
20946 assemble_variable_contents, place_block_symbol): Use
20947 get_variable_align instead of DECL_ALIGN.
20948 (assemble_noswitch_variable): Add align argument, use it
20949 instead of DECL_ALIGN.
20950 (assemble_variable): Adjust caller. Use get_variable_align
20951 instead of DECL_ALIGN.
20952 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
20954 (DATA_ABI_ALIGNMENT): Define.
20955 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
20956 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
20957 opt is false, only return the psABI mandated alignment increase.
20958 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
20959 (DATA_ABI_ALIGNMENT): ... this.
20960 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
20961 (DATA_ABI_ALIGNMENT): ... this.
20962 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
20963 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
20964 (DATA_ABI_ALIGNMENT): ... this.
20965 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
20966 * doc/tm.texi: Regenerated.
20968 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
20970 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
20971 cmp_code to construct REG_EQUAL note.
20973 2013-06-09 Jakub Jelinek <jakub@redhat.com>
20976 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
20977 that operands[2] doesn't overlap with operands[0].
20979 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
20980 Jan Hubicka <jh@suse.cz>
20982 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
20983 hack to mark symbols as used.
20985 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
20987 PR rtl-optimization/57559
20988 * lra-constraints.c (process_alt_operands): Don't discourage
20989 memory with known offset for offsetable memory constraint.
20990 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
20992 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
20994 * varasm.c (struct oc_local_state): Reorder fields.
20995 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
20996 and adjust accordingly.
20997 (output_constructor): Reorder initialization code and adjust call to
20998 output_constructor_bitfield.
21000 2013-06-07 Jan Hubicka <jh@suse.cz>
21002 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
21004 2013-06-07 David Malcolm <dmalcolm@redhat.com>
21006 * tree-object-size.c (unknown): Make const.
21008 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21010 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
21011 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
21012 for last alternative in the cpu_facility attribute.
21014 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21017 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
21018 (xordi3): Change operand 2 constraint to arm_xordi_operand.
21019 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
21020 * config/arm/constraints.md (Dg): New constraint.
21021 * config/arm/neon.md (xordi3_neon): Remove.
21022 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
21023 * config/arm/predicates.md (arm_xordi_operand): New predicate.
21025 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21027 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
21028 Clean up alternatives.
21030 2013-06-07 Alan Modra <amodra@gmail.com>
21032 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
21035 2013-06-07 Alan Modra <amodra@gmail.com>
21037 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
21039 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21041 * config/arm/constraints.md (Df): New constraint.
21042 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
21043 Correct length attribute for last two alternatives.
21045 2013-06-07 Alan Modra <amodra@gmail.com>
21047 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
21048 override user -mfp-in-toc.
21049 (offsettable_ok_by_alignment): Consider just the current access
21050 rather than the whole object, unless BLKmode. Handle
21051 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
21052 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
21053 for -mcmodel=medium.
21054 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
21055 override user -mfp-in-toc or -msum-in-toc. Default to
21056 -mno-fp-in-toc for -mcmodel=medium.
21058 2013-06-06 DJ Delorie <dj@redhat.com>
21060 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
21061 TARGET_VALID_POINTER_MODE.
21063 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
21064 Pat Haugen <pthaugen@us.ibm.com>
21065 Peter Bergner <bergner@vnet.ibm.com>
21067 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21068 Document new power8 builtins.
21070 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
21071 condition code register, to allow 128-bit logical operations to be
21072 done in the VSX or GPR registers.
21073 (nor<mode>3): Use the canonical form for nor.
21074 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
21075 vclz*, and vpopcnt* vector instructions.
21076 (nand<mode>3): Likewise.
21077 (orc<mode>3): Likewise.
21078 (clz<mode>2): LIkewise.
21079 (popcount<mode>2): Likewise.
21081 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
21082 that only the GPRs are recognized.
21084 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21085 support for new power8 builtins.
21087 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
21089 (xscvdpspn): Likewise.
21095 (vpopcnt): Likewise.
21096 (vpopcntb): Likewise.
21097 (vpopcnth): Likewise.
21098 (vpopcntw): Likewise.
21099 (vpopcntd): Likewise.
21101 (vmrgew): Likewise.
21102 (vmrgow): Likewise.
21104 (eqv_v16qi3): Likewise.
21105 (eqv_v8hi3): Likewise.
21106 (eqv_v4si3): Likewise.
21107 (eqv_v2di3): Likewise.
21108 (eqv_v4sf3): Likewise.
21109 (eqv_v2df3): Likewise.
21111 (nand_v16qi3): Likewise.
21112 (nand_v8hi3): Likewise.
21113 (nand_v4si3): Likewise.
21114 (nand_v2di3): Likewise.
21115 (nand_v4sf3): Likewise.
21116 (nand_v2df3): Likewise.
21118 (orc_v16qi3): Likewise.
21119 (orc_v8hi3): Likewise.
21120 (orc_v4si3): Likewise.
21121 (orc_v2di3): Likewise.
21122 (orc_v4sf3): Likewise.
21123 (orc_v2df3): Likewise.
21125 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
21126 allow power8 quad mode in 64-bit.
21127 (rs6000_builtin_vectorized_function): Add support to vectorize
21128 ISA 2.07 count leading zeros, population count builtins.
21129 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
21130 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
21131 (builtin_function_type): Add vgbbd builtin function which takes an
21133 (altivec_expand_vec_perm_const): Add support for new power8 merge
21136 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
21137 that does not include TImdoe for use with 32-bit.
21138 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
21140 (UNSPEC_VSX_CVDPSPN): Likewise.
21141 (vsx_xscvdpspn): Likewise.
21142 (vsx_xscvspdpn): Likewise.
21143 (vsx_xscvdpspn_scalar): Likewise.
21144 (vsx_xscvspdpn_directmove): Likewise.
21145 (vsx_and<mode>3): Split logical operations into 32-bit and
21146 64-bit. Add support to do logical operations on TImode as well as
21147 VSX vector types. Allow logical operations to be done in either
21148 VSX registers or in general purpose registers in 64-bit mode. Add
21149 splitters if GPRs were used. For AND, add clobber of CCmode to
21150 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
21152 (vsx_and<mode>3_32bit): Likewise.
21153 (vsx_and<mode>3_64bit): Likewise.
21154 (vsx_ior<mode>3): Likewise.
21155 (vsx_ior<mode>3_32bit): Likewise.
21156 (vsx_ior<mode>3_64bit): Likewise.
21157 (vsx_xor<mode>3): Likewise.
21158 (vsx_xor<mode>3_32bit): Likewise.
21159 (vsx_xor<mode>3_64bit): Likewise.
21160 (vsx_one_cmpl<mode>2): Likewise.
21161 (vsx_one_cmpl<mode>2_32bit): Likewise.
21162 (vsx_one_cmpl<mode>2_64bit): Likewise.
21163 (vsx_nor<mode>3): Likewise.
21164 (vsx_nor<mode>3_32bit): Likewise.
21165 (vsx_nor<mode>3_64bit): Likewise.
21166 (vsx_andc<mode>3): Likewise.
21167 (vsx_andc<mode>3_32bit): Likewise.
21168 (vsx_andc<mode>3_64bit): Likewise.
21169 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
21170 and xxlorc instructions.
21171 (vsx_eqv<mode>3_64bit): Likewise.
21172 (vsx_nand<mode>3_32bit): Likewise.
21173 (vsx_nand<mode>3_64bit): Likewise.
21174 (vsx_orc<mode>3_32bit): Likewise.
21175 (vsx_orc<mode>3_64bit): Likewise.
21177 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
21179 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
21181 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
21182 (p8_vmrgow): Likewise.
21183 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
21184 GPRs to be split under VSX.
21185 (p8v_clz<mode>2): Add power8 count leading zero support.
21186 (p8v_popcount<mode>2): Add power8 population count support.
21187 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
21190 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
21193 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
21195 (vec_nand): Likewise.
21196 (vec_vclz): Likewise.
21197 (vec_vclzb): Likewise.
21198 (vec_vclzd): Likewise.
21199 (vec_vclzh): Likewise.
21200 (vec_vclzw): Likewise.
21201 (vec_vgbbd): Likewise.
21202 (vec_vmrgew): Likewise.
21203 (vec_vmrgow): Likewise.
21204 (vec_vpopcnt): Likewise.
21205 (vec_vpopcntb): Likewise.
21206 (vec_vpopcntd): Likewise.
21207 (vec_vpopcnth): Likewise.
21208 (vec_vpopcntw): Likewise.
21210 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
21212 PR rtl-optimization/57468
21213 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
21216 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
21218 PR rtl-optimization/57459
21219 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
21220 type when setting live regs.
21222 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
21224 * config/s390/s390.opt (mlra): New option.
21225 * config/s390/s390.c (s390_decompose_address): Check displacement
21226 for all registers for LRA.
21227 (s390_secondary_reload): Don't used secondary reloads for LRA.
21228 (s390_lra_p): New function.
21229 (TARGET_LRA_P): Define.
21230 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
21231 of attribute cpu_facility to zarch for the last alternative.
21232 (*cmpmem_short): Ditto.
21234 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
21236 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
21237 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
21238 (arm_expand_prologue): Likewise.
21240 2013-06-06 Teresa Johnson <tejohnson@google.com>
21243 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
21244 as this is now done by redirect_edge_and_branch_force.
21245 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
21246 barriers, and fix interaction with splitting.
21247 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
21248 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
21249 reflect changes made in the routine.
21250 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
21251 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
21252 since this is called in cfglayout mode, and replace partition fixup
21253 with assert as that is now done by force_nonfallthru_and_redirect.
21254 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
21255 already be marked with region crossing note.
21256 (insert_section_boundary_note): Make non-static, gate on flag
21257 has_bb_partition, rewrite to also check for multiple partitions.
21258 (rest_of_handle_reorder_blocks): Remove call to
21259 insert_section_boundary_note, now done later during free_cfg.
21260 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
21261 * bb-reorder.h (insert_section_boundary_note): Declare.
21262 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
21263 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
21264 invoke insert_section_boundary_note.
21265 (try_redirect_by_replacing_jump): Remove unnecessary
21266 check for region crossing note.
21267 (fixup_partition_crossing): New function.
21268 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
21269 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
21270 in non-cfglayout mode.
21271 (force_nonfallthru_and_redirect): Fixup partition boundaries,
21272 remove old code that tried to do this. Emit barrier correctly
21273 when we are in cfglayout mode.
21274 (last_bb_in_partition): New function.
21275 (rtl_split_edge): Correctly fixup partition boundaries.
21276 (commit_one_edge_insertion): Remove old code that tried to
21277 fixup region crossing edge since this is now handled in
21278 split_block, and set up insertion point correctly since
21279 block may now end in a jump.
21280 (verify_hot_cold_block_grouping): Guard against checking when not in
21281 linearized RTL mode.
21282 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
21284 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
21285 rtl_verify_flow_info, so not called in cfglayout mode.
21286 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
21287 (fixup_reorder_chain): Remove old code that attempted to fixup region
21288 crossing note as this is now handled in force_nonfallthru_and_redirect.
21289 (duplicate_insn_chain): Don't duplicate switch section notes.
21290 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
21292 * basic-block.h (emit_barrier_after_bb): Declare.
21294 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21296 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
21297 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
21298 arm_usatsihi): Adjust alternatives for arm_restrict_it.
21300 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21302 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
21304 * config/arm/ldmstm.md: Regenerate.
21306 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21308 * config/arm/sync.md (atomic_loaddi_1):
21309 Disable predication for arm_restrict_it.
21310 (arm_load_exclusive<mode>): Likewise.
21311 (arm_load_exclusivesi): Likewise.
21312 (arm_load_exclusivedi): Likewise.
21313 (arm_load_acquire_exclusive<mode>): Likewise.
21314 (arm_load_acquire_exclusivesi): Likewise.
21315 (arm_load_acquire_exclusivedi): Likewise.
21316 (arm_store_exclusive<mode>): Likewise.
21317 (arm_store_exclusive<mode>): Likewise.
21318 (arm_store_release_exclusivedi): Likewise.
21319 (arm_store_release_exclusive<mode>): Likewise.
21321 2013-06-06 Richard Biener <rguenther@suse.de>
21323 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
21325 (lto_tag_is_tree_code_p): Adjust.
21326 (lto_tag_is_gimple_code_p): Likewise.
21327 (lto_gimple_code_to_tag): Likewise.
21328 (lto_tag_to_gimple_code): Likewise.
21329 (lto_tree_code_to_tag): Likewise.
21330 (lto_tag_to_tree_code): Likewise.
21331 * data-streamer.h (streamer_write_hwi_in_range): Use
21332 uhwi streaming to stream the normalized range.
21333 (streamer_read_hwi_in_range): Likewise.
21335 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21337 * config/arm/arm.md (enabled_for_depr_it): New attribute.
21338 (predicable_short_it): Likewise.
21339 (predicated): Likewise.
21340 (enabled): Handle above.
21341 (define_cond_exec): Set predicated attribute to yes.
21343 2013-06-05 Mike Stump <mikestump@comcast.net>
21345 * gdbinit.in (__FUNCTION__): Add.
21347 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
21349 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
21350 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
21352 2013-06-05 Jan Hubicka <jh@suse.cz>
21354 * varasm.c (mark_decl_referenced): Revert the removal until targets
21357 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
21359 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
21360 instead of mark_decl_referenced.
21362 2013-06-05 Jan Hubicka <jh@suse.cz>
21364 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
21365 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
21366 and symtab_used_from_object_file_p.
21367 (cgraph_make_node_local_1): Clear forced_by_abi.
21368 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
21369 * cgraph.h (symtab_node_base): Add forced_by_abi.
21370 (decide_is_variable_needed): Remove.
21371 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
21372 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
21373 (decide_is_symbol_needed): ... this one; handle symbols in general;
21374 always analyze virtuals; honnor forced_by_abi.
21375 (cgraph_finalize_function): Update.
21376 (varpool_finalize_decl): Update.
21377 (symbol_defined_and_needed): Remove.
21378 (analyze_functions): Update.
21379 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
21380 output_refs, input_overwrite_node): Handle forced_by_abi.
21381 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
21382 (address_taken_from_non_vtable_p): ... this one.
21383 (comdat_can_be_unshared_p_1): New function.
21384 (cgraph_comdat_can_be_unshared_p): Rename to ...
21385 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
21386 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
21387 (function_and_variable_visibility): Clear forced_by_abi as needed.
21388 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
21389 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
21390 * symtab.c (dump_symtab_base): Dump forced_by_abi.
21391 * varpool.c (decide_is_variable_needed): Remove.
21393 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21395 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
21396 (arm_option_override): Override arm_restrict_it where appropriate.
21397 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
21398 * config/arm/arm.opt (mrestrict-it): New command-line option.
21399 * doc/invoke.texi: Document -mrestrict-it.
21401 2013-06-05 David Malcolm <dmalcolm@redhat.com>
21403 * tsan.c (tsan_atomic_table): Make const.
21405 2013-06-05 Richard Biener <rguenther@suse.de>
21407 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
21408 index associated with the tree we are supposed to replace.
21409 * tree-streamer-out.c (pack_ts_base_value_fields): Output
21410 TREE_ASM_WRITTEN as zero for everything but SSA names.
21412 2013-06-05 David Malcolm <dmalcolm@redhat.com>
21414 * tree-ssa-structalias.c (call_stmt_vars): Make static.
21416 2013-06-04 Jan Hubicka <jh@suse.cz>
21418 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
21419 (input_node, input_varpool_node): Handle correctly external same
21421 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
21422 nodes at ltrans stage.
21424 2013-06-04 Jan Hubicka <jh@suse.cz>
21426 * ipa-inline.c (update_caller_keys): Fix availability test.
21427 (update_callee_keys): Likewise.
21428 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
21429 to follow ELF standard.
21431 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
21433 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
21434 (mips64r5900el-*-elf*): New configurations.
21435 * config/mips/mips-cpus.def (r5900): New processor.
21436 * config/mips/mips-tables.opt: Regenerate.
21437 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
21438 (mips_issue_rate): Handle PROCESSOR_R5900.
21439 (mips_reorg_process_insns): Force reorder mode for the R5900.
21440 * config/mips/mips.h (TARGET_MIPS5900): Define.
21441 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
21443 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
21445 * config/mips/mips.md (processor): Add r5900.
21446 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
21448 2013-06-04 Ian Bolton <ian.bolton@arm.com>
21450 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
21451 into function to generate MOVI instruction.
21452 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
21453 (aarch64_preferred_simd_mode): Turn into wrapper.
21454 (aarch64_output_scalar_simd_mov_immediate): New function.
21455 * config/aarch64/aarch64-protos.h: Add prototype for above.
21457 2013-06-04 Ian Bolton <ian.bolton@arm.com>
21459 * config/aarch64/aarch64.c (simd_immediate_info): Remove
21460 element_char member.
21461 (sizetochar): Return signed char.
21462 (aarch64_simd_valid_immediate): Remove elchar and other
21463 unnecessary variables.
21464 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
21465 Calculate element_char as required.
21466 * config/aarch64/aarch64-protos.h: Update and move prototype
21467 for aarch64_output_simd_mov_immediate.
21468 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
21471 2013-06-04 Ian Bolton <ian.bolton@arm.com>
21473 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
21474 information completed by aarch64_simd_valid_immediate.
21475 (aarch64_legitimate_constant_p): Update arguments.
21476 (aarch64_simd_valid_immediate): Work with struct rather than many
21478 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
21479 (aarch64_simd_make_constant): Update arguments.
21480 (aarch64_output_simd_mov_immediate): Work with struct rather than
21481 many pointers. Output immediate directly rather than as operand.
21482 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
21484 * config/aarch64/constraints.md (Dn): Update arguments.
21486 2013-06-04 Ian Bolton <ian.bolton@arm.com>
21488 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
21490 (aarch64_simd_immediate_valid_for_move): Remove.
21491 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
21492 (aarch64_simd_make_constant): Update call.
21493 (aarch64_output_simd_mov_immediate): Update call.
21494 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
21496 * config/aarch64/constraints.md (Dn): Update call.
21498 2013-06-04 Ian Bolton <ian.bolton@arm.com>
21500 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
21501 return type to bool for prototype.
21502 (aarch64_legitimate_constant_p): Check for true instead of not -1.
21503 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
21504 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
21506 2013-06-04 Catherine Moore <clm@codesourcery.com>
21508 * config/mips/mips.opt (meva): New.
21509 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
21510 (ASM_SPEC): Handle -meva.
21511 * doc/invoke.texi (meva): Document.
21513 2013-06-04 Alan Modra <amodra@gmail.com>
21515 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
21518 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21520 * rtl.def: Add extra fourth optional field to define_cond_exec.
21521 * gensupport.c (process_one_cond_exec): Process attributes from
21523 * doc/md.texi: Document fourth field in define_cond_exec.
21525 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
21527 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
21528 out the processing order as in store_bit_field_1.
21530 2013-06-04 Jan Hubicka <jh@suse.cz>
21532 PR middle-end/57500
21533 * cgraphunit.c (cgraph_process_same_body_aliases): Create
21534 non-VAR_DECL node if it does not exist yet.
21536 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
21538 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
21539 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
21540 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
21541 target_cpu_default setting.
21543 2013-06-03 Teresa Johnson <tejohnson@google.com>
21545 * dumpfile.c (opt_info_switch_p): Change -fopt-info
21546 default to -fopt-info=optimized instead of all.
21547 * doc/invoke.texi: Ditto.
21548 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
21549 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
21550 (execute_vect_slp): Emit BB vectorization success under
21551 MSG_OPTIMIZED_LOCATIONS.
21552 * tree-vect-slp.c (vect_slp_transform_bb): Change
21553 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
21554 * tree-vect-loop.c (vect_transform_loop): Ditto.
21556 2013-06-03 Jason Merrill <jason@redhat.com>
21559 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21560 Use TARGET_EXPR for C++.
21562 2013-06-03 Jakub Jelinek <jakub@redhat.com>
21564 PR rtl-optimization/57268
21565 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
21566 if DEBUG_INSN_P (insn).
21569 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
21571 PR rtl-optimization/57268
21572 * sched-deps.c (sched_analyze_2): Flush dependence lists if
21573 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
21575 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
21577 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
21578 (ix86_avoid_lea_for_addr): Likewise.
21579 (exact_dependency_1): Likewise.
21580 (ix86_adjust_cost): Likewise.
21581 (swap_top_of_ready_list): Fix formatting and !reload_completed check
21583 (do_reorder_for_imul): Fix typo, formatting and
21584 !reload_completed check removed.
21585 (ix86_sched_reorder): Fix typo and formatting.
21586 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
21589 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
21591 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
21593 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
21595 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
21596 <STRING_CST>: Likewise.
21597 <VECTOR_CST>: Likewise.
21599 2013-06-01 Janus Weil <janus@gcc.gnu.org>
21600 Mikael Morin <mikael@gcc.gnu.org>
21602 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
21603 * config.in: Regenerated.
21604 * configure: Regenerated.
21606 2013-06-01 Jan Hubicka <jh@suse.cz>
21608 PR middle-end/57366
21609 * cgraphunit.c (compile): When weakref is not supported,
21610 set up transparent aliases before final output pass.
21611 * varasm.c (assemble_alias): Do not try to do it here.
21613 2013-06-01 Jan Hubicka <jh@suse.cz>
21615 PR middle-end/57467
21616 * passes.c (for_per_function): Skip unanalyzed functions.
21618 2013-06-01 Jan Hubicka <jh@suse.cz>
21620 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
21621 (lto_symtab_merge_symbols_1): ... this one.
21622 (lto_symtab_merge_cgraph_nodes): Rename to ...
21623 (lto_symtab_merge_symbols): ... this one; simplify.
21624 * cgraph.c (same_body_aliases_done): Rename to ...
21625 (cpp_implicit_aliases_done): ... this one.
21626 (cgraph_create_function_alias): Update.
21627 (cgraph_same_body_alias): Update.
21628 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
21629 (verify_edge_corresponds_to_fndecl): Simplify.
21630 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
21631 (cgraph_node): Remove same_body_alias.
21632 (varpool_node): Remove alias_of and extra_name_alias.
21633 (same_body_aliases_done): Rename to ..
21634 (cpp_implicit_aliases_done): ... this one.
21635 (symtab_alias_ultimate_target): Add default parameter.
21636 (symtab_resolve_alias): New function.
21637 (fixup_same_cpp_alias_visibility): Declare.
21638 (cgraph_function_node): Add default parameter.
21639 (cgraph_node_asm_name): Likewise.
21640 (cgraph_function_or_thunk_node): Add default parameter; do
21641 not ICE when it is NULL.
21642 (varpool_variable_node): Likewise.
21643 * tree-emutls.c (create_emultls_var): Update.
21644 (ipa_lower_emutls): Update.
21645 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
21646 (cgraph_reset_node): Reset alias info.
21647 (cgraph_finalize_function): Update.
21648 (fixup_same_cpp_alias_visibility): Move to symtab.c.
21649 (analyze_function): Simplify.
21650 (cgraph_process_same_body_aliases): Simplify.
21651 (analyze_functions): Fixup same body aliases.
21652 (handle_alias_pairs): Simplify.
21653 (assemble_thunk): Update.
21654 (assemble_thunks_and_aliases): Update.
21655 (output_weakrefs): Rewrite.
21656 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
21657 (lto_output_varpool_node): Likewise.
21658 (compute_ltrans_boundary): Remve assert.
21659 (get_alias_symbol): New functoin.
21660 (input_node): Rewrite alias handling.
21661 (input_varpool_node): Likewise.
21662 * ipa-pure-const.c (propagate_pure_const): Fix formating.
21663 * ipa.c (process_references): Handle weakrefs correctly.
21664 (symtab_remove_unreachable_nodes): Likewise.
21665 * trans-mem.c (get_cg_data): Update.
21666 (ipa_tm_create_version_alias): Update.
21667 (ipa_tm_execute): Update.
21668 * symtab.c (dump_symtab_base): Dump aliases.
21669 (verify_symtab_base): Verify aliases.
21670 (symtab_node_availability): New function.
21671 (symtab_alias_ultimate_target): Simplify.
21672 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
21673 handle all the fixup cases.
21674 (symtab_resolve_alias): New function.
21675 * passes.c (ipa_write_summaries): Handle weakrefs.
21676 * varpool.c (varpool_analyze_node): Simplify.
21677 (assemble_aliases): Update.
21678 (varpool_create_variable_alias): Simplify.
21679 (varpool_extra_name_alias): Simplify.
21680 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
21681 (lto_symtab_merge_symbols): ... this one.
21683 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
21686 PR rtl-optimization/57268
21687 * sched-deps.c (sched_analyze_2): Flush dependence lists if
21688 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
21690 2013-06-01 Tobias Burnus <burnus@net-b.de>
21692 Partially reverted:
21693 2013-05-31 Tobias Burnus <burnus@net-b.de>
21695 PR middle-end/57073
21696 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
21699 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
21701 PR rtl-optimization/57268
21702 * sched-deps.c (sched_analyze_2): Flush dependence lists if
21703 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
21705 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
21707 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
21708 unordered comparison operators when -fno-trapping-math is in effect
21710 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
21711 and implement unordered comparison operators properly on the e500.
21713 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
21715 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
21716 for constant scalar integers.
21717 (simplify_relational_operation_1): Likewise.
21719 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
21721 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
21722 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
21725 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
21726 Igor Zamyatin <igor.zamyatin@intel.com>
21728 Silvermont (SLM) architecture performance tuning.
21729 * config/i386/i386.h (enum ix86_tune_indices): Add
21730 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
21731 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
21733 * config/i386/i386.c (initial_ix86_tune_features)
21734 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
21735 (ix86_lea_outperforms): Handle Silvermont tuning.
21736 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
21738 (ix86_use_lea_for_mov): Likewise.
21739 (ix86_avoid_lea_for_addr): Likewise.
21740 (ix86_lea_for_add_ok): Likewise.
21741 (exact_dependency_1): New function.
21742 (exact_store_load_dependency): Likewise.
21743 (ix86_adjust_cost): Handle Silvermont tuning.
21744 (do_reoder_for_imul): Likewise.
21745 (swap_top_of_ready_list): New function.
21746 (ix86_sched_reorder): Changed to handle Silvermont tuning.
21748 * config/i386/i386.md (peepholes that split memory operand in fp
21751 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
21753 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
21754 Remove un-necessary braces.
21756 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
21758 * config/aarch64/aarch64.c (aarch64_classify_symbol):
21759 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
21761 2013-05-31 Tobias Burnus <burnus@net-b.de>
21763 PR middle-end/57073
21764 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
21766 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21769 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
21770 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
21771 * config/arm/neon.md (iordi3_neon): Remove.
21772 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
21773 * config/arm/predicates.md (imm_for_neon_logic_operand):
21774 Move to earlier in the file.
21775 (neon_logic_op2): Likewise.
21776 (arm_iordi_operand_neon): New predicate.
21778 2013-05-31 Richard Biener <rguenther@suse.de>
21780 PR tree-optimization/57478
21781 PR tree-optimization/57453
21782 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
21785 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
21787 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
21788 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
21790 2013-05-30 Tobias Burnus <burnus@net-b.de>
21791 Thomas Koenig <tkoenig@gcc.gnu.org>
21793 PR middle-end/57073
21794 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
21795 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
21797 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
21799 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
21801 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
21803 * target.def (register_usage_leveling_p): New hook.
21804 * targhooks.c (default_register_usage_leveling_p): New.
21805 * targhooks.h (default_register_usage_leveling_p): New prototype.
21806 * lra-assigns.c (register_usage_leveling_p): Use the hook.
21807 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
21808 * doc/tm.texi: Update.
21809 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
21811 2013-05-30 Ian Bolton <ian.bolton@arm.com>
21813 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
21814 (*insv_reg<mode>): New define_insn.
21816 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
21818 PR rtl-optimization/57439
21819 * postreload.c (move2add_valid_value_p): Check that we have
21820 a zero subreg_regno_offset when accessing the register in
21821 the requested mode.
21823 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
21824 Igor Zamyatin <igor.zamyatin@intel.com>
21826 Silvermont (SLM) architecture pipeline model, tuning and
21828 * config.gcc: Add slm config options and target.
21830 * config/i386/slm.md: New.
21832 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
21834 * config/i386/i386-c.c (ix86_target_macros_internal): New case
21836 (ix86_target_macros_internal): Likewise.
21838 * config/i386/i386.c (slm_cost): New cost.
21839 (m_SLM): New macro flag.
21840 (initial_ix86_tune_features): Set m_SLM.
21841 (x86_accumulate_outgoing_args): Likewise.
21842 (x86_arch_always_fancy_math_387): Likewise.
21843 (processor_target_table): Add slm cost.
21844 (cpu_names): Add slm cpu name.
21845 (x86_option_override_internal): Set SLM ISA.
21846 (ix86_issue_rate): New case PROCESSOR_SLM.
21847 (ia32_multipass_dfa_lookahead): Likewise.
21848 (fold_builtin_cpu): Add slm.
21850 * config/i386/i386.h (TARGET_SLM): New target macro.
21851 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
21852 (processor_type): Add PROCESSOR_SLM.
21854 * config/i386/i386.md (cpu): Add new value "slm".
21855 (slm.md): Include slm.md.
21857 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
21858 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21860 * config/arm/arm-protos.h: Add and update function protos.
21861 * config/arm/arm.c (use_simple_return_p): New added.
21862 (thumb2_expand_return): Check simple_return flag.
21863 * config/arm/arm.md: Add simple_return and conditional simple_return.
21864 * config/arm/iterators.md: Add iterator for return and simple_return.
21866 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21868 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
21869 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
21870 (arm_emit_vfp_multi_reg_pop): Likewise.
21871 (thumb2_emit_ldrd_pop): Likewise.
21872 (arm_expand_epilogue): Add misc REG_CFA notes.
21873 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
21875 2013-05-29 Lawrence Crowl <crowl@google.com>
21877 * config/arm/t-arm: Update for below.
21879 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
21880 Change type to hash_table. Update dependent calls and types.
21882 * config/i386/t-cygming: Update for below.
21884 * config/i386/t-interix: Update for below.
21886 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
21887 Change type to hash_table. Update dependent calls and types.
21888 (i386_find_on_wrapper_list::wrappers): Likewise.
21890 * config/ia64/t-ia64: Update for below.
21892 * config/ia64/ia64.c (bundle_state_table):
21893 Change type to hash_table. Update dependent calls and types.
21895 * config/mips/mips.c (mips_reorg_process_insns::htab):
21896 Change type to hash_table. Update dependent calls and types.
21898 * config/sol2.c (solaris_comdat_htab):
21899 Change type to hash_table. Update dependent calls and types.
21901 * config/t-sol2: Update for above.
21903 2013-05-29 Teresa Johnson <tejohnson@google.com>
21905 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
21906 functions are not yet marked as defined.
21908 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
21909 Pat Haugen <pthaugen@us.ibm.com>
21910 Peter Bergner <bergner@vnet.ibm.com>
21912 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
21916 (vrotl<mode>3): Likewise.
21917 (vashl<mode>3): Likewise.
21918 (vlshr<mode>3): Likewise.
21919 (vashr<mode>3): Likewise.
21921 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21922 support for power8 V2DI builtins.
21924 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
21925 power8 V2DI builtins.
21926 (vupkhsw): Likewise.
21927 (vupklsw): Likewise.
21928 (vaddudm): Likewise.
21929 (vminsd): Likewise.
21930 (vmaxsd): Likewise.
21931 (vminud): Likewise.
21932 (vmaxud): Likewise.
21933 (vpkudum): Likewise.
21934 (vpksdss): Likewise.
21935 (vpkudus): Likewise.
21936 (vpksdus): Likewise.
21941 (vsubudm): Likewise.
21942 (vcmpequd): Likewise.
21943 (vcmpgtsd): Likewise.
21944 (vcmpgtud): Likewise.
21945 (vcmpequd_p): Likewise.
21946 (vcmpgtsd_p): Likewise.
21947 (vcmpgtud_p): Likewise.
21948 (vupkhsw): Likewise.
21949 (vupklsw): Likewise.
21950 (vaddudm): Likewise.
21951 (vmaxsd): Likewise.
21952 (vmaxud): Likewise.
21953 (vminsd): Likewise.
21954 (vminud): Likewise.
21955 (vpksdss): Likewise.
21956 (vpksdus): Likewise.
21957 (vpkudum): Likewise.
21958 (vpkudus): Likewise.
21963 (vsubudm): Likewise.
21965 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
21966 support for power8 V2DI instructions.
21968 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
21969 power8 V2DI instructions. Combine pack and unpack insns to use an
21970 iterator for each mode. Check whether a particular mode supports
21971 Altivec instructions instead of just checking TARGET_ALTIVEC.
21972 (UNSPEC_VPKUWUM): Likewise.
21973 (UNSPEC_VPKSHSS): Likewise.
21974 (UNSPEC_VPKSWSS): Likewise.
21975 (UNSPEC_VPKUHUS): Likewise.
21976 (UNSPEC_VPKSHUS): Likewise.
21977 (UNSPEC_VPKUWUS): Likewise.
21978 (UNSPEC_VPKSWUS): Likewise.
21979 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
21980 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
21981 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
21982 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
21983 (UNSPEC_VUPKHSB): Likewise.
21984 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
21985 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
21986 (UNSPEC_VUPKHSH): Likewise.
21987 (UNSPEC_VUPKLSB): Likewise.
21988 (UNSPEC_VUPKLSH): Likewise.
21990 (VI_char): Likewise.
21991 (VI_scalar): Likewise.
21992 (VI_unit): Likewise.
21994 (VP_small): Likewise.
21995 (VP_small_lc): Likewise.
21996 (VU_char): Likewise.
21997 (add<mode>3): Likewise.
21998 (altivec_vaddcuw): Likewise.
21999 (altivec_vaddu<VI_char>s): Likewise.
22000 (altivec_vadds<VI_char>s): Likewise.
22001 (sub<mode>3): Likewise.
22002 (altivec_vsubcuw): Likewise.
22003 (altivec_vsubu<VI_char>s): Likewise.
22004 (altivec_vsubs<VI_char>s): Likewise.
22005 (altivec_vavgs<VI_char>): Likewise.
22006 (altivec_vcmpbfp): Likewise.
22007 (altivec_eq<mode>): Likewise.
22008 (altivec_gt<mode>): Likewise.
22009 (altivec_gtu<mode>): Likewise.
22010 (umax<mode>3): Likewise.
22011 (smax<mode>3): Likewise.
22012 (umin<mode>3): Likewise.
22013 (smin<mode>3): Likewise.
22014 (altivec_vpkuhum): Likewise.
22015 (altivec_vpkuwum): Likewise.
22016 (altivec_vpkshss): Likewise.
22017 (altivec_vpkswss): Likewise.
22018 (altivec_vpkuhus): Likewise.
22019 (altivec_vpkshus): Likewise.
22020 (altivec_vpkuwus): Likewise.
22021 (altivec_vpkswus): Likewise.
22022 (altivec_vpks<VI_char>ss): Likewise.
22023 (altivec_vpks<VI_char>us): Likewise.
22024 (altivec_vpku<VI_char>us): Likewise.
22025 (altivec_vpku<VI_char>um): Likewise.
22026 (altivec_vrl<VI_char>): Likewise.
22027 (altivec_vsl<VI_char>): Likewise.
22028 (altivec_vsr<VI_char>): Likewise.
22029 (altivec_vsra<VI_char>): Likewise.
22030 (altivec_vsldoi_<mode>): Likewise.
22031 (altivec_vupkhsb): Likewise.
22032 (altivec_vupkhs<VU_char>): Likewise.
22033 (altivec_vupkls<VU_char>): Likewise.
22034 (altivec_vupkhsh): Likewise.
22035 (altivec_vupklsb): Likewise.
22036 (altivec_vupklsh): Likewise.
22037 (altivec_vcmpequ<VI_char>_p): Likewise.
22038 (altivec_vcmpgts<VI_char>_p): Likewise.
22039 (altivec_vcmpgtu<VI_char>_p): Likewise.
22040 (abs<mode>2): Likewise.
22041 (vec_unpacks_hi_v16qi): Likewise.
22042 (vec_unpacks_hi_v8hi): Likewise.
22043 (vec_unpacks_lo_v16qi): Likewise.
22044 (vec_unpacks_hi_<VP_small_lc>): Likewise.
22045 (vec_unpacks_lo_v8hi): Likewise.
22046 (vec_unpacks_lo_<VP_small_lc>): Likewise.
22047 (vec_pack_trunc_v8h): Likewise.
22048 (vec_pack_trunc_v4si): Likewise.
22049 (vec_pack_trunc_<mode>): Likewise.
22051 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
22053 (vec_vmaxsd): Likewise.
22054 (vec_vmaxud): Likewise.
22055 (vec_vminsd): Likewise.
22056 (vec_vminud): Likewise.
22057 (vec_vpksdss): Likewise.
22058 (vec_vpksdus): Likewise.
22059 (vec_vpkudum): Likewise.
22060 (vec_vpkudus): Likewise.
22061 (vec_vrld): Likewise.
22062 (vec_vsld): Likewise.
22063 (vec_vsrad): Likewise.
22064 (vec_vsrd): Likewise.
22065 (vec_vsubudm): Likewise.
22066 (vec_vupkhsw): Likewise.
22067 (vec_vupklsw): Likewise.
22069 2013-05-29 Jan Hubicka <jh@suse.cz>
22071 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
22072 flags; reorder rest of fields in more consistent way.
22073 (varpool_node): Remove analyzed, finalized and alias.
22074 (cgraph_ndoe): Likewise.
22075 (symtab_alias_ultimate_target): New function.
22076 (cgraph_function_node): Move offline.
22077 (cgraph_reset_node): Declare.
22078 (cgraph_comdat_can_be_unshared_p): Remove.
22079 (varpool_remove_initializer): Declare.
22080 (varpool_first_defined_variable, varpool_next_defined_variable
22081 cgraph_first_defined_function, cgraph_next_defined_function): Update.
22082 (cgraph_function_with_gimple_body_p): Update.
22083 (varpool_all_refs_explicit_p): Update.
22084 (symtab_alias_target): New function.
22085 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
22086 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
22087 (cgraph_function_or_thunk_node): Simplify using
22088 symtab_alias_ultimate_target.
22089 (varpool_variable_node): Likewise.
22090 * cgraph.c (cgraph_create_function_alias): Update.
22091 (cgraph_add_thunk): Update.
22092 (cgraph_remove_node): Update.
22093 (dump_cgraph_node): Do not dump removed flags.
22094 (cgraph_function_body_availability): Update.
22095 (cgraph_propagate_frequency): Update.
22096 (verify_cgraph_node): Check sanity of local flag.
22097 (cgraph_function_node): Move here from cgraph.h; revamp for
22098 cgraph_function_or_thunk_node.
22099 * lto-symtab.c (lto_varpool_replace_node): Update.
22100 (lto_symtab_resolve_can_prevail_p): Update.
22101 (lto_symtab_merge_cgraph_nodes): Update.
22102 * ipa-cp.c (determine_versionability, initialize_node_lattices,
22103 propagate_constants_accross_call, devirtualization_time_bonus,
22104 ipcp_propagate_stage): Update.
22105 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
22106 * ipa-inline-transform.c (clone_inlined_nodes,
22107 preserve_function_body_p): Update.
22108 * ipa-reference.c (propagate): Update.
22109 (write_node_summary_p): Update.
22110 * toplev.c (wrapup_global_declaration_2): Update.
22111 * cgraphunit.c (cgraph_analyze_function): Rename to ...
22112 (analyze_function) ... this one.
22113 (cgraph_process_new_functions): Update.
22114 (cgraph_reset_node): Export.
22115 (cgraph_finalize_function): Update.
22116 (cgraph_add_new_function): Update.
22117 (process_function_and_variable_attributes): Update.
22118 (varpool_finalize_decl): Update.
22119 (symbol_finalized): Remove.
22120 (symbol_finalized_and_needed): Rename to ...
22121 (symbol_defined_and_needed): ... update.
22122 (cgraph_analyze_functions): Update.
22123 (handle_alias_pairs): Update.
22124 (mark_functions_to_output): Update.
22125 (assemble_thunk): Update.
22126 (output_in_order): Update.
22127 (output_weakrefs): Update.
22128 (finalize_compilation_unit): Update.
22129 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
22130 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
22131 input_node, input_varpool_node): Update.
22132 * dbxout.c (dbxout_expand_expr): Update.
22133 * cgraphclones.c (cgraph_clone_node): Update.
22134 (cgraph_copy_node_for_versioning): Update.
22135 (cgraph_materialize_clone): Update.
22136 (cgraph_materialize_all_clones): Update.
22137 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
22138 propagate_pure_const, propagate_nothrow): Update.
22139 * lto-streamer-out.c (lto_output, write_symbol): Update.
22140 * ipa-utils.c (ipa_reverse_postorder): Update.
22141 * ipa-inline.c (can_inline_edge_p): Update.
22142 (update_caller_keys, ipa_inline): Update.
22143 * dwarf2out.c (reference_to_unused,
22144 premark_types_used_by_global_vars_helper): Update.
22145 * tree-eh.c (tree_could_trap_p): Update.
22146 * ipa-split.c (consider_split, execute_split_functions): Update.
22147 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
22148 has_addr_references_p): Update; move ahead in file for better
22150 (process_references): Simplify.
22151 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
22152 bodies are removed.
22153 (cgraph_comdat_can_be_unshared_p): Make static.
22154 (cgraph_externally_visible_p): Update.
22155 (varpool_externally_visible_p): Update.
22156 (function_and_variable_visibility): Update.
22157 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
22158 ipa_tm_mark_force_output_node): Update.
22159 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
22160 estimate_edge_devirt_benefit, inline_generate_summary,
22161 inline_write_summary): Update.
22162 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
22163 * ipa-prop.c (ipa_compute_jump_functions): Update.
22164 (ipa_print_node_params, ipa_prop_read_section,
22165 ipa_update_after_lto_read, read_replacements_section): Update.
22166 * varasm.c (mark_decl_referenced): Update.
22167 (assemble_alias, dump_tm_clone_pairs): Update.
22168 * tree-inline.c (copy_bb): Update.
22169 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
22171 * symtab.c (dump_symtab_base): Print new flags.
22172 (verify_symtab_base): Verify new flags.
22173 (symtab_alias_ultimate_target): New function.
22174 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
22175 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
22177 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
22179 * i386.c (ix86_get_function_versions_dispatcher,
22180 ix86_generate_version_dispatcher_body): Update.
22181 (fold_builtin_cpu): Use varpool_add_new_variable.
22182 * varpool.c (varpool_remove_initializer): Break out from ...
22183 (varpool_remove_node): ... this one.
22184 (dump_varpool_node, varpool_node_for_asm,
22185 cgraph_variable_initializer_availability, varpool_analyze_node,
22186 varpool_assemble_decl, varpool_remove_unreferenced_decls,
22187 varpool_finalize_named_section_flags, varpool_create_variable_alias):
22190 2013-05-29 Jan Hubicka <jh@suse.cz>
22192 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
22194 2013-05-29 Easwaran Raman <eraman@google.com>
22196 PR tree-optimization/57442
22197 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
22198 when control exits the main loop.
22200 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
22202 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
22204 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
22205 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
22206 * rx/t-rx: Add rx100 under multi library matches option for nofpu
22209 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22211 PR tree-optimization/57441
22212 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
22213 Don't limit size of incr_vec to number of candidates.
22215 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
22217 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
22218 and mips16 directories.
22219 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
22220 (MULTILIB_DIRNAMES): Ditto.
22221 (MULTILIB_EXCEPTIONS): Add new exceptions.
22222 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
22223 (MULTILIB_DIRNAMES): Ditto.
22224 (MULTILIB_EXCEPTIONS): Add new exceptions.
22226 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
22227 Marcus Shawcroft <marcus.shawcroft@arm.com>
22229 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
22230 SYMBOL_TINY_ABSOLUTE.
22231 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
22232 SYMBOL_TINY_ABSOLUTE.
22233 (aarch64_expand_mov_immediate): Likewise.
22234 (aarch64_classify_symbol): Likewise.
22235 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
22236 Permit SYMBOL_TINY_ABSOLUTE.
22237 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
22239 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
22240 Marcus Shawcroft <marcus.shawcroft@arm.com>
22242 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
22243 Refactor if/switch. Replace gcc_assert with if.
22245 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
22247 * config/i386/i386.c (initial_ix86_tune_features): Enable
22248 FP Reassociation for AMD bdver1 and bdver2.
22250 2013-05-29 Martin Jambor <mjambor@suse.cz>
22252 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
22253 and IMAGPART_EXPR do not occur within other handled_components.
22255 2013-05-29 Richard Biener <rguenther@suse.de>
22257 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
22258 access on whether the use is in the BB we currently try to
22260 (vect_bb_vectorization_profitable_p): Pass the BB we currently
22261 vectorize to vect_bb_slp_scalar_cost.
22263 2013-05-29 Richard Biener <rguenther@suse.de>
22265 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
22266 computing scalar cost offsetted by stmts that are kept live
22268 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
22269 for computation of scalar cost.
22271 2013-05-28 Steve Ellcey <sellcey@mips.com>
22273 * config/mips/mips-cpus.def (mips32r2): Change processor type.
22275 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
22277 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
22278 array notation built-in reduction functions.
22279 * doc/passes.texi (Passes): Added documentation about changes done
22281 * doc/invoke.texi (C Dialect Options): Added documentation about
22282 the -fcilkplus flag.
22283 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
22284 (BUILTINS_DEF): Depend on cilkplus.def.
22285 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
22286 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
22287 * cilkplus.def: New file.
22289 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
22291 PR rtl-optimization/57439
22292 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
22294 2013-05-28 Easwaran Raman <eraman@google.com>
22296 PR tree-optimization/57337
22297 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
22298 (find_insert_point): Correctly identify the insertion point
22299 when two statements with the same UID is compared.
22301 2013-05-28 Richard Biener <rguenther@suse.de>
22303 PR tree-optimization/56787
22304 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
22305 from the list of data references.
22306 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
22308 (vect_analyze_loop_operations): Likewise.
22309 (vect_transform_loop): Remove clobbers.
22311 2013-05-28 Martin Jambor <mjambor@suse.cz>
22313 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
22314 and REALPART_EXPRs have scalar type.
22316 2013-05-28 Richard Biener <rguenther@suse.de>
22318 PR tree-optimization/57411
22319 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
22321 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
22322 virtual operand propagation.
22324 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
22326 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
22327 destination register for bmasksi_vis.
22328 (vector_init_bshuffle): Likewise.
22329 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
22331 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
22333 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
22334 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
22335 mode if the instruction isn't available in the original mode.
22336 * config/sparc/sparc.opt (mfix-ut699): New option.
22337 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
22338 (divdf3): Turn into expander.
22339 (divdf3_nofix): New insn.
22340 (divdf3_fix): Likewise.
22341 (divsf3): Disable if -mfix-ut699.
22342 (sqrtdf2): Turn into expander.
22343 (sqrtdf2_nofix): New insn.
22344 (sqrtdf2_fix): Likewise.
22345 (sqrtsf2): Disable if -mfix-ut699.
22347 2013-05-27 Richard Biener <rguenther@suse.de>
22349 PR middle-end/57412
22350 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
22351 block for the new loop.
22353 2013-05-27 Richard Biener <rguenther@suse.de>
22355 PR tree-optimization/57343
22356 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
22357 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
22358 (number_of_iterations_cond): Do not build the folded tree.
22360 2013-05-27 Richard Biener <rguenther@suse.de>
22363 PR middle-end/57381
22364 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
22365 OEP_CONSTANT_ADDRESS_OF retained.
22367 PR tree-optimization/57417
22368 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
22369 for unchanged base.
22370 (set_ssa_val_to): Compare addresses using
22371 get_addr_base_and_unit_offset.
22373 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
22375 PR rtl-optimization/56833
22376 * postreload.c (move2add_record_mode): New function.
22377 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
22378 (move2add_use_add2_insn): Use move2add_record_sym_value.
22379 (move2add_use_add3_insn): Likewise.
22380 (reload_cse_move2add): Use move2add_valid_value_p and
22381 move2add_record_mode. Invalidate call-clobbered and REG_INC
22382 affected regs by setting reg_mode to VOIDmode.
22383 (move2add_note_store): Don't pretend the inside of a SUBREG is
22384 the actual destination. Invalidate single/leading registers by
22385 setting reg_mode to VOIDmode.
22386 Use move2add_record_sym_value, move2add_valid_value_p and
22387 move2add_record_mode.
22389 2013-05-27 Richard Biener <rguenther@suse.de>
22391 PR tree-optimization/57396
22392 * tree-affine.c (double_int_constant_multiple_p): Properly
22393 return false for val == 0 and div != 0.
22395 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
22397 * config/mips/mips.h: Use #elif in preprocessor conditions.
22399 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
22402 * config/mips/constraints.md (kl): New constraint.
22403 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
22404 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
22405 constraint for operand 0. Split after CSE for MIPS16. Emit a move
22406 from LO for MIPS16.
22407 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
22409 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
22412 * config/mips/mips.c (mips_can_inline_p): New function.
22413 (TARGET_CAN_INLINE_P): Define.
22415 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
22417 * sched-int.h (ds_t, dw_t): Make unsigned int.
22418 Fix documentation that describes how all the ds_t bits are used.
22419 Reserve the last bit for delayed-branch scheduling.
22420 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
22421 (BITS_PER_DEP_WEAK): Fix definition and documentation.
22422 (gen_dep_weak_1): Remove prototype.
22423 * sched-deps.c (get_dep_weak_1): Make static.
22424 * target.def (speculate_insn, needs_block_p, gen_spec_check,
22425 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
22426 * doc/tm.texi: Regenerate.
22427 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
22429 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
22432 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
22434 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
22435 Sandra Loosemore <sandra@codesourcery.com>
22437 * config.gcc (powerpc-*): Allow native for with-cpu.
22439 2013-05-24 Jeff Law <law@redhat.com>
22441 PR tree-optimization/57124
22442 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
22443 conversion feeding a condition if the range has an overflow
22444 if -fstrict-overflow. Add warnings for when we do make the
22447 2013-05-24 Dehao Chen <dehao@google.com>
22449 * tree-cfg.c (locus_discrim_map): Fix the typo.
22450 (locus_discrim_hasher): Likewise.
22451 (locus_discrim_hasher::hash): Likewise.
22452 (locus_discrim_hasher::equal): Likewise.
22454 2013-05-24 Martin Jambor <mjambor@suse.cz>
22456 PR tree-optimization/57294
22457 * cgraph.h (ipa_record_stmt_references): Declare.
22458 * cgraphbuild.c (ipa_record_stmt_references): New function.
22459 (build_cgraph_edges): Use ipa_record_stmt_references.
22460 (rebuild_cgraph_edges): Likewise.
22461 (cgraph_rebuild_references): Likewise.
22462 * ipa-prop.c (ipa_modify_call_arguments): Discard references
22463 associated with the old statement and build references from the
22464 newly built statements.
22465 * ipa-ref.c (ipa_remove_stmt_references): New function.
22466 * ipa-ref.h (ipa_remove_stmt_references): Declare.
22468 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
22470 * lra-constraints.c (emit_spill_move): Use smaller mode for
22472 (check_and_process_move): Consider mem-reg moves for secondary
22474 (curr_insn_transform): Don't lose insns emitted before for
22475 secondary memory moves.
22476 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
22477 reg set up in the current insn.
22479 2013-05-24 Dehao Chen <dehao@google.com>
22481 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
22483 (locus_descrim_hasher::equal): Likewise.
22484 (build_gimple_cfg): New discriminator assignment algorithm.
22485 (make_edges): Likewise.
22486 (next_discriminator_for_locus): Likewise.
22487 (same_line_p): Likewise.
22488 (assign_discriminators): Likewise.
22489 (make_cond_expr_edges): Likewise.
22490 (make_gimple_switch_edges): Likewise.
22491 (make_goto_expr_edges): Likewise.
22492 (make_gimple_asm_edges): Likewise.
22494 2013-05-24 Ian Bolton <ian.bolton@arm.com>
22496 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
22497 X format specifier to only display bottom 16 bits.
22498 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
22499 immediate to match for operand 2, since it will be masked.
22501 2013-05-24 Richard Biener <rguenther@suse.de>
22503 PR tree-optimization/57287
22504 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
22505 all SSA names that occur in abnormal PHIs.
22507 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
22510 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
22511 that index is not negative.
22513 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
22515 PR rtl-optimization/55177
22516 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
22517 (simplify_byte_swapping_operation): New.
22518 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
22519 (simplify_relational_operation_1): Deal with BSWAP.
22521 2013-05-23 Richard Henderson <rth@redhat.com>
22524 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
22525 (ix86_reorg): Call it.
22527 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
22530 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
22531 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
22532 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
22534 2013-05-23 Christian Bruel <christian.bruel@st.com>
22537 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
22539 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
22540 Marcus Shawcroft <marcus.shawcroft@arm.com>
22542 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
22543 * config/aarch64/constraints.md (Usa): Remove.
22544 * doc/md.texi (AArch64 Usa): Remove.
22546 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
22547 Marcus Shawcroft <marcus.shawcroft@arm.com>
22549 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
22550 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
22551 * config/aarch64/predicates.md (aarch64_const_address): Remove.
22552 (aarch64_mov_operand): Use aarch64_mov_operand_p.
22554 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
22556 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
22557 instruction (AdvSIMD).
22558 * config/aarch64/aarch64-builtins.c
22559 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
22560 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
22562 2013-05-23 Martin Jambor <mjambor@suse.cz>
22564 PR middle-end/57347
22565 * tree.h (contains_bitfld_component_ref_p): Declare.
22566 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
22567 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
22569 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
22570 not access a bit-field. Assert all final offsets are byte-aligned.
22572 2013-05-23 Richard Biener <rguenther@suse.de>
22574 PR tree-optimization/57380
22575 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
22576 least one invariant or re-used load.
22577 * passes.c (init_optimization_passes): Move pass_phiprop before
22580 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
22582 * config/aarch64/aarch64-simd.md
22583 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
22585 2013-05-23 Richard Biener <rguenther@suse.de>
22587 PR middle-end/57381
22588 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
22589 OEP_CONSTANT_ADDRESS_OF retained.
22591 2013-05-23 Jakub Jelinek <jakub@redhat.com>
22593 PR middle-end/57344
22594 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
22595 don't lower unit. Handle unit not being always BITS_PER_WORD.
22597 2013-05-23 Richard Biener <rguenther@suse.de>
22599 PR rtl-optimization/57341
22600 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
22601 instead of true_dependence.
22603 2013-05-22 David Malcolm <dmalcolm@redhat.com>
22605 * bb-reorder.c (branch_threshold): Make const.
22606 (exec_threshold): Ditto.
22608 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
22609 Pat Haugen <pthaugen@us.ibm.com>
22610 Peter Bergner <bergner@vnet.ibm.com>
22612 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
22613 documentation for the power8 crypto builtins.
22615 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
22617 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
22618 macros for defining power8 builtin functions.
22619 (BU_P8V_AV_2): Likewise.
22620 (BU_P8V_AV_P): Likewise.
22621 (BU_P8V_VSX_1): Likewise.
22622 (BU_P8V_OVERLOAD_1): Likewise.
22623 (BU_P8V_OVERLOAD_2): Likewise.
22624 (BU_CRYPTO_1): Likewise.
22625 (BU_CRYPTO_2): Likewise.
22626 (BU_CRYPTO_3): Likewise.
22627 (BU_CRYPTO_OVERLOAD_1): Likewise.
22628 (BU_CRYPTO_OVERLOAD_2): Likewise.
22629 (XSCVSPDP): Fix typo, point to the correct instruction.
22630 (VCIPHER): Add power8 crypto builtins.
22631 (VCIPHERLAST): Likewise.
22632 (VNCIPHER): Likewise.
22633 (VNCIPHERLAST): Likewise.
22634 (VPMSUMB): Likewise.
22635 (VPMSUMH): Likewise.
22636 (VPMSUMW): Likewise.
22637 (VPERMXOR_V2DI): Likewise.
22638 (VPERMXOR_V4SI: Likewise.
22639 (VPERMXOR_V8HI: Likewise.
22640 (VPERMXOR_V16QI: Likewise.
22641 (VSHASIGMAW): Likewise.
22642 (VSHASIGMAD): Likewise.
22643 (VPMSUM): Likewise.
22644 (VPERMXOR): Likewise.
22645 (VSHASIGMA): Likewise.
22647 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
22648 __CRYPTO__ if the crypto instructions are available.
22649 (altivec_overloaded_builtins): Add support for overloaded power8
22652 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
22653 support for power8 crypto builtins.
22654 (builtin_function_type): Likewise.
22655 (altivec_init_builtins): Add support for builtins that take vector
22656 long long (V2DI) arguments.
22658 * config/rs6000/crypto.md: New file, define power8 crypto
22661 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
22662 Pat Haugen <pthaugen@us.ibm.com>
22663 Peter Bergner <bergner@vnet.ibm.com>
22665 * doc/invoke.texi (Option Summary): Add power8 options.
22666 (RS/6000 and PowerPC Options): Likewise.
22668 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
22669 constraints.md instead of rs6000.h. Reorder w* constraints. Add
22670 wm, wn, wr documentation.
22672 * config/rs6000/constraints.md (wm): New constraint for VSX
22673 registers if direct move instructions are enabled.
22674 (wn): New constraint for no registers.
22675 (wq): New constraint for quad word even GPR registers.
22676 (wr): New constraint if 64-bit instructions are enabled.
22677 (wv): New constraint if power8 vector instructions are enabled.
22678 (wQ): New constraint for quad word memory locations.
22680 * config/rs6000/predicates.md (const_0_to_15_operand): New
22681 constraint for 0..15 for crypto instructions.
22682 (gpc_reg_operand): If VSX allow registers in VSX registers as well
22683 as GPR and floating point registers.
22684 (int_reg_operand): New predicate to match only GPR registers.
22685 (base_reg_operand): New predicate to match base registers.
22686 (quad_int_reg_operand): New predicate to match even GPR registers
22687 for quad memory operations.
22688 (vsx_reg_or_cint_operand): New predicate to allow vector logical
22689 operations in both GPR and VSX registers.
22690 (quad_memory_operand): New predicate for quad memory operations.
22691 (reg_or_indexed_operand): New predicate for direct move support.
22693 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
22694 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
22695 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
22696 (POWERPC_MASKS): Add power8 options.
22697 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
22700 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
22701 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
22703 * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
22704 (-mpower8-fusion): New power8 options.
22705 (-mpower8-fusion-sign): Likewise.
22706 (-mpower8-vector): Likewise.
22707 (-mcrypto): Likewise.
22708 (-mdirect-move): Likewise.
22709 (-mquad-memory): Likewise.
22711 * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
22712 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
22714 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
22715 (rs6000_debug_vector_unit): Add p8_vector.
22716 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
22717 definitions. Also print fusion state.
22718 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
22719 (rs6000_builtin_mask_calculate): Add power8 builtin support.
22720 (rs6000_option_override_internal): Add support for power8.
22721 (rs6000_common_init_builtins): Add debugging for skipped builtins
22722 if -mdebug=builtin.
22723 (rs6000_adjust_cost): Add power8 support.
22724 (rs6000_issue_rate): Likewise.
22725 (insn_must_be_first_in_group): Likewise.
22726 (insn_must_be_last_in_group): Likewise.
22727 (force_new_group): Likewise.
22728 (rs6000_register_move_cost): Likewise.
22729 (rs6000_opt_masks): Likewise.
22731 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
22732 power8 capable assembler, default to power7 options.
22733 (TARGET_DIRECT_MOVE): Likewise.
22734 (TARGET_CRYPTO): Likewise.
22735 (TARGET_P8_VECTOR): Likewise.
22736 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
22737 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
22738 (VECTOR_MEM_P8_VECTOR_P): Likewise.
22739 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
22740 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
22741 (TARGET_XSCVDPSPN): Likewise.
22742 (TARGET_XSCVSPDPN): Likewsie.
22743 (TARGET_SYNC_HI_QI): Likewise.
22744 (TARGET_SYNC_TI): Likewise.
22745 (MASK_CRYPTO): Likewise.
22746 (MASK_DIRECT_MOVE): Likewise.
22747 (MASK_P8_FUSION): Likewise.
22748 (MASK_P8_VECTOR): Likewise.
22749 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
22750 temporary used by some of the direct move instructions to get two FP
22751 temporary registers does not force creation of a stack frame.
22752 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
22753 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
22754 that any VSX registers are tieable, even if they are also an
22755 Altivec vector mode.
22756 (r6000_reg_class_enum): Add wm, wr, wv constraints.
22757 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
22758 (RS6000_BTM_CRYPTO): Likewise.
22759 (RS6000_BTM_COMMON): Likewise.
22761 * config/rs6000/rs6000.md (cpu attribute): Add power8.
22762 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
22763 (enum rs6000_vector): Add power8 vector support.
22765 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22769 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
22770 (any_sibcall_could_use_r3): this and handle indirect calls.
22771 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
22773 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22775 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
22777 2013-05-22 Richard Biener <rguenther@suse.de>
22779 PR middle-end/57349
22780 * profile.c (branch_prob): Do not split blocks that are
22781 abnormally receiving from ECF_RETURNS_TWICE functions.
22783 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
22785 * recog.c (offsettable_address_addr_space_p): Fix calculation of
22786 address mode. Move pointer mode initialization to the same place.
22788 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
22790 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
22791 while it has any effect.
22793 2013-05-21 Easwaran Raman <eraman@google.com>
22795 PR tree-optimization/57322
22796 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
22797 UID of the statement added to the BB to be 1.
22799 2013-05-21 Jakub Jelinek <jakub@redhat.com>
22801 PR tree-optimization/57331
22802 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
22803 of conversion from pointer type to integral type with integer.
22805 2013-05-21 Martin Jambor <mjambor@suse.cz>
22808 * ipa-prop.c (ipa_read_node_info): Process param_used and
22809 controlled_uses in the same order as when writing.
22811 2013-05-21 Magnus Granberg <baldrick@free.fr>
22814 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
22816 2013-05-21 Richard Biener <rguenther@suse.de>
22818 PR tree-optimization/57318
22819 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
22820 estimate stmts with side-effects as likely eliminated.
22822 2013-05-21 Richard Biener <rguenther@suse.de>
22824 PR tree-optimization/57330
22825 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
22826 preserve the call stmts fntype.
22828 2013-05-21 Richard Biener <rguenther@suse.de>
22830 PR tree-optimization/57303
22831 * tree-ssa-sink.c (statement_sink_location): Improve killing
22832 stmt detection and properly handle self-assignments.
22834 2013-05-21 Christian Bruel <christian.bruel@st.com>
22836 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
22837 spanning registers. LEAF_REG_REMAP is supported only for contiguous
22838 registers. Set register size out of the PARALLEL loop.
22840 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
22843 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
22844 (*fmasf4, *fmasf4_media): New insns.
22846 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
22848 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
22849 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
22850 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
22851 (mips_idiv_insns): Update the comments to say that the returned
22852 instruction counts are in units of BASE_INSN_LENGTH.
22853 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
22854 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
22855 using 2 rather than 4 as the length of indirect MIPS16 and
22856 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
22857 length of a NOP. Don't divide MIPS16 lengths by 2.
22858 (mips16_split_long_branches): Assume a branch is long if the
22859 length is greater than 4 rather than 8.
22860 * config/mips/mips.md (length): Give MIPS16 lengths directly,
22861 rather than multiplying them by 2. Multiply instruction counts
22862 by BASE_INSN_LENGTH rather than 4.
22863 (*jump_mips16, tls_get_tp_mips16_<mode>)
22864 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
22866 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
22868 * config/mips/mips.md (extended_mips16): Remove branch case.
22869 (length): Remove duplicated extended_mips16 test.
22871 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
22873 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
22875 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
22877 * recog.h (Recog_data): Rename to...
22878 (recog_data_d): ...this.
22879 (recog_data): Update accordingly.
22880 * recog.c (recog_data): Likewise.
22881 * reload.c (save_recog_data): Likewise.
22882 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
22883 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
22885 2013-05-17 Julian Brown <julian@codesourcery.com>
22887 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
22888 found in a REG_EQUAL note, invalidate it.
22890 2013-05-17 Easwaran Raman <eraman@google.com>
22892 * tree-ssa-reassoc.c (find_insert_point): New function.
22893 (insert_stmt_after): Likewise.
22894 (get_def_stmt): Likewise.
22895 (ensure_ops_are_available): Likewise.
22896 (not_dominated_by): Likewise.
22897 (rewrite_expr_tree): Do not move statements beyond what is
22898 necessary. Remove call to swap_ops_for_binary_stmt...
22899 (reassociate_bb): ... and move it here.
22900 (build_and_add_sum): Assign UIDs for new statements.
22901 (linearize_expr): Likewise.
22902 (do_reassoc): Renumber gimple statement UIDs.
22904 2013-05-17 Jan Hubicka <jh@suse.cz>
22906 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
22908 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
22909 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
22911 (output_weakrefs): Update.
22913 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
22914 Martin Jambor <mjambor@suse.cz>
22916 PR middle-end/57276
22917 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
22918 value that corresponds to the given aggval is found in values vector.
22920 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
22922 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
22923 sse, sse2, sse3, ssse3 and sse4a flags to options.
22925 2013-05-17 David Malcolm <dmalcolm@redhat.com>
22927 * gengtype-state.c: (s_expr_writer): New class, to handle
22928 prettifying of output layout of s-expressions.
22929 (state_writer): New class, to write out gtype.state.
22930 (state_written_type_count): Move this variable into member data of
22932 (s_expr_writer::s_expr_writer): New code: constructor for new class
22933 (state_writer::state_writer(): ditto
22934 (s_expr_writer::write_new_line): New function
22935 (s_expr_writer::write_any_indent): ditto
22936 (s_expr_writer::begin_s_expr): ditto
22937 (s_expr_writer::end_s_expr): ditto
22938 (write_state_fileloc): convert to method of state_writer...
22939 (state_writer:: write_state_fileloc): ...and use methods of
22940 s_expr_writer to write indentation into the gtype.state output file
22941 to visually represent the hierarchical structure of the list
22943 (write_state_fields): ditto, renaming to...
22944 (state_writer::write_state_fields)
22945 (write_state_a_string): ditto, renaming to...
22946 (state_writer::write_state_a_string)
22947 (write_state_string_option): ditto, renaming to...
22948 (state_writer::write_state_string_option)
22949 (write_state_type_option): ditto, renaming to...
22950 (state_writer::write_state_type_option)
22951 (write_state_nested_option): ditto, renaming to...
22952 (state_writer::write_state_nested_option)
22953 (write_state_option): ditto, renaming to...
22954 (state_writer::write_state_option)
22955 (write_state_options): ditto, renaming to...
22956 (state_writer::write_state_options)
22957 (write_state_lang_bitmap): ditto, renaming to...
22958 (state_writer::write_state_lang_bitmap)
22959 (write_state_version): ditto, renaming to...
22960 (state_writer::write_state_version)
22961 (write_state_scalar_type): ditto, renaming to...
22962 (state_writer::write_state_scalar_type)
22963 (write_state_string_type): ditto, renaming to...
22964 (state_writer::write_state_string_type)
22965 (write_state_undefined_type): ditto, renaming to...
22966 (state_writer::write_state_undefined_type)
22967 (write_state_struct_union_type): ditto, renaming to...
22968 (state_writer::write_state_struct_union_type)
22969 (write_state_struct_type): ditto, renaming to...
22970 (state_writer::write_state_struct_type)
22971 (write_state_user_struct_type): ditto, renaming to...
22972 (state_writer::write_state_user_struct_type)
22973 (write_state_lang_struct_type): ditto, renaming to...
22974 (state_writer::write_state_lang_struct_type)
22975 (write_state_param_struct_type): ditto, renaming to...
22976 (state_writer::write_state_param_struct_type)
22977 (write_state_pointer_type): ditto, renaming to...
22978 (state_writer::write_state_pointer_type)
22979 (write_state_array_type): ditto, renaming to...
22980 (state_writer::write_state_array_type)
22981 (write_state_gc_used): ditto, renaming to...
22982 (state_writer::write_state_gc_used)
22983 (write_state_common_type_content): ditto, renaming to...
22984 (state_writer::write_state_common_type_content)
22985 (write_state_type): ditto, renaming to...
22986 (state_writer::write_state_type)
22987 (write_state_pair_list): ditto, renaming to...
22988 (state_writer::write_state_pair_list)
22989 (write_state_pair): ditto, renaming to...
22990 (state_writer::write_state_pair)
22991 (write_state_typedefs): ditto, renaming to...
22992 (state_writer::write_state_typedefs)
22993 (write_state_structures): ditto, renaming to...
22994 (state_writer::write_state_structures)
22995 (write_state_param_structs): ditto, renaming to...
22996 (state_writer::write_state_param_structs)
22997 (write_state_variables): ditto, renaming to...
22998 (state_writer::write_state_variables)
22999 (write_state_srcdir): ditto, renaming to...
23000 (state_writer::write_state_srcdir)
23001 (write_state_files_list): ditto, renaming to...
23002 (state_writer::write_state_files_list)
23003 (write_state_languages): ditto, renaming to...
23004 (state_writer::write_state_languages)
23005 (write_state): create a state_writer instance and use it when
23006 writing out the state file
23008 2013-05-17 Mike Stump <mikestump@comcast.net>
23010 PR rtl-optimization/57304
23011 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
23012 accessing DF_REF_REAL_LOC.
23014 2013-05-17 Jakub Jelinek <jakub@redhat.com>
23016 PR rtl-optimization/57281
23017 PR rtl-optimization/57300
23018 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
23019 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
23020 what the other splitter did if the registers are dead.
23022 2013-05-17 Richard Biener <rguenther@suse.de>
23024 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
23027 2013-05-17 Jakub Jelinek <jakub@redhat.com>
23029 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
23032 2013-05-17 Marek Polacek <polacek@redhat.com>
23034 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
23035 length when doing non-zero store of storing '\0' to '\0'.
23037 2013-05-17 Jakub Jelinek <jakub@redhat.com>
23039 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
23040 vect_external_def oprnd1 with loop_vinfo, try to emit
23041 optional cast, negation and and stmts on the loop preheader
23042 edge instead of into the pattern def seq.
23044 PR tree-optimization/57051
23045 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
23046 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
23048 2013-05-16 Nick Clifton <nickc@redhat.com>
23050 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
23051 (rl78_is_naked_func): New function.
23052 (rl78_expand_prologue): Skip prologue generation for naked functions.
23053 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
23054 * doc/extend.texi (naked): Add RL78 to the list of processors
23055 that supports this attribute.
23057 2013-05-16 Jeff Law <law@redhat.com>
23059 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
23061 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
23063 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
23064 cache parameters using detect_caches_amd also for CYRIX,
23065 NSC and TM2 signatures.
23067 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
23068 Dzianis Kahanovich <mahatma@eu.by>
23072 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
23073 VIA/Centaur processors and determine their cache parameters
23074 using detect_caches_amd.
23076 2013-05-16 Teresa Johnson <tejohnson@google.com>
23078 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
23079 (rtl_verify_edges): New function.
23080 (rtl_verify_bb_insns): Ditto.
23081 (rtl_verify_bb_pointers): Ditto.
23082 (rtl_verify_bb_insn_chain): Ditto.
23083 (rtl_verify_fallthru): Ditto.
23084 (rtl_verify_bb_layout): Ditto.
23085 (rtl_verify_flow_info_1): Outline checks into new functions.
23086 (rtl_verify_flow_info): Ditto.
23088 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
23090 * cfghooks.c (copy_bbs): Add update_dominance argument.
23091 * cfghooks.h (copy_bbs): Update prototype.
23092 * tree-cfg.c (gimple_duplicate_sese_region):
23093 Add update_dominance argument.
23094 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
23095 * tree-ssa-loop-ch.c (copy_loop_headers): Update
23096 gimple_duplicate_sese_region call.
23097 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
23098 Update copy_bbs call.
23099 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
23100 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
23102 2013-05-16 Jakub Jelinek <jakub@redhat.com>
23104 * tree-vectorizer.h (NUM_PATTERNS): Increment.
23105 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
23106 vect_recog_rotate_pattern.
23107 (vect_recog_rotate_pattern): New function.
23109 2013-05-16 Jason Merrill <jason@redhat.com>
23111 * Makefile.in (LLINKER): New variable.
23112 (mostlyclean): Remove link mutex.
23113 * configure.ac: Handle --enable-link-mutex.
23114 * lock-and-run.sh: New script.
23116 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23119 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
23122 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23124 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
23126 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
23128 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
23129 * config/arm/arm.c (next_consecutive_mem): New function.
23130 (gen_movmem_ldrd_strd): Likewise.
23131 * config/arm/arm.md (movmemqi): Update condition and code.
23132 (unaligned_loaddi, unaligned_storedi): New patterns.
23134 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23136 * config.gcc: Obsolete *-*-solaris2.9*.
23137 * doc/install.texi (Specific, *-*-solaris2*): Document it.
23139 2013-05-16 Richard Biener <rguenther@suse.de>
23141 * passes.c (init_optimization_passes): Move pass_parallelize_loops
23142 earlier, after GRAPHITE transforms and IV canonicalization.
23144 2013-05-16 Jakub Jelinek <jakub@redhat.com>
23146 * omp-low.c (extract_omp_for_data): For collapsed loops,
23147 if at least one of the loops is known at compile time to
23148 iterate zero times, set count to 0.
23149 (expand_omp_regimplify_p): New function.
23150 (expand_omp_for_generic): For collapsed loops, if at least
23151 one of the loops isn't known to iterate at least once,
23152 add runtime check with setting count to 0.
23153 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
23154 For unsigned types if it isn't known at compile time that
23155 the loop will iterate at least once, add runtime check to bypass
23156 the whole loop if initial condition isn't true.
23158 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
23160 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
23162 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
23164 PR middle-end/57286
23165 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
23166 transformations to avoid an infinite loop.
23168 2013-05-16 Marek Polacek <polacek@redhat.com>
23170 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
23172 2013-05-15 Leif Ekblad <leif@rdos.net>
23174 * config/i386/i386.c (ix86_decompose_address): Use
23175 DEFAULT_TLS_SEG_REG to access TLS segment register.
23176 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
23177 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
23178 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
23180 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
23183 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
23184 sibling calls to functions that would normally be lazily bound,
23185 unless $gp is call-clobbered.
23187 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
23189 * config/i386/i386.c (ix86_option_override_internal): Update
23190 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
23191 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
23192 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
23193 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
23195 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
23197 2013-05-15 Andreas Schwab <schwab@suse.de>
23199 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
23200 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
23203 2013-05-15 Teresa Johnson <tejohnson@google.com>
23205 * loop-unroll.c (report_unroll_peel): Check decision before
23206 emitting unroll/peel message.
23208 2013-05-15 Teresa Johnson <tejohnson@google.com>
23210 * function.h (has_bb_partition): New rtl_data flag.
23211 (bb_reorder_complete): Ditto.
23212 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
23213 instead of flag_reorder_blocks_and_partition.
23214 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
23215 with some enhancements.
23216 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
23217 * bb-reorder.c (connect_traces): Check for has_bb_partition
23218 instead of flag_reorder_blocks_and_partition.
23219 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
23220 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
23221 verify_hot_cold_block_grouping.
23222 (partition_hot_cold_basic_blocks): Set has_bb_partition.
23224 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23227 * config/arm/predicates.md (call_insn_operand): New predicate.
23228 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
23229 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
23230 if insn is not a tail call.
23231 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
23233 * config/arm/arm.h (enum reg_class): New caller save register class.
23234 (REG_CLASS_NAMES): Likewise.
23235 (REG_CLASS_CONTENTS): Likewise.
23236 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
23239 2013-05-15 Richard Biener <rguenther@suse.de>
23241 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
23242 of MSG_OPTIMIZED_LOCATIONS.
23243 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
23244 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
23246 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
23247 of MSG_OPTIMIZED_LOCATIONS.
23248 (execute_vect_slp): Likewise.
23249 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
23250 (vect_create_cond_for_alias_checks): Likewise.
23251 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
23252 (vect_recog_widen_mult_pattern): Likewise.
23253 (vect_recog_widen_sum_pattern): Likewise.
23254 (vect_recog_over_widening_pattern): Likewise.
23255 (vect_recog_widen_shift_pattern): Likewise.
23256 (vect_recog_vector_vector_shift_pattern): Likewise.
23257 (vect_recog_divmod_pattern): Likewise.
23258 (vect_recog_mixed_size_cond_pattern): Likewise.
23259 (vect_recog_bool_pattern): Likewise.
23260 (vect_pattern_recog_1): Likewise.
23262 2013-05-15 Martin Jambor <mjambor@suse.cz>
23264 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
23265 non-functions to builtin_unreachable.
23266 * ipa-inline-transform.c (inline_call): Do not assert estimates were
23267 correct when new direct edges were discovered.
23269 2013-05-15 Martin Jambor <mjambor@suse.cz>
23271 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
23272 header, print symbol order instead of node uid, print more information
23273 about indirect edge targets.
23274 (ipa_make_edge_direct_to_target): Print symbol order instead of node
23276 (ipa_make_edge_direct_to_target): Likewise.
23277 (remove_described_reference): Likewise.
23278 (propagate_controlled_uses): Likewise.
23279 (ipa_print_node_params): Also print symbol order.
23280 (ipcp_transform_function): Print symbol order instead of node uids.
23281 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
23282 (cgraph_get_create_real_symbol_node): Likewise.
23283 * ipa-cp.c (print_lattice): Likewise.
23284 (print_all_lattices): Likewise.
23285 (determine_versionability): Likewise.
23286 (initialize_node_lattices): Likewise.
23287 (estimate_local_effects): Likewise.
23288 (update_profiling_info): Likewise.
23289 (create_specialized_node): Likewise.
23290 (perhaps_add_new_callers): Likewise.
23291 (decide_about_value): Likewise.
23292 (decide_whether_version_node): Likewise.
23293 (identify_dead_nodes): Likewise.
23294 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
23295 (dump_inline_summary): Likewise.
23296 (estimate_node_size_and_time): Likewise.
23297 (inline_analyze_function): Likewise.
23298 * ipa-inline.c (report_inline_failed_reason): Likewise.
23299 (want_early_inline_function_p): Likewise.
23300 (edge_badness): Likewise.
23301 (update_edge_key): Likewise.
23302 (inline_small_functions): Likewise. Add dumping of order to two other
23304 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
23305 instead of node uids.
23306 (propagate_pure_const): Likewise.
23307 (propagate_pure_const): Likewise.
23308 * ipa-utils.c (dump_cgraph_node_set): Likewise.
23309 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
23310 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
23312 * tree-pretty-print.c (dump_function_header): Likewise.
23313 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
23314 Print symbol order instead of node uids.
23316 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23318 * config/s390/s390.c (s390_register_move_cost): Don't impose the
23319 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
23321 2013-05-15 Richard Biener <rguenther@suse.de>
23323 PR tree-optimization/57275
23324 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
23325 return value for fail to do runtime alias checks for gather loads.
23327 2013-05-15 Jan Hubicka <jh@suse.cz>
23331 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
23332 weakrefs are not external.
23333 (lto_symtab_merge_decls): Fix thinko when dealing with
23334 non-lto_symtab decls.
23335 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
23336 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
23337 * varpool.c (dump_varpool_node): Dump more flags.
23339 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
23341 * config/i386/i386.c (processor_alias_table): Add instruction
23342 FSGSBASE for AMD bdver3 architecture.
23344 2013-05-14 Jakub Jelinek <jakub@redhat.com>
23346 * tree.c (warn_deprecated_use): Print file:line using locus color.
23347 * diagnostic.c (diagnostic_report_current_module): Print file:line
23348 and file:line:column using locus color.
23350 2013-05-14 Mike Stump <mikestump@comcast.net>
23352 * gdbinit.in: Add __null.
23354 2013-05-14 Mike Stump <mikestump@comcast.net>
23356 * recog.h: Rename struct recog_data to Recog_data.
23357 * recog.c: Likewise.
23358 * reload.c (can_reload_into): Likewise.
23359 * config/picochip/picochip.c: Likewise.
23361 2013-05-14 Mike Stump <mikestump@comcast.net>
23363 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
23365 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
23367 * resource.h (struct resources): Remove unch_memory member.
23368 (CLEAR_RESOURCE): Don't clear unch_memory.
23369 * resource.c (mark_referenced_resources): Don't set it.
23370 (mark_set_resources): Likewise.
23371 (mark_target_live_regs): Don't clear it.
23372 (init_resource_info): Likewise.
23373 * reorg.c (resource_conflicts_p): Don't compare it.
23374 (redundant_insn): Don't set it.
23376 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
23378 * emit-rtl.c (next_label): Remove unused function.
23379 (skip_consecutive_labels, link_cc0_insns): Move to ...
23380 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
23381 only place where these functions are used, and make them static.
23383 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
23385 * fold-const.c (fold_negate_expr): Handle vectors.
23386 (fold_truth_not_expr): Make it static.
23387 (fold_invert_truthvalue): New static function.
23388 (invert_truthvalue_loc): Handle vectors. Do not call
23389 fold_truth_not_expr directly.
23390 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
23391 <TRUTH_NOT_EXPR>: Do not cast to boolean.
23392 (fold_comparison): Handle vector constants.
23393 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
23394 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
23395 * tree.h (fold_truth_not_expr): Remove declaration.
23397 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
23399 * config/aarch64/aarch64-simd.md
23400 (aarch64_vcond_internal<mode>): Rename to...
23401 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
23402 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
23403 float modes. Clarify all iterator modes.
23404 (vcond<mode><mode>): Use new name for vcond expanders.
23405 (vcond<v_cmp_result><mode>): Likewise.
23406 (vcondu<mode><mode>: Likewise.
23407 * config/aarch64/iterators.md (VDQF_COND): New.
23409 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
23412 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
23413 variable for the shift amount. Check that we shift by non-negative
23416 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
23419 * config/arm/arm.h (EPILOGUE_USES): Only return true
23420 for LR_REGNUM after epilogue_completed.
23422 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
23424 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
23425 is error_mark_node.
23427 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23430 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
23431 and Solaris 11+/x86 with gld.
23432 * configure: Regenerate.
23434 2013-05-14 Jakub Jelinek <jakub@redhat.com>
23436 * expmed.c (expand_shift_1): Canonicalize rotates by
23437 constant bitsize / 2 to bitsize - 1.
23438 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
23439 case ROTATERT>: Likewise.
23442 2013-05-10 Jakub Jelinek <jakub@redhat.com>
23444 * config/i386/i386.md (rotateinv): New code attr.
23445 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
23446 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
23447 roll $31, %eax, etc.
23449 2013-05-14 Richard Biener <rguenther@suse.de>
23451 PR middle-end/57235
23452 * tree-eh.c (sink_clobbers): Give up for successors with
23453 multiple predecessors and no virtual uses.
23455 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
23457 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
23458 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
23460 2013-05-14 Jakub Jelinek <jakub@redhat.com>
23462 PR middle-end/57251
23463 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
23464 the case when both op0 and op1 have VOIDmode.
23466 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
23468 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
23469 in multiply-accumulate mode.
23471 2013-05-13 Guozhi Wei <carrot@google.com>
23473 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
23475 2013-05-13 Kai Tietz <ktietz@redhat.com>
23478 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
23479 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
23480 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
23481 * config/i386/i386.c (ix86_option_override_internal): Likewise.
23482 (ix86_expand_prologue): Likewise.
23483 (ix86_expand_split_stack_prologue): Likewise.
23484 (legitimate_pic_address_disp_p): Likewise.
23485 (legitimize_pic_address): Likewise.
23486 (legitimize_tls_address): Likewise.
23487 (legitimize_pe_coff_symbol): Likewise.
23488 (output_pic_addr_const): Likewise.
23489 (construct_plt_address): Likewise.
23490 (ix86_expand_call): Likewise.
23491 (x86_output_mi_thunk): Likewise.
23492 (x86_function_profiler): Likewise.
23494 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
23496 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
23497 similar switch cases.
23498 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
23499 (aarch64_simd_mov_to_<mode>low): Delete.
23500 (aarch64_simd_mov_to_<mode>high): Delete.
23501 (move_lo_quad_<mode>): Add w<-r alternative.
23502 (aarch64_simd_move_hi_quad_<mode>): Likewise.
23503 (aarch64_simd_mov_from_*): Update type attribute.
23504 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
23507 2013-05-13 Jan Hubicka <jh@suse.cz>
23509 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
23510 * config/i386/i386.c (ix86_compute_frame_layout,
23511 ix86_expand_epilogue, emit_i387_cw_initialization,
23512 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
23513 ix86_local_alignment): Fix use of size/speed predicates.
23515 2013-05-13 Jakub Jelinek <jakub@redhat.com>
23517 PR tree-optimization/45216
23518 PR tree-optimization/57157
23519 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
23520 the (-Y) & (B - 1) variant if OP is |.
23521 * expmed.c (expand_shift_1): For rotations by const0_rtx just
23522 return shifted. Use (-op1) & (prec - 1) as other_amount
23523 instead of prec - op1.
23525 2013-05-13 Martin Jambor <mjambor@suse.cz>
23527 PR middle-end/42371
23528 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
23529 (ipa_constant_data): New type.
23530 (ipa_jump_func): Use ipa_constant_data to hold information about
23531 constant jump functions.
23532 (ipa_get_jf_constant): Adjust to jump function type changes.
23533 (ipa_get_jf_constant_rdesc): New function.
23534 (ipa_param_descriptor): New field controlled_uses.
23535 (ipa_get_controlled_uses): New function.
23536 (ipa_set_controlled_uses): Likewise.
23537 * ipa-ref.h (ipa_find_reference): Declare.
23538 * ipa-prop.c (ipa_cst_ref_desc): New type.
23539 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
23541 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
23542 New parameter cs. Adjust all callers.
23543 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
23544 (remove_described_reference): New function.
23545 (jfunc_rdesc_usable): Likewise.
23546 (try_make_edge_direct_simple_call): Decrement controlled use count,
23547 attempt to remove reference if it hits zero.
23548 (combine_controlled_uses_counters): New function.
23549 (propagate_controlled_uses): Likewise.
23550 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
23551 (ipa_edge_duplication_hook): Duplicate reference descriptions.
23552 (ipa_print_node_params): Print described use counter.
23553 (ipa_write_jump_function): Adjust to jump function type changes.
23554 (ipa_read_jump_function): New parameter CS, pass it to
23555 ipa_set_jf_constant. Adjust caller.
23556 (ipa_write_node_info): Stream controlled use count
23557 (ipa_read_node_info): Likewise.
23558 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
23560 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
23561 count. Remove cloning-added reference if it reaches zero.
23562 * ipa-ref.c (ipa_find_reference): New function.
23564 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
23566 * config/i386/i386.c (processor_target_table): Modified default
23567 alignment values for AMD BD and BT architectures.
23569 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
23571 * tree-vect-generic.c (uniform_vector_p): Move ...
23572 * tree.c (uniform_vector_p): ... here.
23573 * tree.h (uniform_vector_p): Declare it.
23574 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
23577 2013-05-13 Jakub Jelinek <jakub@redhat.com>
23579 PR tree-optimization/57230
23580 * tree-ssa-strlen.c (handle_char_store): Record length for
23581 array store from STRING_CST.
23583 PR tree-optimization/57230
23584 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
23587 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
23589 * config/epiphany/epiphany.c (epiphany_init): Check size of
23590 NUM_MODES_FOR_MODE_SWITCHING.
23591 (epiphany_expand_prologue):
23592 Remove CONFIG_REGNUM initial value handling code.
23593 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
23594 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
23595 (emit_set_fp_mode, epiphany_mode_after): Likewise.
23596 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
23597 Don't return 1 for FP_MODE_NONE.
23598 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
23599 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
23600 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
23601 * config/epiphany/epiphany.md (save_config): New pattern.
23603 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
23605 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
23607 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
23609 * config/i386/i386.md (memory): Handle sseishft1.
23610 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
23611 (*vec_extractv2di_1): Ditto.
23613 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
23615 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
23618 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
23620 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
23621 Add mthumb/march=armv7-a multilib.
23622 Add mthumb/march=armv7-r multilib.
23623 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
23625 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
23627 * config/v850/t-rtems: Add more multilibs.
23629 2013-05-10 Richard Biener <rguenther@suse.de>
23631 PR tree-optimization/57214
23632 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
23633 not propagate from SSA names that occur in abnormal PHI nodes.
23635 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
23637 * stor-layout.c (element_precision): New function.
23638 * machmode.h (element_precision): Declare it.
23639 * tree.c (build_minus_one_cst): New function.
23640 (element_precision): Likewise.
23641 * tree.h (build_minus_one_cst): Declare new function.
23642 (element_precision): Likewise.
23643 * fold-const.c (operand_equal_p): Use element_precision.
23644 (fold_binary_loc): Handle vector types.
23645 * convert.c (convert_to_integer): Use element_precision.
23646 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
23649 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
23651 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
23652 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
23653 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
23654 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
23655 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
23656 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
23657 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
23658 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
23659 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
23660 (Uuw8): New constraints.
23661 (Usb4): Move into alphabetical order.
23662 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
23663 (sd8_operand, ub8_operand, uw8_operand): New predicates.
23664 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
23665 previously unnamed patterns.
23666 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
23667 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
23668 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
23669 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
23670 of set_attr_alternative/if_then_else. Use extended_mips16 instead
23671 of specific lengths.
23673 2013-05-10 Jakub Jelinek <jakub@redhat.com>
23675 * config/i386/i386.md (rotateinv): New code attr.
23676 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
23677 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
23678 roll $31, %eax, etc.
23680 PR tree-optimization/45216
23681 PR tree-optimization/57157
23682 * tree-ssa-forwprop.c (simplify_rotate): New function.
23683 (ssa_forward_propagate_and_combine): Call it.
23685 2013-05-10 Richard Biener <rguenther@suse.de>
23687 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
23688 disable peeling when we version for aliasing.
23689 (vector_alignment_reachable_p): Honor explicit user alignment.
23690 (vect_supportable_dr_alignment): Likewise.
23691 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
23692 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
23693 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
23694 then peeling to arrange for the cost-model check to come first.
23696 2013-05-10 Alan Modra <amodra@gmail.com>
23698 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
23699 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
23700 * configure: Regenerate.
23702 2013-05-10 Alan Modra <amodra@gmail.com>
23705 * varasm.c (default_elf_select_section): Move !DECL_P check..
23706 (get_named_section): ..to here before calling get_section_name.
23708 (default_section_type_flags): Add DECL_P check.
23709 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
23710 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
23712 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
23714 * config/epiphany/epiphany.c (epiphany_expand_prologue):
23715 When using gen_stack_adjust_str with a register offset, add a
23716 REG_FRAME_RELATED_EXPR note.
23718 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
23720 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
23721 (*vec_extractv4si_zext_mem): Ditto.
23722 (*vec_extractv2di): Add 0->x and x->x alternatives.
23723 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
23724 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
23726 2013-05-09 Jason Merrill <jason@redhat.com>
23728 N3639 C++1y VLA support
23729 * gimplify.c (gimplify_vla_decl): Don't touch an existing
23732 * tree.c (build_constructor_va): New.
23733 * tree.h: Declare it.
23735 2013-05-09 Martin Jambor <mjambor@suse.cz>
23738 * gimple-fold.c (canonicalize_constructor_val): Call
23739 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
23741 2013-05-09 Jan Hubicka <jh@suse.cz>
23742 Richard Biener <rguenther@suse.de>
23745 * symtab.c (symtab_make_decl_local): Do not add private names.
23747 2013-05-09 Jan Hubicka <jh@suse.cz>
23750 * symtab.c (insert_to_assembler_name_hash): Handle clones.
23751 (unlink_from_assembler_name_hash): Likewise.
23752 (symtab_prevail_in_asm_name_hash, symtab_register_node,
23753 symtab_unregister_node, symtab_initialize_asm_name_hash,
23754 change_decl_assembler_name): Update.
23756 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
23758 * config/aarch64/aarch64.md: New movtf split.
23759 (*movtf_aarch64): Update.
23760 (aarch64_movdi_tilow): Handle TF modes and rename to
23761 aarch64_movdi_<mode>low.
23762 (aarch64_movdi_tihigh): Handle TF modes and rename to
23763 aarch64_movdi_<mode>high
23764 (aarch64_movtihigh_di): Handle TF modes and rename to
23765 aarch64_mov<mode>high_di
23766 (aarch64_movtilow_di): Handle TF modes and rename to
23767 aarch64_mov<mode>low_di
23768 (aarch64_movtilow_tilow): Remove spurious whitespace.
23769 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
23771 (aarch64_print_operand): Update.
23773 2013-05-09 Alan Modra <amodra@gmail.com>
23775 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
23777 * configure: Regenerate.
23779 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
23781 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
23782 splitter preparation statements.
23783 * config/i386/sse.md (*vec_extract* splitters): Ditto.
23784 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
23787 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23789 * gimple-ssa-strength-reduction.c (count_candidates): Change
23790 return value to int.
23791 (analyze_candidates_and_replace): Change type of length to int.
23793 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
23795 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
23796 (*vec_extract<mode>): Use VI12_128 mode iterator.
23797 (*vec_extract<mode>_mem): Ditto.
23798 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
23801 2013-05-08 Diego Novillo <dnovillo@google.com>
23806 2012-08-17 Diego Novillo <dnovillo@google.com>
23809 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
23810 * config.in: Regenerate.
23811 * configure: Regenerate.
23812 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
23814 2013-05-08 Jan Hubicka <jh@suse.cz>
23817 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
23818 * cgraph.h (symtab_node_base): Add unique_name.
23819 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
23820 input_overwrite_node, input_varpool_node): Stream unique_name.
23821 * cgraphclones.c (cgraph_create_virtual_clone,
23822 cgraph_function_versioning): Set unique_name.
23823 * ipa.c (function_and_variable_visibility): Set unique_name.
23825 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23827 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
23828 (alloc_cand_and_find_basis): Restrict conditional candidate
23829 processing to CAND_MULTs.
23831 2013-05-08 Jan Hubicka <jh@suse.cz>
23834 lto-symtab.c (lto_symtab_symbol_p): New function.
23835 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
23836 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
23837 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
23838 Skip static symbols.
23840 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
23842 PR tree-optimization/57200
23843 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
23844 Only call inform if the preceding warning_at returns true.
23846 2013-05-07 Han Shen <shenhan@google.com>
23848 * cfgexpand.c (record_or_union_type_has_array_p): New function.
23849 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
23850 * common.opt (fstack-protector-strong): New option.
23851 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
23852 * doc/invoke.texi (Optimization Options): Document
23853 "-fstack-protector-strong".
23854 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
23856 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
23858 * config/mips/mips.c (mips_machine_reorg2): Return 0.
23860 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
23862 * ira.c (update_equiv_regs): Add insn having equiv memory even if
23863 it is not lhs of the insn.
23864 (setup_reg_equiv): Remove insn having equiv memory which it is not
23866 * lra-constraints.c (process_address): Try to improve generation
23867 code for address base + disp.
23868 (lra_constraints): Make correct the code for checking insn setting
23869 up backward equivalence. Remove insn only if it is in the init
23871 * lra-eliminations.c (update_reg_eliminate): Change return value.
23872 (lra_eliminate): Use the result.
23874 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
23876 * config/i386/sse.md (ssescalarnummask): New mode attribute.
23877 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
23878 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
23879 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
23880 register target operands.
23881 (*vec_extractv8hi_sse2): New pattern.
23882 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
23883 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
23884 (*vec_extract<mode>_mem): New insn and split pattern.
23886 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
23888 * config/arm/arm.c (arm_asan_shadow_offset): New function.
23889 (TARGET_ASAN_SHADOW_OFFSET): Define.
23890 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
23891 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
23893 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23895 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
23896 (incr_vec_index): Return -1 if increment not found.
23897 (create_add_on_incoming_edge): Assert if increment not found.
23898 (record_increment): Limit number of increments recorded.
23899 (all_phi_incrs_profitable): Return false if an increment not found.
23900 (replace_profitable_candidates): Don't process increments that were
23902 (analyze_candidates_and_replace): Limit size of incr_vec.
23904 2013-05-07 Richard Biener <rguenther@suse.de>
23906 * calls.c (special_function_p): setjmp-like functions are leaf.
23907 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
23908 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
23910 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
23912 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
23913 (aarch64_simd_mov<mode>): New expander.
23914 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
23915 (aarch64_simd_mov_to_<mode>high): Likewise.
23916 (aarch64_simd_mov_from_<mode>low): Likewise.
23917 (aarch64_simd_mov_from_<mode>high): Likewise.
23918 (aarch64_dup_lane<mode>): Update.
23919 (aarch64_dup_lanedi): New instruction pattern.
23920 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
23921 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
23923 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23925 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
23926 (replace_mult_candidate): Remove unnecessary argument; remove
23927 unnecessary parameter from call to introduce_cast_before_cand.
23928 (replace_unconditional_candidate): Remove unnecessary parameter
23929 from call to replace_mult_candidate.
23930 (replace_conditional_candidate): Likewise.
23931 (insert_initializers): Use make_temp_ssa_name.
23932 (introduce_cast_before_cand): Remove unnecessary argument; use
23933 make_temp_ssa_name.
23934 (replace_one_candidate): Remove unnecessary argument; remove
23935 unnecessary parameter from calls to introduce_cast_before_cand.
23936 (replace_profitable_candidates): Remove unnecessary parameters
23937 from calls to replace_one_candidate.
23939 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23941 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
23942 phi def as possibly hiding a basis for a CAND_ADD whose operands
23943 have been commuted in the analysis.
23944 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
23946 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
23948 * config/aarch64/aarch64.md
23949 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
23950 shift value between 0-4.
23952 2013-05-07 Richard Biener <rguenther@suse.de>
23954 * double-int.h (rshift): New overload.
23955 * double-int.c (rshift): New function.
23956 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
23957 (create_reference_ops_from_ref): Remove.
23958 (vn_reference_insert): Use shared ops for constructing the
23959 reference and copy it.
23961 2013-05-07 Richard Biener <rguenther@suse.de>
23963 PR middle-end/57190
23964 * tree-eh.c (sink_clobbers): Properly propagate
23965 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
23967 2013-05-07 Jakub Jelinek <jakub@redhat.com>
23969 PR tree-optimization/57149
23970 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
23971 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
23972 collect_phi_def_edges, execute_late_warn_uninitialized): Use
23973 uninit_undefined_value_p instead of ssa_undefined_value_p.
23976 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
23977 for modifier == EXPAND_INITIALIZER.
23979 2013-05-07 Anton Blanchard <anton@samba.org>
23981 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
23982 for powerpc64 little endian.
23983 * configure: Regenerate.
23985 2013-05-06 Graham Stott <grahams@btinternet.com>
23987 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
23988 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
23989 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
23990 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
23992 2013-05-06 Graham Stott <grahams@btinternet.com>
23994 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
23995 codes which allow non-lvalues.
23997 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
23999 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
24000 components are all 1s.
24001 (integer_minus_onep): New function.
24002 * tree.h (integer_minus_onep): Declare it.
24003 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
24004 integer_minus_onep instead of integer_all_onesp.
24006 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
24009 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
24010 variations of these patterns.
24012 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
24014 * config/i386/i386.md (isa): Add x64_sse4 member.
24015 (enabled): Handle x64_sse4.
24016 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
24017 instruction for 64bit SSE4_1 targets. Update insn attributes.
24018 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
24019 instruction for SSE4_1 targets. Update insn attributes.
24020 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
24021 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
24022 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
24024 (*vec_extractv4si): Rename from *sse4_1_pextrd.
24025 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
24026 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
24028 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
24031 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
24033 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
24035 * final.c (do_assembler_dialects): Don't handle curly braces and
24036 vertical bar escaped by % as dialect delimiters.
24037 (output_asm_insn): Print curly braces and vertical bar if escaped
24038 by % and ASSEMBLER_DIALECT defined.
24039 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
24040 * doc/tm.texi: Regenerated.
24042 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
24044 * config/mips/mips.c: Include tree-pass.h.
24045 (mips_reorg): Split in pre- and post-dbr_schedule parts.
24046 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
24047 (pass_mips_machine_reorg2): New machine specific pass.
24048 (insert_pass_mips_machine_reorg2): New pass plugin definition.
24049 (mips_option_override): Register the new pass.
24050 * rtl.h (cleanup_barriers): Remove prototype.
24051 (dbr_schedule): Likewise.
24052 * jump.c (cleanup_barriers): Make static.
24053 * reorg.c (dbr_schedule): Likewise.
24055 2013-05-06 Richard Biener <rguenther@suse.de>
24057 PR tree-optimization/57185
24058 * tree-parloops.c (add_field_for_reduction): Handle anonymous
24059 SSA names properly.
24061 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
24064 * config/i386/i386.c (add_parameter_dependencies): Add dependence
24065 between "first_arg" and "insn", not "last" and "insn".
24067 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24069 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
24070 (find_candidates_in_block): Re-enable slsr_process_phi.
24071 (create_phi_basis): Fix double counting of candidate adjustment.
24073 2013-05-06 Richard Biener <rguenther@suse.de>
24075 PR middle-end/57147
24076 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
24077 the edge is also fallthru, preserve it and just clear the
24079 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
24080 also complex, preserve that and just clear the fallthru flag.
24081 * tree-inline.c (update_ssa_across_abnormal_edges): Also
24082 update virtual operands.
24084 2013-05-06 Alan Modra <amodra@gmail.com>
24086 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
24087 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
24088 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
24089 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
24090 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
24091 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
24093 2013-05-06 Alan Modra <amodra@gmail.com>
24095 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
24096 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
24097 (DEFAULT_ASM_ENDIAN): Define.
24098 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
24099 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
24100 Update -K PIC clause from sysv4.h.
24101 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
24102 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
24104 2013-05-06 Alan Modra <amodra@gmail.com>
24106 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
24107 twice for little-endian.
24108 (ashrdi3_no_power, ashrdi3): Support little-endian.
24110 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
24113 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
24114 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
24116 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
24117 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
24118 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
24121 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
24122 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24124 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
24125 * config/pa/pa.opt: Make mbig-switch a no-op.
24126 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
24127 (CASE_VECTOR_MODE): Always return SImode.
24128 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
24129 for the !TARGET_BIG_SWITCH case.
24130 * config/pa/pa-linux.h: Likewise.
24131 * config/pa/pa-openbsd.h: Likewise.
24132 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
24133 * config/pa/pa.md (short_jump): Remove define_insn.
24134 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
24135 (casesi0): Remove define_insn.
24136 (type): Remove btable_branch.
24137 (pa_combine_type): Likewise.
24138 (in_nullified_branch_delay): Likewise.
24139 (in_call_delay): Likewise.
24140 (define_delay): Likewise.
24141 (define_insn_reservation "Z3"): Likewise.
24142 (define_insn_reservation "Z4"): Likewise.
24143 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
24144 (pa_adjust_insn_length): Remove adjustment for btable branches.
24145 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
24148 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
24150 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
24151 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
24152 Add m->r,x alternatives.
24153 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
24154 splitters using SWI48x mode iterator.
24155 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
24156 TARGET_64BIT. Add m->x alternative.
24157 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
24158 Add o->x alternative. Enable for TARGET_SSE.
24159 (sse_storeq): Remove expander.
24160 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
24161 with memory input operand.
24162 (*vec_extractv2di_1 splitter): New.
24163 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
24164 * config/i386/i386.md (ssevecmodelower): New mode attribute.
24166 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
24168 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
24169 (INT_LOWPART): Delete.
24170 (extract_MB): Adjust.
24171 (extract_ME): Adjust.
24172 (print_operand): Adjust.
24174 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
24176 * config/rs6000/predicates.md (reg_or_add_cint_operand,
24177 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
24178 (reg_or_logical_cint_operand, easy_fp_constant,
24179 logical_const_operand): Delete "CONST_DOUBLE" case.
24180 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
24181 "HOST_BITS_PER_WIDE_INT == 64" test.
24182 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
24183 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
24184 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
24185 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
24187 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
24188 CONST_DOUBLE DImode/VOIDmode case.
24189 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
24190 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
24191 CONST_DOUBLE VOIDmode case.
24192 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
24193 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
24194 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
24195 Delete CONST_DOUBLE case.
24196 (splitters for mov FMOVE64 const_double): Delete
24197 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
24198 "HOST_BITS_PER_WIDE_INT >= 64" test.
24199 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
24201 (mov DI const_double): Delete.
24203 2013-05-04 Jakub Jelinek <jakub@redhat.com>
24205 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
24206 on op shows all bits zero in mode of a lowpart subreg, return zero.
24208 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
24211 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
24212 to save TFmode registers and DImode to save TImode registers for
24213 caller save operations.
24214 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
24215 mark being partially clobbered since they only use the first
24218 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
24219 and TDmode only use the upper 64-bits of each VSX register.
24221 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24223 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
24224 (find_candidates_in_block): Disable slsr_process_phi.
24226 2013-05-03 Guozhi Wei <carrot@google.com>
24228 * coverage.c (coverage_obj_init): Move the construction of gcov
24230 (build_init_ctor): ... here.
24232 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24234 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
24235 (slsr_cand_d): Redefine def_phi.
24236 (stride_status, phi_adjust_status, count_phis_status): New enums.
24237 (find_phi_def): New.
24238 (find_basis_for_base_expr): New.
24239 (find_basis_for_candidate): Handle hidden bases.
24240 (alloc_cand_and_find_basis): Handle phi candidates.
24241 (slsr_process_phi): New.
24242 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
24243 (create_mul_imm_cand): Likewise.
24244 (create_add_ssa_cand): Exclude phi base candidates.
24245 (create_add_imm_cand): Likewise.
24246 (slsr_process_cast): Likewise.
24247 (slsr_process_copy): Likewise.
24248 (find_candidates_in_block): Handle phi candidates.
24249 (dump_candidate): Likewise.
24250 (unconditional_cands): Delete.
24251 (unconditional_cands_with_known_stride_p): Delete.
24252 (phi_dependent_cand_p): New.
24253 (cand_increment): Handle phi-dependent candidates.
24254 (replace_dependent): Delete.
24255 (replace_mult_candidate): New.
24256 (replace_unconditional_candidate): New.
24257 (incr_vec_index): Move to avoid forward reference.
24258 (create_add_on_incoming_edge): New.
24259 (create_phi_basis): New.
24260 (replace_dependents): Delete.
24261 (replace_conditional_candidate): New.
24262 (phi_add_costs): New.
24263 (replace_uncond_cands_and_profitable_phis): New.
24264 (record_increment): Handle phi adjustments.
24265 (record_phi_increments): New.
24266 (record_increments): Handle phi adjustments.
24267 (phi_incr_cost): New.
24268 (lowest_cost_path): Handle phis.
24269 (total_savings): Likewise.
24270 (analyze_increments): Likewise.
24271 (ncd_with_phi): New.
24272 (ncd_of_cand_and_phis): New.
24273 (nearest_common_dominator_for_cands): Handle phi increments.
24274 (all_phi_incrs_profitable): New.
24275 (replace_profitable_candidates): Handle phi-dependent candidates.
24276 (analyze_candidates_and_replace): Likewise.
24278 2013-05-03 Teresa Johnson <tejohnson@google.com>
24281 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
24282 do not exceed REG_BR_PROB_BASE.
24284 2013-05-03 Jeff Law <law@redhat.com>
24286 PR tree-optimization/57144
24287 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
24288 operand of the condition will bit into the new type when eliminating
24289 a cast feeding a condition.
24291 2013-05-03 Jakub Jelinek <jakub@redhat.com>
24293 PR rtl-optimization/57130
24294 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
24295 of COMPARE as in_code to the recursive call if needed.
24297 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
24299 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
24300 (enabled): Handle new members.
24301 * config/i386/sse.md (*vec_concatv2si): Merge from
24302 *vec_concatv2si_sse2 and vec_concatv2si_sse.
24303 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
24305 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
24307 PR tree-optimization/57027
24308 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
24309 for fnms opportunity, check we got the prerequisite kind
24310 of tree / gimple before using accessor functions.
24312 2013-05-03 Richard Biener <rguenther@suse.de>
24314 * double-int.h (lshift): New overload without precision
24315 and arith argument.
24316 (operator *=, operator +=, operator -=): Move ...
24317 * double-int.c (operator *=, operator +=, operator -=): ... here
24318 and implement more efficiently.
24319 (mul_double_with_sign): Remove.
24320 (lshift_double): Adjust to take unsinged shift argument, push
24321 dispatching code to callers.
24322 (mul_double_wide_with_sign): Add early out for callers that
24323 are not interested in high parts or overflow.
24324 (lshift): New function.
24325 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
24326 dispatch code here.
24327 (lrotate, rrotate): Use logical shifts.
24328 * expr.c (get_inner_reference): Use lshift.
24329 * fixed-value.c (do_fixed_divide): Likewise.
24330 * tree-dfa.c (get_ref_base_and_extent): Likewise.
24331 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
24332 (indirect_refs_may_alias_p): Likewise.
24333 (stmt_kills_ref_p_1): Likewise.
24335 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
24337 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
24339 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
24341 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
24342 scalar form of FABD instruction.
24344 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
24346 * lra-constraints.c (process_alt_operands): Add checking alt
24347 number to choose the best alternative.
24349 2013-05-02 Richard Biener <rguenther@suse.de>
24351 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
24352 bitmap and its handling.
24353 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
24355 2013-05-02 Richard Biener <rguenther@suse.de>
24357 PR middle-end/57140
24358 * tree-inline.c (copy_loops): Properly handle removed loops.
24359 (copy_cfg_body): Mark destination loops for fixup if source
24360 loops needed fixup.
24362 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
24365 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
24366 generating simple_return for naked functions.
24368 2013-05-02 Martin Jambor <mjambor@suse.cz>
24370 PR middle-end/56988
24371 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
24372 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
24374 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
24375 ipa_agg_replacement_value structures.
24376 (known_aggs_to_agg_replacement_list): Likewise.
24377 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
24378 (read_agg_replacement_chain): Likewise.
24379 (ipcp_transform_function): Also check that by_ref flags match.
24381 2013-05-02 Richard Biener <rguenther@suse.de>
24383 * graphds.h (struct graph): Add obstack member.
24384 * graphds.c (new_graph): Initialize obstack and allocate
24386 (add_edge): Allocate edge from the obstack.
24387 (free_graph): Free the obstack instead of all edges and vertices.
24389 2013-05-02 Teresa Johnson <tejohnson@google.com>
24391 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
24393 * cfg.c (update_bb_profile_for_threading): Ditto.
24394 * tree-inline.c (copy_bb): Ditto.
24395 (copy_edges_for_bb): Ditto.
24396 (initialize_cfun): Ditto.
24397 (copy_cfg_body): Ditto.
24398 (expand_call_inline): Ditto.
24399 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
24400 (estimate_node_size_and_time): Ditto.
24401 (inline_merge_summary): Ditto.
24402 * cgraphclones.c (cgraph_clone_edge): Ditto.
24403 (cgraph_clone_node): Ditto.
24404 * sched-rgn.c (compute_dom_prob_ps): Ditto.
24405 (compute_trg_info): Ditto.
24407 2013-05-02 Ian Bolton <ian.bolton@arm.com>
24409 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
24410 S reg when fp attribute set.
24411 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
24413 2013-05-02 Ian Bolton <ian.bolton@arm.com>
24415 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
24417 (*and_one_cmplsi3_compare0_uxtw): Likewise.
24418 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
24419 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
24421 2013-05-02 Richard Biener <rguenther@suse.de>
24423 * tree-scalar-evolution.c (scev_info_hasher): Remove.
24424 (struct instantiate_cache_entry): New type.
24425 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
24426 (struct instantiate_cache_type): New type.
24427 (set_instantiated_value, get_instantiated_value): Remove.
24428 (get_instantiated_value_entry): New function.
24429 (instantiate_scev_name): Use the new cache and adjust.
24430 (instantiate_scev_poly): Adjust.
24431 (instantiate_scev_binary): Likewise.
24432 (instantiate_array_ref): Likewise.
24433 (instantiate_scev_convert): Likewise.
24434 (instantiate_scev_not): Likewise.
24435 (instantiate_scev_3): Likewise.
24436 (instantiate_scev_2): Likewise.
24437 (instantiate_scev_r): Likewise.
24438 (instantiate_scev): Likewise.
24439 (resolve_mixers): Likewise.
24441 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
24444 * lra-constraints.c (best_small_class_operands_num): Remove.
24445 (process_alt_operands): Remove small_class_operands_num. Take
24446 small classes operands into losers and only if the operand is not
24447 matched. Modify debugging output.
24448 (curr_insn_transform): Remove best_small_class_operands_num.
24451 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
24453 * config/aarch64/aarch64-builtins.c
24454 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
24455 * config/aarch64/aarch64-simd-builtins.def
24456 (reduc_splus_): Add new modes.
24457 (reduc_uplus_): New.
24458 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
24459 (reduc_uplus_v4sf): Likewise.
24460 (reduc_splus_v4sf): Likewise.
24461 (aarch64_addv<mode>): Likewise.
24462 (reduc_uplus_<mode>): Likewise.
24463 (reduc_splus_<mode>): Likewise.
24464 (aarch64_addvv2di): Likewise.
24465 (reduc_uplus_v2di): Likewise.
24466 (reduc_splus_v2di): Likewise.
24467 (aarch64_addvv2si): Likewise.
24468 (reduc_uplus_v2si): Likewise.
24469 (reduc_splus_v2si): Likewise.
24470 (reduc_<sur>plus_<mode>): New.
24471 (reduc_<sur>plus_v2di): Likewise.
24472 (reduc_<sur>plus_v2si): Likewise.
24473 (reduc_<sur>plus_v4sf): Likewise.
24474 (aarch64_addpv4sf): Likewise.
24475 * config/aarch64/arm_neon.h
24476 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
24477 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
24478 add UNSPEC_SADDV, UNSPEC_UADDV.
24480 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
24482 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
24484 * config/aarch64/arm_neon.h
24485 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
24487 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
24489 * config/aarch64/aarch64-builtins
24490 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
24492 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
24494 * config/aarch64/aarch64-simd-builtins.def
24495 (reduc_smax_): New.
24496 (reduc_smin_): Likewise.
24497 (reduc_umax_): Likewise.
24498 (reduc_umin_): Likewise.
24499 (reduc_smax_nan_): Likewise.
24500 (reduc_smin_nan_): Likewise.
24503 (smax): Update for V2SF, V4SF and V2DF modes.
24506 (smin_nan): Likewise.
24507 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
24508 (<su><maxmin><mode>3): ...This, refactor.
24509 (s<maxmin><mode>3): New.
24510 (<maxmin_uns><mode>3): Likewise.
24511 (reduc_<maxmin_uns>_<mode>): Refactor.
24512 (reduc_<maxmin_uns>_v4sf): Likewise.
24513 (reduc_<maxmin_uns>_v2si): Likewise.
24514 (aarch64_<fmaxmin><mode>: Remove.
24515 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
24517 (vmin<q>_f<32,64>): Likewise.
24518 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
24520 (su): Add mappings for smax, smin, umax, umin.
24522 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
24523 (FMAXMIN): Rename as...
24524 (FMAXMIN_UNS): ...This.
24526 (fmaxminv): Likewise.
24527 (fmaxmin): Likewise.
24529 (maxmin_uns_op): Likewise.
24531 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
24533 * config/aarch64/arm_neon.h
24534 (vac<ge, gt><sd>_f<32, 64>): Rename to...
24535 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
24536 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
24538 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
24540 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
24541 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
24543 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
24545 * config/aarch64/aarch64-simd.md
24546 (vcond<mode>_internal): Handle special cases for constant masks.
24547 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
24548 (vcondu<mode><mode>): Likewise.
24549 (vcond<v_cmp_result><mode>): New.
24551 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
24553 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
24554 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
24555 * config/aarch64/aarch64-simd-builtins.def
24556 (cmeq): Update to BUILTIN_VALLDI.
24561 * config/aarch64/arm_neon.h
24562 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
24563 to builtins or C as appropriate.
24565 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
24567 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
24569 (cmhi): Rename to...
24571 * config/aarch64/aarch64-simd.md
24572 (simd_mode): Add SF.
24573 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
24574 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
24575 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
24576 (cstore<mode>_neg): ...This.
24577 * config/aarch64/iterators.md
24579 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
24580 (COMPARISONS): New.
24581 (UCOMPARISONS): Likewise.
24582 (optab): Add missing comparisons.
24588 (VCMP_S): Likewise.
24589 (VCMP_U): Likewise.
24590 (V_cmp_result): Add DF, SF modes.
24591 (v_cmp_result): Likewise.
24593 (vmtype): Likewise.
24594 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
24596 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
24598 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
24599 define_insn to define_insn_and_split.
24600 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
24601 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
24602 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
24603 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
24604 (thumb2_negscc): Likewise.
24606 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
24608 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
24610 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
24612 * config/arm/thumb2.md: Remove trailing whitespaces.
24614 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24616 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
24617 Use gen_int_mode rather than GEN_INT.
24619 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
24621 * value-prof.c (stream_in_histogram_value): Remove the strayed
24624 2013-04-30 Richard Biener <rguenther@suse.de>
24626 PR middle-end/57122
24627 * cfghooks.c (split_edge): Properly check for the loop latch edge.
24629 2013-04-30 Richard Biener <rguenther@suse.de>
24631 PR middle-end/57107
24632 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
24634 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
24636 PR rtl-optimization/56957
24637 PR rtl-optimization/57105
24638 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
24639 variable. Use just INSN_UID for determining whether an insn
24640 should be only disconnected from the insn stream.
24641 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
24643 2013-04-30 Jakub Jelinek <jakub@redhat.com>
24645 PR tree-optimization/57104
24646 * tsan.c (instrument_expr): Don't instrument accesses to
24647 DECL_HARD_REGISTER VAR_DECLs.
24649 2013-04-30 Richard Biener <rguenther@suse.de>
24651 * function.h (loops_for_fn): New inline function.
24652 (set_loops_for_fn): Likewise.
24653 * cfgloop.h (place_new_loop): Add struct function parameter.
24654 (get_loop): Likewise.
24655 (get_loops): Likewise.
24656 (number_of_loops): Likewise.
24657 (fel_next): Adjust.
24658 (fel_init): Likewise.
24659 * cfg.c (get_loop_copy): Adjust.
24660 * cfgloop.c (flow_loops_dump): Likewise.
24661 (record_loop_exits): Likewise.
24662 (verify_loop_structure): Likewise.
24663 * cfgloopanal.c (mark_irreducible_loops): Likewise.
24664 (estimate_reg_pressure_cost): Likewise.
24665 (mark_loop_exit_edges): Likewise.
24666 * cfgloopmanip.c (place_new_loop): Likewise.
24667 (add_loop): Likewise.
24668 (duplicate_loop): Likewise.
24669 * graph.c (draw_cfg_nodes): Likewise.
24670 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
24671 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
24672 (extract_affine_chrec): Likewise.
24673 (build_scop_iteration_domain): Likewise.
24674 * graphite.c (graphite_initialize): Likewise.
24675 * ira-build.c (create_loop_tree_nodes): Likewise.
24676 (more_one_region_p): Likewise.
24677 (rebuild_regno_allocno_maps): Likewise.
24678 (mark_loops_for_removal): Likewise.
24679 (mark_all_loops_for_removal): Likewise.
24680 (remove_unnecessary_regions): Likewise.
24681 (ira_build): Likewise.
24682 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
24683 * loop-init.c (fix_loop_structure): Likewise.
24684 (gate_rtl_move_loop_invariants): Likewise.
24685 (gate_rtl_unswitch): Likewise.
24686 (gate_rtl_unroll_and_peel_loops): Likewise.
24687 (rtl_doloop): Likewise.
24688 * lto-streamer-in.c (input_cfg): Likewise.
24689 * lto-streamer-out.c (output_cfg): Likewise.
24690 * modulo-sched.c (sms_schedule): Likewise.
24691 * predict.c (tree_estimate_probability): Likewise.
24692 (tree_estimate_probability_driver): Likewise.
24693 (estimate_loops): Likewise.
24694 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
24695 (move_sese_region_to_fn): Likewise.
24696 (debug_loop_num): Likewise.
24697 * tree-chrec.c (chrec_evaluate): Likewise.
24698 (hide_evolution_in_other_loops_than_loop): Likewise.
24699 (chrec_component_in_loop_num): Likewise.
24700 (reset_evolution_in_loop): Likewise.
24701 (evolution_function_is_invariant_rec_p): Likewise.
24702 * tree-if-conv.c (main_tree_if_conversion): Likewise.
24703 * tree-inline.c (copy_loops): Likewise.
24704 (copy_cfg_body): Likewise.
24705 (tree_function_versioning): Likewise.
24706 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
24707 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
24709 (add_to_evolution_1): Likewise.
24710 (scev_const_prop): Likewise.
24711 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
24712 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
24713 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
24714 (tree_ssa_lim_initialize): Likewise.
24715 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
24716 (verify_loop_closed_ssa): Likewise.
24717 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
24718 (tree_ssa_loop_im): Likewise.
24719 (tree_ssa_loop_unswitch): Likewise.
24720 (tree_vectorize): Likewise.
24721 (check_data_deps): Likewise.
24722 (tree_ssa_loop_ivcanon): Likewise.
24723 (tree_ssa_loop_bounds): Likewise.
24724 (tree_complete_unroll): Likewise.
24725 (tree_complete_unroll_inner): Likewise.
24726 (tree_parallelize_loops): Likewise.
24727 (tree_ssa_loop_prefetch): Likewise.
24728 (tree_ssa_loop_ivopts): Likewise.
24729 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
24730 * tree-vectorizer.c (vectorize_loops): Likewise.
24732 2013-04-29 Mike Frysinger <vapier@gentoo.org>
24734 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
24735 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
24736 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
24737 with EABI_LINK_SPEC.
24739 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
24742 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
24745 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
24748 * lra-constraints.c (process_alt_operands): Discourage a bit more
24749 using memory for pseudos. Print cost dump for alternatives.
24750 Modify cost values for conflicts with early clobbers.
24751 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
24753 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
24756 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
24758 2013-04-29 Ian Bolton <ian.bolton@arm.com>
24760 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
24761 from/to S register.
24762 (movdi_aarch64): Support LDR/STR from/to D register.
24764 2013-04-29 Ian Bolton <ian.bolton@arm.com>
24766 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
24767 or higher by default.
24769 2013-04-29 Richard Biener <rguenther@suse.de>
24771 PR middle-end/57075
24772 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
24773 even if not adding abnormal edges for calls that can make
24776 2013-04-29 Richard Biener <rguenther@suse.de>
24778 PR middle-end/57103
24779 * tree-cfg.c (move_stmt_op): Fix condition under which to update
24781 (move_stmt_r): Remove redundant checking.
24783 2013-04-29 Teresa Johnson <tejohnson@google.com>
24786 * basic-block.h (apply_scale): New function.
24787 (apply_probability): Use apply_scale.
24788 * gimple-streamer-in.c (input_bb): Ditto.
24789 * lto-streamer-in.c (input_cfg): Ditto.
24790 * lto-cgraph.c (merge_profile_summaries): Ditto.
24791 * tree-optimize.c (execute_fixup_cfg): Ditto.
24792 * tree-inline.c (copy_bb): Update comment to use apply_scale.
24793 (copy_edges_for_bb): Ditto.
24794 (copy_cfg_body): Ditto.
24796 2013-04-29 Tom de Vries <tom@codesourcery.com>
24798 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
24799 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
24800 (tail_merge_optimize): Handle current_loops == NULL.
24802 2013-04-26 Jeff Law <law@redhat.com>
24804 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
24805 (simplify_cond_using_ranges): Generalize code to simplify
24806 COND_EXPRs where one argument is a constant and the other
24807 is an SSA_NAME created by an integral type conversion.
24809 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24811 * config/arm/arm.md (store_minmaxsi): Use only when
24812 optimize_insn_for_size_p.
24814 2013-04-29 Christian Bruel <christian.bruel@st.com>
24817 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
24819 2013-04-29 Richard Biener <rguenther@suse.de>
24821 PR middle-end/57089
24822 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
24823 loop tree make sure to schedule a fixup for the child as well.
24824 (expand_omp_for_generic): Properly add loops.
24825 (expand_omp_for_static_nochunk): Likewise.
24826 (expand_omp_for_static_chunk): Likewise.
24827 (expand_omp_for): For the degenerate case fixup loops.
24828 (expand_omp_sections): Fix default bb placement in loops.
24829 (expand_omp_atomic_pipeline): Properly add loops.
24831 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24833 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
24835 2013-04-29 Tom de Vries <tom@codesourcery.com>
24837 * tree-ssa-tail-merge.c: Update header comment.
24839 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
24841 * config/aarch64/arm_neon.h
24842 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
24843 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
24844 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
24845 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
24846 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
24847 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
24848 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
24849 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
24851 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
24853 * config/aarch64/aarch64-simd.md
24854 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
24855 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
24856 fix_trunc, fixuns_trunc.
24857 (ftrunc<VDQF:mode>2): New.
24858 * config/aarch64/iterators.md (optab): Add fix, fixuns.
24859 (fix_trunc_optab): New.
24861 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
24863 * config/aarch64/aarch64-builtins.c
24864 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
24865 iceilf, lround, iroundf.
24867 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
24870 * config/i386/i386.h (enum ix86_tune_indices)
24871 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
24872 New, split from X86_TUNE_INTER_UNIT_MOVES.
24873 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
24874 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
24875 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
24876 (TARGET_INTER_UNIT_MOVES): Remove.
24877 * config/i386/i386.c (initial_ix86_tune_features): Update.
24878 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
24879 (ix86_expand_convert_uns_didf_sse): Use
24880 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
24881 (ix86_expand_vector_init_one_nonzero): Ditto.
24882 (ix86_expand_vector_init_interleave): Ditto.
24883 (inline_secondary_memory_needed): Return true for moves from SSE class
24884 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
24885 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
24886 * config/i386/constraints.md (Yi, Ym): Depend on
24887 TARGET_INTER_UNIT_MOVES_TO_VEC.
24888 (Yj, Yn): New constraints.
24889 * config/i386/i386.md (*movdi_internal): Change constraints of
24890 operand 1 from Yi to Yj and from Ym to Yn.
24891 (*movsi_internal): Ditto.
24892 (*movdf_internal): Ditto.
24893 (*movsf_internal): Ditto.
24894 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
24895 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
24896 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
24897 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
24898 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
24899 * config/i386/sse.md (movdi_to_sse): Ditto.
24900 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
24901 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
24902 TARGET_INTER_UNIT_MOVES.
24903 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
24904 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
24905 instead of TARGET_INTER_UNIT_MOVES.
24906 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
24907 operand 1 from Yi to Yj and from Ym to Yn.
24909 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
24911 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
24912 (float_truncate_hi_): Likewise.
24913 (float_extend_lo_): Likewise.
24914 (float_truncate_lo_): Likewise.
24915 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
24916 (aarch64_float_extend_lo_v2df): Likewise.
24917 (vec_unpacks_hi_v4sf): Likewise.
24918 (aarch64_float_truncate_lo_v2sf): Likewise.
24919 (aarch64_float_truncate_hi_v4sf): Likewise.
24920 (vec_pack_trunc_v2df): Likewise.
24921 (vec_pack_trunc_df): Likewise.
24923 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
24925 * config/aarch64/aarch64-builtins.c
24926 (aarch64_fold_builtin): Fold float conversions.
24927 * config/aarch64/aarch64-simd-builtins.def
24928 (floatv2si, floatv4si, floatv2di): New.
24929 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
24930 * config/aarch64/aarch64-simd.md
24931 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
24932 * config/aarch64/iterators.md (FLOATUORS): New.
24933 (optab): Add float, floatuns.
24934 (su_optab): Likewise.
24936 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
24938 * config/aarch64/aarch64-builtins.c
24939 (aarch64_builtin_vectorized_function): Use new names for
24941 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
24942 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
24943 (fcvtzu): Split as...
24944 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
24945 (fcvtas): Split as...
24946 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
24947 (fcvtau): Split as...
24948 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
24949 (fcvtps): Split as...
24950 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
24951 (fcvtpu): Split as...
24952 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
24953 (fcvtms): Split as...
24954 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
24955 (fcvtmu): Split as...
24956 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
24957 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
24958 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
24959 (lfrintnusf, lfrintnudf): Likewise.
24960 * config/aarch64/aarch64-simd.md
24961 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
24963 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
24964 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
24965 (fcvt_pattern): Likewise.
24967 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
24969 * config/aarch64/aarch64-simd.md
24970 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
24971 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
24973 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
24975 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
24976 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
24977 (vrnd<a,m,n,p>_f32): Implement using builtins.
24978 (vrnd<i,x><q>_f<32, 64>): New.
24980 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
24982 * config/aarch64/aarch64-builtins.c
24983 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
24984 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
24985 (frintz): Rename to...
24987 (frintp): Rename to...
24989 (frintm): Rename to...
24991 (frinti): Rename to...
24992 (nearbyint): ...this.
24993 (frintx): Rename to...
24995 (frinta): Rename to...
24997 * config/aarch64/aarch64-simd.md
24998 (aarch64_frint<frint_suffix><mode>): Delete.
24999 (<frint_pattern><mode>2): Convert to insn.
25000 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
25001 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
25002 (frint_pattern): Likewise.
25003 (frint_suffix): Likewise.
25005 2013-04-29 Richard Biener <rguenther@suse.de>
25007 PR tree-optimization/57081
25008 * loop-init.c: Include tree-flow.h.
25009 (loop_optimizer_finalize): Free number of iteration estimates.
25010 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
25012 2013-04-29 Jakub Jelinek <jakub@redhat.com>
25014 PR tree-optimization/57083
25015 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
25016 non-singleton shift count range, zero extend low_bound for uns case.
25018 * config/i386/predicates.md (general_vector_operand): New predicate.
25019 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
25020 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
25021 if they aren't nonimmediate operands. If their original values
25022 satisfy const_vector_equal_evenodd_p, don't shift them.
25023 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
25024 predicates. For the SSE4.1 case force operands[{1,2}] into registers
25025 if not nonimmediate_operand.
25026 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
25027 instead of register_operand.
25028 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
25030 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
25032 * stor-layout.c (finalize_size_functions): Allocate a structure and
25033 reset cfun before dumping the functions.
25035 2013-04-27 Jakub Jelinek <jakub@redhat.com>
25037 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
25040 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
25041 use xop_pmacsdqh if uns_p.
25042 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
25043 the immediate rotate count.
25045 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
25047 * rtl.h (struct rtx_def): Add comment for field jump.
25048 (LRA_SUBREG_P): New macro.
25049 * recog.c (register_operand): Check LRA_SUBREG_P.
25050 * lra.c (lra): Add note at the end of RTL code. Align non-empty
25052 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
25053 (lra_final_code_change): Skip subreg change for operators.
25054 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
25055 if there are no operand changes.
25056 * lra-constraints.c (curr_insn_set): New.
25057 (match_reload): Set LRA_SUBREG_P.
25058 (emit_spill_move): Ditto.
25059 (check_and_process_move): Use curr_insn_set. Process only single
25060 set insns. Don't initialize sec_mem_p and change_p.
25061 (simplify_operand_subreg): Use LRA_SUBREG_P.
25062 (reg_in_class_p): New function.
25063 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
25064 of #ifdef. Add code to remove cycling.
25065 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
25066 non-null disp. Reload inner instead of disp when base and index
25067 are null. Try to put lo_sum into register.
25068 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
25069 (check_and_process_move): Move code for move cost check to
25070 simple_move_p. Remove equiv_substitution.
25071 (simple_move_p): New function.
25072 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
25073 curr_insn_set. Call check_and_process_move only for single set
25074 insns. Use the new function. Move call of check_and_process_move
25075 after operand equiv substitution and address process.
25077 2013-04-26 Jakub Jelinek <jakub@redhat.com>
25080 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
25081 with nonlocal goto receivers or returns twice calls, ignore
25082 unininitialized values from abnormal edges to nl goto receiver
25083 or returns twice call.
25085 2013-04-26 Jakub Jelinek <jakub@redhat.com>
25087 PR tree-optimization/57051
25088 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
25089 and VEC_RSHIFT_EXPR if shift count is a multiple of element
25092 2013-04-26 Richard Biener <rguenther@suse.de>
25094 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
25095 (expand_omp_taskreg): Likewise. Mark loops for fixup.
25096 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
25097 (fixup_loop_arrays_after_move): New function.
25098 (move_sese_region_to_fn): Properly outline the loop tree parts
25099 of the SESE region.
25101 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
25103 * config/i386/i386.md (type, unit): Fix long lines.
25105 2013-04-26 Richard Biener <rguenther@suse.de>
25107 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
25108 (lto-streamer-out.o): Likewise.
25109 * cfgloop.c (init_loops_structure): Export, add struct function
25110 argument and adjust.
25111 (flow_loops_find): Adjust.
25112 * cfgloop.h (enum loop_estimation): Add EST_LAST.
25113 (init_loops_structure): Declare.
25114 * lto-streamer-in.c: Include cfgloop.h.
25115 (input_cfg): Input the loop tree.
25116 * lto-streamer-out.c: Include cfgloop.h.
25117 (output_cfg): Output the loop tree.
25118 (output_struct_function_base): Do not drop PROP_loops.
25120 2013-03-26 Richard Biener <rguenther@suse.de>
25122 * tree-cfg.c (execute_build_cfg): Build the loop tree.
25123 (pass_build_cfg): Provide PROP_loops.
25124 (move_sese_region_to_fn): Remove loops that are outlined into fn
25126 * tree-inline.c: Include cfgloop.h.
25127 (initialize_cfun): Do not drop PROP_loops.
25128 (copy_loops): New function.
25129 (copy_cfg_body): Copy loop structure.
25130 (tree_function_versioning): Initialize destination loop tree.
25131 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
25132 (pass_parallelize_loops): Do IL verification.
25133 * loop-init.c (loop_optimizer_init): Fixup loops if required.
25134 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
25135 the CFG make sure we fixup loops as well.
25136 * tree-ssa-tail-merge.c: Include cfgloop.h.
25137 (replace_block_by): When merging loop latches mark loops for fixup.
25138 * lto-streamer-out.c (output_struct_function_base): Drop
25139 PROP_loops for now.
25140 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
25141 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
25142 * ipa-split.c: Include cfgloop.h.
25143 (split_function): Add the new return block to the loop tree root.
25144 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
25145 whether we have removed the forwarder block.
25146 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
25147 * cfgloop.h (place_new_loop): Declare.
25148 * cfgloopmanip.c (place_new_loop): Export.
25149 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
25150 (tree-switch-conversion.o): Likewise.
25151 (tree-complex.o): Likewise.
25152 (tree-inline.o): Likewise.
25153 (tree-ssa-tailmerge.o): Likewise.
25154 (ipa-split.o): Likewise.
25155 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
25156 (tree-ssa-copy.o): Likewise.
25157 * tree-switch-conversion.c: Include cfgloop.h
25158 (process_switch): If we emit a bit-test cascade, schedule loops
25160 * tree-complex.c: Include cfgloop.h.
25161 (expand_complex_div_wide): Properly add new basic-blocks to loops.
25162 * asan.c: Include cfgloop.h.
25163 (create_cond_insert_point): Properly add new basic-blocks to
25164 loops, schedule loop fixup.
25165 * cfgloop.c (verify_loop_structure): Check that looks are not
25167 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
25169 (expand_omp_for_generic): Likewise.
25170 (expand_omp_sections): Likewise.
25171 (expand_omp_atomic_pipeline): Schedule loops for fixup.
25172 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
25173 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
25174 is initialized, not when loops are present.
25175 * tree-parloops.c (parallelize_loops): Remove checking here.
25176 * passes.c (init_optimization_passes): Schedule a copy-propagation
25177 pass before complete unrolling of inner loops.
25179 2013-04-26 Jakub Jelinek <jakub@redhat.com>
25181 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
25182 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
25183 (colorize_init): Add argument to _WIN32 version.
25184 * toplev.c: Include diagnostic-color.h.
25185 (process_options): Default to -fdiagnostics-color=auto if
25186 GCC_COLORS env var is in the environment.
25187 * common.opt (fdiagnostics-color=): Add Var and Init.
25188 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
25189 env var is in the environment, the default is auto rather than never.
25191 * diagnostic.h (file_name_as_prefix): Add context argument.
25192 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
25193 the string as locus.
25194 * langhooks.c (lhd_print_error_function): Adjust caller.
25196 2013-04-25 Lawrence Crowl <crowl@google.com>
25198 * var-tracking.c (shared_hash_def::htab):
25199 Change type to hash_table. Update dependent calls and types.
25201 2013-04-25 Lawrence Crowl <crowl@google.com>
25203 * Makefile.in: Update as needed below.
25205 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
25206 Move declaration to after the type's method definitons.
25208 * attribs.c (htab_t scoped_attributes::attribute_hash):
25209 Change type to hash_table. Update dependent calls and types.
25211 * bitmap.c (htab_t bitmap_desc_hash):
25212 Change type to hash_table. Update dependent calls and types.
25214 * cselib.c (htab_t cselib_hash_table):
25215 Change type to hash_table. Update dependent calls and types.
25217 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
25218 (hash_string_slot_node): Move implementation into lto-streamer.h
25219 struct string_slot_hasher.
25220 (eq_string_slot_node): Likewise.
25222 * data-streamer-out.c: Update output_block::string_hash_table
25223 dependent calls and types.
25225 * dwarf2cfi.c (htab_t trace_index):
25226 Change type to hash_table. Update dependent calls and types.
25228 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
25229 Change type to hash_table. Update dependent calls and types.
25230 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
25231 (htab_t optimize_external_refs::map): Likewise.
25232 (htab_t output_comp_unit::extern_map): Likewise.
25233 (htab_t output_comdat_type_unit::extern_map): Likewise.
25234 (htab_t output_macinfo::macinfo_htab): Likewise.
25235 (htab_t optimize_location_lists::htab): Likewise.
25236 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
25238 * except.c (htab_t ehspec_hash_type):
25239 Change type to hash_table. Update dependent calls and types.
25240 (assign_filter_values::ttypes): Likewise.
25241 (assign_filter_values::ehspec): Likewise.
25242 (sjlj_assign_call_site_values::ar_hash): Likewise.
25243 (convert_to_eh_region_ranges::ar_hash): Likewise.
25245 * gcse.c (htab_t pre_ldst_table):
25246 Change type to hash_table. Update dependent calls and types.
25248 * ggc-common.c (htab_t saving_htab):
25249 Change type to hash_table. Update dependent calls and types.
25250 (htab_t loc_hash): Likewise.
25251 (htab_t ptr_hash): Likewise.
25252 (call_count): Rename ggc_call_count.
25253 (call_alloc): Rename ggc_call_alloc.
25254 (loc_descriptor): Rename make_loc_descriptor.
25255 (add_statistics): Rename ggc_add_statistics.
25257 * ggc-common.c (saving_htab):
25258 Change type to hash_table. Update dependent calls and types.
25260 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
25261 (push_gimplify_context): Likewise.
25262 (pop_gimplify_context): Likewise.
25263 (struct gimple_temp_hash_elt): Added.
25264 (struct gimplify_hasher): Likewise.
25265 (struct gimplify_ctx.temp_htab):
25266 Change type to hash_table. Update dependent calls and types.
25268 * gimple-fold.c: Include gimplify-ctx.h.
25270 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
25271 Change type to hash_table. Update dependent calls and types.
25272 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
25273 avoid potential global name collision.
25275 * gimplify.c: Include gimplify-ctx.h.
25276 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
25277 (htab_t gimplify_ctx::temp_htab):
25278 Update dependent calls and types for new type hash_table.
25279 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
25280 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
25282 * gimplify-ctx.h: New.
25283 (struct gimple_temp_hash_elt): Move from gimplify.c.
25284 (class gimplify_hasher): New.
25285 (struct gimplify_ctx): Move from gimple.h.
25286 (htab_t gimplify_ctx::temp_htab):
25287 Change type to hash_table. Update dependent calls and types.
25289 * graphite-clast-to-gimple.c: Include graphite-htab.h.
25290 (htab_t ivs_params::newivs_index):
25291 Change type to hash_table. Update dependent calls and types.
25292 (htab_t ivs_params::params_index): Likewise.
25293 (htab_t print_generated_program::params_index): Likewise.
25294 (htab_t gloog::newivs_index): Likewise.
25295 (htab_t gloog::params_index): Likewise.
25297 * graphite.c: Include graphite-htab.h.
25298 4htab_t graphite_transform_loops::bb_pbb_mapping):
25299 Change type to hash_table. Update dependent calls and types.
25301 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
25302 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
25303 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
25305 * graphite-dependences.c: Include graphite-htab.h.
25306 (loop_is_parallel_p): Change hash table type of parameter.
25308 * graphite-htab.h: New.
25309 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
25310 (extern find_pbb_via_hash): Move from graphite-poly.h.
25311 (extern loop_is_parallel_p): Move from graphite-poly.h.
25312 (extern get_loop_body_pbbs): Move from graphite-poly.h.
25314 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
25315 (extern loop_is_parallel_p): Move to graphite-htab.h.
25316 (extern get_loop_body_pbbs): Move to graphite-htab.h.
25318 * haifa-sched.c (htab_t delay_htab):
25319 Change type to hash_table. Update dependent calls and types.
25320 (htab_t delay_htab_i2): Likewise.
25322 * ira-color.c (htab_t allocno_hard_regs_htab):
25323 Change type to hash_table. Update dependent calls and types.
25325 * ira-costs.c (htab_t cost_classes_htab):
25326 Change type to hash_table. Update dependent calls and types.
25328 * loop-invariant.c (htab_t merge_identical_invariants::eq):
25329 Change type to hash_table. Update dependent calls and types.
25331 * loop-iv.c (htab_t bivs):
25332 Change type to hash_table. Update dependent calls and types.
25334 * loop-unroll.c (htab_t opt_info::insns_to_split):
25335 Change type to hash_table. Update dependent calls and types.
25336 (htab_t opt_info::insns_with_var_to_expand): Likewise.
25338 * lto-streamer.h (struct string_slot): Move from data-streamer.h
25339 (struct string_slot_hasher): New.
25340 (htab_t output_block::string_hash_table):
25341 Change type to hash_table. Update dependent calls and types.
25343 * lto-streamer-in.c (freeing_string_slot_hasher): New.
25344 (htab_t file_name_hash_table):
25345 Change type to hash_table. Update dependent calls and types.
25347 * lto-streamer-out.c: Update output_block::string_hash_table dependent
25350 * lto-streamer.c (htab_t tree_htab):
25351 Change type to hash_table. Update dependent calls and types.
25353 * omp-low.c: Include gimplify-ctx.h.
25355 * passes.c (htab_t name_to_pass_map):
25356 Change type to hash_table. Update dependent calls and types.
25357 (pass_traverse): Rename to passes_pass_traverse.
25359 * plugin.c (htab_t event_tab):
25360 Change type to hash_table. Update dependent calls and types.
25362 * postreload-gcse.c (htab_t expr_table):
25363 Change type to hash_table. Update dependent calls and types.
25364 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
25366 * sese.c (debug_rename_map_1): Make extern.
25367 (htab_t copy_bb_and_scalar_dependences::rename_map):
25368 Change type to hash_table. Update dependent calls and types.
25370 * sese.h (extern debug_rename_map): Move to .c file.
25372 * store-motion.c (htab_t store_motion_mems_table):
25373 Change type to hash_table. Update dependent calls and types.
25375 * trans-mem.c (htab_t tm_new_mem_hash):
25376 Change type to hash_table. Update dependent calls and types.
25378 * tree-browser.c (htab_t TB_up_ht):
25379 Change type to hash_table. Update dependent calls and types.
25381 * tree-cfg.c (htab_t discriminator_per_locus):
25382 Change type to hash_table. Update dependent calls and types.
25384 * tree-complex.c: Include tree-hasher.h
25385 (htab_t complex_variable_components):
25386 Change type to hash_table. Update dependent calls and types.
25388 * tree-eh.c (htab_t finally_tree):
25389 Change type to hash_table. Update dependent calls and types.
25391 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
25392 struct int_tree_hasher.
25393 (extern int_tree_map_eq): Likewise.
25394 (uid_decl_map_hash): Removed.
25395 (extern decl_tree_map_eq): Likewise.
25397 * tree-hasher.h: New.
25398 (struct int_tree_hasher): New.
25399 (typedef int_tree_htab_type): New.
25401 * tree-inline.c: Include gimplify-ctx.h.
25403 * tree-mudflap.c: Include gimplify-ctx.h.
25405 * tree-parloops.c: Include tree-hasher.h.
25406 (htab_t eliminate_local_variables_stmt::decl_address):
25407 Change type to hash_table. Update dependent calls and types.
25408 (htab_t separate_decls_in_region::decl_copies): Likewise.
25410 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
25411 Change type to hash_table. Update dependent calls and types.
25413 * tree-sra.c (candidates):
25414 Change type to hash_table. Update dependent calls and types.
25416 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
25418 (int_tree_map_hash): Likewise.
25420 * tree-ssa-dom.c (htab_t avail_exprs):
25421 Change type to hash_table. Update dependent calls and types.
25423 * tree-ssa-live.c (var_map_base_init::tree_to_index):
25424 Change type to hash_table. Update dependent calls and types.
25426 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
25427 Change type to hash_table. Update dependent calls and types.
25429 * tree-ssa-phiopt.c (seen_ssa_names):
25430 Change type to hash_table. Update dependent calls and types.
25432 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
25433 Change type to hash_table. Update dependent calls and types.
25435 * tree-ssa-uncprop.c (equiv):
25436 Change type to hash_table. Update dependent calls and types.
25438 2013-04-25 Jakub Jelinek <jakub@redhat.com>
25440 PR rtl-optimization/57003
25441 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
25442 call note_stores with kill_clobbered_value callback again after
25443 killing regs_invalidated_by_call.
25445 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
25447 * config/aarch64/aarch64-simd.md
25448 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
25449 (aarch64_simd_bsl<mode>): Likewise.
25450 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
25452 2013-04-25 Marek Polacek <polacek@redhat.com>
25454 PR tree-optimization/57066
25455 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
25457 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
25459 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
25461 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
25463 * config/aarch64/aarch64-builtins.c
25464 (aarch64_fold_builtin): New.
25465 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
25466 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
25467 * config/aarch64/aarch64-simd-builtins.def (abs): New.
25468 * config/aarch64/arm_neon.h
25469 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
25471 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
25472 Tejas Belagod <tejas.belagod@arm.com>
25474 * config/aarch64/aarch64-builtins.c
25475 (aarch64_gimple_fold_builtin): New.
25476 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
25477 * config/aarch64/aarch64-simd-builtins.def (addv): New.
25478 * config/aarch64/aarch64-simd.md (addpv4sf): New.
25479 (addvv4sf): Update.
25480 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
25482 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
25484 * config/aarch64/aarch64.md
25485 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
25487 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
25489 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
25490 (*ngcsi_uxtw): New pattern.
25492 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25493 Julian Brown <julian@codesourcery.com>
25495 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
25496 (TB_DREG): Add T_V4HF.
25497 (v4hf_UP): New macro.
25498 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
25499 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
25500 Handle initialisation of V4HF. Adjust initialisation of reinterpret
25502 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
25503 (arm_vector_mode_supported_p): Handle V4HF.
25504 (arm_mangle_map): Handle V4HFmode.
25505 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
25506 * config/arm/arm_neon_builtins.def: Add entries for
25507 vcvtv4hfv4sf, vcvtv4sfv4hf.
25508 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
25509 (neon_vcvtv4hfv4sf): Likewise.
25510 * config/arm/neon-gen.ml: Handle half-precision floating point
25512 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
25513 * config/arm/arm_neon.h: Regenerate.
25514 * config/arm/neon.ml (type elts): Add F16.
25515 (type vectype): Add T_float16x4, T_floatHF.
25516 (type vecmode): Add V4HF.
25517 (type features): Add Requires_FP_bit feature.
25518 (elt_width): Handle F16.
25519 (elt_class): Likewise.
25520 (elt_of_class_width): Likewise.
25521 (mode_of_elt): Refactor.
25522 (type_for_elt): Handle F16, fix error messages.
25523 (vectype_size): Handle T_float16x4.
25524 (vcvt_sh): New function.
25525 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
25526 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
25527 (string_of_mode): Handle V4HF.
25528 * doc/arm-neon-intrinsics.texi: Regenerate.
25530 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
25532 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
25533 format specifier in 'X' case.
25535 2013-04-25 Alan Modra <amodra@gmail.com>
25538 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
25539 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
25540 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
25541 Repeat for many other rotate/shift and mask patterns using subregs.
25542 Name lshiftrt insns.
25543 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
25544 on WORDS_BIG_ENDIAN.
25546 2013-04-25 Alan Modra <amodra@gmail.com>
25548 * config.gcc: Support little-endian powerpc-linux targets.
25549 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
25550 (LINK_OS_LINUX_SPEC): Define.
25551 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
25552 Preserve MASK_LITTLE_ENDIAN.
25553 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
25554 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
25555 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
25556 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
25557 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
25558 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
25559 Correct fp word order for little-endian. Don't shift toc entries
25560 smaller than a word for little-endian.
25561 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
25562 (bswapdi2 splits): Correct low-part subreg for little-endian.
25563 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
25564 low/high where such is correct only for be.
25565 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
25566 little-endian for -mcall-aixdesc.
25568 2013-04-25 Alan Modra <amodra@gmail.com>
25570 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
25571 replace_equiv_address_nv.
25573 2013-04-25 Alan Modra <amodra@gmail.com>
25575 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
25577 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
25580 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
25581 * rtl.h (struct rtx_def): ...
25583 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
25585 PR rtl-optimizations/57046
25586 * lra-constraints (split_reg): Set up lra_risky_transformations_p
25587 for multi-reg splits.
25589 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
25591 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
25593 2013-04-24 Sterling Augustine <saugustine@google.com>
25595 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
25596 (comp_dir_string, debug_str_dwo_section): New.
25597 (DEBUG_STR_DWO_SECTION): Rename to ...
25598 (DEBUG_DWO_STR_SECTION): ... this.
25599 (DEBUG_NORM_STR_SECTION): Delete.
25600 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
25601 (DEBUG_STR_DWO_SECTION_FLAGS): New.
25602 (find_AT_string): Move most logic to ...
25603 (find_AT_string_in_table): ... here. New.
25604 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
25605 add_skeleton_AT_string. Delete logic.
25606 (output_skeleton_debug_sections): Remove call to
25607 add_top_level_skeleton_die_attrs.
25608 (add_comp_dir_attribute): Move logic to comp_dir_string.
25609 (dwarf2out_init): Initialize debug_str_dwo_section.
25610 (output_indirect_string): Call find_string_form.
25611 (output_indirect_strings): Rewrite.
25612 (prune_unused_types): Empty skeleton_debug_str_hash.
25613 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
25614 (dwarf2out_finish): Call output_indirect_strings.
25616 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
25618 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
25620 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
25622 * rtl.h (struct rtx_def): Add comment for field jump.
25623 (LRA_SUBREG_P): New macro.
25624 * recog.c (register_operand): Check LRA_SUBREG_P.
25625 * lra.c (lra): Add note at the end of RTL code. Align non-empty
25627 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
25628 (lra_final_code_change): Skip subreg change for operators.
25629 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
25630 if there are no operand changes.
25631 * lra-constraints.c (curr_insn_set): New.
25632 (match_reload): Set LRA_SUBREG_P.
25633 (emit_spill_move): Ditto.
25634 (check_and_process_move): Use curr_insn_set. Process only single
25635 set insns. Don't initialize sec_mem_p and change_p.
25636 (simplify_operand_subreg): Use LRA_SUBREG_P.
25637 (reg_in_class_p): New function.
25638 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
25639 of #ifdef. Add code to remove cycling.
25640 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
25641 non-null disp. Reload inner instead of disp when base and index
25642 are null. Try to put lo_sum into register.
25643 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
25644 (check_and_process_move): Move code for move cost check to
25645 simple_move_p. Remove equiv_substitution.
25646 (simple_move_p): New function.
25647 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
25648 curr_insn_set. Call check_and_process_move only for single set
25649 insns. Use the new function. Move call of check_and_process_move
25650 after operand equiv substitution and address process.
25652 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
25654 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
25655 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
25656 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
25658 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
25660 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
25662 2013-04-24 Marek Polacek <polacek@redhat.com>
25664 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
25665 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
25666 (select_loops_exit_conditions): Likewise.
25667 (number_of_iterations_for_all_loops): Likewise.
25668 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
25669 (scev_analysis): Likewise.
25671 2013-04-02 Catherine Moore <clm@codesourcery.com>
25672 Chao-ying Fu <fu@mips.com>
25674 * config/mips/micromips.md (jraddiusp): New pattern.
25675 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
25676 instruction if possible.
25678 2013-04-24 Alan Modra <amodra@gmail.com>
25680 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
25682 2013-04-24 Julian Brown <julian@codesourcery.com>
25683 Chung-Lin Tang <cltang@codesourcery.com>
25685 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
25686 dependency behavior in enumeration type DIE generation. Add TODO note
25687 to comments about future DW_FORM_sdata/udata re-work of related code.
25689 2013-04-23 Lawrence Crowl <crowl@google.com>
25691 * Makefile.in: Update as needed below.
25693 * hash-table.h (class hash_table):
25694 Correct many methods with parameter types compare_type to the correct
25695 value_type. (Correct code was unlikely to notice the change.)
25696 (hash_table::elements_with_deleted) New.
25697 (class hashtable::iterator): New.
25698 (hashtable::begin()): New.
25699 (hashtable::end()): New.
25700 (FOR_EACH_HASH_TABLE_ELEMENT): New.
25702 * statistics.c (statistics_hashes):
25703 Change type to hash_table. Update dependent calls and types.
25705 * tree-into-ssa.c (var_infos):
25706 Change type to hash_table. Update dependent calls and types.
25708 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
25709 Change type to hash_table. Update dependent calls and types.
25711 * tree-ssa-loop-im.c (struct mem_ref.refs):
25712 Change type to hash_table. Update dependent calls and types.
25714 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
25715 Change type to hash_table. Update dependent calls and types.
25717 * tree-ssa-sccvn.c (vn_tables_s::nary):
25718 Change type to hash_table. Update dependent calls and types.
25719 (vn_tables_s::phis): Likewise.
25720 (vn_tables_s::references): Likewise.
25722 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
25723 (vn_reference_eq): Update parameter and return types.
25725 * tree-ssa-structalias.c (pointer_equiv_class_table):
25726 Change type to hash_table. Update dependent calls and types.
25727 (location_equiv_class_table): Likewise.
25729 * tree-vect-data-refs.c: Consequential changes for making
25730 peeling a hash_table.
25732 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
25733 (destroy_loop_vec_info): Dependent hash_table update.
25735 * tree-vectorizer.h (peeling_htab):
25736 Change type to hash_table. Update dependent calls and types.
25738 2013-04-23 Shiva Chen <shiva0217@gmail.com>
25740 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
25741 to check the register content is equal or not.
25742 * lra-constraints.c (match_reload): Use lra_assign_reg_val
25743 to assign register content record.
25744 * lra-eliminations.c (update_reg_eliminate): Use
25745 lra_update_reg_val_offset to update register content offset.
25746 * lra-int.h (struct lra_reg): Add offset member.
25747 (lra_reg_val_equal_p): New static inline function.
25748 (lra_update_reg_val_offset): New static inline function.
25749 (lra_assign_reg_val): New static inline function.
25750 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
25751 to assign register content record.
25752 (initialize_lra_reg_info_element): Initial offset to zero.
25754 2013-04-23 Catherine Moore <clm@codesourcery.com>
25756 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
25757 operands. Record compression.
25759 2013-04-23 Xinliang David Li <davidxl@google.com>
25761 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
25763 2013-04-23 Richard Biener <rguenther@suse.de>
25765 PR middle-end/57036
25766 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
25767 parameter, only add abnormal goto edges from the copied body
25768 if the call could perform abnormal gotos.
25769 (copy_cfg_body): Adjust.
25771 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
25773 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
25775 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
25777 * coretypes.h (gimple_stmt_iterator): Add struct to make
25780 2013-04-23 Richard Biener <rguenther@suse.de>
25782 PR tree-optimization/57026
25783 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
25784 from SSA names occuring in abnormal PHI nodes.
25786 2013-04-22 Andi Kleen <ak@linux.intel.com>
25788 * lto/lto.c (print_lto_report_1): Fix LTO report names.
25790 2013-04-22 Andi Kleen <ak@linux.intel.com>
25792 * lto/lto.c (print_lto_report_1): Declare early.
25793 (read_cgraph_and_symbols): Call print_lto_report_1 early.
25795 2013-04-22 Andi Kleen <ak@linux.intel.com>
25797 * common.opt (-flto-report-wpa): Add.
25798 * doc/invoke.texi (-flto-report-wpa): Add.
25799 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
25802 2013-04-22 Xinliang David Li <davidxl@google.com>
25804 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
25805 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
25806 * Makefile.in: New dependency
25808 David Daney <ddaney.cavm@gmail.com>
25810 * configure.ac (gcc_cv_as_micromips_support): Use the
25811 --fatal-warnings option.
25812 * configure: Regenerate.
25814 2013-04-22 Marek Polacek <polacek@redhat.com>
25817 * tsan.c (instrument_expr): Don't instrument expression
25818 in case its size is zero.
25820 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
25824 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
25826 * config/alpha/alpha.c (TARGET_LRA_P): New define.
25828 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
25830 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
25831 (gimple_stmt_iterator): New typedef.
25832 * gimple.h (gimple_stmt_iterator): Rename to...
25833 (gimple_stmt_iterator_d): ... This.
25834 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
25835 trees be valid for GIMPLE and GENERIC.
25836 (TARGET_GIMPLE_FOLD_BUILTIN): New.
25837 * gimple-fold.c (gimple_fold_call): Call target hook
25838 gimple_fold_builtin.
25839 * hooks.c (hook_bool_gsiptr_false): New.
25840 * hooks.h (hook_bool_gsiptr_false): New.
25841 * target.def (fold_stmt): New.
25842 * doc/tm.texi: Regenerate.
25844 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
25847 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
25848 a set sp if no stack realignment.
25850 2013-04-22 Nick Clifton <nickc@redhat.com>
25852 * config.gcc (tilegx-linux): Extend extra_objs rather than
25854 (tilepro-linux): Likewise.
25856 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
25858 * config/aarch64/aarch64-builtins.c
25860 (CF0, CF1, CF2, CF3, CF4, CF10): New.
25861 (VAR<1-12>): Add MAP parameter.
25862 (BUILTIN_*): Likewise.
25863 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
25864 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
25865 (aarch64_ushl_n<mode>): Likewise.
25866 (aarch64_sshr_n<mode>): Likewise.
25867 (aarch64_ushr_n<mode>): Likewise.
25868 (aarch64_<maxmin><mode>): Likewise.
25869 (aarch64_sqrt<mode>): Likewise.
25870 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
25871 (vshr<q>_n_*): Likewise.
25873 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
25875 * config/aarch64/aarch64-builtins.c
25876 (aarch64_simd_builtin_type_mode): Handle SF types.
25878 (BUILTIN_GPF): Define.
25879 (aarch64_init_simd_builtins): Handle SF types.
25880 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
25881 (frecps): Likewise.
25882 (frecpx): Likewise.
25883 * config/aarch64/aarch64-simd.md
25884 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
25885 (aarch64_frecpe<mode>): New.
25886 (aarch64_frecps<mode>): Likewise.
25887 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
25888 (v8type): Add frecp<esx>.
25889 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
25890 (aarch64_frecps<mode>): Likewise.
25891 * config/aarch64/iterators.md (FRECP): New.
25892 (frecp_suffix): Likewise.
25893 * config/aarch64/arm_neon.h
25894 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
25896 2013-04-22 Christian Bruel <christian.bruel@st.com>
25899 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
25900 (REG_CLASS_NAMES): Idem.
25901 (REG_CLASS_CONTENTS): Idem.
25902 (REGCLASS_HAS_FP_REG): Idem.
25903 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
25904 (sh_conditional_register_usage): Idem.
25906 2013-04-21 Jeff Law <law@redhat.com>
25908 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
25909 (ssa_forward_propagate_and_combine): Use it.
25911 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
25913 * lra.c: Update the flow chart diagram.
25915 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
25917 PR rtl-optimization/56847
25918 * lra-constraints.c (process_alt_operands): Discourage alternative
25919 with non-matche doffsettable memory constraint fro memory with
25922 2013-04-19 Richard Biener <rguenther@suse.de>
25924 PR tree-optimization/56982
25925 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
25927 * gimplify.c (gimplify_call_expr): Notice special calls.
25928 (gimplify_modify_expr): Likewise.
25929 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
25930 abnormal control flow receivers.
25931 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
25932 in the same way as cfun->has_nonlocal_labels.
25933 (gimple_purge_dead_abnormal_call_edges): Likewise.
25934 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
25935 receivers start a basic-block.
25937 2013-04-19 Richard Biener <rguenther@suse.de>
25939 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
25941 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
25942 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
25943 (SLP_TREE_LOAD_PERMUTATION): Add.
25944 (vect_transform_slp_perm_load): Adjust prototype.
25945 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
25946 (vect_free_slp_instance): Likewise.
25947 (vect_create_new_slp_node): Likewise.
25948 (vect_supported_slp_permutation_p): Remove.
25949 (vect_slp_rearrange_stmts): Adjust.
25950 (vect_supported_load_permutation_p): Likewise. Inline
25951 vect_supported_slp_permutation_p here.
25952 (vect_analyze_slp_instance): Compute load permutations per
25953 slp node instead of per instance.
25954 (vect_get_slp_defs): Adjust.
25955 (vect_transform_slp_perm_load): Likewise.
25956 (vect_schedule_slp_instance): Remove redundant code.
25957 (vect_schedule_slp): Remove hack for PR56270, add it ...
25958 * tree-vect-stmts.c (vectorizable_load): ... here, do not
25959 CSE loads for SLP. Adjust.
25961 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
25963 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
25964 spelling in two comments.
25966 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
25969 * config/arm/arm.c (load_multiple_sequence): Require SP
25970 as base register for loads if SP is in the register list.
25972 2013-04-19 Martin Jambor <mjambor@suse.cz>
25974 PR tree-optimization/56718
25975 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
25976 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
25977 and made public. Adjusted all callers.
25978 (ipa_intraprocedural_devirtualization): New function.
25979 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
25980 (ipa_intraprocedural_devirtualization): Likewise.
25981 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
25983 2013-04-19 Richard Biener <rguenther@suse.de>
25985 PR tree-optimization/57000
25986 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
25988 2013-04-19 Terry Guo <terry.guo@arm.com>
25990 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
25992 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
25993 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
25994 (cortex_m4_fmacs): Use new reservations.
25995 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
25997 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
25999 PR rtl-optimization/56999
26000 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
26002 (lra_coalesce): Remove split_origin_bitmap and related code.
26003 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
26004 ranges if necessary.
26006 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
26008 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
26010 (ix86_expand_call): Remove clobbered_registers array and use
26011 x86_64_ms_sysv_extra_clobbered_registers instead.
26012 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
26014 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
26016 * config/i386/i386.md (*call_rex64_ms_sysv): Use
26017 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
26018 (*call_value_rex64_ms_sysv): Ditto.
26020 2013-04-18 Cary Coutant <ccoutant@google.com>
26022 * dwarf2out.c (output_pubnames): Check die_perennial_p of
26023 parent instead of die_mark.
26025 2013-04-18 Diego Novillo <dnovillo@google.com>
26027 * gimple.c (create_gimple_tmp): New.
26028 (get_expr_type): New.
26029 (build_assign): New.
26030 (build_type_cast): New.
26031 * gimple.h (enum ssa_mode): Define.
26032 (gimple_seq_set_location): New.
26033 * asan.c (build_check_stmt): Change some gimple_build_* calls
26034 to use build_assign and build_type_cast.
26036 2013-04-18 Richard Biener <rguenther@suse.de>
26038 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
26039 handle negative step. Remove redundant checks.
26040 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
26041 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
26042 for negative step and grouped loads fail to vectorize.
26044 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
26046 * emit-rtl.c (reset_insn_used_flags): New function.
26047 (reset_all_used_flags): Use it.
26048 (verify_insn_sharing): New function.
26049 (verify_rtl_sharing): Fix verification for SEQUENCEs.
26051 2013-04-18 Jakub Jelinek <jakub@redhat.com>
26053 PR tree-optimization/56984
26054 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
26055 and (x >> M) >= N don't register any assertion if N << M is the
26058 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
26060 * lower-subreg.c (resolve_simple_move): If called self-recursive,
26061 do not delete_insn insns that have not yet been emitted, only
26062 unlink them with remove_insn.
26063 * df-scan.c (df_insn_delete): Revert r197492.
26065 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
26067 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
26068 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
26070 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
26072 * config/arm/arm.md (movsicc_insn): Convert define_insn into
26073 define_insn_and_split.
26074 (and_scc,ior_scc,negscc): Likewise.
26075 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
26077 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
26079 * config/arm/arm.c (use_return_insn): Return 0 for targets that
26080 can benefit from using a sequence of LDRD instructions in epilogue
26081 instead of a single LDM instruction.
26083 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
26086 * doc/extend.texi: Fix typo.
26088 2013-04-17 Richard Biener <rguenther@suse.de>
26090 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
26091 (vect_build_slp_tree): ... here.
26092 (vect_build_slp_tree_1): Compute which stmts of the SLP group
26093 match. Remove special-casing of mismatched complex loads.
26094 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
26095 re-try the match with swapped commutative operands.
26096 (vect_supported_load_permutation_p): Remove special-casing of
26097 mismatched complex loads.
26098 (vect_analyze_slp_instance): Adjust.
26100 2013-04-17 Richard Biener <rguenther@suse.de>
26102 PR rtl-optimization/56921
26103 * cfgloop.h (struct loop): Add simple_loop_desc member.
26104 (struct niter_desc): Mark with GTY(()).
26105 (simple_loop_desc): Do not use aux field but simple_loop_desc.
26106 * loop-iv.c (get_simple_loop_desc): Likewise.
26107 (free_simple_loop_desc): Likewise.
26110 2013-04-16 Richard Biener <rguenther@suse.de>
26112 PR rtl-optimization/56921
26113 * loop-init.c (pass_rtl_move_loop_invariants): Add
26114 TODO_do_not_ggc_collect to todo_flags_finish.
26115 (pass_rtl_unswitch): Same.
26116 (pass_rtl_unroll_and_peel_loops): Same.
26117 (pass_rtl_doloop): Same.
26119 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
26121 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
26122 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
26123 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
26125 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
26126 * tree-streamer.c (record_common_node): Adjust reference in comment.
26128 2013-04-17 Terry Guo <terry.guo@arm.com>
26130 * config/arm/cortex-m4.md: Add a new bypass.
26132 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
26134 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
26136 (*subs_<optab><mode>_multp2): New pattern.
26137 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
26138 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
26140 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
26142 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
26143 (*subs_mul_imm_<mode>): New pattern.
26145 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
26148 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
26149 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
26150 (vsx_movti_32bit): Change j->wa to O->wa.
26152 2013-04-16 Richard Biener <rguenther@suse.de>
26154 PR rtl-optimization/56921
26155 * loop-init.c (pass_rtl_move_loop_invariants): Add
26156 TODO_do_not_ggc_collect to todo_flags_finish.
26157 (pass_rtl_unswitch): Same.
26158 (pass_rtl_unroll_and_peel_loops): Same.
26159 (pass_rtl_doloop): Same.
26161 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
26163 * config/arm/arm.c (emit_multi_reg_push): New declaration
26164 for an existing function.
26165 (arm_emit_strd_push): New function.
26166 (arm_expand_prologue): Used here.
26167 (arm_emit_ldrd_pop): New function.
26168 (arm_expand_epilogue): Used here.
26169 (arm_get_frame_offsets): Update condition.
26170 (arm_emit_multi_reg_pop): Add a special case for load of a single
26171 register with writeback.
26173 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
26175 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
26178 2013-04-16 Richard Biener <rguenther@suse.de>
26180 PR tree-optimization/56756
26181 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
26182 (first_mem_ref_loc): New.
26183 (execute_sm): Place the load temporarily before a previous
26184 access instead of in the latch edge to ensure its SSA dependencies
26185 are defined at points dominating the load.
26187 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
26189 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
26190 correct fix by moving header and footer insn to the footer of
26191 the merged basic block. Clear BB_END of the merged-away block.
26193 PR middle-end/43631
26194 * emit-rtl.c (make_note_raw): New function.
26195 (link_insn_into_chain): New static inline function.
26196 (add_insn): Use it.
26197 (add_insn_before, add_insn_after): Factor insn chain linking code...
26198 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
26199 using link_insn_into_chain.
26200 (note_outside_basic_block_p): New helper function for emit_note_after
26201 and emit_note_before.
26202 (emit_note_after): Use nobb variant of add_insn_after if the note
26203 should not be contained in a basic block.
26204 (emit_note_before): Use nobb variant of add_insn_before if the note
26205 should not be contained in a basic block.
26206 (emit_note_copy): Use make_note_raw.
26207 (emit_note): Likewise.
26208 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
26209 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
26210 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
26211 the moved barrier the tail of the basic block it follows.
26212 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
26214 2013-04-15 Jakub Jelinek <jakub@redhat.com>
26216 PR tree-optimization/56962
26217 * gimple-ssa-strength-reduction.c (record_increment): Only set
26218 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
26219 either rhs1 or rhs2 is equal to c->base_expr.
26221 2013-04-15 Richard Biener <rguenther@suse.de>
26223 PR tree-optimization/56933
26224 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
26226 (GROUP_READ_WRITE_DEPENDENCE): Remove.
26227 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
26228 * tree-vect-data-refs.c (vect_analyze_group_access): Move
26229 dependence check ...
26230 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
26232 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
26233 GROUP_READ_WRITE_DEPENDENCE.
26235 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26237 * emit-rtl.c (reset_all_used_flags): New function.
26238 (verify_rtl_sharing): Call reset_all_used_flags before and after
26239 performing the checks.
26241 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26243 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
26244 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
26245 * config/arm/constraints.md (De): New constraint.
26246 * config/arm/neon.md (anddi3_neon): Delete.
26247 (neon_vand<mode>): Expand to standard anddi3 pattern.
26248 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
26249 Move earlier in the file.
26250 (neon_inv_logic_op2): Likewise.
26251 (arm_anddi_operand_neon): New predicate.
26253 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26255 * configure.ac (gcc_cv_ld_as_needed): Set
26256 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
26257 Use -z ignore, -z record on *-*-solaris2*.
26258 (HAVE_LD_AS_NEEDED): Update comment.
26259 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
26260 * configure: Regenerate.
26261 * config.in: Regenerate.
26262 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
26263 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
26264 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
26265 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
26266 equivalents. Fix markup.
26267 * doc/tm.texi: Regenerate.
26269 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
26271 * config/i386/i386.opt: New option mstack-protector-guard=.
26272 * config/i386/i386-opts.h: Add enum stack_protector_guard.
26273 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
26274 TARGET_SSP_TLS_GUARD.
26275 * config/i386/i386.c (ix86_option_override_internal): Set
26276 ix86_stack_protector_guard.
26277 * config/i386/i386.md (stack_protect_set): Enable for
26278 TARGET_SSP_TLS_GUARD only.
26279 (stack_protect_set_<mode>): Ditto.
26280 (stack_protect_test): Ditto.
26281 (stack_protect_test_<mode>): Ditto.
26282 * doc/invoke.texi (i386 Option): Document.
26284 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
26287 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
26288 (S_MODES): Set H_MODE bit.
26289 (SF_MODES): Set only S_MODE and SF_MODE bits.
26290 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
26291 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
26292 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
26293 <MODE_FLOAT>: Likewise.
26295 2013-04-15 Joey Ye <joey.ye@arm.com>
26297 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
26299 2013-04-15 Joey Ye <joey.ye@arm.com>
26301 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
26303 (thumb_far_jump_used_p): Count instruction size and set
26306 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
26308 * reorg.c (fill_simple_delay_slots): Reindent block of code.
26309 * resource.c (mark_target_live_regs): Reformat conditional block.
26311 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
26313 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
26314 notes, they are emitted only just before final.
26315 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
26317 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
26319 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
26320 * cfgrtl.c (delete_insn): Call it here instead.
26321 * lra-spills.c (lra_final_code_change): Use delete_insn.
26322 * haifa-sched.c (sched_remove_insn): Likewise.
26323 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
26324 returning to the nop pool.
26325 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
26326 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
26328 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
26330 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
26331 * doc/tm.texi: Regenerated.
26333 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
26335 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
26338 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
26340 * df-core.c (df_find_def): Compare register numbers.
26341 (df_find_use): Likewise.
26343 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
26346 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
26347 lra_in_progress for return.
26349 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
26351 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
26352 define_insn into define_insn_and_split and emit movsicc patterns.
26354 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
26356 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
26358 2013-04-12 Richard Biener <rguenther@suse.de>
26360 * tree-pass.h (TODO_do_not_ggc_collect): New.
26361 * passes.c (execute_one_ipa_transform_pass): Honor
26362 TODO_do_not_ggc_collect.
26363 (execute_one_pass): Likewise.
26366 2013-04-10 Richard Biener <rguenther@suse.de>
26368 * passes.c (init_optimization_passes): Remove reload pass.
26369 * ira.c (do_reload): Merge into ...
26371 (rest_of_handle_reload): Remove.
26372 (pass_reload): Likewise.
26373 * config/i386/i386.c (ix86_option_override): Refer to ira instead
26374 of reload for vzeroupper pass placement.
26376 2013-04-12 Jakub Jelinek <jakub@redhat.com>
26378 PR tree-optimization/56918
26379 PR tree-optimization/56920
26380 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
26381 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
26382 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
26383 use wide_mul_with_sign method.
26385 2013-04-12 Richard Biener <rguenther@suse.de>
26387 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
26388 not be considered a gimple constant.
26390 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
26392 * fold-const.c (const_binop): Handle vector shifts by a scalar.
26393 (fold_binary_loc): Call const_binop also for mixed vector-scalar
26396 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
26397 Jakub Jelinek <jakub@redhat.com>
26399 * opts.c: Include diagnostic-color.h.
26400 (common_handle_option): Handle OPT_fdiagnostics_color_.
26401 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
26402 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
26403 (diagnostic-color.o): New.
26404 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
26405 (diagnostic_color_rule): New enum.
26406 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
26407 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
26408 the location string.
26409 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
26410 either NULL, or color kind.
26411 * diagnostic-color.c: New file.
26412 * diagnostic-color.h: New file.
26413 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
26415 * doc/invoke.texi (-fdiagnostics-color): Document.
26416 * pretty-print.h (pp_show_color): Define.
26417 (struct pretty_print_info): Add show_color field.
26418 * diagnostic.c: Include diagnostic-color.h.
26419 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
26420 macros. Colorize error:, warning: etc. strings and also the location
26422 (diagnostic_show_locus): Colorize the caret line.
26423 * pretty-print.c: Include diagnostic-color.h.
26424 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
26425 inside of %< %> quotes or quoted through q format modifier.
26427 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26429 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
26431 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
26433 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
26434 code in CC_NZ mode.
26435 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
26438 2013-04-11 Marek Polacek <polacek@redhat.com>
26440 PR tree-optimization/48184
26441 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
26443 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
26445 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
26446 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
26447 (skip_simple_arithmetic): Tidy up.
26448 * tree.h (skip_simple_constant_arithmetic): Declare.
26450 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
26452 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
26454 2013-04-11 Richard Biener <rguenther@suse.de>
26456 * tree-vect-loop.c (get_initial_def_for_induction): Properly
26457 generate vector constants.
26459 2013-04-11 Richard Biener <rguenther@suse.de>
26461 PR tree-optimization/56878
26462 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
26463 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
26465 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
26466 Prefer to align the DR with the most invariant base address.
26468 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
26470 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
26473 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
26475 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
26476 floating-point vector comparisons against 0.
26478 2013-04-11 Jakub Jelinek <jakub@redhat.com>
26480 PR tree-optimization/56899
26481 * fold-const.c (extract_muldiv_1): Apply distributive law
26482 only if TYPE_OVERFLOW_WRAPS (ctype).
26484 2013-04-11 Bin Cheng <bin.cheng@arm.com>
26487 * ira-costs.c (scan_one_insn): Check whether the source rtx of
26488 loading has side effect.
26490 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
26492 * config/sparc/sparc.c: Include tree-pass.h.
26493 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
26494 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
26495 head of file. Change return type. Split off gate function.
26496 (sparc_gate_work_around_errata): New function.
26497 (pass_work_around_errata): New pass definition.
26498 (insert_pass_work_around_errata) New pass insert definition to
26499 insert pass_work_around_errata just after delayed-branch scheduling.
26500 (sparc_option_override): Insert the pass.
26501 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
26503 2013-04-10 David S. Miller <davem@davemloft.net>
26505 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
26506 or -mcpu=hypersparc.
26508 * target.def (cstore_mode): New hook.
26509 * target.h: Include insn-codes.h
26510 * targhooks.c: Likewise.
26511 (default_cstore_mode): New function.
26512 * targhooks.h: Declare it.
26513 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
26514 * doc/tm.texi: Rebuild.
26515 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
26516 target hook, rather than inspecting the insn_data.
26517 * config/sparc/sparc.c (sparc_cstore_mode): New function.
26518 (TARGET_CSTORE_MODE): Redefine.
26519 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
26521 * config/sparc/predicates.md (cstore_result_operand): New special
26523 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
26524 Use it for operand 0.
26525 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
26526 (*snesi_special): Likewise.
26527 (*snesi_zero): Likewise.
26528 (*seqsi_zero): Likewise.
26529 (*sltu_insn): Likewise.
26530 (*sgeu_insn): Likewise.
26531 (*seqdi_special): Make operand 0 and comparison operation be of
26533 (*snedi_special): Likewise.
26534 (*snedi_special_vis3): Likewise.
26535 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
26536 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
26537 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
26538 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
26539 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
26540 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
26541 (*sltu_extend_sp64): Likewise.
26542 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
26543 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
26544 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
26545 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
26546 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
26548 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
26550 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
26551 (aarch64_start_file): Use the new function.
26553 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
26554 Jason Merrill <jason@redhat.com>
26556 * common.opt: Add -gdwarf.
26557 * opts.c (common_handle_option): Handle it.
26558 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
26560 2013-04-10 Richard Biener <rguenther@suse.de>
26562 * passes.c (execute_todo): Do not call ggc_collect conditional here.
26563 (execute_one_ipa_transform_pass): But unconditionally here.
26564 (execute_one_pass): And here.
26565 (init_optimization_passes): Remove reload pass.
26566 * tree-pass.h (TODO_ggc_collect): Remove.
26567 (pass_reload): Likewise.
26568 * ira.c (do_reload): Merge into ...
26570 (rest_of_handle_reload): Remove.
26571 (pass_reload): Likewise.
26572 * config/i386/i386.c (ix86_option_override): Refer to ira instead
26573 of reload for vzeroupper pass placement.
26574 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
26575 and todo_flags_finish of all passes.
26577 2013-04-10 Richard Biener <rguenther@suse.de>
26579 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
26580 first_const_oprnd field, rename first_def_type to first_op_type.
26581 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
26582 (vect_get_and_check_slp_defs): Always use the type of the
26583 operand. Allow mixed vect_external_def, vect_constant_def types.
26584 (vect_get_constant_vectors): Handle mixed vect_external_def,
26585 vect_constant_def types.
26587 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
26589 PR tree-optimization/55524
26590 * tree-ssa-math-opts.c
26591 (convert_mult_to_fma): Don't use an fms construct
26592 when we don't have an fms operation, but fnma, and it looks
26593 likely that we'll be able to use the latter.
26595 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
26597 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
26599 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
26600 inline fail caused by overwritable functions.
26602 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
26604 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
26605 unnecessary bits in the constant power of two case.
26607 2013-04-10 Richard Biener <rguenther@suse.de>
26609 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
26610 broken code swapping operands.
26611 (vect_build_slp_tree): Do not compute load permutations here.
26612 (vect_analyze_slp_instance): Compute load permutations here,
26613 after building the SLP tree.
26615 2013-04-09 Christian Bruel <christian.bruel@st.com>
26617 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
26618 of next/prev_real_insn.
26620 2013-04-09 Jan Hubicka <jh@suse.cz>
26622 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
26623 Drop aliased parameter.
26624 (function_and_variable_visibility): Do not handle alias pairs.
26625 * cgraph.c (varpool_externally_visible_p): Update prototype.
26626 * varpool.c (varpool_add_new_variable): Update.
26628 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26630 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
26632 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
26634 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
26636 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
26638 2013-04-09 Marek Polacek <polacek@redhat.com>
26640 PR tree-optimization/48762
26641 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
26643 2013-04-09 Richard Biener <rguenther@suse.de>
26645 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
26647 (vect_build_slp_tree): Likewise.
26648 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
26649 calculating the cost of a SLP instance.
26650 (vect_analyze_slp_instance): Use it from here, after building
26653 2013-04-09 Jakub Jelinek <jakub@redhat.com>
26655 PR middle-end/56883
26656 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
26657 expand_omp_for_static_chunk): Use simple_p = true in
26658 force_gimple_operand_gsi calls when assigning to addressable decls.
26660 2013-04-09 Jeff Law <law@redhat.com>
26662 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
26663 when the boolean was created by converting a wider object which
26664 had a boolean range.
26666 2013-04-09 Richard Biener <rguenther@suse.de>
26668 * tree-vectorizer.h (slp_void_p): Remove.
26669 (slp_tree): Typedef before _slp_tree declaration.
26670 (struct _slp_tree): Use a vector of slp_tree as children.
26671 (vect_get_place_in_interleaving_chain): Remove.
26672 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
26674 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
26676 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
26677 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
26678 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
26679 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
26680 Use slp_node instead of slp_void_p and adjust.
26682 2013-04-09 Richard Biener <rguenther@suse.de>
26684 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
26685 work that is not necessary.
26687 2013-04-09 Jakub Jelinek <jakub@redhat.com>
26689 PR tree-optimization/56854
26690 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
26691 forward into clobber stmts if it would change MEM_REF lhs into
26694 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
26696 * tree.c (type_hash_lookup, type_hash_add): Make static.
26697 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
26699 2013-04-09 Richard Biener <rguenther@suse.de>
26701 * tree.h (unsave_expr_now): Remove.
26702 * tree-inline.c (mark_local_for_remap_r): Remove.
26703 (unsave_expr_1): Likewise.
26704 (unsave_r): Likewise.
26705 (unsave_expr_now): Likewise.
26706 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
26707 (propagate_tree_value): Likewise.
26709 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
26711 * doc/rtl.texi (sequence): Rewrite documentation to match the
26712 current use of SEQUENCE rtl objects.
26713 * rtl.def (SEQUENCE): Likewise.
26715 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
26716 Update documentation.
26717 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
26718 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
26720 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
26722 2013-04-08 Teresa Johnson <tejohnson@google.com>
26724 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
26725 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
26727 (estimate_edge_size_and_time): Add comment to suggest using rounding
26729 (estimate_node_size_and_time): Ditto.
26730 (remap_edge_change_prob): Use helper rounding divide methods.
26731 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
26732 (gimple_mod_pow2_value_transform): Ditto.
26733 (gimple_mod_subtract_transform): Ditto.
26734 (gimple_ic_transform): Ditto.
26735 (gimple_stringops_transform): Ditto.
26736 * stmt.c (conditional_probability): Ditto.
26737 (emit_case_dispatch_table): Ditto.
26738 * lto-cgraph.c (merge_profile_summaries): Ditto.
26739 * tree-optimize.c (execute_fixup_cfg): Ditto.
26740 * cfgcleanup.c (try_forward_edges): Ditto.
26741 * cfgloopmanip.c (scale_loop_profile): Ditto.
26743 (duplicate_loop_to_header_edge): Ditto.
26744 (lv_adjust_loop_entry_edge): Ditto.
26745 * tree-vect-loop.c (vect_transform_loop): Ditto.
26746 * profile.c (compute_branch_probabilities): Ditto.
26747 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
26748 * lto-streamer-in.c (input_cfg): Ditto.
26749 * gimple-streamer-in.c (input_bb): Ditto.
26750 * ipa-cp.c (update_profiling_info): Ditto.
26751 (update_specialized_profile): Ditto.
26752 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
26753 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
26755 * sched-rgn.c (compute_dom_prob_ps): Ditto.
26756 (compute_trg_info): Ditto.
26757 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
26758 (purge_dead_edges): Ditto.
26759 * loop-unswitch.c (unswitch_loop): Ditto.
26760 * cgraphclones.c (cgraph_clone_edge): Ditto.
26761 (cgraph_clone_node): Ditto.
26762 * tree-inline.c (copy_bb): Ditto.
26763 (copy_edges_for_bb): Ditto.
26764 (initialize_cfun): Ditto.
26765 (copy_cfg_body): Ditto.
26766 (expand_call_inline): Ditto.
26768 2013-04-08 Kai Tietz <ktietz@redhat.com>
26770 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
26771 TARGET_CYGWIN64 by TARGET_64BIT.
26773 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
26775 * config/epiphany/epiphany.md (GPR_1): New constant.
26776 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
26777 * config/epiphany/epiphany.c (gen_compare_reg):
26778 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
26779 is already in place.
26780 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
26781 Don't require being called during rtl expansion; If y operlaps r0,
26783 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
26784 (epiphany_expand_epilogue): Likewise.
26786 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
26787 Don't use CC_FPmode for ORDERED / UNORDERED.
26788 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
26790 * config/epiphany/constraints.md (CnL): New constraint.
26791 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
26792 * config/epiphany/predicates.md (add_operand): Allow 1024.
26794 * config/epiphany/epiphany.md (logical_op): New code iterator.
26795 (op_mnc): New code attribute.
26796 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
26797 (mov_f+1, mov_f+2): New peephole2 patterns.
26799 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
26800 (cstoresi4): Also allow re-use of zero result when doing a NE
26801 comparison to a non-zero operand.
26802 Use (clobber (scratch)) for first insn if the gpr output is not needed.
26804 * config/epiphany/epiphany.md (<insn_opname>v2si3):
26805 Use gen_addsi3_i / gen_subsi3_i.
26807 2013-04-08 Jakub Jelinek <jakub@redhat.com>
26811 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
26812 contain anything but clobbers, at most one __builtin_stack_restore,
26813 optionally debug stmts and final resx, and if it has at least one
26814 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
26815 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
26816 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
26817 which isn't defaut definition, remove them.
26818 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
26819 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
26820 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
26821 with MEM_REF LHS with SSA_NAME address.
26823 2013-04-08 Jeff Law <law@redhat.com>
26825 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
26827 2013-04-08 Richard Biener <rguenther@suse.de>
26829 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
26831 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
26832 determined vector type.
26833 (vect_analyze_data_refs): Likewise.
26834 (vect_get_new_vect_var): Adjust.
26835 (vect_create_destination_var): Preserve SSA name versions.
26836 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
26837 not dump anything here.
26839 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
26841 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
26842 Add member lr_slot_known.
26843 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
26845 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
26846 Remove code that sets lr_slot_offset according to what a previous
26847 version of epiphany_emit_save_restore used to do.
26848 (epiphany_emit_save_restore): When doing an lr save or restore,
26849 set/verify lr_slot_known and lr_slot_offset.
26851 2013-04-08 Xinyu Qi <xyqi@marvell.com>
26854 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
26857 2013-04-08 Richard Biener <rguenther@suse.de>
26859 * alias.c (find_base_term): Fix thinko in previous change.
26861 2013-04-08 Jakub Jelinek <jakub@redhat.com>
26863 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
26864 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
26865 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
26866 if possible to compute val.
26867 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
26868 For QImode integers don't require anything about precision. Use
26869 const_with_all_bytes_same to find out if the constant doesn't have
26870 repeated bytes in it.
26872 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26874 * config/s390/s390.c (s390_expand_insv): Only accept insertions
26877 2013-04-08 Marek Polacek <polacek@redhat.com>
26879 PR rtl-optimization/48182
26880 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
26883 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26886 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
26887 nuses, make sure we have a label.
26889 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26892 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
26893 (rs6000_emit_swdiv_low_precision): Remove.
26894 (rs6000_emit_swdiv): Rewrite to handle between one and four
26895 iterations of Newton-Raphson generally; modify required number of
26896 iterations for some cases.
26897 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
26899 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
26901 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
26902 set-but-unused variable.
26904 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
26905 basic blocks of released function bodies garbage-collectable.
26907 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
26908 (struct rtl_opt_pass): Add TODO_df_finish.
26910 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
26912 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
26914 * config/arm/constraints.md (q): New constraint.
26915 * config/arm/ldrdstrd.md: New file.
26916 * config/arm/arm.md (ldrdstrd.md) New include.
26917 (arm_movdi): Use "q" instead of "r" constraint
26918 for double-word memory access.
26919 (movdf_soft_insn): Likewise.
26920 * config/arm/vfp.md (movdi_vfp): Likewise.
26921 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
26922 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
26923 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
26924 (mem_ok_for_ldrd_strd): Likewise.
26925 (output_move_double): Update assertion.
26927 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
26929 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
26931 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
26933 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
26934 define_insn_and_split.
26935 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
26937 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
26939 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
26940 define_insn_and_split.
26941 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
26942 (shiftsi3_compare): New pattern.
26943 (rrx): New pattern.
26944 * config/arm/unspecs.md (UNSPEC_RRX): New.
26946 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
26948 * config/arm/arm.md (negdi_extendsidi): New pattern.
26949 (negdi_zero_extendsidi): Likewise.
26951 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
26953 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
26954 define_insn_and_split.
26955 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
26956 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
26958 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
26960 * config/arm/arm.md (arm_subdi3): Convert define_insn into
26961 define_insn_and_split.
26962 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
26963 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
26965 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
26967 * config/arm/arm.md (subsi3_carryin): New pattern.
26968 (subsi3_carryin_const): Likewise.
26969 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
26970 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
26972 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
26974 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
26976 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
26978 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
26979 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
26981 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26983 * config/arm/arm.c (arm_expand_builtin): Change fcode
26984 type to unsigned int.
26986 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26988 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
26990 2013-04-04 Ian Lance Taylor <iant@google.com>
26992 * doc/standards.texi (Standards): The Go frontend supports the Go 1
26995 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
26997 PR middle-end/56729
26998 * df-scan.c (df_insn_delete): Disable failing assert.
27000 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27002 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
27003 New function prototype.
27004 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
27005 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
27006 (arm_builtin_vectorized_function): New function.
27008 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27010 * config/arm/arm_neon_builtins.def: New file.
27011 * config/arm/arm.c (neon_builtin_data): Move contents to
27012 arm_neon_builtins.def.
27013 (enum arm_builtins): Include neon builtin definitions.
27014 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
27015 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
27017 2013-04-04 Marek Polacek <polacek@redhat.com>
27019 PR tree-optimization/48186
27020 * predict.c (maybe_hot_frequency_p): Return false if
27021 HOT_BB_FREQUENCY_FRACTION is 0.
27022 (cgraph_maybe_hot_edge_p): Likewise.
27024 2013-04-04 Richard Biener <rguenther@suse.de>
27026 PR tree-optimization/56826
27027 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
27030 2013-04-04 Richard Biener <rguenther@suse.de>
27032 PR tree-optimization/56213
27033 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
27034 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
27036 2013-04-04 Richard Biener <rguenther@suse.de>
27038 PR tree-optimization/56837
27039 * tree-loop-distribution.c (classify_partition): For non-zero
27040 values require that the value has the same precision as its
27041 mode to be useful as memset value.
27043 2013-04-03 Nick Clifton <nickc@redhat.com>
27045 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
27046 (fmssf4): Use fmsf.s on E3V5 architectures.
27047 (fnmasf4): Use fnmaf.s on E3V5 architectures.
27048 (fnmssf4): Use fnmsf.s on E3V5 architectures.
27050 2013-04-03 Jeff Law <law@redhat.com>
27052 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
27053 (lra-eliminations.o): Likewise.
27055 2013-04-03 Teresa Johnson <tejohnson@google.com>
27057 * gcov-io.c (compute_working_sets): Moved most of body of old
27058 compute_working_sets here from profile.c.
27059 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
27060 (gcov_working_set_t): Moved typedef here from basic-block.h
27061 (compute_working_set): Declare.
27062 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
27063 (get_working_sets): Renamed from compute_working_set,
27064 replace most of body with call to new compute_working_sets.
27065 (get_exec_counts): Replace call to compute_working_sets
27066 to get_working_sets.
27067 * profile.h (get_working_sets): Renamed from compute_working_set.
27068 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
27069 to get_working_sets.
27070 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
27071 * gcov-dump.c (dump_working_sets): New function.
27073 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
27075 * hwint.c (sext_hwi, zext_hwi): New functions.
27076 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
27077 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
27078 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
27079 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
27080 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
27081 (sext_hwi, zext_hwi): New functions.
27083 2013-04-03 Jeff Law <law@redhat.com>
27085 PR tree-optimization/56799
27086 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
27087 back test for widening conversion erroneously dropped in prior change.
27089 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27092 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
27093 instead of next_real_insn.
27095 2013-04-03 Marek Polacek <polacek@redhat.com>
27098 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
27100 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27103 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
27105 (thumb1_output_casesi): Likewise.
27106 (thumb2_output_casesi): Likewise.
27108 2013-04-03 Richard Biener <rguenther@suse.de>
27110 PR tree-optimization/56817
27111 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
27113 (tree_unroll_loops_completely_1): ... new function to manually
27114 walk the loop tree, properly defering outer loops of unrolled
27115 loops to later iterations.
27117 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
27119 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
27120 (vectorizable_load): Likewise.
27121 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
27122 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
27124 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
27126 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
27129 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27131 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
27133 2013-04-03 Bin Cheng <bin.cheng@arm.com>
27135 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
27137 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
27139 PR tree-optimization/56790
27140 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
27143 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
27145 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
27147 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
27148 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
27151 2013-04-03 Jakub Jelinek <jakub@redhat.com>
27154 * tree.h (force_folding_builtin_constant_p): New decl.
27155 * builtins.c (force_folding_builtin_constant_p): New variable.
27156 (fold_builtin_constant_p): Fold immediately also if
27157 force_folding_builtin_constant_p.
27159 2013-04-03 Richard Biener <rguenther@suse.de>
27161 PR tree-optimization/56812
27162 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
27163 DRs of the same interleaving chain are independent.
27165 2013-04-02 Jason Merrill <jason@redhat.com>
27167 * gdbinit.in (pbb): Use debug fn.
27169 2013-04-02 Lawrence Crowl <crowl@google.com>
27171 * sese.h (struct ivtype_map_elt_s): Remove unused.
27172 (extern debug_ivtype_map): Remove unused.
27173 (extern eq_ivtype_map_elts): Remove unused.
27174 * sese.c (debug_ivtype_map): Removed unused.
27175 (debug_ivtype_map_1): Removed unused.
27176 (debug_ivtype_elt): Remove unused.
27177 (eq_ivtype_map_elts): Remove unused.
27179 2013-04-02 Kai Tietz <ktietz@redhat.com>
27182 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
27183 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
27184 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
27186 (legitimize_pe_coff_symbol): Likewise.
27187 (is_imported_p): New helper-function.
27188 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
27189 for Windows x64 targets.
27190 (ix86_expand_prologue): Optimize for pe-coff targets.
27191 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
27192 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
27193 medium/large code-model.
27194 (legitimize_pic_address): Likewise.
27195 (legitimize_tls_address): Likewise.
27196 (ix86_expand_call): Likewise.
27197 (x86_output_mi_thunk): Likewise.
27198 (get_dllimport_decl): Add new beimport argument.
27199 (construct_plt_address): Don't assert for x64 pe-coff targets.
27200 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
27202 (SYMBOL_FLAG_STUBVAR): New macro.
27203 (SYMBOL_REF_STUBVAR_P): Likewise.
27204 * config/i386/winnt.c (stub_list): New structure.
27205 (stub_head): New local variable.
27206 (i386_pe_record_stub): New function.
27207 (i386_pe_file_end): Emit refptr-stubs.
27209 2013-04-02 Jakub Jelinek <jakub@redhat.com>
27211 PR rtl-optimization/56745
27212 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
27213 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
27216 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
27217 and both of them are MEM_REFs, just compare first argument for
27218 equality and attempt to deal even with differing offsets.
27221 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
27222 of gimple_clobber_p to be MEM_REF.
27223 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
27224 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
27225 after gimplification.
27226 * asan.c (get_mem_ref_of_assignment): Don't instrument
27227 gimple_clobber_p stmts.
27228 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
27229 gimple_clobber_p stmt if they have MEM_REF lhs and
27230 are dead because of another gimple_clobber_p stmt.
27231 * tree-ssa-live.c (clear_unused_block_pointer): Treat
27232 gimple_clobber_p stmts like debug stmts.
27233 (remove_unused_locals): Remove clobbers with MEM_REF lhs
27234 that refer to unused VAR_DECLs or uninitialized values.
27235 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
27236 gimple_clobber_p stmts if they refer to removed parameters.
27237 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
27240 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
27242 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
27243 using SWI48 mode attribute.
27245 2013-04-02 Wei Mi <wmi@google.com>
27247 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
27248 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
27249 *<rotate_insn><mode>3_mask in i386.md.
27251 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
27253 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
27255 2013-04-02 Richard Biener <rguenther@suse.de>
27257 PR tree-optimization/56778
27258 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
27259 Runtime alias tests are not supported for gather loads.
27260 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
27261 stmts referenced from SSA operands before updating SSA form.
27263 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
27264 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27266 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
27267 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
27268 * config/arm/cortex-a53.md: New file.
27269 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
27270 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
27271 * config/arm/arm.c (arm_issue_rate): Likewise.
27272 * config/arm/arm-tune.md: Regenerate
27273 * config/arm/arm-tables.opt: Regenerate.
27274 * config/arm/arm-cores.def: Add cortex-a53.
27276 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
27278 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
27281 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
27283 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
27284 scalar load/store operations using B/H registers.
27285 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
27287 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
27289 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
27291 * config/aarch64/aarch64.c
27292 (aarch64_simd_scalar_immediate_valid_for_move): New.
27293 * config/aarch64/aarch64-protos.h
27294 (aarch64_simd_scalar_immediate_valid_for_move): New.
27295 * config/aarch64/constraints.md (Dh, Dq): New.
27296 * config/aarch64/iterators.md (hq): New.
27298 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
27300 * reorg.c (get_branch_condition): Deal with conditional returns.
27301 (fill_simple_delay_slots): Remove dead code dealing with jumps.
27303 2013-04-01 Wei Mi <wmi@google.com>
27305 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
27306 Truncate operand 2 using %b asm operand modifier.
27307 (*<shift_insn><mode>3_mask): Ditto.
27308 (*<rotate_insn><mode>3_mask): Ditto.
27310 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
27312 PR middle-end/56798
27313 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
27315 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
27317 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
27319 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
27321 2013-03-30 Lawrence Crowl <crowl@google.com>
27323 * dse.c (clear_alias_sets): Remove never set.
27324 (disqualified_clear_alias_sets): Remove never set.
27325 (clear_alias_mode_pool): Remove never set.
27326 (dse_step0): Remove condition that is never true.
27327 (canon_address): Remove condition that is never true.
27328 (dse_step7): Remove condition that is never true.
27329 (rest_of_handle_dse): Remove condition that is never true.
27330 (rest_of_handle_dse::did_global): Remove never read from above.
27331 (dse_step2_spill): Remove never called from above.
27332 (dse_step5_spill): Remove never called from above.
27334 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
27336 * doc/md.texi (Standard Names) <casesi>: Update documentation for
27337 JUMP_TABLE_DATA changes.
27338 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
27339 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
27340 (Insns) <jump_table_data>: New entry.
27341 * doc/tm.texi: Regenerate.
27343 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
27345 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
27346 for table jump at the end of a basic block using tablejump_p.
27347 * targhooks.c (default_invalid_within_doloop): Likewise.
27348 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
27349 target hook implementation that is identical to the default hook.
27350 (rs6000_invalid_within_doloop): Remove.
27352 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
27353 unused variable from tablejump_p call.
27355 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
27356 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
27357 (INSN_DELETED_P): Likewise.
27358 (emit_jump_table_data): New prototype.
27359 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
27360 after 4th as unused.
27361 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
27362 * sched-vis.c (print_insn): Likewise.
27363 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
27364 insn for compatibility with back ends that use next_active_insn to
27365 identify jump table data.
27366 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
27367 (remove_insn): Likewise.
27368 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
27370 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
27371 (emit_jump_table_data): New function.
27373 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
27374 basic block, a JUMP_TABLE_DATA never is.
27375 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
27376 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
27377 off from code handling real insns.
27378 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
27379 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
27380 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
27381 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
27382 is not a NONDEBUG_INSN_P.
27383 * ira-costs.c (scan_one_insn): Likewise.
27384 * jump.c (mark_all_labels): Likewise.
27385 (mark_jump_label_1): Likewise.
27386 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
27387 * lra.c (get_insn_freq): Expect all insns reaching here to be in
27389 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
27390 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
27391 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
27392 JUMP_TABLE_DATA_P insns.
27393 (calculate_elim_costs_all_insns): Likewise.
27394 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
27395 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
27396 (delete_output_reload): Code style fixups.
27397 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
27398 insn flags on this non-insn.
27399 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
27400 as scheduling barriers, for pre-change compatibility.
27401 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
27402 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
27404 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
27405 redundant JUMP_TABLE_DATA_P test.
27406 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
27407 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
27408 (frv_for_each_packet): Likewise.
27409 * config/i386/i386.c (min_insn_size): Likewise.
27410 (ix86_avoid_jump_mispredicts): Likewise.
27411 * config/m32r/m32r.c (m32r_is_insn): Likewise.
27412 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
27413 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
27414 (mips16_insn_length): Robustify.
27415 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
27416 (mips16_split_long_branches): Likewise.
27417 * config/pa/pa.c (pa_combine_instructions): Likewise.
27418 * config/rs6000/rs6000.c (get_next_active_insn): Treat
27419 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
27420 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
27421 as contributing to pool range lengths.
27422 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
27423 Remove redundant JUMP_TABLE_DATA_P test.
27424 (sh_loop_align): Likewise.
27425 (split_branches): Likewise.
27426 (sh_insn_length_adjustment): Likewise.
27427 * config/spu/spu.c (get_branch_target): Likewise.
27429 2013-03-29 Jan Hubicka <jh@suse.cz>
27431 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
27432 gcov streaming; stream hot bb threshold to ltrans.
27433 * predict.c (get_hot_bb_threshold): Break out from ....
27434 (maybe_hot_count_p): ... here.
27435 (set_hot_bb_threshold): New function.
27436 * lto-section-in.c (lto_section_name): Add profile.
27437 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
27438 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
27439 and data-streamer.h
27440 (histogram_entry): New structure.
27441 (histogram, histogram_pool): New global vars.
27442 (histogram_hash): New structure.
27443 (histogram_hash::hash): New method.
27444 (histogram_hash::equal): Likewise.
27445 (account_time_size): New function.
27446 (cmp_counts): New function.
27447 (dump_histogram): New function.
27448 (ipa_profile_generate_summary): New function.
27449 (ipa_profile_write_summary): New function.
27450 (ipa_profile_read_summary): New function.
27451 (ipa_profile): Decide on threshold.
27452 (pass_ipa_profile): Add ipa_profile_write_summary and
27453 ipa_profile_read_summary.
27454 * Makefile.in (ipa.o): Update dependencies.
27455 * lto-streamer.h (LTO_section_ipa_profile): New section.
27457 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
27459 * tree.h (VAR_P): New.
27461 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
27464 * doc/invoke.texi ([-fwhole-program]): Fix typo.
27466 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
27468 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
27469 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
27470 (control_flow_insn_p): Likewise.
27471 * cfgrtl.c (duplicate_insn_chain): Likewise.
27472 * final.c (get_attr_length_1): Likewise.
27473 (shorten_branches): Likewise.
27474 (final_scan_insn): Likewise.
27475 * function.c (instantiate_virtual_regs): Likewise.
27476 * gcse.c (insert_insn_end_basic_block): Likewise.
27477 * ira-costs.c (scan_one_insn): Likewise.
27478 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
27479 * lra.c (check_rtl): Likewise.
27480 * reload1.c (elimination_costs_in_insn): Likewise.
27481 * reorg.c (follow_jumps): Likewise.
27483 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
27484 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
27485 (thumb_far_jump_used_p): Likewise.
27486 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
27487 (workaround_speculation): Likewise.
27488 (add_sched_insns_for_speculation): Likewise.
27489 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
27490 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
27491 (frv_for_each_packet): Likewise.
27492 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
27493 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
27494 (final_emit_insn_group_barriers): Likewise.
27495 * config/m32r/m32r.c (m32r_is_insn): Likewise.
27496 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
27497 (mips16_insn_length): Likewise.
27498 * config/pa/pa.c (pa_reorg): Likewise.
27499 (pa_combine_instructions): Likewise.
27500 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
27501 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
27502 (sh_reorg): Likewise.
27503 (split_branches): Likewise.
27504 * config/spu/spu.c (get_branch_target): Likewise.
27506 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
27509 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
27511 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
27512 Fix declaration name.
27514 2013-03-28 Lawrence Crowl <crowl@google.com>
27516 * graphds.h (struct graph.indicies): Remove unused.
27517 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
27518 (SCOP_ORIGINAL_PDDRS): Remove unused.
27519 * sese.h (extern insert_loop_close_phis): Removed unused.
27520 (extern insert_guard_phis): Removed unused.
27521 (extern ivtype_map_elt_info): Removed unused.
27522 (new_ivtype_map_elt): Removed unused.
27523 * sese.c (ivtype_map_elt_info): Removed unused.
27525 2013-03-28 Lawrence Crowl <crowl@google.com>
27527 * Makefile.in: Add several missing include dependences.
27529 (test-dump.o): New. This object is not added to any executable,
27530 but is present for ad-hoc testing.
27532 (debug (const bitmap_head_def &)): New.
27533 (debug (const bitmap_head_def *)): New.
27535 (extern debug (const bitmap_head_def &)): New.
27536 (extern debug (const bitmap_head_def *)): New.
27538 (debug (edge_def &)): New.
27539 (debug (edge_def *)): New.
27541 (debug (basic_block_def &)): New.
27542 (debug (basic_block_def *)): New.
27544 (dump_node (const_tree, int, FILE *)): Correct source file.
27546 (debug (die_struct &)): New.
27547 (debug (die_struct *)): New.
27549 (extern debug (die_struct &)): New.
27550 (extern debug (die_struct *)): New.
27551 * gimple-pretty-print.c
27552 (debug (gimple_statement_d &)): New.
27553 (debug (gimple_statement_d *)): New.
27554 * gimple-pretty-print.h
27555 (extern debug (gimple_statement_d &)): New.
27556 (extern debug (gimple_statement_d *)): New.
27558 (debug (ira_allocno_copy &)): New.
27559 (debug (ira_allocno_copy *)): New.
27560 (debug (ira_allocno &)): New.
27561 (debug (ira_allocno *)): New.
27563 (extern debug (ira_allocno_copy &)): New.
27564 (extern debug (ira_allocno_copy *)): New.
27565 (extern debug (ira_allocno &)): New.
27566 (extern debug (ira_allocno *)): New.
27568 (debug (live_range &)): New.
27569 (debug (live_range *)): New.
27571 (debug (lra_live_range &)): New.
27572 (debug (lra_live_range *)): New.
27574 (debug (lra_live_range &)): New.
27575 (debug (lra_live_range *)): New.
27577 (debug (omega_pb_d &)): New.
27578 (debug (omega_pb_d *)): New.
27580 (extern debug (omega_pb_d &)): New.
27581 (extern debug (omega_pb_d *)): New.
27583 (debug (const rtx_def &)): New.
27584 (debug (const rtx_def *)): New.
27586 (debug_tree (tree): Move within file.
27587 (debug_raw (const tree_node &)): New.
27588 (debug_raw (const tree_node *)): New.
27589 (dump_tree_via_hooks (const tree_node *, int)): New.
27590 (debug (const tree_node &)): New.
27591 (debug (const tree_node *)): New.
27592 (debug_verbose (const tree_node &)): New.
27593 (debug_verbose (const tree_node *)): New.
27594 (debug_head (const tree_node &)): New.
27595 (debug_head (const tree_node *)): New.
27596 (debug_body (const tree_node &)): New.
27597 (debug_body (const tree_node *)): New.
27598 (debug_vec_tree (tree): Move and reimplement in terms of dump.
27599 (debug (vec<tree, va_gc> &)): New.
27600 (debug (vec<tree, va_gc> *)): New.
27602 (extern debug (const rtx_def &)): New.
27603 (extern debug (const rtx_def *)): New.
27605 (debug_raw (simple_bitmap_def &)): New.
27606 (debug_raw (simple_bitmap_def *)): New.
27607 (debug (simple_bitmap_def &)): New.
27608 (debug (simple_bitmap_def *)): New.
27610 (extern debug (simple_bitmap_def &)): New.
27611 (extern debug (simple_bitmap_def *)): New.
27612 (extern debug_raw (simple_bitmap_def &)): New.
27613 (extern debug_raw (simple_bitmap_def *)): New.
27615 (debug (vinsn_def &)): New.
27616 (debug (vinsn_def *)): New.
27617 (debug_verbose (vinsn_def &)): New.
27618 (debug_verbose (vinsn_def *)): New.
27619 (debug (expr_def &)): New.
27620 (debug (expr_def *)): New.
27621 (debug_verbose (expr_def &)): New.
27622 (debug_verbose (expr_def *)): New.
27623 (debug (vec<rtx> &)): New.
27624 (debug (vec<rtx> *)): New.
27626 (extern debug (vinsn_def &)): New.
27627 (extern debug (vinsn_def *)): New.
27628 (extern debug_verbose (vinsn_def &)): New.
27629 (extern debug_verbose (vinsn_def *)): New.
27630 (extern debug (expr_def &)): New.
27631 (extern debug (expr_def *)): New.
27632 (extern debug_verbose (expr_def &)): New.
27633 (extern debug_verbose (expr_def *)): New.
27634 (extern debug (vec<rtx> &)): New.
27635 (extern debug (vec<rtx> *)): New.
27637 (_list_iter_cond_expr): Make inline instead of static.
27639 (debug (sreal &)): New.
27640 (debug (sreal *)): New.
27642 (extern debug (sreal &)): New.
27643 (extern debug (sreal *)): New.
27645 (extern debug_raw (const tree_node &)): New.
27646 (extern debug_raw (const tree_node *)): New.
27647 (extern debug (const tree_node &)): New.
27648 (extern debug (const tree_node *)): New.
27649 (extern debug_verbose (const tree_node &)): New.
27650 (extern debug_verbose (const tree_node *)): New.
27651 (extern debug_head (const tree_node &)): New.
27652 (extern debug_head (const tree_node *)): New.
27653 (extern debug_body (const tree_node &)): New.
27654 (extern debug_body (const tree_node *)): New.
27655 (extern debug (vec<tree, va_gc> &)): New.
27656 (extern debug (vec<tree, va_gc> *)): New.
27658 (debug (struct loop &)): New.
27659 (debug (struct loop *)): New.
27660 (debug_verbose (struct loop &)): New.
27661 (debug_verbose (struct loop *)): New.
27662 * tree-dump.c: Add header dependence.
27664 (extern debug (struct loop &)): New.
27665 (extern debug (struct loop *)): New.
27666 (extern debug_verbose (struct loop &)): New.
27667 (extern debug_verbose (struct loop *)): New.
27669 (debug (data_reference &)): New.
27670 (debug (data_reference *)): New.
27671 (debug (vec<data_reference_p> &)): New.
27672 (debug (vec<data_reference_p> *)): New.
27673 (debug (vec<ddr_p> &)): New.
27674 (debug (vec<ddr_p> *)): New.
27676 (extern debug (data_reference &)): New.
27677 (extern debug (data_reference *)): New.
27678 (extern debug (vec<data_reference_p> &)): New.
27679 (extern debug (vec<data_reference_p> *)): New.
27680 (extern debug (vec<ddr_p> &)): New.
27681 (extern debug (vec<ddr_p> *)): New.
27683 (debug (pt_solution &)): New.
27684 (debug (pt_solution *)): New.
27686 (extern debug (pt_solution &)): New.
27687 (extern debug (pt_solution *)): New.
27689 (debug (_var_map &)): New.
27690 (debug (_var_map *)): New.
27691 (debug (tree_live_info_d &)): New.
27692 (debug (tree_live_info_d *)): New.
27694 (extern debug (_var_map &)): New.
27695 (extern debug (_var_map *)): New.
27696 (extern debug (tree_live_info_d &)): New.
27697 (extern debug (tree_live_info_d *)): New.
27699 2013-03-28 Jan Hubicka <jh@suse.cz>
27701 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
27703 2013-03-28 Ian Bolton <ian.bolton@arm.com>
27705 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
27706 record only when desired or required.
27708 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
27710 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
27711 *vec_extractv2di_1_rex64. Use x64 isa attribute.
27713 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
27715 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
27716 (*andsi3_compare0_uxtw): New pattern.
27717 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
27718 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
27720 2013-03-28 Jan Hubicka <jh@suse.cz>
27722 * data-streamer-in.c (streamer_read_gcov_count): New function.
27723 * gimple-streamer-out.c: Include value-prof.h.
27724 (output_gimple_stmt): Output histogram.
27725 (output_bb): Use streamer_write_gcov_count.
27726 * value-prof.c: Include data-streamer.h
27727 (dump_histogram_value): Add HIST_TYPE_MAX.
27728 (stream_out_histogram_value): New function.
27729 (stream_in_histogram_value): New function.
27730 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
27731 (stream_out_histogram_value, stream_in_histogram_value): Declare.
27732 * data-streamer-out.c (streamer_write_gcov_count): New function.
27733 (streamer_write_gcov_count_stream): New function.
27734 * lto-cgraph.c (lto_output_edge): Update counter streaming.
27735 (lto_output_node): Likewise.
27736 (input_node, input_edge): Likewise.
27737 * lto-streamer-out.c (output_cfg): Update streaming.
27738 * lto-streamer-in.c (input_cfg): Likewise.
27739 * data-streamer.h (streamer_write_gcov_count,
27740 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
27741 * gimple-streamer-in.c: Include value-prof.h
27742 (input_gimple_stmt): Input histograms.
27743 (input_bb): Update profile streaming.
27745 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
27747 * genmodes.c (emit_max_int): New function.
27748 (emit_insn_modes_h): Added call to emit_max_function.
27749 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
27751 * machmode.def: Fixed comment.
27753 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
27755 * combine.c (try_combine): Removed useless assert.
27756 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
27758 2013-03-28 Marek Polacek <polacek@redhat.com>
27759 Richard Biener <rguenther@suse.de>
27761 PR tree-optimization/56695
27762 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
27763 build signed result of a vector comparison.
27764 * tree-cfg.c (verify_gimple_comparison): Check that a result
27765 of a vector comparison has signed type.
27767 2013-03-28 Richard Biener <rguenther@suse.de>
27769 PR tree-optimization/37021
27770 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
27771 do not restrict gaps between groups.
27772 * tree-vect-stmts.c (vectorizable_load): Properly account for
27773 a gap between groups.
27775 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
27777 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
27778 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
27781 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
27783 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
27784 * doc/extend.texi (Named Address Spaces): Ditto.
27785 (Variable Attributes): Ditto.
27787 2013-03-27 Kai Tietz <ktietz@redhat.com>
27789 * config.build: Add support for cygwin x64 target.
27790 * config.gcc: Likewise.
27791 * config.host: Likewise.
27792 * configure.ac: Likewise
27793 * configure: Regenerated.
27795 2013-03-27 Kai Tietz <ktietz@redhat.com>
27797 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
27798 * config/i386/t-cygwin-w64: New file.
27799 * config/i386/cygwin-w64.h: New file.
27800 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
27801 and add support for x64-cygwin target.
27802 (CPP_SPEC): Likewise.
27803 (CXX_WRAP_SPEC_LIST): Undefine before define.
27804 (LIBGCJ_SONAME): Use 15 as version.
27806 2013-03-27 Richard Biener <rguenther@suse.de>
27808 PR tree-optimization/56716
27809 * tree-ssa-structalias.c (perform_var_substitution): Adjust
27810 dumping for ref nodes.
27812 2013-03-27 Martin Jambor <mjambor@suse.cz>
27814 PR tree-optimization/55334
27815 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
27816 restricted pointers to arrays.
27818 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
27820 * Makefile.in (.SUFFIXES): Add .cc.
27821 (.c.o): Apply same recipe for implicit rule .cc.o.
27823 2013-03-27 Richard Biener <rguenther@suse.de>
27825 PR tree-optimization/37021
27826 * tree-vect-data-refs.c (vect_check_strided_load): Allow
27827 REALPART/IMAGPART_EXPRs around the supported refs.
27828 * tree-ssa-structalias.c (find_func_aliases): Assume that
27829 floating-point values are not used to transfer pointers.
27831 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
27833 * target.def (TARGET_HAS_IFUNC_P): New target hook.
27834 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
27835 * doc/tm.texi: Regenerate.
27836 * targhooks.h (default_has_ifunc_p): New.
27837 * targhooks.c (default_has_ifunc_p): Ditto.
27838 * config/linux-protos.h: New file.
27839 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
27840 hook for linux which disables support of indirect functions in android.
27841 * config/linux-android.c: New file.
27842 * config/t-linux-android.c: Ditto.
27843 * config.gcc: Added new object file linux-android.o.
27844 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
27845 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
27846 * varasm.c (do_assemble_alias): Likewise.
27847 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
27848 doesn't support indirect functions.
27849 * configure: Regenerate.
27851 2013-03-27 Bin Cheng <bin.cheng@arm.com>
27854 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
27855 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
27858 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27860 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
27862 2013-03-27 Terry Guo <terry.guo@arm.com>
27864 * config/arm/arm-cores.def: Added core cortex-r7.
27865 * config/arm/arm-tune.md: Regenerated.
27866 * config/arm/arm-tables.opt: Regenerated.
27867 * doc/invoke.texi: Added entry for core cortex-r7.
27869 2013-03-27 Walter Lee <walt@tilera.com>
27871 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
27872 double-decrement of next_scratch_regno.
27874 2013-03-27 Walter Lee <walt@tilera.com>
27876 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
27878 (insn_v1mulus): Ditto.
27879 (insn_v2muls): Ditto.
27881 2013-03-27 Walter Lee <walt@tilera.com>
27883 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
27884 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
27886 2013-03-27 Walter Lee <walt@tilera.com>
27888 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
27889 (*sibcall_value): Ditto.
27891 2013-03-27 Walter Lee <walt@tilera.com>
27893 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
27894 (insn_mnz_v8qi): ... this ...
27895 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
27897 (insn_v<n>mnz): Replaced by ...
27898 (insn_v1mnz): ... this ...
27899 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
27901 (insn_mz_<mode>): Replaced by ...
27902 (insn_mz_v8qi): ... this ...
27903 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
27905 (insn_v<n>mz): Replaced by ...
27906 (insn_v1mz): ... this ...
27907 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
27910 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
27912 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
27914 2013-03-26 Roland McGrath <mcgrathr@google.com>
27916 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
27917 than fprintf with a non-constant, non-format string.
27919 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
27921 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
27922 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
27923 operand 0 predicate.
27924 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
27925 attribute. Use general_x64nomem_operand as operand 1 predicate.
27926 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
27927 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
27928 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
27929 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
27930 (mov<mode>_insv_1): Remove expander. Merge insn with
27931 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
27932 Use general_x64nomem_operand as operand 1 predicate.
27933 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
27934 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
27935 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
27936 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
27937 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
27938 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
27939 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
27940 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
27941 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
27942 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
27943 (general_x64nomem_operand): Ditto.
27945 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
27947 * config/rtems.opt: Add -pthread option.
27949 2013-03-26 Richard Biener <rguenther@suse.de>
27951 * alias.c (find_base_term): Avoid redundant and not used recursion.
27952 (base_alias_check): Get the initial base term from the caller.
27953 (true_dependence_1): Compute and pass base terms to base_alias_check.
27954 (write_dependence_p): Likewise.
27955 (may_alias_p): Likewise.
27957 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
27959 * config/aarch64/aarch64.c (aarch64_classify_address): Support
27960 PC-relative load in SI modes and above only.
27962 2013-03-26 Xinyu Qi <xyqi@marvell.com>
27964 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
27965 * config/arm/iwmmxt.md (WCGR0): Update.
27966 (WCGR1, WCGR2, WCGR3): Likewise.
27968 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
27970 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
27971 Use x64 and nox64 isa attributes.
27973 2013-03-26 Richard Biener <rguenther@suse.de>
27975 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
27976 alignment computations and rely on get_object_alignment_1
27977 for the !TYPE_P case.
27978 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
27980 2013-03-26 Walter Lee <walt@tilera.com>
27982 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
27983 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
27985 2013-03-25 Jeff Law <law@redhat.com>
27987 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
27988 check for INTEGRAL_TYPE_P that was missing due to checking in
27989 wrong version of prior patch.
27991 2013-03-25 Walter Lee <walt@tilera.com>
27993 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
27994 TILEGX_INSN_SHUFFLEBYTES1.
27995 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
27997 (tilegx_builtins): Ditto.
27998 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
28000 2013-03-25 Walter Lee <walt@tilera.com>
28002 * config/tilegx/tilegx.md (floatsisf2): New pattern.
28003 (floatunssisf2): New pattern.
28004 (floatsidf2): New pattern.
28005 (floatunssidf2): New pattern.
28007 2013-03-25 Walter Lee <walt@tilera.com>
28009 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
28010 tests for constraint J, K, N, P.
28012 2013-03-25 Walter Lee <walt@tilera.com>
28014 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
28015 Use indirect/pcrel encoding.
28016 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
28019 2013-03-25 Steve Ellcey <sellcey@mips.com>
28021 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
28022 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
28023 * config/mips/mips.c (mips_option_override): Set IMADD default.
28024 * config/mips/mips.h (PTF_AVOID_IMADD): New.
28025 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
28026 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
28027 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
28028 * doc/invoke.texi (-mimadd/-mno-imadd): New.
28030 2013-03-25 Jeff Law <law@redhat.com>
28032 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
28033 slightly to avoid creating and folding useless trees. Simplify
28034 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
28036 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
28038 * config/i386/i386.md (*zero_extendsidi2): Merge with
28039 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
28040 * config/i386/predicates.md (x86_64_zext_operand): Rename from
28041 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
28042 targets. Clarify comment.
28044 2013-03-25 Martin Jambor <mjambor@suse.cz>
28046 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
28047 pass-through jump functions differently.
28048 (ipa_read_jump_function): Likewise. Also use setter functions to set
28051 2013-03-25 Martin Jambor <mjambor@suse.cz>
28053 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
28054 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
28056 (ipa_get_indirect_edge_target): New function.
28057 (devirtualization_time_bonus): New parameter known_aggs, pass it to
28058 ipa_get_indirect_edge_target. Update all callers.
28059 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
28060 ipa_get_indirect_edge_target_1 instead of calling
28061 ipa_get_indirect_edge_target.
28062 (create_specialized_node): Pass aggvlas to
28063 ipcp_discover_new_direct_edges.
28065 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28067 * config/arm/arm.md (f_sels, f_seld): New types.
28068 (*cmov<mode>): New pattern.
28069 * config/arm/predicates.md (arm_vsel_comparison_operator): New
28072 2013-03-25 Kai Tietz <ktietz@redhat.com>
28074 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
28075 POSIX-printf for mingw-hosted builds.
28077 2013-03-25 Richard Biener <rguenther@suse.de>
28079 PR middle-end/56694
28080 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
28081 must-not-throw stmt location.
28083 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28085 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
28086 Emit load-acquire versions when acq is true.
28087 (arm_emit_store_exclusive): Add rel parameter.
28088 Emit store-release versions when rel is true.
28089 (arm_split_compare_and_swap): Use acquire-release instructions
28091 of barriers when appropriate.
28092 (arm_split_atomic_op): Likewise.
28093 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
28094 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
28095 (VUNSPEC_SLX): Likewise.
28096 (VUNSPEC_LDA): Likewise.
28097 (VUNSPEC_STL): Likewise.
28098 * config/arm/sync.md (atomic_load<mode>): New pattern.
28099 (atomic_store<mode>): Likewise.
28100 (arm_load_acquire_exclusive<mode>): Likewise.
28101 (arm_load_acquire_exclusivesi): Likewise.
28102 (arm_load_acquire_exclusivedi): Likewise.
28103 (arm_store_release_exclusive<mode>): Likewise.
28105 2013-03-25 Catherine Moore <clm@codesourcery.com>
28107 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
28108 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
28109 * config/mip/predicates.md (lwsp_swsp_operand,
28110 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
28111 sb16_operand, db4_operand, db7_operand, ib3_operand,
28112 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
28113 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
28114 andi16_operand): New predicates.
28115 * config/mips/mips.md (compression): New attribute.
28116 (enabled): New attribute.
28117 (length): Consider compression in computing length.
28118 (shift_compression): New code attribute.
28119 (*add<mode>3): New operands. Record compression.
28120 (sub<mode>3): Likewise.
28121 (one_cmpl<mode>2): Likewise.
28122 (*and<mode>3): Likewise.
28123 (*ior<mode>3): Likewise.
28124 (unnamed pattern for xor): Likewise.
28125 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
28126 (*<optab><mode>3): Likewise.
28127 (*mov<mode>_internal: Likewise.
28128 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
28129 (mips_unsigned_immediate_p): New.
28130 (umips_lwsp_swsp_address_p): New.
28131 (m16_based_address_p): New.
28132 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
28133 (mips_unsigned_immediate_p): New prototype.
28134 (lwsp_swsp_address_p): New prototype.
28135 (m16_based_address_p): New prototype.
28136 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
28137 (mips_signed_immediate_p): New function.
28138 (m16_based_address_p): New function.
28139 (lwsp_swsp_address_p): New function.
28140 (mips_print_operand_punctuation): Recognize short delay slot insns
28141 for microMIPS.add<mode>3"
28143 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28146 * config/arm/iterators.md (v_cmp_result): New mode attribute.
28147 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
28149 2013-03-25 Richard Biener <rguenther@suse.de>
28151 PR tree-optimization/56689
28152 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
28155 2013-03-25 Richard Biener <rguenther@suse.de>
28157 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
28159 (memory_references): Likewise.
28160 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
28161 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
28162 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
28163 (gather_mem_refs_in_loops): Fold into ...
28164 (analyze_memory_references): ... this. Move initialization
28165 to tree_ssa_lim_initialize.
28166 (fill_always_executed_in): Rename to ...
28167 (fill_always_executed_in_1): ... this.
28168 (fill_always_executed_in): Move contains_call computation to
28169 this new function from ...
28170 (tree_ssa_lim_initialize): ... here.
28171 (tree_ssa_lim): Call fill_always_executed_in.
28173 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
28175 * postreload.c (reload_combine): Fix code detecting returns.
28177 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
28179 * function.c (emit_use_return_register_into_block): On cc0 targets,
28180 do not emit the sequence between cc0 setter and user.
28182 2013-03-25 Kai Tietz <ktietz@redhat.com>
28184 * config/i386/predicates.md (local_symbolic_operand): Interpret
28185 dll-imported symbols as none-local.
28187 2013-03-25 Richard Biener <rguenther@suse.de>
28189 * tree-ssa-loop-im.c (struct depend): Remove.
28190 (struct lim_aux_data): Make depends a vec of gimples.
28191 (free_lim_aux_data): Adjust.
28192 (add_dependency): Likewise.
28193 (set_level): Likewise.
28195 2013-03-25 Richard Biener <rguenther@suse.de>
28197 PR middle-end/56434
28198 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
28199 the pointer returned by calls with ECF_MALLOC set.
28201 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
28203 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
28205 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
28207 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
28208 using MMXMODE mode iterator.
28209 (*move<mode>_internal): Merge with *movv2sf_internal and
28210 *movv2sf_internal_rex64 using MMXMODE mode iterator.
28212 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
28214 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
28215 (record_last_mem_set_info): Likewise.
28217 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
28218 of XNEWVEC followed by memset.
28219 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
28221 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
28223 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
28224 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
28225 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
28226 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
28227 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
28228 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
28229 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
28230 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
28231 BARRIER_P instead of GET_CODE.
28233 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
28235 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
28236 inaccuracy in the probing code.
28238 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
28239 (ctrapdi4): Likewise.
28241 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
28243 * calls.c (expand_call): Add missing guard to code handling return
28244 of non-BLKmode structures in MSB.
28245 * function.c (expand_function_end): Likewise.
28247 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
28249 * combine.c (try_combine): Adjust comment. Do not add the set of
28250 insn #0 if the destination indirectly is set or dies in insn #2.
28251 Tidy up code to distribute a new note.
28253 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
28255 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
28256 also for alternatives 16 and 17.
28258 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
28260 * config/i386/sse.md (*mov<mode>_internal): Merge with
28261 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
28262 Emit insn template depending on type attribute. Use
28263 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
28264 movd instead of movq mnemonic for interunit moves. Rewrite mode
28265 attribute calculation. Remove unit attribute calculation.
28266 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
28267 Set prefix_data16 attribute for DImode ssemov types.
28268 Use Ym instead of y for SSE-MMX conversion alternatives.
28269 Reorder operand constraints.
28271 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
28273 * df.h (df_insn_delete): Adjust prototype.
28274 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
28275 and let it decide whether mark the basic block dirty.
28276 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
28277 * df-scan.c (df_insn_info_delete): New helper function, split
28278 off from df_insn_delete.
28279 (df_scan_free_bb_info): Use it.
28280 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
28282 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
28283 that the insn is actually an insn and it has a non-NULL basic block.
28284 Do not mark basic block dirty if only deleting a DEBUG_INSN.
28286 2013-03-22 Richard Biener <rguenther@suse.de>
28288 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
28290 (mem_ref_alloc): Do not allocate them.
28291 (refs_independent_p): Do not query or maintain a cache.
28293 2013-03-22 Richard Biener <rguenther@suse.de>
28295 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
28296 (gather_mem_refs_in_loops): Do not compute it.
28297 (analyze_memory_references): Do not allocate it.
28298 (tree_ssa_lim_finalize): Do not free it.
28299 (for_all_locs_in_loop): Do not query all_refs_in_loop.
28301 2013-03-22 Richard Biener <rguenther@suse.de>
28303 * is-a.h (as_a): Use gcc_checking_assert.
28305 2013-03-22 Ian Bolton <ian.bolton@arm.com>
28307 * config/aarch64/aarch64.c (aarch64_print_operand): New
28308 format specifier for printing a constant in hex.
28309 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
28310 format specifier for printing second operand.
28312 2013-03-22 Richard Biener <rguenther@suse.de>
28314 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
28316 (gather_mem_refs_in_loops): Perform store accumulation here.
28317 (create_vop_ref_mapping_loop): Remove.
28318 (create_vop_ref_mapping): Likewise.
28319 (analyze_memory_references): Initialize refs_stored_in_loop.
28320 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
28321 (record_indep_loop): Remove.
28322 (record_dep_loop): New function.
28323 (ref_indep_loop_p_1): Adjust to only walk over references
28324 in the loop, not its subloops.
28325 (ref_indep_loop_p): Rename to ...
28326 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
28327 maintaining a more fine-grained cache.
28328 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
28329 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
28331 2013-03-22 Richard Biener <rguenther@suse.de>
28333 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
28334 (struct mem_ref): Make accesses_in_loop a vec of a vec of
28335 aggregate mem_ref_loc.
28336 (free_mem_ref_locs): Inline into ...
28337 (memref_free): ... this and adjust.
28338 (mem_ref_alloc): Adjust.
28339 (mem_ref_locs_alloc): Remove.
28340 (record_mem_ref_loc): Adjust.
28341 (get_all_locs_in_loop): Rewrite into ...
28342 (for_all_locs_in_loop): ... this iterator.
28343 (rewrite_mem_ref_loc): New functor.
28344 (rewrite_mem_refs): Use for_all_locs_in_loop.
28345 (sm_set_flag_if_changed): New functor.
28346 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
28347 (ref_always_accessed): New functor.
28348 (ref_always_accessed_p): Use for_all_locs_in_loop.
28350 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
28352 * tree-pass.h (PROP_gimple_lvec): New.
28353 * passes.c (dump_properties): Handle PROP_gimple_lvec.
28354 (init_optimization_passes): Move pass_lower_vector.
28355 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
28357 (pass_lower_vector): Provide PROP_gimple_lvec.
28358 (pass_lower_vector_ssa): Likewise.
28359 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
28361 2013-03-21 Mark Wielaard <mjw@redhat.com>
28363 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
28365 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
28367 * config/i386/i386.md (*movdi_internal): Disparage slightly
28368 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
28369 conversion alternatives.
28371 2013-03-21 Jakub Jelinek <jakub@redhat.com>
28373 PR middle-end/48087
28374 * diagnostic.def (DK_WERROR): New kind.
28375 * diagnostic.h (werrorcount): Define.
28376 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
28377 promoted to DK_ERROR, increment DK_WERROR counter instead of
28379 * toplev.c (toplev_main): Call print_ignored_options even if
28380 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
28381 even if just werrorcount is non-zero.
28384 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
28386 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
28387 (string_cst_pool_decl): New function.
28388 (optimize_one_addr_into_implicit_ptr): New function.
28389 (resolve_addr_in_expr): Optimize DWARF location expression
28390 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
28391 which doesn't live in memory, but has DW_AT_location or
28392 DW_AT_const_value, or refers to a string literal, into
28393 DW_OP_GNU_implicit_pointer.
28394 (optimize_location_into_implicit_ptr): New function.
28395 (resolve_addr): If removing DW_AT_location of a variable because
28396 it was DW_OP_addr of address of the variable, but the variable doesn't
28397 live in memory, try to emit const value attribute for the initializer.
28399 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
28401 * tree.h (VECTOR_TYPE_P): New macro.
28402 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
28403 TYPE_MODE): Use it.
28404 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
28405 VEC_COND_EXPR cannot be lvalues.
28406 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
28408 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
28410 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
28411 Restrict the transformation to equal modes.
28413 2013-03-21 Richard Biener <rguenther@suse.de>
28415 PR tree-optimization/39326
28416 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
28417 (MEM_ANALYZABLE): Adjust.
28418 (record_mem_ref_loc): Move bitmap ops ...
28419 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
28420 unanalyzable refs, do not record locations for it.
28421 (analyze_memory_references): Allocate ref zero as shared
28423 (refs_independent_p): Do not test for unanalyzed mems here.
28424 (ref_indep_loop_p_1): Special-case disambiguation against
28425 the unanalyzed ref.
28426 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
28428 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
28430 * config/arm/arm-protos.h (tune_params): Add
28431 prefer_neon_for_64bits field.
28432 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
28433 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
28434 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
28435 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
28436 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
28437 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
28438 (arm_option_override): Handle -mneon-for-64bits new option.
28439 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
28440 (prefer_neon_for_64bits): Declare new variable.
28441 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
28442 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
28443 (arch_enabled): Handle new arch types. Remove support for onlya8
28445 (one_cmpldi2): Use new arch names.
28446 (zero_extend<mode>di2, extend<mode>di2): Ditto.
28447 * config/arm/arm.opt (mneon-for-64bits): Add option.
28448 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
28449 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
28450 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
28452 * doc/invoke.texi (-mneon-for-64bits): Document.
28454 2013-03-21 Richard Biener <rguenther@suse.de>
28456 PR tree-optimization/39326
28457 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
28458 (sort_bbs_in_loop_postorder_cmp): New function.
28459 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
28461 2013-03-21 Richard Biener <rguenther@suse.de>
28463 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
28464 (vect_insert_into_interleaving_chain): Likewise.
28465 (vect_drs_dependent_in_basic_block): Inline ...
28466 (vect_slp_analyze_data_ref_dependence): ... here. New function,
28468 (vect_analyze_data_ref_dependence): ... here. Simplify.
28469 (vect_check_interleaving): Simplify.
28470 (vect_analyze_data_ref_dependences): Likewise. Split out ...
28471 (vect_slp_analyze_data_ref_dependences): ... this new function.
28472 (dr_group_sort_cmp): New function.
28473 (vect_analyze_data_ref_accesses): Compute data-reference groups
28474 here instead of in vect_analyze_data_ref_dependence. Use
28475 a more efficient algorithm.
28476 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
28477 vect_slp_analyze_data_ref_dependences. Call
28478 vect_analyze_data_ref_accesses earlier.
28479 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
28480 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
28481 (vect_slp_analyze_data_ref_dependences): New prototype.
28483 2013-03-21 Richard Biener <rguenther@suse.de>
28485 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
28486 ref is stored in the loop.
28487 (find_refs_for_sm): Walk only over all stores.
28488 (store_motion_loop): Allocate from lim_bitmap_obstack.
28489 (store_motion): Likewise.
28491 2013-03-21 Richard Biener <rguenther@suse.de>
28493 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
28494 Update virtual SSA form.
28496 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28498 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
28499 * configure: Regenerate.
28500 * config.in: Regenerate.
28501 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
28502 if !HAVE_LD_EH_FRAME_CIEV3.
28504 2013-03-21 Richard Biener <rguenther@suse.de>
28506 * tree-cfg.c (verify_expr_no_block): New function.
28507 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
28508 nor DECL_VALUE_EXPR have locations with associated blocks.
28509 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
28510 (clear_unused_block_pointer): Remove code dealing with
28511 blocks in DECL_DEBUG_EXPR locations.
28513 2013-03-21 Richard Biener <rguenther@suse.de>
28515 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
28516 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
28517 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
28518 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
28519 instead of DECL_DEBUG_EXPR_IS_FROM.
28520 * gimplify.c (gimplify_modify_expr): Likewise.
28521 * tree-cfg.c (verify_expr_location_1): Likewise.
28522 * tree-complex.c (create_one_component_var): Likewise.
28523 * tree-sra.c (create_access_replacement): Likewise.
28524 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
28525 (clear_unused_block_pointer): Likewise.
28526 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
28527 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
28528 * var-tracking.c (var_debug_decl): Likewise.
28529 (track_expr_p): Likewise.
28530 * tree-inline.c (add_local_variables): Likewise. Set
28531 DECL_HAS_DEBUG_EXPR_P after copying it.
28532 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
28533 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
28535 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
28538 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
28539 * configure: Regenerate.
28540 * config.in: Regenerate.
28541 * config/i386/i386.md (*movdf_internal): Use
28542 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
28543 movd instead of movq mnemonic for interunit moves.
28544 (*movdi_internal): Ditto.
28546 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
28548 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
28549 (abd<mode>_3): New pattern.
28550 (aba<mode>_3): New pattern.
28551 (fabd<mode>_3): New pattern.
28553 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
28555 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
28556 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
28557 occurrence of REGISTER_PREFIX as its empty string.
28559 2013-03-20 Jeff Law <law@redhat.com>
28561 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
28562 addititional equivalences for equality comparisons between an SSA_NAME
28563 and a constant where the SSA_NAME was set from a widening conversion.
28565 2013-03-20 Walter Lee <walt@tilera.com>
28567 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
28569 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
28571 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
28572 depending on type attribute.
28573 (*movti_internal): Ditto.
28574 (*movtf_internal): Ditto.
28575 (*movxf_internal): Ditto.
28576 (*movdf_internal): Ditto.
28577 (*movsf_internal): Ditto.
28579 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
28581 * config/i386/i386.md (*movti_internal): Set prefix attribute to
28582 maybe_vex for sselog1 and ssemov types.
28583 (*movdi_internal): Reorder operand constraints.
28584 (*movsi_internal): Ditto. Set prefix attribute to
28585 maybe_vex for sselog1 and ssemov types.
28586 (*movtf_internal): Set prefix attribute to maybe_vex
28587 for sselog1 and ssemov types.
28588 (*movdf_internal): Ditto. Set prefix_data16 attribute for
28589 DImode ssemov types. Reorder operand constraints.
28590 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
28591 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
28592 attribute for SImode ssemov types. Reorder operand constraints.
28594 2013-03-20 Martin Jambor <mjambor@suse.cz>
28596 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
28597 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
28599 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
28601 * config/rs6000/predicates.md (indexed_address, update_address_mem
28602 update_indexed_address_mem): New predicates.
28603 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
28604 attribute for load/store instructions.
28605 * config/rs6000/dfp.md (movsd_store): Likewise.
28606 (movsd_load): Likewise.
28607 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
28608 (unnamed HI->DI extend define_insn): Likewise.
28609 (unnamed SI->DI extend define_insn): Likewise.
28610 (unnamed QI->SI extend define_insn): Likewise.
28611 (unnamed QI->HI extend define_insn): Likewise.
28612 (unnamed HI->SI extend define_insn): Likewise.
28613 (unnamed HI->SI extend define_insn): Likewise.
28614 (extendsfdf2_fpr): Likewise.
28615 (movsi_internal1): Likewise.
28616 (movsi_internal1_single): Likewise.
28617 (movhi_internal): Likewise.
28618 (movqi_internal): Likewise.
28619 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
28620 attribute for load/store instructions.
28621 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
28623 (mov<mode>_softfloat): Likewise.
28624 (mov<mode>_hardfloat32): Likewise.
28625 (mov<mode>_hardfloat64): Likewise.
28626 (mov<mode>_softfloat64): Likewise.
28627 (movdi_internal32): Likewise.
28628 (movdi_internal64): Likewise.
28629 (probe_stack_<mode>): Likewise.
28631 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
28633 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
28634 floating point, and decimal floating point to reload iterator.
28636 * config/rs6000/constraints.md (wl constraint): New constraints to
28637 return FLOAT_REGS if certain options are used to reduce the number
28638 of separate patterns that exist in the file.
28639 (wx constraint): Likewise.
28640 (wz constraint): Likewise.
28642 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
28643 -mdebug=reg, print wg, wl, wx, and wz constraints.
28644 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
28645 Initialize the reload functions for 64-bit binary/decimal floating
28647 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
28648 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
28649 create the buffer on the stack to overcome not having a 32-bit
28651 (rs6000_emit_move): Likewise.
28652 (rs6000_secondary_memory_needed_rtx): Likewise.
28653 (rs6000_alloc_sdmode_stack_slot): Likewise.
28654 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
28655 via xxlxor, just like DFmode 0.0.
28657 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
28658 define as 1 if we are running on a power7 or newer.
28659 (enum r6000_reg_class_enum): Add new constraints.
28661 * config/rs6000/dfp.md (movsd): Delete, combine with binary
28662 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
28663 with other moves by using conditional constraits (wg). Use LFIWZX
28664 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
28665 (movsd splitter): Likewise.
28666 (movsd_hardfloat): Likewise.
28667 (movsd_softfloat): Likewise.
28669 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
28670 binary and decimal floating point moves.
28671 (fmove_ok): New attributes to combine binary and decimal floating
28672 point moves, and to combine power6x (mfpgpr) moves along normal
28674 (real_value_to_target): Likewise.
28675 (f32_lr): Likewise.
28676 (f32_lm): Likewise.
28677 (f32_li): Likewise.
28678 (f32_sr): Likewise.
28679 (f32_sm): Likewise.
28680 (f32_si): Likewise.
28681 (movsf): Combine binary and decimal floating point moves. Combine
28682 power6x (mfpgpr) moves with other moves by using conditional
28683 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
28684 (mov<mode> for SFmode/SDmode); Likewise.
28685 (SFmode/SDmode splitters): Likewise.
28686 (movsf_hardfloat): Likewise.
28687 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
28688 (movsf_softfloat): Likewise.
28689 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
28691 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
28692 wx and wz constraints.
28694 * config/rs6000/constraints.md (wg constraint): New constraint to
28695 return FLOAT_REGS if -mmfpgpr (power6x) was used.
28697 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
28700 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
28701 -mdebug=reg, print wg, wl, wx, and wz constraints.
28702 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
28703 Initialize the reload functions for 64-bit binary/decimal floating
28705 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
28706 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
28707 create the buffer on the stack to overcome not having a 32-bit
28709 (rs6000_emit_move): Likewise.
28710 (rs6000_secondary_memory_needed_rtx): Likewise.
28711 (rs6000_alloc_sdmode_stack_slot): Likewise.
28712 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
28713 via xxlxor, just like DFmode 0.0.
28715 * config/rs6000/dfp.md (movdd): Delete, combine with binary
28716 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
28717 with other moves by using conditional constraits (wg). Use LFIWZX
28718 and STFIWX for loading SDmode on power7.
28719 (movdd splitters): Likewise.
28720 (movdd_hardfloat32): Likewise.
28721 (movdd_softfloat32): Likewise.
28722 (movdd_hardfloat64_mfpgpr): Likewise.
28723 (movdd_hardfloat64): Likewise.
28724 (movdd_softfloat64): Likewise.
28726 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
28727 64-bit binary and decimal floating point moves.
28728 (FMOVE64X): Likewise.
28729 (movdf): Combine 64-bit binary and decimal floating point moves.
28730 Combine power6x (mfpgpr) moves with other moves by using
28731 conditional constraits (wg).
28732 (mov<mode> for DFmode/DDmode): Likewise.
28733 (DFmode/DDmode splitters): Likewise.
28734 (movdf_hardfloat32): Likewise.
28735 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
28736 (movdf_softfloat32): Likewise.
28737 (movdf_hardfloat64_mfpgpr): Likewise.
28738 (movdf_hardfloat64): Likewise.
28739 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
28740 (movdf_softfloat64): Likewise.
28741 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
28742 (reload_<mode>_load): Move to later in the file so they aren't in
28743 the middle of the floating point move insns.
28744 (reload_<mode>_store): Likewise.
28746 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
28749 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
28750 constraint if -mdebug=reg.
28751 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
28752 Enable using dd reload support if needed.
28754 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
28755 binary and decimal floating point moves in rs6000.md.
28756 (movtd_internal): Likewise.
28758 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
28759 decimal floating point moves.
28761 (movtf_internal): Likewise.
28762 (mov<mode>_internal, TDmode/TFmode): Likewise.
28763 (movtf_softfloat): Likewise.
28764 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
28766 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
28767 movdi_internal64, using wg constraint for move direct operations.
28768 (movdi_internal64): Likewise.
28770 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
28771 MODES_TIEABLE_P for selected modes. Print the numerical value of
28772 the various virtual registers. Use GPR/FPR first/last values,
28773 instead of hard coding the register numbers. Print which modes
28774 have reload functions registered.
28775 (rs6000_option_override_internal): If -mdebug=reg, trace the options
28776 settings before/after setting cpu, target and subtarget settings.
28777 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
28778 and for secondary reload failures in rs6000_secondary_reload_inner.
28779 (rs6000_secondary_reload_fail): Likewise.
28780 (rs6000_secondary_reload_inner): Likewise.
28782 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
28783 macros for first/last GPR and FPR registers.
28784 (LAST_GPR_REGNO): Likewise.
28785 (FIRST_FPR_REGNO): Likewise.
28786 (LAST_FPR_REGNO): Likewise.
28788 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
28789 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
28790 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
28791 (vcond<mode><mode>): Likewise.
28792 (vcondu<mode><mode>): Likewise.
28793 (vector_gtu<mode>): Likewise.
28794 (vector_gte<mode>): Likewise.
28795 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
28796 to prevent the compiler from converting DImode operations to TImode.
28797 (ior<mode>3): Likewise.
28798 (and<mode>3): Likewise.
28799 (one_cmpl<mode>2): Likewise.
28800 (nor<mode>3): Likewise.
28801 (andc<mode>3): Likewise.
28803 * config/rs6000/constraints.md (wt constraint): New constraint
28804 that returns VSX_REGS if TImode is allowed in VSX registers.
28806 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
28807 constant under VSX.
28809 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
28810 similar to TImode, but it is restricted to being in the GPRs.
28812 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
28813 TImode to occupy a single VSX register.
28815 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
28816 -mvsx-timode for power7/power8.
28817 (power7 cpu): Likewise.
28818 (power8 cpu): Likewise.
28820 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
28821 sure that TFmode/TDmode take up two registers if they are ever
28822 allowed in the upper VSX registers.
28823 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
28825 (rs6000_init_hard_regno_mode_ok): Likewise.
28826 (rs6000_debug_reg_global): Add debugging for PTImode and wt
28827 constraint. Print if LRA is turned on.
28828 (rs6000_option_override_internal): Give an error if -mvsx-timode
28829 and VSX is not enabled.
28830 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
28831 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
28832 to reg+offset addressing. Use PTImode when checking offset
28833 addresses for validity.
28834 (reg_offset_addressing_ok_p): Likewise.
28835 (rs6000_legitimate_offset_address_p): Likewise.
28836 (rs6000_legitimize_address): Likewise.
28837 (rs6000_legitimize_reload_address): Likewise.
28838 (rs6000_legitimate_address_p): Likewise.
28839 (rs6000_eliminate_indexed_memrefs): Likewise.
28840 (rs6000_emit_move): Likewise.
28841 (rs6000_secondary_reload): Likewise.
28842 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
28843 reloads to fpr registers to continue to use reg+offset addressing,
28844 but 64-bit reloads to altivec registers need reg+reg addressing.
28845 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
28846 it. Treat LO_SUM like a PLUS operation.
28847 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
28848 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
28849 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
28850 registers to share a register with a smaller sized type, since VSX
28851 puts scalars in the upper 64-bits.
28852 (print_operand): Add support for PTImode.
28853 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
28854 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
28855 registers, but don't have arithmetic support.
28856 (rs6000_memory_move_cost): Add test for VSX.
28857 (rs6000_opt_masks): Add -mvsx-timode.
28859 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
28862 (VSr): Use wt constraint for TImode.
28863 (VSv): Drop TImode support.
28864 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
28865 (vsx_movti_64bit): Likewise.
28866 (vsx_movti_32bit): Likewise.
28867 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
28868 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
28869 one '?' on the appropriate output constraint. Do not allow TImode
28870 logical operations on 32-bit systems.
28871 (vsx_ior<mode>3): Likewise.
28872 (vsx_xor<mode>3): Likewise.
28873 (vsx_one_cmpl<mode>2): Likewise.
28874 (vsx_nor<mode>3): Likewise.
28875 (vsx_andc<mode>3): Likewise.
28876 (vsx_concat_<mode>): Likewise.
28877 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
28879 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
28880 OPTION_MASK_VSX_TIMODE.
28881 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
28882 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
28884 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
28885 (TI2 iterator): New iterator for TImode, PTImode.
28886 (wd mode attribute): Add values for vector types.
28887 (movti_string): Replace TI move operations with operations for TImode
28888 and PTImode. Add support for TImode being allowed in VSX registers.
28889 (mov<mode>_string, TImode/PTImode): Likewise.
28890 (movti_ppc64): Likewise.
28891 (mov<mode>_ppc64, TImode/PTImode): Likewise.
28892 (TI mode splitters): Likewise.
28894 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
28897 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
28899 PR tree-optimization/56355
28900 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
28901 Also handle integers with undefined overflow.
28903 2013-03-20 Catherine Moore <clm@codesourcery.com>
28904 Maciej W. Rozycki <macro@codesourcery.com>
28905 Tom de Vries <tom@codesourcery.com>
28906 Nathan Sidwell <nathan@codesourcery.com>
28907 Iain Sandoe <iain@codesourcery.com>
28908 Nathan Froyd <froydnj@codesourcery.com>
28909 Chao-ying Fu <fu@mips.com>
28911 * doc/extend.texi: (micromips, nomicromips, nocompression):
28912 Document new function attributes.
28913 * doc/invoke.texi (minterlink-compressed, mmicromips,
28914 m14k, m14ke, m14kec): Document new options.
28915 (minterlink-mips16): Update documentation.
28916 * doc/md.texi (ZC, ZD): Document new constraints.
28917 * configure.ac (gcc_cv_as_micromips): Check if linker
28918 supports the .set micromips directive.
28919 * configure: Regenerate.
28920 * config.in: Regenerate.
28921 * config/mips/mips-tables.opt: Regenerate.
28922 * config/mips/micromips.md: New file.
28923 * constraints.md (ZC, ZD): New constraints.
28924 * config/mips/predicates.md (movep_src_register): New predicate.
28925 (movep_src_operand): New predicate.
28926 (non_volatile_mem_operand): New predicate.
28927 * config/mips/mips.md (multimem): New type.
28928 (length): Differentiate between 17-bit and 18-bit branch offsets.
28929 (MOVEP1, MOVEP2): New mode iterator.
28930 (mov_<load>l): Use ZC constraint.
28931 (mov_<load>r): Likewise.
28932 (mov_<store>l): Likewise.
28933 (mov_<store>r): Likewise.
28934 (*branch_equality<mode>_inverted): Add microMIPS support.
28935 (*branch_equality<mode>): Likewise.
28936 (*jump_absolute): Likewise.
28937 (indirect_jump_<mode>): Likewise.
28938 (tablejump_<mode>): Likewise.
28939 (<optab>_internal): Likewise.
28940 (sibcall_internal): Likewise.
28941 (sibcall_value_internal): Likewise.
28942 (prefetch): Use constraint ZD.
28943 * config/mips/mips.opt (minterlink-compressed): New option.
28944 (minterlink-mips16): Now an alias for minterlink-compressed.
28945 (mmicromips): New option.
28946 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
28947 (compare_and_swap_12): Likewise.
28948 (sync_add<mode>): Likewise.
28949 (sync_<optab>_12): Likewise.
28950 (sync_old_<optab>_12): Likewise.
28951 (sync_new_<optab>_12): Likewise.
28952 (sync_nand_12): Likewise.
28953 (sync_old_nand_12): Likewise.
28954 (sync_new_nand_12): Likewise.
28955 (sync_sub<mode>): Likewise.
28956 (sync_old_add<mode>): Likewise.
28957 (sync_old_sub<mode>): Likewise.
28958 (sync_new_add<mode>): Likewise.
28959 (sync_new_sub<mode>): Likewise.
28960 (sync_<optab><mode>): Likewise.
28961 (sync_old_<optab><mode>): Likewise.
28962 (sync_new_<optab><mode>): Likewise.
28963 (sync_nand<mode>): Likewise.
28964 (sync_old_nand<mode>): Likewise.
28965 (sync_new_nand<mode>): Likewise.
28966 (sync_lock_test_and_set<mode>): Likewise.
28967 (test_and_set_12): Likewise.
28968 (atomic_compare_and_swap<mode>): Likewise.
28969 (atomic_exchange<mode>_llsc): Likewise.
28970 (atomic_fetch_add<mode>_llsc): Likewise.
28971 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
28972 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
28973 (umips_save_restore_pattern_p): Likewise.
28974 (umips_load_store_pair_p): Likewise.
28975 (umips_output_load_store_pair): Likewise.
28976 (umips_movep_target_p): Likewise.
28977 (umips_12bit_offset_address_p): Likewise.
28978 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
28979 (mips_base_mips16): Rename this...
28980 (mips_base_compression_flags): ...to this. Update all uses.
28981 (mips_attribute_table): Add micromips, nomicromips and nocompression.
28982 (mips_mips16_decl_p): Delete.
28983 (mips_nomips16_decl_p): Delete.
28984 (mips_get_compress_on_flags): New function.
28985 (mips_get_compress_off_flags): New function.
28986 (mips_get_compress_mode): New function.
28987 (mips_get_compress_on_name): New function.
28988 (mips_get_compress_off_name): New function.
28989 (mips_insert_attributes): Support multiple compression types.
28990 (mips_merge_decl_attributes): Likewise.
28991 (umips_12bit_offset_address_p): New function.
28992 (mips_start_function_definition): Emit .set micromips directive.
28993 (mips_call_may_need_jalx_p): New function.
28994 (mips_function_ok_for_sibcall): Add microMIPS support.
28995 (mips_print_operand_punctuation): Support short delay slots and
28997 (umips_swm_mask, umips_swm_encoding): New.
28998 (umips_build_save_restore): New function.
28999 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
29000 (was_mips16_p): Remove.
29001 (old_compression_mode): New.
29002 (mips_set_compression_mode): New function.
29003 (mips_set_current_function): Add microMIPS support.
29004 (mips_option_override): Likewise.
29005 (umips_save_restore_pattern_p): New function.
29006 (umips_output_save_restore): New function.
29007 (umips_load_store_pair_p_1): New function.
29008 (umips_load_store_pair_p): New function.
29009 (umips_output_load_store_pair_1): New function.
29010 (umips_output_load_store_pair): New function.
29011 (umips_movep_target_p) New function.
29012 (mips_prepare_pch_save): Add microMIPS support.
29013 * config/mips/mips.h (TARGET_COMPRESSION): New.
29014 (TARGET_CPU_CPP_BUILTINS): Update macro
29015 to use new compression flags and to support microMIPS.
29016 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
29017 (MIPS_ARCH_FLOAT_SPEC): Likewise.
29018 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
29019 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
29020 (ASM_SPEC): Support mmicromips and mno-micromips.
29021 (M16STORE_REG_P): New macro.
29022 (MIPS_CALL): Support TARGET_MICROMIPS.
29023 (MICROMIPS_J): New macro.
29024 (mips_base_mips16): Rename this...
29025 (mips_base_compression_flags): ...to this.
29026 (UMIPS_12BIT_OFFSET_P): New macro.
29027 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
29028 (MULTILIB_DIRNAMES): Likewise.
29029 2013-03-20 Richard Biener <rguenther@suse.de>
29031 PR tree-optimization/56661
29032 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
29033 the result does not have to be distinct.
29035 2013-03-20 Richard Biener <rguenther@suse.de>
29037 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
29040 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29041 Steven Bosscher <steven@gcc.gnu.org>
29043 PR rtl-optimization/56605
29044 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
29046 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
29049 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
29050 that require movd instead of movq.
29052 2013-03-20 Richard Biener <rguenther@suse.de>
29054 * tree-ssa-structalias.c (struct variable_info): Add pointer
29055 to the first field of an aggregate with sub-vars. Make
29056 this and the pointer to the next subfield its ID.
29057 (vi_next): New function.
29058 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
29059 storedanything_id, integer_id): Increment by one.
29060 (new_var_info, get_call_vi, lookup_call_clobber_vi,
29061 get_call_clobber_vi): Adjust.
29062 (solution_set_expand): Simplify and speedup.
29063 (solution_set_add): Inline into ...
29064 (set_union_with_increment): ... this. Adjust accordingly.
29065 (do_sd_constraint): Likewise.
29066 (do_ds_constraint): Likewise.
29067 (do_complex_constraint): Simplify.
29068 (build_pred_graph): Adjust.
29069 (solve_graph): Likewise. Simplify and speedup.
29070 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
29071 get_constraint_for_component_ref, get_constraint_for_1,
29072 first_vi_for_offset, first_or_preceding_vi_for_offset,
29073 create_function_info_for, create_variable_info_for_1,
29074 create_variable_info_for, intra_create_variable_infos): Adjust.
29075 (init_base_vars): Push NULL for ID zero.
29076 (compute_points_to_sets): Adjust.
29078 2013-03-20 Richard Biener <rguenther@suse.de>
29080 * cfgloop.c (verify_loop_structure): Streamline and avoid
29081 ICEing on corrupt loop tree.
29082 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
29085 2013-03-20 Richard Biener <rguenther@suse.de>
29087 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
29088 check whether an SSA update is needed.
29090 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
29092 * config/mips/constraints.md (T): Rename to...
29096 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
29097 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
29099 2013-03-19 Ian Bolton <ian.bolton@arm.com>
29101 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
29102 (*subsi3_carryin_uxtw): Likewise.
29104 2013-03-19 Ian Bolton <ian.bolton@arm.com>
29106 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
29107 (*rorsi3_insn_uxtw): Likewise.
29109 2013-03-19 Ian Bolton <ian.bolton@arm.com>
29111 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
29112 (*extrsi5_insn_uxtw): Likewise.
29114 2013-03-19 Richard Biener <rguenther@suse.de>
29116 PR tree-optimization/56273
29117 * passes.c (init_optimization_passes): Move second VRP after DOM.
29119 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
29121 * config/i386/i386.md (*movti_internal): Merge from
29122 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
29123 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
29124 nox64 isa attributes.
29126 2013-03-18 Richard Biener <rguenther@suse.de>
29128 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
29130 (merge_node_constraints): Likewise.
29131 (build_succ_graph): Likewise.
29132 (valid_graph_edge): Inline into single caller.
29133 (unify_nodes): Likewise. Use bitmap_set_bit return value
29135 (scc_visit): Fix formatting and variable use.
29136 (do_sd_constraint): Use gcc_checking_assert.
29137 (do_ds_constraint): Likewise.
29138 (do_complex_constraint): Likewise.
29139 (condense_visit): Likewise. Cleanup.
29140 (dump_pred_graph): New function.
29141 (perform_var_substitution): Dump the pred-graph before
29142 variable substitution.
29143 (find_equivalent_node): Use gcc_checking_assert.
29144 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
29146 2013-03-18 Richard Biener <rguenther@suse.de>
29148 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
29149 Remove cond_expr_stmt_list argument and do not gimplify the
29151 (vect_loop_versioning): Adjust.
29152 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
29153 Cleanup to use less temporaries.
29154 (vect_create_data_ref_ptr): Cleanup.
29156 2013-03-18 Jakub Jelinek <jakub@redhat.com>
29158 PR tree-optimization/56635
29159 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
29160 require types_compatible_p types.
29162 2013-03-18 Nick Clifton <nickc@redhat.com>
29164 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
29165 spurious backslash.
29167 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
29168 Add missing line to comment describing function.
29170 2013-03-18 Richard Biener <rguenther@suse.de>
29172 PR tree-optimization/56210
29173 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
29174 Handle string / character search functions.
29175 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
29177 2013-03-18 Richard Biener <rguenther@suse.de>
29179 PR middle-end/56483
29180 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
29181 and implement properly.
29182 * gimple.h (gimple_cond_single_var_p): Remove.
29184 2013-03-18 Richard Biener <rguenther@suse.de>
29186 * tree-data-ref.h (find_data_references_in_loop): Declare.
29187 * tree-data-ref.c (get_references_in_stmt): Use a stack
29188 vector pre-allocated in the callers.
29189 (find_data_references_in_stmt): Adjust.
29190 (graphite_find_data_references_in_stmt): Likewise.
29191 (create_rdg_vertices): Likewise.
29192 (find_data_references_in_loop): Export.
29193 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
29194 Compute dependences here...
29195 (vect_analyze_data_refs): ...not here. When we encounter
29196 a non-vectorizable data reference in basic-block vectorization
29197 truncate the data reference vector. Do not bother to
29198 fixup data-dependence information for gather loads.
29199 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
29200 of data references, as reported.
29202 2013-03-18 Richard Biener <rguenther@suse.de>
29204 PR tree-optimization/3713
29205 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
29206 has_constants and expr.
29207 (stmt_has_constants): Properly valueize SSA names when deciding
29208 whether the stmt has constants.
29210 2013-03-18 Richard Biener <rguenther@suse.de>
29212 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
29213 whole function when there is nothing to do.
29214 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
29215 * tree-vectorizer.c (vectorize_loops): Update virtual and
29216 loop-closed SSA once.
29217 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
29219 2013-03-18 Richard Biener <rguenther@suse.de>
29221 PR middle-end/56113
29222 * domwalk.c (bb_postorder): New global static.
29223 (cmp_bb_postorder): New function.
29224 (walk_dominator_tree): Replace scheme imposing an order for
29225 visiting dominator sons by one sorting them at the time they
29226 are pushed on the stack.
29228 2013-03-18 Richard Biener <rguenther@suse.de>
29230 PR tree-optimization/39326
29231 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
29232 (struct mem_ref): Replace mem member with ao_ref typed member.
29233 (MEM_ANALYZABLE): Adjust.
29234 (memref_eq): Likewise.
29235 (mem_ref_alloc): Likewise.
29236 (gather_mem_refs_stmt): Likewise.
29237 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
29238 (execute_sm_if_changed_flag_set): Adjust.
29239 (execute_sm): Likewise.
29240 (ref_always_accessed_p): Likewise.
29241 (refs_independent_p): Likewise.
29242 (can_sm_ref_p): Likewise.
29244 2013-03-18 Jakub Jelinek <jakub@redhat.com>
29247 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
29248 return 1 even for !unsignedp.
29250 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
29252 * config/i386/i386.md (isa): Add x64 and nox64.
29253 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
29254 (*pushtf): Enable *roF alternative for x64 isa only.
29255 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
29256 mode attribute of integer alternatives to DImode for TARGET_64BIT.
29257 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
29258 (*movtf_internal): Merge from *movtf_internal_rex64 and
29259 *movtf_internal_sse. Use x64 and nox64 isa attributes.
29260 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
29261 nox64 isa attributes.
29262 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
29263 nox64 isa attributes.
29264 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
29266 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
29268 * config/alpha/alpha.c (TARGET_LRA_P): New define.
29270 2013-03-17 Jakub Jelinek <jakub@redhat.com>
29273 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
29274 class names. Remove trailing comma after "ALL_REGS".
29276 2013-03-16 Jan Hubicka <jh@suse.cz>
29278 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
29279 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
29280 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
29281 of cgraph_get_create_node.
29282 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
29284 2013-03-16 Jason Merrill <jason@redhat.com>
29287 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
29288 with DW_AT_default_value.
29290 2013-03-16 Jakub Jelinek <jakub@redhat.com>
29292 * BASE-VER: Set to 4.9.0.
29294 2013-03-14 Andi Kleen <ak@linux.intel.com>
29297 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
29298 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
29299 Document _x* TSX intrinsics.
29301 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
29302 David Holsgrove <david.holsgrove@xilinx.com>
29304 * configure.ac: Add MicroBlaze TLS support detection.
29305 * configure: Regenerate.
29306 * config/microblaze/microblaze-protos.h
29307 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
29308 symbol_mentioned_p, label_mentioned_p): Add prototypes.
29309 * config/microblaze/microblaze.c (microblaze_address_type): Add
29310 ADDRESS_TLS and tls_reloc address types.
29311 (microblaze_address_info): Add tls_reloc.
29312 (TARGET_HAVE_TLS): Define.
29313 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
29314 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
29315 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
29316 load_tls_operand, microblaze_call_tls_get_addr,
29317 microblaze_legitimize_tls_address): New functions.
29318 (microblaze_classify_unspec): Handle UNSPEC_TLS.
29319 (get_base_reg): Use microblaze_tls_symbol_p.
29320 (microblaze_classify_address): Handle TLS.
29321 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
29322 label_mentioned_p and microblaze_tls_referenced_p.
29323 (microblaze_legitimize_address): Handle TLS.
29324 (microblaze_address_insns): Handle ADDRESS_TLS.
29325 (pic_address_needs_scratch): Handle TLS.
29326 (print_operand_address): Handle TLS.
29327 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
29328 (microblaze_expand_move): Handle TLS.
29329 (microblaze_legitimate_constant_p): Check
29330 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
29331 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
29332 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
29333 (PIC_OFFSET_TABLE_REGNUM): Set.
29334 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
29335 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
29336 (addsi3, movsi_internal2, movdf_internal): Update constraints
29337 * config/microblaze/predicates.md (arith_plus_operand): Define
29338 (move_operand): Redefine as move_src_operand,
29339 check microblaze_tls_referenced_p.
29341 2013-03-14 Ian Bolton <ian.bolton@arm.com>
29343 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
29344 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
29346 2013-03-14 Ian Bolton <ian.bolton@arm.com>
29348 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
29351 2013-03-14 Jakub Jelinek <jakub@redhat.com>
29353 PR tree-optimization/53265
29354 * common.opt (Waggressive-loop-optimizations): New option.
29355 * tree-ssa-loop-niter.c: Include tree-pass.h.
29356 (do_warn_aggressive_loop_optimizations): New function.
29357 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
29358 if number_of_latch_executions returned constant.
29359 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
29360 early. If number_of_latch_executions returned constant, set
29361 nb_iterations_upper_bound back to it.
29362 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
29364 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
29365 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
29367 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
29368 (MULTILIB_OSDIRNAMES): Set.
29369 * genmultilib: If defaultosdirname doesn't start with :: , set
29370 defaultosdirname2 instead, clear it and emit two . multilib_raw
29371 entries instead of just one.
29373 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
29375 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
29376 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
29377 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
29378 (SUBTARGET_OVERRIDE_OPTIONS): New.
29380 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
29383 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
29384 (musermode): Convert to Var(TARGET_USERMODE).
29385 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
29386 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
29387 * config/sh/sh.c (sh_option_override): Use
29388 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
29389 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
29391 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
29393 (udivsi3_i4_single, divsi3_i4_single): Use
29394 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
29396 2013-03-13 Dave Korn <dave.korn.cygwin@gmail.com>
29398 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
29401 2013-03-13 Richard Biener <rguenther@suse.de>
29403 PR tree-optimization/56608
29404 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
29405 calls when vectorizing basic-blocks.
29407 2013-03-13 Jakub Jelinek <jakub@redhat.com>
29410 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
29413 2013-03-12 Jakub Jelinek <jakub@redhat.com>
29415 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
29417 2013-03-11 Jan Hubicka <jh@suse.cz>
29420 * lto-streamer-out.c (output_symbol_p): Skip references from
29421 constructors of external variables.
29423 2013-03-11 Jan Hubicka <jh@suse.cz>
29425 PR middle-end/56571
29426 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
29428 * emit-rtl.c (verify_rtx_sharing): Likewise.
29429 (copy_insn_1): Likewise.
29430 * rtl.c (copy_rtx): Likewise.
29432 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
29435 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
29436 output_operand_lossage message.
29438 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
29441 * arm.c (shift_op): Validate RTL pattern on the fly.
29442 (arm_print_operand, case 'S'): Don't use shift_operator to validate
29445 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29448 * config/pa/pa.md (call_value): Check for calls to powf and direct to
29449 new call patterns that clobber %fr12.
29450 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
29451 split and postreload patterns.
29452 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
29453 registers %fr12 and %fr12R as call used.
29455 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
29457 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
29458 (canon_address, record_store, replace_read, check_mem_read_rtx,
29459 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
29460 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
29461 rest_of_handle_dse): Likewise.
29463 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
29465 PR middle-end/56524
29466 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
29468 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
29469 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
29470 (save_optabs_if_changed): Replace with...
29471 (init_tree_optimization_optabs): ...this.
29472 * optabs.c (save_optabs_if_changed): Rename to...
29473 (init_tree_optimization_optabs): ...this. Take the optimization node
29474 as argument. Do nothing if the base optabs are already correct.
29475 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
29476 to recompute optabs.
29477 * function.h (function): Remove optabs field.
29478 * function.c (invoke_set_current_function_hook): Call
29479 init_tree_optimization_optabs. Use the result to initialize
29482 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
29484 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
29485 if GTMA_HAS_NO_INSTRUMENTATION.
29486 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
29487 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
29488 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
29489 * gimple-pretty-print.c (dump_gimple_transaction): Handle
29490 GTMA_HAS_NO_INSTRUMENTATION.
29492 2013-03-08 Jakub Jelinek <jakub@redhat.com>
29494 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
29497 2013-03-08 Marek Polacek <polacek@redhat.com>
29498 Jakub Jelinek <jakub@redhat.com>
29500 PR tree-optimization/56478
29501 * predict.c (is_comparison_with_loop_invariant_p): Change the
29502 type of loop_step to tree.
29503 (predict_loops): Adjust.
29504 (predict_iv_comparison): Perform the computations on double_ints.
29506 2013-03-08 Richard Biener <rguenther@suse.de>
29508 PR tree-optimization/56570
29509 * tree-cfg.c (verify_expr_location_1): Verify locations for
29511 * tree-sra.c (create_access_replacement): Strip locations
29512 from DECL_DEBUG_EXPRs.
29514 2013-03-08 Richard Biener <rguenther@suse.de>
29516 * tree-inline.c (expand_call_inline): Do not associate
29517 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
29518 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
29520 2013-03-08 Richard Biener <rguenther@suse.de>
29522 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
29523 or block changes with -Og. Fix for location / block encoding
29524 changes and PHI arguments with locations.
29526 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
29528 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
29530 (struct output_info): Likewise.
29531 (register_overhead): Remove bad gcc_assert.
29532 (bitmap_find_bit): If there is only a single bitmap element, do not
29533 count a miss as a search.
29534 (print_statistics): Update for counter type changes.
29535 (dump_bitmap_statistics): Likewise. Print headers such that they
29536 are properly lined up with the printed counters.
29538 2013-03-07 Jakub Jelinek <jakub@redhat.com>
29540 PR tree-optimization/56559
29541 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
29542 check that it has only a single use.
29544 2013-03-07 Richard Biener <rguenther@suse.de>
29546 * doc/invoke.texi (fwhole-program): Discourage use in combination
29549 2013-03-06 Jakub Jelinek <jakub@redhat.com>
29551 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
29553 PR tree-optimization/56539
29554 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
29555 instead of GSI_CONTINUE_LINKING as last argument to
29556 force_gimple_operand_gsi. Adjust function comment.
29558 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
29561 PR middle-end/56548
29562 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
29563 promoted mode, convert the result back to the original mode.
29565 2013-03-06 Richard Biener <rguenther@suse.de>
29567 PR middle-end/56294
29568 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
29569 (insert_updated_phi_nodes_compare_uids): New function.
29570 (update_ssa): Sort symbols_to_rename after UID before
29571 traversing it to insert PHI nodes.
29573 2013-03-06 Richard Biener <rguenther@suse.de>
29575 PR middle-end/50494
29576 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
29577 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
29580 2013-02-13 Richard Biener <rguenther@suse.de>
29583 * varasm.c (output_constant_def_1): Get the decl representing
29584 the constant as argument.
29585 (output_constant_def): Wrap output_constant_def_1.
29586 (make_decl_rtl): Use output_constant_def_1 with the decl
29587 representing the constant.
29588 (build_constant_desc): Optionally re-use a decl already
29589 representing the constant.
29590 (tree_output_constant_def): Adjust.
29592 2013-03-06 Joey Ye <joey.ye@arm.com>
29595 * gcc.c (convert_white_space): New function.
29596 (main): Handles white space in function name.
29598 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
29601 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
29602 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
29603 to SH_DIV_CALL_TABLE for TARGET_SH2.
29604 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
29606 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
29607 call-table options.
29609 2013-03-05 Sterling Augustine <saugustine@google.com>
29610 Cary Coutant <ccoutant@google.com>
29613 * dwarf2out.c (resolve_addr): Don't call
29614 remove_loc_list_addr_table_entries a second time for the same
29617 2013-03-05 Jakub Jelinek <jakub@redhat.com>
29620 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
29621 (avoid_complex_debug_insns): New function.
29622 (expand_debug_locations): Call it.
29624 PR rtl-optimization/56484
29625 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
29626 lifetimes of hard registers on small register class machines.
29628 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
29630 * config/microblaze/microblaze-protos.h: Rename
29631 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
29632 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
29634 (microblaze_fast_interrupt_function_p): New function.
29635 (microblaze_is_interrupt_handler): Rename to
29636 microblaze_is_interrupt_variant and add fast_interrupt check.
29637 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
29638 (save_restore_insns): Likewise.
29639 (compute_frame_size): Likewise.
29640 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
29641 (microblaze_globalize_label): Likewise.
29642 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
29643 * config/microblaze/microblaze.md: Use wrapper
29644 microblaze_is_interrupt_variant.
29646 2013-03-05 Kai Tietz <ktietz@redhat.com>
29648 * sdbout.c (sdbout_one_type): Switch to current function's section
29649 supporting cold/hot.
29651 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
29653 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
29656 2013-03-05 Jakub Jelinek <jakub@redhat.com>
29658 PR middle-end/56461
29659 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
29660 if VALGRIND_GET_VBITS is defined, temporarily make object
29661 memory all defined, and restore previous valgrind addressability
29662 and definability afterwards. Free this_object at the end.
29664 PR middle-end/56461
29665 * lra.c (lra): Call lra_clear_live_ranges if live_p,
29666 right before calling lra_create_live_ranges, also call it
29667 when clearing live_p. Only call lra_clear_live_ranges
29668 at the end if live_p.
29670 PR middle-end/56461
29671 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
29673 2013-03-05 Richard Biener <rguenther@suse.de>
29675 PR tree-optimization/56521
29676 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
29679 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
29682 * except.h (remove_unreachable_eh_regions): New prototype.
29683 * except.c (remove_eh_handler_splicer): New function, split out
29684 of remove_eh_handler.
29685 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
29686 warning about running it on many EH regions one at a time.
29687 (remove_unreachable_eh_regions_worker): New function, walk the
29688 EH tree in depth-first order and remove non-marked regions.
29689 (remove_unreachable_eh_regions): New function.
29690 * tree-eh.c (mark_reachable_handlers): New function, split out
29691 from remove_unreachable_handlers.
29692 (remove_unreachable_handlers): Use mark_reachable_handlers and
29693 remove_unreachable_eh_regions.
29694 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
29695 and remove_unreachable_eh_regions.
29697 2013-03-05 Richard Biener <rguenther@suse.de>
29699 PR middle-end/56525
29700 * loop-init.c (fix_loop_structure): Remove loops in two stages,
29701 not freeing them until the end.
29703 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29705 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
29707 2013-03-05 Richard Biener <rguenther@suse.de>
29709 PR tree-optimization/56270
29710 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
29711 of loads after scheduling an SLP instance.
29713 2013-03-05 Jakub Jelinek <jakub@redhat.com>
29715 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
29717 (check_gcc_parallelize): Run guality.exp as a separate job from
29718 vect.exp with unsorted.exp and $(dg_target_exps) separately from
29719 struct-layout-1.exp with stackalign.exp.
29721 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
29723 PR middle-end/56461
29724 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
29725 load_index sbitmap even if some bit in it isn't set.
29727 PR middle-end/56461
29728 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
29729 (discover_iteration_bound_by_body_walk): Change queues to
29730 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
29731 spelling in comment. Call safe_push on queues[bound_index] directly.
29732 Release queues[queue_index] in every iteration unconditionally.
29733 Release bounds vector.
29735 PR middle-end/56461
29736 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
29737 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
29738 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
29741 2013-03-05 Richard Biener <rguenther@suse.de>
29744 * tree-inline.c (remap_blocks_to_null): New function.
29745 (expand_call_inline): When expanding a call stmt without
29746 an associated block inline remap all callee blocks to NULL.
29748 2013-03-05 Jakub Jelinek <jakub@redhat.com>
29750 PR rtl-optimization/56494
29751 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
29752 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
29753 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
29755 PR middle-end/56461
29756 * sel-sched-ir.c (free_sched_pools): Release
29757 succs_info_pool.stack[succs_info_pool.max_top] vectors too
29758 if succs_info_pool.max_top isn't -1.
29761 * opts.c (opts_obstack, opts_concat): Moved to...
29762 * opts-common.c (opts_obstack, opts_concat): ... here.
29764 2013-03-04 Jakub Jelinek <jakub@redhat.com>
29766 PR middle-end/56461
29767 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
29769 2013-03-04 Martin Jambor <mjambor@suse.cz>
29771 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
29772 all appropriate places.
29774 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
29776 PR tree-optimization/56424
29777 * ipa-split.c (split_function): Do not set the RSO flag if result is
29778 not by reference and its type is a register type.
29780 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
29782 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
29783 (microblaze_legitimate_pic_operand): Likewise
29784 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
29785 new function microblaze_legitimate_pic_operand
29786 * config/microblaze/microblaze-protos.h
29787 (microblaze_legitimate_pic_operand): Declare.
29789 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
29791 * config/microblaze/predicates.md (call_insn_simple_operand):
29792 New predicate for supported rtx code types.
29793 * config/microblaze/microblaze.md (call_internal1): Use
29794 call_insn_simple_operand predicate.
29796 2013-03-04 Jakub Jelinek <jakub@redhat.com>
29798 PR middle-end/56461
29799 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
29800 partitions.ordered_remove.
29802 PR middle-end/56461
29803 * tree-vect-stmts.c (vectorizable_conversion): Don't call
29804 vec_oprnds0.create (1) for modifier == NONE.
29806 PR middle-end/56461
29807 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
29808 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
29809 vec_oprnds1 right before pushing anything to it for
29812 PR middle-end/56461
29813 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
29814 set nbbs to 0 instead of having separate code path.
29815 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
29816 instead of false as last argument if returning NULL.
29818 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
29820 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
29821 the attribute is now called "target" instead of "option".
29822 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
29823 * doc/tm.texi.in (Target Attributes): Likewise document the correct
29824 attribute/pragma name for TARGET_OPTION_VALID_P and
29825 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
29826 * doc/tm.texi: Regenerated.
29828 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
29830 * config/microblaze/microblaze.c:
29831 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
29832 * config/microblaze/microblaze.h: Add -mxl-reorder to
29834 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
29835 instructions emitted if TARGET_REORDER.
29836 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
29837 or 0 for -m/-mno case, but initialises as 2 to detect default use case
29840 2013-03-01 Xinliang David Li <davidxl@google.com>
29842 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
29845 2013-03-01 Jakub Jelinek <jakub@redhat.com>
29847 PR middle-end/56461
29848 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
29849 vector even when returning true. Fix up function comment formatting.
29851 PR middle-end/56461
29852 * ira-build.c (ira_loop_nodes_count): New variable.
29853 (create_loop_tree_nodes): Initialize it.
29854 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
29856 PR middle-end/56461
29857 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
29858 method on dr_chain and result_chain.
29859 * tree-vect-stmts.c (vectorizable_store): Only call
29860 result_chain.create if j == 0.
29862 PR middle-end/56461
29863 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
29864 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
29865 before overwriting it.
29867 2013-03-01 Tobias Burnus <burnus@net-b.de>
29869 * doc/extended.texi (C Extensions): Change order in @menu
29871 (Other MIPS Built-in Functions): Move last MIPS entry before
29872 "picoChip Built-in Functions".
29873 (SH Built-in Functions): Move after RX Built-in Functions.
29874 * doc/gcc.texi (Introduction): Change order in @menu
29876 * doc/md.texi (Constraints): Ditto.
29877 * gty.texi (Type Information): Ditto.
29878 (User-provided marking routines for template types): Make
29880 * doc/invoke.texi (AArch64 Options): Move before
29881 "Adapteva Epiphany Options".
29883 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
29884 Jakub Jelinek <jakub@redhat.com>
29887 * asan.c (gate_asan): Lookup no_sanitize_address instead of
29888 no_address_safety_analysis attribute.
29889 * doc/extend.texi (no_address_safety_attribute): Rename to
29890 no_sanitize_address attribute, mention no_address_safety_analysis
29891 attribute as deprecated alias.
29893 2013-02-28 Jakub Jelinek <jakub@redhat.com>
29895 PR middle-end/56461
29896 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
29897 type to vec<vec<tree> > *.
29898 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
29899 to be vec<tree> instead of vec<tree> *, set vec_defs
29900 to vNULL and call vec_defs.create (number_of_vects), adjust other
29902 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
29903 vectorizable_condition): Adjust vect_get_slp_defs callers.
29905 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
29907 * config/aarch64/aarch64.c
29908 (aarch64_float_const_representable): Remove unused variable.
29910 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
29912 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
29914 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
29916 * config/aarch64/aarch64-builtins.c
29917 (aarch64_init_simd_builtins): Make static.
29919 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
29921 * config/aarch64/aarch64.c
29922 (aarch64_simd_make_constant): Make static.
29924 2013-02-28 Martin Jambor <mjambor@suse.cz>
29926 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
29927 with no initialization to the RHS of debug statements.
29929 2013-02-28 Martin Jambor <mjambor@suse.cz>
29931 PR tree-optimization/56294
29932 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
29934 (get_access_replacement): Do not call create_access_replacement.
29935 Assert a replacement exists.
29936 (get_repl_default_def_ssa_name): Create the replacement declaration
29939 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29941 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
29942 final_end_function.
29944 2013-02-28 Marek Polacek <polacek@redhat.com>
29946 PR rtl-optimization/56466
29947 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
29948 if we're changing a loop.
29949 (peel_loops_completely): Likewise.
29951 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
29954 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
29956 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
29959 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
29960 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
29961 INTX_FTYPE_FX, FX_FTYPE_INTX.
29962 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
29964 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
29966 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
29967 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
29968 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
29969 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
29970 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
29971 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
29972 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
29973 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
29974 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
29975 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
29976 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
29977 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
29978 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
29979 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
29980 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
29981 (avrxmega6): Increase max flash segments from 5 to 6.
29982 * config/avr/t-multilib: Regenerate.
29983 * config/avr/avr-tables.opt: Regenerate.
29984 * doc/avr-mmcu.texi: Regenerate.
29986 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
29988 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
29989 (avr_device_to_arch): Rename to avr_device_to_ld.
29990 (avr_device_to_as): New prototype.
29991 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
29992 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
29993 * config/avr/driver-avr.c (avr_device_to_as): New.
29994 (avr_device_to_arch): Rename to avr_device_to_ld.
29996 2013-02-27 Jakub Jelinek <jakub@redhat.com>
29998 PR middle-end/56461
29999 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
30000 method on dr_chain and result_chain.
30002 PR middle-end/56461
30003 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
30004 pointer_set_destroy on not_executed_last_iteration.
30006 PR middle-end/56461
30007 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
30009 PR middle-end/56461
30010 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
30011 FOR_EACH_DEFINED_FUNCTION when freeing state.
30013 PR middle-end/56461
30014 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
30016 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
30019 PR middle-end/56461
30020 * ipa-cp.c (decide_whether_version_node): Call vec_free on
30021 known_aggs[i].items and release known_aggs vector.
30023 PR middle-end/56461
30024 * ipa-reference.c (propagate): Free node_info even for alias nodes.
30026 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
30028 * config/microblaze/microblaze.c (microblaze_emit_compare):
30029 Use xor for EQ/NE comparisions.
30030 * config/microblaze/microblaze.md (cstoresf4): Add constraints
30031 (cbranchsf4): Adjust operator to comparison_operator.
30033 2013-02-27 Jakub Jelinek <jakub@redhat.com>
30035 PR middle-end/56461
30036 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
30038 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
30039 vec_safe_push, always update *slot.
30040 (redirect_edge_var_map_clear): Use vec_free.
30041 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
30042 (free_var_map_entry): Use vec_free.
30043 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
30044 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
30046 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
30048 PR middle-end/45472
30049 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
30050 when the may_trap_p bit of the exprs being merged differs.
30051 Reorder tests for speculativeness in the logical and operator.
30053 2013-02-27 Jakub Jelinek <jakub@redhat.com>
30055 * incpath.c (add_standard_paths): Use reconcat instead of concat
30056 where appropriate and avoid leaking memory.
30058 * opts.h: Include obstack.h.
30059 (opts_concat): New prototype.
30060 (opts_obstack): New declaration.
30061 * opts.c (opts_concat): New function.
30062 (opts_obstack): New variable.
30063 (init_options_struct): Call gcc_init_obstack on opts_obstack.
30064 (finish_options): Use opts_concat instead of concat
30065 and XOBNEWVEC instead of XNEWVEC.
30066 * opts-common.c (generate_canonical_option, decode_cmdline_option,
30067 generate_option): Likewise.
30068 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
30069 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
30072 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
30073 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
30075 2013-02-26 Jakub Jelinek <jakub@redhat.com>
30077 PR middle-end/56461
30078 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
30080 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
30082 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
30083 (arm_block_move_unaligned_straight): Likewise.
30084 (arm_adjust_block_mem): Likewise.
30086 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
30089 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
30090 temp, cond and label.
30091 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
30094 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
30095 * config/c6x/c6x.h (dbx_register_map): Update declaration.
30098 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
30099 of prologue/epilogue functions.
30102 * config/tilegx/tilegx.c (tilegx_expand_prologue):
30103 Remove unused variable cfa_offset.
30104 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
30107 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
30108 type promotion to unsigned.
30111 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
30112 for HOST_WIDE_INT of 32 bit / same size as int.
30113 (arm_block_move_unaligned_straight): Likewise.
30114 (arm_adjust_block_mem): Likewise.
30117 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
30120 2013-02-26 Marek Polacek <polacek@redhat.com>
30122 PR tree-optimization/56426
30123 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
30125 2013-02-26 Richard Biener <rguenther@suse.de>
30128 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
30129 unused variable loops.
30131 2013-02-26 Jakub Jelinek <jakub@redhat.com>
30133 PR tree-optimization/56448
30134 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
30135 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
30136 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
30137 later operands of the references, or even first operand for
30138 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
30140 PR tree-optimization/56443
30141 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
30142 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
30143 to type_for_mode langhook.
30145 2013-02-25 Matt Turner <mattst88@gmail.com>
30147 * doc/invoke.texi: Document r4700.
30149 2013-02-25 Richard Biener <rguenther@suse.de>
30151 PR tree-optimization/56175
30152 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
30154 (simplify_bitwise_binary): ... here. Also guard the conversion
30155 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
30157 2013-02-25 Catherine Moore <clm@codesourcery.com>
30160 2013-02-24 Catherine Moore <clm@codesourcery.com>
30161 Maciej W. Rozycki <macro@codesourcery.com>
30162 Tom de Vries <tom@codesourcery.com>
30163 Nathan Sidwell <nathan@codesourcery.com>
30164 Iain Sandoe <iain@codesourcery.com>
30165 Nathan Froyd <froydnj@codesourcery.com>
30166 Chao-ying Fu <fu@mips.com>
30168 * doc/extend.texi: (micromips, nomicromips, nocompression):
30169 Document new function attributes.
30170 * doc/invoke.texi (minterlink-compressed, mmicromips,
30171 m14k, m14ke, m14kec): Document new options.
30172 (minterlink-mips16): Update documentation.
30173 * doc/md.texi (ZC, ZD): Document new constraints.
30174 * configure.ac (gcc_cv_as_micromips): Check if linker
30175 supports the .set micromips directive.
30176 * configure: Regenerate.
30177 * config.in: Regenerate.
30178 * config/mips/mips-tables.opt: Regenerate.
30179 * config/mips/micromips.md: New file.
30180 * constraints.md (ZC, AD): New constraints.
30181 * config/mips/predicates.md (movep_src_register): New predicate.
30182 (movep_src_operand): New predicate.
30183 (non_volatile_mem_operand): New predicate.
30184 * config/mips/mips.md (multimem): New type.
30185 (length): Differentiate between 17-bit and 18-bit branch offsets.
30186 (MOVEP1, MOVEP2): New mode iterator.
30187 (mov_<load>l): Use ZC constraint.
30188 (mov_<load>r): Likewise.
30189 (mov_<store>l): Likewise.
30190 (mov_<store>r): Likewise.
30191 (*branch_equality<mode>_inverted): Add microMIPS support.
30192 (*branch_equality<mode>): Likewise.
30193 (*jump_absolute): Likewise.
30194 (indirect_jump_<mode>): Likewise.
30195 (tablejump_<mode>): Likewise.
30196 (<optab>_internal): Likewise.
30197 (sibcall_internal): Likewise.
30198 (sibcall_value_internal): Likewise.
30199 (prefetch): Use constraint ZD.
30200 * config/mips/mips.opt (minterlink-compressed): New option.
30201 (minterlink-mips16): Now an alias for minterlink-compressed.
30202 (mmicromips): New option.
30203 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
30204 (compare_and_swap_12): Likewise.
30205 (sync_add<mode>): Likewise.
30206 (sync_<optab>_12): Likewise.
30207 (sync_old_<optab>_12): Likewise.
30208 (sync_new_<optab>_12): Likewise.
30209 (sync_nand_12): Likewise.
30210 (sync_old_nand_12): Likewise.
30211 (sync_new_nand_12): Likewise.
30212 (sync_sub<mode>): Likewise.
30213 (sync_old_add<mode>): Likewise.
30214 (sync_old_sub<mode>): Likewise.
30215 (sync_new_add<mode>): Likewise.
30216 (sync_new_sub<mode>): Likewise.
30217 (sync_<optab><mode>): Likewise.
30218 (sync_old_<optab><mode>): Likewise.
30219 (sync_new_<optab><mode>): Likewise.
30220 (sync_nand<mode>): Likewise.
30221 (sync_old_nand<mode>): Likewise.
30222 (sync_new_nand<mode>): Likewise.
30223 (sync_lock_test_and_set<mode>): Likewise.
30224 (test_and_set_12): Likewise.
30225 (atomic_compare_and_swap<mode>): Likewise.
30226 (atomic_exchange<mode>_llsc): Likewise.
30227 (atomic_fetch_add<mode>_llsc): Likewise.
30228 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
30229 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
30230 (umips_save_restore_pattern_p): Likewise.
30231 (umips_load_store_pair_p): Likewise.
30232 (umips_output_load_store_pair): Likewise.
30233 (umips_movep_target_p): Likewise.
30234 (umips_12bit_offset_address_p): Likewise.
30235 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
30236 (mips_base_mips16): Rename this...
30237 (mips_base_compression_flags): ...to this. Update all uses.
30238 (mips_attribute_table): Add micromips, nomicromips and nocompression.
30239 (mips_mips16_decl_p): Delete.
30240 (mips_nomips16_decl_p): Delete.
30241 (mips_get_compress_on_flags): New function.
30242 (mips_get_compress_off_flags): New function.
30243 (mips_get_compress_mode): New function.
30244 (mips_get_compress_on_name): New function.
30245 (mips_get_compress_off_name): New function.
30246 (mips_insert_attributes): Support multiple compression types.
30247 (mips_merge_decl_attributes): Likewise.
30248 (umips_12bit_offset_address_p): New function.
30249 (mips_start_function_definition): Emit .set micromips directive.
30250 (mips_call_may_need_jalx_p): New function.
30251 (mips_function_ok_for_sibcall): Add microMIPS support.
30252 (mips_print_operand_punctuation): Support short delay slots and
30254 (umips_swm_mask, umips_swm_encoding): New.
30255 (umips_build_save_restore): New function.
30256 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
30257 (was_mips16_p): Remove.
30258 (old_compression_mode): New.
30259 (mips_set_compression_mode): New function.
30260 (mips_set_current_function): Add microMIPS support.
30261 (mips_option_override): Likewise.
30262 (umips_save_restore_pattern_p): New function.
30263 (umips_output_save_restore): New function.
30264 (umips_load_store_pair_p_1): New function.
30265 (umips_load_store_pair_p): New function.
30266 (umips_output_load_store_pair_1): New function.
30267 (umips_output_load_store_pair): New function.
30268 (umips_movep_target_p) New function.
30269 (mips_prepare_pch_save): Add microMIPS support.
30270 * config/mips/mips.h (TARGET_COMPRESSION): New.
30271 (TARGET_CPU_CPP_BUILTINS): Update macro
30272 to use new compression flags and to support microMIPS.
30273 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
30274 (MIPS_ARCH_FLOAT_SPEC): Likewise.
30275 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
30276 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
30277 (ASM_SPEC): Support mmicromips and mno-micromips.
30278 (M16STORE_REG_P): New macro.
30279 (MIPS_CALL): Support TARGET_MICROMIPS.
30280 (MICROMIPS_J): New macro.
30281 (mips_base_mips16): Rename this...
30282 (mips_base_compression_flags): ...to this.
30283 (UMIPS_12BIT_OFFSET_P): New macro.
30284 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
30285 (MULTILIB_DIRNAMES): Likewise.
30287 2013-02-25 Tom de Vries <tom@codesourcery.com>
30289 PR rtl-optimization/56131
30290 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
30291 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
30292 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
30294 2013-02-25 Tobias Burnus <burnus@net-b.de>
30296 * doc/invoke.texi (-fsanitize=): Move from optimization
30297 to debugging options.
30299 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
30301 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
30303 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
30304 Alexander Monakov <amonakov@ispras.ru>
30306 PR middle-end/56077
30307 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
30308 flush pending lists also on non-jumps. Adjust comment.
30310 2013-02-24 Catherine Moore <clm@codesourcery.com>
30311 Maciej W. Rozycki <macro@codesourcery.com>
30312 Tom de Vries <tom@codesourcery.com>
30313 Nathan Sidwell <nathan@codesourcery.com>
30314 Iain Sandoe <iain@codesourcery.com>
30315 Nathan Froyd <froydnj@codesourcery.com>
30316 Chao-ying Fu <fu@mips.com>
30318 * doc/extend.texi: (micromips, nomicromips, nocompression):
30319 Document new function attributes.
30320 * doc/invoke.texi (minterlink-compressed, mmicromips,
30321 m14k, m14ke, m14kec): Document new options.
30322 (minterlink-mips16): Update documentation.
30323 * doc/md.texi (ZC, ZD): Document new constraints.
30324 * configure.ac (gcc_cv_as_micromips): Check if linker
30325 supports the .set micromips directive.
30326 * configure: Regenerate.
30327 * config.in: Regenerate.
30328 * config/mips/mips-tables.opt: Regenerate.
30329 * config/mips/micromips.md: New file.
30330 * constraints.md (ZC, AD): New constraints.
30331 * config/mips/predicates.md (movep_src_register): New predicate.
30332 (movep_src_operand): New predicate.
30333 (non_volatile_mem_operand): New predicate.
30334 * config/mips/mips.md (multimem): New type.
30335 (length): Differentiate between 17-bit and 18-bit branch offsets.
30336 (MOVEP1, MOVEP2): New mode iterator.
30337 (mov_<load>l): Use ZC constraint.
30338 (mov_<load>r): Likewise.
30339 (mov_<store>l): Likewise.
30340 (mov_<store>r): Likewise.
30341 (*branch_equality<mode>_inverted): Add microMIPS support.
30342 (*branch_equality<mode>): Likewise.
30343 (*jump_absolute): Likewise.
30344 (indirect_jump_<mode>): Likewise.
30345 (tablejump_<mode>): Likewise.
30346 (<optab>_internal): Likewise.
30347 (sibcall_internal): Likewise.
30348 (sibcall_value_internal): Likewise.
30349 (prefetch): Use constraint ZD.
30350 * config/mips/mips.opt (minterlink-compressed): New option.
30351 (minterlink-mips16): Now an alias for minterlink-compressed.
30352 (mmicromips): New option.
30353 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
30354 (compare_and_swap_12): Likewise.
30355 (sync_add<mode>): Likewise.
30356 (sync_<optab>_12): Likewise.
30357 (sync_old_<optab>_12): Likewise.
30358 (sync_new_<optab>_12): Likewise.
30359 (sync_nand_12): Likewise.
30360 (sync_old_nand_12): Likewise.
30361 (sync_new_nand_12): Likewise.
30362 (sync_sub<mode>): Likewise.
30363 (sync_old_add<mode>): Likewise.
30364 (sync_old_sub<mode>): Likewise.
30365 (sync_new_add<mode>): Likewise.
30366 (sync_new_sub<mode>): Likewise.
30367 (sync_<optab><mode>): Likewise.
30368 (sync_old_<optab><mode>): Likewise.
30369 (sync_new_<optab><mode>): Likewise.
30370 (sync_nand<mode>): Likewise.
30371 (sync_old_nand<mode>): Likewise.
30372 (sync_new_nand<mode>): Likewise.
30373 (sync_lock_test_and_set<mode>): Likewise.
30374 (test_and_set_12): Likewise.
30375 (atomic_compare_and_swap<mode>): Likewise.
30376 (atomic_exchange<mode>_llsc): Likewise.
30377 (atomic_fetch_add<mode>_llsc): Likewise.
30378 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
30379 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
30380 (umips_save_restore_pattern_p): Likewise.
30381 (umips_load_store_pair_p): Likewise.
30382 (umips_output_load_store_pair): Likewise.
30383 (umips_movep_target_p): Likewise.
30384 (umips_12bit_offset_address_p): Likewise.
30385 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
30386 (mips_base_mips16): Rename this...
30387 (mips_base_compression_flags): ...to this. Update all uses.
30388 (mips_attribute_table): Add micromips, nomicromips and nocompression.
30389 (mips_mips16_decl_p): Delete.
30390 (mips_nomips16_decl_p): Delete.
30391 (mips_get_compress_on_flags): New function.
30392 (mips_get_compress_off_flags): New function.
30393 (mips_get_compress_mode): New function.
30394 (mips_get_compress_on_name): New function.
30395 (mips_get_compress_off_name): New function.
30396 (mips_insert_attributes): Support multiple compression types.
30397 (mips_merge_decl_attributes): Likewise.
30398 (umips_12bit_offset_address_p): New function.
30399 (mips_start_function_definition): Emit .set micromips directive.
30400 (mips_call_may_need_jalx_p): New function.
30401 (mips_function_ok_for_sibcall): Add microMIPS support.
30402 (mips_print_operand_punctuation): Support short delay slots and
30404 (umips_swm_mask, umips_swm_encoding): New.
30405 (umips_build_save_restore): New function.
30406 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
30407 (was_mips16_p): Remove.
30408 (old_compression_mode): New.
30409 (mips_set_compression_mode): New function.
30410 (mips_set_current_function): Add microMIPS support.
30411 (mips_option_override): Likewise.
30412 (umips_save_restore_pattern_p): New function.
30413 (umips_output_save_restore): New function.
30414 (umips_load_store_pair_p_1): New function.
30415 (umips_load_store_pair_p): New function.
30416 (umips_output_load_store_pair_1): New function.
30417 (umips_output_load_store_pair): New function.
30418 (umips_movep_target_p) New function.
30419 (mips_prepare_pch_save): Add microMIPS support.
30420 * config/mips/mips.h (TARGET_COMPRESSION): New.
30421 (TARGET_CPU_CPP_BUILTINS): Update macro
30422 to use new compression flags and to support microMIPS.
30423 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
30424 (MIPS_ARCH_FLOAT_SPEC): Likewise.
30425 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
30426 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
30427 (ASM_SPEC): Support mmicromips and mno-micromips.
30428 (M16STORE_REG_P): New macro.
30429 (MIPS_CALL): Support TARGET_MICROMIPS.
30430 (MICROMIPS_J): New macro.
30431 (mips_base_mips16): Rename this...
30432 (mips_base_compression_flags): ...to this.
30433 (UMIPS_12BIT_OFFSET_P): New macro.
30434 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
30435 (MULTILIB_DIRNAMES): Likewise.
30437 2013-02-24 Jakub Jelinek <jakub@redhat.com>
30440 * target-globals.c (save_target_globals): For init_reg_sets and
30441 target_reinit remporarily set this_fn_optabs to this_target_optabs.
30443 2013-02-22 James Greenhalgh <james.greenhalgh@arm.com>
30445 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
30446 * config/aarch64/t-aarch64
30447 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
30449 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
30451 PR inline-asm/56148
30452 * lra-constraints.c (process_alt_operands): Reload operand
30453 conflicting with earlier clobber only if no more other conflicting
30456 2013-02-22 Jakub Jelinek <jakub@redhat.com>
30459 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
30460 if not linking a shared library.
30462 2013-02-22 Seth LaForge <sethml@google.com>
30464 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
30466 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
30468 * config/arm/arm.md (split for extendsidi): Update condition.
30469 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
30470 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
30471 (qhs_zextenddi_cstr): Likewise.
30473 2013-02-21 Jakub Jelinek <jakub@redhat.com>
30475 PR middle-end/56420
30476 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
30477 avoid signed wrapping.
30478 (expand_mult): Handle properly multiplication by
30479 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
30480 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
30481 in the compiler if coeff is HOST_WIDE_INT_MIN.
30482 (expand_divmod): Don't make ext_op1 static, change it's type to
30483 uhwi. Avoid undefined behavior in -INTVAL (op1).
30485 PR rtl-optimization/50339
30486 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
30488 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
30489 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
30490 into splitting_ashiftrt field.
30491 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
30493 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
30496 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
30498 PR middle-end/56108
30499 * trans-mem.c (execute_tm_mark): Do not expand transactions that
30500 are sure to go irrevocable.
30502 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
30504 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
30505 scalars are valid operands.
30507 2013-02-21 Martin Jambor <mjambor@suse.cz>
30509 PR tree-optimization/56310
30510 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
30511 only matching indices and non-negative final offsets.
30512 (intersect_aggregates_with_edge): Pass src_idx to
30513 agg_replacements_to_vector. Pass src_idx insstead of index to
30514 intersect_with_agg_replacements.
30516 2013-02-21 Martin Jambor <mjambor@suse.cz>
30518 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
30519 instead of hard-wired defaults.
30521 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
30523 * doc/invoke.texi (MIPS Options): Update documentation of the
30524 floating-point multiply-accumulate instruction restrictions.
30526 2013-02-21 Kostya Serebryany <kcc@google.com>
30528 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
30529 asan_shadow_offset on x86_64 linux.
30531 2013-02-21 Richard Biener <rguenther@suse.de>
30533 PR tree-optimization/56415
30535 2013-02-11 Richard Biener <rguenther@suse.de>
30537 PR tree-optimization/56273
30538 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
30541 2013-02-21 Jakub Jelinek <jakub@redhat.com>
30544 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
30547 PR inline-asm/56405
30548 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
30549 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
30551 2013-02-20 Jan Hubicka <jh@suse.cz>
30553 PR tree-optimization/56265
30554 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
30555 when target is referenced for first time.
30557 2013-02-20 Richard Biener <rguenther@suse.de>
30559 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
30560 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
30561 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
30562 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
30563 not return anything.
30564 (rename_ssa_copies): Do not remove unused locals.
30565 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
30566 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
30567 * passes.c (execute_function_todo): Do not schedule unused locals
30568 removal if cleanup_tree_cfg did something.
30569 * tree-ssa-live.c (remove_unused_locals): Dump statistics
30570 about the number of removed locals.
30572 2013-02-20 Richard Biener <rguenther@suse.de>
30574 PR tree-optimization/56398
30575 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
30577 2013-02-20 Martin Jambor <mjambor@suse.cz>
30579 PR tree-optimization/55334
30580 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
30581 restricted pointers to arrays.
30583 2013-02-20 Richard Biener <rguenther@suse.de>
30584 Jakub Jelinek <jakub@redhat.com>
30586 PR tree-optimization/56396
30587 * tree-ssa-ccp.c (n_const_val): New static variable.
30588 (get_value): Return NULL for SSA names we don't have a lattice
30590 (ccp_initialize): Initialize n_const_val.
30591 * tree-ssa-copy.c (n_copy_of): New static variable.
30592 (init_copy_prop): Initialize n_copy_of.
30593 (get_value): Return NULL_TREE for SSA names we don't have a
30596 2013-02-20 Martin Jambor <mjambor@suse.cz>
30598 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
30600 2013-02-20 Richard Biener <rguenther@suse.de>
30602 * genpreds.c (write_lookup_constraint): Do not compare first
30603 letter of the constraint again.
30605 2013-02-20 Richard Biener <rguenther@suse.de>
30607 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
30609 (get_use_iv_cost): Terminate hashtable walk when coming across
30612 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
30614 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
30615 reassociation for avx2 targets.
30617 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
30619 * config/microblaze/microblaze.c: microblaze_has_clz = 0
30620 Add version check for v8.10.a to enable microblaze_has_clz
30621 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
30622 version and TARGET_PATTERN_COMPARE check
30623 * config/microblaze/microblaze.md: New clzsi2 instruction
30625 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
30627 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
30628 function before branching.
30630 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
30632 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
30634 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
30636 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
30638 PR middle-end/55889
30639 * sel-sched.c: Include ira.h.
30640 (implicit_clobber_conflict_p): New function.
30641 (moveup_expr): Use it.
30642 * Makefile.in (sel-sched.o): Depend on ira.h.
30644 2013-02-19 Richard Biener <rguenther@suse.de>
30646 PR tree-optimization/56384
30647 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
30648 (vn_hash_type): Split out from ...
30649 (vn_hash_constant_with_type): ... here.
30650 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
30651 (vn_phi_eq): Compare types from vn_phi_s structure.
30652 (vn_phi_lookup): Populate vn_phi_s type.
30653 (vn_phi_insert): Likewise.
30655 2013-02-19 Jakub Jelinek <jakub@redhat.com>
30657 PR tree-optimization/56350
30658 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
30659 if haven't found reduction or nested cycle operand, rather than
30660 asserting we must find it.
30662 PR tree-optimization/56381
30663 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
30666 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
30667 Jakub Jelinek <jakub@redhat.com>
30670 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
30671 (swap_optab_enable): Same.
30672 (init_all_optabs): Use argument instead of global.
30673 * tree.h (struct tree_optimization_option): New field target_optabs.
30674 * expr.h (init_all_optabs): Add argument to prototype.
30675 (TREE_OPTIMIZATION_OPTABS): New.
30676 (save_optabs_if_changed): Protoize.
30677 * optabs.h: Declare this_fn_optabs.
30678 * optabs.c (save_optabs_if_changed): New.
30679 Declare this_fn_optabs.
30680 (init_optabs): Add argument to init_all_optabs() call.
30681 * function.c (invoke_set_current_function_hook): Handle per
30683 * function.h (struct function): New field optabs.
30684 * config/mips/mips.c (mips_set_mips16_mode): Handle when
30685 optimization_current_node has changed.
30686 * target-globals.h (save_target_globals_default_opts): Protoize.
30687 * target-globals.c (save_target_globals_default_opts): New.
30689 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30692 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
30693 registers %fr12 and %fr12R as call used.
30696 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
30697 and HImode, require all displacements to be an integer multiple of
30699 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
30700 only allow QImode and HImode when reload is in progress and strict is
30701 true. Likewise for symbolic addresses. Use base14_operand to check
30702 displacements in REG+BASE addresses.
30704 2013-02-18 Richard Biener <rguenther@suse.de>
30706 PR tree-optimization/56366
30707 * tree-vect-loop.c (get_initial_def_for_induction): Properly
30708 handle sign-conversion of outer-loop initial induction value.
30710 2013-02-18 Richard Biener <rguenther@suse.de>
30712 PR middle-end/56349
30713 * cfghooks.c (merge_blocks): If we merge a latch into another
30714 block adjust references to it.
30715 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
30716 (verify_loop_structure): Verify that a recorded latch is in fact
30719 2013-02-18 Richard Biener <rguenther@suse.de>
30721 PR tree-optimization/56321
30722 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
30723 order SSA name release and virtual operand unlinking.
30725 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
30727 * config/microblaze/microblaze.md (save_stack_block): Define.
30728 (restore_stack_block): Likewise.
30730 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
30732 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
30733 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
30734 * config/microblaze/microblaze.c (microblaze_option_override):
30735 Bail out early for PIC modes when target does not support PIC.
30737 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
30739 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
30740 Replace with a microblaze version.
30741 (microblaze_trampoline_init): Adapt for microblaze.
30742 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
30745 2013-02-16 Jakub Jelinek <jakub@redhat.com>
30746 Dodji Seketeli <dodji@redhat.com>
30749 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
30750 (instrument_mem_region_access): Do not forget to always put
30751 instrumentation of the of 'base' and 'base + len' in a "if (len !=
30752 0) statement, even for cases where either 'base' or 'base + len'
30753 are not instrumented -- because they have been previously
30754 instrumented. Simplify the logic by putting all the statements
30755 instrument 'base + len' inside a sequence, and then insert that
30756 sequence right before the current insertion point. Then, to
30757 instrument 'base + len', just get an iterator on that statement.
30758 And do not forget to update the pointer to iterator the function
30759 received as argument.
30761 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
30763 PR rtl-optimization/56348
30764 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
30766 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
30768 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
30769 (clean_graph_dump_file): Pass base to start_graph_dump.
30771 2013-02-14 Richard Henderson <rth@redhat.com>
30774 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
30776 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
30778 * collect2-aix.h: Define F_LOADONLY.
30780 2013-02-14 Richard Biener <rguenther@suse.de>
30783 * varasm.c (output_constant_def_1): Get the decl representing
30784 the constant as argument.
30785 (output_constant_def): Wrap output_constant_def_1.
30786 (make_decl_rtl): Use output_constant_def_1 with the decl
30787 representing the constant.
30788 (build_constant_desc): Optionally re-use a decl already
30789 representing the constant.
30790 (tree_output_constant_def): Adjust.
30792 2013-02-14 Dodji Seketeli <dodji@redhat.com>
30795 * asan.c (instrument_builtin_call): Really put the length of the
30796 second source argument into src1_len.
30798 2013-02-13 Jakub Jelinek <jakub@redhat.com>
30800 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
30801 argument. If it is false, don't create edge from then_bb to
30803 (insert_if_then_before_iter): Pass true to it.
30804 (build_check_stmt): Pass false to it.
30805 (transform_statements): Flush hash table only on extended basic
30806 block boundaries, rather than at the beginning of every bb.
30807 Don't flush hash table on nonfreeing_call_p calls.
30808 * tree-flow.h (nonfreeing_call_p): New prototype.
30809 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
30811 2013-02-13 David S. Miller <davem@davemloft.net>
30813 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
30815 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
30818 * ira.c (max_regno_before_ira): Move from ...
30820 (fix_reg_equiv_init): Use max_regno_before_ira instead of
30823 2013-02-13 Jakub Jelinek <jakub@redhat.com>
30825 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
30827 2013-02-13 Richard Biener <rguenther@suse.de>
30830 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
30831 globals in MEM_REFs.
30833 2013-02-13 Richard Biener <rguenther@suse.de>
30835 * loop-init.c (loop_optimizer_init): Clear loop state when
30836 re-initializing preserved loops.
30837 * loop-unswitch.c (unswitch_single_loop): Return whether
30838 we unswitched the loop. Do not verify loop state here.
30839 (unswitch_loops): When we unswitched a loop discover new loops.
30841 2013-02-13 Kostya Serebryany <kcc@google.com>
30843 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
30845 * sanitizer.def: Rename __asan_init to __asan_init_v1.
30847 2013-02-12 Dodji Seketeli <dodji@redhat.com>
30849 Avoid instrumenting duplicated memory access in the same basic block
30850 * Makefile.in (asan.o): Add new dependency on hash-table.h
30851 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
30852 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
30853 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
30854 (free_mem_ref_resources, has_mem_ref_been_instrumented)
30855 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
30856 (get_mem_ref_of_assignment): New functions.
30857 (get_mem_refs_of_builtin_call): Extract from
30858 instrument_builtin_call and tweak a little bit to make it fit with
30860 (instrument_builtin_call): Use the new
30861 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
30862 of is_gimple_builtin_call.
30863 (instrument_derefs, instrument_mem_region_access): Insert the
30864 instrumented memory reference into the hash table.
30865 (maybe_instrument_assignment): Renamed instrument_assignment into
30866 this, and change it to advance the iterator when instrumentation
30867 actually happened and return true in that case. This makes it
30868 homogeneous with maybe_instrument_assignment, and thus give a
30869 chance to callers to be more 'regular'.
30870 (transform_statements): Clear the memory reference hash table
30871 whenever we enter a new BB, when we cross a function call, or when
30872 we are done transforming statements. Use
30873 maybe_instrument_assignment instead of instrumentation. No more
30874 need to special case maybe_instrument_assignment and advance the
30875 iterator after calling it; it's now handled just like
30876 maybe_instrument_call. Update comment.
30878 2013-02-13 Richard Biener <rguenther@suse.de>
30880 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
30881 Fix loop discovery code.
30883 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
30885 PR inline-asm/56148
30886 * lra-constraints.c (process_alt_operands): Match early clobber
30887 operand with itself. Check conflicts with earlyclobber only if
30888 the operand is not reloaded. Prefer to reload conflicting operand
30889 if earlyclobber and matching operands are the same.
30891 2013-02-12 Richard Biener <rguenther@suse.de>
30894 * lto-streamer-out.c (write_symbol): Do not output symbols
30895 for hard register variables.
30897 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
30900 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
30901 (umulsidi3_insn, mulsidi3_insn): New insns.
30903 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
30905 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
30906 (struct tune_params): Add vec_costs field.
30907 * config/arm/arm.c (arm_builtin_vectorization_cost)
30908 (arm_add_stmt_cost): New functions.
30909 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
30910 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
30911 (arm_default_vec_cost): New struct of type cpu_vec_costs.
30912 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
30913 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
30914 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
30915 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
30917 2013-02-12 Richard Biener <rguenther@suse.de>
30920 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
30921 decls again if possible.
30923 2013-02-12 Richard Biener <rguenther@suse.de>
30925 PR middle-end/56288
30926 * tree-ssa.c (verify_ssa_name): Fix check, move
30927 SSA_NAME_IN_FREE_LIST check up.
30929 2013-02-12 Jakub Jelinek <jakub@redhat.com>
30930 Steven Bosscher <steven@gcc.gnu.org>
30932 PR rtl-optimization/56151
30933 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
30934 equal to op0 or op1, and last_insn pattern is CODE operation
30935 with MEM dest and one of the operands matches that MEM.
30937 2013-02-11 Sriraman Tallam <tmsriram@google.com>
30939 * doc/extend.texi: Document Function Multiversioning and "default"
30940 parameter string to target attribute.
30941 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
30942 target attribute parameter is "default".
30943 (ix86_compare_version_priority): Remove checks for target attribute.
30944 (ix86_mangle_function_version_assembler_name): Change error to sorry.
30945 Remove check for target attribute equal to NULL. Add assert.
30946 (ix86_generate_version_dispatcher_body): Change error to sorry.
30948 2013-02-11 Iain Sandoe <iain@codesourcery.com>
30949 Jack Howarth <howarth@bromo.med.uc.edu>
30950 Patrick Marlier <patrick.marlier@gmail.com>
30953 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
30954 define ENDFILE_SPEC as TM_DESTRUCTOR.
30955 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
30957 2013-02-11 Alexander Potapenko <glider@google.com>
30958 Jack Howarth <howarth@bromo.med.uc.edu>
30959 Jakub Jelinek <jakub@redhat.com>
30962 * config/darwin.c (cdtor_record): Rename ctor_record.
30963 (sort_cdtor_records): Rename sort_ctor_records.
30964 (finalize_dtors): New routine to sort destructors by
30965 priority before use in assemble_integer.
30966 (machopic_asm_out_destructor): Use finalize_dtors if needed.
30968 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
30970 PR rtl-optimization/56275
30971 * simplify-rtx.c (avoid_constant_pool_reference): Check that
30972 offset is non-negative and less than cmode size before
30973 calling simplify_subreg.
30975 2013-02-11 Richard Biener <rguenther@suse.de>
30977 PR tree-optimization/56264
30978 * cfgloop.h (fix_loop_structure): Adjust prototype.
30979 * loop-init.c (fix_loop_structure): Return the number of
30980 newly discovered loops.
30981 * tree-cfgcleanup.c (repair_loop_structures): When new loops
30982 are discovered, do a full loop-closed SSA rewrite.
30984 2013-02-11 Richard Biener <rguenther@suse.de>
30986 PR tree-optimization/56273
30987 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
30989 (check_array_ref): Fix missing newline in dumps.
30990 (search_for_addr_array): Likewise.
30992 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
30994 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
30996 2013-02-09 Jakub Jelinek <jakub@redhat.com>
30999 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
31001 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
31003 PR rtl-optimization/56246
31004 * lra-constraints.c (simplify_operand_subreg): Try to reuse
31006 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
31007 constraints are satisfied.
31009 2013-02-08 Jeff Law <law@redhat.com>
31012 * emit-rtl.c (reg_is_parm_p): New function.
31013 * regs.h (reg_is_parm_p): New prototype.
31014 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
31015 callee-clobbered registers.
31017 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
31020 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
31021 If there is no implicit builtin declaration, just return NULL.
31023 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
31025 * config/i386/sse.md (FMAMODEM): New mode iterator.
31026 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
31027 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
31029 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
31031 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
31032 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
31033 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
31035 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
31037 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
31038 (microblaze*-*-elf): Likewise.
31039 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
31041 * config/microblaze/microblaze-c.c: Add builtin defines for
31042 _LITTLE_ENDIAN and _BIG_ENDIAN.
31043 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
31044 add to TARGET_DEFAULT flags.
31045 Expand ASM_SPEC and LINK_SPEC.
31046 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
31047 * config/microblaze/microblaze.md: Update extendsidi2 and
31048 movdi_internal instructions to use low-order / high-order reg
31050 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
31051 options and inversemask / mask of LITTLE_ENDIAN.
31052 * config/microblaze/t-microblaze: Expand multilib options to
31053 include mlittle-endian (le) and update exceptions patterns.
31055 2013-02-08 Jakub Jelinek <jakub@redhat.com>
31057 PR rtl-optimization/56195
31058 * lra-constraints.c (get_reload_reg): Don't reuse regs
31059 if they have smaller mode than requested, if they have
31060 wider mode than requested, try to return a SUBREG.
31062 PR tree-optimization/56250
31063 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
31064 if type is unsigned and code isn't MULT_EXPR.
31066 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
31068 PR tree-optimization/56064
31069 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
31070 bits according to mode.
31071 * fixed-value.h (fixed_from_double_int)
31072 (const_fixed_from_double_int): Adjust comments.
31074 2013-02-08 Richard Biener <rguenther@suse.de>
31077 * lto-streamer.h (struct data_in): Remove current_file, current_line
31078 and current_col members.
31079 * lto-streamer-out.c (lto_output_location): Stream changed bits
31080 en-block for efficiency.
31081 * lto-streamer-in.c (clear_line_info): Remove.
31082 (lto_input_location): Cache current file, line and column
31083 globally via local statics. Read changed bits en-block.
31084 (input_function): Do not call clear_line_info.
31085 (lto_read_body): Likewise.
31086 (lto_input_toplevel_asms): Likewise.
31088 2013-02-08 Michael Matz <matz@suse.de>
31090 PR tree-optimization/52448
31091 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
31092 (nt_call_phase): New static.
31093 (add_or_mark_expr): Only mark accesses with newer phase than any
31095 (nonfreeing_call_p): New.
31096 (nt_init_block): Update nt_call_phase, mark blocks as visited.
31097 (nt_fini_block): Keep blocks marked as visited.
31098 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
31100 2013-02-08 Richard Biener <rguenther@suse.de>
31102 * ira.c (ira): Free broken dominator information.
31104 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
31106 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
31108 2013-02-08 Marek Polacek <polacek@redhat.com>
31110 * cfgloop.c (verify_loop_structure): Add more checking of headers.
31112 2013-02-08 Richard Biener <rguenther@suse.de>
31114 PR middle-end/56181
31115 * cfgloop.h (flow_loops_find): Adjust.
31116 (bb_loop_header_p): Declare.
31117 * cfgloop.c (bb_loop_header_p): New function split out from ...
31118 (flow_loops_find): ... here. Adjust function signature,
31119 support incremental loop structure update.
31120 (verify_loop_structure): Cleanup. Verify a loop is a loop.
31121 * cfgloopmanip.c (fix_loop_structure): Move ...
31122 * loop-init.c (fix_loop_structure): ... here.
31123 (apply_loop_flags): Split out from ...
31124 (loop_optimizer_init): ... here.
31125 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
31126 in incremental mode, only remove dead loops here.
31128 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
31131 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
31132 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
31133 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
31134 (*round<mode>3.libgcc): New insns for fixed-modes.
31135 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
31136 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
31137 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
31138 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
31139 implementations. Define to __builtin_avr_absFX,
31140 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
31141 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
31142 __builtin_avr_countlsFX, respectively.
31143 * config/avr/avr-c.c (target.h): Include it.
31144 (enum avr_builtin_id): New enum.
31145 (avr_resolve_overloaded_builtin): New static function.
31146 (avr_register_target_pragmas): Use it to set
31147 targetm.resolve_overloaded_builtin.
31148 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
31149 tree nodes used by DEF_BUILTIN.
31150 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
31151 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
31152 <AVR_BUILTIN_xxBITS>: Same.
31154 2013-02-08 Richard Biener <rguenther@suse.de>
31156 * cfgloop.c (verify_loop_structure): Properly handle
31157 a loop exiting to another loop header.
31158 * ira-int.h (ira_loops): Remove.
31159 * ira.c (ira_loops): Remove.
31160 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
31161 (do_reload): Use loop_optimizer_finalize.
31162 * ira-build.c (create_loop_tree_nodes): Use get_loops and
31163 number_of_loops to access the loop tree.
31164 (more_one_region_p): Likewise.
31165 (finish_loop_tree_nodes): Likewise.
31166 (rebuild_regno_allocno_maps): Likewise.
31167 (mark_loops_for_removal): Likewise.
31168 (mark_all_loops_for_removal): Likewise.
31169 (remove_unnecessary_regions): Likewise.
31170 (ira_build): Likewise.
31171 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
31173 2013-02-08 Richard Biener <rguenther@suse.de>
31175 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
31176 * ipa-pure-const.c (analyze_function): Avoid calling
31177 mark_irreducible_loops twice.
31178 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
31180 2013-02-07 David S. Miller <davem@davemloft.net>
31182 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
31184 * var-tracking.c (vt_add_function_parameter): Test the presence of
31185 HAVE_window_save properly and do not remap argument registers when
31186 we have a leaf function.
31188 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
31191 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
31193 * config/i386/i386.c (ix86_print_operand): Ditto.
31195 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
31197 * lra-constraints.c (process_alt_operands): Fix recently added comment.
31199 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
31201 PR rtl-optimization/56225
31202 * lra-constraints.c (process_alt_operands): Check that reload hard
31203 reg can hold value for strict_low_part.
31205 2013-02-07 Jakub Jelinek <jakub@redhat.com>
31208 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
31209 dwarf2out_end_function.
31210 (in_first_function_p, maybe_at_text_label_p,
31211 first_loclabel_num_not_at_text_label): New variables.
31212 (dwarf2out_var_location): In the first function find out
31213 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
31214 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
31217 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
31219 PR rtl-optimization/56178
31220 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
31221 SUBREG of a register. Tidy up related block of code.
31222 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
31223 note if the source is a register or a SUBREG of a register.
31225 2013-02-07 Jakub Jelinek <jakub@redhat.com>
31228 * config/rs6000/rs6000.md (ptrm): New mode attr.
31229 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
31230 call_value_indirect_aix<pttrsize>,
31231 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
31234 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
31236 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
31237 if -bnortl. Convert to strcmp and strncmp.
31239 2013-02-07 Alan Modra <amodra@gmail.com>
31242 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
31243 addresses won't wrap when offsetting.
31244 (rs6000_secondary_reload): Provide secondary reloads needed for
31245 wrapping LO_SUM addresses.
31247 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
31249 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
31250 MACH, just __MACH__.
31252 2013-02-06 Richard Biener <rguenther@suse.de>
31254 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
31255 instead of calling fix_loop_structure.
31257 2013-02-06 Jakub Jelinek <jakub@redhat.com>
31259 PR middle-end/56217
31260 * omp-low.c (use_pointer_for_field): Return false if
31261 lower_send_shared_vars doesn't generate any copy-out code.
31263 2013-02-06 Tom de Vries <tom@codesourcery.com>
31265 PR rtl-optimization/56131
31266 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
31267 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
31268 of the label is NULL. Add comment.
31270 2013-02-05 Jakub Jelinek <jakub@redhat.com>
31272 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
31275 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
31276 (STATIC_LIBTSAN_LIBS): Likewise.
31277 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
31278 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
31279 is defined, don't add anything else beyond that.
31280 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
31281 (LINK_COMMAND_SPEC): Use them.
31283 PR tree-optimization/56205
31284 * tree-stdarg.c (check_all_va_list_escapes): Return true if
31285 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
31286 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
31288 2013-02-05 Richard Biener <rguenther@suse.de>
31290 PR tree-optimization/53342
31291 PR tree-optimization/53185
31292 * tree-vectorizer.h (vect_check_strided_load): Remove.
31293 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
31294 not disallow peeling for vectorized strided loads.
31295 (vect_check_strided_load): Make static and simplify.
31296 (vect_analyze_data_refs): Adjust.
31297 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
31298 correctly when vectorizing strided loads.
31300 2013-02-05 Richard Biener <rguenther@suse.de>
31302 * doc/install.texi: Refer to ISL, not PPL.
31304 2013-02-05 Jan Hubicka <jh@suse.cz>
31306 PR tree-optimization/55789
31307 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
31309 2013-02-05 Jan Hubicka <jh@suse.cz>
31311 PR tree-optimization/55789
31312 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
31313 the dead call anyway.
31315 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
31318 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
31320 2013-02-04 Alexander Potapenko <glider@google.com>
31321 Jack Howarth <howarth@bromo.med.uc.edu>
31322 Jakub Jelinek <jakub@redhat.com>
31325 * config/darwin.c (sort_ctor_records): Stabilized qsort
31326 on constructor priority by using original position.
31327 (finalize_ctors): New routine to sort constructors by
31328 priority before use in assemble_integer.
31329 (machopic_asm_out_constructor): Use finalize_ctors if needed.
31331 2013-02-04 Jakub Jelinek <jakub@redhat.com>
31334 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
31335 about visibility on artificial decls.
31336 * config/sol2.c (solaris_assemble_visibility): Likewise.
31338 2013-02-04 Kai Tietz <ktietz@redhat.com>
31341 * config/i386/i386.c (function_value_ms_64): Add additional valtype
31342 argument and improve checking of return-argument types for 16-byte
31344 (ix86_function_value_1): Add additional valtype argument on call
31345 of function_value_64.
31346 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
31347 handling infunction_value_64 function.
31349 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
31351 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
31353 2013-02-04 Richard Biener <rguenther@suse.de>
31355 PR tree-optimization/56188
31356 * tree-ssa-structalias.c (label_visit): Consider case with
31357 initially non-empty points-to set.
31358 (perform_var_substitution): Dump node mapping and clean up.
31360 2013-02-04 Richard Guenther <rguenther@suse.de>
31363 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
31364 node prevail as last resort.
31365 (lto_symtab_merge_decls): Remove guard on LTRANS here.
31366 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
31368 2013-02-04 Richard Biener <rguenther@suse.de>
31370 PR tree-optimization/56113
31371 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
31373 (equiv_class_lookup_or_add): ... this.
31374 (label_visit): Adjust and fix error in previous patch.
31375 (perform_var_substitution): Adjust.
31377 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
31379 * config/sh/divtab.c: Fix formatting and comments throughout the file.
31380 * config/sh/sh4-300.md: Likewise.
31381 * config/sh/sh4a.md: Likewise.
31382 * config/sh/constraints.md: Likewise.
31383 * config/sh/sh.md: Likewise.
31384 * config/sh/netbsd-elf.h: Likewise.
31385 * config/sh/predicates.md: Likewise.
31386 * config/sh/sh-protos.h: Likewise.
31387 * config/sh/ushmedia.h: Likewise.
31388 * config/sh/linux.h: Likewise.
31389 * config/sh/sh.c: Likewise.
31390 * config/sh/superh.h: Likewise.
31391 * config/sh/elf.h: Likewise.
31392 * config/sh/sh4.md: Likewise.
31393 * config/sh/sh.h: Likewise.
31395 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31397 * config/pa/constraints.md: Adjust unused letters. Change "T"
31398 constraint to match_test floating_point_store_memory_operand().
31399 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
31400 (base14_operand): New.
31401 (floating_point_store_memory_operand): New.
31402 (integer_store_memory_operand): Revise to use base14_operand and
31403 reg_plus_base_memory_operand.
31404 (move_dest_operand): Allow symbolic_memory_operands.
31405 (symbolic_memory_operand): Check for LO_SOM.
31406 (symbolic_operand): Change default case to break.
31407 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
31408 CONST_DOUBLE values to be reloaded by putting them into memory when
31409 the destination is a floating point register.
31410 (movdf): Remove code to handle CONST_DOUBLE.
31412 (reload_indf_r1): New.
31413 (reload_insf_r1): New.
31414 Consistently use "Q" and "T" constraints with integer and floating
31415 point move instructions, respectively.
31416 (movdi): Remove FAIL.
31417 Change predicate for source operand unamed DImode move from
31418 general_operand to move_src_operand.
31419 (umulsidi3): Change predicate for destination operand to
31421 Likewise for similar unamed patterns.
31422 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
31423 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
31424 (hppa_legitimize_address): Simplify mask calculation.
31425 (pa_emit_move_sequence): Revised handling of secondary reloads from
31426 REG+D addresses for floating point loads and stores. Directly handle
31427 loading CONST0_RTX (mode) to a floating point register.
31428 (pa_secondary_reload): Handle reloading DF and SFmode constant values
31429 to floating point registers. Don't restrict secondary reloads to
31430 floating point registers to integer modes. Revise some comments and
31432 (TARGET_LEGITIMATE_ADDRESS_P): Define.
31433 (pa_legitimate_address_p): New.
31434 (pa_legitimize_reload_address): New.
31435 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
31436 (STRICT_REG_OK_FOR_BASE_P): New.
31437 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
31438 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
31440 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
31441 Andrew Dixie <andrewd@gentrack.com>
31443 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
31446 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
31448 * expmed.c (extract_bit_field_1): Pass the full width of the
31449 structure to get_best_reg_extraction_insn.
31451 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
31454 * configure.ac (use_cxa_atexit): Add AIX.
31455 * configure: Regenerate.
31457 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
31459 2013-02-01 Jakub Jelinek <jakub@redhat.com>
31462 * final.c (need_profile_function): New variable.
31463 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
31464 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
31465 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
31466 notes, targetm.asm_out.function_prologue doesn't emit anything,
31467 HAVE_prologue and profiler should be emitted before prologue,
31468 set need_profile_function instead of emitting it.
31469 (final_scan_insn): If need_profile_function, emit
31470 profile_function on the first NOTE_INSN_BASIC_BLOCK or
31471 NOTE_INSN_FUNCTION_BEG note.
31473 2013-02-01 Richard Henderson <rth@redhat.com>
31475 * config/rs6000/rs6000.md (smulditi3): New.
31478 * config/alpha/alpha.md (umulditi3): New.
31480 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
31482 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
31483 (ASM_OUTPUT_ALIGNED_LOCAL): New.
31485 2013-02-01 Richard Biener <rguenther@suse.de>
31487 PR tree-optimization/56113
31488 * tree-ssa-structalias.c (label_visit): Reduce work for
31489 single-predecessor nodes.
31491 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
31493 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
31494 range isn't testing for zero.
31496 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
31498 PR middle-end/56113
31499 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
31501 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
31502 Nick Clifton <nickc@redhat.com>
31504 * config/v850/constraints.md (Q): Define as a memory constraint.
31505 * config/v850/predicates.md (label_ref_operand): New predicate.
31506 (e3v5_shift_operand): New predicate.
31507 (ior_operator): New predicate.
31508 * config/v850/t-v850: Add e3v5 multilib.
31509 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
31510 (v850_gen_movdi): Prototype.
31511 * config/v850/v850.c: Add support for e3v5 architecture.
31512 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
31514 (construct_save_jarl): Add e3v5 long JARL support.
31515 (v850_adjust_insn_length): New function. Adjust length of call
31516 insns when using e3v5 instructions.
31517 (v850_gen_movdi): New function: Generate instructions to move a
31519 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
31520 (CPP_SPEC): Define __v850e3v5__ as appropriate.
31521 (TARGET_USE_FPU): Enable for e3v5.
31522 (CONST_OK_FOR_W): New macro.
31523 (ADJUST_INSN_LENGTH): Define.
31524 * config/v850/v850.md (UNSPEC_LOOP): Define.
31525 (attr cpu): Add v850e3v5.
31526 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
31527 (movdi): New pattern.
31528 (movdi_internal): New pattern.
31529 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
31530 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
31531 (cstoresf4): Likewise.
31532 (cstoredf4): Likewise.
31533 (insv): New pattern.
31534 (rotlso3_a): New pattern.
31535 (rotlsi3_b): New pattern
31536 (rotlsi3_v850e3v5): New pattern.
31537 (doloop_begin): New pattern.
31538 (fix_loop_counter): New pattern.
31539 (doloop_end): New pattern.
31540 (branch_normal): Add e3v5 long branch support.
31541 (branch_invert): Likewise.
31542 (branch_z_normal): Likewise.
31543 (branch_z_invert): Likewise.
31544 (branch_nz_normal): Likewise.
31545 (branch_nz_invert): Likewise.
31546 (call_internal_short): Add e3v5 register-indirect JARL support.
31547 (call_internal_long): Likewise.
31548 (call_value_internal_short): Likewise.
31549 (call_value_internal_long): Likewise.
31550 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
31551 (mloop): New option.
31552 * config.gcc: Add support for configuring v840e3v5 target.
31553 * doc/invoke.texi: Document new v850 specific command line options.
31555 2013-01-31 Paul Koning <ni1d@arrl.net>
31559 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
31560 children if parent is a class.
31561 (prune_unused_types_prune): Don't add DW_AT_declaration.
31563 2013-01-31 Richard Biener <rguenther@suse.de>
31565 PR tree-optimization/56157
31566 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
31567 match up operand with SLP child.
31569 2013-01-31 Jason Merrill <jason@redhat.com>
31572 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
31573 parameters the first time.
31574 (gen_scheduled_generic_parms_dies): Check completeness here.
31576 2013-01-31 Richard Biener <rguenther@suse.de>
31578 PR middle-end/53073
31579 * common.opt (faggressive-loop-optimizations): New flag,
31580 enabled by default.
31581 * doc/invoke.texi (faggressive-loop-optimizations): Document.
31582 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
31583 infer_loop_bounds_from_undefined by it.
31585 2013-01-31 Richard Biener <rguenther@suse.de>
31587 PR tree-optimization/56150
31588 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
31589 visit virtual operands.
31590 (find_uses_to_rename_bb): Likewise.
31592 2013-01-31 Richard Biener <rguenther@suse.de>
31594 PR tree-optimization/56150
31595 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
31596 mixed store non-store stmts.
31598 2013-01-30 Jakub Jelinek <jakub@redhat.com>
31601 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
31602 LIBASAN_EARLY_SPEC is defined.
31603 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
31604 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
31606 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
31609 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
31610 invalid args instead of ICEing on it.
31611 (ix86_valid_target_attribute_tree): Return error_mark_node if
31612 ix86_valid_target_attribute_inner_p failed.
31613 (ix86_valid_target_attribute_p): Return false only if
31614 ix86_valid_target_attribute_tree returned error_mark_node. Allow
31615 target("default") attribute.
31616 (sorted_attr_string): Change argument from const char * to tree,
31617 merge in all target attribute arguments rather than just one.
31618 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
31619 instead of free. Avoid using strcat.
31620 (ix86_mangle_function_version_assembler_name): Mangle
31621 target("default") as if no target attribute is present. Adjust
31622 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
31623 instead of xmalloc and XDELETEVEC instead of free.
31624 (ix86_function_versions): Don't return true if one of the decls
31625 doesn't have target attribute. If they don't and one of the decls
31626 is DECL_FUNCTION_VERSIONED, report an error. Adjust
31627 sorted_attr_string caller. Use XDELETEVEC instead of free.
31628 (ix86_supports_function_versions): Remove.
31629 (make_name): Fix up formatting.
31630 (make_dispatcher_decl): Remove resolver_name and its initialization.
31631 Avoid leaking memory.
31632 (is_function_default_version): Return true if there is
31633 target("default") attribute rather than no target attribute at all.
31634 (make_resolver_func): Avoid leaking memory.
31635 (ix86_generate_version_dispatcher_body): Likewise.
31636 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
31637 * target.def (supports_function_versions): Remove.
31638 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
31639 * doc/tm.texi: Regenerated.
31641 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
31643 PR rtl-optimization/56144
31644 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
31645 for values with side effects.
31647 2013-01-30 Richard Biener <rguenther@suse.de>
31649 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
31650 (sparseset_pop): Likewise.
31651 * cfganal.c (compute_idf): Likewise. Increase work-stack size
31652 to be able to use quick_push in the worker loop.
31654 2013-01-30 Marek Polacek <polacek@redhat.com>
31656 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
31658 2013-01-30 Richard Biener <rguenther@suse.de>
31661 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
31663 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
31665 PR tree-optimization/56064
31666 * fixed-value.c (fixed_from_double_int): New function.
31667 * fixed-value.h (fixed_from_double_int): New prototype.
31668 (const_fixed_from_double_int): New static inline function.
31669 * fold-const.c (native_interpret_fixed): New static function.
31670 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
31671 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
31672 (native_encode_fixed): New static function.
31673 (native_encode_expr) <FIXED_CST>: Use it.
31674 (native_interpret_int): Move double_int worker code to...
31675 * double-int.c (double_int::from_buffer): ...this new static method.
31676 * double-int.h (double_int::from_buffer): Prototype it.
31678 2013-01-30 Richard Biener <rguenther@suse.de>
31680 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
31681 New pointer-map and obstack.
31682 (init_alias_vars): Allocate pointer-map and obstack.
31683 (delete_points_to_sets): Free them.
31684 (find_what_var_points_to): Cache result.
31685 (find_what_p_points_to): Adjust for changed interface of
31686 find_what_var_points_to.
31687 (compute_points_to_sets): Likewise.
31688 (ipa_pta_execute): Likewise.
31690 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31692 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
31693 * configure: Regenerate.
31694 * config.in: Regenerate.
31695 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
31696 #nobits/#progbits if supported.
31698 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
31701 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
31702 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
31703 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
31705 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
31707 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
31708 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
31710 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
31712 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
31713 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
31715 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
31717 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
31719 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
31720 * config/arm/cortex-a7.md: New bypasses using
31721 arm_mac_accumulator_is_result.
31723 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
31725 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
31726 (cortex_a7_neon_mla): Likewise.
31727 (cortex_a7_fpfmad): New reservation.
31728 (cortex_a7_fpmacs): Use ffmas and update required units.
31729 (cortex_a7_fpmuld): Update required units and latency.
31730 (cortex_a7_fpmacd): Likewise.
31731 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
31732 (cortex_a7_neon). Likewise.
31733 (bypass) Update participating units.
31735 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
31737 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
31738 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
31740 * config/arm/vfp11.md (vfp_farith): Use ffmas.
31741 (vfp_fmul): Use ffmad.
31742 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
31743 (cortex_r4_fmacd): Use ffmad.
31744 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
31745 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
31746 (cortex_a9_fmacd): Use ffmad.
31747 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
31748 (cortex_a8_vfp_macd): Use ffmad.
31749 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
31750 (cortex_a5_fpmacd): Use ffmad.
31751 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
31752 (cortex_a15_vfp_macd): Use ffmad.
31753 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
31755 2013-01-29 Jason Merrill <jason@redhat.com>
31758 * varasm.c (default_assemble_visibility): Don't warn about
31759 visibility on artificial decls.
31761 2013-01-29 Richard Biener <rguenther@suse.de>
31763 PR tree-optimization/56113
31764 * tree-ssa-structalias.c (equiv_class_lookup): Also return
31766 (label_visit): Free duplicate bitmaps and record the leader instead.
31767 (perform_var_substitution): Adjust.
31769 2013-01-29 Richard Biener <rguenther@suse.de>
31771 PR tree-optimization/55270
31772 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
31773 the CFG, schedule loops for fixup.
31775 2013-01-29 Nick Clifton <nickc@redhat.com>
31777 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
31780 2013-01-28 Leif Ekblad <leif@rdos.net>
31782 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
31783 * config/i386/i386.h (TARGET_RDOS): New macro.
31784 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
31785 * config/i386/i386.c (ix86_option_override_internal): For 64bit
31786 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
31787 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
31788 DEFAULT_LARGE_SECTION_THRESHOLD.
31789 * config/i386/i386.md (R14_REG, R15_REG): New constants.
31790 * config/i386/rdos.h: New file.
31791 * config/i386/rdos64.h: New file.
31793 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
31796 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
31799 2013-01-28 Jakub Jelinek <jakub@redhat.com>
31801 PR rtl-optimization/56117
31802 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
31803 call cselib_lookup_from_insn on the MEM before calling
31804 add_insn_mem_dependence.
31806 2013-01-28 Richard Biener <rguenther@suse.de>
31808 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
31809 to a stmt that didn't have one.
31810 (copy_phis_for_bb): Likewise for PHI arguments.
31811 (copy_debug_stmt): Likewise for debug stmts.
31813 2013-01-28 Richard Biener <rguenther@suse.de>
31815 PR tree-optimization/56034
31816 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
31817 (partition_builtin_p): Adjust.
31818 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
31819 it is the last partition.
31820 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
31821 up the vertex for the definition.
31822 (classify_partition): Classify whether a partition is a
31823 PKIND_REDUCTION, thus has uses outside of the loop.
31824 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
31825 Merge all PKIND_REDUCTION partitions into the last partition.
31826 (tree_loop_distribution): Seed partitions from reductions as well.
31828 2013-01-28 Jakub Jelinek <jakub@redhat.com>
31830 PR tree-optimization/56125
31831 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
31832 pow(x,c) into sqrt(x) * powi(x, n/2) or
31833 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
31834 optimizing for size.
31835 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
31836 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
31839 PR tree-optimization/56094
31840 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
31841 to UNKNOWN_LOCATION while gimplifying expr.
31843 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
31846 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
31847 operand 0 in movabs insn template for -masm=intel asm alternative.
31848 (*movabs<mode>_2): Ditto for operand 1.
31850 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
31853 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
31856 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
31858 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
31861 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31863 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
31864 Undef to avoid warning.
31866 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
31868 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
31869 * configure: Regenerate.
31871 2013-01-25 Jakub Jelinek <jakub@redhat.com>
31873 PR tree-optimization/56098
31874 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
31875 for stmts with volatile ops.
31876 (cond_store_replacement): Don't optimize if assign has volatile ops.
31877 (cond_if_else_store_replacement_1): Don't optimize if either
31878 then_assign or else_assign have volatile ops.
31879 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
31882 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
31884 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
31886 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
31888 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
31889 missing ':' in asm example.
31891 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
31893 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
31894 entries into lane and laneq entries.
31895 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
31896 Remove AdvSIMD scalar modes.
31897 (aarch64_sq<r>dmulh_laneq<mode>): New.
31898 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
31900 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
31901 builtin implementations to relfect changes in RTL in aarch64-simd.md.
31902 * config/aarch64/iterators.md (VCOND): New.
31905 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
31908 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
31909 Add NULL LIBNAME argument to existing definitions.
31910 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
31911 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
31912 * config/avr/avr.c (DEF_BUILTIN): Same.
31913 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
31914 (avr_expand_builtin): Expand to a vanilla call if a libgcc
31915 implementation is available (DECL_ASSEMBLER_NAME is set).
31916 (avr_fold_absfx): New static function.
31917 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
31918 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
31919 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
31920 AVR_BUILTIN_ABSLLK.
31921 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
31922 (abshk, absk, abslk, absllk): Provide as static inline functions.
31924 2013-01-25 Marek Polacek <polacek@redhat.com>
31926 PR tree-optimization/56035
31927 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
31929 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
31931 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
31932 (*movtf_internal_rex64): Add (!o,C) alternative
31933 (*movxf_internal_rex64): Ditto.
31934 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
31936 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
31938 * doc/invoke.texi: fix typo.
31939 * doc/objc.texi: fix typo.
31941 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
31943 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
31944 for the first two alternatives.
31946 2013-01-24 Diego Novillo <dnovillo@google.com>
31948 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
31949 (ggc-zone.o): Remove.
31950 * configure.ac: Remove option --with-gc.
31951 * configure: Re-generate.
31952 * doc/install.texi: Remove documentation for --with-gc.
31953 * gengtype.c (write_enum_defn): Remove. Update all users.
31954 (write_Types_process_field): Remove generation of gt_e_* argument.
31955 (output_type_enum): Remove. Update all users.
31956 (write_enum_defn): Remove. Update all users.
31957 (enum alloc_zone): Remove. Update all users.
31958 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
31959 * ggc-common.c (ggc_splay_alloc): Remove first argument.
31960 Update all callers.
31961 (struct ptr_data): Remove field TYPE. Update all users.
31962 (gt_pch_note_object): Remove argument TYPE. Update all users.
31963 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
31965 * ggc-none.c (ggc_alloc_typed_stat): Remove.
31966 (struct alloc_zone): Remove.
31967 (ggc_internal_alloc_zone_stat): Remove.
31968 (ggc_internal_cleared_alloc_zone_stat): Remove.
31969 * ggc-page.c (ggc_alloc_typed_stat): Remove.
31970 (ggc_pch_count_object): Remove last argument. Update all users.
31971 (ggc_pch_alloc_object): Remove last argument. Update all users.
31972 (struct alloc_zone): Remove.
31973 * ggc-zone.c: Remove.
31974 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
31975 (struct alloc_zone): Remove.
31976 (ggc_alloc_typed_stat): Remove.
31977 (ggc_alloc_typed): Remove.
31978 (ggc_splay_alloc): Remove first argument.
31979 (rtl_zone): Remove. Update all users.
31980 (tree_zone): Remove. Update all users.
31981 (tree_id_zone): Remove. Update all users.
31982 (ggc_internal_zone_alloc_stat): Remove. Update all users.
31983 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
31984 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
31985 * tree-ssanames.c: Remove references to zone allocator in comments.
31987 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
31989 * config/avr/avr.c (avr_out_fract): Make register numbers that
31990 might be outside of source operand signed.
31992 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
31994 * config/i386/constraints.md (Yf): New constraint.
31995 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
31996 of f constraint to conditionaly disable x87 register preferences.
31997 (*movdf_internal): Ditto.
31998 (*movsf_internal): Ditto.
32000 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
32002 PR inline-asm/55934
32003 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
32004 that have operands with impossible constraints.
32005 Add a FIXME for a speed-up opportunity.
32006 * lra-constraints.c (process_alt_operands): Verify that a class
32007 selected from constraints on asms is valid for the operand mode.
32008 (curr_insn_transform): Remove incorrect comment.
32010 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
32012 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
32013 TOC operand is a valid symbol ref in the constant pool.
32015 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
32017 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
32019 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
32022 * config/avr/stdfix.h: New file.
32023 * t-avr (stdfix-gcc.h): New rule to build it.
32024 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
32026 2013-01-23 Kostya Serebryany <kcc@google.com>
32028 * config/darwin.h: remove dependency on
32029 CoreFoundation (asan on Mac OS).
32031 2013-01-23 Jakub Jelinek <jakub@redhat.com>
32034 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
32035 instead of cmpdi_operand for first comparison operand.
32036 Don't assert that comparison operands aren't both constants.
32038 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
32040 * doc/install.texi (Downloading the Source): Update references to
32041 downloading separate components.
32043 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
32045 * doc/extend.texi (__int128): Improve grammar.
32047 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
32050 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
32051 alternative to (o,r).
32052 (*movdi_internal_rex64): Remove (!o,n) alternative.
32053 (DImode immediate->memory splitter): Remove.
32054 (DImode immediate->memory peephole2): Remove.
32055 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
32056 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
32057 alternative to (!o,*r).
32058 (*movtf_internal_sse): New pattern.
32059 (*movxf_internal_rex64): New pattern.
32060 (*movxf_internal): Disable for TARGET_64BIT.
32061 (*movdf_internal_rex64): Remove (!o,F) alternative.
32063 2013-01-22 Jakub Jelinek <jakub@redhat.com>
32065 PR middle-end/56074
32066 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
32067 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
32068 * tree-vect-loop-manip.c (find_loop_location): Also ignore
32069 stmt locations where LOCATION_LOCUS of the stmt location is
32070 UNKNOWN_LOCATION or BUILTINS_LOCATION.
32073 * config/i386/i386.md (UNSPEC_STOS): New.
32074 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
32075 *strsetqi_1): Add UNSPEC_STOS.
32077 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
32080 * doc/invoke.texi: Remove left over -Wsynth example.
32082 2013-01-21 Jakub Jelinek <jakub@redhat.com>
32084 PR tree-optimization/56051
32085 * fold-const.c (fold_binary_loc): Don't fold
32086 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
32087 a narrowing conversion, or widening conversion from signed
32090 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
32092 PR rtl-optimization/56023
32093 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
32094 dependent on debug instruction.
32096 2013-01-21 Martin Jambor <mjambor@suse.cz>
32098 PR middle-end/56022
32099 * function.c (allocate_struct_function): Call
32100 invoke_set_current_function_hook earlier.
32102 2013-01-21 Jakub Jelinek <jakub@redhat.com>
32104 * reload1.c (init_reload): Only initialize reload_obstack
32105 during the first call.
32107 2013-01-21 Marek Polacek <polacek@redhat.com>
32109 * cfgloop.c (verify_loop_structure): Fix up grammar.
32111 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
32113 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
32114 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
32116 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32119 * config/arm/marvell-pj4.md: Update copyright year.
32120 Fix up use of alu to alu_reg and simple_alu_imm.
32122 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
32124 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
32126 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
32129 * lra-constraints.c (curr_insn_transform): Don't reuse original
32130 insn for secondary memory move when memory mode should be different.
32132 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32134 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
32135 atomic_storedi_1): New patterns.
32137 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
32139 btver2 pipeline descriptions.
32140 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
32142 * config/i386/i386.md (btver2_decode): New type attributes.
32143 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
32145 * config/i386/btver2.md: New file describing btver2 pipelines.
32147 2013-01-19 Andrew Pinski <apinski@cavium.com>
32149 PR tree-optimization/52631
32150 * tree-ssa-sccvn (visit_use): Before looking up the original
32151 statement, try looking up the simplified expression.
32153 2013-01-19 Anthony Green <green@moxielogic.com>
32155 * config/moxie/moxie.c (moxie_expand_prologue): Set
32156 current_function_static_stack_size.
32158 2013-01-18 Jakub Jelinek <jakub@redhat.com>
32160 PR tree-optimization/56029
32161 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
32162 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
32164 2013-01-18 Sharad Singhai <singhai@google.com>
32166 PR tree-optimization/55995
32167 * dumpfile.c (dump_loc): Print location only if available.
32168 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
32170 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
32173 * lra-constraints.c (curr_insn_transform): Reuse original insn for
32174 secondary memory move.
32175 (inherit_reload_reg): Use rclass instead of cl for
32176 check_secondary_memory_needed_p.
32178 2013-01-18 Jakub Jelinek <jakub@redhat.com>
32180 PR middle-end/56015
32181 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
32182 the case where writing real complex part of target modifies op1.
32184 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
32186 * config/aarch64/aarch64-simd.md
32187 (aarch64_vcond_internal<mode>): Handle unordered cases.
32188 * config/aarch64/iterators.md (v_cmp_result): New.
32190 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
32191 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32193 * config/arm/marvell-pj4.md: New file.
32194 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
32195 * config/arm/arm.md (generic_sched): Add marvell_pj4.
32196 (generic_vfp): Likewise.
32197 * config/arm/arm-cores.def: Add marvell-pj4.
32198 * config/arm/arm-tune.md: Regenerate.
32199 * config/arm/arm-tables.opt: Regenerate.
32200 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
32201 * doc/invoke.texi: Document marvell-pj4.
32203 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
32205 * config/aarch64/arm_neon.h: Map scalar types to standard types.
32207 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
32212 * var-tracking.c (negative_power_of_two_p): New.
32213 (global_get_addr_cache, local_get_addr_cache): New.
32214 (get_addr_from_global_cache, get_addr_from_local_cache): New.
32215 (vt_canonicalize_addr): Rewrite using the above. Adjust the
32217 (vt_stack_offset_p): Remove.
32218 (vt_canon_true_dep): Always canonicalize loc's address.
32219 (clobber_overlapping_mems): Make sure we have a MEM.
32220 (local_get_addr_clear_given_value): New.
32221 (val_reset): Clear local cached entries.
32222 (compute_bb_dataflow): Create and release the local cache.
32223 Disable duplicate MEMs clobbering.
32224 (emit_notes_in_bb): Clobber MEMs likewise.
32225 (vt_emit_notes): Create and release the local cache.
32226 (vt_initialize, vt_finalize): Create and release the global
32227 cache, respectively.
32228 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
32230 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
32232 PR libmudflap/53359
32233 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
32234 not found in the symtab.
32236 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
32239 PR rtl-optimization/55547
32240 PR rtl-optimization/53827
32243 * alias.c (offset_overlap_p): New, factored out of...
32244 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
32245 the conservative special case for symbolic constants. Don't
32246 adjust zero sizes on alignment.
32248 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
32250 PR rtl-optimization/52573
32251 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
32252 REG_UNUSED for the same register.
32254 2013-01-17 Richard Biener <rguenther@suse.de>
32255 Marek Polacek <polacek@redhat.com>
32257 PR rtl-optimization/55833
32258 * loop-unswitch.c (unswitch_loops): Move loop verification...
32259 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
32260 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
32261 Set it to true when we're removing a loop from hierarchy tree in
32262 an irreducible region.
32263 (fix_bb_placements): Adjust caller.
32264 (fix_loop_placements): Likewise.
32266 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
32268 * config/avr/builtins.def (DEF_BUILTIN): Factor out
32269 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
32270 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
32271 Remove ID. Adjust comments.
32272 * config/avr/avr-c.c (avr_builtin_name): Remove.
32273 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
32274 * config/avr/avr.c (avr_tolower): New static function.
32275 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
32276 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
32277 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
32280 2013-01-17 Jan Hubicka <jh@suse.cz>
32282 PR tree-optimization/55273
32283 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
32285 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
32288 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
32289 store through atomic_store<mode>_1.
32290 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
32292 2013-01-17 Martin Jambor <mjambor@suse.cz>
32294 PR tree-optimizations/55264
32295 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
32296 for virtual methods.
32297 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
32298 virtual methods before inlining is over.
32299 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
32301 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
32304 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
32306 PR rtl-optimization/56005
32307 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
32308 pending reads for prefetch.
32310 2013-01-16 Ian Bolton <ian.bolton@arm.com>
32312 * config/aarch64/aarch64.md
32313 (*cstoresi_neg_uxtw): New pattern.
32314 (*cmovsi_insn_uxtw): New pattern.
32315 (*<optab>si3_uxtw): New pattern.
32316 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
32317 (*<optab>si3_insn_uxtw): New pattern.
32318 (*bswapsi2_uxtw): New pattern.
32320 2013-01-16 Richard Biener <rguenther@suse.de>
32322 * tree-inline.c (tree_function_versioning): Remove set but
32323 never used variable.
32325 2013-01-16 Richard Biener <rguenther@suse.de>
32327 PR tree-optimization/55964
32328 * tree-flow.h (rename_variables_in_loop): Remove.
32329 (rename_variables_in_bb): Likewise.
32330 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
32331 (copy_loop_before): Adjust and delete update-ssa status.
32332 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
32333 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
32334 (rename_variables_in_loop): Remove.
32335 (slpeel_update_phis_for_duplicate_loop): Likewise.
32336 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
32337 use available cfg machinery instead of duplicating it.
32338 Update PHI nodes and perform poor-mans SSA update here.
32339 (slpeel_tree_peel_loop_to_edge): Adjust.
32341 2013-01-16 Richard Biener <rguenther@suse.de>
32343 PR tree-optimization/54767
32344 PR tree-optimization/53465
32345 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
32346 (vrp_visit_phi_node): For PHI arguments coming via backedges
32347 drop all symbolical range information.
32348 (execute_vrp): Compute backedges.
32350 2013-01-16 Richard Biener <rguenther@suse.de>
32352 * doc/install.texi: Update CLooG and ISL requirements to
32355 2013-01-16 Christian Bruel <christian.bruel@st.com>
32358 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
32359 (broken_move): Handle UNSPECV_SP_SWITCH_B.
32360 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
32362 2013-01-16 DJ Delorie <dj@redhat.com>
32364 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
32365 (UNSPECV_SP_SWITCH_E): New.
32366 (sp_switch_1): Change to an unspec.
32367 (sp_switch_2): Change to an unspec. Don't use post-inc when we
32370 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
32372 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
32373 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
32374 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
32375 (expand_mem_thread_fence): Ditto.
32376 (expand_mem_signal_fence): Ditto.
32377 (expand_atomic_load): Ditto.
32378 (expand_atomic_store): Ditto.
32380 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
32382 PR rtl-optimization/55547
32383 PR rtl-optimization/53827
32386 * alias.c (memrefs_conflict_p): Set sizes to negative after
32389 2013-01-15 Jakub Jelinek <jakub@redhat.com>
32392 * function.c (thread_prologue_and_epilogue_insns): Always
32393 add crtl->drap_reg to set_up_by_prologue.set, even if
32394 stack_realign_drap is false.
32396 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
32398 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
32399 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
32400 *call): Fix indention.
32402 2013-01-15 Tom de Vries <tom@codesourcery.com>
32405 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
32408 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
32410 PR rtl-optimization/55153
32411 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
32413 2013-01-15 Martin Jambor <mjambor@suse.cz>
32415 PR tree-optimization/55920
32416 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
32417 accesses as grp_to_be_debug_replaced.
32419 2013-01-15 Jakub Jelinek <jakub@redhat.com>
32421 PR tree-optimization/55920
32422 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
32423 there is non-useless type conversion needed from debug rhs to lhs,
32424 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
32426 2013-01-15 Joseph Myers <joseph@codesourcery.com>
32427 Mikael Pettersson <mikpe@it.uu.se>
32430 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
32432 (ASM_OUTPUT_CASE_LABEL): Remove.
32433 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
32434 * final.c (shorten_branches): Update alignment of labels before
32435 jump tables if CASE_VECTOR_SHORTEN_MODE.
32437 2013-01-15 Richard Biener <rguenther@suse.de>
32440 * system.h: Do not include gmp.h for building host tools.
32442 2013-01-15 Richard Biener <rguenther@suse.de>
32444 PR middle-end/55882
32445 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
32446 account for bitpos when computing alignment.
32448 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
32450 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
32451 (ix86_target_macros_internal): Likewise.
32453 * config/i386/i386.c (m_CORE2I7): Removed.
32454 (m_CORE_HASWELL): New macro.
32455 (m_CORE_ALL): Likewise.
32456 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
32457 (initial_ix86_arch_features): Likewise.
32458 (processor_target_table): Initializations for Core avx2.
32459 (cpu_names): New names "core-avx2".
32460 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
32461 PROCESSOR_CORE_HASWELL.
32462 (ix86_issue_rate): New case.
32463 (ia32_multipass_dfa_lookahead): Likewise.
32464 (ix86_sched_init_global): Likewise.
32466 * config/i386/i386.h (TARGET_HASWELL): New macro.
32467 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
32468 (processor_type): New PROCESSOR_HASWELL.
32470 2013-01-15 Jakub Jelinek <jakub@redhat.com>
32472 PR tree-optimization/55955
32473 * tree-vect-loop.c (vectorizable_reduction): Give up early on
32474 *SHIFT_EXPR and *ROTATE_EXPR codes.
32476 PR tree-optimization/48766
32477 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
32478 -ftrapv disable -fwrapv.
32480 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
32483 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
32484 etc. to 1 and not to __flash.
32485 Use LL suffix for __INT24_MAX__ with -mint8.
32486 Use ULL suffix for __UINT24_MAX__ with -mint8.
32488 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
32490 * config/avr/avr-arch.h
32491 (struct base_arch_s): Use typedef avr_arch_t instead.
32492 (struct arch_info_s): Use typedef avr_arch_info_t instead.
32493 (struct mcu_type_s): Use typedef avr_mcu_t instead.
32494 * config/avr/avr.c: Same.
32495 * config/avr/avr-devices.c: Same.
32496 * config/avr/driver-avr.c: Same.
32497 * config/avr/gen-avr-mmcu-texi.c: Same.
32498 * config/avr/avr-mcus.def: Adjust comment.
32500 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
32502 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
32503 * config/aarch64/iterators.md (VALLDI): New.
32505 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
32506 Andi Kleen <ak@linux.intel.com>
32509 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
32510 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
32513 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
32515 * config/avr/avr-stdint.h: Remove trailing blanks.
32516 * config/avr/avr-log.h: Same.
32517 * config/avr/avr-arch.h: Same.
32518 * config/avr/avr-devices.c: Same.
32519 * config/avr/avr-dimode.md: Same.
32520 * config/avr/predicates.md: Same.
32521 * config/avr/avr-c.c: Same. And fix typo.
32523 * config/avr/avr-protos.h: Same. And:
32524 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
32525 (init_cumulative_args): Rename to avr_init_cumulative_args.
32526 (expand_prologue): Rename to avr_expand_prologue.
32527 (expand_epilogue): Rename to avr_expand_epilogue.
32528 (adjust_insn_length): Rename to avr_adjust_insn_length.
32529 (notice_update_cc): Rename to avr_notice_update_cc.
32530 (final_prescan_insn): Rename to avr_final_prescan_insn.
32531 * config/avr/avr.c: Same.
32532 * config/avr/avr.h: Same.
32533 * config/avr/avr.md: Remove trailing blanks.
32534 (prologue): Use avr_expand_prologue.
32535 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
32537 2013-01-14 Richard Biener <rguenther@suse.de>
32539 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
32540 verify_location, collect_subblocks): New functions.
32541 (verify_gimple_in_cfg): Verify that locations only reference
32542 BLOCKs in the functions BLOCK tree.
32544 2013-01-14 Richard Biener <rguenther@suse.de>
32546 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
32548 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
32550 (insert_out_of_ssa_copy_on_edge): Likewise.
32551 (rewrite_close_phi_out_of_ssa): Likewise.
32552 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
32554 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
32555 propagated constants.
32556 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
32559 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
32561 * config/avr/avr-modes.def: Add GPL copyright notice.
32563 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
32565 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
32566 MEMMODEL_MASK to determine memory model.
32567 (atomic_store<mode>): Ditto from operands[2].
32568 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
32570 2013-01-13 Jakub Jelinek <jakub@redhat.com>
32573 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
32574 (fold_gimple_assign): Don't call unshare_expr here.
32575 (fold_ctor_reference): Call unshare_expr.
32577 2013-01-13 Terry Guo <terry.guo@arm.com>
32579 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
32580 * doc/fragments.texi: Document MULTILIB_REUSE.
32581 * gcc.c (multilib_reuse): New internal spec.
32582 (set_multilib_dir): Also search multilib from multilib_reuse.
32583 * genmultilib (tmpmultilib3): Refactor code.
32584 (tmpmultilib4): Ditto.
32585 (multilib_reuse): New multilib argument.
32587 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
32589 * Makefile.in: Update copyright.
32591 2013-01-12 Tom de Vries <tom@codesourcery.com>
32593 PR middle-end/55890
32594 * calls.c (expand_call): Check if arg_nr is valid.
32596 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
32598 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
32599 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
32600 documentation. Add missing '__' in front of
32601 __builtin_ia32_packssdw256.
32603 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32606 * config/s390/s390.c (s390_preferred_reload_class): Do not return
32607 NO_REGS for larl operands.
32608 (s390_reload_larl_operand): Use s390_load_address instead of
32611 2013-01-11 Richard Biener <rguenther@suse.de>
32613 * tree-cfg.c (verify_node_sharing_1): Split out from ...
32614 (verify_node_sharing): ... here.
32615 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
32617 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
32619 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
32620 Substitute TREECHECKING.
32621 * configure: Regenerate.
32622 * Makefile.in (TREECHECKING): New.
32624 2013-01-11 Richard Guenther <rguenther@suse.de>
32626 PR tree-optimization/44061
32627 * tree-vrp.c (extract_range_basic): Compute zero as
32628 value-range for __builtin_constant_p of function parameters.
32630 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
32632 Update copyright years.
32634 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
32636 PR rtl-optimization/55672
32637 * lra-eliminations.c (mark_not_eliminable): Permit addition with
32638 const to be eliminable.
32640 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
32642 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
32643 * configure: Regenerate.
32645 2013-01-10 Richard Biener <rguenther@suse.de>
32647 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
32649 2013-01-10 Richard Biener <rguenther@suse.de>
32652 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
32653 locations for virtual PHI arguments.
32654 (rewrite_update_phi_arguments): Likewise.
32656 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
32658 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
32661 2013-01-10 Jakub Jelinek <jakub@redhat.com>
32663 PR tree-optimization/55921
32664 * tree-complex.c (expand_complex_asm): New function.
32665 (expand_complex_operations_1): Call it for GIMPLE_ASM.
32667 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32670 * config/s390/s390.c (s390_symref_operand_p)
32671 (s390_loadrelative_operand_p): Merge the two functions.
32672 (s390_check_qrst_address, print_operand_address): Add parameters
32673 to s390_loadrelative_operand_p invokation.
32674 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
32675 (s390_reload_larl_operand, s390_secondary_reload): Use
32676 s390_loadrelative_operand_p instead of s390_symref_operand_p.
32677 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
32679 2013-01-09 Mike Stump <mikestump@comcast.net>
32681 * dse.c (record_store): Remove unnecessary assert.
32683 2013-01-09 Jan Hubicka <jh@suse.cz>
32685 PR tree-optimization/55569
32686 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
32687 * cfgloop.h (scale_loop_profile): Likewise.
32689 2013-01-09 Jan Hubicka <jh@suse.cz>
32692 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
32694 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
32696 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
32698 PR middle-end/55114
32699 * expr.h (maybe_emit_group_store): Declare.
32700 * expr.c (maybe_emit_group_store): New function.
32701 * builtins.c (expand_builtin_int_roundingfn): Call it.
32702 (expand_builtin_int_roundingfn_2): Likewise.
32704 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
32706 PR rtl-optimization/55829
32707 * lra-constraints.c (match_reload): Add code for absent output.
32708 (curr_insn_transform): Add code for reloads of matched inputs
32711 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
32713 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
32714 attribute of movddup insn to DF.
32715 (*vec_interleave_lowv2df): Ditto.
32716 (vec_dupv2df): Ditto.
32718 2013-01-09 Jan Hubicka <jh@suse.cz>
32720 PR tree-optimiation/55875
32721 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
32722 EVERY_ITERATION parameter.
32723 (number_of_iterations_exit): Check if exit is executed every iteration.
32724 (idx_infer_loop_bounds): Similarly here.
32725 (n_of_executions_at_most): Simplify
32726 to only test for cases where statement is dominated by the
32727 particular bound; handle correctly the "postdominance" test.
32728 (scev_probably_wraps_p): Use max loop iterations info
32729 as a global bound first.
32731 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
32732 Nick Clifton <nickc@redhat.com>
32734 * config/v850/v850.md (cbranchsf4): New pattern.
32735 (cstoresf4): New pattern.
32736 (cbranchdf4): New pattern.
32737 (cstoredf4): New pattern.
32738 (movsicc): Disallow floating point comparisons.
32739 (cmpsf_le_insn): Fix order of operators.
32740 (cmpsf_lt_insn): Likewise.
32741 (cmpsf_eq_insn): Likewise.
32742 (cmpdf_le_insn): Likewise.
32743 (cmpdf_lt_insn): Likewise.
32744 (cmpdf_eq_insn): Likewise.
32745 (cmpsf_ge_insn): Use LE comparison.
32746 (cmpdf_ge_insn): Likewise.
32747 (cmpsf_gt_insn): Use LT comparison.
32748 (cmpdf_gt_insn): Likewise.
32749 (cmpsf_ne_insn): Delete pattern.
32750 (cmpdf_ne_insn): Delete pattern.
32751 * config/v850/v850.c (v850_gen_float_compare): Use
32752 gen_cmpdf_eq_insn for NE comparison.
32753 (v850_float_z_comparison_operator)
32754 (v850_float_nz_comparison_operator): Move from here ...
32755 * config/v850/predicates.md: ... to here. Move GT and GE
32756 comparisons into v850_float_z_comparison_operator.
32757 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
32759 (v850_float_nz_comparison_operator): Likewise.
32761 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32763 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
32764 with calls to gen_insvsi/gen_insvdi.
32766 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
32768 * config/i386/i386.c (initial_ix86_tune_features): Set up
32769 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
32771 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
32772 Jakub Jelinek <jakub@redhat.com>
32774 PR tree-optimization/48189
32775 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
32776 If nitercst is 0, don't predict the exit edge.
32778 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32780 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
32781 in asm_fprintf with reg_names.
32782 (aarch64_print_operand_address): Likewise.
32783 (aarch64_return_addr): Likewise.
32784 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
32786 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32788 * config/pa/pa.h (VAL_U6_BITS_P): Define.
32789 (INT_U6_BITS): Likewise.
32790 * config/pa/predicates.md (uint6_operand): New predicate.
32791 (shift5_operand, shift6_operand): Likewise.
32792 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
32794 (lshrdi3): Use shift6_operand.
32795 (shrpsi4, shrpdi4): New insn patterns.
32796 (extzv): Delete expander.
32797 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
32798 predicates in unamed zero extract patterns. Tighten common constraint.
32799 (extv): Delete expander.
32800 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
32801 predicates in unamed sign extract patterns. Tighten common constraint.
32802 (insv): Delete expander.
32803 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
32804 predicates in unamed insert patterns. Tighten common constraint.
32805 Change uint32_operand predicate to uint6_operand predicate in unamed
32806 DImode pattern to insert constant values of type 1...1xxxx.
32808 2013-01-04 Jan Hubicka <jh@suse.cz>
32810 PR tree-optimization/55823
32811 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
32814 2013-01-08 Jakub Jelinek <jakub@redhat.com>
32815 Uros Bizjak <ubizjak@gmail.com>
32817 PR rtl-optimization/55845
32818 * df-problems.c (can_move_insns_across): Stop scanning at
32819 volatile_insn_p source instruction or give up if
32820 across_from .. across_to range contains any volatile_insn_p
32823 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
32825 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
32826 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
32828 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
32829 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
32831 2013-01-08 Jakub Jelinek <jakub@redhat.com>
32834 * asan.c (asan_clear_shadow): New function.
32835 (asan_emit_stack_protection): Use it.
32837 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
32839 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
32840 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
32841 with tab instead of space.
32843 2013-01-08 Nick Clifton <nickc@redhat.com>
32845 * config/rl78/rl78.c (rl78_expand_prologue): Always select
32846 register bank 0 at the start of an interrupt handler.
32847 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
32850 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
32852 * config/aarch64/aarch64-simd.md
32853 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
32854 (aarch64_simd_bsl): Likewise.
32855 (aarch64_vcond_internal<mode>): Likewise.
32856 (vcond<mode><mode>): Likewise.
32857 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
32858 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
32860 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
32862 * config/aarch64/aarch64-builtins.c
32863 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
32865 2013-01-08 Martin Jambor <mjambor@suse.cz>
32868 * tree-sra.c (analyze_access_subtree): Return true also after
32869 potentially creating a debug-only replacement.
32871 2013-01-08 Jakub Jelinek <jakub@redhat.com>
32873 PR middle-end/55890
32874 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
32876 PR tree-optimization/54120
32877 * tree-vrp.c (range_fits_type_p): Don't allow
32878 src_precision < precision from signed vr to unsigned_p
32879 if vr->min or vr->max is negative.
32880 (simplify_float_conversion_using_ranges): Test can_float_p
32881 against CODE_FOR_nothing.
32883 2013-01-08 Jakub Jelinek <jakub@redhat.com>
32884 Richard Biener <rguenther@suse.de>
32886 PR middle-end/55851
32887 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
32888 types instead of just INTEGER_TYPE types.
32890 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
32892 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
32895 2013-01-07 Steve Ellcey <sellcey@mips.com>
32898 * config/mips/mips.opt: Change mad to mmad to match documentation.
32900 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
32903 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
32904 .progmemx.data now.
32906 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
32909 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
32910 (avr_addrspace_t): Add .section_name field.
32911 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
32913 (avr_addrspace): Same. Initialize .section_name. Remove last
32914 NULL entry. Put __memx into .progmemx.data.
32915 (progmem_section_prefix): Remove.
32916 (avr_asm_init_sections): No need to initialize progmem_section.
32917 (avr_asm_named_section): Use avr_addrspace[].section_name to get
32918 section name prefix.
32919 (avr_asm_select_section): Ditto. And use get_unnamed_section to
32920 retrieve the progmem section.
32921 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
32922 boundary to run over avr_addrspace[].
32923 (avr_register_target_pragmas): Ditto.
32925 2013-01-06 Jakub Jelinek <jakub@redhat.com>
32927 * varasm.c (output_constant_def_contents): For asan_protect_global
32928 protected strings, adjust DECL_ALIGN if needed, before testing for
32930 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
32931 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
32933 (output_object_block): For asan protected decls, emit asan padding
32934 after their contents.
32935 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
32936 (asan_finish_file): Test it here instead.
32938 2013-01-07 Nick Clifton <nickc@redhat.com>
32939 Matthias Klose <doko@debian.org>
32940 Doug Kwan <dougkwan@google.com>
32941 H.J. Lu <hongjiu.lu@intel.com>
32944 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
32946 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
32948 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
32950 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
32952 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
32954 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
32957 * doc/install.texi (Cross-Compiler-Specific Options): Document
32960 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
32962 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
32963 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
32964 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
32965 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
32966 vqmovun_high_s64): Fix source operand number and update copyright.
32968 2013-01-07 Richard Biener <rguenther@suse.de>
32970 PR middle-end/55890
32971 * gimple.h (gimple_call_builtin_p): New overload.
32972 * gimple.c (validate_call): New function.
32973 (gimple_call_builtin_p): Likewise.
32974 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
32975 Use gimple_call_builtin_p.
32976 (find_func_clobbers): Likewise.
32977 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
32978 (strlen_optimize_stmt): Likewise.
32980 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
32982 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
32983 (vld1q_dup_*): Likewise.
32984 (vld1_*): Likewise.
32985 (vld1q_*): Likewise.
32986 (vld1_lane_*): Likewise.
32987 (vld1q_lane_*): Likewise.
32989 2013-01-07 Richard Biener <rguenther@suse.de>
32991 * lto-streamer.h (LTO_minor_version): Bump to 2.
32993 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
32995 * config/aarch64/aarch64-protos.h
32996 (aarch64_const_double_zero_rtx_p): Rename to...
32997 (aarch64_float_const_zero_rtx_p): ...this.
32998 (aarch64_float_const_representable_p): New.
32999 (aarch64_output_simd_mov_immediate): Likewise.
33000 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
33001 move immediate case.
33002 * config/aarch64/aarch64.c
33003 (aarch64_const_double_zero_rtx_p): Rename to...
33004 (aarch64_float_const_zero_rtx_p): ...this.
33005 (aarch64_print_operand): Allow printing of new constants.
33006 (aarch64_valid_floating_const): New.
33007 (aarch64_legitimate_constant_p): Check for valid floating-point
33009 (aarch64_simd_valid_immediate): Likewise.
33010 (aarch64_vect_float_const_representable_p): New.
33011 (aarch64_float_const_representable_p): Likewise.
33012 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
33013 (aarch64_output_simd_mov_immediate): New.
33014 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
33015 (*movdf_aarch64): Likewise.
33016 * config/aarch64/constraints.md (Ufc): New.
33017 (Y): call aarch64_float_const_zero_rtx.
33018 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
33020 2013-01-07 Richard Biener <rguenther@suse.de>
33022 PR tree-optimization/55888
33023 PR tree-optimization/55862
33024 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
33025 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
33026 not if it is contained therein.
33028 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
33030 * config/avr/t-avr: Typo.
33032 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
33035 * config/avr/t-avr: Don't automatically rebuild
33036 $(srcdir)/config/avr/t-multilib
33037 $(srcdir)/config/avr/avr-tables.opt
33038 $(srcdir)/doc/avr-mmcu.texi
33039 (avr-mcus): New phony target to build them on request.
33040 (s-avr-mlib, s-avr-mmcu-texi): Remove.
33041 * avr/avr-mcus.def: Adjust comments.
33043 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
33045 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
33047 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
33049 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
33051 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
33053 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
33055 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
33057 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
33058 to generate profiling.
33059 * config/rs6000/aix64.h (LIB_SPEC): Same.
33061 2013-01-04 Andrew Pinski <apinski@cavium.com>
33063 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
33065 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
33067 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
33069 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
33071 (ix86_expand_move): Ditto.
33072 (ix86_zero_extend_to_Pmode): Ditto.
33073 (ix86_expand_call): Ditto.
33074 (ix86_expand_special_args_builtin): Ditto.
33075 (ix86_expand_builtin): Ditto.
33077 2013-01-04 Richard Biener <rguenther@suse.de>
33079 PR tree-optimization/55862
33080 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
33081 translating them through PHI nodes.
33083 2013-01-04 Martin Jambor <mjambor@suse.cz>
33085 PR tree-optimization/55755
33086 * tree-sra.c (sra_modify_assign): Do not check that an access has no
33087 children when trying to avoid producing a VIEW_CONVERT_EXPR.
33089 2013-01-04 Marek Polacek <polacek@redhat.com>
33091 PR middle-end/55859
33092 * opts.c (default_options_optimization): Clarify error message.
33094 2013-01-04 Richard Biener <rguenther@suse.de>
33096 PR middle-end/55863
33097 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
33100 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33103 * config/pa/pa.md (movsi): Revert previous change.
33104 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
33107 2013-01-03 Richard Henderson <rth@redhat.com>
33109 * config/i386/i386.c (ix86_expand_move): Always assign to op1
33110 after eliminating TLS symbols.
33112 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
33115 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
33116 * graphite-poly.c (debug_gmp_value): Likewise.
33118 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
33121 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
33122 selected code model, define __code_mode_small__, __code_model_medium__,
33123 __code_model_large__, __code_model_32__ or __code_model_kernel__.
33124 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
33125 xchg temporary register with %k. Declare temporary register as
33127 [__x86_64__]: For medium and large code models, preserve %rbx register.
33129 2013-01-03 Richard Biener <rguenther@suse.de>
33131 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
33132 (dump_subscript): Adjust.
33133 (finalize_ddr_dependent): Do not dump redundant info.
33134 (analyze_siv_subscript): Adjust.
33135 (subscript_dependence_tester): Likewise.
33136 (compute_affine_dependence): Likewise.
33138 2013-01-03 Richard Biener <rguenther@suse.de>
33141 2013-01-03 Richard Biener <rguenther@suse.de>
33143 PR tree-optimization/55857
33144 * tree-vect-stmts.c (vectorizable_load): Do not setup
33145 re-alignment for invariant loads.
33147 2013-01-02 Richard Biener <rguenther@suse.de>
33149 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
33150 invariant load do not generate a vector load from the scalar location.
33152 2013-01-03 Richard Biener <rguenther@suse.de>
33154 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
33155 for not vectorizing.
33156 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
33157 not build INDIRECT_REFs, call get_name once only.
33158 (vect_create_data_ref_ptr): Likewise. Dump base object kind
33159 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
33161 2013-01-03 Richard Biener <rguenther@suse.de>
33163 PR tree-optimization/55857
33164 * tree-vect-stmts.c (vectorizable_load): Do not setup
33165 re-alignment for invariant loads.
33167 2013-01-03 Richard Biener <rguenther@suse.de>
33170 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
33171 prefer a built-in decl.
33173 2013-01-03 Jakub Jelinek <jakub@redhat.com>
33175 * gcc.c (process_command): Update copyright notice dates.
33176 * gcov.c (print_version): Likewise.
33177 * gcov-dump.c (print_version): Likewise.
33179 PR rtl-optimization/55838
33180 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
33181 iv0.step, iv1.step and step.
33183 2013-01-03 Jakub Jelinek <jakub@redhat.com>
33184 Marc Glisse <marc.glisse@inria.fr>
33186 PR tree-optimization/55832
33187 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
33188 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
33189 integer_{one,zero}_node.
33191 2013-01-03 Jakub Jelinek <jakub@redhat.com>
33194 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
33195 * var-tracking.c (reverse_op): Don't add reverse ops to
33196 VALUEs that have already
33197 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
33199 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
33201 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
33203 2013-01-02 Teresa Johnson <tejohnson@google.com>
33205 * dumpfile.c (dump_loc): Print filename with location.
33206 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
33207 new location_t parameter to emit complete unroll message with
33208 new dump framework.
33209 (canonicalize_loop_induction_variables): Compute loops location
33210 and pass to try_unroll_loop_completely.
33211 * loop-unroll.c (report_unroll_peel): New function.
33212 (peel_loops_completely): Use new dump format with location
33213 for main dumpfile message, and invoke report_unroll_peel on success.
33214 (decide_unrolling_and_peeling): Ditto.
33215 (decide_peel_once_rolling): Remove old dumpfile message subsumed
33216 by report_unroll_peel.
33217 (decide_peel_completely): Ditto.
33218 (decide_unroll_constant_iterations): Ditto.
33219 (decide_unroll_runtime_iterations): Ditto.
33220 (decide_peel_simple): Ditto.
33221 (decide_unroll_stupid): Ditto.
33222 * cfgloop.c (get_loop_location): New function.
33223 * cfgloop.h (get_loop_location): Declare.
33225 2013-01-02 Sriraman Tallam <tmsriram@google.com>
33227 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
33230 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33232 PR middle-end/55198
33233 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
33234 BLKmode objects when EXPAND_MEMORY is specified.
33236 2013-01-02 Sriraman Tallam <tmsriram@google.com>
33238 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
33240 (fold_builtin_cpu): Do not share cpu model decls across statements.
33242 2013-01-02 Jason Merrill <jason@redhat.com>
33245 * tree.c (build_array_type_1): Revert earlier change.
33247 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
33249 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
33251 * config/aarch64/aarch64-tune.md: Re-generate.
33253 2013-01-02 Richard Biener <rguenther@suse.de>
33255 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
33256 invariant load do not generate a vector load from the scalar location.
33258 2013-01-02 Richard Biener <rguenther@suse.de>
33261 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
33262 * configure: Regenerate.
33264 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
33266 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
33267 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
33268 (expand_builtin_int_roundingfn_2): Keep the original target around
33269 for the fallback case.
33271 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
33273 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
33274 to be clear for sign changes.
33276 2013-01-01 Jan Hubicka <jh@suse.cz>
33278 * ipa-inline-analysis.c: Fix formatting.
33280 2013-01-01 Jakub Jelinek <jakub@redhat.com>
33282 PR tree-optimization/55831
33283 * tree-vect-loop.c (get_initial_def_for_induction): Use
33284 gsi_after_labels instead of gsi_start_bb.
33286 Copyright (C) 2013 Free Software Foundation, Inc.
33288 Copying and distribution of this file, with or without modification,
33289 are permitted in any medium without royalty provided the copyright
33290 notice and this notice are preserved.