1 2013-11-20 Richard Earnshaw <rearnsha@arm.com>
3 PR rtl-optimization/54300
4 * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
5 outputs in a single-set are killed from the value chains.
7 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
9 * cgraph.h (varpool_node): Add need_bounds_init field.
10 * lto-cgraph.c (lto_output_varpool_node): Output
11 need_bounds_init value.
12 (input_varpool_node): Read need_bounds_init value.
13 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
15 2013-11-20 Jan Hubicka <jh@suse.cz>
17 * opts.c (finish_options): Imply -ffat-lto-objects with -fno-use-linker-plugin.
18 * common.opt (fuse-linker-plugin): Add var.
20 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
22 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
23 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
24 (gen_type_die_with_usage): Skip pointer bounds.
25 (dwarf2out_global_decl): Likewise.
27 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
29 * config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes
32 2013-11-20 Yuri Rumyantsev <ysrumyan@gmail.com>
35 * config/i386/i386.c (ix86_option_override_internal): Add missed
36 argument prefix for 'ix86_fpmath'.
37 * config/i386/ssemath.h: Add missed definition of
38 TARGET_FPMATH_DEFAULT_P macros.
40 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
41 Mike Stump <mikestump@comcast.net>
42 Richard Sandiford <rdsandiford@googlemail.com>
44 * alias.c (ao_ref_from_mem): Use tree_to_shwi and tree_to_uhwi
45 instead of TREE_INT_CST_LOW, in cases where there is a protecting
46 tree_fits_shwi_p or tree_fits_uhwi_p.
47 * builtins.c (fold_builtin_powi): Likewise.
48 * config/epiphany/epiphany.c (epiphany_special_round_type_align):
50 * dbxout.c (dbxout_symbol): Likewise.
51 * expr.c (expand_expr_real_1): Likewise.
52 * fold-const.c (fold_single_bit_test, fold_plusminus_mult_expr)
53 (fold_binary_loc): Likewise.
54 * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
55 * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
56 * omp-low.c (lower_omp_for_lastprivate): Likewise.
57 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
58 * stor-layout.c (compute_record_mode): Likewise.
59 * tree-cfg.c (verify_expr): Likewise.
60 * tree-dfa.c (get_ref_base_and_extent): Likewise.
61 * tree-pretty-print.c (dump_array_domain): Likewise.
62 * tree-sra.c (build_user_friendly_ref_for_offset): Likewise.
63 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
64 * tree-ssa-loop-ivopts.c (get_loop_invariant_expr_id): Likewise.
65 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
66 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
67 * tree-ssa-reassoc.c (acceptable_pow_call): Likewise.
68 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
69 (ao_ref_init_from_vn_reference, vn_reference_fold_indirect): Likewise.
70 (vn_reference_lookup_3, simplify_binary_expression): Likewise.
71 * tree-ssa-structalias.c (bitpos_of_field): Likewise.
72 (get_constraint_for_1, push_fields_onto_fieldstack): Likewise.
73 (create_variable_info_for_1): Likewise.
74 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
75 (vect_verify_datarefs_alignment): Likewise.
76 (vect_analyze_data_ref_accesses): Likewise.
77 (vect_prune_runtime_alias_test_list): Likewise.
78 * tree-vectorizer.h (NITERS_KNOWN_P): Likewise.
80 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
82 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Avoid signed
83 overflow. Use tree_to_shwi.
85 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
87 * fold-const.c (fold_binary_loc): Use unsigned rather than signed
88 HOST_WIDE_INTs when folding (x >> c) << c.
90 2013-11-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
91 Dominik Vogt <vogt@linux.vnet.ibm.com>
93 * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
94 int comparisons with an out of range condition code.
95 (s390_optimize_nonescaping_tx): Skip empty BBs.
96 Generate the new tbegin RTX when removing the FPR clobbers (with
98 (s390_expand_tbegin): Fix the retry loop counter. Copy CC to the
99 result before doing the retry calculations.
100 (s390_init_builtins): Make tbegin "returns_twice" and tabort
102 * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
103 the TDB setting part of an tbegin.
104 ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
105 ("tx_assist"): Set unused argument to an immediate zero instead of
106 loading zero into a GPR and pass it as argument.
107 * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
108 Remove inline and related attributes.
109 (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
110 (__TM_is_illegal, __TM_is_footprint_exceeded)
111 (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value
114 2013-11-20 Richard Biener <rguenther@suse.de>
117 * lto-opts.c (lto_write_options): Write defaults only if
118 they were not explicitely specified. Also write
119 -ffp-contract default.
120 * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
122 (run_gcc): Pass through -ffp-contract.
124 2013-11-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
126 * config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.
128 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
130 * gcc/config/aarch64/aarch64-builtins.c
131 (aarch64_simd_itype): Remove.
132 (aarch64_simd_builtin_datum): Remove itype, add
134 (VAR1): Use qualifiers.
135 (aarch64_build_scalar_type): New.
136 (aarch64_build_vector_type): Likewise.
137 (aarch64_build_type): Likewise.
138 (aarch64_init_simd_builtins): Refactor, remove special cases,
139 consolidate main loop.
140 (aarch64_simd_expand_args): Likewise.
142 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
145 * doc/invoke.texi: Adding documentation about -Wfloat-conversion.
147 2013-11-19 Miro Kropacek <miro.kropacek@gmail.com>
149 * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
151 2013-11-19 David Malcolm <dmalcolm@redhat.com>
153 * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
154 to "vec<>" instances.
155 (build_pretty_printer): Register the vec<>* prettyprinter.
157 2013-11-19 David Malcolm <dmalcolm@redhat.com>
159 * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
160 (GdbSubprinter.handles_type): New.
161 (GdbSubprinterTypeList): New subclass of GdbSubprinter.
162 (GdbSubprinterRegex): New subclass of GdbSubprinter.
163 (GdbPrettyPrinters.add_printer): Remove in favor of...
164 (GdbPrettyPrinters.add_printer_for_types): ...this new method and...
165 (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
166 (GdbPrettyPrinters.__call__): Update search for subprinter
167 to use handles_type method.
168 (build_pretty_printer): Update registration of subprinters to
169 use the new API above, supporting multiple spelling of each type,
170 and allowing for future regex-based subprinters.
172 2013-11-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
174 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
175 V16QI vector splat case for little endian.
177 2013-11-19 Jeff Law <law@redhat.com>
179 * tree-ssa-threadedge.c (thread_across_edge): After threading
180 through a joiner, allow threading a normal block requiring duplication.
182 * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
183 jump threading requests that would muck up the loop structures.
185 * tree-ssa-threadupdate.c: Fix trailing whitespace.
186 * tree-ssa-threadupdate.h: Likewise.
188 2013-11-19 Mike Stump <mikestump@comcast.net>
190 * gdbinit.in: Add pmz to print out mpz values.
192 2013-11-20 Jan Hubicka <jh@suse.cz>
194 * common.opt (ffat-lto-objects): Disable by default.
195 * doc/invoke.texi (fat-lto-objects): Update documentation.
196 * opts.c: Enable fat-lto-objects on lto plugin disable setups.
198 2013-11-19 Martin Jambor <mjambor@suse.cz>
200 PR rtl-optimization/59099
201 * ira.c (find_moveable_pseudos): Put back various analyses from ira()
203 (ira): Move init_reg_equiv and call to
204 split_live_ranges_for_shrink_wrap up, remove analyses around call
205 to find_moveable_pseudos.
207 2013-11-20 Alan Modra <amodra@gmail.com>
209 * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
210 * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
211 to strict alignment on older processors when little-endian.
212 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
215 2013-11-19 Teresa Johnson <tejohnson@google.com>
217 * common/config/i386/i386-common.c: Enable
218 -freorder-blocks-and-partition at -O2 and up for x86.
219 * doc/invoke.texi: Update -freorder-blocks-and-partition default.
220 * opts.c (finish_options): Only warn if
221 -freorder-blocks-and-partition was set on command line.
223 2013-11-19 Sriraman Tallam <tmsriram@google.com>
225 * final.c (final_scan_insn): Emit a label for the split
226 cold function part. Label name is formed by suffixing
227 the original function name with "cold".
229 2013-11-19 David Malcolm <dmalcolm@redhat.com>
231 * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
232 (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
233 (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
234 (EXIT_BLOCK_PTR_FOR_FN): ...this.
235 (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
237 (EXIT_BLOCK_PTR): Likewise.
238 (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
239 (FOR_ALL_BB_FN): Update for renaming of
240 "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
242 * cfg.c (init_flow): Likewise.
243 (check_bb_profile): Likewise.
244 * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
245 * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
246 * cfghooks.c (account_profile_record): Likewise.
247 * cfgloop.c (init_loops_structure): Likewise.
248 * cgraphbuild.c (record_eh_tables): Likewise.
249 (compute_call_stmt_bb_frequency): Likewise.
250 * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
251 * lto-streamer-in.c (input_cfg): Likewise.
252 * predict.c (maybe_hot_frequency_p): Likewise.
253 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
254 * tree-inline.c (initialize_cfun): Likewise.
255 (copy_cfg_body): Likewise.
256 (copy_body): Likewise.
257 (tree_function_versioning): Likewise.
259 * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
260 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
261 (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
262 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
263 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
264 (connect_traces): Likewise.
265 (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
266 (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
267 (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
269 (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
271 (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
272 (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
273 (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
274 (rotate_loop): Likewise.
275 * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
276 * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
278 (alloc_aux_for_edges): Likewise.
279 (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
280 (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
282 (compact_blocks): Likewise.
283 (clear_edges): Likewise.
284 * cfganal.c (single_pred_before_succ_order): Remove usage of
285 ENTRY_BLOCK_PTR macro.
286 (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
287 (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
288 (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
289 (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
290 (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
292 (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR macro.
293 (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
295 (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR macro.
296 (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
297 (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
298 (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
299 (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
300 (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
302 (print_edge_list): Likewise.
303 (create_edge_list): Likewise.
304 (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
305 (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
307 * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
309 (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
310 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
311 * cfgcleanup.c (delete_unreachable_blocks): Likewise.
312 (try_optimize_cfg): Likewise.
313 (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
314 (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
315 (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
316 (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
317 (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
318 (try_forward_edges): Likewise.
319 (try_simplify_condjump): Likewise.
320 * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
321 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
322 (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
323 (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
325 (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
326 (expand_gimple_tailcall): Likewise.
327 * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
328 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
329 (tidy_fallthru_edges): Likewise.
330 (verify_flow_info): Likewise.
331 * cfgloop.c (flow_bb_inside_loop_p): Likewise.
332 (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
333 (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR macro.
334 (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
335 (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
336 (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
337 (get_loop_body_in_dom_order): Likewise.
338 (get_loop_body): Likewise.
339 * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
340 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
341 * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
343 (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
344 (fix_bb_placement): Likewise.
345 * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
346 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
347 (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
348 (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
350 (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
351 (cfg_layout_can_merge_blocks_p): Remove uses of macros:
352 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
353 (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
355 (fixup_fallthru_exit_predecessor): Remove uses of macros:
356 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
357 (fixup_reorder_chain): Likewise.
358 (relink_block_chain): Likewise.
359 (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
360 (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
361 (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
362 (force_one_exit_fallthru): Likewise.
363 (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
365 (rtl_verify_edges): Likewise.
366 (commit_edge_insertions): Likewise.
367 (commit_one_edge_insertion): Likewise.
368 (rtl_split_edge): Likewise.
369 (force_nonfallthru_and_redirect): Likewise.
370 (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
371 (skip_insns_after_block): Likewise.
372 (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
374 (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
375 (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
377 (contains_no_active_insn_p): Likewise.
378 (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
379 (entry_of_function): Likewise.
380 (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
381 (fixup_new_cold_bb): Likewise.
382 (patch_jump_insn): Likewise.
383 (try_redirect_by_replacing_jump): Likewise.
384 (block_label): Likewise.
385 (could_fall_through): Likewise.
386 (can_fallthru): Likewise.
387 * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
388 ENTRY_BLOCK_PTR macro.
389 (rebuild_cgraph_edges): Likewise.
390 * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
391 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
392 (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
393 * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
394 (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
395 (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
396 (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
397 (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
399 (reg_nonzero_bits_for_combine): Likewise.
400 (set_nonzero_bits_and_sign_copies): Likewise.
401 (combine_instructions): Likewise.
402 * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
404 (bypass_conditional_jumps): Likewise.
405 (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
406 (find_implicit_sets): Likewise.
407 (cprop_jump): Likewise.
408 * cse.c (cse_cc_succs): Likewise.
409 (cse_find_path): Likewise.
410 * df-problems.c (df_lr_confluence_0): Likewise.
411 * df-scan.c (df_entry_block_defs_collect): Remove usage of
412 ENTRY_BLOCK_PTR macro.
413 (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
414 * dominance.c (iterate_fix_dominators): Remove usage of
415 ENTRY_BLOCK_PTR macro.
416 (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
417 (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR macro.
418 (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
420 (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
422 (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
424 * domwalk.c (cmp_bb_postorder): Likewise.
425 * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
426 * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
428 (sjlj_emit_function_enter): Likewise.
429 * final.c (compute_alignments): Likewise.
430 * function.c (thread_prologue_and_epilogue_insns): Remove uses of
431 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
432 (reposition_prologue_and_epilogue_notes): Remove usage of
433 EXIT_BLOCK_PTR macro.
434 (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
436 (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
437 (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
438 * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
439 (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
440 (compute_code_hoist_vbeinout): Likewise.
441 (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
442 (pre_expr_reaches_here_p_work): Likewise.
443 * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
444 (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
446 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
447 ENTRY_BLOCK_PTR macro.
448 * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
450 * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
451 ENTRY_BLOCK_PTR macro.
452 * graphite-scop-detection.c (build_scops): Likewise.
453 (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
454 (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
455 * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
457 (unlink_bb_notes): Likewise.
458 (create_check_block_twin): Likewise.
459 (init_before_recovery): Likewise.
460 (sched_extend_bb): Likewise.
461 (priority): Likewise.
462 * hw-doloop.c (reorder_loops): Likewise.
463 (discover_loop): Likewise.
464 * ifcvt.c (dead_or_predicable): Remove uses of macros:
465 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
466 (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
467 (block_has_only_trap): Likewise.
468 (cond_exec_find_if_block): Likewise.
469 (merge_if_block): Likewise.
470 * ipa-inline-analysis.c (param_change_prob): Remove usage of
471 ENTRY_BLOCK_PTR macro.
472 (record_modified): Likewise.
473 * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
474 EXIT_BLOCK_PTR macro.
475 (local_pure_const): Likewise.
476 * ipa-split.c (split_function): Remove uses of macros:
477 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
478 (find_split_points): Likewise.
479 (consider_split): Likewise.
480 (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
481 (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
482 * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
483 * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR macro.
484 * ira-emit.c (entered_from_non_parent_p): Remove usage of
485 ENTRY_BLOCK_PTR macro.
486 (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
487 * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
488 * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
489 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
490 * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
492 (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
494 (compute_farthest): Likewise.
495 (compute_available): Likewise.
496 (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
497 (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
499 (compute_earliest): Likewise.
500 (compute_antinout_edge): Likewise.
501 * loop-iv.c (simplify_using_initial_values): Remove usage of
502 ENTRY_BLOCK_PTR macro.
503 * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
505 * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
507 * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
509 * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
510 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
511 * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
513 * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
515 * lto-streamer-out.c (output_cfg): Likewise.
516 * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
518 (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
519 * mode-switching.c (optimize_mode_switching): Likewise.
520 (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
521 * modulo-sched.c (rest_of_handle_sms): Likewise.
522 (canon_loop): Likewise.
523 * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR macro.
524 * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
525 of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
526 * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
528 (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
529 (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
530 (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
531 (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
532 (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
533 (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
534 (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
535 (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
536 (gimple_predict_edge): Likewise.
537 (probably_never_executed): Likewise.
538 * profile.c (find_spanning_tree): Remove uses of macros:
539 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
540 (branch_prob): Likewise.
541 (compute_branch_probabilities): Likewise.
542 (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
543 (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
544 (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
545 (set_bb_counts): Likewise.
546 (correct_negative_edge_counts): Likewise.
547 (get_exec_counts): Likewise.
548 (instrument_values): Likewise.
549 (instrument_edges): Likewise.
550 * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
552 (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
553 (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
554 (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
555 (reg_to_stack): Likewise.
556 * regs.h (REG_N_SETS): Likewise.
557 * reload.c (find_dummy_reload): Likewise.
558 (combine_reloads): Likewise.
559 (push_reload): Likewise.
560 * reload1.c (has_nonexceptional_receiver): Remove usage of
561 EXIT_BLOCK_PTR macro.
562 * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
564 (find_basic_block): Likewise.
565 * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
566 (schedule_ebbs): Likewise.
567 * sched-int.h (sel_sched_p): Likewise.
568 * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
570 (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
571 (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
573 (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
574 (extend_rgns): Likewise.
575 (find_single_block_region): Likewise.
576 * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
577 ENTRY_BLOCK_PTR macro.
578 (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
579 (sel_create_recovery_block): Likewise.
580 (bb_ends_ebb_p): Likewise.
581 (sel_bb_end): Likewise.
582 (sel_bb_head): Likewise.
583 (free_lv_sets): Likewise.
584 (init_lv_sets): Likewise.
585 (tidy_control_flow): Likewise.
586 (maybe_tidy_empty_bb): Likewise.
587 * sel-sched-ir.h (_succ_iter_cond): Likewise.
588 (_succ_iter_start): Likewise.
589 (sel_bb_empty_or_nop_p): Likewise.
590 (get_loop_exit_edges_unique_dests): Likewise.
591 (inner_loop_header_p): Likewise.
592 * sel-sched.c (create_block_for_bookkeeping): Likewise.
593 (find_block_for_bookkeeping): Likewise.
594 * store-motion.c (remove_reachable_equiv_notes): Likewise.
595 (insert_store): Likewise.
596 * trans-mem.c (ipa_tm_transform_clone): Remove usage of
597 ENTRY_BLOCK_PTR macro.
598 (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
599 (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
600 (gate_tm_init): Likewise.
601 (tm_region_init): Likewise.
602 * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
603 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
604 (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
605 (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
607 (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
608 (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
610 (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
612 (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
614 (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
616 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
617 (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
618 (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
619 (build_gimple_cfg): Likewise.
620 (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
621 (gimple_can_merge_blocks_p): Likewise.
622 * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
623 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
624 * tree-complex.c (update_parameter_components): Remove usage of
625 ENTRY_BLOCK_PTR macro.
626 * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
627 EXIT_BLOCK_PTR macro.
628 * tree-inline.c (tree_function_versioning): Remove uses of macros:
629 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
630 (delete_unreachable_blocks_update_callgraph): Likewise.
631 (initialize_cfun): Likewise.
632 (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
633 (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
634 (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
635 * tree-into-ssa.c (update_ssa): Likewise.
636 (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
637 (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
638 (rewrite_into_ssa): Likewise.
639 (rewrite_debug_stmt_uses): Likewise.
640 * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
641 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
642 * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
643 ENTRY_BLOCK_PTR macro.
644 * tree-scalar-evolution.h (block_before_loop): Likewise.
645 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
646 (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
648 (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
650 (propagate_dereference_distances): Remove uses of macros:
651 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
652 (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
654 * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
655 (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
656 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
657 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
658 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
659 (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
660 (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
661 (mark_control_dependent_edges_necessary): Remove uses of macros:
662 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
663 * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
664 ENTRY_BLOCK_PTR macro.
665 (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
666 * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
667 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
668 (calculate_live_on_exit): Likewise.
669 (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
670 (loe_visit_block): Likewise.
671 * tree-ssa-live.h (live_on_exit): Remove uses of macros:
672 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
673 (live_on_entry): Likewise.
674 * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
675 EXIT_BLOCK_PTR macro.
676 * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
677 ENTRY_BLOCK_PTR macro.
678 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
679 (bound_difference): Likewise.
680 * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
681 of EXIT_BLOCK_PTR macro.
682 * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
683 of ENTRY_BLOCK_PTR macro.
684 * tree-ssa-math-opts.c (register_division_in): Likewise.
685 * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
686 * tree-ssa-pre.c (compute_avail): Likewise.
687 (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
688 (insert): Remove usage of ENTRY_BLOCK_PTR macro.
689 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
690 (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
691 (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
693 (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
694 * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
695 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
696 (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
697 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
698 (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
699 * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
700 (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
701 (find_pdom): Likewise.
702 (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
703 * tree-stdarg.c (reachable_at_most_once): Likewise.
704 * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
705 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
706 (eliminate_tail_call): Likewise.
707 * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
709 (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
710 * var-tracking.c (vt_initialize): Remove uses of macros:
711 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
712 (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
713 (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
714 (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
716 * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
718 * config/bfin/bfin.c (hwloop_optimize): Likewise.
719 * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
720 of EXIT_BLOCK_PTR macro.
721 * config/arm/arm.c (require_pic_register): Remove usage of
722 ENTRY_BLOCK_PTR macro.
723 (arm_r3_live_at_start_p): Likewise.
724 (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
725 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
726 * config/frv/frv.c (frv_optimize_membar_global): Likewise.
727 * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
728 ENTRY_BLOCK_PTR macro.
729 * config/i386/i386.c (ix86_count_insn): Likewise.
730 (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
731 (ix86_pad_short_function): Likewise.
732 (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
733 (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
734 (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
735 (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
736 (ix86_expand_epilogue): Likewise.
737 * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
738 (ia64_expand_prologue): Likewise.
740 2013-11-19 Catherine Moore <clm@codesourcery.com>
742 * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
743 * config/mips/mips.opt (mfix-rm7000): New option.
744 * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
745 * config/mips/mips.c (mips_reorg_process_insns): Disable
746 noreorder for TARGET_FIX_RM7000.
748 2013-11-19 Oleg Endo <olegendo@gcc.gnu.org>
750 * config/sh/sh-c.c: Fix typo in include of file attribs.h.
752 2013-11-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
754 * config/arm/arm.c (arm_new_rtx_costs):
755 Handle narrow mode add-shifts properly.
756 * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
757 * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
760 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
762 * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
764 2013-11-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
766 * config/rs6000/vector.md ("mov<mode>"): Do not call
767 rs6000_emit_le_vsx_move to move into or out of GPRs.
768 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
769 source and destination are not GPR hard regs.
771 2013-11-19 David Malcolm <dmalcolm@redhat.com>
773 * basic-block.h (n_edges_for_function): Rename macro to...
774 (n_edges_for_fn): ...this.
775 (n_edges): Eliminate macro as work towards making uses of
778 * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
781 * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
782 (clear_edges): Likewise.
783 (free_edge): Likewise.
784 * cfghooks.c (dump_flow_info): Likewise.
785 * cprop.c (is_too_expensive): Likewise.
786 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
787 * gcse.c (is_too_expensive): Likewise.
788 (prune_insertions_deletions): Likewise.
789 * mcf.c (create_fixup_graph): Likewise.
790 * sched-rgn.c (haifa_find_rgns): Likewise.
791 * tree-cfg.c (gimple_dump_cfg): Likewise.
792 * var-tracking.c (variable_tracking_main_1): Likewise.
794 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
796 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
799 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
801 * config/aarch64/aarch64.md
802 (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw): Adjust whitespace.
804 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
806 * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
808 2013-11-19 Joseph Myers <joseph@codesourcery.com>
810 * varasm.c (align_variable): Give error instead of warning for
811 unsupported alignment.
812 (assemble_noswitch_variable): Likewise.
814 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
816 * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
819 2013-11-19 Peter Bergner <bergner@vnet.ibm.com>
821 * loop-doloop.c (doloop_optimize_loops): Remove unused
822 loop iterator argument from FOR_EACH_LOOP.
824 2013-11-19 David Malcolm <dmalcolm@redhat.com>
826 Convert gimple types from a union to C++ inheritance.
827 * Makefile.in (GIMPLE_H): Add dep on is-a.h.
828 * coretypes.h (union gimple_statement_d): Remove declaration.
829 (gimple): Convert from being a "union gimple_statement_d *"
830 to a "struct gimple_statement_base *".
831 (const_gimple): Likewise (with "const").
832 * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace with...
833 (ggc_alloc_cleared_gimple_statement_stat): ...this.
834 * gimple-pretty-print.c (debug): Change parameter from a
835 "gimple_statement_d &" to a "gimple_statement_base &".
836 (debug): Change parameter from a "gimple_statement_d *" to
837 a "gimple_statement_base *".
838 * gimple-pretty-print.h (debug): Update declarations as above.
839 * gimple.c (gimple_alloc_stat): Update for renaming of
840 ggc_alloc_cleared_gimple_statement_d_stat to
841 ggc_alloc_cleared_gimple_statement_stat.
842 * gimple.h: Include "is-a.h" for use by is_a_helper
843 specializations in followup autogenerated patch.
844 (struct gimple statement_base): Make this type usable as a base
845 class by adding "desc", "tag" and "variable_size" to GTY, thus
846 using opting-in to gengtype's support for simple inheritance.
847 (gimple_statement_with_ops_base): Convert to a subclass of
848 gimple_statement_base, dropping initial "gsbase" field. Note that
849 this type is abstract, with no GSS_ value, and thus no GTY tag value.
850 (gimple_statement_with_ops): Convert to a subclass of
851 gimple_statement_with_ops_base, dropping initial "opbase" field.
852 Add tag value to GTY marking. Update marking of op field to
853 reflect how num_ops field is accessed via inheritance.
854 (gimple_statement_with_memory_ops_base): Convert to a subclass of
855 gimple_statement_with_ops_base, dropping initial "opbase" field.
856 Add tag value to GTY marking.
857 (gimple_statement_with_memory_ops): Convert to a subclass of
858 public gimple_statement_with_memory_ops_base, dropping initial
859 "membase" field. Add tag value to GTY marking. Update marking
860 of op field to reflect how num_ops field is accessed via inheritance.
861 (gimple_statement_call): Analogous changes that also update the
862 marking of the "u" union.
863 (gimple_statement_omp): Convert to a subclass of
864 gimple_statement_base, dropping initial "gsbase" field, adding
865 tag value to GTY marking.
866 (gimple_statement_bind): Likewise.
867 (gimple_statement_catch): Likewise.
868 (gimple_statement_eh_filter): Likewise.
869 (gimple_statement_eh_else): Likewise.
870 (gimple_statement_eh_mnt): Likewise.
871 (gimple_statement_phi): Likewise.
872 (gimple_statement_eh_ctrl): Likewise.
873 (gimple_statement_try): Likewise.
874 (gimple_statement_wce): Likewise.
875 (gimple_statement_asm): Convert to a subclass of
876 gimple_statement_with_memory_ops_base, dropping initial
877 "membase" field, adding tag value to GTY marking, and updating
879 (gimple_statement_omp_critical): Convert to a subclass of
880 gimple_statement_omp, dropping initial "omp" field, adding tag
881 value to GTY marking.
882 (gimple_statement_omp_for): Likewise.
883 (gimple_statement_omp_parallel): Likewise.
884 (gimple_statement_omp_task): Convert to a subclass of
885 gimple_statement_omp_parallel, dropping initial "par" field,
886 adding tag value to GTY marking.
887 (gimple_statement_omp_sections): Convert to a subclass of
888 gimple_statement_omp, dropping initial "omp" field, adding
889 tag value to GTY marking.
890 (gimple_statement_omp_continue): Convert to a subclass of
891 gimple_statement_base, dropping initial "gsbase" field, adding
892 tag value to GTY marking.
893 (gimple_statement_omp_single): Convert to a subclass of
894 gimple_statement_omp, dropping initial "omp" field, adding
895 tag value to GTY marking.
896 (gimple_statement_omp_atomic_load): Convert to a subclass of
897 gimple_statement_base, dropping initial "gsbase" field, adding
898 tag value to GTY marking.
899 (gimple_statement_omp_atomic_store): Convert to a subclass of
900 gimple_statement_base, dropping initial "gsbase" field, adding
901 tag value to GTY marking.
902 (gimple_statement_transaction): Convert to a subclass of
903 gimple_statement_with_memory_ops_base, dropping initial "gsbase"
904 field, adding tag value to GTY marking.
905 (union gimple_statement_d): Remove.
906 * system.h (CONST_CAST_GIMPLE): Update to use
907 "struct gimple_statement_base *" rather than
908 "union gimple_statement_d *".
909 * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
910 gimple_statement_d to gimple_statement_base.
912 * gimple.h (gimple_use_ops): Port from union to usage of dyn_cast.
913 (gimple_set_use_ops): Port from union to usage of as_a.
914 (gimple_set_vuse): Likewise.
915 (gimple_set_vdef): Likewise.
916 (gimple_call_internal_fn): Port from union to a static_cast,
917 given that the type has already been asserted.
918 (gimple_omp_body_ptr): Port from unchecked union usage to
920 (gimple_omp_set_body): Likewise.
922 * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
923 gimple types to a true class hierarchy.
924 (update_call_edge_frequencies): Likewise.
925 (gsi_insert_seq_nodes_before): Likewise.
926 (gsi_insert_seq_nodes_after): Likewise.
927 (gsi_split_seq_after): Likewise.
928 (gsi_set_stmt): Likewise.
929 (gsi_split_seq_before): Likewise.
930 (gsi_remove): Likewise.
931 * gimple-iterator.h (gsi_one_before_end_p): Likewise.
932 (gsi_next): Likewise.
933 (gsi_prev): Likewise.
934 * gimple-pretty-print.c (dump_gimple_debug): Likewise.
935 * gimple-ssa.h (gimple_vuse_op): Likewise.
936 (gimple_vdef_op): Likewise.
937 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
938 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
939 * gimple.c (gimple_set_code): Likewise.
940 (gimple_alloc_stat): Likewise.
941 (gimple_set_subcode): Likewise.
942 (gimple_build_call_internal_1): Likewise.
943 (gimple_check_failed): Likewise.
944 (gimple_call_flags): Likewise.
945 (gimple_set_bb): Likewise.
946 * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
947 (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
948 (is_a_helper <gimple_statement_call> (gimple)): Likewise.
949 (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
950 (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
951 (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
952 (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
953 (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
954 (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
955 (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
956 (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
957 (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
958 (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
959 (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
960 (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
961 (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
962 (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
963 (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
964 (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
965 (is_a_helper <gimple_statement_try> (gimple)): Likewise.
966 (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
967 (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
968 (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
969 (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
970 (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
971 (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
973 (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
975 (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
977 (is_a_helper <const gimple_statement_omp_atomic_store>
978 (const_gimple)): Likewise.
979 (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
981 (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
983 (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
985 (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
987 (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
989 (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
991 (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
993 (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
994 (is_a_helper <const gimple_statement_transaction> (const_gimple)):
996 (gimple_seq_last): Update for conversion of gimple types to a true
998 (gimple_seq_set_last): Likewise.
999 (gimple_code): Likewise.
1000 (gimple_bb): Likewise.
1001 (gimple_block): Likewise.
1002 (gimple_set_block): Likewise.
1003 (gimple_location): Likewise.
1004 (gimple_location_ptr): Likewise.
1005 (gimple_set_location): Likewise.
1006 (gimple_no_warning_p): Likewise.
1007 (gimple_set_no_warning): Likewise.
1008 (gimple_set_visited): Likewise.
1009 (gimple_visited_p): Likewise.
1010 (gimple_set_plf): Likewise.
1011 (gimple_plf): Likewise.
1012 (gimple_set_uid): Likewise.
1013 (gimple_uid): Likewise.
1014 (gimple_init_singleton): Likewise.
1015 (gimple_modified_p): Likewise.
1016 (gimple_set_modified): Likewise.
1017 (gimple_expr_code): Likewise.
1018 (gimple_has_volatile_ops): Likewise.
1019 (gimple_set_has_volatile_ops): Likewise.
1020 (gimple_omp_subcode): Likewise.
1021 (gimple_omp_set_subcode): Likewise.
1022 (gimple_omp_return_set_nowait): Likewise.
1023 (gimple_omp_section_set_last): Likewise.
1024 (gimple_omp_parallel_set_combined_p): Likewise.
1025 (gimple_omp_atomic_set_need_value): Likewise.
1026 (gimple_omp_atomic_set_seq_cst): Likewise.
1027 (gimple_num_ops): Likewise.
1028 (gimple_set_num_ops): Likewise.
1029 (gimple_assign_nontemporal_move_p): Likewise.
1030 (gimple_assign_set_nontemporal_move): Likewise.
1031 (gimple_assign_rhs_code): Likewise.
1032 (gimple_assign_set_rhs_code): Likewise.
1033 (gimple_call_internal_p): Likewise.
1034 (gimple_call_with_bounds_p): Likewise.
1035 (gimple_call_set_with_bounds): Likewise.
1036 (gimple_call_set_tail): Likewise.
1037 (gimple_call_tail_p): Likewise.
1038 (gimple_call_set_return_slot_opt): Likewise.
1039 (gimple_call_return_slot_opt_p): Likewise.
1040 (gimple_call_set_from_thunk): Likewise.
1041 (gimple_call_from_thunk_p): Likewise.
1042 (gimple_call_set_va_arg_pack): Likewise.
1043 (gimple_call_va_arg_pack_p): Likewise.
1044 (gimple_call_set_nothrow): Likewise.
1045 (gimple_call_set_alloca_for_var): Likewise.
1046 (gimple_call_alloca_for_var_p): Likewise.
1047 (gimple_call_copy_flags): Likewise.
1048 (gimple_cond_code): Likewise.
1049 (gimple_cond_set_code): Likewise.
1050 (gimple_cond_make_false): Likewise.
1051 (gimple_cond_make_true): Likewise.
1052 (gimple_asm_volatile_p): Likewise.
1053 (gimple_asm_set_volatile): Likewise.
1054 (gimple_asm_set_input): Likewise.
1055 (gimple_asm_input_p): Likewise.
1056 (gimple_try_kind): Likewise.
1057 (gimple_try_set_kind): Likewise.
1058 (gimple_try_catch_is_cleanup): Likewise.
1059 (gimple_try_set_catch_is_cleanup): Likewise.
1060 (gimple_wce_cleanup_eh_only): Likewise.
1061 (gimple_wce_set_cleanup_eh_only): Likewise.
1062 (gimple_debug_bind_p): Likewise.
1063 (gimple_debug_source_bind_p): Likewise.
1064 (gimple_omp_for_set_kind): Likewise.
1065 (gimple_omp_for_set_combined_p): Likewise.
1066 (gimple_omp_for_set_combined_into_p): Likewise.
1067 (gimple_omp_target_set_kind): Likewise.
1068 (gimple_transaction_subcode): Likewise.
1069 (gimple_transaction_set_subcode): Likewise.
1070 (gimple_predict_predictor): Likewise.
1071 (gimple_predict_set_predictor): Likewise.
1072 (gimple_predict_outcome): Likewise.
1073 (gimple_predict_set_outcome): Likewise.
1074 (gimple_transaction_set_label): Likewise.
1075 (gimple_transaction_set_body): Likewise.
1076 (gimple_transaction_label_ptr): Likewise.
1077 (gimple_transaction_label): Likewise.
1078 (gimple_transaction_body_ptr): Likewise.
1079 (gimple_omp_continue_set_control_use): Likewise.
1080 (gimple_omp_continue_control_use_ptr): Likewise.
1081 (gimple_omp_continue_control_use): Likewise.
1082 (gimple_omp_continue_set_control_def): Likewise.
1083 (gimple_omp_continue_control_def_ptr): Likewise.
1084 (gimple_omp_continue_control_def): Likewise.
1085 (gimple_omp_atomic_load_rhs_ptr): Likewise.
1086 (gimple_omp_atomic_load_rhs): Likewise.
1087 (gimple_omp_atomic_load_set_rhs): Likewise.
1088 (gimple_omp_atomic_load_lhs_ptr): Likewise.
1089 (gimple_omp_atomic_load_lhs): Likewise.
1090 (gimple_omp_atomic_load_set_lhs): Likewise.
1091 (gimple_omp_atomic_store_val_ptr): Likewise.
1092 (gimple_omp_atomic_store_val): Likewise.
1093 (gimple_omp_atomic_store_set_val): Likewise.
1094 (gimple_omp_for_cond): Likewise.
1095 (gimple_omp_for_set_cond): Likewise.
1096 (gimple_omp_sections_set_control): Likewise.
1097 (gimple_omp_sections_control_ptr): Likewise.
1098 (gimple_omp_sections_control): Likewise.
1099 (gimple_omp_sections_set_clauses): Likewise.
1100 (gimple_omp_sections_clauses_ptr): Likewise.
1101 (gimple_omp_sections_clauses): Likewise.
1102 (gimple_omp_teams_set_clauses): Likewise.
1103 (gimple_omp_teams_clauses_ptr): Likewise.
1104 (gimple_omp_teams_clauses): Likewise.
1105 (gimple_omp_target_set_data_arg): Likewise.
1106 (gimple_omp_target_data_arg_ptr): Likewise.
1107 (gimple_omp_target_data_arg): Likewise.
1108 (gimple_omp_target_set_child_fn): Likewise.
1109 (gimple_omp_target_child_fn_ptr): Likewise.
1110 (gimple_omp_target_child_fn): Likewise.
1111 (gimple_omp_target_set_clauses): Likewise.
1112 (gimple_omp_target_clauses_ptr): Likewise.
1113 (gimple_omp_target_clauses): Likewise.
1114 (gimple_omp_single_set_clauses): Likewise.
1115 (gimple_omp_single_clauses_ptr): Likewise.
1116 (gimple_omp_single_clauses): Likewise.
1117 (gimple_omp_task_set_arg_align): Likewise.
1118 (gimple_omp_task_arg_align_ptr): Likewise.
1119 (gimple_omp_task_arg_align): Likewise.
1120 (gimple_omp_task_set_arg_size): Likewise.
1121 (gimple_omp_task_arg_size_ptr): Likewise.
1122 (gimple_omp_task_arg_size): Likewise.
1123 (gimple_omp_task_set_copy_fn): Likewise.
1124 (gimple_omp_task_copy_fn_ptr): Likewise.
1125 (gimple_omp_task_copy_fn): Likewise.
1126 (gimple_omp_task_set_data_arg): Likewise.
1127 (gimple_omp_task_data_arg_ptr): Likewise.
1128 (gimple_omp_task_data_arg): Likewise.
1129 (gimple_omp_task_set_child_fn): Likewise.
1130 (gimple_omp_task_child_fn_ptr): Likewise.
1131 (gimple_omp_task_child_fn): Likewise.
1132 (gimple_omp_task_set_clauses): Likewise.
1133 (gimple_omp_task_clauses_ptr): Likewise.
1134 (gimple_omp_task_clauses): Likewise.
1135 (gimple_omp_parallel_set_data_arg): Likewise.
1136 (gimple_omp_parallel_data_arg_ptr): Likewise.
1137 (gimple_omp_parallel_data_arg): Likewise.
1138 (gimple_omp_parallel_set_child_fn): Likewise.
1139 (gimple_omp_parallel_child_fn_ptr): Likewise.
1140 (gimple_omp_parallel_child_fn): Likewise.
1141 (gimple_omp_parallel_set_clauses): Likewise.
1142 (gimple_omp_parallel_clauses_ptr): Likewise.
1143 (gimple_omp_parallel_clauses): Likewise.
1144 (gimple_omp_for_set_pre_body): Likewise.
1145 (gimple_omp_for_pre_body_ptr): Likewise.
1146 (gimple_omp_for_set_incr): Likewise.
1147 (gimple_omp_for_incr_ptr): Likewise.
1148 (gimple_omp_for_incr): Likewise.
1149 (gimple_omp_for_set_final): Likewise.
1150 (gimple_omp_for_final_ptr): Likewise.
1151 (gimple_omp_for_final): Likewise.
1152 (gimple_omp_for_set_initial): Likewise.
1153 (gimple_omp_for_initial_ptr): Likewise.
1154 (gimple_omp_for_initial): Likewise.
1155 (gimple_omp_for_set_index): Likewise.
1156 (gimple_omp_for_index_ptr): Likewise.
1157 (gimple_omp_for_index): Likewise.
1158 (gimple_omp_for_collapse): Likewise.
1159 (gimple_omp_for_set_clauses): Likewise.
1160 (gimple_omp_for_clauses_ptr): Likewise.
1161 (gimple_omp_for_clauses): Likewise.
1162 (gimple_omp_critical_set_name): Likewise.
1163 (gimple_omp_critical_name_ptr): Likewise.
1164 (gimple_omp_critical_name): Likewise.
1165 (gimple_eh_dispatch_set_region): Likewise.
1166 (gimple_eh_dispatch_region): Likewise.
1167 (gimple_resx_set_region): Likewise.
1168 (gimple_resx_region): Likewise.
1169 (gimple_phi_set_arg): Likewise.
1170 (gimple_phi_arg): Likewise.
1171 (gimple_phi_set_result): Likewise.
1172 (gimple_phi_result_ptr): Likewise.
1173 (gimple_phi_result): Likewise.
1174 (gimple_phi_num_args): Likewise.
1175 (gimple_phi_capacity): Likewise.
1176 (gimple_wce_set_cleanup): Likewise.
1177 (gimple_wce_cleanup_ptr): Likewise.
1178 (gimple_try_set_cleanup): Likewise.
1179 (gimple_try_set_eval): Likewise.
1180 (gimple_try_cleanup_ptr): Likewise.
1181 (gimple_try_eval_ptr): Likewise.
1182 (gimple_eh_else_set_e_body): Likewise.
1183 (gimple_eh_else_set_n_body): Likewise.
1184 (gimple_eh_else_e_body_ptr): Likewise.
1185 (gimple_eh_else_n_body_ptr): Likewise.
1186 (gimple_eh_must_not_throw_set_fndecl): Likewise.
1187 (gimple_eh_must_not_throw_fndecl): Likewise.
1188 (gimple_eh_filter_set_failure): Likewise.
1189 (gimple_eh_filter_set_types): Likewise.
1190 (gimple_eh_filter_failure_ptr): Likewise.
1191 (gimple_eh_filter_types_ptr): Likewise.
1192 (gimple_eh_filter_types): Likewise.
1193 (gimple_catch_set_handler): Likewise.
1194 (gimple_catch_set_types): Likewise.
1195 (gimple_catch_handler_ptr): Likewise.
1196 (gimple_catch_types_ptr): Likewise.
1197 (gimple_catch_types): Likewise.
1198 (gimple_asm_string): Likewise.
1199 (gimple_asm_set_label_op): Likewise.
1200 (gimple_asm_label_op): Likewise.
1201 (gimple_asm_set_clobber_op): Likewise.
1202 (gimple_asm_clobber_op): Likewise.
1203 (gimple_asm_set_output_op): Likewise.
1204 (gimple_asm_output_op_ptr): Likewise.
1205 (gimple_asm_output_op): Likewise.
1206 (gimple_asm_set_input_op): Likewise.
1207 (gimple_asm_input_op_ptr): Likewise.
1208 (gimple_asm_input_op): Likewise.
1209 (gimple_asm_nlabels): Likewise.
1210 (gimple_asm_nclobbers): Likewise.
1211 (gimple_asm_noutputs): Likewise.
1212 (gimple_asm_ninputs): Likewise.
1213 (gimple_bind_set_block): Likewise.
1214 (gimple_bind_block): Likewise.
1215 (gimple_bind_add_seq): Likewise.
1216 (gimple_bind_add_stmt): Likewise.
1217 (gimple_bind_set_body): Likewise.
1218 (gimple_bind_body_ptr): Likewise.
1219 (gimple_bind_append_vars): Likewise.
1220 (gimple_bind_set_vars): Likewise.
1221 (gimple_bind_vars): Likewise.
1222 (gimple_call_clobber_set): Likewise.
1223 (gimple_call_use_set): Likewise.
1224 (gimple_call_set_internal_fn): Likewise.
1225 (gimple_call_set_fntype): Likewise.
1226 (gimple_call_fntype): Likewise.
1227 (gimple_omp_return_lhs_ptr): Likewise.
1228 (gimple_omp_return_lhs): Likewise.
1229 (gimple_omp_return_set_lhs): Likewise.
1230 (gimple_omp_taskreg_set_data_arg): Likewise.
1231 (gimple_omp_taskreg_data_arg_ptr): Likewise.
1232 (gimple_omp_taskreg_data_arg): Likewise.
1233 (gimple_omp_taskreg_set_child_fn): Likewise.
1234 (gimple_omp_taskreg_child_fn_ptr): Likewise.
1235 (gimple_omp_taskreg_child_fn): Likewise.
1236 (gimple_omp_taskreg_set_clauses): Likewise.
1237 (gimple_omp_taskreg_clauses_ptr): Likewise.
1238 (gimple_omp_taskreg_clauses): Likewise.
1239 (gimple_vuse): Likewise.
1240 (gimple_vdef): Likewise.
1241 (gimple_vuse_ptr): Likewise.
1242 (gimple_vdef_ptr): Likewise.
1243 * tree-inline.c (copy_debug_stmt): Likewise.
1244 * tree-phinodes.c (make_phi_node): Likewise.
1246 * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
1247 (is_a_helper <gimple_statement_with_ops>::test): New.
1248 (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
1249 (is_a_helper <gimple_statement_with_memory_ops>::test): New.
1251 * gimple-streamer-in.c (input_gimple_stmt): Port from union
1252 access to use of as_a.
1253 * gimple.c (gimple_build_asm_1): Likewise.
1254 (gimple_build_try): Likewise. Also, return a specific subclass
1255 rather than just gimple.
1256 (gimple_build_resx): Port from union access to use of as_a.
1257 (gimple_build_eh_dispatch): Likewise.
1258 (gimple_build_omp_for): Likewise. Also, convert allocation of iter
1259 now that gengtype no longer provides a typed allocator function.
1260 (gimple_copy): Likewise.
1261 * gimple.h (gimple_build_try): Return a specific subclass rather
1263 * gimplify.c (gimplify_cleanup_point_expr): Replace union access
1264 with subclass access by making use of new return type of
1266 * tree-phinodes.c: (allocate_phi_node): Return a
1267 "gimple_statement_phi *" rather than just a gimple.
1268 (resize_phi_node): Likewise.
1269 (make_phi_node): Replace union access with subclass access by
1270 making use of new return type of allocate_phi_node.
1271 (reserve_phi_args_for_new_edge): Replace union access with as_a.
1272 (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
1274 (remove_phi_args): Update for change to remove_phi_arg_num.
1276 * gdbhooks.py (GimplePrinter.to_string): Update lookup of
1277 code field to reflect inheritance, rather than embedding of
1278 the base gimple type.
1280 2013-11-19 Richard Biener <rguenther@suse.de>
1282 * cfgloop.h (struct loop_iterator): C++-ify, add constructor
1283 and destructor and make fel_next a member function.
1284 (fel_next): Transform into ...
1285 (loop_iterator::next): ... this.
1286 (fel_init): Transform into ...
1287 (loop_iterator::loop_iterator): ... this.
1288 (loop_iterator::~loop_iterator): New.
1289 (FOR_EACH_LOOP): Remove loop-iterator argument.
1290 (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
1291 * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
1292 graphite-clast-to-gimple.c, graphite-scop-detection.c,
1293 graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
1294 loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
1295 modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
1296 tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
1297 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
1298 tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
1299 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
1300 tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
1301 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
1302 uses of FOR_EACH_LOOP and remove loop_iterator variables. Replace
1303 FOR_EACH_LOOP_BREAK with break.
1305 2013-11-19 Richard Biener <rguenther@suse.de>
1307 PR tree-optimization/59164
1308 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
1310 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust check
1311 whether we can create an epilogue loop to reflect thecases where
1314 2013-11-19 Andrew MacLeod <amacleod@redhat.com>
1316 * graphite-sese-to-poly.c: Include expr.h.
1318 2013-11-19 Richard Biener <rguenther@suse.de>
1321 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
1322 loads into stmts that may clobber it.
1324 2013-11-19 Bernd Schmidt <bernds@codesourcery.com>
1326 * cgraphunit.c (symtab_terminator): New variable.
1327 (queued_nodes): Renamed from first. Use symtab_terminator as
1329 (analyze_functions): Adjust accordingly.
1330 (cgraph_process_new_functions): Return void.
1331 * cgraph.h (cgraph_process_new_functions): Adjust declaration.
1333 2013-11-19 Marek Polacek <polacek@redhat.com>
1335 * opts.c (common_handle_option): Add -fsanitize=null option.
1336 Turn off -fdelete-null-pointer-checks option when doing the
1337 NULL pointer checking.
1338 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
1339 * tree-pass.h (make_pass_ubsan): Declare.
1340 (make_pass_sanopt): Declare.
1341 * timevar.def (TV_TREE_UBSAN): New timevar.
1342 * passes.def: Add pass_sanopt and pass_ubsan.
1343 * ubsan.h (ubsan_null_ckind): New enum.
1344 (ubsan_mismatch_data): New struct.
1345 (ubsan_expand_null_ifn): Declare.
1346 (ubsan_create_data): Adjust declaration.
1347 (ubsan_type_descriptor): Likewise.
1348 * asan.c: Include "ubsan.h".
1349 (pass_data_sanopt): New pass.
1350 (execute_sanopt): New function.
1351 (gate_sanopt): Likewise.
1352 (make_pass_sanopt): Likewise.
1353 (class pass_sanopt): New class.
1354 * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
1355 gimple-iterator.h and cfgloop.h.
1356 (PROB_VERY_UNLIKELY): Define.
1357 (tree_type_map_hash): New function.
1358 (ubsan_type_descriptor): Add new parameter.
1359 Improve type name generation.
1360 (ubsan_create_data): Add new parameter. Add pointer data into
1362 (ubsan_expand_null_ifn): New function.
1363 (instrument_member_call): Likewise.
1364 (instrument_mem_ref): Likewise.
1365 (instrument_null): Likewise.
1366 (ubsan_pass): Likewise.
1367 (gate_ubsan): Likewise.
1368 (make_pass_ubsan): Likewise.
1369 (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
1370 (class pass_ubsan): New class.
1371 (pass_data_ubsan): New pass.
1372 * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
1373 * internal-fn.c (expand_UBSAN_NULL): New function.
1374 * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
1375 even when !flag_toplevel_reorder.
1376 * internal-fn.def (UBSAN_NULL): New.
1378 2013-11-19 Jan Hubicka <jh@suse.cz>
1380 * cgraph.c (cgraph_create_indirect_edge): Use
1381 get_polymorphic_call_info.
1382 * cgraph.h (cgraph_indirect_call_info): Add outer_type,
1383 maybe_in_construction and maybe_derived_type.
1384 * ipa-utils.h (ipa_polymorphic_call_context): New structure.
1385 (ipa_dummy_polymorphic_call_context): New global var.
1386 (possible_polymorphic_call_targets): Add context paramter.
1387 (dump_possible_polymorphic_call_targets): Likewise; update wrappers.
1388 (possible_polymorphic_call_target_p): Likewise.
1389 (get_polymorphic_call_info): New function.
1390 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
1391 (add_type_duplicate): Remove forgotten debug output.
1392 (method_class_type): Add sanity check.
1393 (maybe_record_node): Add FINALP parameter.
1394 (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
1395 by info by get_binfo_at_offset.
1396 (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET
1397 parameters; pass them to record-binfo.
1398 (polymorphic_call_target_d): Add context and FINAL.
1399 (polymorphic_call_target_hasher::hash): Hash context.
1400 (polymorphic_call_target_hasher::equal): Compare context.
1401 (free_polymorphic_call_targets_hash):
1402 (get_class_context): New function.
1403 (contains_type_p): New function.
1404 (get_polymorphic_call_info): New function.
1405 (walk_bases): New function.
1406 (possible_polymorphic_call_targets): Add context parameter; honnor it.
1407 (dump_possible_polymorphic_call_targets): Dump context.
1408 (possible_polymorphic_call_target_p): Add context.
1409 (update_type_inheritance_graph): Update comment.s
1410 (ipa_set_jf_known_type): Assert that compoentn type is known.
1411 (ipa_note_param_call): Do not tamper with offsets.
1412 (ipa_analyze_indirect_call_uses): When offset is being changed; clear
1414 (update_indirect_edges_after_inlining): Likewise.
1415 (ipa_write_indirect_edge_info): Stream new fields.
1416 (ipa_read_indirect_edge_info): Stream in new fields.
1418 2013-11-19 Jan Hubicka <jh@suse.cz>
1420 * tree-pretty-print.c (dump_generic_node): Print class type of
1423 2013-11-19 Joey Ye <joey.ye@arm.com>
1425 * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
1426 * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
1428 * config/arm/arm.c (arm_option_override): By default disable
1429 -marm-pic-data-is-text-relative.
1430 (legitimize_pic_address): Use arm_pic_data_is_text_relative.
1431 (arm_assemble_integer): Likewise.
1432 * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
1433 New macro to initialize -marm-pic-data-is-text-relative.
1435 2013-11-19 Bin Cheng <bin.cheng@arm.com>
1437 * tree-ssa-loop-ivopts.c (enum ainc_type): New.
1438 (address_cost_data): New field.
1439 (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
1440 Use ainc_costs for auto-increment rtx patterns. Cleanup TWS.
1442 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
1444 * config/aarch64/aarch64.md: Remove v8type from all insns.
1446 2013-11-19 Richard Biener <rguenther@suse.de>
1448 PR tree-optimization/57517
1449 * tree-predcom.c (combinable_refs_p): Verify the combination
1450 is always executed when the refs are.
1452 2013-11-19 Jeff Law <law@redhat.com>
1454 * tree-ssa-threadupdate.c: Include ssa-iterators.h
1455 (copy_phi_arg_into_existing_phi): New function.
1456 (any_remaining_duplicated_blocks): Likewise.
1457 (ssa_fix_duplicate_block_edges): Handle multiple duplicated
1458 blocks on a jump threading path.
1460 * tree-ssa-threadupdate.c (thread_through_loop_header): Do not
1461 thread through a joiner which has the latch edge.
1463 2013-11-19 Jan Hubicka <jh@suse.cz>
1465 * md.texi (setmem): Document new parameter.
1466 * optabs.c (maybe_gen_insn): Support 9 operands.
1467 * builtins.c (determine_block_size): Add probable_max_size;
1468 support anti-ranges.
1469 (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
1471 * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
1472 emit_block_move, clear_storage_hints, set_storage_via_setmem):
1474 * expr.h (emit_block_move_hints, clear_storage_hints,
1475 set_storage_via_setmem): Update prototype.
1476 * i386.md (setmem, movmem patterns): Add 9th operand.
1477 * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
1478 * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
1479 argument; pass it to decide_alg.
1481 2013-11-19 David Malcolm <dmalcolm@redhat.com>
1483 * basic-block.h (n_basic_blocks_for_function): Rename macro to...
1484 (n_basic_blocks_for_fn): ...this.
1486 (n_basic_blocks): Eliminate macro as work towards making uses of
1489 * cfgloop.c (init_loops_structure): Update for renaming of
1490 "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
1491 * graph.c (draw_cfg_nodes_no_loops): Likewise.
1492 * ipa-utils.c (ipa_merge_profiles): Likewise.
1493 * lto-streamer-in.c (make_new_block): Likewise.
1494 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
1495 (dump_function_to_file): Likewise.
1497 * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
1498 macro with "n_basic_blocks_for_fn (cfun)".
1499 * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
1500 (duplicate_computed_gotos): Likewise.
1501 (reorder_basic_blocks): Likewise.
1502 * bt-load.c (augment_live_range): Likewise.
1503 * cfg.c (expunge_block): Likewise.
1504 (compact_blocks): Likewise.
1505 * cfganal.c (single_pred_before_succ_order): Likewise.
1506 (compute_idf): Likewise.
1507 (flow_dfs_compute_reverse_init): Likewise.
1508 (pre_and_rev_post_order_compute): Likewise.
1509 (pre_and_rev_post_order_compute_fn): Likewise.
1510 (inverted_post_order_compute): Likewise.
1511 (post_order_compute): Likewise.
1512 (print_edge_list): Likewise.
1513 (find_unreachable_blocks): Likewise.
1514 (mark_dfs_back_edges): Likewise.
1515 * cfgcleanup.c (try_optimize_cfg): Likewise.
1516 (try_forward_edges): Likewise.
1517 * cfghooks.c (dump_flow_info): Likewise.
1518 * cfgloop.c (verify_loop_structure): Likewise.
1519 (get_loop_body): Likewise.
1520 (flow_loops_find): Likewise.
1521 * cfgloopmanip.c (add_loop): Likewise.
1522 (remove_path): Likewise.
1523 (find_path): Likewise.
1524 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
1525 (rtl_verify_bb_layout): Likewise.
1526 (entry_of_function): Likewise.
1527 (rtl_create_basic_block): Likewise.
1528 * coverage.c (coverage_compute_cfg_checksum): Likewise.
1529 * cprop.c (one_cprop_pass): Likewise.
1530 (is_too_expensive): Likewise.
1531 * df-core.c (df_compute_cfg_image): Likewise.
1532 (df_compact_blocks): Likewise.
1533 (df_worklist_dataflow_doublequeue): Likewise.
1534 * dominance.c (calculate_dominance_info): Likewise.
1535 (calc_dfs_tree): Likewise.
1536 (calc_dfs_tree_nonrec): Likewise.
1537 (init_dom_info): Likewise.
1538 * domwalk.c (cmp_bb_postorder): Likewise.
1539 * function.c (thread_prologue_and_epilogue_insns): Likewise.
1540 (generate_setjmp_warnings): Likewise.
1541 * fwprop.c (build_single_def_use_links): Likewise.
1542 * gcse.c (is_too_expensive): Likewise.
1543 (one_code_hoisting_pass): Likewise.
1544 (one_pre_gcse_pass): Likewise.
1545 * graphite.c (graphite_initialize): Likewise.
1546 * haifa-sched.c (haifa_sched_init): Likewise.
1547 * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
1548 * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
1549 * ira-build.c (ira_build): Likewise.
1550 * lcm.c (compute_nearerout): Likewise.
1551 (compute_available): Likewise.
1552 (compute_laterin): Likewise.
1553 (compute_antinout_edge): Likewise.
1554 * lra-lives.c (lra_create_live_ranges): Likewise.
1555 * lra.c (has_nonexceptional_receiver): Likewise.
1556 * mcf.c (create_fixup_graph): Likewise.
1557 * profile.c (branch_prob): Likewise.
1558 * reg-stack.c (convert_regs_2): Likewise.
1559 * regrename.c (regrename_analyze): Likewise.
1560 * reload1.c (has_nonexceptional_receiver): Likewise.
1561 * reorg.c (dbr_schedule): Likewise.
1562 * sched-deps.c (sched_deps_init): Likewise.
1563 * sched-ebb.c (schedule_ebbs): Likewise.
1564 * sched-rgn.c (extend_regions): Likewise.
1565 (schedule_insns): Likewise.
1566 (sched_rgn_init): Likewise.
1567 (extend_rgns): Likewise.
1568 (haifa_find_rgns): Likewise.
1569 * sel-sched-ir.c (recompute_rev_top_order): Likewise.
1570 (sel_recompute_toporder): Likewise.
1571 * sel-sched.c (run_selective_scheduling): Likewise.
1572 * store-motion.c (one_store_motion_pass): Likewise.
1573 (remove_reachable_equiv_notes): Likewise.
1574 * tracer.c (tracer): Likewise.
1575 (tail_duplicate): Likewise.
1576 * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
1577 (dump_cfg_stats): Likewise.
1578 (gimple_dump_cfg): Likewise.
1579 (create_bb): Likewise.
1580 (build_gimple_cfg): Likewise.
1581 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
1582 * tree-inline.c (optimize_inline_calls): Likewise.
1583 (fold_marked_statements): Likewise.
1584 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
1585 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
1586 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
1587 * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
1588 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
1589 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
1590 * tree-ssa-pre.c (do_pre): Likewise.
1591 (init_pre): Likewise.
1592 (compute_avail): Likewise.
1593 * tree-ssa-reassoc.c (init_reassoc): Likewise.
1594 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
1595 * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
1596 (init_worklist): Likewise.
1597 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
1598 * var-tracking.c (variable_tracking_main_1): Likewise.
1599 (vt_find_locations): Likewise.
1600 (vt_stack_adjustments): Likewise.
1601 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
1602 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
1604 2013-11-18 Jan Hubicka <jh@suse.cz>
1606 * profile.c (compute_branch_probabilities): Do not sanity check
1609 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
1611 * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
1613 * fold-const.c (fold_single_bit_test_into_sign_test)
1614 (fold_binary_loc): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
1616 2013-11-18 Teresa Johnson <tejohnson@google.com>
1618 * cfgrtl.c (cfg_layout_initialize): Assert if we try to go into
1619 cfglayout after bb reordering.
1620 * passes.def: Move compgotos before bb reordering since it goes into
1623 2013-11-18 Bernd Schmidt <bernds@codesourcery.com>
1625 * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
1626 * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
1628 (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
1629 make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
1630 pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
1631 * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
1632 * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
1633 Remove all_lto_gen_passes.
1634 * passes.c (pass_manager::dump_passes): Remove its use.
1635 (pass_manager::register_pass): Likewise.
1636 (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
1637 (pass_manager::pass_manager): Don't initialize or use it.
1638 (write_lto): New static function.
1639 (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
1640 instead of using all_lto_gen_passes.
1641 * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
1642 pass_ipa_lto_finish_out): Delete.
1643 * tree-pass.h (make_pass_ipa_lto_gimple_out,
1644 make_pass_ipa_lto_finish_out): Don't declare.
1646 2013-11-18 Jeff Law <law@redhat.com>
1648 * tree-ssa-threadupdate.c (redirection_data): Record two
1649 duplicated blocks instead of just one.
1650 (local_info): Explain why we don't create a template for the
1651 second duplicated block in a thread path.
1652 (create_block_for_threading): Accept argument indicating array
1653 index into redirection_data to store its result.
1654 (lookup_redirection_data): Initialize both duplicate blocks.
1655 (ssa_create_duplicates): If a jump threading path needs multiple
1656 blocks duplicated, then duplicate them.
1657 (ssa_fix_duplicate_block_edges): Corresponding changes.
1658 (ssa_fixup_template_block, thread_single_edge): Likewise.
1660 2013-11-18 Marek Polacek <polacek@redhat.com>
1662 * doc/invoke.texi: Extend -fsanitize=undefined documentation.
1664 2013-11-18 Andrew Pinski <apinski@cavium.com>
1665 Steve Ellcey <sellcey@mips.com>
1668 * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
1669 type restriction from equality_operator on conditonal move.
1670 (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
1671 (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
1673 2013-11-18 Jeff Law <law@redhat.com>
1675 * tree-ssa-threadupdate.c: Fix file block comment.
1676 Fix minor indention issue.
1678 2013-11-18 Uros Bizjak <ubizjak@gmail.com>
1680 * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
1681 ix86_address_subreg_operand. Move subreg checks to
1682 ix86_validate_address_register. Move address override check to
1683 ix86_legitimate_address_p.
1684 (ix86_validate_address_register): New function.
1685 (ix86_legitimate_address_p): Call ix86_validate_address_register
1686 to validate base and index registers. Add address override check
1687 from ix86_decompose_address.
1688 (ix86_decompose_address): Remove.
1690 2013-11-18 Richard Biener <rguenther@suse.de>
1692 PR tree-optimization/59125
1693 PR tree-optimization/54570
1694 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
1695 is not complete do not treat component-references with offset zero
1696 but different fields as equal.
1697 * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
1698 (compute_object_sizes): Apply TLC. Propagate the constant
1699 results into all uses and fold their stmts.
1700 * passes.def (pass_all_optimizations): Move pass_object_sizes
1701 after the first pass_forwprop and before pass_fre.
1703 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1705 * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
1706 * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
1707 (tree_ctz): Remove cast to unsigned type.
1708 * builtins.c (fold_builtin_memory_op): Likewise.
1709 * dwarf2out.c (descr_info_loc): Likewise.
1710 * godump.c (go_output_typedef): Likewise.
1711 * omp-low.c (expand_omp_simd): Likewise.
1712 * stor-layout.c (excess_unit_span): Likewise.
1713 * tree-object-size.c (addr_object_size): Likewise.
1714 * tree-sra.c (analyze_all_variable_accesses): Likewise.
1715 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
1716 (simplify_rotate): Likewise.
1717 * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
1718 (handle_pointer_plus): Likewise.
1719 * tree-switch-conversion.c (check_range): Likewise.
1720 * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
1721 * tsan.c (instrument_builtin_call): Likewise.
1722 * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
1723 * trans-mem.c (tm_log_add): Likewise.
1724 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
1725 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
1726 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
1727 * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
1729 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1731 * tree.h (host_integerp, tree_low_cst): Delete.
1732 * tree.c (host_integerp, tree_low_cst): Delete.
1734 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1736 * expr.h: Update comments to refer to tree_to_[su]hwi rather
1738 * fold-const.c (fold_binary_loc): Likewise.
1739 * expr.c (store_constructor): Use tree_to_uhwi rather than
1741 * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
1742 * stmt.c (emit_case_dispatch_table): Likewise.
1743 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
1745 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1747 * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
1748 config/aarch64/aarch64.c, config/alpha/predicates.md,
1749 config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
1750 config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
1751 config/mep/mep-pragma.c, config/mips/mips.c,
1752 config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
1753 dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
1754 function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
1755 predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
1756 tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
1757 tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
1758 tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
1759 tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
1760 tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
1761 Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
1763 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1765 * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
1766 config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
1767 config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
1768 coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
1769 fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
1770 predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
1771 tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
1772 tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
1773 tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
1774 tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
1775 Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
1777 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1779 * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
1780 * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
1782 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1784 * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
1787 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1789 * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
1790 config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
1791 gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
1792 tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
1793 tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
1794 tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
1795 tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
1796 config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
1797 config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
1798 config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
1799 gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
1800 tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
1801 tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
1802 tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
1803 tree_fits_uhwi_p throughout.
1805 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1807 * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
1808 config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
1809 config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
1810 expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
1811 gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
1812 omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
1813 stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
1814 tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
1815 tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
1816 tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
1817 tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
1818 tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
1819 varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
1822 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1824 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
1825 * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
1827 2013-11-18 Kirill Yukhin <kirill.yukhin@intel.com>
1829 * config/ia64/ia64.c (ia64_split_tmode_move): Mark load with `dead'
1830 flag if it kills its address, not its post-increment.
1832 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
1834 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
1835 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
1836 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
1837 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
1838 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
1839 (gimple_call_with_bounds_p): New.
1840 (gimple_call_set_with_bounds): New.
1841 (gimple_call_num_nobnd_args): Remove.
1842 (gimple_call_nobnd_arg): Remove.
1843 * tree.h (CALL_WITH_BOUNDS_P): New.
1844 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
1846 2013-11-18 Trevor Saunders <tsaunders@mozilla.com>
1848 * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
1849 (symtab_node_name): Rename to symtab_node::name.
1850 (cgraph_node_asm_name): Remove.
1851 (varpool_node_asm_name): Remove.
1852 * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
1853 ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
1854 ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
1855 ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
1856 tree-ssa-structalias.c value-prof.c varpool.c Adjust.
1858 2013-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1860 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
1861 * config/arm/arm.c (arm_cortex_a53_tune): New.
1862 * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
1864 2013-11-12 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1866 * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
1867 (case ${target}): Add bdver4.
1868 * config/i386/bdver3.md: Add bdver4.
1869 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
1870 -march=native recognize bdver4 processors.
1871 * config/i386/i386-c.c (ix86_target_macros_internal): Add
1872 bdver4 def_and_undef
1873 * config/i386/i386.c (struct processor_costs bdver4_cost): New.
1874 (m_BDVER4): New definition.
1875 (m_AMD_MULTIPLE): Includes m_BDVER4.
1876 (processor_target_table): Add bdver4 entry.
1877 (static const char *const cpu_names): Add bdver4 entry.
1878 (software_prefetching_beneficial_p): Add bdver3.
1879 (ix86_option_override_internal): Add bdver4 instruction sets.
1880 (ix86_issue_rate): Add bdver4.
1881 (ix86_adjust_cost): Add bdver4.
1882 (ia32_multipass_dfa_lookahead): Add bdver4.
1883 (enum processor_model): Add M_AMDFAM15H_BDVER4.
1884 (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
1885 (has_dispatch): Add bdver4.
1886 * config/i386/i386.h (TARGET_BDVER4): New definition.
1887 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
1888 (enum processor_type): Add PROCESSOR_BDVER4.
1889 * config/i386/i386.md (define_attr "cpu"): Add bdver4.
1890 * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
1891 * doc/extend.texi: Add details about bdver4.
1892 * doc/invoke.texi: Add details about bdver4. Add
1893 fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
1895 2013-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1897 * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
1898 sdmode_stack_slot also in little-endian mode.
1900 2013-11-17 Jan Hubicka <jh@suse.cz>
1902 * doc/md.texi (setmem, movstr): Update documentation.
1903 * builtins.c (determine_block_size): New function.
1904 (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
1905 (expand_builtin_memset_args): Use it and pass it to
1906 set_storage_via_setmem.
1907 * expr.c (emit_block_move_via_movmem): Add min_size/max_size
1908 parameters; update call to expander.
1909 (emit_block_move_hints): Add min_size/max_size parameters.
1910 (clear_storage_hints): Likewise.
1911 (set_storage_via_setmem): Likewise.
1912 (clear_storage): Update.
1913 * expr.h (emit_block_move_hints, clear_storage_hints,
1914 set_storage_via_setmem): Update prototypes.
1915 * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
1916 (ix86_expand_movmem, ix86_expand_setmem): Remove.
1917 (ix86_expand_movmem, ix86_expand_setmem): Remove.
1918 * i386.md (movmem, setmem): Pass parameters.
1920 2013-11-17 Uros Bizjak <ubizjak@gmail.com>
1923 * config/i386/i386.c (ix86_address_subreg_operand): Do not
1924 reject non-integer subregs.
1925 (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
1926 Move check for invalid x32 constant addresses ...
1927 (ix86_legitimate_address_p): ... here.
1929 2011-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1931 * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
1932 parameter and use it in REG_FRAME_RELATED_EXPR note.
1933 (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
1935 (rs6000_emit_prologue): Likewise, but for little endian VSX
1936 stores, pass the source register of the store instead.
1938 2013-11-17 Andrew MacLeod <amacleod@redhat.com>
1940 * gimple.h: Reorder prototypes to match .c declaration order, and
1941 remove protyotypes for functions not in gimple.c.
1942 (LABEL): Move to tree-into-ssa.c.
1943 * gimple.c: Remove unused prototypes.
1944 (get_base_address): Move to tree.c.
1945 * tree.c (get_base_address): Relocate from gimple.c.
1946 * builtins.h (validate_gimple_arglist): Add prototype.
1947 * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
1948 * cfgexpand.h: New File.
1949 (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
1950 * tree.h (build_addr): Move to tree-nested.h.
1951 * tree-nested.h: New File.
1952 (build_addr, lower_nested_functions, insert_field_into_struct): Add
1954 * tree-inline.h (estimated_stack_frame_size): Remove prototype.
1955 * ipa-inline-analysis.c: Include cfgexpand.h.
1956 * cgraphunit.c: Include tree-nested.h.
1957 * omp-low.c: Likewise.
1958 * tree-parloops.c: Likewise.
1959 * gimple-low.h: Likewise.
1960 * tree-profile.h: Likewise.
1961 * expr.c: Include cfgexpand.h.
1962 * tree-affine.c: Likewise.
1963 * tree-ssa.c: Likewise.
1964 * tree-ssa-loop-im.c: Include trans-mem.h.
1965 * tree-ssa-tail-merge.c: Likewise.
1966 * value-prof.c: Include builtins.h and tree-nested.h.
1967 * tree-into-ssa.c (LABEL): Define here.
1969 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
1971 * config/arc/arc.c (arc_predicate_delay_insns): New function.
1972 (pass_data_arc_predicate_delay_insns): New pass_data instance.
1973 (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
1974 (make_pass_arc_predicate_delay_insns): New function.
1975 (arc_init): Register pass_arc_predicate_delay_insns if
1976 flag_delayed_branch is active.
1978 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
1980 * config/arc/constraints.md (Rcq): Simplify register number test.
1982 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
1984 * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
1986 2013-11-15 Kaz Kojima <kkojima@gcc.gnu.org>
1988 * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
1991 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
1993 * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
1994 * gimple-pretty-print.c (dump_omp_for): Add case for
1995 GF_OMP_FOR_KIND_CILKSIMD.
1996 * gimple.h (enum gf_mask): Restructure entries to add
1997 GF_OMP_FOR_KIND_CILKSIMD.
1998 * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
1999 (gimplify_omp_for): Handle CILK_SIMD.
2000 (gimplify_expr): Add ccase for CILK_SIMD.
2001 * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
2002 (build_outer_var_ref): Same.
2003 (check_omp_nesting_restrictions): Same.
2004 (lower_rec_input_clauses): Same.
2005 (lower_lastprivate_clauses): Same.
2006 (expand_omp_for): Same.
2007 (execute_expand_omp): Check flag_enable_cilkplus.
2008 (execute_lower_omp): Same.
2009 (diagnose_sb_0): Handle CILK_SIMD.
2010 (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
2011 (setjmp_or_longjmp_p): New.
2012 (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
2013 * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
2014 * tree.def: Add tree code for CILK_SIMD.
2016 2013-11-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2018 * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
2020 (altivec_vperm_<mode>): Revert earlier little endian change.
2021 (*altivec_vperm_<mode>_internal): Remove.
2022 (altivec_vperm_<mode>_uns): Revert earlier little endian change.
2023 (*altivec_vperm_<mode>_uns_internal): Remove.
2024 * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
2026 2013-11-15 Jeff Law <law@redhat.com>
2028 * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
2029 has_abnormal_or_outgoing_edge. Check for EH edges as well.
2030 * gimple-ssa-isolate-paths.c
2031 (find_implicit_erroneous_behaviour): Corresponding changes.
2032 Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
2033 (find_explicit_erroneous_behaviour): Likewise.
2035 2013-11-15 Jeff Law <law@redhat.com>
2037 * ifcvt.c (find_cond_trap): Properly handle case where
2040 2013-11-15 Andreas Schwab <schwab@linux-m68k.org>
2042 * configure: Regenerate.
2044 2013-11-15 James Greenhalgh <james.greenhalgh@arm.com>
2046 * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
2047 * config/aarch64/aarch64.md: Likewise, correct "type" attribute
2048 where it is incorrect or missing.
2050 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
2052 * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
2054 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
2055 Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
2057 * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
2058 pair with a TREE_CODE test and TREE_INT_CST_LOW.
2059 * tree-vect-generic.c (expand_vector_divmod): Likewise.
2061 2013-11-15 Richard Biener <rguenther@suse.de>
2063 PR tree-optimization/50262
2064 * tree-ssa-alias.h (struct pt_solution): Split
2065 vars_contains_global into vars_contains_nonlocal,
2066 vars_contains_escaped and vars_contains_escaped_heap.
2067 * tree-ssa-structalias.c (label_visit): Expand comment.
2068 (handle_lhs_call): Adjust comment.
2069 (set_uids_in_ptset): Set the new flags appropriately.
2070 (pt_solution_set): Adjust.
2071 (pt_solution_set_var): Likewise.
2072 (pt_solution_ior_into): Likewise.
2073 (pt_solution_includes_global): Likewise.
2074 (pt_solutions_intersect_1): Optimize escaped handling.
2075 (compute_points_to_sets): Remove heap variable globalization.
2076 (ipa_escaped_pt): Adjust initializer.
2077 (pass_data_ipa_pta): Do not run TODO_update_ssa.
2078 * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
2079 * tree-ssa-alias.c (dump_points_to_solution): Likewise.
2081 2013-11-15 Richard Biener <rguenther@suse.de>
2083 * tree-loop-distribution.c (tree_loop_distribution): Make sure
2084 to distribute all stores.
2086 2013-11-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2088 * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
2090 2013-11-15 Joseph Myers <joseph@codesourcery.com>
2092 * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
2093 * configure.ac: Determine target_header_dir earlier.
2094 (--with-glibc-version): New configure option.
2095 Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
2096 gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
2097 * configure: Regenerate.
2098 * doc/install.texi (--enable-gnu-unique-object): Don't refer to
2099 native toolchains for default.
2100 (--with-glibc-version): Document.
2102 2013-11-15 Eric Botcazou <ebotcazou@adacore.com>
2104 * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
2106 2013-11-15 Uros Bizjak <ubizjak@gmail.com>
2108 * lto-streamer-in.c (input function): Call cgraph_create_node if
2109 cgraph_get_node failed.
2111 2013-11-14 Olivier Hainque <hainque@adacore.com>
2113 * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
2114 defer allocation of DECL_IGNORED_P variables at toplevel unless really
2115 small. Factorize size threshold computation from the existing one.
2116 (expand_used_vars): Refine comment.
2118 2013-11-14 Cong Hou <congh@google.com>
2120 * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
2121 address field as it can be obtained from dr. Rename the struct.
2122 * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
2123 steps of data references during sort.
2124 (vect_prune_runtime_alias_test_list): Adjust with the change to
2125 struct dr_with_seg_len.
2126 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
2127 Adjust with the change to struct dr_with_seg_len.
2129 2013-11-14 Jeff Law <law@redhat.com>
2132 * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
2133 * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
2134 * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
2135 (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
2136 edges, then ignore it. If the statement exhibiting erroneous
2137 behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
2138 then we can not optimize.
2139 (find_explicit_erroneous_behaviour): Likewise.
2141 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
2143 * gimplify-me.h: New file. Add prototypes.
2144 * gimplify.h: Don't include gimple.h.
2145 (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
2146 Relocate from gimple.h.
2147 * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
2148 is_gimple_sizepos): Move to gimplify.h.
2149 (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
2150 (enum gsi_iterator_update): Move to gimple-iterator.h.
2151 * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
2152 * gimplify-me.c: New File.
2153 (force_gimple_operand_1, force_gimple_operand,
2154 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
2155 gimple_regimplify_operands): Relocate from gimplify.c.
2156 * gimplify.c (force_gimple_operand_1, force_gimple_operand,
2157 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
2158 gimple_regimplify_operands): Move to gimplify-me.c.
2159 (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
2161 * Makefile.in (OBJS): Add gimplify-me.o
2162 * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
2164 * cfgloopmanip.c: Likewise.
2165 * cgraphunit.c: Likewise.
2166 * cilk-common.c: Likewise.
2167 * fold-const.c: Likewise.
2168 * function.c: Likewise.
2169 * gimple-expr.c: Likewise.
2170 * gimple-fold.c: Likewise.
2171 * gimple-ssa-strength-reduction.c: Likewise.
2172 * gimple.c: Likewise.
2173 * graphite-clast-to-gimple.c: Likewise.
2174 * graphite-sese-to-poly.c: Likewise.
2175 * ipa-prop.c: Likewise.
2176 * ipa-split.c: Likewise.
2178 * langhooks.c: Likewise.
2179 * omp-low.c: Likewise.
2181 * stor-layout.c: Likewise.
2182 * targhooks.c: Likewise.
2183 * trans-mem.c: Likewise.
2184 * tree-affine.c: Likewise.
2185 * tree-cfg.c: Likewise.
2186 * tree-cfgcleanup.c: Likewise.
2187 * tree-complex.c: Likewise.
2188 * tree-if-conv.c: Likewise.
2189 * tree-inline.c: Likewise.
2190 * tree-loop-distribution.c: Likewise.
2191 * tree-nested.c: Likewise.
2192 * tree-parloops.c: Likewise.
2193 * tree-predcom.c: Likewise.
2194 * tree-profile.c: Likewise.
2195 * tree-scalar-evolution.c: Likewise.
2196 * tree-sra.c: Likewise.
2197 * tree-ssa-address.c: Likewise.
2198 * tree-ssa-ccp.c: Likewise.
2199 * tree-ssa-dce.c: Likewise.
2200 * tree-ssa-forwprop.c: Likewise.
2201 * tree-ssa-ifcombine.c: Likewise.
2202 * tree-ssa-loop-im.c: Likewise.
2203 * tree-ssa-loop-ivopts.c: Likewise.
2204 * tree-ssa-loop-manip.c: Likewise.
2205 * tree-ssa-loop-niter.c: Likewise.
2206 * tree-ssa-loop-prefetch.c: Likewise.
2207 * tree-ssa-loop-unswitch.c: Likewise.
2208 * tree-ssa-math-opts.c: Likewise.
2209 * tree-ssa-phiopt.c: Likewise.
2210 * tree-ssa-phiprop.c: Likewise.
2211 * tree-ssa-pre.c: Likewise.
2212 * tree-ssa-propagate.c: Likewise.
2213 * tree-ssa-reassoc.c: Likewise.
2214 * tree-ssa-sccvn.c: Likewise.
2215 * tree-ssa-strlen.c: Likewise.
2216 * tree-ssa.c: Likewise.
2217 * tree-switch-conversion.c: Likewise.
2218 * tree-tailcall.c: Likewise.
2219 * tree-vect-data-refs.c: Likewise.
2220 * tree-vect-generic.c: Likewise.
2221 * tree-vect-loop-manip.c: Likewise.
2222 * tree-vect-loop.c: Likewise.
2223 * tree-vect-patterns.c: Likewise.
2224 * tree-vect-stmts.c: Likewise.
2227 * value-prof.c: Likewise.
2228 * config/aarch64/aarch64.c: Likewise.
2229 * config/alpha/alpha.c: Likewise.
2230 * config/darwin.c: Likewise.
2231 * config/i386/i386.c: Likewise.
2232 * config/ia64/ia64.c: Likewise.
2233 * config/mep/mep.c: Likewise.
2234 * config/mips/mips.c: Likewise.
2235 * config/rs6000/rs6000.c: Likewise.
2236 * config/s390/s390.c: Likewise.
2237 * config/sh/sh.c: Likewise.
2238 * config/sparc/sparc.c: Likewise.
2239 * config/spu/spu.c: Likewise.
2240 * config/stormy16/stormy16.c: Likewise.
2241 * config/tilegx/tilegx.c: Likewise.
2242 * config/tilepro/tilepro.c: Likewise.
2243 * config/xtensa/xtensa.c: Likewise.
2245 2013-11-14 Diego Novillo <dnovillo@google.com>
2247 * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
2249 2013-11-14 Diego Novillo <dnovillo@google.com>
2251 * tree.h: Include fold-const.h.
2252 (aggregate_value_p): Moved to function.h.
2253 (alloca_call_p): Moved to calls.h.
2254 (allocate_struct_function): Moved to function.h.
2255 (apply_tm_attr): Moved to attribs.h.
2256 (array_at_struct_end_p): Moved to expr.h.
2257 (array_ref_element_size): Moved to tree-dfa.h.
2258 (array_ref_low_bound): Moved to tree-dfa.h.
2259 (array_ref_up_bound): Moved to tree.h.
2260 (assemble_alias): Moved to cgraph.h.
2261 (bit_from_pos): Moved to stor-layout.h.
2262 (build_addr): Moved to tree-nested.h.
2263 (build_duplicate_type): Moved to tree-inline.h.
2264 (build_fold_addr_expr): Moved to fold-const.h.
2265 (build_fold_addr_expr_with_type): Moved to fold-const.h.
2266 (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
2267 (build_fold_indirect_ref): Moved to fold-const.h.
2268 (build_fold_indirect_ref_loc): Moved to fold-const.h.
2269 (build_personality_function): Moved to tree.h.
2270 (build_range_check): Moved to fold-const.h.
2271 (build_simple_mem_ref): Moved to fold-const.h.
2272 (build_simple_mem_ref_loc): Moved to fold-const.h.
2273 (build_tm_abort_call): Moved to trans-mem.h.
2274 (byte_from_pos): Moved to stor-layout.h.
2275 (call_expr_flags): Moved to calls.h.
2276 (can_move_by_pieces): Moved to expr.h.
2277 (categorize_ctor_elements): Moved to expr.h.
2278 (change_decl_assembler_name): Moved to gcc-symtab.h.
2279 (combine_comparisons): Moved to fold-const.h.
2280 (complete_ctor_at_level_p): Moved to tree.h.
2281 (component_ref_field_offset): Moved to tree-dfa.h.
2282 (compute_builtin_object_size): Moved to tree-object-size.h.
2283 (compute_record_mode): Moved to stor-layout.h.
2284 (constant_boolean_node): Moved to fold-const.h.
2285 (constructor_static_from_elts_p): Moved to varasm.h.
2286 (cxx11_attribute_p): Moved to attribs.h.
2287 (debug_body): Moved to print-tree.h.
2288 (debug_find_tree): Moved to tree-inline.h.
2289 (debug_fold_checksum): Moved to fold-const.h.
2290 (debug_head): Moved to print-tree.h.
2291 (debug_head): Moved to print-tree.h.
2292 (debug_raw): Moved to print-tree.h.
2293 (debug_tree): Moved to print-tree.h.
2294 (debug_vec_tree): Moved to print-tree.h.
2295 (debug_verbose): Moved to print-tree.h.
2296 (debug_verbose): Moved to print-tree.h.
2297 (decl_attributes): Moved to attribs.h.
2298 (decl_binds_to_current_def_p): Moved to varasm.h.
2299 (decl_default_tls_model): Moved to varasm.h.
2300 (decl_replaceable_p): Moved to varasm.h.
2301 (div_if_zero_remainder): Moved to fold-const.h.
2302 (double_int mem_ref_offset): Moved to fold-const.h.
2303 (dump_addr): Moved to print-tree.h.
2304 (element_precision): Moved to machmode.h.
2305 (expand_dummy_function_end): Moved to function.h.
2306 (expand_function_end): Moved to function.h.
2307 (expand_function_start): Moved to function.h.
2308 (expand_label): Moved to stmt.h.
2309 (expr_first): Moved to tree-iterator.h.
2310 (expr_last): Moved to tree-iterator.h.
2311 (finalize_size_functions): Moved to stor-layout.h.
2312 (finish_builtin_struct): Moved to stor-layout.h.
2313 (finish_record_layout): Moved to stor-layout.h.
2314 (fixup_signed_type): Moved to stor-layout.h.
2315 (fixup_unsigned_type): Moved to stor-layout.h.
2316 (flags_from_decl_or_type): Moved to calls.h.
2317 (fold): Moved to fold-const.h.
2318 (fold_abs_const): Moved to fold-const.h.
2319 (fold_binary): Moved to fold-const.h.
2320 (fold_binary_loc): Moved to fold-const.h.
2321 (fold_binary_to_constant): Moved to fold-const.h.
2322 (fold_build1): Moved to fold-const.h.
2323 (fold_build1_initializer_loc): Moved to fold-const.h.
2324 (fold_build1_loc): Moved to fold-const.h.
2325 (fold_build1_stat_loc): Moved to fold-const.h.
2326 (fold_build2): Moved to fold-const.h.
2327 (fold_build2_initializer_loc): Moved to fold-const.h.
2328 (fold_build2_loc): Moved to fold-const.h.
2329 (fold_build2_stat_loc): Moved to fold-const.h.
2330 (fold_build3): Moved to fold-const.h.
2331 (fold_build3_loc): Moved to fold-const.h.
2332 (fold_build3_stat_loc): Moved to fold-const.h.
2333 (fold_build_call_array): Moved to fold-const.h.
2334 (fold_build_call_array_initializer): Moved to fold-const.h.
2335 (fold_build_call_array_initializer_loc): Moved to fold-const.h.
2336 (fold_build_call_array_loc): Moved to fold-const.h.
2337 (fold_build_cleanup_point_expr): Moved to fold-const.h.
2338 (fold_convert): Moved to fold-const.h.
2339 (fold_convert_loc): Moved to fold-const.h.
2340 (fold_convertible_p): Moved to fold-const.h.
2341 (fold_defer_overflow_warnings): Moved to fold-const.h.
2342 (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
2343 (fold_fma): Moved to fold-const.h.
2344 (fold_ignored_result): Moved to fold-const.h.
2345 (fold_indirect_ref): Moved to fold-const.h.
2346 (fold_indirect_ref_1): Moved to fold-const.h.
2347 (fold_indirect_ref_loc): Moved to fold-const.h.
2348 (fold_read_from_constant_string): Moved to fold-const.h.
2349 (fold_real_zero_addition_p): Moved to fold-const.h.
2350 (fold_single_bit_test): Moved to fold-const.h.
2351 (fold_strip_sign_ops): Moved to fold-const.h.
2352 (fold_ternary): Moved to fold-const.h.
2353 (fold_ternary_loc): Moved to fold-const.h.
2354 (fold_unary): Moved to tree-data-ref.h.
2355 (fold_unary_ignore_overflow): Moved to fold-const.h.
2356 (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
2357 (fold_unary_loc): Moved to fold-const.h.
2358 (fold_unary_to_constant): Moved to fold-const.h.
2359 (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
2360 (fold_undefer_overflow_warnings): Moved to fold-const.h.
2361 (folding_initializer): Moved to fold-const.h.
2362 (free_temp_slots): Moved to function.h.
2363 (generate_setjmp_warnings): Moved to function.h.
2364 (get_attribute_name): Moved to attribs.h.
2365 (get_identifier): Moved to stringpool.h.
2366 (get_identifier_with_length): Moved to stringpool.h.
2367 (get_inner_reference): Moved to tree.h.
2368 (gimple_alloca_call_p): Moved to calls.h.
2369 (gimplify_parameters): Moved to function.h.
2370 (highest_pow2_factor): Moved to expr.h.
2371 (indent_to): Moved to print-tree.h.
2372 (init_attributes): Moved to attribs.h.
2373 (init_dummy_function_start): Moved to function.h.
2374 (init_function_start): Moved to function.h.
2375 (init_inline_once): Moved to tree-inline.h.
2376 (init_object_sizes): Moved to tree-object-size.h.
2377 (init_temp_slots): Moved to function.h.
2378 (init_tree_optimization_optabs): Moved to optabs.h.
2379 (initialize_sizetypes): Moved to stor-layout.h.
2380 (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
2381 (initializer_constant_valid_p): Moved to varasm.h.
2382 (int_const_binop): Moved to fold-const.h.
2383 (internal_reference_types): Moved to stor-layout.h.
2384 (invert_tree_comparison): Moved to fold-const.h.
2385 (invert_truthvalue): Moved to fold-const.h.
2386 (invert_truthvalue_loc): Moved to fold-const.h.
2387 (is_tm_ending_fndecl): Moved to trans-mem.h.
2388 (is_tm_may_cancel_outer): Moved to trans-mem.h.
2389 (is_tm_pure): Moved to trans-mem.h.
2390 (is_tm_safe): Moved to trans-mem.h.
2391 (layout_decl): Moved to stor-layout.h.
2392 (layout_type): Moved to stor-layout.h.
2393 (lookup_attribute_spec): Moved to attribs.h.
2394 (make_accum_type): Moved to stor-layout.h.
2395 (make_decl_one_only): Moved to varasm.h.
2396 (make_decl_rtl): Moved to tree.h.
2397 (make_decl_rtl_for_debug): Moved to varasm.h.
2398 (make_fract_type): Moved to stor-layout.h.
2399 (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
2400 (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
2401 (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
2402 (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
2403 (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
2404 (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
2405 (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
2406 (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
2407 (make_range): Moved to fold-const.h.
2408 (make_range_step): Moved to fold-const.h.
2409 (make_sat_signed_accum_type): Moved to stor-layout.h.
2410 (make_sat_signed_fract_type): Moved to stor-layout.h.
2411 (make_sat_unsigned_accum_type): Moved to stor-layout.h.
2412 (make_sat_unsigned_fract_type): Moved to stor-layout.h.
2413 (make_signed_accum_type): Moved to stor-layout.h.
2414 (make_signed_fract_type): Moved to stor-layout.h.
2415 (make_signed_type): Moved to stor-layout.h.
2416 (make_unsigned_accum_type): Moved to stor-layout.h.
2417 (make_unsigned_fract_type): Moved to stor-layout.h.
2418 (make_unsigned_type): Moved to stor-layout.h.
2419 (mark_decl_referenced): Moved to varasm.h.
2420 (mark_referenced): Moved to varasm.h.
2421 (may_negate_without_overflow_p): Moved to fold-const.h.
2422 (maybe_get_identifier): Moved to stringpool.h.
2423 (merge_ranges): Moved to fold-const.h.
2424 (merge_weak): Moved to varasm.h.
2425 (mode_for_size_tree): Moved to stor-layout.h.
2426 (multiple_of_p): Moved to fold-const.h.
2427 (must_pass_in_stack_var_size): Moved to calls.h.
2428 (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
2429 (native_encode_expr): Moved to fold-const.h.
2430 (native_interpret_expr): Moved to fold-const.h.
2431 (non_lvalue): Moved to fold-const.h.
2432 (non_lvalue_loc): Moved to fold-const.h.
2433 (normalize_offset): Moved to stor-layout.h.
2434 (normalize_rli): Moved to stor-layout.h.
2435 (notice_global_symbol): Moved to varasm.h.
2436 (omit_one_operand): Moved to fold-const.h.
2437 (omit_one_operand_loc): Moved to fold-const.h.
2438 (omit_two_operands): Moved to fold-const.h.
2439 (omit_two_operands_loc): Moved to fold-const.h.
2440 (operand_equal_p): Moved to tree-data-ref.h.
2441 (parse_input_constraint): Moved to stmt.h.
2442 (parse_output_constraint): Moved to stmt.h.
2443 (place_field): Moved to stor-layout.h.
2444 (pop_function_context): Moved to function.h.
2445 (pop_temp_slots): Moved to function.h.
2446 (pos_from_bit): Moved to stor-layout.h.
2447 (preserve_temp_slots): Moved to function.h.
2448 (print_node): Moved to print-tree.h.
2449 (print_node_brief): Moved to print-tree.h.
2450 (print_rtl): Moved to rtl.h.
2451 (process_pending_assemble_externals): Moved to varasm.h.
2452 (ptr_difference_const): Moved to fold-const.h.
2453 (push_function_context): Moved to function.h.
2454 (push_struct_function): Moved to function.h.
2455 (push_temp_slots): Moved to function.h.
2456 (record_tm_replacement): Moved to trans-mem.h.
2457 (relayout_decl): Moved to stor-layout.h.
2458 (resolve_asm_operand_names): Moved to stmt.h.
2459 (resolve_unique_section): Moved to varasm.h.
2460 (rli_size_so_far): Moved to stor-layout.h.
2461 (rli_size_unit_so_far): Moved to stor-layout.h.
2462 (round_down): Moved to fold-const.h.
2463 (round_down_loc): Moved to fold-const.h.
2464 (round_up): Moved to fold-const.h.
2465 (round_up_loc): Moved to fold-const.h.
2466 (set_decl_incoming_rtl): Moved to emit-rtl.h.
2467 (set_decl_rtl): Moved to tree.h.
2468 (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
2469 (set_user_assembler_name): Moved to varasm.h.
2470 (setjmp_call_p): Moved to calls.h.
2471 (size_binop): Moved to fold-const.h.
2472 (size_binop_loc): Moved to fold-const.h.
2473 (size_diffop): Moved to fold-const.h.
2474 (size_diffop_loc): Moved to fold-const.h.
2475 (size_int_kind): Moved to fold-const.h.
2476 (stack_protect_epilogue): Moved to function.h.
2477 (start_record_layout): Moved to stor-layout.h.
2478 (supports_one_only): Moved to varasm.h.
2479 (swap_tree_comparison): Moved to fold-const.h.
2480 (tm_malloc_replacement): Moved to trans-mem.h.
2481 (tree build_fold_addr_expr_loc): Moved to fold-const.h.
2482 (tree build_invariant_address): Moved to fold-const.h.
2483 (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
2484 (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
2485 (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
2486 (tree_expr_nonnegative_p): Moved to fold-const.h.
2487 (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
2488 (tree_output_constant_def): Moved to varasm.h.
2489 (tree_overlaps_hard_reg_set): Moved to stmt.h.
2490 (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
2491 (tree_single_nonzero_warnv_p): Moved to fold-const.h.
2492 (tree_swap_operands_p): Moved to fold-const.h.
2493 (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
2494 (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
2495 (update_alignment_for_field): Moved to stor-layout.h.
2496 (use_register_for_decl): Moved to function.h.
2497 (variable_size): Moved to rtl.h.
2498 (vector_type_mode): Moved to stor-layout.h.
2499 * cgraph.h: Corresponding changes.
2500 * emit-rtl.h: Corresponding changes.
2501 * expr.h: Corresponding changes.
2502 * function.h: Corresponding changes.
2503 * optabs.h: Corresponding changes.
2504 * trans-mem.h: Corresponding changes.
2505 Protect against multiple inclusion.
2506 * tree-inline.h: Corresponding changes.
2507 * tree-iterator.h: Corresponding changes.
2508 * tree-dfa.h: Include expr.h.
2509 * tree-ssanames.h: Include stringpool.h.
2510 * attribs.h: New file.
2511 * calls.h: New file.
2512 * fold-const.h: New file.
2513 * gcc-symtab.h: New file.
2514 * print-rtl.h: New file.
2515 * print-tree.h: New file.
2517 * stor-layout.h: New file.
2518 * strinpool.h: New file.
2519 * tree-nested.h: New file
2520 * tree-object-size.h: New file.
2521 * varasm.h: New file.
2523 2013-11-14 Diego Novillo <dnovillo@google.com>
2525 * alias.c: Include varasm.h.
2527 * asan.c: Include calls.h.
2528 Include stor-layout.h.
2530 * attribs.c: Include stringpool.h.
2532 Include stor-layout.h.
2533 * builtins.c: Include stringpool.h.
2534 Include stor-layout.h.
2537 Include tree-object-size.h.
2538 * calls.c: Include stor-layout.h.
2540 Include stringpool.h.
2542 * cfgexpand.c: Include stringpool.h.
2544 Include stor-layout.h.
2546 Include print-tree.h.
2547 * cgraph.c: Include varasm.h.
2549 Include print-tree.h.
2550 * cgraphclones.c: Include stringpool.h.
2553 Move inclusion of rtl.h earlier in the file.
2554 * cgraphunit.c: Include varasm.h.
2555 Include stor-layout.h.
2556 Include stringpool.h.
2557 * cilk-common.c: Include stringpool.h.
2558 Include stor-layout.h.
2559 * combine.c: Include stor-layout.h.
2560 * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
2561 Include stringpool.h.
2563 * config/aarch64/aarch64.c: Include stringpool.h.
2564 Include stor-layout.h.
2567 * config/alpha/alpha.c: Include stor-layout.h.
2570 * config/arc/arc.c: Include varasm.h.
2571 Include stor-layout.h.
2572 Include stringpool.h.
2574 * config/arm/arm.c: Include stringpool.h.
2575 Include stor-layout.h.
2578 * config/avr/avr-c.c: Include stor-layout.h.
2579 * config/avr/avr-log.c: Include print-tree.h.
2580 * config/avr/avr.c: Include print-tree.h.
2582 Include stor-layout.h.
2583 Include stringpool.h.
2584 * config/bfin/bfin.c: Include varasm.h.
2586 * config/c6x/c6x.c: Include stor-layout.h.
2589 Include stringpool.h.
2590 * config/cr16/cr16.c: Include stor-layout.h.
2592 * config/cris/cris.c: Include varasm.h.
2593 Include stor-layout.h.
2596 * config/darwin.c: Include stringpool.h.
2598 Include stor-layout.h.
2599 * config/epiphany/epiphany.c: Include stor-layout.h.
2602 Include stringpool.h.
2603 * config/fr30/fr30.c: Include stor-layout.h.
2605 * config/frv/frv.c: Include varasm.h.
2606 Include stor-layout.h.
2607 Include stringpool.h.
2608 * config/h8300/h8300.c: Include stor-layout.h.
2611 Include stringpool.h.
2612 * config/i386/i386.c: Include stringpool.h.
2615 Include stor-layout.h.
2617 * config/i386/winnt-cxx.c: Include stringpool.h.
2619 * config/i386/winnt.c: Include stringpool.h.
2621 * config/ia64/ia64-c.c: Include stringpool.h.
2622 * config/ia64/ia64.c: Include stringpool.h.
2623 Include stor-layout.h.
2626 * config/iq2000/iq2000.c: Include stor-layout.h.
2629 * config/lm32/lm32.c: Include calls.h.
2630 * config/m32c/m32c.c: Include stor-layout.h.
2633 * config/m32r/m32r.c: Include stor-layout.h.
2635 Include stringpool.h.
2637 * config/m68k/m68k.c: Include calls.h.
2638 Include stor-layout.h.
2640 * config/mcore/mcore.c: Include stor-layout.h.
2642 Include stringpool.h.
2644 * config/mep/mep.c: Include varasm.h.
2646 Include stringpool.h.
2647 Include stor-layout.h.
2648 * config/microblaze/microblaze.c: Include varasm.h.
2649 Include stor-layout.h.
2651 * config/mips/mips.c: Include varasm.h.
2652 Include stringpool.h.
2653 Include stor-layout.h.
2655 * config/mmix/mmix.c: Include varasm.h.
2656 Include stor-layout.h.
2658 * config/mn10300/mn10300.c: Include stor-layout.h.
2661 * config/moxie/moxie.c: Include stor-layout.h.
2664 * config/msp430/msp430.c: Include stor-layout.h.
2666 * config/nds32/nds32.c: Include stor-layout.h.
2669 * config/pa/pa.c: Include stor-layout.h.
2670 Include stringpool.h.
2673 * config/pdp11/pdp11.c: Include stor-layout.h.
2676 * config/picochip/picochip.c: Include calls.h.
2677 Include stor-layout.h.
2678 Include stringpool.h.
2680 * config/rl78/rl78.c: Include varasm.h.
2681 Include stor-layout.h.
2683 * config/rs6000/rs6000-c.c: Include stor-layout.h.
2684 Include stringpool.h.
2685 * config/rs6000/rs6000.c: Include stringpool.h.
2686 Include stor-layout.h.
2688 Include print-tree.h.
2690 * config/rx/rx.c: Include varasm.h.
2691 Include stor-layout.h.
2693 * config/s390/s390.c: Include print-tree.h.
2694 Include stringpool.h.
2695 Include stor-layout.h.
2698 * config/score/score.c: Include stringpool.h.
2701 Include stor-layout.h.
2702 * config/sh/sh-c.c: Include stringpool.h.
2703 Include attribs.h.h.
2704 * config/sh/sh.c: Include stringpool.h.
2705 Include stor-layout.h.
2708 * config/sol2-c.c: Include stringpool.h.
2710 * config/sol2-cxx.c: Include stringpool.h.
2711 * config/sol2.c: Include stringpool.h.
2713 * config/sparc/sparc.c: Include stringpool.h.
2714 Include stor-layout.h.
2717 * config/spu/spu-c.c: Include stringpool.h.
2718 * config/spu/spu.c: Include stringpool.h.
2719 Include stor-layout.h.
2722 * config/stormy16/stormy16.c: Include stringpool.h.
2723 Include stor-layout.h.
2726 * config/tilegx/tilegx.c: Include stringpool.h.
2727 Include stor-layout.h.
2730 * config/tilepro/tilepro.c: Include stringpool.h.
2731 Include stor-layout.h.
2734 * config/v850/v850-c.c: Include stringpool.h.
2736 * config/v850/v850.c: Include stringpool.h.
2737 Include stor-layout.h.
2740 * config/vax/vax.c: Include calls.h.
2742 * config/vms/vms.c: Include stringpool.h.
2743 * config/vxworks.c: Include stringpool.h.
2744 * config/xtensa/xtensa.c: Include stringpool.h.
2745 Include stor-layout.h.
2748 * convert.c: Include stor-layout.h.
2749 * coverage.c: Include stringpool.h.
2750 Include stor-layout.h.
2751 * dbxout.c: Include varasm.h.
2752 Include stor-layout.h.
2753 * dojump.c: Include stor-layout.h.
2754 * dse.c: Include stor-layout.h.
2755 * dwarf2asm.c: Include stringpool.h.
2757 * dwarf2cfi.c: Include stor-layout.h.
2758 * dwarf2out.c: Include rtl.h.
2759 Include stringpool.h.
2760 Include stor-layout.h.
2764 Move inclusion of rtl.h earlier in the file.
2765 * emit-rtl.c: Include varasm.h.
2766 * except.c: Include stringpool.h.
2767 Include stor-layout.h.
2768 * explow.c: Include stor-layout.h.
2769 * expmed.c: Include stor-layout.h.
2770 * expr.c: Include stringpool.h.
2771 Include stor-layout.h.
2774 * final.c: Include varasm.h.
2775 * fold-const.c: Include stor-layout.h.
2777 Include tree-iterator.h.
2778 * function.c: Include stor-layout.h.
2780 Include stringpool.h.
2781 * genattrtab.c (write_header): Emit includes for varasm.h,
2782 stor-layout.h and calls.h.
2783 * genautomata.c (main): Likewise.
2784 * genemit.c: Likewise.
2785 * genopinit.c: Likewise.
2786 * genoutput.c (output_prologue): Likewise.
2787 * genpeep.c: Likewise.
2788 * genpreds.c (write_insn_preds_c): Likewise.
2789 * gengtype.c (open_base_files): Add stringpool.h.
2790 * gimple-expr.c: Include stringpool.h.
2791 Include stor-layout.h.
2792 * gimple-fold.c: Include stringpool.h.
2795 Include stor-layout.h.
2796 * gimple-low.c: Include tree-nested.h.
2798 * gimple-pretty-print.c: Include stringpool.h.
2799 * gimple-ssa-strength-reduction.c: Include stor-layout.h.
2801 * gimple-walk.c: Include stmt.h.
2802 * gimple.c: Include calls.h.
2804 Include stor-layout.h.
2805 * gimplify.c: Include stringpool.h.
2808 Include stor-layout.h.
2810 Include print-tree.h.
2812 * gimplify-me.c: Include stmt.h
2813 Include stor-layout.h
2814 * internal-fn.c: Include stor-layout.h.
2815 * ipa-devirt.c: Include print-tree.h.
2817 * ipa-inline-analysis.c: Include stor-layout.h.
2818 Include stringpool.h.
2819 Include print-tree.h.
2820 * ipa-inline.c: Include trans-mem.h.
2822 * ipa-prop.c: Include expr.h.
2823 Include stor-layout.h.
2824 Include print-tree.h.
2825 * ipa-pure-const.c: Include print-tree.h.
2827 * ipa-reference.c: Include calls.h.
2828 * ipa-split.c: Include stringpool.h.
2831 * ipa.c: Include calls.h.
2832 Include stringpool.h.
2833 * langhooks.c: Include stringpool.h.
2835 * lto-cgraph.c: Include stringpool.h.
2836 * lto-streamer-in.c: Include stringpool.h.
2837 * lto-streamer-out.c: Include stor-layout.h.
2838 Include stringpool.h.
2839 * omp-low.c: Include stringpool.h.
2840 Include stor-layout.h.
2842 * optabs.c: Include stor-layout.h.
2843 Include stringpool.h.
2845 * passes.c: Include varasm.h.
2846 * predict.c: Include calls.h.
2847 * print-rtl.c: Include print-tree.h.
2848 * print-tree.c: Include varasm.h.
2849 Include print-rtl.h.
2850 Include stor-layout.h.
2851 * realmpfr.c: Include stor-layout.h.
2852 * reg-stack.c: Include varasm.h.
2853 * sdbout.c: Include varasm.h.
2854 Include stor-layout.h.
2855 * simplify-rtx.c: Include varasm.h.
2856 * stmt.c: Include varasm.h.
2857 Include stor-layout.h.
2858 * stor-layout.c: Include stor-layout.h.
2859 Include stringpool.h.
2861 Include print-tree.h.
2862 * symtab.c: Include rtl.h.
2863 Include print-tree.h.
2867 * targhooks.c: Include stor-layout.h.
2869 * toplev.c: Include varasm.h.
2870 Include tree-inline.h.
2871 * trans-mem.c: Include calls.h.
2875 * tree-affine.c: Include expr.h.
2876 * tree-browser.c: Include print-tree.h.
2877 * tree-call-cdce.c: Include stor-layout.h.
2878 * tree-cfg.c: Include trans-mem.h.
2879 Include stor-layout.h.
2880 Include print-tree.h.
2881 * tree-complex.c: Include stor-layout.h.
2882 * tree-data-ref.c: Include expr.h.
2883 * tree-dfa.c: Include stor-layout.h.
2884 * tree-eh.c: Include expr.h.
2886 * tree-emutls.c: Include stor-layout.h.
2888 * tree-if-conv.c: Include stor-layout.h.
2889 * tree-inline.c: Include stor-layout.h.
2891 * tree-loop-distribution.c: Include stor-layout.h.
2892 * tree-nested.c: Include stringpool.h.
2893 Include stor-layout.h.
2894 * tree-object-size.c: Include tree-object-size.h.
2895 * tree-outof-ssa.c: Include stor-layout.h.
2896 * tree-parloops.c: Include stor-layout.h.
2897 Include tree-nested.h.
2898 * tree-pretty-print.c: Include stor-layout.h.
2900 * tree-profile.c: Include varasm.h.
2901 Include tree-nested.h.
2902 * tree-scalar-evolution.c: Include expr.h.
2903 * tree-sra.c: Include stor-layout.h.
2904 * tree-ssa-address.c: Include stor-layout.h.
2905 * tree-ssa-ccp.c: Include stor-layout.h.
2906 * tree-ssa-dce.c: Include calls.h.
2907 * tree-ssa-dom.c: Include stor-layout.h.
2908 * tree-ssa-forwprop.c: Include stor-layout.h.
2909 * tree-ssa-ifcombine.c: Include stor-layout.h.
2910 * tree-ssa-loop-ivopts.c: Include stor-layout.h.
2911 * tree-ssa-loop-niter.c: Include calls.h.
2913 * tree-ssa-loop-prefetch.c: Include stor-layout.h.
2914 * tree-ssa-math-opts.c: Include stor-layout.h.
2915 * tree-ssa-operands.c: Include stmt.h.
2916 Include print-tree.h.
2917 * tree-ssa-phiopt.c: Include stor-layout.h.
2918 * tree-ssa-reassoc.c: Include stor-layout.h.
2919 * tree-ssa-sccvn.c: Include stor-layout.h.
2920 * tree-ssa-sink.c: Include stor-layout.h.
2921 * tree-ssa-strlen.c: Include stor-layout.h.
2922 * tree-ssa-structalias.c: Include stor-layout.h.
2924 * tree-ssa-tail-merge.c: Include stor-layout.h.
2925 Include trans-mem.h.
2926 * tree-ssa-uncprop.c: Include stor-layout.h.
2927 * tree-ssa.c: Include stor-layout.h.
2928 * tree-ssanames.c: Include stor-layout.h.
2929 * tree-streamer-in.c: Include stringpool.h.
2930 * tree-streamer-out.c: Include stor-layout.h.
2931 * tree-switch-conversion.c: Include varasm.h.
2932 Include stor-layout.h.
2933 * tree-tailcall.c: Include stor-layout.h.
2934 * tree-vect-data-refs.c: Include stor-layout.h.
2935 * tree-vect-generic.c: Include stor-layout.h.
2936 * tree-vect-loop.c: Include stor-layout.h.
2937 * tree-vect-patterns.c: Include stor-layout.h.
2938 * tree-vect-slp.c: Include stor-layout.h.
2939 * tree-vect-stmts.c: Include stor-layout.h.
2940 * tree-vectorizer.c: Include stor-layout.h.
2941 * tree-vrp.c: Include stor-layout.h.
2943 * tree.c: Include stor-layout.h.
2947 * tsan.c: Include expr.h.
2948 * ubsan.c: Include stor-layout.h.
2949 Include stringpool.h.
2950 * value-prof.c: Include tree-nested.h.
2952 * var-tracking.c: Include varasm.h.
2953 Include stor-layout.h.
2954 * varasm.c: Include stor-layout.h.
2955 Include stringpool.h.
2956 Include gcc-symtab.h.
2958 * varpool.c: Include varasm.h.
2959 * vmsdbgout.c: Include varasm.h.
2960 * xcoffout.c: Include varasm.h.
2962 2013-11-14 Joern Rennecke <joern.rennecke@embecosm.com>
2964 * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
2967 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2969 * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
2971 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2972 Alan Modra <amodra@gmail.com>
2974 * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
2975 (RS6000_SAVE_TOC): Remove.
2976 (RS6000_TOC_SAVE_SLOT): New macro.
2977 * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
2978 (rs6000_parm_start): Use it.
2979 (rs6000_function_arg_advance_1): Likewise.
2980 (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
2981 (rs6000_emit_epilogue): Likewise.
2982 (rs6000_call_aix): Likewise.
2983 (rs6000_output_function_prologue): Do not save/restore r11
2984 around calling _mcount for ABI_ELFv2.
2986 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2987 Alan Modra <amodra@gmail.com>
2989 * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
2991 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
2992 (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
2993 * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
2994 (rs6000_function_parms_need_stack): Likewise.
2995 (rs6000_reg_parm_stack_space): Likewise.
2996 (rs6000_function_arg): Do not replace BLKmode by Pmode when
2997 returning a register argument.
2999 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3000 Michael Gschwind <mkg@us.ibm.com>
3002 * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
3003 (ALTIVEC_ARG_MAX_RETURN): Likewise.
3004 (FUNCTION_VALUE_REGNO_P): Use them.
3005 * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
3006 (rs6000_return_in_msb): New function.
3007 (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
3008 Handle aggregates of up to 16 bytes for ELFv2.
3009 (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
3011 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3012 Michael Gschwind <mkg@us.ibm.com>
3014 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
3015 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
3016 (rs6000_discover_homogeneous_aggregate): Likewise.
3017 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
3018 (rs6000_function_arg_advance_1): Likewise.
3019 (rs6000_function_arg): Likewise.
3020 (rs6000_arg_partial_bytes): Likewise.
3021 (rs6000_psave_function_arg): Handle BLKmode arguments.
3023 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3024 Michael Gschwind <mkg@us.ibm.com>
3026 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
3027 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
3028 (rs6000_discover_homogeneous_aggregate): Likewise.
3029 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
3030 (rs6000_function_arg_advance_1): Likewise.
3031 (rs6000_function_arg): Likewise.
3032 (rs6000_arg_partial_bytes): Likewise.
3033 (rs6000_psave_function_arg): Handle BLKmode arguments.
3035 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3037 * config/rs6000/rs6000.c (machine_function): New member
3039 (rs6000_emit_prologue): Set r2_setup_needed if necessary.
3040 (rs6000_output_mi_thunk): Set r2_setup_needed.
3041 (rs6000_output_function_prologue): Output global entry point
3042 prologue and local entry point marker if needed for ABI_ELFv2.
3043 Output -mprofile-kernel code here.
3044 (output_function_profiler): Do not output -mprofile-kernel
3045 code here; moved to rs6000_output_function_prologue.
3046 (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
3048 (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
3049 (rs6000_output_function_entry): Likewise.
3050 (rs6000_assemble_integer): Likewise.
3051 (rs6000_elf_encode_section_info): Likewise.
3052 (rs6000_elf_declare_function_name): Do not create dot symbols
3053 or .opd section for ABI_ELFv2.
3055 (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
3056 (rs6000_trampoline_init): Likewise.
3057 (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
3059 (rs6000_call_aix): Handle ELFv2 indirect calls. Do not check
3060 for function descriptors in ABI_ELFv2.
3062 * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
3063 on ABI_AIX only, not ABI_ELFv2.
3064 ("*call_value_indirect_aix<mode>"): Likewise.
3065 ("*call_indirect_elfv2<mode>"): New pattern.
3066 ("*call_value_indirect_elfv2<mode>"): Likewise.
3068 * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
3069 check for function descriptors in ABI_ELFv2.
3070 ("current_file_function_operand"): Likewise.
3072 * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
3074 (FUNC_NAME): Define ELFv2 variant.
3075 (JUMP_TARGET): Likewise.
3076 (FUNC_START): Likewise.
3077 (HIDDEN_FUNC): Likewise.
3078 (FUNC_END): Likeiwse.
3080 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3082 * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
3083 and --with-abi=elfv2.
3084 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
3085 * config/rs6000/rs6000.opt (mabi=elfv1): New option.
3086 (mabi=elfv2): Likewise.
3087 * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
3088 * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
3090 (ELFv2_ABI_CHECK): New macro.
3091 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
3092 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
3093 (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
3094 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
3095 _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
3097 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
3098 (debug_stack_info): Likewise.
3099 (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
3100 (rs6000_legitimize_tls_address): Likewise.
3101 (rs6000_conditional_register_usage): Likewise.
3102 (rs6000_emit_move): Likewise.
3103 (init_cumulative_args): Likewise.
3104 (rs6000_function_arg_advance_1): Likewise.
3105 (rs6000_function_arg): Likewise.
3106 (rs6000_arg_partial_bytes): Likewise.
3107 (rs6000_output_function_entry): Likewise.
3108 (rs6000_assemble_integer): Likewise.
3109 (rs6000_savres_strategy): Likewise.
3110 (rs6000_stack_info): Likewise.
3111 (rs6000_function_ok_for_sibcall): Likewise.
3112 (rs6000_emit_load_toc_table): Likewise.
3113 (rs6000_savres_routine_name): Likewise.
3114 (ptr_regno_for_savres): Likewise.
3115 (rs6000_emit_prologue): Likewise.
3116 (rs6000_emit_epilogue): Likewise.
3117 (rs6000_output_function_epilogue): Likewise.
3118 (output_profile_hook): Likewise.
3119 (output_function_profiler): Likewise.
3120 (rs6000_trampoline_size): Likewise.
3121 (rs6000_trampoline_init): Likewise.
3122 (rs6000_elf_output_toc_section_asm_op): Likewise.
3123 (rs6000_elf_encode_section_info): Likewise.
3124 (rs6000_elf_reloc_rw_mask): Likewise.
3125 (rs6000_elf_declare_function_name): Likewise.
3126 (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
3127 except that rs6000_compat_align_parm is always assumed false.
3128 (rs6000_gimplify_va_arg): Likewise.
3129 (rs6000_call_aix): Update comment.
3130 (rs6000_sibcall_aix): Likewise.
3131 * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
3132 Treat ABI_ELFv2 the same as ABI_AIX.
3133 ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
3134 ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
3135 ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
3136 ("load_toc_aix_si"): Likewise.
3137 ("load_toc_aix_di"): Likewise.
3139 ("call_value"): Likewise.
3140 ("*call_local_aix<mode>"): Likewise.
3141 ("*call_value_local_aix<mode>"): Likewise.
3142 ("*call_nonlocal_aix<mode>"): Likewise.
3143 ("*call_value_nonlocal_aix<mode>"): Likewise.
3144 ("*call_indirect_aix<mode>"): Likewise.
3145 ("*call_value_indirect_aix<mode>"): Likewise.
3146 ("sibcall"): Likewise.
3147 ("sibcall_value"): Likewise.
3148 ("*sibcall_aix<mode>"): Likewise.
3149 ("*sibcall_value_aix<mode>"): Likewise.
3150 * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
3151 ("current_file_function_operand"): Likewise.
3153 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3155 * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
3156 by making use of the fact that for vector / floating point arguments
3157 passed both in VRs/FPRs and in the fixed parameter area, the partial
3158 bytes mechanism is in fact not used.
3160 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3162 * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
3163 (rs6000_finish_function_arg): Likewise.
3164 (rs6000_function_arg): Use rs6000_psave_function_arg and
3165 rs6000_finish_function_arg to handle both vector and floating
3166 point arguments that are also passed in GPRs / the stack.
3168 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3170 * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
3171 (USE_ALTIVEC_FOR_ARG_P): Likewise.
3172 (rs6000_darwin64_record_arg_advance_recurse): Update uses.
3173 (rs6000_function_arg_advance_1):Likewise.
3174 (rs6000_darwin64_record_arg_recurse): Likewise.
3175 (rs6000_function_arg): Likewise.
3176 (rs6000_arg_partial_bytes): Likewise.
3178 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3180 * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
3181 "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
3182 (rs6000_savres_strategy): Likewise.
3183 (rs6000_return_addr): Likewise.
3184 (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
3185 testing for ABI_V4 (since ABI_DARWIN is impossible here).
3186 (rs6000_emit_prologue): Likewise.
3187 (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
3188 (rs6000_elf_declare_function_name): Remove duplicated test.
3189 * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
3190 for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
3191 ("load_toc_v4_PIC_1_normal"): Likewise.
3192 ("load_toc_v4_PIC_1_476"): Likewise.
3193 ("load_toc_v4_PIC_1b"): Likewise.
3194 ("load_toc_v4_PIC_1b_normal"): Likewise.
3195 ("load_toc_v4_PIC_1b_476"): Likewise.
3196 ("load_toc_v4_PIC_2"): Likewise.
3197 ("load_toc_v4_PIC_3b"): Likewise.
3198 ("load_toc_v4_PIC_3c"): Likewise.
3199 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
3200 (RS6000_SAVE_AREA): Likewise.
3201 (FP_ARG_MAX_REG): Likewise.
3202 (RETURN_ADDRESS_OFFSET): Likewise.
3203 * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
3205 (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
3206 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
3208 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3210 * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
3211 (rs6000_call_aix): ... this. Handle both direct and indirect calls.
3212 Create call insn directly instead of via various gen_... routines.
3213 Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
3214 (rs6000_sibcall_aix): New function.
3215 * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
3216 (TOC_SAVE_OFFSET_64BIT): Likewise.
3217 (AIX_FUNC_DESC_TOC_32BIT): Likewise.
3218 (AIX_FUNC_DESC_TOC_64BIT): Likewise.
3219 (AIX_FUNC_DESC_SC_32BIT): Likewise.
3220 (AIX_FUNC_DESC_SC_64BIT): Likewise.
3221 ("call" expander): Call rs6000_call_aix.
3222 ("call_value" expander): Likewise.
3223 ("call_indirect_aix<ptrsize>"): Replace this pattern ...
3224 ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
3225 ("*call_indirect_aix<mode>"): ... by this insn pattern.
3226 ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
3227 ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
3228 ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
3229 ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
3230 ("*call_nonlocal_aix<mode>"): ... this pattern.
3231 ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
3232 ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
3233 ("*call_local_aix<mode>"): New insn pattern.
3234 ("*call_value_local_aix<mode>"): Likewise.
3235 ("sibcall" expander): Call rs6000_sibcall_aix.
3236 ("sibcall_value" expander): Likewise. Move earlier in file.
3237 ("*sibcall_nonlocal_aix<mode>"): Replace by ...
3238 ("*sibcall_aix<mode>"): ... this pattern.
3239 ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
3240 ("*sibcall_value_aix<mode>"): ... this pattern.
3241 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
3242 (rs6000_call_aix): Add prototype.
3243 (rs6000_sibcall_aix): Likewise.
3245 2013-11-14 Jakub Jelinek <jakub@redhat.com>
3248 * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
3249 isn't confused by the artificial decl.
3251 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3253 * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
3254 RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
3255 Instead, add USEs of all modified call-saved CR fields to the
3256 insn storing the result to the stack slot, and provide an
3257 appropriate REG_FRAME_RELATED_EXPR for that insn.
3258 * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
3259 * config/rs6000/predicates.md ("crsave_operation"): New predicate.
3261 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3262 Alan Modra <amodra@gmail.com>
3264 * function.c (assign_parms): Use all.reg_parm_stack_space instead
3265 of re-evaluating REG_PARM_STACK_SPACE target macro.
3266 (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE. Use it
3267 instead of evaluating target macro REG_PARM_STACK_SPACE every time.
3268 (assign_parm_find_entry_rtl): Update call.
3269 * calls.c (initialize_argument_information): Update call.
3270 (emit_library_call_value_1): Likewise.
3271 * expr.h (locate_and_pad_parm): Update prototype.
3273 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3275 * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
3278 2013-11-14 DJ Delorie <dj@redhat.com>
3280 * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
3283 2013-11-14 Jeff Law <law@redhat.com>
3285 * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
3286 EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
3288 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
3290 * doc/invoke.texi: Update documentation for AArch64's -mcpu
3293 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
3295 * config/aarch64/aarch64-cores.def (example-1): Remove.
3296 (example-2): Likewise.
3297 * config/aarch64/aarch64-tune.md: Regenerate.
3298 * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
3299 (generic_sched): Remove "large", "small".
3300 * config/aarch64/large.md: Delete.
3301 * config/aarch64/small.md: Delete.
3303 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
3305 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
3306 * config/aarch64/aarch64-tune.md: Regenerate.
3307 * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
3308 (generic_sched): "no" if we are tuning for cortexa15.
3309 * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
3312 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
3314 * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
3315 * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
3316 * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
3317 (all_cores): Use cortexa53 when tuning for "generic".
3318 (aarch64_override_options): Fix comment.
3319 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
3320 * config/aarch64/aarch64-generic.md: Delete.
3322 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
3324 * config/aarch64/aarch64.c (all_architectures): Remove "generic".
3326 2013-11-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3328 * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
3329 (generic_rtx_cost_table): Remove.
3330 (aarch64_rtx_costs): Use fields from cpu_cost_table.
3331 * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
3333 (cpu_rtx_cost_table): Remove.
3335 2013-11-14 Julian Brown <julian@codesourcery.com>
3336 Joey Ye <joey.ye@arm.com>
3338 * config/arm/arm.c (arm_cortex_m_branch_cost): New.
3339 (arm_v7m_tune): New.
3340 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
3341 arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
3342 arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
3343 * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
3345 2013-11-14 Kirill Yukhin <kirill.yukhin@intel.com>
3348 * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
3351 2013-11-14 Jakub Jelinek <jakub@redhat.com>
3352 Uros Bizjak <ubizjak@gmail.com>
3355 * config/i386/i386.md (*anddi_2): Only allow CCZmode if
3356 operands[2] satisfies_constraint_Z that might have bit 31 set.
3358 2013-11-13 Jeff Law <law@redhat.com>
3360 PR tree-optimization/59102
3361 * gimple-ssa-isolate-paths.c
3362 (insert_trap_and_remove_trailing_statments): Ensure STMT is a
3363 gimple assignment before looking at gimple_assign_lhs.
3365 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
3367 * ira.c: Add comment about threads at the top of file.
3369 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
3371 * ira-color.c (coalesce_allocnos): Don't allocate and free
3374 2013-11-14 Tom de Vries <tom@codesourcery.com>
3376 * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
3377 equality for GIMPLE_ASSIGN.
3379 2013-11-14 Tom de Vries <tom@codesourcery.com>
3381 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
3383 (gimple_equal_p): ... here.
3385 2013-11-14 Tom de Vries <tom@codesourcery.com>
3387 * trans-mem.c (is_tm_ending): New function.
3388 * gimple.h (is_tm_ending): Declare.
3389 * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
3391 (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
3393 2013-11-14 Tom de Vries <tom@codesourcery.com>
3395 * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
3397 2013-11-13 Andrew MacLeod <amacleod@redhat.com>
3399 * gimple-walk.h: New File. Relocate prototypes from gimple.h.
3400 (struct walk_stmt_info): Relocate here from gimple.h.
3401 * gimple-iterator.h: New File. Relocate prototypes from gimple.h.
3402 (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
3403 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
3404 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
3405 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
3406 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
3407 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
3408 * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
3409 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
3410 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
3411 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
3412 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
3413 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
3414 (struct walk_stmt_info): Move to gimple-walk.h.
3415 (gimple_seq_set_location): Move to gimple.c
3416 * gimple-walk.c: New File.
3417 (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
3418 walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
3419 walk_stmt_load_store_ops): Relocate here from gimple.c.
3420 * gimple-iterator.c: Include gimple-iterator.h.
3421 * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
3422 walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
3423 walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
3425 (gimple_seq_set_location): Relocate from gimple.h.
3426 * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
3427 * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
3428 * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
3429 * Makefile.in (OBJS): Add gimple-walk.o
3430 * asan.c: Update Include list as required for gimple-iterator.h and
3432 * cfgexpand.c: Likewise.
3433 * cfgloop.c: Likewise.
3434 * cfgloopmanip.c: Likewise.
3435 * cgraph.c: Likewise.
3436 * cgraphbuild.c: Likewise.
3437 * cgraphunit.c: Likewise.
3438 * gimple-fold.c: Likewise.
3439 * gimple-low.c: Likewise.
3440 * gimple-pretty-print.c: Likewise.
3441 * gimple-ssa-isolate-paths.c: Likewise.
3442 * gimple-ssa-strength-reduction.c: Likewise.
3443 * gimple-streamer-in.c: Likewise.
3444 * gimple-streamer-out.c: Likewise.
3445 * gimplify.c: Likewise.
3446 * graphite-blocking.c: Likewise.
3447 * graphite-clast-to-gimple.c: Likewise.
3448 * graphite-dependences.c: Likewise.
3449 * graphite-interchange.c: Likewise.
3450 * graphite-optimize-isl.c: Likewise.
3451 * graphite-poly.c: Likewise.
3452 * graphite-scop-detection.c: Likewise.
3453 * graphite-sese-to-poly.c: Likewise.
3454 * graphite.c: Likewise.
3455 * ipa-inline-analysis.c: Likewise.
3456 * ipa-profile.c: Likewise.
3457 * ipa-prop.c: Likewise.
3458 * ipa-pure-const.c: Likewise.
3459 * ipa-split.c: Likewise.
3460 * lto-streamer-in.c: Likewise.
3461 * lto-streamer-out.c: Likewise.
3462 * omp-low.c: Likewise.
3463 * predict.c: Likewise.
3464 * profile.c: Likewise.
3466 * tracer.c: Likewise.
3467 * trans-mem.c: Likewise.
3468 * tree-call-cdce.c: Likewise.
3469 * tree-cfg.c: Likewise.
3470 * tree-cfgcleanup.c: Likewise.
3471 * tree-complex.c: Likewise.
3472 * tree-data-ref.c: Likewise.
3473 * tree-dfa.c: Likewise.
3474 * tree-eh.c: Likewise.
3475 * tree-emutls.c: Likewise.
3476 * tree-if-conv.c: Likewise.
3477 * tree-inline.c: Likewise.
3478 * tree-into-ssa.c: Likewise.
3479 * tree-loop-distribution.c: Likewise.
3480 * tree-nested.c: Likewise.
3481 * tree-nrv.c: Likewise.
3482 * tree-object-size.c: Likewise.
3483 * tree-outof-ssa.c: Likewise.
3484 * tree-parloops.c: Likewise.
3485 * tree-predcom.c: Likewise.
3486 * tree-profile.c: Likewise.
3487 * tree-scalar-evolution.c: Likewise.
3488 * tree-sra.c: Likewise.
3489 * tree-ssa-ccp.c: Likewise.
3490 * tree-ssa-coalesce.c: Likewise.
3491 * tree-ssa-copy.c: Likewise.
3492 * tree-ssa-copyrename.c: Likewise.
3493 * tree-ssa-dce.c: Likewise.
3494 * tree-ssa-dom.c: Likewise.
3495 * tree-ssa-dse.c: Likewise.
3496 * tree-ssa-forwprop.c: Likewise.
3497 * tree-ssa-ifcombine.c: Likewise.
3498 * tree-ssa-live.c: Likewise.
3499 * tree-ssa-loop-ch.c: Likewise.
3500 * tree-ssa-loop-im.c: Likewise.
3501 * tree-ssa-loop-ivcanon.c: Likewise.
3502 * tree-ssa-loop-ivopts.c: Likewise.
3503 * tree-ssa-loop-manip.c: Likewise.
3504 * tree-ssa-loop-niter.c: Likewise.
3505 * tree-ssa-loop-prefetch.c: Likewise.
3506 * tree-ssa-loop.c: Likewise.
3507 * tree-ssa-math-opts.c: Likewise.
3508 * tree-ssa-phiopt.c: Likewise.
3509 * tree-ssa-phiprop.c: Likewise.
3510 * tree-ssa-pre.c: Likewise.
3511 * tree-ssa-propagate.c: Likewise.
3512 * tree-ssa-reassoc.c: Likewise.
3513 * tree-ssa-sink.c: Likewise.
3514 * tree-ssa-strlen.c: Likewise.
3515 * tree-ssa-structalias.c: Likewise.
3516 * tree-ssa-tail-merge.c: Likewise.
3517 * tree-ssa-ter.c: Likewise.
3518 * tree-ssa-threadedge.c: Likewise.
3519 * tree-ssa-threadupdate.c: Likewise.
3520 * tree-ssa-uncprop.c: Likewise.
3521 * tree-ssa-uninit.c: Likewise.
3522 * tree-ssa.c: Likewise.
3523 * tree-stdarg.c: Likewise.
3524 * tree-switch-conversion.c: Likewise.
3525 * tree-tailcall.c: Likewise.
3526 * tree-vect-data-refs.c: Likewise.
3527 * tree-vect-generic.c: Likewise.
3528 * tree-vect-loop-manip.c: Likewise.
3529 * tree-vect-loop.c: Likewise.
3530 * tree-vect-patterns.c: Likewise.
3531 * tree-vect-slp.c: Likewise.
3532 * tree-vect-stmts.c: Likewise.
3533 * tree-vectorizer.c: Likewise.
3534 * tree-vrp.c: Likewise.
3537 * value-prof.c: Likewise.
3538 * vtable-verify.c: Likewise.
3540 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
3542 * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
3545 2013-11-13 Jeff Law <law@redhat.com>
3547 * PR middle-end/59119
3548 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
3549 function, extracted from gimple_ssa_isolate_erroneous_paths.
3550 (find_explicit_erroneous_behaviour): Similarly.
3551 (insert_trap_and_remove_trailing_statements): Remove statements
3554 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
3556 * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
3557 Make that check explicit. BB_HEAD cannot be NULL, remove check for it.
3558 * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
3559 looking at INSN_CODE.
3560 * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
3561 active_insn_p object, respect basic block boundaries.
3562 * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
3563 follows immediately after the jump table data label.
3564 * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
3565 * config/sh/sh.c (barrier_align): Likewise. Rearrange code such
3566 that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
3568 2013-11-13 Teresa Johnson <tejohnson@google.com>
3571 * predict.c (drop_profile): Error is currently too strict.
3572 (handle_missing_profiles): Pass call_count to drop_profile.
3574 2013-11-13 Teresa Johnson <tejohnson@google.com>
3577 * ipa-inline.c (edge_badness): Fix overflow.
3579 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
3581 PR rtl-optimization/59036
3582 * ira-color.c (struct allocno_color_data): Add new members
3583 first_thread_allocno, next_thread_allocno, thread_freq.
3584 (sorted_copies): New static var.
3585 (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
3586 (allocno_thread_conflict_p, merge_threads)
3587 (form_threads_from_copies, form_threads_from_bucket)
3588 (form_threads_from_colorable_allocno, init_allocno_threads): New
3590 (bucket_allocno_compare_func): Add comparison by thread frequency
3592 (add_allocno_to_ordered_bucket): Rename to
3593 add_allocno_to_ordered_colorable_bucket. Remove parameter.
3594 (push_only_colorable): Call form_threads_from_bucket.
3595 (color_pass): Call init_allocno_threads. Use
3596 consideration_allocno_bitmap instead of coloring_allocno_bitmap
3597 for nuillify allocno color data.
3598 (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
3599 (coalesce_allocnos): Use static sorted copies.
3601 2013-11-13 Jakub Jelinek <jakub@redhat.com>
3603 * passes.c (execute_todo): Don't call do_per_function if
3605 (execute_one_ipa_transform_pass, execute_one_pass): Don't call
3606 execute_function_dump if dump_file is NULL.
3608 2013-11-13 Martin Jambor <mjambor@suse.cz>
3610 * cgraph.c (cgraph_get_create_node): Do what
3611 cgraph_get_create_real_symbol_node used to do.
3612 (cgraph_get_create_real_symbol_node): Removed. Changed all users to
3613 call cgraph_get_create_node.
3614 * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
3615 * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
3616 cgraph_get_create_node. Assert we get a node.
3618 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
3620 * config/aarch64/aarch64-simd.md (vec_extract): New.
3622 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
3624 * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
3627 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
3629 * cfgexpand.c (expand_used_vars): Allocate space for partitions based
3630 on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
3631 or if optimization is enabled.
3632 * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
3633 require that all the names based on a PARM_DECL or a RESULT_DECL that
3634 isn't ignored for debug info be coalesced.
3636 2013-11-13 Jan-Benedict Glaw <jbglaw@lug-owl.de>
3638 * config/c6x/c6x.c: Include "gimple-expr.h".
3640 2013-11-13 Richard Biener <rguenther@suse.de>
3642 * gimple-streamer-out.c (output_gimple_stmt): Also wrap
3643 decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
3644 * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
3645 dealing with type mismatches inside component reference chains.
3647 2013-11-13 Marc Glisse <marc.glisse@inria.fr>
3649 PR tree-optimization/59077
3650 * ipa-pure-const.c (better_state): Update *state.
3652 2013-11-13 Christophe Lyon <christophe.lyon@linaro.org>
3654 * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
3655 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
3656 Update offset calculations.
3658 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
3661 * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
3662 for fields. Do not add the attribute if the size is negative.
3664 2013-11-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3666 * config/arm/arm.c: Include aarch-cost-tables.h.
3667 (generic_extra_costs): Move from here...
3668 * config/arm/aarch-cost-tables.h: ... To here. New file.
3670 2013-11-13 Alexander Ivchenko <alexander.ivchenko@intel.com>
3671 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3672 Sergey Lega <sergey.s.lega@intel.com>
3673 Anna Tikhonova <anna.tikhonova@intel.com>
3674 Ilya Tocar <ilya.tocar@intel.com>
3675 Andrey Turetskiy <andrey.turetskiy@intel.com>
3676 Ilya Verbin <ilya.verbin@intel.com>
3677 Kirill Yukhin <kirill.yukhin@intel.com>
3678 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3680 * config/i386/i386.c (ix86_print_operand): Support z-masking.
3681 * config/i386/predicate.md (const_0_to_4_operand): New.
3682 (const_0_to_5_operand): Ditto.
3683 * config/i386/sse.md (UNSPEC_COMPRESS): New.
3684 (UNSPEC_COMPRESS_STORE): Ditto.
3685 (UNSPEC_EXPAND): Ditto.
3686 (UNSPEC_EMBEDDED_ROUNDING): Ditto.
3687 (define_mode_attr ssescalarsize): Ditto.
3688 (avx512f_load<mode>_mask): Ditto.
3689 (avx512f_store<mode>_mask): Ditto.
3690 (avx512f_storedqu<mode>_mask): Ditto.
3691 (avx512f_vmcmp<mode>3_mask): Ditto.
3692 (avx512f_fmadd_<mode>_mask): Ditto.
3693 (avx512f_fmadd_<mode>_mask3): Ditto.
3694 (avx512f_fmsub_<mode>_mask): Ditto.
3695 (avx512f_fmsub_<mode>_mask3): Ditto.
3696 (avx512f_fnmadd_<mode>_mask): Ditto.
3697 (avx512f_fnmadd_<mode>_mask3): Ditto.
3698 (avx512f_fnmsub_<mode>_mask): Ditto.
3699 (avx512f_fnmsub_<mode>_mask3): Ditto.
3700 (avx512f_fmaddsub_<mode>_mask): Ditto.
3701 (avx512f_fmaddsub_<mode>_mask3): Ditto.
3702 (avx512f_fmsubadd_<mode>_mask): Ditto.
3703 (avx512f_fmsubadd_<mode>_mask3): Ditto.
3704 (vec_unpacku_float_lo_v16si): Ditto.
3705 (avx512f_vextract<shuffletype>32x4_mask): Ditto.
3706 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
3707 (avx512f_vextract<shuffletype>64x4_mask): Ditto.
3708 (vec_extract_lo_<mode>_maskm): Ditto.
3709 (vec_extract_hi_<mode>_maskm): Ditto.
3710 (avx512f_vternlog<mode>_mask): Ditto.
3711 (avx512f_shufps512_mask): Ditto.
3712 (avx512f_fixupimm<mode>_mask): Ditto.
3713 (avx512f_shufpd512_mask): Ditto.
3714 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
3715 (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
3716 (*avx512f_<code>v8div16qi2_store_mask): Ditto.
3717 (ashr<mode>3<mask_name>): Ditto.
3718 (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
3719 (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
3720 (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
3721 (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
3722 (avx512f_pshufdv3_mask): Ditto.
3723 (avx512f_perm<mode>_mask): Ditto.
3724 (avx512f_vpermi2var<mode>3_mask): Ditto.
3725 (avx512f_vpermt2var<mode>3_mask): Ditto.
3726 (avx512f_compress<mode>_mask): Ditto.
3727 (avx512f_compressstore<mode>_mask): Ditto.
3728 (avx512f_expand<mode>_mask): Ditto.
3729 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
3731 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
3732 (<plusminus_insn><mode>3<mask_name>): Ditto.
3733 (*<plusminus_insn><mode>3<mask_name>): Ditto.
3734 (mul<mode>3<mask_name>): Ditto.
3735 (*mul<mode>3<mask_name>): Ditto.
3736 (<sse>_div<mode>3<mask_name>): Ditto.
3737 (<mask_codefor>rcp14<mode><mask_name>): Ditto.
3738 (<sse>_sqrt<mode>2<mask_name>): Ditto.
3739 (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
3740 (<code><mode>3<mask_name>/smaxmin): Ditto.
3741 (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
3742 (*<code><mode>3<mask_name>/smaxmin): Ditto.
3743 (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
3744 (ufloatv16siv16sf2<mask_name>): Ditto.
3745 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
3746 (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
3747 (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
3748 (float<si2dfmodelower><mode>2<mask_name>): Ditto.
3749 (ufloatv8siv8df<mask_name>): Ditto.
3750 (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
3751 (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
3752 (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
3753 (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
3754 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
3755 (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
3756 (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
3757 (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
3758 (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
3759 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
3760 (vec_extract_lo_<mode><mask_name>): Ditto.
3761 (vec_extract_hi_<mode><mask_name>): Ditto.
3762 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
3763 (avx512f_movddup512<mask_name>): Ditto.
3764 (avx512f_unpcklpd512<mask_name>): Ditto.
3765 (*avx512f_unpcklpd512<mask_name>): Ditto.
3766 (*avx512f_vmscalef<mode>): Ditto.
3767 (avx512f_scalef<mode><mask_name>): Ditto.
3768 (avx512f_getexp<mode><mask_name>): Ditto.
3769 (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
3770 (avx512f_rndscale<mode><mask_name>): Ditto.
3771 (avx512f_shufps512_1<mask_name>): Ditto.
3772 (avx512f_shufpd512_1<mask_name>): Ditto.
3773 (<plusminus_insn><mode>3<mask_name>): Ditto.
3774 (*<plusminus_insn><mode>3<mask_name>): Ditto.
3775 (vec_widen_umult_even_v16si<mask_name>): Ditto.
3776 (*vec_widen_umult_even_v16si<mask_name>): Ditto.
3777 (vec_widen_smult_even_v16si<mask_name>): Ditto.
3778 (*vec_widen_smult_even_v16si<mask_name>): Ditto.
3779 (mul<mode>3<mask_name>): Ditto.
3780 (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
3781 (<shift_insn><mode>3<mask_name>): Ditto.
3782 (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
3783 (avx512f_<rotate><mode><mask_name>): Ditto.
3784 (<code><mode>3<mask_name>/maxmin): Ditto.
3785 (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
3786 (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
3787 (*andnot<mode>3<mask_name>): Ditto.
3788 (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
3789 (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
3790 (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
3791 (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
3792 (vec_set_lo_<mode><mask_name>): Ditto.
3793 (vec_set_hi_<mode><mask_name>): Ditto.
3794 (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
3795 (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
3796 (avx512f_pshufd_1<mask_name>): Ditto.
3797 (<mask_codefor>abs<mode>2<mask_name>): Ditto.
3798 (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
3799 (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
3800 (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
3801 (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
3802 (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
3803 (avx512er_exp2<mode><mask_name>): Ditto.
3804 (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
3805 (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
3806 (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
3807 (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
3808 (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
3809 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
3810 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
3811 (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
3812 (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
3813 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
3814 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
3815 (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
3816 (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
3817 (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
3818 (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
3819 (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
3820 (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
3821 (avx512f_getmant<mode><mask_name>): Ditto.
3822 (clz<mode>2<mask_name>): Ditto.
3823 (<mask_codefor>conflict<mode><mask_name>): Ditto.
3824 (*srcp14<mode>): Remove visibility.
3825 (*rsqrt14<mode>): Ditto.
3826 (*fma_fmsub_<mode>): Ditto.
3827 (*fma_fnmadd_<mode>): Ditto.
3828 (*avx512f_rndscale<mode>): Ditto.
3829 * config/i386/subst.md: New file.
3831 2013-11-13 Joseph Myers <joseph@codesourcery.com>
3833 * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
3834 * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
3835 (atomic_load_explicit, atomic_exchange_explicit)
3836 (atomic_compare_exchange_strong_explicit)
3837 (atomic_compare_exchange_weak_explicit): Use __auto_type to
3838 declare variable initialized with PTR argument.
3840 2013-11-12 Jeff Law <law@redhat.com>
3842 * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
3843 backedge_seen_p. Set, use and pass it to children appropriately.
3844 (thread_through_normal_block): Similarly.
3845 (thread_across_edge): Similarly.
3847 * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
3848 memory references as volatile.
3849 (insert_trap_and_remove_trailing_statements): Fix comment.
3851 2013-11-12 Vladimir Makarov <vmakarov@redhat.com>
3854 * ira-costs.c (record_operand_costs): Check operands number for
3857 2013-11-12 Michael Meissner <meissner@linux.vnet.ibm.com>
3860 * config/rs6000/rs6000.md (movdi_internal32): Eliminate
3861 constraints that would allow DImode into the traditional Altivec
3862 registers, but cause undesirable code generation when loading 0 as
3864 (movdi_internal64): Likewise.
3865 (cmp<mode>_fpr): Do not use %x for CR register output.
3866 (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
3867 -mallow-upper-sf debug switches are used.
3869 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
3871 * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
3872 create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
3873 Relocate prototypes from gimple.h.
3874 * gimplify.h: New File. Relocate some prototypes from gimple.h here.
3875 (gimple_predicate, enum fallback, enum gimplify_status): Relocate
3877 * gimple.h: Move some prototypes to gimplify.h.
3878 (gimple_predicate, enum fallback, enum gimplify_status): Move to
3880 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
3881 Relocate from gimpify.c.
3882 * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
3883 create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
3884 is_gimple_reg_rhs) Relocate from gimplify.c.
3885 * gimplify.c (mark_addressable): Move to gimple-expr.c.
3886 (gimple_seq_add_stmt_without_update): Move to gimple.c.
3887 (remove_suffix, tmp_var_id_num, create_tmp_var_name,
3888 create_tmp_var_raw, create_tmp_var, create_tmp_reg,
3889 is_gimple_reg_rhs): Move to gimple-expr.c.
3890 (should_carry_location_p): Move to gimple.c.
3891 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
3893 (annotate_one_with_location, annotate_all_with_location_after,
3894 annotate_all_with_location): Move to gimple.c.
3895 (compare_case_labels, sort_case_labels,
3896 preprocess_case_label_vec_for_gimple): Move to gimple.c.
3897 (rhs_predicate_for): Make static.
3898 (gimplify_assign): Relocate from gimple.c.
3899 * gimple.c (gimplify_assign): Move to gimplify.c.
3900 (gimple_seq_add_stmt_without_update, should_carry_location_p,
3901 annotate_one_with_location, annotate_all_with_location_after,
3902 annotate_all_with_location, compare_case_labels, sort_case_labels,
3903 preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
3904 * tree.h (unshare_expr, unshare_expr_without_location,
3905 mark_addressable): Move prototypes to gimplify.h.
3906 * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
3908 * asan.c: Include gimplify.h rather than gimple.h.
3909 * cfgloopmanip.c: Likewise.
3910 * cgraphunit.c: Likewise.
3911 * cilk-common.c: Likewise.
3912 * dwarf2out.c: Dont include gimple.h.
3913 * fold-const.c: Include gimplify.h rather than gimple.h.
3914 * function.c: Likewise.
3915 * gimple-fold.c: Likewise.
3916 * gimple-ssa-strength-reduction.c: Likewise.
3917 * graphite-clast-to-gimple.c: Likewise.
3918 * graphite-sese-to-poly.c: Likewise.
3919 * ipa-prop.c: Likewise.
3920 * ipa-split.c: Likewise.
3922 * langhooks.c: Dont include gimple.h.
3923 * loop-init.c: Include gimplify.h rather than gimple.h.
3924 * omp-low.c: Likewise.
3926 * stor-layout.c: Likewise.
3927 * targhooks.c: Likewise.
3928 * trans-mem.c: Likewise.
3929 * tree-affine.c: Likewise.
3930 * tree-cfg.c: Likewise.
3931 * tree-cfgcleanup.c: Likewise.
3932 * tree-complex.c: Likewise.
3933 * tree-if-conv.c: Likewise.
3934 * tree-inline.c: Likewise.
3935 * tree-iterator.c: Likewise.
3936 * tree-loop-distribution.c: Likewise.
3937 * tree-nested.c: Likewise.
3938 * tree-parloops.c: Likewise.
3939 * tree-predcom.c: Likewise.
3940 * tree-profile.c: Likewise.
3941 * tree-scalar-evolution.c: Likewise.
3942 * tree-sra.c: Likewise.
3943 * tree-ssa-address.c: Likewise.
3944 * tree-ssa-ccp.c: Likewise.
3945 * tree-ssa-dce.c: Likewise.
3946 * tree-ssa-forwprop.c: Likewise.
3947 * tree-ssa-ifcombine.c: Likewise.
3948 * tree-ssa-loop-im.c: Likewise.
3949 * tree-ssa-loop-ivopts.c: Likewise.
3950 * tree-ssa-loop-manip.c: Likewise.
3951 * tree-ssa-loop-niter.c: Likewise.
3952 * tree-ssa-loop-prefetch.c: Likewise.
3953 * tree-ssa-loop-unswitch.c: Likewise.
3954 * tree-ssa-math-opts.c: Likewise.
3955 * tree-ssa-phiopt.c: Likewise.
3956 * tree-ssa-phiprop.c: Likewise.
3957 * tree-ssa-pre.c: Likewise.
3958 * tree-ssa-propagate.c: Likewise.
3959 * tree-ssa-reassoc.c: Likewise.
3960 * tree-ssa-sccvn.c: Likewise.
3961 * tree-ssa-strlen.c: Likewise.
3962 * tree-ssa.c: Likewise.
3963 * tree-switch-conversio: Likewise.n.c
3964 * tree-tailcall.c: Likewise.
3965 * tree-vect-data-refs.c: Likewise.
3966 * tree-vect-generic.c: Likewise.
3967 * tree-vect-loop-manip.c: Likewise.
3968 * tree-vect-loop.c: Likewise.
3969 * tree-vect-patterns.c: Likewise.
3970 * tree-vect-stmts.c: Likewise.
3972 * value-prof.c: Likewise.
3973 * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
3974 * config/alpha/alpha.c: Likewise.
3975 * config/darwin.c: Likewise.
3976 * config/i386/i386.c: Likewise.
3977 * config/ia64/ia64.c: Likewise.
3978 * config/mep/mep.c: Likewise.
3979 * config/mips/mips.c: Likewise.
3980 * config/rs6000/rs6000.c: Likewise.
3981 * config/s390/s390.c: Likewise.
3982 * config/sh/sh.c: Likewise.
3983 * config/sparc/sparc.c: Likewise.
3984 * config/spu/spu.c: Likewise.
3985 * config/stormy16/stormy16.c: Likewise.
3986 * config/tilegx/tilegx.c: Likewise.
3987 * config/tilepro/tilepro.c: Likewise.
3988 * config/xtensa/xtensa.c: Likewise.
3990 2013-11-12 Adam Butcher <adam@jessamine.co.uk>
3992 * tree.c (grow_tree_vec_stat): New function ...
3993 * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
3994 and macro front-end.
3996 2013-11-12 Marek Polacek <polacek@redhat.com>
3998 * final.c (update_alignments): Initialize label to NULL_RTX.
4000 2013-11-12 Jeff Law <law@redhat.com>
4002 * gimple-ssa-isolate-paths.c (check_loadstore): New function.
4003 (insert_trap_and_remove_trailing_statements): New argument OP which
4004 is the NULL pointer. Emit the trap after the load/store through
4005 the NULL pointer. Simplify the RHS of a store through a NULL pointer
4006 when trivial to do so.
4007 (isolate_path): Corresponding changes.
4008 (gimple_ssa_isolate_erroneous_path): Likewise.
4010 2013-11-12 Teresa Johnson <tejohnson@google.com>
4011 Jan Hubicka <jh@suse.cz>
4013 * predict.c (drop_profile): New function.
4014 (handle_missing_profiles): Ditto.
4015 (counts_to_freqs): Don't overwrite estimated frequencies
4016 when function has no profile counts.
4017 * predict.h (handle_missing_profiles): Declare.
4018 * tree-inline.c (freqs_to_counts): New function.
4019 (copy_cfg_body): Invoke freqs_to_counts as needed.
4020 * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
4022 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
4025 * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
4027 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
4029 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
4032 * config/i386/i386.c (ix86_option_override_internal): Check
4033 X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
4034 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
4035 MASK_AVX256_SPLIT_UNALIGNED_LOAD and
4036 MASK_AVX256_SPLIT_UNALIGNED_STORE.
4038 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
4039 Clear m_COREI7_AVX and update comments.
4040 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
4042 2013-11-12 Martin Jambor <mjambor@suse.cz>
4044 PR rtl-optimization/10474
4045 * ira.c (interesting_dest_for_shprep): New function.
4046 (split_live_ranges_for_shrink_wrap): Likewise.
4047 (find_moveable_pseudos): Move calculation of dominance info,
4048 df_analysios and the final anlyses to...
4049 (ira): ...here, call split_live_ranges_for_shrink_wrap.
4051 2013-11-12 Bin Cheng <bin.cheng@arm.com>
4053 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
4054 Handle type conversion.
4056 2013-11-11 Martin Liska <marxin.liska@gmail.com>
4057 Jan Hubicka <jh@suse.cz>
4059 * cgraph.c (dump_cgraph_node): Profile dump added.
4060 * cgraph.h (struct cgraph_node): New time profile variable added.
4061 * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
4062 * gcov-io.h (gcov_type): New profiler type introduced.
4063 * ipa-profile.c (lto_output_node): Streaming for time profile added.
4064 (input_node): Time profiler is read from LTO stream.
4065 * predict.c (maybe_hot_count_p): Hot prediction changed.
4066 * profile.c (instrument_values): New case for time profiler added.
4067 (compute_value_histograms): Read of time profile.
4068 * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
4069 * tree-profile.c (init_ic_make_global_vars): Time profiler
4071 (gimple_init_edge_profiler): TP function instrumentation.
4072 (gimple_gen_time_profiler): New.
4073 * value-prof.c (gimple_add_histogram_value): Support for time profiler
4075 (dump_histogram_value): TP type added to dumps.
4076 (visit_hist): More sensitive check that takes TP into account.
4077 (gimple_find_values_to_profile): TP instrumentation.
4078 * value-prof.h (hist_type): New histogram type added.
4079 (struct histogram_value_t): Pointer to struct function added.
4080 * libgcc/Makefile.in: New GCOV merge function for TP added.
4081 * libgcov.c: function_counter variable introduced.
4082 (_gcov_merge_time_profile): New.
4083 (_gcov_time_profiler): New.
4085 2013-11-11 Marc Glisse <marc.glisse@inria.fr>
4086 Jeff Law <law@redhat.com>
4088 * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
4089 ao_ref_init_from_ptr_and_size for builtins.
4091 2013-11-11 Uros Bizjak <ubizjak@gmail.com>
4092 H.J. Lu <hongjiu.lu@intel.com>
4095 * config/i386/x86-tune.def
4096 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
4097 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
4098 * config/i386/i386.h
4099 (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
4100 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES. Update for renamed
4101 X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
4102 * config/i386/i386.c (ix86_expand_set_or_movmem): Use
4103 TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
4104 misaligned_prologue_used. Check that
4105 desired_aling <= epilogue_size_needed.
4107 2013-11-11 Cong Hou <congh@google.com>
4109 PR tree-optimization/59050
4110 * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
4112 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
4115 * expmed.c (emit_store_flag): Fail for const-const comparison.
4117 2013-11-11 Tristan Gingold <gingold@adacore.com>
4118 Eric Botcazou <ebotcazou@adacore.com>
4120 * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
4121 * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
4122 * tree.def (CONSTRUCTOR): Likewise.
4123 * doc/generic.texi (CONSTRUCTOR): Likewise. Update description.
4124 * gimplify.c (gimplify_init_constructor): Do not clear the object when
4125 the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
4127 2013-11-11 Basile Starynkevitch <basile@starynkevitch.net>
4129 * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
4132 2013-11-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4134 * config/arm/arm.c (arm_new_rtx_costs): Return after handling
4137 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
4139 * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
4141 2013-11-08 Jeff Law <law@redhat.com>
4143 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
4144 threading paths first, then perform PHI node checks if applicable.
4146 2013-11-10 Karlson2k <k2k@narod.ru>
4147 Kai Tietz <ktietz@redhat.com>
4150 * configure.ac: Adding for exported symbols check
4151 and for rdynamic-check executable-extension.
4152 * configure: Regenerated.
4154 2013-11-10 Uros Bizjak <ubizjak@gmail.com>
4156 * mode-switching.c (optimize_mode_switching): Mark block as
4157 nontransparent, if last_mode at block exit is different from no_mode.
4159 2013-11-09 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4161 * function.c (NAME__MAIN): Move to...
4162 * cfgexpand.c (NAME__MAIN): ...here.
4164 2013-11-09 Richard Sandiford <rdsandiford@googlemail.com>
4166 * target.def (can_use_doloop_p): New hook.
4167 * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
4168 * doc/tm.texi: Regenerate.
4169 * doc/md.texi (doloop_begin, doloop_end): Update documentation.
4170 * hooks.h (hook_bool_dint_dint_uint_true): Declare.
4171 * hooks.c (hook_bool_dint_dint_uint_true): New function.
4172 * targhooks.h (can_use_doloop_if_innermost): Declare.
4173 * targhooks.c (can_use_doloop_if_innermost): New function.
4174 * target.h: Include double-int.h.
4175 * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
4176 Remove iteration count, maximum iteration count, loop depth and
4177 enter-at-top inputs from doloop_begin and doloop_end.
4178 * config/arc/arc.md (doloop_begin, doloop_end): Update for new
4180 * config/arc/arc.c (arc_can_use_doloop_p): New function.
4181 (TARGET_CAN_USE_DOLOOP_P): Define.
4182 * config/arm/thumb2.md (doloop_end): Update for new interface.
4183 * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
4184 * config/bfin/bfin.md (doloop_end): Update for new interface.
4185 * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
4186 (TARGET_CAN_USE_DOLOOP_P): Define.
4187 * config/c6x/c6x.md (doloop_end): Update for new interface.
4188 * config/ia64/ia64.md (doloop_end): Update for new interface.
4189 * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
4190 * config/mep/mep.md (doloop_begin, doloop_end): Update for new
4192 * config/mep/mep.c (mep_emit_doloop): Likewise.
4193 (TARGET_CAN_USE_DOLOOP_P): Define.
4194 * config/rs6000/rs6000.md (doloop_end): Update for new interface.
4195 * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
4196 * config/s390/s390.md (doloop_end): Update for new interface.
4197 * config/sh/sh.md (doloop_end): Likewise.
4198 * config/spu/spu.md (doloop_end): Likewise.
4199 * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
4200 * config/tilegx/tilegx.md (doloop_end): Update for new interface.
4201 * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
4202 * config/tilepro/tilepro.md (doloop_end): Update for new interface.
4203 * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
4204 * config/v850/v850.md (doloop_begin, doloop_end): Update for new
4206 * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
4208 2013-11-08 H.J. Lu <hongjiu.lu@intel.com>
4211 * doc/extend.texi: Move Cilk Plus Builtins node before Other
4214 2013-11-08 Andrew MacLeod <amacleod@redhat.com>
4215 Joseph Myers <joseph@codesourcery.com>
4217 * ginclude/stdatomic.h: New file.
4218 * Makefile.in (USER_H): Add stdatomic.h.
4220 2013-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4222 * config/arm/arm.c (arm_new_rtx_costs): Break after handling
4225 2013-11-08 Jeff Law <law@redhat.com>
4227 * tree-ssa-threadupdate.h (delete_thread_path): Declare.
4228 * tree-ssa-threadupdate.c (delete_thread_path): New function.
4229 (ssa_redirect_edges, thread_block_1): Use it.
4230 (thread_through_loop_header, mark_threaded_blocks): Likewise.
4231 (thread_through_all_blocks, register_jump_thread): Likewise.
4232 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
4234 2013-11-08 James Greenhalgh <james.greenhalgh@arm.com>
4236 * config/arm/aarch-common.c
4237 (search_term): New typedef.
4238 (shift_rtx_costs): New array.
4239 (arm_rtx_shift_left_p): New.
4240 (arm_find_sub_rtx_with_search_term): Likewise.
4241 (arm_find_sub_rtx_with_code): Likewise.
4242 (arm_early_load_addr_dep): Add sanity checking.
4243 (arm_no_early_alu_shift_dep): Likewise.
4244 (arm_no_early_alu_shift_value_dep): Likewise.
4245 (arm_no_early_mul_dep): Likewise.
4246 (arm_no_early_store_addr_dep): Likewise.
4248 2013-11-08 Richard Biener <rguenther@suse.de>
4250 PR tree-optimization/59047
4251 * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
4253 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
4255 * common.opt (fcheck-pointer-bounds): Move to ...
4256 * c-family/c.opt: ... here.
4257 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
4258 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
4259 * langhooks.h (lang_hooks): Remove chkp_supported field.
4260 * toplev.c (process_options): Remove chkp_supported check.
4262 2013-11-08 Richard Biener <rguenther@suse.de>
4264 PR tree-optimization/59038
4265 PR tree-optimization/58955
4266 * tree-loop-distribution.c (pg_add_dependence_edges): Revert
4267 previous change. Handle known dependences correctly.
4269 2013-11-08 Tom de Vries <tom@codesourcery.com>
4271 * config/rs6000/t-xilinx: Remove duplicate contents.
4273 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
4274 Joseph Myers <joseph@codesourcery.com>
4276 * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
4277 (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
4278 TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
4279 (struct tree_base): Add atomic_flag field.
4280 * tree.h (TYPE_ATOMIC): New accessor macro.
4281 (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
4282 (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
4283 (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
4284 (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
4285 * tree.c (set_type_quals): Set TYPE_ATOMIC.
4286 (find_atomic_core_type): New function.
4287 (build_qualified_type): Adjust alignment for qualified types.
4288 (build_atomic_base): New function
4289 (build_common_tree_nodes): Build atomicQI_type_node,
4290 atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
4292 * print-tree.c (print_node): Print atomic qualifier.
4293 * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
4294 * target.def (atomic_assign_expand_fenv): New hook.
4295 * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
4296 * doc/tm.texi: Regenerate.
4297 * targhooks.c (default_atomic_assign_expand_fenv): New function.
4298 * targhooks.h (default_atomic_assign_expand_fenv): Declare.
4299 * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
4300 * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
4302 * config/i386/i386.c (enum ix86_builtins): Add
4303 IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
4304 IX86_BUILTIN_FNCLEX.
4305 (bdesc_special_args): Add __builtin_ia32_fnstenv,
4306 __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
4307 (ix86_expand_builtin): Handle the new built-in functions.
4308 (ix86_atomic_assign_expand_fenv): New function.
4309 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
4310 * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
4311 (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
4312 (fnstenv, fldenv, fnstsw, fnclex): New insns.
4314 2013-11-07 Steve Ellcey <sellcey@mips.com>
4316 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
4317 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
4318 (MULTILIB_DIRNAMES): Add fp64 directory.
4319 (MULTILIB_EXCEPTIONS): Add new exclusions.
4321 2013-11-07 Aldy Hernandez <aldyh@redhat.com>
4323 * gimplify.c (gimple_regimplify_operands): Do not set
4325 * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
4326 (rewrite_close_phi_out_of_ssa): Same.
4327 (rewrite_phi_out_of_ssa): Same.
4328 (rewrite_degenerate_phi): Same.
4329 (handle_scalar_deps_crossing_scop_limits): Same.
4330 * tree-if-conv.c (predicate_scalar_phi): Same.
4331 * tree-parloops.c (create_loads_for_reductions): Same.
4332 (create_final_loads_for_reduction): Same.
4333 (create_loads_and_stores_for_name): Same.
4334 (transform_to_exit_first_loop): Same.
4335 (create_parallel_loop): Same.
4336 * tree-ssa-loop-im.c
4337 (move_computations_dom_walker::before_dom_children): Same.
4338 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
4339 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
4340 * tree-ssa-propagate.c (substitute_and_fold): Same.
4341 * tree-vect-loop.c (vect_finalize_reduction): Same.
4342 * tree-vect-stmts.c (vectorizable_call): Same.
4344 2013-11-07 Mike Stump <mikestump@comcast.net>
4346 * config/pdp11/pdp11.c: Include dbxout.h.
4347 * config/picochip/picochip.c: Likewise.
4349 2013-11-07 Cong Hou <congh@google.com>
4351 PR tree-optimization/56764
4352 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
4353 Combine alias checks if it is possible to amortize the runtime
4354 overhead. Return the number of alias checks after merging.
4355 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
4356 Use the function vect_create_cond_for_alias_checks () to check
4357 the number of alias checks.
4359 2013-11-07 Jeff Law <law@redhat.com>
4361 * varpool.c (ctor_for_folding): Fix typo in comment.
4363 2013-11-07 Joern Rennecke <joern.rennecke@embecosm.com>
4365 * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
4366 reg_a := reg_b + reg_a ==> reg_a := reg_a + reg_b
4368 2013-11-07 Jeff Law <law@redhat.com>
4370 * doc/invoke.texi (-fisolate-erroneous-paths): Document.
4372 * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
4373 No longer check if we have __builtin_trap, assume it's available.
4375 2013-11-07 Diego Novillo <dnovillo@google.com>
4377 * attribs.c (lookup_scoped_attribute_spec): Make static.
4378 (get_attribute_namespace): Likewise.
4379 * builtins.c (more_const_call_expr_args_p): Move from tree.h.
4380 (validate_arglist): Move earlier in the file. Make static.
4381 (expand_stack_restore): Move from stmt.c
4382 (expand_stack_save): Move from stmt.c
4383 (rewrite_call_expr_array): Move earlier in the file.
4384 (rewrite_call_expr_valist): Likewise.
4385 * cfgexpand.c: Include hard-reg-set.h before tree.h
4388 (expand_asm_loc): Move from stmt.c.
4389 (n_occurrences): Move from stmt.c.
4390 (check_operand_nalternatives): Move from stmt.c.
4391 (tree_conflicts_with_clobbers_p): Move from stmt.c.
4392 (expand_asm_operands): Move from stmt.c
4393 (expand_asm_stmt): Move from stmt.c
4394 (expand_computed_goto): Move from stmt.c
4395 (expand_goto): Move from stmt.c
4396 (expand_null_return_1): Move from stmt.c
4397 (expand_null_return): Move from stmt.c
4398 (expand_value_return): Move from stmt.c
4399 (expand_return): Move from stmt.c
4400 (expand_main_function): Move from function.c
4401 (stack_protect_prologue): Move from function.c
4402 * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
4403 (build_function_decl_skip_args): Move from tree.c.
4404 * explow.c (tree_expr_size): Move from tree.c.
4405 * expr.c (addr_expr_of_non_mem_decl_p): Remove.
4406 (fields_length): Move from tree.c.
4407 * fold-const.c (size_low_cst): Move from tree.c.
4408 (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
4409 (tree_expr_nonzero_p): Make static. Move earlier in the file.
4410 (fold_build3_initializer_loc): Remove.
4411 (tree_invalid_nonnegative_warnv_p): Make static.
4412 * function.c (expand_main_function): Move to cfgexpand.c.
4413 (stack_protect_prologue): Move to cfgexpand.c.
4414 (set_insn_locations): Move earlier in the file.
4415 * gimple-fold.c: Include langhooks.h.
4416 (truth_type_for): Move from tree.c.
4417 * print-tree.c (print_vec_tree): Remove.
4418 * stmt.c (expand_computed_goto): Move to cfgexpand.c.
4419 (expand_goto): Move to cfgexpand.c.
4420 (n_occurrences): Move to cfgexpand.c.
4421 (expand_asm_loc): Move to cfgexpand.c
4422 (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
4423 (expand_asm_operands): Move to cfgexpand.c.
4424 (expand_asm_stmt): Move to cfgexpand.c.
4425 (check_operand_nalternatives): Move to cfgexpand.c
4426 (expand_null_return): Move to cfgexpand.c.
4427 (expand_value_return): Move to cfgexpand.c.
4428 (expand_null_return_1): Move to cfgexpand.c.
4429 (expand_return): Move to cfgexpand.c.
4430 (expand_stack_save): Move to builtins.c.
4431 (expand_stack_restore): Move to builtins.c
4432 * symtab.c: Include output.h.
4433 (decl_assembler_name_hash): Move from tree.c.
4434 (decl_assembler_name_equal): Move from tree.c.
4435 * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
4436 * tree-eh.c (in_array_bounds_p): Move from tree.c.
4437 (range_in_array_bounds_p): Move from tree.c.
4438 * tree-object-size.c (fini_object_sizes): Make static.
4439 * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
4440 * tree-vrp.c (ssa_name_nonnegative_p): Remove.
4441 * tree.c (decl_assembler_name_equal): Move to symtab.c.
4442 (tree_expr_size): Move to explow.c.
4443 (decl_assembler_name_hash): Move to symtab.c.
4444 (real_twop): Remove.
4445 (tree_expr_size): Move to explow.c.
4446 (stabilize_reference_1): Move earlier in the file. Make static.
4447 (omp_remove_redundant_declare_simd_attrs): Remove.
4448 (simple_cst_list_equal): Move earlier in the file. Make static.
4449 (size_low_cst): Move to fold-const.c.
4450 (build_type_no_quals): Remove.
4451 (build_function_type_skip_args): Move to cgraphclones.c.
4452 (build_function_decl_skip_args): Move to cgraphclones.c.
4453 (in_array_bounds_p): Move to tree-eh.c.
4454 (range_in_array_bounds_p): Move to tree-eh.c.
4455 (truth_type_for): Move to gimple-fold.c.
4456 (list_equal_p): Remove.
4457 * tree.h (decl_assembler_name_equal): Remove.
4458 (decl_assembler_name_hash): Remove.
4459 (truth_type_for): Remove.
4460 (build_type_no_quals): Remove.
4461 (build_function_decl_skip_args): Remove.
4462 (in_array_bounds_p): Remove.
4463 (range_in_array_bounds_p): Remove.
4464 (size_low_cst): Remove.
4465 (omp_remove_redundant_declare_simd_attrs): Remove.
4466 (tree_expr_size): Remove.
4467 (fields_length): Remove.
4468 (stabilize_reference_1): Remove.
4469 (expand_goto): Remove.
4470 (expand_stack_save): Remove.
4471 (expand_stack_restore): Remove.
4472 (expand_return): Remove.
4473 (fold_build3_initializer_loc): Remove.
4474 (tree_expr_nonzero_p): Remove.
4475 (tree_invalid_nonnegative_warnv_p): Remove.
4476 (tree_expr_nonzero_warnv_p): Remove.
4477 (fold_builtin_snprintf_chk): Remove.
4478 (validate_arglist): Remove.
4479 (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
4480 (simple_cst_list_equal): Remove.
4481 (real_twop): Remove.
4482 (expand_main_function): Remove.
4483 (stack_protect_prologue): Remove.
4484 (print_vec_tree): Remove.
4485 (lookup_scoped_attribute_spec): Remove.
4486 (get_attribute_namespace): Remove.
4487 (expand_computed_goto): Remove.
4488 (expand_asm_stmt): Remove.
4489 (list_equal_p): Remove.
4490 (ssa_name_nonnegative_p): Remove.
4491 (fini_object_sizes): Remove.
4492 (addr_expr_of_non_mem_decl_p): Remove.
4493 (is_tm_safe_or_pure): Move to trans-mem.c.
4494 (more_const_call_expr_args_p): Remove.
4495 (save_vtable_map_decl): Remove.
4497 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
4499 * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
4500 linker plugins, too.
4502 * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
4503 link to libgomp and its dependencies.
4504 * config/ia64/hpux.h (LIB_SPEC): Likewise.
4505 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
4506 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
4507 * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
4509 2013-11-07 Jakub Jelinek <jakub@redhat.com>
4511 * tree-ssa-loop-niter.c: Include tree-ssanames.h.
4512 (determine_value_range): Add loop argument. Use get_range_info to
4514 (bound_difference): Adjust caller.
4516 2013-11-07 Richard Biener <rguenther@suse.de>
4517 Jakub Jelinek <jakub@redhat.com>
4519 * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
4520 latches from header PHI arguments from the latch edge.
4522 2013-11-07 Paolo Carlini <paolo.carlini@oracle.com>
4525 * varasm.c (output_constant): Handle NULLPTR_TYPE.
4527 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
4529 * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
4530 misaligned_prologue_used when it has been set.
4532 2013-11-07 Yury Gribov <y.gribov@samsung.com>
4533 Jakub Jelinek <jakub@redhat.com>
4536 * asan.c (get_mem_refs_of_builtin_call): Allow
4537 integer literals as addresses in instrumented builtins.
4539 2013-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4541 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
4542 Explain why plus_constant is not used.
4544 2013-11-07 Richard Biener <rguenther@suse.de>
4546 * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
4547 (canonicalize_value): ... this. Also handle stripping of
4549 (get_value, set_lattice_value, get_value_for_expr): Adjust.
4550 * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
4551 * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
4553 2013-11-07 Richard Biener <rguenther@suse.de>
4555 * tree-dfa.c (get_ref_base_and_extent): Fix casting.
4557 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
4560 * config/i386/i386.md (push peepholer/splitter): Use Pmode
4561 with stack_pointer_rtx.
4563 2013-11-07 Bin Cheng <bin.cheng@arm.com>
4565 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
4566 using operand_equal_p.
4568 2013-11-07 Bin Cheng <bin.cheng@arm.com>
4570 * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
4571 * tree-affine.c (get_inner_reference_aff): Return base.
4572 * tree-affine.h (get_inner_reference_aff): Change prototype.
4574 2013-11-06 Tobias Burnus <burnus@net-b.de>
4576 * doc/invoke.texi (Wdate-time): Fix typo.
4578 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
4580 * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
4581 cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
4582 fp_arith_reg_operand instead of arith_reg_operand.
4584 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
4586 * config/sh/sh.md (adddi3): Remove empty constraints.
4587 Remove can_create_pseudo_p and arith_reg_operand check.
4588 (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
4589 Split before reload.
4591 2013-11-06 Jeff Law <law@redhat.com>
4592 Tom Tromey <tromey@redhat.com>
4594 * gdbinit.in: Disable strict type checking.
4596 2013-11-06 Vladimir Makarov <vmakarov@redhat.com>
4598 * tree-pass.h (make_pass_live_range_shrinkage): New external.
4599 * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
4600 * sched-rgn.c (gate_handle_live_range_shrinkage): New.
4601 (rest_of_handle_live_range_shrinkage): Ditto
4602 (class pass_live_range_shrinkage): Ditto.
4603 (pass_data_live_range_shrinkage): Ditto.
4604 (make_pass_live_range_shrinkage): Ditto.
4605 * sched-int.h (initialize_live_range_shrinkage): New prototype.
4606 (finish_live_range_shrinkage): Ditto.
4607 * sched-deps.c (create_insn_reg_set): Make void return value.
4608 * passes.def: Add pass_live_range_shrinkage.
4609 * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
4610 * haifa-sched.c (live_range_shrinkage_p): New.
4611 (initialize_live_range_shrinkage, finish_live_range_shrinkage):
4613 (rank_for_schedule): Add code for pressure relief through live
4615 (schedule_insn): Print more debug info.
4616 (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
4617 through live range shrinkage.
4618 * doc/invoke.texi (-flive-range-shrinkage): New.
4619 * common.opt (flive-range-shrinkage): New.
4621 2013-11-06 Uros Bizjak <ubizjak@gmail.com>
4624 * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
4625 AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
4626 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
4627 RTXes that return in AVX256 register.
4629 2013-11-06 Richard Biener <rguenther@suse.de>
4631 PR tree-optimization/58653
4632 * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
4633 (prepare_initializers_chain): Adjust.
4635 2013-11-06 Andrew MacLeod <amacleod@redhat.com>
4637 * gimple.h (block_in_transaction): Move to basic-block.h and rename.
4638 (gimple_in_transaction): Use bb_in_transaction.
4639 * basic-block.h (bb_in_transaction): Relocate here and rename.
4640 * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
4642 2013-11-06 Richard Biener <rguenther@suse.de>
4644 * tree.c (drop_tree_overflow): New function.
4645 * tree.h (drop_tree_overflow): Declare.
4646 * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
4647 * tree-vrp.c (range_int_cst_singleton_p): Use
4648 is_overflow_infinity instead of testing TREE_OVERFLOW.
4649 (extract_range_from_assert): Likewise.
4650 (zero_nonzero_bits_from_vr): Likewise.
4651 (extract_range_basic): Likewise.
4652 (register_new_assert_for): Use drop_tree_overflow.
4653 (vrp_visit_phi_node): Likewise.
4655 2013-11-06 Eric Botcazou <ebotcazou@adacore.com>
4657 * config/i386/i386.c (ix86_expand_prologue): Optimize stack
4658 checking for leaf functions without dynamic stack allocation.
4659 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
4660 (ia64_expand_prologue): Likewise.
4661 * config/mips/mips.c (mips_expand_prologue): Likewise.
4662 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
4663 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
4664 (sparc_flat_expand_prologue): Likewise.
4666 2013-11-06 James Greenhalgh <james.greenhalgh@arm.com>
4668 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
4669 (__ST3_LANE_FUNC): Likewise.
4670 (__ST4_LANE_FUNC): Likewise.
4672 2013-11-06 Nick Clifton <nickc@redhat.com>
4674 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
4675 name returned by msp430_mcu_name.
4676 (LIB_SPEC): If a -T option has not been specified then set a
4677 default, mcu-specific, linker script.
4678 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
4679 * config/msp430/msp430.c (msp430x_names): Likewise.
4680 Alpha sort the names for ease of comparison.
4681 (msp430_mcu_name): New function: Returns a string suitable for
4682 use as a C preprocessor symbol based upon the name of the MCU
4684 (msp430_option_override): Accept msp430x and msp430xv2 as generic
4686 * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
4688 * gcc.c (do_spec_1): Do not insert a space after a %* substitution
4689 unless it is the last part of a spec substring.
4690 * doc/invoke.texi (Spec Files): Document space insertion
4693 2013-11-06 Christian Bruel <christian.bruel@st.com>
4695 * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
4696 Factorize probabilities, Use adjust_address instead of
4697 adjust_automodify_address when possible. Enable for optimize.
4698 (sh_expand_strlen): New function.
4699 * config/sh/sh-protos.h (sh_expand_strlen): Declare.
4700 * config/sh/sh.md (strlensi): New pattern.
4701 (UNSPEC_BUILTIN_STRLEN): Define.
4703 2013-11-06 Jakub Jelinek <jakub@redhat.com>
4706 * expr.c (get_bit_range): Handle *offset == NULL_TREE.
4707 (expand_assignment): If *bitpos is negative, set *offset
4708 and adjust *bitpos, so that it is not negative.
4710 2013-11-06 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
4712 * config/i386/bdver3.md : Added two additional decoder units
4713 to support issue rate of 4 and remodeled vector unit.
4714 * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
4715 architectures is set to 4.
4716 * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
4717 lookahead is set to 4 for BD architectures.
4719 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4721 * config/rs6000/rs6000.c (rs6000_option_override_internal):
4722 Remove restriction against use of VSX instructions when generating
4723 code for little endian mode.
4725 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4727 * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
4728 for both big and little endian.
4729 (mulv8hi3): Swap input operands for merge high and merge low
4730 instructions for little endian.
4732 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4734 * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
4735 define_insn to define_expand that uses even patterns for big
4736 endian and odd patterns for little endian.
4737 (vec_widen_smult_even_v16qi): Likewise.
4738 (vec_widen_umult_even_v8hi): Likewise.
4739 (vec_widen_smult_even_v8hi): Likewise.
4740 (vec_widen_umult_odd_v16qi): Likewise.
4741 (vec_widen_smult_odd_v16qi): Likewise.
4742 (vec_widen_umult_odd_v8hi): Likewise.
4743 (vec_widen_smult_odd_v8hi): Likewise.
4744 (altivec_vmuleub): New define_insn.
4745 (altivec_vmuloub): Likewise.
4746 (altivec_vmulesb): Likewise.
4747 (altivec_vmulosb): Likewise.
4748 (altivec_vmuleuh): Likewise.
4749 (altivec_vmulouh): Likewise.
4750 (altivec_vmulesh): Likewise.
4751 (altivec_vmulosh): Likewise.
4753 2013-11-05 Mike Stump <mikestump@comcast.net>
4755 * Makefile.in (mostlyclean): Remove c-family objects.
4757 2013-11-05 Ian Lance Taylor <iant@google.com>
4759 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
4760 If possible, add .cfi directives to record change to bx.
4761 * config/i386/i386.c (ix86_emit_cfi): New function.
4762 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
4764 2013-11-05 Steven Bosscher <steven@gcc.gnu.org>
4766 * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
4767 immediately after a label for a tablejump pattern.
4769 * config/arm/arm.c (is_jump_table): Remove.
4770 (create_fix_barrier): Use tablejump_p instead.
4771 (arm_reorg): Likewise.
4772 (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
4773 (thumb2_output_casesi): Likewise.
4774 * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
4775 * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
4776 casesi_shift_media, casesi_load_media): Likewise.
4777 * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
4778 * config/microblaze/microblaze.md: Likewise.
4780 2013-11-05 Tobias Burnus <burnus@net-b.de>
4782 * doc/invoke.texi (-Wdate-time): Document.
4784 2013-11-05 Richard Sandiford <rdsandiford@googlemail.com>
4786 * double-int.c (lshift_double, rshift_double): Remove
4787 SHIFT_COUNT_TRUNCATED handling.
4789 2013-11-05 Jeff Law <law@redhat.com>
4791 * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
4792 * common.opt (-fisolate-erroneous-paths): Add option and documentation.
4793 * gimple-ssa-isolate-paths.c: New file.
4794 * gimple.c (check_loadstore): New function.
4795 (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
4796 Verify OP is in the argument list and the argument corresponding
4797 to OP is a pointer type. Use operand_equal_p rather than
4798 pointer equality when testing if OP is on the nonnull list.
4799 Use check_loadstore rather than count_ptr_derefs. Handle
4800 GIMPLE_RETURN statements.
4801 * tree-vrp.c (infer_nonnull_range): Remove.
4802 * gimple.h (infer_nonnull_range): Declare.
4803 * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
4804 * passes.def: Add pass_isolate_erroneous_paths.
4805 * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
4806 * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
4807 * tree-ssa.c (struct count_ptr_d): Remove.
4808 (count_ptr_derefs, count_uses_and_derefs): Remove.
4809 * tree-ssa.h (count_uses_and_derefs): Remove.
4811 2013-11-05 Jakub Jelinek <jakub@redhat.com>
4813 PR rtl-optimization/58997
4814 * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
4815 get_iv_value to be in iv->mode rather than iv->extend_mode.
4816 (iv_extend): Likewise. Otherwise, if iv->extend != extend,
4817 use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
4818 * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
4821 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
4823 * gimple.h: Move some prototypes to gimple-expr.h and add to include
4825 (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
4826 Move to gimple-expr.h.
4827 * gimple-expr.h: New file. Relocate some prototypes from gimple.h.
4828 (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
4829 is_gimple_id, virtual_operand_p, is_gimple_addressable,
4830 is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
4832 * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
4833 gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
4834 is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
4835 is_gimple_address, is_gimple_invariant_address,
4836 is_gimple_ip_invariant_address, is_gimple_min_invariant,
4837 is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
4838 virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
4839 is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
4840 gimple_decl_printable_name, useless_type_conversion_p,
4841 types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
4843 * gimple-expr.c: New File.
4844 (useless_type_conversion_p, gimple_set_body, gimple_body,
4845 gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
4846 gimple_can_coalesce_p, extract_ops_from_tree_1,
4847 gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
4848 is_gimple_address, is_gimple_invariant_address,
4849 is_gimple_ip_invariant_address, is_gimple_min_invariant,
4850 is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
4851 is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
4852 is_gimple_mem_ref_addr): Relocate here.
4853 * Makefile.in (OBJS): Add gimple-expr.o.
4855 2013-11-05 David Malcolm <dmalcolm@redhat.com>
4857 * gengtype-parse.c (struct_field_seq): Support empty structs.
4859 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
4861 * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
4863 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
4865 * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
4867 * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
4869 (LONG_DOUBLE_TYPE_SIZE): New define.
4870 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
4872 2013-11-05 Paolo Carlini <paolo.carlini@oracle.com>
4875 * doc/extend.texi [visibility ("visibility_type")]: Add example
4876 about visibility attribute on namespace declaration.
4878 2013-11-05 Richard Biener <rguenther@suse.de>
4881 * passes.def (all_passes): Start with pass_fixup_cfg again.
4883 2013-11-05 Richard Biener <rguenther@suse.de>
4885 PR tree-optimization/58955
4886 * tree-loop-distribution.c (pg_add_dependence_edges): Fix
4889 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4891 * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
4893 (vec_pack_ufix_trunc_v2df): Likewise.
4895 2013-11-05 H.J. Lu <hongjiu.lu@intel.com>
4898 * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
4899 pattern, instead of word_mode.
4901 * expr.c (emit_block_move_via_movmem): Don't use mode wider than
4903 (set_storage_via_setmem): Likewise.
4905 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
4907 * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
4908 gimple.h and the rest of the condition in eliminate_build.
4909 (eliminate_build): Call new routine.
4910 * gimple.h (phi_ssa_name_p): Delete.
4912 2013-11-05 Trevor Saunders <tsaunders@mozilla.com>
4914 * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
4915 case of no prefix and reserving zero slots, because when that's the
4916 case we'll never get here.
4917 * vec.h (va_heap::reserve): Don't try and handle
4918 vec_prefix::calculate_allocation returning zero because that should
4921 2013-11-05 Richard Biener <rguenther@suse.de>
4924 * tree-dfa.c (get_ref_base_and_extent): Merge common code
4925 in MEM_REF and TARGET_MEM_REF handling. Make sure to
4926 process trailing array detection before diving into the
4927 view-converted object (and possibly apply some extra offset).
4929 2013-11-05 Joseph Myers <joseph@codesourcery.com>
4931 * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
4933 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
4935 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
4937 PR tree-optimization/58958
4938 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
4939 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
4941 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
4943 * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
4944 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
4946 2013-11-05 Jakub Jelinek <jakub@redhat.com>
4948 PR tree-optimization/58984
4949 * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
4950 set *SIZE_P if non-NULL on success.
4951 (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
4953 (ipcp_transform_function): Likewise. Punt if size of access
4954 is different from TYPE_SIZE on v->value's type.
4956 2013-11-05 Tobias Burnus <burnus@net-b.de>
4958 * doc/invoke.texi (-fopenmp-simd): Document new option.
4959 * gimplify.c (gimplify_body): Accept -fopenmp-simd.
4960 * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
4961 * tree.c (attribute_value_equal): Ditto.
4963 2013-11-04 Wei Mi <wmi@google.com>
4965 * sched-rgn.c (add_branch_dependences): Keep insns in
4966 a SCHED_GROUP at the end of BB to remain their location.
4968 2013-11-04 Wei Mi <wmi@google.com>
4970 * config/i386/i386.c (memory_address_length): Extract a part
4971 of code to rip_relative_addr_p.
4972 (rip_relative_addr_p): New Function.
4973 (ix86_macro_fusion_p): Ditto.
4974 (ix86_macro_fusion_pair_p): Ditto.
4975 * config/i386/i386.h: Add new tune features about macro-fusion.
4976 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
4977 * doc/tm.texi: Generated.
4978 * doc/tm.texi.in: Ditto.
4979 * haifa-sched.c (try_group_insn): New Function.
4980 (group_insns_for_macro_fusion): Ditto.
4981 (sched_init): Call group_insns_for_macro_fusion.
4982 * target.def: Add two hooks: macro_fusion_p and
4983 macro_fusion_pair_p.
4985 2013-11-04 Kostya Serebryany <kcc@google.com>
4987 Update to match the changed asan API.
4988 * asan.c (asan_function_start): New function.
4989 (asan_emit_stack_protection): Update the string stored in the
4990 stack red zone to match new API. Store the PC of the current
4991 function in the red zone.
4992 (asan_global_struct): Update the __asan_global definition to match
4994 (asan_add_global): Ditto.
4995 * asan.h (asan_function_start): New prototype.
4996 * final.c (final_start_function): Call asan_function_start.
4997 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
5000 2013-11-04 Wei Mi <wmi@google.com>
5002 * config/i386/i386-c.c (ix86_target_macros_internal): Separate
5003 PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
5004 * config/i386/i386.c (ix86_option_override_internal): Ditto.
5005 (ix86_issue_rate): Ditto.
5006 (ix86_adjust_cost): Ditto.
5007 (ia32_multipass_dfa_lookahead): Ditto.
5008 (ix86_sched_init_global): Ditto.
5009 (get_builtin_code_for_version): Ditto.
5010 * config/i386/i386.h (enum target_cpu_default): Ditto.
5011 (enum processor_type): Ditto.
5012 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
5014 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
5016 PR rtl-optimization/58967
5017 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
5018 !lra_in_progress for mode sizes bigger word.
5020 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5022 * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
5023 arguments to merge instruction for little endian.
5024 (vec_widen_umult_lo_v16qi): Likewise.
5025 (vec_widen_smult_hi_v16qi): Likewise.
5026 (vec_widen_smult_lo_v16qi): Likewise.
5027 (vec_widen_umult_hi_v8hi): Likewise.
5028 (vec_widen_umult_lo_v8hi): Likewise.
5029 (vec_widen_smult_hi_v8hi): Likewise.
5030 (vec_widen_smult_lo_v8hi): Likewise.
5032 2013-11-04 Ian Lance Taylor <iant@google.com>
5034 * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
5035 * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
5036 builtins that take pointers.
5037 * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
5038 * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
5039 (run_gcc): Pass -fnon-call-exceptions.
5041 2013-11-04 Jakub Jelinek <jakub@redhat.com>
5043 * optabs.c (expand_vec_perm): Revert one incorrect line from
5046 PR tree-optimization/58978
5047 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
5048 use_stmt by single_imm_use directly. Only call single_imm_use
5051 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
5053 PR rtl-optimization/58968
5054 * lra-spills.c (return_regno_p): New function.
5055 (lra_final_code_change): Use it.
5057 2013-11-04 Joseph Myers <joseph@codesourcery.com>
5059 * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
5060 * target.def (float_exceptions_rounding_supported_p): New hook.
5061 * targhooks.c (default_float_exceptions_rounding_supported_p): New
5063 * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
5064 * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
5066 * doc/tm.texi: Regenerate.
5067 * config.gcc (powerpc*-*-linux*): Set extra_objs.
5068 * config/rs6000/rs6000-linux.c: New file.
5069 * config/rs6000/rs6000-protos.h
5070 (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
5071 * config/rs6000/linux.h
5072 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
5073 * config/rs6000/linux64.h
5074 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
5075 * config/rs6000/t-linux (rs6000-linux.o): New rule.
5076 * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
5078 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5080 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
5081 Replace the define_insn_and_split with a define_insn and two
5082 define_splits, with the split after reload re-permuting the source
5083 register to its original value.
5084 (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
5085 (*vsx_le_perm_store_v8hi): Likewise.
5086 (*vsx_le_perm_store_v16qi): Likewise.
5088 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5090 * config/rs6000/vector.md (vec_pack_trunc_v2df): Adjust for
5093 2013-11-04 Jakub Jelinek <jakub@redhat.com>
5095 PR tree-optimization/58946
5096 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
5097 bbs with bbinfo[idx].op != NULL before all blocks with
5098 bbinfo[idx].op == NULL.
5100 2013-11-04 Richard Sandiford <rdsandiford@googlemail.com>
5102 * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
5103 (avr_dump_double_int_hex): Likewise.
5104 (avr_log_vadump): Remove %D and %X handling.
5105 * config/avr/avr.c (avr_double_int_push_digit): Delete.
5106 (avr_map_op_t): Change map from double_int to unsigned int.
5107 (avr_map_op): Update accordingly.
5108 (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
5109 (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
5110 unsigned ints rather than double_ints.
5112 2013-11-03 Marek Polacek <polacek@redhat.com>
5114 Implement -fsanitize=vla-bound.
5115 * opts.c (common_handle_option): Handle vla-bound.
5116 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
5117 * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
5118 * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
5120 2013-11-02 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
5122 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
5125 2013-11-02 Uros Bizjak <ubizjak@gmail.com>
5127 * config/i386/constraints.md (Ts, Tv): New address constrains.
5128 * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
5129 constraint for address_no_seg_operand.
5130 * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
5131 (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
5132 (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
5133 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
5134 (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
5135 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
5136 (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
5137 (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
5138 constraint for vsib_address_operand.
5140 2013-11-02 Steven Bosscher <steven@gcc.gnu.org>
5142 * gcse.c (pre_delete): Remove references to regmove from comments.
5143 * recog.c: (validate_replace_rtx_1): Likewise.
5144 * config/rl78/rl78.c: Likewise.
5145 * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
5146 * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
5147 * common/config/mmix/mmix-common.c: Likewise.
5149 2013-11-01 Trevor Saunders <tsaunders@mozilla.com>
5151 * function.c (reorder_blocks): Convert block_stack to a stack_vec.
5152 * gimplify.c (gimplify_compound_lval): Likewise.
5153 * graphite-clast-to-gimple.c (gloog): Likewise.
5154 * graphite-dependences.c (loop_is_parallel_p): Likewise.
5155 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
5156 (limit_scop); Likewise.
5157 (build_scops): Likewise.
5158 (dot_scop): Likewise.
5159 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
5160 (build_scop_drs): Likewise.
5161 (insert_stmts): Likewise.
5162 (insert_out_of_ssa_copy): Likewise.
5163 (remove_phi): Likewise.
5164 (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
5165 * hw-doloop.c (discover_loop): Likewise.
5166 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
5167 * tree-dfa.c (dump_enumerated_decls): Likewise.
5168 * tree-if-conv.c (if_convertable_loop_p): Likewise.
5169 * tree-inline.c (tree_function_versioning): Likewise.
5170 * tree-loop-distribution.c (build_rdg): Likewise.
5171 (rdg_flag_vertex_and_dependent): Likewise.
5172 (distribute_loop): Likewise.
5173 * tree-parloops.c (loop_parallel_p): Likewise.
5174 (eliminate_local_variables): Likewise.
5175 (separate_decls_in_region): Likewise.
5176 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
5177 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
5178 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
5179 * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
5180 * tree-vect-patterns.c (vect_pattern_recog): Likewise.
5181 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
5182 (vectorizable_condition): Likewise.
5184 2013-11-01 Uros Bizjak <ubizjak@gmail.com>
5186 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
5187 * configure: Regenerate.
5188 * config/i386/i386.md (*movdi_internal): Change
5189 HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
5190 (*movdf_internal): Ditto.
5191 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
5192 * config/i386/sse.md (vec_concatv2di): Output interunit movq
5193 for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
5195 2013-10-31 Robert Suchanek <Robert.Suchanek@imgtec.com>
5197 * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
5200 2013-10-31 David Malcolm <dmalcolm@redhat.com>
5202 Automated part of renaming of symtab_node_base to symtab_node.
5204 Patch autogenerated by rename_symtab.py from
5205 https://github.com/davidmalcolm/gcc-refactoring-scripts
5206 revision 58bb219cc090b2f4516a9297d868c245495ee622
5207 with ChangeLog entry fixed up by hand.
5209 * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
5211 (cgraph_node_for_asm): Likewise.
5212 * cgraph.h (symtab_node_base): Likewise.
5213 (cgraph_node): Likewise.
5214 (varpool_node): Likewise.
5215 (is_a_helper <cgraph_node>::test): Likewise.
5216 (is_a_helper <varpool_node>::test): Likewise.
5217 (symtab_nodes): Likewise.
5218 (symtab_register_node): Likewise.
5219 (symtab_unregister_node): Likewise.
5220 (symtab_remove_node): Likewise.
5221 (symtab_get_node): Likewise.
5222 (symtab_node_for_asm): Likewise.
5223 (symtab_node_asm_name): Likewise.
5224 (symtab_node_name): Likewise.
5225 (symtab_insert_node_to_hashtable): Likewise.
5226 (symtab_add_to_same_comdat_group): Likewise.
5227 (symtab_dissolve_same_comdat_group_list): Likewise.
5228 (dump_symtab_node): Likewise.
5229 (debug_symtab_node): Likewise.
5230 (dump_symtab_base): Likewise.
5231 (verify_symtab_node): Likewise.
5232 (verify_symtab_base): Likewise.
5233 (symtab_used_from_object_file_p): Likewise.
5234 (symtab_alias_ultimate_target): Likewise.
5235 (symtab_resolve_alias): Likewise.
5236 (fixup_same_cpp_alias_visibility): Likewise.
5237 (symtab_for_node_and_aliases): Likewise.
5238 (symtab_nonoverwritable_alias): Likewise.
5239 (availability symtab_node_availability): Likewise.
5240 (symtab_semantically_equivalent_p): Likewise.
5241 (fixup_same_cpp_alias_visibility): Likewise.
5242 (symtab_prevail_in_asm_name_hash): Likewise.
5244 (varpool): Likewise.
5245 (varpool_first_variable): Likewise.
5246 (varpool_next_variable): Likewise.
5247 (varpool_first_static_initializer): Likewise.
5248 (varpool_next_static_initializer): Likewise.
5249 (varpool_first_defined_variable): Likewise.
5250 (varpool_next_defined_variable): Likewise.
5251 (cgraph_first_defined_function): Likewise.
5252 (cgraph_next_defined_function): Likewise.
5253 (cgraph_first_function): Likewise.
5254 (cgraph_next_function): Likewise.
5255 (cgraph_first_function_with_gimple_body): Likewise.
5256 (cgraph_next_function_with_gimple_body): Likewise.
5257 (symtab_alias_target): Likewise.
5258 (symtab_real_symbol_p): Likewise.
5259 (symtab_can_be_discarded): Likewise.
5260 * cgraphbuild.c (mark_address): Likewise.
5261 (mark_load): Likewise.
5262 (mark_store): Likewise.
5263 * cgraphunit.c (decide_is_symbol_needed): Likewise.
5265 (enqueue_node): Likewise.
5266 (referred_to_p): Likewise.
5267 (cgraph_process_same_body_aliases): Likewise.
5268 (analyze_functions): Likewise.
5269 (handle_alias_pairs): Likewise.
5270 (output_weakrefs): Likewise.
5271 (compile): Likewise.
5272 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
5273 * ipa-inline-analysis.c (inline_write_summary): Likewise.
5274 * ipa-prop.c (remove_described_reference): Likewise.
5275 (try_decrement_rdesc_refcount): Likewise.
5276 (ipa_edge_duplication_hook): Likewise.
5277 * ipa-ref.c (ipa_record_reference): Likewise.
5278 (ipa_maybe_record_reference): Likewise.
5279 (ipa_clone_ref): Likewise.
5280 (ipa_clone_references): Likewise.
5281 (ipa_clone_referring): Likewise.
5282 (ipa_find_reference): Likewise.
5283 (ipa_remove_stmt_references): Likewise.
5284 (ipa_clear_stmts_in_references): Likewise.
5285 * ipa-ref.h (symtab_node_base): Likewise.
5286 (ipa_ref): Likewise.
5287 (ipa_record_reference): Likewise.
5288 (ipa_maybe_record_reference): Likewise.
5289 (ipa_clone_references): Likewise.
5290 (ipa_clone_referring): Likewise.
5291 (ipa_clone_ref): Likewise.
5292 (ipa_find_reference): Likewise.
5293 (ipa_remove_stmt_references): Likewise.
5294 (ipa_clear_stmts_in_references): Likewise.
5295 * ipa-reference.c (ipa_reference_write_optimization_summary):
5297 * ipa.c (enqueue_node): Likewise.
5298 (process_references): Likewise.
5299 (walk_polymorphic_call_targets): Likewise.
5300 (symtab_remove_unreachable_nodes): Likewise.
5301 (address_taken_from_non_vtable_p): Likewise.
5302 (comdat_can_be_unshared_p_1): Likewise.
5303 (comdat_can_be_unshared_p): Likewise.
5304 (can_replace_by_local_alias): Likewise.
5305 (function_and_variable_visibility): Likewise.
5306 * is-a.h: Likewise (within example in comment).
5307 * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
5308 (lto_symtab_encoder_encode): Likewise.
5309 (lto_symtab_encoder_delete_node): Likewise.
5310 (lto_symtab_encoder_in_partition_p): Likewise.
5311 (lto_set_symtab_encoder_in_partition): Likewise.
5312 (output_refs): Likewise.
5313 (compute_ltrans_boundary): Likewise.
5314 (output_symtab): Likewise.
5315 (input_node): Likewise.
5316 (input_ref): Likewise.
5317 (input_edge): Likewise.
5318 (input_cgraph_1): Likewise.
5319 (input_refs): Likewise.
5320 (output_cgraph_opt_summary): Likewise.
5321 (input_node_opt_summary): Likewise.
5322 (input_cgraph_opt_section): Likewise.
5323 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
5325 * lto-streamer-out.c (lto_output): Likewise.
5326 (output_symbol_p): Likewise.
5327 (produce_symtab): Likewise.
5328 * lto-streamer.h (lto_encoder_entry): Likewise.
5329 (lto_free_function_in_decl_state_for_node): Likewise.
5330 (lto_symtab_encoder_encode): Likewise.
5331 (lto_symtab_encoder_delete_node): Likewise.
5332 (lto_symtab_encoder_in_partition_p): Likewise.
5333 (lto_set_symtab_encoder_in_partition): Likewise.
5334 (lto_symtab_encoder_lookup): Likewise.
5335 (lsei_node): Likewise.
5336 (lto_symtab_encoder_deref): Likewise.
5337 * symtab.c (symtab_hash): Likewise.
5338 (assembler_name_hash): Likewise.
5339 (symtab_nodes): Likewise.
5340 (hash_node): Likewise.
5341 (eq_node): Likewise.
5342 (hash_node_by_assembler_name): Likewise.
5343 (eq_assembler_name): Likewise.
5344 (insert_to_assembler_name_hash): Likewise.
5345 (unlink_from_assembler_name_hash): Likewise.
5346 (symtab_prevail_in_asm_name_hash): Likewise.
5347 (symtab_register_node): Likewise.
5348 (symtab_insert_node_to_hashtable): Likewise.
5349 (symtab_unregister_node): Likewise.
5350 (symtab_get_node): Likewise.
5351 (symtab_remove_node): Likewise.
5352 (symtab_initialize_asm_name_hash): Likewise.
5353 (symtab_node_for_asm): Likewise.
5354 (symtab_add_to_same_comdat_group): Likewise.
5355 (symtab_dissolve_same_comdat_group_list): Likewise.
5356 (symtab_node_asm_name): Likewise.
5357 (symtab_node_name): Likewise.
5358 (dump_symtab_base): Likewise.
5359 (dump_symtab_node): Likewise.
5360 (dump_symtab): Likewise.
5361 (debug_symtab_node): Likewise.
5362 (verify_symtab_base): Likewise.
5363 (verify_symtab_node): Likewise.
5364 (verify_symtab): Likewise.
5365 (symtab_used_from_object_file_p): Likewise.
5366 (symtab_node_availability): Likewise.
5367 (symtab_alias_ultimate_target): Likewise.
5368 (fixup_same_cpp_alias_visibility): Likewise.
5369 (symtab_resolve_alias): Likewise.
5370 (symtab_for_node_and_aliases): Likewise.
5371 (symtab_for_node_and_aliases): Likewise.
5372 (symtab_nonoverwritable_alias_1): Likewise.
5373 (symtab_nonoverwritable_alias): Likewise.
5374 (symtab_semantically_equivalent_p): Likewise.
5375 * value-prof.c (init_node_map): Likewise.
5376 * varasm.c (find_decl): Likewise.
5377 * varpool.c (varpool_node_for_asm): Likewise.
5378 (varpool_remove_unreferenced_decls): Likewise.
5380 2013-10-31 David Malcolm <dmalcolm@redhat.com>
5382 Manual part of renaming of symtab_node_base to symtab_node.
5384 * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
5385 clashes with the preferred name for the base class.
5386 (const_symtab_node): Remove redundant typedef.
5388 2013-10-31 Jakub Jelinek <jakub@redhat.com>
5390 * optabs.c (expand_vec_perm): Avoid vector mode punning
5391 SUBREGs in SET_DEST.
5392 * expmed.c (store_bit_field_1): Likewise.
5393 * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
5394 vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
5395 vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
5396 * config/i386/i386.c (ix86_expand_vector_move_misalign,
5397 ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
5398 ix86_expand_sse_unpack, ix86_expand_args_builtin,
5399 ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
5400 emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
5401 expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
5402 expand_vec_perm_vpshufb2_vpermq,
5403 expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
5404 expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
5405 ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
5406 (expand_vec_perm_palignr): Likewise. Modify a copy of *d rather
5409 2013-10-31 Uros Bizjak <ubizjak@gmail.com>
5411 * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
5412 Use gcc_unreachable for unhandled modes. Do not check results of
5413 expand_simple_binop. If not expanded to target, move the result.
5415 2013-10-31 Chung-Ju Wu <jasonwucj@gmail.com>
5416 Shiva Chen <shiva0217@gmail.com>
5418 * config.gcc (nds32*-*-*): Add nds32 target.
5419 * config/nds32/nds32.c: New file.
5420 * config/nds32/nds32.h: New file.
5421 * config/nds32/nds32.md: New file.
5422 * config/nds32/constants.md: New file.
5423 * config/nds32/constraints.md: New file.
5424 * config/nds32/iterators.md: New file.
5425 * config/nds32/nds32-doubleword.md: New file.
5426 * config/nds32/nds32-intrinsic.md: New file.
5427 * config/nds32/nds32_intrinsic.h: New file.
5428 * config/nds32/nds32-modes.def: New file.
5429 * config/nds32/nds32-multiple.md: New file.
5430 * config/nds32/nds32.opt: New file.
5431 * config/nds32/nds32-opts.h: New file.
5432 * config/nds32/nds32-protos.h: New file.
5433 * config/nds32/nds32-peephole2.md: New file.
5434 * config/nds32/pipelines.md: New file.
5435 * config/nds32/predicates.md: New file.
5436 * config/nds32/t-mlibs: New file.
5437 * common/config/nds32: New directory and files.
5439 * doc/invoke.texi (NDS32 options): Document nds32 specific options.
5440 * doc/md.texi (NDS32 family): Document nds32 specific constraints.
5441 * doc/install.texi (Cross-Compiler-Specific Options): Document
5442 --with-nds32-lib for nds32 target.
5443 * doc/extend.texi (Function Attributes, Target Builtins): Document
5444 nds32 specific attributes.
5446 2013-10-31 Vladimir Makarov <vmakarov@redhat.com>
5448 * lra-constraints (process_alt_operands): Use the result
5449 elimination register for operand when matching constraints.
5451 2013-10-31 Jakub Jelinek <jakub@redhat.com>
5453 * tree-vrp.c (maybe_set_nonzero_bits): New function.
5454 (remove_range_assertions): Call it.
5456 * tree.c (tree_ctz): New function.
5457 * tree.h (tree_ctz): New prototype.
5458 * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
5459 first argument from tree to const_tree.
5460 * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
5461 * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
5462 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
5464 * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
5465 * tree-vect-loop.c (vect_analyze_loop_operations,
5466 vect_transform_loop): Don't force scalar loop for bound just because
5467 number of iterations is unknown, only do it if it is not known to be
5468 a multiple of vectorization_factor.
5469 * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
5471 * gimple-pretty-print.c (dump_ssaname_info): Print newline also
5472 in case of VR_VARYING. Print get_nonzero_bits if not all ones.
5473 * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
5474 (set_nonzero_bits, get_nonzero_bits): New prototypes.
5475 * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
5476 a default def isn't partially constant.
5477 (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
5478 is known to be partially zero.
5479 (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
5480 to see if a default def isn't partially constant.
5481 * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
5482 creation of a range, if VR_RANGE, try to improve nonzero_bits from
5484 (set_nonzero_bits, get_nonzero_bits): New functions.
5486 * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
5487 * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
5488 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
5489 (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
5490 uses but in the condition and ASSERT_EXPR and the other successor of
5491 the predecessor bb is __builtin_unreachable (), set_range_info of the
5492 ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
5494 2013-10-31 Martin Jambor <mjambor@suse.cz>
5496 PR rtl-optimization/58934
5498 2013-10-30 Martin Jambor <mjambor@suse.cz>
5499 PR rtl-optimization/10474
5500 * ira.c (find_moveable_pseudos): Do not calculate dominance info
5502 (interesting_dest_for_shprep): New function.
5503 (split_live_ranges_for_shrink_wrap): Likewise.
5504 (ira): Calculate dominance info and df analysis. Call
5505 split_live_ranges_for_shrink_wrap.
5507 2013-10-31 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
5508 Yury Gribov <y.gribov@samsung.com>
5511 * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
5512 shadow pointer to avoid clobbering the main one.
5514 2013-10-31 Zhenqiang Chen <zhenqiang.chen@linaro.org>
5516 * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
5518 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
5521 * ira-color.c (update_costs_from_copies): Add new parameter. Use
5522 it for calling update_costs_from_allocno.
5523 (assign_hard_reg): Call restore_costs_from_copies only for
5524 !retry_p. Pass new argument to update_costs_from_copies.
5525 (color_pass): Pass new argument to update_costs_from_copies.
5526 (ira_mark_allocation_change): Ditto.
5528 2013-10-30 Sharad Singhai <singhai@google.com>
5531 * opts.c (common_handle_option): Remove deprecated option
5532 -ftree-vectorizer-verbose.
5533 * doc/invoke.texi (Debugging Options): Ditto.
5534 * opts-global.c (handle_common_deferred_options): Ditto.
5535 (dump_remap_tree_vectorizer_verbose): Delete.
5536 * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
5538 2013-10-30 DJ Delorie <dj@redhat.com>
5540 * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
5541 that take no arguments.
5543 2013-10-30 Joern Rennecke <joern.rennecke@embecosm.com>
5546 * reload1.c (update_eliminables_and_spill): New function, broken
5548 (reload): Use it. Check for frame size change after frame size
5549 alignment, and call update_eliminables_and_spill first if continue-ing.
5551 2013-10-30 Cong Hou <congh@google.com>
5554 * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
5555 * config/i386/i386.c (ix86_expand_sse2_abs): New function.
5556 * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
5558 2013-10-18 Mikael Pettersson <mikpelinux@gmail.com>
5560 PR rtl-optimization/58369
5561 * reload1.c (compute_reload_subreg_offset): New function.
5562 (choose_reload_regs): Use it to pass endian-correct
5563 offset to subreg_regno_offset.
5565 2013-10-30 Tobias Burnus <burnus@net-b.de>
5568 * tree-cfg.c (replace_loop_annotate): Replace warning by
5571 2013-10-30 Jason Merrill <jason@redhat.com>
5573 * configure.ac (loose_warn): Add -Wno-format if
5574 --disable-build-format-warnings.
5576 2013-10-30 David Malcolm <dmalcolm@redhat.com>
5578 * cgraphunit.c (analyze_functions): Split symtab_node declarations
5579 onto multiple lines to make things easier for rename_symtab.py.
5581 * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
5582 (symtab_semantically_equivalent_p): Likewise.
5584 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
5587 * lra.c (check_rtl): Remove address check before LRA work.
5589 2013-10-30 Marc Glisse <marc.glisse@inria.fr>
5591 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
5592 POINTER_PLUS_EXPR in the defining statement.
5594 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
5596 * regmove.c: Remove.
5597 * tree-pass.h (make_pass_regmove): Remove.
5598 * timevar.def (TV_REGMOVE): Remove.
5599 * passes.def (pass_regmove): Remove.
5600 * opts.c (default_options_table): Remove entry for regmove.
5601 * doc/passes.texi: Remove regmove pass description.
5602 * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
5604 (-fdump-rtl-regmove): Ditto.
5605 * common.opt (foptimize-register-move, fregmove): Ignore.
5606 * Makefile.in (OBJS): Remove regmove.o.
5607 * regmove.c: Remove.
5608 * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
5610 (struct ira_allocno) New member allocno_prefs.
5611 (ALLOCNO_PREFS): New macro.
5612 (ira_prefs, ira_prefs_num): New external vars.
5613 (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
5614 (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
5615 (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
5617 (ira_add_allocno_copy_to_list): Remove prototype.
5618 (ira_swap_allocno_copy_ends_if_necessary): Ditto.
5619 (ira_pref_iterator): New type.
5620 (ira_pref_iter_init, ira_pref_iter_cond): New functions.
5621 (FOR_EACH_PREF): New macro.
5622 * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
5623 (ira_get_dup_out_num): Ditto. Rename from get_dup_num. Modify the
5625 (ira_setup_alts): New function.
5626 (decrease_live_ranges_number): New function.
5627 (ira): Call the above function.
5628 * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
5629 (ira_create_allocno): Initialize allocno prefs.
5630 (pref_pool, pref_vec): New static vars.
5631 (initiate_prefs, find_allocno_pref, ira_create_pref): New
5633 (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
5634 (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
5635 (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
5636 (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
5637 (ira_add_allocno_copy_to_list): Make static. Rename to
5638 add_allocno_copy_to_list.
5639 (ira_swap_allocno_copy_ends_if_necessary): Make static. Rename to
5640 swap_allocno_copy_ends_if_necessary.
5641 (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
5642 ira_remove_allocno_prefs.
5643 (ira_flattening): Ditto.
5644 (ira_build): Call initiate_prefs, print_prefs.
5645 (ira_destroy): Call finish_prefs.
5646 * ira-color.c (struct update_cost_record): New.
5647 (struct allocno_color_data): Add new member update_cost_records.
5648 (update_cost_record_pool): New static var.
5649 (init_update_cost_records, get_update_cost_record): New functions.
5650 (free_update_cost_record_list, finish_update_cost_records): Ditto.
5651 (struct update_cost_queue_elem): Add member from.
5652 (initiate_cost_update): Call init_update_cost_records.
5653 (finish_cost_update): Call finish_update_cost_records.
5654 (queue_update_cost, get_next_update_cost): Add new param from.
5655 (Update_allocno_cost, update_costs_from_allocno): New functions.
5656 (update_costs_from_prefs): Ditto.
5657 (update_copy_costs): Rename to update_costs_from_copies.
5658 (restore_costs_from_copies): New function.
5659 (update_conflict_hard_regno_costs): Don't go back.
5660 (assign_hard_reg): Call restore_costs_from_copies. Add printing
5662 (pop_allocnos): Add priniting more debug info.
5663 (color_allocnos): Remove prefs for conflicting hard regs.
5664 Call update_costs_from_prefs.
5665 * ira-conflicts.c (commutative_constraint_p): Move to ira.c
5666 (get_dup_num): Rename, modify, and move to ira.c
5667 (process_regs_for_copy): Add prefs.
5668 (add_insn_allocno_copies): Put src as first arg of
5669 process_regs_for_copy. Remove dead code. Call ira_setup_alts.
5670 * ira-costs.c (record_reg_classes): Modify and move code into
5671 record_operands_costs.
5672 (find_costs_and_classes): Create prefs for the hard reg of small
5674 (process_bb_node_for_hard_reg_moves): Add prefs.
5676 2013-10-30 Richard Biener <rguenther@suse.de>
5679 * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
5680 * cfganal.c (pre_and_rev_post_order_compute_fn): New function
5682 (pre_and_rev_post_order_compute): ... which now wraps it.
5683 * graph.c (draw_cfg_nodes_no_loops): Use
5684 pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
5687 2013-10-30 Christian Bruel <christian.bruel@st.com>
5689 * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
5690 (sh_expand_cmpstr): Handle known align and schedule improvements.
5691 * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
5692 * config/sh/sh.md (cmpstrnsi): New pattern.
5694 2013-10-30 Martin Jambor <mjambor@suse.cz>
5696 PR rtl-optimization/10474
5697 * ira.c (find_moveable_pseudos): Do not calculate dominance info
5699 (interesting_dest_for_shprep): New function.
5700 (split_live_ranges_for_shrink_wrap): Likewise.
5701 (ira): Calculate dominance info and df analysis. Call
5702 split_live_ranges_for_shrink_wrap.
5704 2013-10-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5707 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
5709 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
5711 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
5712 * tree.h (POINTER_BOUNDS_P): New.
5713 (BOUNDED_TYPE_P): New.
5715 (pointer_bounds_type_node): New.
5716 * tree.c (build_common_tree_nodes): Initialize
5717 pointer_bounds_type_node.
5718 * gimple.h (gimple_call_get_nobnd_arg_index): New.
5719 (gimple_call_num_nobnd_args): New.
5720 (gimple_call_nobnd_arg): New.
5721 (gimple_return_retbnd): New.
5722 (gimple_return_set_retbnd): New
5723 * gimple.c (gimple_build_return): Increase number of ops
5724 for return statement.
5725 (gimple_call_get_nobnd_arg_index): New.
5726 * gimple-pretty-print.c (dump_gimple_return): Print second op.
5728 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
5730 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
5731 with "chkp ctor" and "bnd_legacy" attributes.
5732 * gimplify.c (gimplify_init_constructor): Avoid infinite
5733 loop during gimplification of bounds initializer.
5735 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
5737 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
5738 (handle_bnd_legacy): New.
5739 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
5740 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
5743 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
5745 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
5746 (BT_FN_PTR_CONST_PTR): New.
5747 (BT_FN_CONST_PTR_CONST_PTR): New.
5748 (BT_FN_PTR_CONST_PTR_SIZE): New.
5749 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
5750 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
5751 (BT_FN_VOID_CONST_PTR_SIZE): New.
5752 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
5753 * chkp-builtins.def: New.
5754 * builtins.def: include chkp-builtins.def.
5755 (DEF_CHKP_BUILTIN): New.
5756 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
5757 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
5758 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
5759 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
5760 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
5761 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
5762 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
5763 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
5764 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
5765 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
5766 * common.opt (fcheck-pointer-bounds): New.
5767 * toplev.c (process_options): Check Pointer Bounds Checker is
5769 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
5771 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
5773 * target.def (builtin_chkp_function): New.
5774 (chkp_bound_type): New.
5775 (chkp_bound_mode): New.
5776 (fn_abi_va_list_bounds_size): New.
5777 (load_bounds_for_arg): New.
5778 (store_bounds_for_arg): New.
5779 * targhooks.h (default_load_bounds_for_arg): New.
5780 (default_store_bounds_for_arg): New.
5781 (default_fn_abi_va_list_bounds_size): New.
5782 (default_chkp_bound_type): New.
5783 (default_chkp_bound_mode): New.
5784 (default_builtin_chkp_function): New.
5785 * targhooks.c (default_load_bounds_for_arg): New.
5786 (default_store_bounds_for_arg): New.
5787 (default_fn_abi_va_list_bounds_size): New.
5788 (default_chkp_bound_type): New.
5789 (default_chkp_bound_mode); New.
5790 (default_builtin_chkp_function): New.
5791 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
5792 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
5793 (TARGET_STORE_BOUNDS_FOR_ARG): New.
5794 (TARGET_BUILTIN_CHKP_FUNCTION): New.
5795 (TARGET_CHKP_BOUND_TYPE): New.
5796 (TARGET_CHKP_BOUND_MODE): New.
5797 * doc/tm.texi: Regenerated.
5798 * langhooks.h (lang_hooks): Add chkp_supported field.
5799 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
5800 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
5802 2013-10-29 Andrew Pinski <apinski@cavium.com>
5804 * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
5805 (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
5806 fails, combining the branches anyways.
5807 (tree_ssa_ifcombine): Inverse the order of the basic block walk,
5808 increases the number of combinings.
5809 * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
5811 2013-10-29 Mike Stump <mikestump@comcast.net>
5813 * machmode.def (PARTIAL_INT_MODE): Add precision and name.
5814 * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
5815 (make_vector_mode): Increase namebuf to 16.
5816 (emit_insn_modes_h): When processing BImode, don't
5817 also match partial int modes.
5818 (emit_class_narrowest_mode): Likewise.
5820 * config/bfin/bfin-modes.def: Add precision to PDI.
5821 * config/m32c/m32c-modes.def: Add precision to PSI.
5822 * config/msp430/msp430-modes.def: Add precision to PSI.
5823 * config/rs6000/rs6000-modes.def: Add precision to PTI.
5824 * config/sh/sh-modes.def: Add precision to PSI and PDI.
5826 2013-10-29 Oleg Endo <olegendo@gcc.gnu.org>
5829 * config/sh/sh.md (*addc): Rename existing variations to ...
5830 (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
5831 (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
5832 *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
5833 * config/sh/sh.c (addsubcosts): Handle some addc special cases.
5835 2013-10-29 Teresa Johnson <tejohnson@google.com>
5838 * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
5839 insanities when updating probabilities.
5841 2013-10-29 David Malcolm <dmalcolm@redhat.com>
5843 * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
5844 prettyprinter for cgraph_node to reflect the conversion of the
5845 symtable types to a C++ class hierarchy: it now *is* a
5846 symtab_node_base, rather than having one (named "symbol").
5848 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
5850 * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
5851 __cilkrts_pop_frame. If matched, then return true for built-in
5853 (expand_builtin): Added BUILT_IN_CILK_DETACH and
5854 BUILT_IN_CILK_POP_FRAME case.
5855 * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
5856 (lhs_cilk_detect_spawn): Likewise.
5857 (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
5858 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
5859 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
5860 (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
5861 (LANG_HOOKS_CILKPLUS): Likewise.
5862 * tree.h (CILK_SPAWN_FN): Likewise.
5863 * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
5864 * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
5865 (OBJS): Added cilk-common.o.
5866 (BUILTINS_DEF): Added cilk-builtins.def.
5867 * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
5868 (lhd_cilk_detect_spawn): Likewise.
5869 * langhooks.h (lang_hooks_for_cilkplus): New struct.
5870 (struct lang_hooks): Added new field called "cilkplus."
5871 * cilk-common.c: New file.
5873 * cilk-builtins.def: Likewise.
5874 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
5875 "__cilk" macro and set it to 200.
5876 * function.h (struct function::cilk_frame_decl): New field.
5877 (struct function::is_cilk_function): Likewise.
5878 (struct function::calls_cilk_spawn): Likewise.
5879 * gimplify.c (gimplify_call_expr): Added a check if the function call
5880 being gimplified is a spawn detach point. If so, then add pop_frame
5881 and detach function calls.
5882 (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
5883 for gimplifying _Cilk_spawn and _Cilk_sync statements.
5884 (gimplify_return_expr): Added a check for _Cilk_spawn usage in
5885 function. If so, added a _Cilk_sync and gimplified it.
5886 (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
5887 INIT_EXPRs. If so, then call gimplify_cilk_spawn.
5888 * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
5890 (can_inline_edge_p): Prevent inling of spawnee function.
5891 * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
5892 for functions that use Cilk keywords.
5893 * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
5894 * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
5895 CILK_SYNC_STMT cases.
5896 * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
5898 * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
5899 (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
5900 * passes.texi (Cilk Keywords): New section that describes the compiler
5901 code changes for handling Cilk Keywords.
5903 2013-10-29 David Malcolm <dmalcolm@redhat.com>
5905 Patch autogenerated by refactor_symtab.py from
5906 https://github.com/davidmalcolm/gcc-refactoring-scripts
5907 revision 58bb219cc090b2f4516a9297d868c245495ee622
5909 * asan.c (asan_finish_file): Update for conversion of symtab types to
5910 a true class hierarchy.
5911 * cfgexpand.c (estimated_stack_frame_size): Likewise.
5912 * cgraph.c (cgraph_get_body): Likewise.
5913 (cgraph_get_create_real_symbol_node): Likewise.
5914 (verify_cgraph_node): Likewise.
5915 (verify_edge_corresponds_to_fndecl): Likewise.
5916 (verify_edge_count_and_frequency): Likewise.
5917 (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
5918 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
5919 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
5920 (cgraph_node_cannot_return): Likewise.
5921 (cgraph_set_pure_flag_1): Likewise.
5922 (cgraph_set_const_flag_1): Likewise.
5923 (cgraph_set_nothrow_flag_1): Likewise.
5924 (cgraph_make_node_local_1): Likewise.
5925 (cgraph_for_node_and_aliases): Likewise.
5926 (cgraph_for_node_thunks_and_aliases): Likewise.
5927 (cgraph_node_can_be_local_p): Likewise.
5928 (cgraph_node_cannot_be_local_p_1): Likewise.
5929 (cgraph_function_body_availability): Likewise.
5930 (dump_cgraph_node): Likewise.
5931 (cgraph_rtl_info): Likewise.
5932 (cgraph_mark_address_taken_node): Likewise.
5933 (cgraph_remove_node): Likewise.
5934 (cgraph_release_function_body): Likewise.
5935 (cgraph_update_edges_for_call_stmt_node): Likewise.
5936 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
5937 (cgraph_make_edge_direct): Likewise.
5938 (cgraph_resolve_speculation): Likewise.
5939 (cgraph_speculative_call_info): Likewise.
5940 (cgraph_turn_edge_to_speculative): Likewise.
5941 (cgraph_create_edge_1): Likewise.
5942 (cgraph_set_call_stmt): Likewise.
5943 (cgraph_node_for_asm): Likewise.
5944 (cgraph_add_thunk): Likewise.
5945 (cgraph_same_body_alias): Likewise.
5946 (cgraph_create_function_alias): Likewise.
5947 (cgraph_create_node): Likewise.
5948 (cgraph_create_empty_node): Likewise.
5949 (record_function_versions): Likewise.
5950 (used_from_object_file_p): Likewise.
5951 * cgraph.h (symtab_can_be_discarded): Likewise.
5952 (symtab_real_symbol_p): Likewise.
5953 (cgraph_mark_force_output_node): Likewise.
5954 (cgraph_edge_recursive_p): Likewise.
5955 (symtab_alias_target): Likewise.
5956 (varpool_all_refs_explicit_p): Likewise.
5957 (varpool_can_remove_if_no_refs): Likewise.
5958 (cgraph_only_called_directly_or_aliased_p): Likewise.
5959 (cgraph_next_function_with_gimple_body): Likewise.
5960 (cgraph_first_function_with_gimple_body): Likewise.
5961 (cgraph_function_with_gimple_body_p): Likewise.
5962 (cgraph_next_function): Likewise.
5963 (cgraph_first_function): Likewise.
5964 (cgraph_next_defined_function): Likewise.
5965 (cgraph_first_defined_function): Likewise.
5966 (varpool_next_defined_variable): Likewise.
5967 (varpool_first_defined_variable): Likewise.
5968 (varpool_next_static_initializer): Likewise.
5969 (varpool_first_static_initializer): Likewise.
5970 (varpool_next_variable): Likewise.
5971 (varpool_first_variable): Likewise.
5972 (varpool_node_name): Likewise.
5973 (varpool): Likewise.
5975 (is_a_helper <varpool_node>::test): Likewise.
5976 (is_a_helper <cgraph_node>::test): Likewise.
5977 (varpool_variable_node): Likewise.
5978 (cgraph_function_or_thunk_node): Likewise.
5979 (varpool_alias_target): Likewise.
5980 (cgraph_alias_target): Likewise.
5981 (cgraph_node_name): Likewise.
5982 (varpool_node_asm_name): Likewise.
5983 (cgraph_node_asm_name): Likewise.
5984 * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
5985 (cgraph_rebuild_references): Likewise.
5986 (rebuild_cgraph_edges): Likewise.
5987 (record_eh_tables): Likewise.
5988 (build_cgraph_edges): Likewise.
5989 (mark_store): Likewise.
5990 (mark_load): Likewise.
5991 (mark_address): Likewise.
5992 (record_type_list): Likewise.
5993 (record_reference): Likewise.
5994 * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
5995 (cgraph_materialize_clone): Likewise.
5996 (cgraph_function_versioning): Likewise.
5997 (cgraph_copy_node_for_versioning): Likewise.
5998 (update_call_expr): Likewise.
5999 (cgraph_find_replacement_node): Likewise.
6000 (cgraph_create_virtual_clone): Likewise.
6001 (cgraph_clone_node): Likewise.
6002 * cgraphunit.c (compile): Likewise.
6003 (output_weakrefs): Likewise.
6004 (output_in_order): Likewise.
6005 (expand_function): Likewise.
6006 (assemble_thunks_and_aliases): Likewise.
6007 (expand_thunk): Likewise.
6008 (mark_functions_to_output): Likewise.
6009 (handle_alias_pairs): Likewise.
6010 (analyze_functions): Likewise.
6011 (walk_polymorphic_call_targets): Likewise.
6012 (varpool_finalize_decl): Likewise.
6013 (process_function_and_variable_attributes): Likewise.
6014 (cgraph_process_same_body_aliases): Likewise.
6015 (analyze_function): Likewise.
6016 (cgraph_add_new_function): Likewise.
6017 (cgraph_finalize_function): Likewise.
6018 (referred_to_p): Likewise.
6019 (cgraph_reset_node): Likewise.
6020 (cgraph_process_new_functions): Likewise.
6021 (enqueue_node): Likewise.
6022 (decide_is_symbol_needed): Likewise.
6023 * coverage.c (coverage_compute_profile_id): Likewise.
6024 * dbxout.c (dbxout_expand_expr): Likewise.
6025 * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
6026 (reference_to_unused): Likewise.
6027 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
6028 * gimplify.c (unvisit_body): Likewise.
6029 (unshare_body): Likewise.
6030 * ipa-cp.c (ipcp_generate_summary): Likewise.
6031 (ipcp_decision_stage): Likewise.
6032 (identify_dead_nodes): Likewise.
6033 (decide_whether_version_node): Likewise.
6034 (decide_about_value): Likewise.
6035 (perhaps_add_new_callers): Likewise.
6036 (create_specialized_node): Likewise.
6037 (update_profiling_info): Likewise.
6038 (ipcp_propagate_stage): Likewise.
6039 (estimate_local_effects): Likewise.
6040 (good_cloning_opportunity_p): Likewise.
6041 (devirtualization_time_bonus): Likewise.
6042 (propagate_constants_accross_call): Likewise.
6043 (initialize_node_lattices): Likewise.
6044 (ipcp_cloning_candidate_p): Likewise.
6045 (determine_versionability): Likewise.
6046 (print_all_lattices): Likewise.
6047 (print_lattice): Likewise.
6048 (ipcp_discover_new_direct_edges): Likewise.
6049 * ipa-devirt.c (ipa_devirt): Likewise.
6050 (likely_target_p): Likewise.
6051 (update_type_inheritance_graph): Likewise.
6052 (possible_polymorphic_call_target_p): Likewise.
6053 (dump_possible_polymorphic_call_targets): Likewise.
6054 (devirt_variable_node_removal_hook): Likewise.
6055 (record_binfo): Likewise.
6056 (maybe_record_node): Likewise.
6057 (build_type_inheritance_graph): Likewise.
6058 * ipa-inline-analysis.c (inline_write_summary): Likewise.
6059 (inline_generate_summary): Likewise.
6060 (inline_analyze_function): Likewise.
6061 (do_estimate_growth): Likewise.
6062 (simple_edge_hints): Likewise.
6063 (estimate_node_size_and_time): Likewise.
6064 (estimate_edge_devirt_benefit): Likewise.
6065 (compute_inline_parameters): Likewise.
6066 (estimate_function_body_sizes): Likewise.
6067 (compute_bb_predicates): Likewise.
6068 (initialize_inline_failed): Likewise.
6069 (dump_inline_summary): Likewise.
6070 (dump_inline_edge_summary): Likewise.
6071 * ipa-inline-transform.c (inline_transform): Likewise.
6072 (preserve_function_body_p): Likewise.
6073 (save_inline_function_body): Likewise.
6074 (inline_call): Likewise.
6075 (clone_inlined_nodes): Likewise.
6076 (can_remove_node_now_p): Likewise.
6077 (can_remove_node_now_p_1): Likewise.
6078 * ipa-inline.c (early_inliner): Likewise.
6079 (early_inline_small_functions): Likewise.
6080 (inline_always_inline_functions): Likewise.
6081 (ipa_inline): Likewise.
6082 (flatten_function): Likewise.
6083 (inline_small_functions): Likewise.
6084 (speculation_useful_p): Likewise.
6085 (recursive_inlining): Likewise.
6086 (update_caller_keys): Likewise.
6087 (reset_edge_caches): Likewise.
6088 (update_edge_key): Likewise.
6089 (edge_badness): Likewise.
6090 (relative_time_benefit): Likewise.
6091 (want_inline_self_recursive_call_p): Likewise.
6092 (want_inline_small_function_p): Likewise.
6093 (want_early_inline_function_p): Likewise.
6094 (num_calls): Likewise.
6095 (can_early_inline_edge_p): Likewise.
6096 (can_inline_edge_p): Likewise.
6097 (report_inline_failed_reason): Likewise.
6098 * ipa-profile.c (ipa_profile): Likewise.
6099 (ipa_propagate_frequency): Likewise.
6100 (ipa_propagate_frequency_1): Likewise.
6101 (ipa_profile_generate_summary): Likewise.
6102 * ipa-prop.c (ipcp_transform_function): Likewise.
6103 (read_replacements_section): Likewise.
6104 (ipa_prop_read_section): Likewise.
6105 (ipa_modify_call_arguments): Likewise.
6106 (ipa_print_node_params): Likewise.
6107 (propagate_controlled_uses): Likewise.
6108 (update_indirect_edges_after_inlining): Likewise.
6109 (remove_described_reference): Likewise.
6110 (ipa_make_edge_direct_to_target): Likewise.
6111 (ipa_analyze_node): Likewise.
6112 (ipa_analyze_params_uses): Likewise.
6113 (ipa_compute_jump_functions): Likewise.
6114 (ipa_get_callee_param_type): Likewise.
6115 (ipa_print_node_jump_functions): Likewise.
6116 (ipa_initialize_node_params): Likewise.
6117 (ipa_populate_param_decls): Likewise.
6118 (ipa_func_spec_opts_forbid_analysis_p): Likewise.
6119 (write_agg_replacement_chain): Likewise.
6120 (ipa_write_node_info): Likewise.
6121 (ipa_edge_duplication_hook): Likewise.
6122 (try_decrement_rdesc_refcount): Likewise.
6123 * ipa-pure-const.c (propagate_nothrow): Likewise.
6124 (propagate_pure_const): Likewise.
6125 (pure_const_read_summary): Likewise.
6126 (pure_const_write_summary): Likewise.
6127 (analyze_function): Likewise.
6128 * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
6129 (ipa_ref_referring_ref_list): Likewise.
6130 * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
6131 (ipa_remove_stmt_references): Likewise.
6132 (ipa_find_reference): Likewise.
6133 (ipa_dump_referring): Likewise.
6134 (ipa_dump_references): Likewise.
6135 (ipa_record_reference): Likewise.
6136 * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
6137 (ipa_reference_write_optimization_summary): Likewise.
6138 (write_node_summary_p): Likewise.
6139 (propagate): Likewise.
6140 (read_write_all_from_decl): Likewise.
6141 (generate_summary): Likewise.
6142 (analyze_function): Likewise.
6143 (propagate_bits): Likewise.
6144 (ipa_reference_get_not_written_global): Likewise.
6145 (ipa_reference_get_not_read_global): Likewise.
6146 * ipa-split.c (execute_split_functions): Likewise.
6147 (split_function): Likewise.
6148 * ipa-utils.c (ipa_merge_profiles): Likewise.
6149 (dump_cgraph_node_set): Likewise.
6150 (ipa_reverse_postorder): Likewise.
6151 (ipa_edge_within_scc): Likewise.
6152 (ipa_get_nodes_in_cycle): Likewise.
6153 (ipa_free_postorder_info): Likewise.
6154 (ipa_reduced_postorder): Likewise.
6155 (searchc): Likewise.
6156 (recursive_call_p): Likewise.
6157 * ipa.c (ipa_cdtor_merge): Likewise.
6158 (record_cdtor_fn): Likewise.
6159 (function_and_variable_visibility): Likewise.
6160 (varpool_externally_visible_p): Likewise.
6161 (cgraph_externally_visible_p): Likewise.
6162 (comdat_can_be_unshared_p): Likewise.
6163 (comdat_can_be_unshared_p_1): Likewise.
6164 (address_taken_from_non_vtable_p): Likewise.
6165 (ipa_discover_readonly_nonaddressable_vars): Likewise.
6166 (symtab_remove_unreachable_nodes): Likewise.
6167 (walk_polymorphic_call_targets): Likewise.
6168 (process_references): Likewise.
6169 (enqueue_node): Likewise.
6170 (has_addr_references_p): Likewise.
6171 (cgraph_non_local_node_p_1): Likewise.
6172 * is-a.h (varpool_analyze_node): Likewise.
6173 * lto-cgraph.c (input_symtab): Likewise.
6174 (merge_profile_summaries): Likewise.
6175 (input_cgraph_1): Likewise.
6176 (input_edge): Likewise.
6177 (input_varpool_node): Likewise.
6178 (input_node): Likewise.
6179 (input_overwrite_node): Likewise.
6180 (compute_ltrans_boundary): Likewise.
6181 (output_refs): Likewise.
6182 (lto_output_varpool_node): Likewise.
6183 (lto_output_node): Likewise.
6184 (reachable_from_other_partition_p): Likewise.
6185 (referenced_from_other_partition_p): Likewise.
6186 (lto_output_edge): Likewise.
6187 (output_node_opt_summary): Likewise.
6188 (add_node_to): Likewise.
6189 (reachable_from_this_partition_p): Likewise.
6190 (lto_set_symtab_encoder_in_partition): Likewise.
6191 (lto_symtab_encoder_in_partition_p): Likewise.
6192 (lto_set_symtab_encoder_encode_initializer): Likewise.
6193 (lto_symtab_encoder_encode_initializer_p): Likewise.
6194 (lto_set_symtab_encoder_encode_body): Likewise.
6195 (lto_symtab_encoder_encode_body_p): Likewise.
6196 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
6198 * lto-streamer-in.c (lto_read_body): Likewise.
6199 (fixup_call_stmt_edges): Likewise.
6200 (fixup_call_stmt_edges_1): Likewise.
6201 * lto-streamer-out.c (produce_symtab): Likewise.
6202 (output_symbol_p): Likewise.
6203 (write_symbol): Likewise.
6204 (lto_output): Likewise.
6205 (copy_function): Likewise.
6206 (output_function): Likewise.
6207 * passes.c (function_called_by_processed_nodes_p): Likewise.
6208 (ipa_write_optimization_summaries): Likewise.
6209 (ipa_write_summaries): Likewise.
6210 (do_per_function_toporder): Likewise.
6211 (do_per_function): Likewise.
6212 (dump_passes): Likewise.
6213 * symtab.c (symtab_semantically_equivalent_p): Likewise.
6214 (symtab_nonoverwritable_alias): Likewise.
6215 (symtab_nonoverwritable_alias_1): Likewise.
6216 (symtab_for_node_and_aliases): Likewise.
6217 (symtab_resolve_alias): Likewise.
6218 (fixup_same_cpp_alias_visibility): Likewise.
6219 (symtab_alias_ultimate_target): Likewise.
6220 (symtab_used_from_object_file_p): Likewise.
6221 (verify_symtab_base): Likewise.
6222 (dump_symtab_base): Likewise.
6223 (symtab_node_name): Likewise.
6224 (symtab_node_asm_name): Likewise.
6225 (symtab_dissolve_same_comdat_group_list): Likewise.
6226 (symtab_add_to_same_comdat_group): Likewise.
6227 (symtab_unregister_node): Likewise.
6228 (symtab_insert_node_to_hashtable): Likewise.
6229 (symtab_register_node): Likewise.
6230 (unlink_from_assembler_name_hash): Likewise.
6231 (insert_to_assembler_name_hash): Likewise.
6232 (eq_assembler_name): Likewise.
6233 (hash_node_by_assembler_name): Likewise.
6234 (eq_node): Likewise.
6235 (hash_node): Likewise.
6236 * toplev.c (wrapup_global_declaration_2): Likewise.
6237 * trans-mem.c (ipa_tm_execute): Likewise.
6238 (ipa_tm_transform_clone): Likewise.
6239 (ipa_tm_transform_transaction): Likewise.
6240 (ipa_tm_transform_calls_redirect): Likewise.
6241 (ipa_tm_insert_gettmclone_call): Likewise.
6242 (ipa_tm_insert_irr_call): Likewise.
6243 (ipa_tm_create_version): Likewise.
6244 (ipa_tm_create_version_alias): Likewise.
6245 (ipa_tm_mark_forced_by_abi_node): Likewise.
6246 (ipa_tm_mark_force_output_node): Likewise.
6247 (ipa_tm_diagnose_tm_safe): Likewise.
6248 (ipa_tm_mayenterirr_function): Likewise.
6249 (ipa_tm_scan_irr_function): Likewise.
6250 (ipa_tm_note_irrevocable): Likewise.
6251 (ipa_tm_scan_calls_clone): Likewise.
6252 (get_cg_data): Likewise.
6253 * tree-eh.c (tree_could_trap_p): Likewise.
6254 * tree-emutls.c (ipa_lower_emutls): Likewise.
6255 (create_emultls_var): Likewise.
6256 (lower_emutls_function_body): Likewise.
6257 (gen_emutls_addr): Likewise.
6258 (emutls_decl): Likewise.
6259 (new_emutls_decl): Likewise.
6260 * tree-inline.c (tree_function_versioning): Likewise.
6261 (optimize_inline_calls): Likewise.
6262 (expand_call_inline): Likewise.
6263 (estimate_num_insns): Likewise.
6264 (copy_bb): Likewise.
6265 (delete_unreachable_blocks_update_callgraph): Likewise.
6266 * tree-nested.c (gimplify_all_functions): Likewise.
6267 (create_nesting_tree): Likewise.
6268 (check_for_nested_with_variably_modified): Likewise.
6269 * tree-pretty-print.c (dump_function_header): Likewise.
6270 * tree-profile.c (tree_profiling): Likewise.
6271 * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
6272 (modify_function): Likewise.
6273 (convert_callers): Likewise.
6274 (convert_callers_for_node): Likewise.
6275 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
6276 (associate_varinfo_to_alias): Likewise.
6277 (create_variable_info_for): Likewise.
6278 (get_constraint_for_ssa_var): Likewise.
6279 * tree-vectorizer.c (increase_alignment): Likewise.
6280 * tree.c (find_decls_types_in_var): Likewise.
6281 (find_decls_types_in_node): Likewise.
6282 (free_lang_data_in_decl): Likewise.
6283 * value-prof.c (gimple_ic_transform): Likewise.
6284 (gimple_ic): Likewise.
6285 (check_ic_target): Likewise.
6286 (init_node_map): Likewise.
6287 * varasm.c (decl_binds_to_current_def_p): Likewise.
6288 (default_binds_local_p_1): Likewise.
6289 (dump_tm_clone_pairs): Likewise.
6290 (assemble_alias): Likewise.
6291 (find_decl): Likewise.
6292 (mark_decl_referenced): Likewise.
6293 * varpool.c (varpool_for_node_and_aliases): Likewise.
6294 (varpool_extra_name_alias): Likewise.
6295 (varpool_create_variable_alias): Likewise.
6296 (add_new_static_var): Likewise.
6297 (varpool_finalize_named_section_flags): Likewise.
6298 (varpool_remove_unreferenced_decls): Likewise.
6299 (enqueue_node): Likewise.
6300 (varpool_assemble_decl): Likewise.
6301 (assemble_aliases): Likewise.
6302 (varpool_analyze_node): Likewise.
6303 (cgraph_variable_initializer_availability): Likewise.
6304 (varpool_add_new_variable): Likewise.
6305 (ctor_for_folding): Likewise.
6306 (dump_varpool_node): Likewise.
6307 (varpool_remove_initializer): Likewise.
6308 (varpool_remove_node): Likewise.
6309 (varpool_node_for_decl): Likewise.
6310 (varpool_create_empty_node): Likewise.
6311 * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
6312 (ix86_get_function_versions_dispatcher): Likewise.
6314 2013-10-29 David Malcolm <dmalcolm@redhat.com>
6316 * cgraph.h (symtab_node_base): Convert to a class;
6317 add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
6318 chain_next/prev from symtab_node_def.
6319 (cgraph_node): Inherit from symtab_node; add GTY option
6320 tag ("SYMTAB_FUNCTION").
6321 (varpool_node): Inherit from symtab_node; add GTY option
6322 tag ("SYMTAB_VARIABLE").
6323 (symtab_node_def): Remove.
6324 (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
6325 (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
6326 (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
6327 (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
6329 * ipa-ref.h (symtab_node_def): Drop.
6330 (symtab_node): Change underlying type from symtab_node_def to
6332 (const_symtab_node): Likwise.
6334 * is-a.h: Update examples in comment.
6336 * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
6337 (assembler_name_hash): Likewise.
6339 2013-10-29 Martin Liska <marxin.liska@gmail.com>
6341 * doc/tree-ssa.texi (gimple_phi_result): Document.
6342 (gimple_phi_num_args, gimple_phi_arg): Likewise.
6343 (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
6344 (PHI_RESULT, PHI_NUM_ARGS): Remove.
6345 (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
6347 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
6349 * expr.h: Revert change and include tree-core.h.
6350 * rtl.h: Revert change and don't include tree-core.h.
6352 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
6354 * config/darwin.c: Include gimple.h.
6355 * config/i386/winnt.c: Likewise.
6357 2013-10-29 Marc Glisse <marc.glisse@inria.fr>
6359 PR tree-optimization/19831
6360 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
6362 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
6364 * tree-outof-ssa.h: Remove include files.
6365 * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
6367 * tree-ssa-coalesce.c: Likewise.
6368 * cfgexpand.c: Likewise.
6369 * tree-ssa-ter.c: Likewise.
6370 * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
6371 * lto-streamer.h: Likewise.
6372 * cgraphbuild.c: Add gimple.h to include list.
6373 * data-streamer-in.c: Likewise.
6374 * ipa-cp.c: Likewise.
6375 * tree-streamer.c: Likewise.
6376 * lto-compress.c: Likewise.
6377 * ipa-reference.c: Likewise.
6378 * data-streamer-out.c: Likewise.
6379 * lto-cgraph.c: Likewise.
6380 * cgraphclones.c: Likewise.
6381 * ipa-utils.c: Likewise.
6382 * data-streamer.c: Likewise.
6383 * ipa-split.c: Likewise.
6384 * lto-section-in.c: Likewise.
6385 * tree-streamer-out.c: Likewise.
6386 * ipa-prop.c: Likewise.
6387 * tree-streamer-in.c: Likewise.
6388 * symtab.c: Likewise.
6389 * opts-global.c: Likewise.
6390 * lto-opts.c: Likewise.
6391 * lto-section-out.c: Likewise.
6392 * lto-streamer.c: Likewise.
6393 * rtl.h: Add tree-core.h to include list.
6394 * expr.h: Remove tree-core.h from include list.
6395 * gimple.h: Likewise.
6396 * ipa-utils.h: Likewise.
6397 * streamer-hooks.h: Likewise.
6398 * streamer-hooks.c: Include input.h.
6400 2013-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6402 * config/arm/arm.c (cortexa7_extra_costs): New table.
6403 (arm_cortex_a7_tune): New.
6404 * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
6406 2013-10-29 Eric Botcazou <ebotcazou@adacore.com>
6408 * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
6410 2013-10-29 David Malcolm <dmalcolm@redhat.com>
6412 * doc/gty.texi ("Inheritance and GTY"): Make it clear that
6413 to use autogenerated markers for a class-hierarchy, every class
6414 must have a GTY marker.
6415 * gengtype.h (struct type): Add linked list of subclasses to
6416 the "s" member of the union.
6417 (add_subclass): New decl.
6418 * gengtype-state.c (read_state_struct_type): Set up subclass
6420 * gengtype.c (get_ultimate_base_class): New.
6421 (add_subclass): New.
6422 (new_structure): Set up subclass linked list.
6423 (set_gc_used_type): Propagate usage information to subclasses.
6424 (output_mangled_typename): Use get_ultimate_base_class.
6425 (walk_subclasses): Use the subclass linked list, avoiding an
6426 O(N^2) when writing out all types.
6427 (walk_type): Issue an error if the base class is missing a tag,
6428 rather than generating bogus C code. Add a gcc_unreachable
6429 default case, in case people omit tags from concrete subclasses,
6430 or get the values wrong.
6431 (write_func_for_structure): Issue an error for subclasses for
6432 which the base doesn't have a "desc", since otherwise the
6433 autogenerated routines for the base would silently fail to visit
6434 any subclass fields.
6435 (write_root): Use get_ultimate_base_class, tweaking constness of
6436 tp to match that function's signature.
6438 2013-10-29 David Malcolm <dmalcolm@redhat.com>
6440 * doc/gty.texi (GTY Options): Add note about inheritance to
6441 description of desc and tag.
6442 (Inheritance and GTY): New.
6444 2013-10-29 David Malcolm <dmalcolm@redhat.com>
6446 * gengtype-parse.c (opts_have): Drop "static" so that
6447 we can use this from gengtype.c.
6448 * gengtype.c (set_gc_used_type): Mark any base class as used;
6449 update field traversal to visit inherited fields.
6450 (output_mangled_typename): Convert references to classes within
6451 an inheritance hierarchy to reference the ultimate base class,
6452 since only it will have gt_ functions.
6453 (get_string_option): New.
6454 (walk_subclasses): New.
6455 (walk_type): Treat GTY structs that have a "desc" as being the
6456 root of an inheritance hierarchy. Generate a switch on it
6457 within the marking function which walks all subclasses, adding
6458 cases for them via walk_subclasses. For subclasses, visit all
6459 fields of the type (including inherited ones).
6460 (write_func_for_structure): Don't write fns for subclasses, only
6461 for the ultimate base class within an inheritance hierarchy.
6462 Subclasses-marking will be handled by the base class marking functions.
6463 (write_types): Likewise.
6464 (write_local_func_for_structure): Likewise.
6465 (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
6466 a "tag" option (and are thus concrete subclasses).
6467 (write_root): Use the marker function for the ultimate base class.
6468 * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
6469 (opts_have): Add declaration.
6471 2013-10-28 Vladimir Makarov <vmakarov@redhat.com>
6473 * lra-spills.c (lra_final_code_change): Remove useless move insns
6474 originated from moves of pseudos.
6476 2013-10-28 Jeff Law <law@redhat.com>
6478 * lower-subreg.c (resolve_simple_move): Fix comment typo.
6480 2013-10-28 Trevor Saunders <tsaunders@mozilla.com>
6482 * df-scan.c (df_collection_rec): Adjust.
6483 (copy_defs): New constant.
6484 (copy_uses): Likewise.
6485 (copy_eq_uses): Likewise.
6486 (copy_mw): Likewise.
6487 (copy_all): Likewise.
6488 (df_insn_rescan): Adjust.
6489 (df_notes_rescan): Likewise.
6490 (df_swap_refs): Likewise.
6491 (df_sort_and_compress_refs): Likewise.
6492 (df_sort_and_compress_mws): Likewise.
6493 (df_install_refs): Likewise.
6494 (df_install_mws): Likewise.
6495 (df_refs_add_to_chains): Add flags parameter controlling which vectors
6497 (df_bb_refs_record): Adjust.
6498 (df_record_entry_block_defs): Likewise.
6499 (df_record_exit_block_defs): Likewise.
6500 (df_refs_verify): Likewise.
6501 (df_mws_verify): Likewise.
6502 (df_insn_refs_verify): Likewise.
6503 (df_bb_verify): Likewise.
6504 * ipa-pure-const.c (finish_state): Remove.
6505 (propagate): Adjust.
6506 * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
6507 tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
6508 var-tracking.c: Adjust.
6509 * vec.c (stack_vecs): Remove.
6510 (register_stack_vec): Likewise.
6511 (stack_vec_register_index): Likewise.
6512 (unregister_stack_vec): Likewise.
6513 * vec.h (struct va_stack): Remove.
6514 (struct vec<T, A, vl_ptr>): Specialize as
6515 struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
6516 allocation strategy compatable with the vl_ptr layout.
6517 (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
6518 specialization anyway.
6519 (class stack_vec): New class.
6520 (vec_stack_alloc): Remove.
6521 (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
6523 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
6524 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6525 Sergey Lega <sergey.s.lega@intel.com>
6526 Anna Tikhonova <anna.tikhonova@intel.com>
6527 Ilya Tocar <ilya.tocar@intel.com>
6528 Andrey Turetskiy <andrey.turetskiy@intel.com>
6529 Ilya Verbin <ilya.verbin@intel.com>
6530 Kirill Yukhin <kirill.yukhin@intel.com>
6531 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6533 * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
6534 (*prefetch_avx512pf_<mode>): New.
6535 * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
6536 (avx512f_maskcmp<mode>3): Ditto.
6537 (vashrv16si3): Ditto.
6539 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
6540 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6541 Sergey Lega <sergey.s.lega@intel.com>
6542 Anna Tikhonova <anna.tikhonova@intel.com>
6543 Ilya Tocar <ilya.tocar@intel.com>
6544 Andrey Turetskiy <andrey.turetskiy@intel.com>
6545 Ilya Verbin <ilya.verbin@intel.com>
6546 Kirill Yukhin <kirill.yukhin@intel.com>
6547 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6549 * config/i386/i386.md (any_truncate): New.
6550 (trunsuffix): Ditto.
6551 * config/i386/predicates.md (const_8_to_9_operand): New.
6552 (const_10_to_11_operand): Ditto.
6553 (const_12_to_13_operand): Ditto.
6554 (const_14_to_15_operand): Ditto.
6555 (const_16_to_19_operand): Ditto.
6556 (const_20_to_23_operand): Ditto.
6557 (const_24_to_27_operand): Ditto.
6558 (const_28_to_31_operand): Ditto.
6559 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
6560 (cvtusi2<ssescalarmodesuffix>32): New.
6561 (cvtusi2<ssescalarmodesuffix>64): Ditto.
6562 (ufloatv16siv16sf2): Ditto.
6563 (avx512f_fix_notruncv16sfv16si): Ditto.
6564 (avx512f_ufix_notruncv16sfv16si): Ditto.
6565 (avx512f_vcvtss2usi): Ditto.
6566 (avx512f_vcvtss2usiq): Ditto.
6567 (avx512f_vcvttss2usi): Ditto.
6568 (avx512f_vcvttss2usiq): Ditto.
6569 (avx512f_vcvtsd2usi): Ditto.
6570 (avx512f_vcvtsd2usiq): Ditto.
6571 (avx512f_vcvttsd2usi): Ditto.
6572 (avx512f_vcvttsd2usiq): Ditto.
6573 (ufloatv8siv8df): Ditto.
6574 (avx512f_cvtdq2pd512_2): Ditto.
6575 (avx512f_cvtpd2dq512): Ditto.
6576 (avx512f_ufix_notruncv8dfv8si): Ditto.
6577 (avx512f_cvtpd2ps512): Ditto.
6578 (vec_unpacks_lo_v16sf): Ditto.
6579 (vec_unpacks_hi_v16sf): Ditto.
6580 (vec_unpacks_float_hi_v16si): Ditto.
6581 (vec_unpacks_float_lo_v16si): Ditto.
6582 (avx512f_unpckhps512): Ditto.
6583 (avx512f_unpcklps512): Ditto.
6584 (avx512f_movshdup512): Ditto.
6585 (avx512f_movsldup512): Ditto.
6586 (vec_extract_lo_v32hi): Ditto.
6587 (vec_extract_hi_v32hi): Ditto.
6588 (vec_extract_lo_v64qi): Ditto.
6589 (vec_extract_hi_v64qi): Ditto.
6590 (avx512f_unpckhpd512): Ditto.
6591 (avx512f_movddup512): Ditto.
6592 (avx512f_unpcklpd512): Ditto.
6593 (*avx512f_unpcklpd512): Ditto.
6594 (avx512f_shufps512_1): Ditto.
6595 (avx512f_shufpd512_1): Ditto.
6596 (avx512f_interleave_highv8di): Ditto.
6597 (avx512f_interleave_lowv8di): Ditto.
6598 (PMOV_DST_MODE): Ditto.
6599 (pmov_src_mode): Ditto.
6600 (pmov_src_lower): Ditto.
6602 (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
6603 (*avx512f_<code>v8div16qi2): Ditto.
6604 (*avx512f_<code>v8div16qi2_store): Ditto.
6605 (vec_widen_umult_even_v16si): Ditto.
6606 (*vec_widen_umult_even_v16si): Ditto.
6607 (vec_widen_smult_even_v16si): Ditto.
6608 (*vec_widen_smult_even_v16si): Ditto.
6609 (avx512f_interleave_highv16si): Ditto.
6610 (avx512f_interleave_lowv16si): Ditto.
6611 (avx512f_<code>v16qiv16si2): Ditto.
6612 (avx512f_<code>v16hiv16si2): Ditto.
6613 (avx512f_<code>v8qiv8di2): Ditto.
6614 (avx512f_<code>v8hiv8di2): Ditto.
6615 (avx512f_<code>v8siv8di2): Ditto.
6616 (avx512cd_maskb_vec_dupv8di): Ditto.
6617 (avx512cd_maskw_vec_dupv16si): Ditto.
6618 (avx512f_vcvtph2ps512): Ditto.
6619 (avx512f_vcvtps2ph512): Ditto.
6620 (VEC_EXTRACT_MODE): Extened with wider modes.
6621 (VEC_PERM_AVX2): Ditto.
6622 (VEC_PERM_CONST): Ditto.
6624 2013-10-28 Joern Rennecke <joern.rennecke@embecosm.com>
6626 * config/arc/arc.c (arc_ccfsm_post_advance):
6627 Add comment about TYPE_RETURN.
6629 2013-10-28 Bin Cheng <bin.cheng@arm.com>
6631 * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
6632 Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
6633 (strip_offset): Convert offset to unsigned number.
6635 2013-10-27 Tom de Vries <tom@codesourcery.com>
6637 * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
6638 Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
6640 2013-10-27 Oleg Endo <olegendo@gcc.gnu.org>
6642 * config/sh/sh.c (MSW, LSW): Move and rename macros to...
6643 * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
6644 (TARGET_BIG_ENDIAN): New macro.
6645 * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
6646 Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
6647 * config/sh/sh.c: Likewise.
6648 * config/sh/sh.h: Likewise.
6650 2013-10-27 Hans-Peter Nilsson <hp@axis.com>
6652 * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
6653 removed PRED_MUDFLAP with PRED_NORETURN. Correct file-path in comment.
6655 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
6657 * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
6659 (cmpstr_t, cmpstrsi): Fix formatting.
6661 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
6664 * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
6665 addressing, do not use general_operand for memory operands.
6667 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
6670 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
6671 * lra-spills.c (lra_final_code_change): Remove useless move insns.
6673 2013-10-26 Jeff Law <law@redhat.com>
6675 * predict.c (PRED_MUDFLAP): Remove.
6676 * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
6678 * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
6679 (OBJS): Remove tree-nomudflap.o
6680 (GTFILES): Remove tree-mudflap.c
6681 * builtins.c (expand_builtin_alloc): Remove mudflap support.
6682 * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
6683 (mfwrap_spec, mflib_spec): Likewise.
6684 (cpp_unique_options, cc1_options, static_specs): Likewise.
6685 * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
6686 * passes.def: Likewise.
6687 * toplev.c (compile_file, process_options): Likewise.
6688 * tree-inline.c (copy_tree_r): Likewise.
6689 * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
6690 * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
6691 (build_constant_desc, output_constant_def_contents): Likewise.
6692 (categorize_decl_for_section): Likewise.
6693 * tree-mudflap.c: Removed.
6694 * tree-mudflap.h: Removed.
6695 * tree-nomudflap.c: Removed.
6696 * bfin/uclinux.h (MFWRAP_SPEC): Remove.
6697 * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
6698 * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
6699 * config/sol2.h (MFLIB_SPEC): Likewise.
6700 * doc/install.texi: Remove mudflap references.
6701 * doc/passes.texi: Similarly.
6702 * doc/sourcebuild.texi: Similarly.
6703 * doc/invoke.texi: Remove mudlfap related options.
6705 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
6707 PR rtl-optimization/58759
6708 * lra-constraints.c (lra_constraints): Remove wrong condition to
6709 remove insn setting up an equivalent pseudo.
6711 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
6713 * config/rs6000/rs6000-protos.h
6714 (rs6000_secondary_memory_needed_mode): New prototype.
6715 * config/rs6000/rs6000.c: Include ira.h.
6716 (TARGET_LRA_P): Redefine.
6717 (rs6000_legitimate_offset_address_p): Call
6718 legitimate_constant_pool_address_p in strict mode for LRA.
6719 (rs6000_legitimate_address_p): Ditto.
6720 (legitimate_lo_sum_address_p): Add code for LRA. Use lra_in_progress.
6721 (rs6000_emit_move): Add LRA version of code to generate load/store
6723 (rs6000_secondary_memory_needed_mode): New.
6724 (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
6725 (rs6000_secondary_reload_class): Return NO_REGS for LRA for
6726 constants, memory, and FP registers.
6727 (rs6000_lra_p): New.
6728 * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
6729 * config/rs6000/rs6000.opt (mlra): New option.
6730 * lra-spills.c (lra_final_code_change): Remove useless move insns.
6732 2013-10-25 Yufeng Zhang <yufeng.zhang@arm.com>
6734 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
6735 has_single_use () and not do the conversion if has_single_use ()
6736 returns false for the multiplication result.
6738 2013-10-25 David Malcolm <dmalcolm@redhat.com>
6740 * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
6741 to "NODE", since this works on a "tree", not an
6743 (CONSTANT_CLASS_P): Likewise.
6746 (INDIRECT_REF_P): Likewise.
6747 (REFERENCE_CLASS_P): Likewise.
6748 (COMPARISON_CLASS_P): Likewise.
6749 (UNARY_CLASS_P): Likewise.
6750 (BINARY_CLASS_P): Likewise.
6751 (STATEMENT_CLASS_P): Likewise.
6752 (VL_EXP_CLASS_P): Likewise.
6753 (EXPRESSION_CLASS_P): Likewise.
6754 (IS_TYPE_OR_DECL_P): Likewise.
6756 2013-10-25 Marc Glisse <marc.glisse@inria.fr>
6758 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
6759 ADDR_EXPR in the defining statement.
6761 2013-10-25 Richard Biener <rguenther@suse.de>
6763 PR tree-optimization/58626
6764 * tree-loop-distribution.c (enum rdg_dep_type): Remove
6765 anti_dd, output_dd and input_dd.
6766 (struct rdg_edge): Remove level and relation members.
6767 (RDGE_LEVEL, RDGE_RELATION): Remove.
6768 (dot_rdg_1): Adjust.
6769 (create_rdg_edge_for_ddr): Remove.
6770 (create_rdg_edges_for_scalar): Adjust.
6771 (create_edge_for_control_dependence): Likewise.
6772 (create_rdg_edges): Split into ...
6773 (create_rdg_flow_edges): ... this
6774 (create_rdg_cd_edges): ... and this.
6776 (build_rdg): Likewise, do not compute data dependences or
6778 (pg_add_dependence_edges): New function.
6780 (distribute_loop): First apply all non-dependence based
6781 partition mergings. Then compute dependences between partitions
6782 and merge and order partitions according to them.
6784 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
6786 PR rtl-optimization/58831
6787 * alias.c (init_alias_analysis): At the beginning of each iteration,
6788 set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
6790 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
6792 * recog.c (search_ofs): New static variable moved from...
6793 (peep2_find_free_register): ...here.
6794 (peephole2_optimize): Initialize it.
6796 2013-10-25 Tobias Burnus <burnus@net-b.de>
6798 * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
6800 2013-10-25 Uros Bizjak <ubizjak@gmail.com>
6802 * config/i386/i386.h (TARGET_MPX): New define.
6803 (TARGET_MPX_P): Ditto.
6805 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
6807 * config/i386/constraints.md (B): New.
6810 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
6811 * config/i386/i386-modes.def (BND32): New.
6813 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
6814 * config/i386/i386.c (isa_opts): Add mmpx.
6815 (regclass_map): Add bound registers.
6816 (dbx_register_map): Likewise.
6817 (dbx64_register_map): Likewise.
6818 (svr4_dbx_register_map): Likewise.
6820 (ix86_option_override_internal): Support MPX ISA.
6821 (ix86_conditional_register_usage): Support bound registers.
6822 (print_reg): Likewise.
6823 (ix86_code_end): Add MPX bnd prefix.
6824 (output_set_got): Likewise.
6825 (ix86_output_call_insn): Likewise.
6826 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
6827 (ix86_print_operand_punct_valid_p): Likewise.
6828 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
6830 (ix86_class_likely_spilled_p): Add bound regs support.
6831 (ix86_hard_regno_mode_ok): Likewise.
6832 (x86_order_regs_for_local_alloc): Likewise.
6833 (ix86_bnd_prefixed_insn_p): New.
6834 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
6835 (FIXED_REGISTERS): Add bound registers.
6836 (CALL_USED_REGISTERS): Likewise.
6837 (REG_ALLOC_ORDER): Likewise.
6838 (HARD_REGNO_NREGS): Likewise.
6840 (VALID_BND_REG_MODE): New.
6841 (FIRST_BND_REG): New.
6842 (LAST_BND_REG): New.
6843 (reg_class): Add BND_REGS.
6844 (REG_CLASS_NAMES): Likewise.
6845 (REG_CLASS_CONTENTS): Likewise.
6847 (ANY_BND_REG_P): New.
6849 (HI_REGISTER_NAMES): Add bound registers.
6850 * config/i386/i386.md (UNSPEC_BNDMK): New.
6851 (UNSPEC_BNDMK_ADDR): New.
6852 (UNSPEC_BNDSTX): New.
6853 (UNSPEC_BNDLDX): New.
6854 (UNSPEC_BNDLDX_ADDR): New.
6855 (UNSPEC_BNDCL): New.
6856 (UNSPEC_BNDCU): New.
6857 (UNSPEC_BNDCN): New.
6858 (UNSPEC_MPX_FENCE): New.
6861 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
6862 (length_immediate): Likewise.
6863 (prefix_0f): Likewise.
6865 (prefix_rep): Check for bnd prefix.
6866 (length_nobnd): New.
6867 (length): Use length_nobnd if specified.
6872 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
6875 (simple_return_internal): Likewise.
6876 (simple_return_pop_internal): Likewise.
6877 (*indirect_jump): Add MPX bnd prefix.
6878 (*tablejump_1): Likewise.
6879 (simple_return_internal_long): Likewise.
6880 (simple_return_indirect_internal): Likewise.
6884 (*mov<mode>_internal_mpx): New.
6885 (<mode>_<bndcheck>): New.
6886 (*<mode>_<bndcheck>): New.
6891 * config/i386/predicates.md (lea_address_operand): Rename to...
6892 (address_no_seg_operand): ... this.
6893 (address_mpx_no_base_operand): New.
6894 (address_mpx_no_index_operand): New.
6895 (bnd_mem_operator): New.
6896 * config/i386/i386.opt (mmpx): New.
6897 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
6898 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
6900 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
6902 * mode-classes.def (MODE_POINTER_BOUNDS): New.
6903 * tree.def (POINTER_BOUNDS_TYPE): New.
6904 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
6905 (POINTER_BOUNDS_MODE): New.
6906 (make_pointer_bounds_mode): New.
6907 * machmode.h (POINTER_BOUNDS_MODE_P): New.
6908 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
6909 (layout_type): Support POINTER_BOUNDS_TYPE.
6910 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
6911 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
6912 (type_contains_placeholder_1): Likewise.
6913 * tree.h (POINTER_BOUNDS_TYPE_P): New.
6914 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
6915 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
6917 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
6919 * expr.c (expand_expr_real_1): Use mode of memory reference rather than
6920 mode of address computation when calling memory_address_addr_space.
6922 2013-08-24 Richard Henderson <rth@twiddle.net>
6925 * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
6926 instead of create_convert_operand_to.
6927 (maybe_emit_sync_lock_test_and_set): Likewise.
6928 (expand_atomic_compare_and_swap): Likewise.
6929 (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
6931 2013-08-24 Sriraman Tallam <tmsriram@google.com>
6933 * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
6934 Change param_is to use the struct and not the pointer to the struct.
6936 2013-10-24 Andrew MacLeod <amacleod@redhat.com>
6938 * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
6939 * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
6940 Move to targhooks.c.
6941 (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
6942 * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
6943 Relocate from gimplify.c.
6944 * targhooks.h: Add 2 prototypes.
6945 * tree.h: Delete 2 prototypes.
6947 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
6949 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
6950 [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
6952 2013-10-24 Cong Hou <congh@google.com>
6954 * convert.c (convert_to_real): Guard those unsafe math function
6955 convertions with flag_unsafe_math_optimizations. Handle sqrt()
6958 2013-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
6961 * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
6963 (cgraph_create_edge): Use the new argument.
6964 (cgraph_create_indirect_edge): Likewise.
6966 2013-10-24 Joern Rennecke <joern.rennecke@embecosm.com>
6968 * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
6970 (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
6971 changes statep->state.
6973 2013-10-24 Tobias Burnus <burnus@net-b.de>
6976 * tree-cfg.c (replace_loop_annotate): New function.
6977 (execute_build_cfg): Call it.
6978 * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
6979 * internal-fn.c (expand_ANNOTATE): New function.
6980 * internal-fn.def (ANNOTATE): Define as new internal function.
6981 * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
6982 * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
6983 * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
6984 * doc/extend.texi (Pragmas): Document #pragma ivdep.
6985 * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
6987 2013-10-17 Ian Bolton <ian.bolton@arm.com>
6988 Marcus Shawcroft <marcus.shawcroft@arm.com>
6990 * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
6991 Special case reload SP+C into none GENERAL_REGS.
6993 2013-10-24 Michael Matz <matz@suse.de>
6995 * gengtype.c (is_file_equal): Check that files will be same length.
6997 2013-10-25 Christian Bruel <christian.bruel@st.com>
6999 * config.gcc (sh-*): Add sh-mem.o to extra_obj.
7000 * config/sh/t-sh (sh-mem.o): New rule.
7001 * config/sh/sh-mem.cc (expand_block_move): Moved here.
7002 (sh_expand_cmpstr): New function.
7003 * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
7004 * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
7005 * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
7006 (rotlhi3_8): Rename.
7008 2013-10-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7010 * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
7011 * Makefile.in (CXXDEPMODE): Assign and change users.
7012 (CCDEPMODE): Delete.
7013 * configure: Regenerate.
7015 2013-10-23 David Malcolm <dmalcolm@redhat.com>
7017 * gengtype-parse.c (require_without_advance): New.
7018 (type): For GTY-marked types that are not GTY((user)), parse any
7019 base classes, requiring them to be single-inheritance, and not
7020 be templates. For non-GTY-marked types and GTY((user)),
7021 continue to skip over any C++ inheritance specification.
7022 * gengtype-state.c (state_writer::write_state_struct_type):
7023 Write base class of type (if any).
7024 (read_state_struct_type): Read base class of type (if any).
7025 * gengtype.c (new_structure): Add a "base_class" parameter.
7026 (create_optional_field_): Update for new parameter to new_structure.
7027 (adjust_field_rtx_def): Likewise.
7028 (adjust_field_tree_exp): Likewise.
7029 * gengtype.h (struct type): Add "base_class" field to the s
7031 (new_structure): Add "base" parameter.
7033 2013-10-23 Sriraman Tallam <tmsriram@google.com>
7036 * config/i386/i386.c (ix86_option_override_internal):
7037 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
7038 (ix86_valid_target_attribute_tree):
7039 Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
7040 Change TARGET_SSE to TARGET_SSE_P (opts->...)
7042 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
7044 * tree-ssa-loop.h: Remove include files.
7045 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
7046 * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
7047 * graphite-clast-to-gimple.c: Likewise.
7048 * graphite-scop-detection.c: Likewise.
7049 * graphite-sese-to-poly.c: Likewise.
7050 * ipa-inline-analysis.c: Likewise.
7051 * ipa-pure-const.c: Likewise.
7052 * loop-init.c: Likewise.
7053 * passes.c: Likewise.
7054 * predict.c: Likewise.
7055 * tree-cfg.c: Likewise.
7056 * tree-cfgcleanup.c: Likewise.
7057 * tree-chrec.c: Likewise.
7058 * tree-data-ref.c: Likewise.
7059 * tree-loop-distribution.c: Likewise.
7060 * tree-parloops.c: Likewise.
7061 * tree-predcom.c: Likewise.
7062 * tree-scalar-evolution.c: Likewise.
7063 * tree-ssa-address.c: Likewise.
7064 * tree-ssa.c: Likewise.
7065 * tree-ssa-dce.c: Likewise.
7066 * tree-ssa-loop.c: Likewise.
7067 * tree-ssa-loop-im.c: Likewise.
7068 * tree-ssa-loop-ivcanon.c: Likewise.
7069 * tree-ssa-loop-ivopts.c: Likewise.
7070 * tree-ssa-loop-manip.c: Likewise.
7071 * tree-ssa-loop-niter.c: Likewise.
7072 * tree-ssa-loop-prefetch.c: Likewise.
7073 * tree-ssa-loop-unswitch.c: Likewise.
7074 * tree-ssa-reassoc.c: Likewise.
7075 * tree-vect-data-refs.c: Likewise.
7076 * tree-vect-loop.c: Likewise.
7077 * tree-vect-loop-manip.c: Likewise.
7078 * tree-vectorizer.c: Likewise.
7079 * tree-vect-stmts.c: Likewise.
7080 * tree-vrp.c: Likewise.
7082 2013-10-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7084 * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
7086 2013-10-23 Jakub Jelinek <jakub@redhat.com>
7088 PR tree-optimization/58775
7089 PR tree-optimization/58791
7090 * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
7091 (insert_stmt_after): Rewritten, don't move the stmt, but really
7093 (get_stmt_uid_with_default): Remove.
7094 (build_and_add_sum): Use insert_stmt_after and
7095 reassoc_stmt_dominates_stmt_p. Fix up uid if bb contains only labels.
7096 (update_range_test): Set uid on stmts added by
7097 force_gimple_operand_gsi. Don't immediately modify statements
7098 in inter-bb optimization, just update oe->op values.
7099 (optimize_range_tests): Return bool whether any changed have been made.
7100 (update_ops): New function.
7101 (struct inter_bb_range_test_entry): New type.
7102 (maybe_optimize_range_tests): Perform statement changes here.
7103 (not_dominated_by, appears_later_in_bb, get_def_stmt,
7104 ensure_ops_are_available): Remove.
7105 (find_insert_point): Rewritten.
7106 (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
7107 return LHS of the (new resp. old) stmt. Don't call
7108 ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
7109 instead of last, move new stmt at the right place.
7110 (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
7111 (negate_value): Likewise. Set uids.
7112 (break_up_subtract_bb): Initialize uids.
7113 (reassociate_bb): Adjust rewrite_expr_tree caller.
7114 (do_reassoc): Don't call renumber_gimple_stmt_uids.
7116 2013-10-23 David Edelsohn <dje.gcc@gmail.com>
7119 * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
7120 TARGET_32BIT final condition.
7121 (mulsi3_internal2 and splitter): Same.
7123 2013-10-23 Jeff Law <law@redhat.com>
7125 * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
7126 through joiner blocks with abnormal outgoing edges.
7128 * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
7129 Add parameter JOINERS, to allow/disallow threading through joiner
7131 (thread_block): New. Call thread_block_1.
7132 (mark_threaded_blocks): Remove code to filter out certain cases
7133 of threading through joiner blocks.
7134 (thread_through_all_blocks): Document how we can have a dangling
7135 edge AUX field and clear it.
7137 2013-10-23 Ian Lance Taylor <iant@google.com>
7139 * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
7140 (C++ Dialect Options): Likewise.
7141 (Optimize Options): Likewise.
7143 2013-10-23 Tom de Vries <tom@codesourcery.com>
7145 PR tree-optimization/58805
7146 * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
7148 2013-10-23 Jakub Jelinek <jakub@redhat.com>
7150 * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
7151 sequence based on get_range_info returned range.
7153 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
7155 * tree-ssa.h: Remove all #include's
7156 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
7157 * alias.c: Move required includes from tree-ssa.h.
7159 * builtins.c: Likewise.
7160 * calls.c: Likewise.
7161 * cfgexpand.c: Likewise.
7162 * cfghooks.c: Likewise.
7163 * cfgloop.c: Likewise.
7164 * cfgloopmanip.c: Likewise.
7165 * cgraph.c: Likewise.
7166 * cgraphbuild.c: Likewise.
7167 * cgraphclones.c: Likewise.
7168 * cgraphunit.c: Likewise.
7170 * except.c: Likewise.
7172 * final.c: Likewise.
7173 * fold-const.c: Likewise.
7174 * ggc-page.c: Likewise.
7175 * gimple-builder.c: Likewise.
7176 * gimple-fold.c: Likewise.
7177 * gimple-iterator.c: Likewise.
7178 * gimple-low.c: Likewise.
7179 * gimple-pretty-print.c: Likewise.
7180 * gimple-ssa-strength-reduction.c: Likewise.
7181 * gimple-streamer-in.c: Likewise.
7182 * gimple-streamer-out.c: Likewise.
7183 * gimplify.c: Likewise.
7184 * graphite-blocking.c: Likewise.
7185 * graphite-clast-to-gimple.c: Likewise.
7186 * graphite-dependences.c: Likewise.
7187 * graphite-interchange.c: Likewise.
7188 * graphite-optimize-isl.c: Likewise.
7189 * graphite-poly.c: Likewise.
7190 * graphite-scop-detection.c: Likewise.
7191 * graphite-sese-to-poly.c: Likewise.
7192 * graphite.c: Likewise.
7193 * ipa-cp.c: Likewise.
7194 * ipa-inline-analysis.c: Likewise.
7195 * ipa-inline-transform.c: Likewise.
7196 * ipa-inline.c: Likewise.
7197 * ipa-prop.c: Likewise.
7198 * ipa-pure-const.c: Likewise.
7199 * ipa-reference.c: Likewise.
7200 * ipa-split.c: Likewise.
7201 * ipa-utils.c: Likewise.
7202 * loop-init.c: Likewise.
7203 * lto-cgraph.c: Likewise.
7204 * lto-section-in.c: Likewise.
7205 * lto-section-out.c: Likewise.
7206 * lto-streamer-in.c: Likewise.
7207 * lto-streamer-out.c: Likewise.
7208 * lto-streamer.c: Likewise.
7209 * omp-low.c: Likewise.
7210 * passes.c: Likewise.
7211 * predict.c: Likewise.
7212 * print-tree.c: Likewise.
7213 * profile.c: Likewise.
7215 * targhooks.c: Likewise.
7216 * tracer.c: Likewise.
7217 * trans-mem.c: Likewise.
7218 * tree-call-cdce.c: Likewise.
7219 * tree-cfg.c: Likewise.
7220 * tree-cfgcleanup.c: Likewise.
7221 * tree-chrec.c: Likewise.
7222 * tree-complex.c: Likewise.
7223 * tree-data-ref.c: Likewise.
7224 * tree-dfa.c: Likewise.
7225 * tree-eh.c: Likewise.
7226 * tree-emutls.c: Likewise.
7227 * tree-if-conv.c: Likewise.
7228 * tree-inline.c: Likewise.
7229 * tree-into-ssa.c: Likewise.
7230 * tree-loop-distribution.c: Likewise.
7231 * tree-mudflap.c: Likewise.
7232 * tree-nested.c: Likewise.
7233 * tree-nrv.c: Likewise.
7234 * tree-object-size.c: Likewise.
7235 * tree-outof-ssa.c: Likewise.
7236 * tree-parloops.c: Likewise.
7237 * tree-phinodes.c: Likewise.
7238 * tree-predcom.c: Likewise.
7239 * tree-pretty-print.c: Likewise.
7240 * tree-profile.c: Likewise.
7241 * tree-scalar-evolution.c: Likewise.
7242 * tree-sra.c: Likewise.
7243 * tree-ssa-address.c: Likewise.
7244 * tree-ssa-alias.c: Likewise.
7245 * tree-ssa-ccp.c: Likewise.
7246 * tree-ssa-coalesce.c: Likewise.
7247 * tree-ssa-copy.c: Likewise.
7248 * tree-ssa-copyrename.c: Likewise.
7249 * tree-ssa-dce.c: Likewise.
7250 * tree-ssa-dom.c: Likewise.
7251 * tree-ssa-dse.c: Likewise.
7252 * tree-ssa-forwprop.c: Likewise.
7253 * tree-ssa-ifcombine.c: Likewise.
7254 * tree-ssa-live.c: Likewise.
7255 * tree-ssa-loop-ch.c: Likewise.
7256 * tree-ssa-loop-im.c: Likewise.
7257 * tree-ssa-loop-ivcanon.c: Likewise.
7258 * tree-ssa-loop-ivopts.c: Likewise.
7259 * tree-ssa-loop-manip.c: Likewise.
7260 * tree-ssa-loop-niter.c: Likewise.
7261 * tree-ssa-loop-prefetch.c: Likewise.
7262 * tree-ssa-loop-unswitch.c: Likewise.
7263 * tree-ssa-loop.c: Likewise.
7264 * tree-ssa-math-opts.c: Likewise.
7265 * tree-ssa-operands.c: Likewise.
7266 * tree-ssa-phiopt.c: Likewise.
7267 * tree-ssa-phiprop.c: Likewise.
7268 * tree-ssa-pre.c: Likewise.
7269 * tree-ssa-propagate.c: Likewise.
7270 * tree-ssa-reassoc.c: Likewise.
7271 * tree-ssa-sccvn.c: Likewise.
7272 * tree-ssa-sink.c: Likewise.
7273 * tree-ssa-strlen.c: Likewise.
7274 * tree-ssa-structalias.c: Likewise.
7275 * tree-ssa-tail-merge.c: Likewise.
7276 * tree-ssa-ter.c: Likewise.
7277 * tree-ssa-threadedge.c: Likewise.
7278 * tree-ssa-threadupdate.c: Likewise.
7279 * tree-ssa-uncprop.c: Likewise.
7280 * tree-ssa-uninit.c: Likewise.
7281 * tree-ssa.c: Likewise.
7282 * tree-ssanames.c: Likewise.
7283 * tree-stdarg.c: Likewise.
7284 * tree-streamer-in.c: Likewise.
7285 * tree-switch-conversion.c: Likewise.
7286 * tree-tailcall.c: Likewise.
7287 * tree-vect-data-refs.c: Likewise.
7288 * tree-vect-generic.c: Likewise.
7289 * tree-vect-loop-manip.c: Likewise.
7290 * tree-vect-loop.c: Likewise.
7291 * tree-vect-patterns.c: Likewise.
7292 * tree-vect-slp.c: Likewise.
7293 * tree-vect-stmts.c: Likewise.
7294 * tree-vectorizer.c: Likewise.
7295 * tree-vrp.c: Likewise.
7298 * value-prof.c: Likewise.
7299 * var-tracking.c: Likewise.
7300 * varpool.c: Likewise.
7301 * vtable-verify.c: Likewise.
7303 2013-10-23 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7305 * config/tilegx/tilegx.c: Include "tree.h".
7307 2013-10-23 Jakub Jelinek <jakub@redhat.com>
7309 * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
7310 the info, not after it.
7311 (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
7312 dump_ssaname_info call.
7313 (pp_gimple_stmt_1): Adjust caller.
7314 (dump_phi_nodes): Likewise. Don't print "# " here.
7316 2013-10-22 Jan Hubicka <jh@suse.cz>
7318 * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
7320 * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
7321 * i386.c (expand_small_movmem_or_setmem): New function.
7322 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
7324 (alg_usable_p): Add support for value ranges; cleanup.
7325 (ix86_expand_set_or_movmem): Add support for misaligned moves.
7327 2013-10-22 Sterling Augustine <saugustine@google.com>
7329 * doc/invoke.texi: Document -ggnu-pubnames.
7330 * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
7332 * dwarf2out.c: Include gdb/gdb-index.h.
7333 (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
7334 debug_generate_pub_sections.
7335 (is_java, output_pubtables, output_pubname): New functions.
7336 (include_pubname_in_output): Handle debug_generate_pub_sections at
7338 (size_of_pubnames): Use new local space_for_flags based on
7339 debug_generate_pub_sections.
7340 (output_pubnames): Unify pubnames and pubtypes output logic.
7341 Genericize comments. Call output_pubname.
7342 (dwarf2out_finish): Move logic to output_pubnames and call it.
7344 2013-10-22 Uros Bizjak <ubizjak@gmail.com>
7347 * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
7348 Remove CCCmode handling.
7349 <case LTU>: Return 'c' suffix for CCCmode.
7350 <case GEU>: Return 'nc' suffix for CCCmode.
7351 (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
7352 * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
7353 (*sub<mode>3_cc_overflow): Ditto.
7354 (*subsi3_zext_cc_overflow): Ditto.
7356 2013-10-22 Steve Ellcey <sellcey@mips.com>
7358 * config/mips/mips.c (mips_rtx_costs): Fix cost estimate for nor
7359 (AND (NOT OP1) (NOT OP2)).
7361 2013-10-22 Bill Schmidt <wschmidt@vnet.ibm.com>
7363 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
7364 meaning of merge-high and merge-low masks for little endian; avoid
7365 use of vector-pack masks for little endian for mismatched modes.
7367 2013-10-22 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7369 * config/tilepro/tilepro.c: Include "tree.h".
7371 2013-10-22 Andreas Schwab <schwab@suse.de>
7373 * config/m68k/m68k.c (notice_update_cc): Handle register conflict
7376 2013-10-22 Paolo Carlini <paolo.carlini@oracle.com>
7378 * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
7379 [Ed Smith-Rowland]): New entries.
7380 ([Stephen M. Webb]): Update.
7382 2013-10-22 Andrew MacLeod <amacleod@redhat.com>
7384 * tree-ssa-ter.h: Remove duplicate copy of file contents.
7386 2013-10-21 Marek Polacek <polacek@redhat.com>
7389 * fold-const.c (fold_range_test): Return 0 if the type is not
7392 2013-10-21 Richard Sandiford <rdsandiford@googlemail.com>
7394 * system.h: Move hwint.h include further down.
7395 * hwint.h (sext_hwi, zext_hwi): Define unconditionally. Add
7396 gcc_checking_asserts.
7397 * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
7399 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
7401 Fix volatile issues in optimize_bit_field_compare.
7402 * fold-const.c (optimize_bit_field_compare): Bail out if
7403 lvolatilep or rvolatilep.
7405 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
7407 Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
7408 and get_inner_reference returning different pmode for non-volatile
7409 bit-field members dependent on flag_strict_volatile_bitfields.
7410 * stor-layout.c (layout_decl): Remove special handling of
7411 flag_strict_volatile_bitfields.
7412 * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
7413 if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
7415 2013-10-21 Paulo Matos <pmatos@broadcom.com>
7417 * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
7420 2013-10-21 Jeff Law <law@redhat.com>
7422 * tree-ssa-threadedge.c (thread_through_normal_block): New
7423 argument VISITED. Remove VISISTED as a local variable. When we
7424 have a threadable jump, verify the destination of the jump has not
7426 (thread_across_edge): Allocate VISITED bitmap once at function
7427 scope and use it throughout. Make sure to set appropriate bits in
7428 VISITED for E (start of jump thread path).
7429 * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
7430 through a joiner if any edge on the path has a recorded jump thread.
7432 2013-10-21 Ian Lance Taylor <iant@google.com>
7434 * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
7435 don't imply that attributes can solve all problems.
7436 (Directory Options): Fix typo.
7438 2013-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7440 * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
7441 extend and extend_add.
7443 2013-10-21 Richard Biener <rguenther@suse.de>
7445 PR tree-optimization/58794
7446 * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
7447 of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
7449 2013-10-21 Richard Biener <rguenther@suse.de>
7452 * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
7453 to (T) X for sign-changing conversions (or no conversion).
7455 2013-10-20 Uros Bizjak <ubizjak@gmail.com>
7457 * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
7459 2013-10-20 Jan Hubicka <jh@suse.cz>
7461 * config/i386/i386-tune.def: Add comment; organize into categories
7463 2013-10-21 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
7465 * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
7466 argument. Update function comment.
7467 (expand_set_or_movmem_via_rep): New function combining
7468 expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
7469 (expand_movmem_via_rep_mov): Remove.
7470 expand_setmem_via_rep_stos): Remove.
7471 (expand_movmem_epilogue): Update calls correspondingly.
7472 (expand_setmem_epilogue_via_loop): Likewise.
7474 (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
7475 (expand_set_or_movmem_prologue): New function combining
7476 expand_movmem_prologue and expand_setmem_prologue.
7477 (expand_movmem_prologue): Remove.
7478 (expand_setmem_prologue): Remove.
7479 (expand_set_or_movmem_constant_prologue): New function combining
7480 expand_constant_movmem_prologue and expand_constant_setmem_prologue.
7481 (expand_constant_movmem_prologue): Remove.
7482 (expand_constant_setmem_prologue): Remove.
7483 (promote_duplicated_reg): Allow vector-const0 value.
7484 (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
7485 and ix86_expand_setmem.
7486 (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
7487 (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
7489 2013-10-21 Diego Novillo <dnovillo@google.com>
7491 * asan.c: Include tree.h
7492 * bb-reorder.c: Likewise.
7493 * cfgcleanup.c: Likewise.
7494 * cfgloopmanip.c: Likewise.
7495 * data-streamer-in.c: Likewise.
7496 * data-streamer-out.c: Likewise.
7497 * data-streamer.c: Likewise.
7498 * dwarf2cfi.c: Likewise.
7499 * graphite-blocking.c: Likewise.
7500 * graphite-clast-to-gimple.c: Likewise.
7501 * graphite-dependences.c: Likewise.
7502 * graphite-interchange.c: Likewise.
7503 * graphite-optimize-isl.c: Likewise.
7504 * graphite-poly.c: Likewise.
7505 * graphite-scop-detection.c: Likewise.
7506 * graphite-sese-to-poly.c: Likewise.
7507 * graphite.c: Likewise.
7508 * ipa-devirt.c: Likewise.
7509 * ipa-profile.c: Likewise.
7512 * loop-init.c: Likewise.
7513 * loop-unroll.c: Likewise.
7514 * lower-subreg.c: Likewise.
7515 * lto/lto-object.c: Likewise.
7516 * recog.c: Likewise.
7517 * reginfo.c: Likewise.
7518 * tree-loop-distribution.c: Likewise.
7519 * tree-parloops.c: Likewise.
7520 * tree-ssa-strlen.c: Likewise.
7521 * tree-streamer.c: Likewise.
7522 * value-prof.c: Likewise.
7523 * target-globals.c: Likewise.
7524 * expr.h: Include tree-core.h instead of tree.h.
7525 * gimple.h: Likewise.
7526 * ipa-prop.h: Likewise.
7527 * ipa-utils.h: Likewise.
7528 * lto-streamer.h: Likewise.
7529 * streamer-hooks.h: Likewise.
7530 * ipa-reference.h: Include cgraph.h instead of tree.h.
7531 * cgraph.h: Include basic-block.h instead of tree.h.
7532 * tree-streamer.h: Do not include tree.h.
7533 * genattrtab.c (write_header): Generate inclusion of tree.h.
7534 * genautomata.c (main): Likewise.
7535 * genemit.c: Likewise.
7536 * genopinit.c: Likewise.
7537 * genoutput.c (output_prologue): Likewise.
7538 * genpeep.c: Likewise.
7540 2013-10-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7542 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
7544 (vec_unpacku_hi_v8hi): Likewise.
7545 (vec_unpacku_lo_v16qi): Likewise.
7546 (vec_unpacku_lo_v8hi): Likewise.
7548 2013-10-20 Jan Hubicka <jh@suse.cz>
7550 * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
7551 X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
7552 (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
7554 2013-10-20 Richard Sandiford <rdsandiford@googlemail.com>
7556 * config/mips/mips.h (ISA_HAS_WSBH): Define.
7557 * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
7559 (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
7561 2013-10-19 John David Anglin <danglin@gcc.gnu.org>
7564 * system.h: Undef m_slot.
7566 2013-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7568 * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
7569 all elements for both endian flavors.
7571 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
7574 * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
7575 ST1_REG and XMM1_REG for 32bit and 64bit targets. Also add DI_REG
7576 and SI_REG for 64bit SYSV ABI targets.
7578 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
7580 * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
7581 to multi_reg_return. Clarify that we are skipping USEs of multiple
7582 return registers. Use bool type where appropriate.
7584 2013-10-18 Jan Hubicka <jh@suse.cz>
7586 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
7588 * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
7589 (X86_TUNE_PUSH_MEMORY): Likewise.
7590 (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
7591 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
7592 (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
7594 * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
7595 x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
7597 (ix86_option_override_internal): Update to use tune features instead
7600 2013-10-18 Cong Hou <congh@google.com>
7602 PR tree-optimization/58508
7603 * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
7604 statement that contains data refs with zero-step.
7606 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
7608 * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
7609 sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
7610 * gimple-low.c (gimple_check_call_arg,
7611 gimple_check_call_matching_types): Move to cgraph.c.
7612 * gimple-low.h: Remove prototype.
7613 * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
7614 Relocate from gimple-low.c.
7615 * cgraph.h: Add prototype. Don't include basic-block.h.
7616 * gimplify.c: Add gimple-low to include list.
7617 * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
7618 * tree-eh.c: Add gimple-low to include list.
7619 * tree-nested.c: Likewise.
7620 * cfgexpand.c: Add tree-ssa-address.h to include list.
7622 * gimple-fold.c: Likewise.
7623 * gimple-ssa-strength-reduction.c: Likewise.
7624 * trans-mem.c: Likewise.
7625 * tree-mudflap.c: Likewise.
7626 * tree-ssa-loop-ivopts.c: Likewise.
7627 * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
7628 (degenerate_phi_result): Move to tree-phinodes.c.
7629 * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
7630 * tree-ssa-threadedge.c: Likewise.
7631 * tree-vrp.c: Likewise.
7632 * tree-phinodes.c (degenerate_phi_result): Relocate here.
7633 * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
7634 * tree-phinodes.h (degenerate_phi_result): Add prototype.
7635 * tree-ssa-copy.c: Include tree-ssa-dom.h.
7636 * tree-ssa-forwprop.c: Likewise.
7637 * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
7638 pass_data_cleanup_cfg_post_optimizing,
7639 make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
7640 * tree-optimize.c: Delete File.
7641 * graphite.c: Include tree-cfgcleanup.h.
7642 * passes.c: Likewise.
7643 * tree-cfg.c: Likewise.
7644 * tree-profile.c: Likewise.
7645 * tree-ssa-dse.c: Likewise.
7646 * tree-ssa-loop-ivcanon.c: Likewise.
7647 * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
7648 * tree-outof-ssa.c: Include sbitmap.h.
7649 * tree-ssa-live.c: Likewise.
7650 * tree-ssa-propagate.c: Likewise.
7651 * tree-ssa-structalias.c: Likewise.
7652 * tree-stdarg.c: Likewise.
7653 * Makefile.in (OBJS): Delete tree-optimize.o.
7654 * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
7655 * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
7656 * varasm.c: Include basic-block.h.
7657 * cfgloop.h: Include function.h instead of basic-block.h
7658 (bb_loop_depth): Move to cfgloop.c.
7659 * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
7661 2013-10-18 Teresa Johnson <tejohnson@google.com>
7663 * predict.c (probably_never_executed): Compare frequency-based
7664 count to number of training runs.
7665 * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
7667 2013-10-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7669 * config/arm/arm.c (cortexa9_extra_costs): New table.
7670 (arm_cortex_a9_tune): Use cortexa9_extra_costs.
7672 2013-10-18 Jeff Law <law@redhat.com>
7674 * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
7676 * tree-ssa-threadupdate.c: Include "dbgcnt.h".
7677 (register_jump_thread): Add "registered_jump_thread" debug
7679 * dbgcnt.def (registered_jump_thread): New debug counter.
7681 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
7683 * config/rs6000/rs6000.c: Include cgraph.h.
7685 2013-10-18 Teresa Johnson <tejohnson@google.com>
7687 * tree-ssa-tail-merge.c (replace_block_by): Update edge
7688 weights during merging.
7690 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
7692 * tree-cfg.h: Rename from tree-flow.h. Remove #includes.
7693 * tree-ssa.h: Relocate required #includes from tree-cfg.h.
7694 * tree-ssa-operands.h: Remove prototype.
7695 * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
7696 * gimple.c (virtual_operand_p): Relocate from gimple.c.
7697 * gimple.h: Add prototype.
7698 * gimple-ssa.h: Include tree-ssa-operands.h.
7699 * tree-dump.c: Add tree-cfg.h to include list.
7700 * tree-ssa-alias.c: Add ipa-reference.h to include list.
7701 * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
7702 * config/i386/i386.c: Don't include tree-flow.h.
7703 * config/rs6000/rs6000.c: Likewise.
7705 2013-10-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7707 * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
7709 2013-10-18 Richard Biener <rguenther@suse.de>
7711 * stor-layout.c (layout_type): Do not change TYPE_PRECISION
7712 or TYPE_UNSIGNED of integral types.
7713 (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
7714 NULL_TREE for zero-precision integral types.
7716 2013-10-18 James Greenhalgh <james.greenhalgh@arm.com>
7718 * config/aarch64/arm_neon.h
7719 (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
7721 2013-10-17 Sriraman Tallam <tmsriram@google.com>
7724 * opth-gen.awk: Define target_flags_explicit.
7726 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
7728 * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
7729 fields to the reg_addr array that describes the valid addressing
7730 mode for any register, general purpose registers, floating point
7731 registers, and Altivec registers.
7732 (FIRST_RELOAD_REG_CLASS): Likewise.
7733 (LAST_RELOAD_REG_CLASS): Likewise.
7734 (struct reload_reg_map_type): Likewise.
7735 (reload_reg_map_type): Likewise.
7736 (RELOAD_REG_VALID): Likewise.
7737 (RELOAD_REG_MULTIPLE): Likewise.
7738 (RELOAD_REG_INDEXED): Likewise.
7739 (RELOAD_REG_OFFSET): Likewise.
7740 (RELOAD_REG_PRE_INCDEC): Likewise.
7741 (RELOAD_REG_PRE_MODIFY): Likewise.
7742 (reg_addr): Likewise.
7743 (mode_supports_pre_incdec_p): New helper functions to say whether
7744 a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
7745 (mode_supports_pre_modify_p): Likewise.
7746 (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
7747 print the valid address mode bits for each mode.
7748 (rs6000_debug_print_mode): Likewise.
7749 (rs6000_debug_reg_global): Likewise.
7750 (rs6000_setup_reg_addr_masks): New function to set up the address
7751 mask bits for each type.
7752 (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
7753 Call rs6000_setup_reg_addr_masks to set up the address mask bits.
7754 (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
7755 mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
7756 PRE_MODIFY are supported.
7757 (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
7758 registers, instead of {src,dest}_av_p.
7759 (rs6000_print_options_internal): Tweak the debug output slightly.
7761 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
7763 * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
7766 2013-10-17 Andrew MacLeod <amacleod@redhat.com>
7768 * tree-flow.h (struct omp_region): Move to omp-low.c.
7769 Remove omp_ prototypes and variables.
7770 * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
7771 (copy_var_decl): Relocate prototype from tree-flow.h.
7772 * gimple.c (copy_var_decl): Relocate from omp-low.c.
7773 * tree.h: Move prototype to omp-low.h.
7774 * omp-low.h: New File. Relocate prototypes here.
7775 * omp-low.c (struct omp_region): Make local here.
7776 (root_omp_region): Make static.
7777 (copy_var_decl) Move to gimple.c.
7778 (new_omp_region): Make static.
7779 (make_gimple_omp_edges): New. Refactored from tree-cfg.c make_edges.
7780 * tree-cfg.c: Include omp-low.h.
7781 (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
7782 * gimplify.c: Include omp-low.h.
7783 * tree-parloops.c: Likewise.
7785 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
7787 * config/i386/i386.c (ix86_fixup_binary_operands): When both source
7788 operands are in memory, prefer to force non-matched operand 1 to
7791 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
7794 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
7795 restrict TImode addresses to single indirect registers if both
7796 -mquad-memory and -mvsx-timode are used.
7797 (rs6000_output_move_128bit): Use quad_load_store_p to determine if
7798 we should emit load/store quad. Remove using %y for quad memory
7801 * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
7802 constraints to allow load/store quad on machines where TImode is
7803 not allowed in VSX registers. Use 'n' instead of 'F' constraint
7804 for TImode to load integer constants.
7806 2013-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7808 * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
7810 2013-10-17 Marcus Shawcroft <marcus.shawcroft@arm.com>
7812 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
7813 handling of STACK_REG.
7815 2013-10-17 Richard Biener <rguenther@suse.de>
7817 PR tree-optimization/58143
7818 * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
7820 (rewrite_to_defined_overflow): Likewise.
7821 (move_computations_dom_walker::before_dom): Rewrite stmts
7822 with undefined signed overflow that are not always executed
7823 into unsigned arithmetic.
7825 2013-10-16 Michael Meissner <meissner@linux.vnet.ibm.com>
7828 * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
7829 explicit isa flag to be an options variable, instead of using
7830 global_options_set. Remove define from rs6000.h.
7831 * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
7833 * config/rs6000/rs6000.c (rs6000_option_override_internal):
7834 Initialize rs6000_isa_flags_explicit.
7835 (rs6000_function_specific_save): Add gcc_options* parameter, so
7836 that the powerpc builds after the 2013-10-15 changes.
7837 (rs6000_function_specific_restore): Likewise.
7839 2013-10-16 DJ Delorie <dj@redhat.com>
7841 * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
7842 op is a REG before checking REGNO.
7843 (rl78_alloc_physical_registers): Verify pattern is a SET before
7846 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7848 * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
7850 (vec_unpacks_lo_v4sf): Likewise.
7851 (vec_unpacks_float_hi_v4si): Likewise.
7852 (vec_unpacks_float_lo_v4si): Likewise.
7853 (vec_unpacku_float_hi_v4si): Likewise.
7854 (vec_unpacku_float_lo_v4si): Likewise.
7856 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7858 * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
7859 (vsx_concat_v2sf): Likewise.
7861 2013-10-16 James Greenhalgh <james.greenhalgh@arm.com>
7863 * config/aarch64/aarch64.md
7864 (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
7866 2013-10-16 Andrew MacLeod <amacleod@redhat.com>
7868 PR tree-optimization/58697
7869 * cfgloop.c (get_estimated_loop_iterations_int): Rename from
7870 estimated_loop_iterations_int.
7871 (max_stmt_executions_int): Call get_max_loop_iterations_int.
7872 (get_max_loop_iterations_int): New. HWINT version of
7873 get_max_loop_iterations.
7874 * cfgloop.h: Add prototypes.
7875 * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
7876 * loop-unroll.c (decide_peel_once_rolling): Call
7877 get_estimated_loop_iterations_int.
7878 * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
7879 * tree-ssa-loop-niter.h: Tweak prototypes.
7881 2013-10-16 David Malcolm <dmalcolm@redhat.com>
7883 * gengtype-parse.c (struct_field_seq): Ignore access-control
7884 keywords ("public:" etc).
7886 2013-10-16 Marcus Shawcroft <marcus.shawcroft@arm.com>
7888 * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
7889 FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
7891 2013-10-16 Yvan Roux <yvan.roux@linaro.org>
7893 * config/arm/arm.opt (mlra): New option.
7894 * config/arm/arm.c (arm_lra_p): New function.
7895 (TARGET_LRA_P): Define.
7897 2013-10-16 Paulo Matos <pmatos@broadcom.com>
7899 * tree-core.h (tree_code_name): Remove.
7900 * tree.h (get_tree_code_name): New prototype.
7901 * tree.c (tree_code_name): Make static.
7902 (get_tree_code_name): New function.
7903 (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
7904 tree_class_check_failed, tree_range_check_failed,
7905 tree_not_class_check_failed, omp_clause_check_failed,
7906 tree_contains_struct_check_failed, tree_operand_check_failed): Use new
7907 wrapper get_tree_code_name instead of calling tree_code_name directly.
7908 * tree-vrp.c (dump_asserts_for): Likewise.
7909 * tree-dump.c (dequeue_and_dump): Likewise.
7910 * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
7911 * tree-pretty-print.h (pp_unsupported_tree): Likewise.
7912 * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
7913 * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
7914 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
7915 dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
7916 dump_gimple_omp_for): Likewise.
7917 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
7918 * tree-ssa-pre.c (print_pre_expr): Likewise.
7919 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
7920 * print-tree.c (print_node_brief, print_node): Likewise.
7921 * gimple.c (gimple_check_failed): Likewise.
7922 * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
7923 * config/frv/frv.c (frv_init_cumulative_args): Likewise.
7924 * config/mep/mep.c (mep_validate_vliw): Likewise.
7925 * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
7926 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
7928 2013-10-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7930 * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
7933 2013-10-16 Hans-Peter Nilsson <hp@axis.com>
7935 * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
7936 (MULTILIB_MATCHES): Add multilib for -march=v8.
7938 2013-10-15 Sriraman Tallam <tmsriram@google.com>
7941 * optc-save-gen.awk: Add extra parameter to the save and restore
7943 * opth-gen.awk: Generate new TARGET_* macros to accept a parameter.
7944 * tree.c (build_optimization_node): New parameter. Add extra parameter
7945 to call to cl_optimization_save.
7946 (build_target_option_node): New parameter. Add extra parameter
7947 to call to cl_target_option_save.
7948 * tree.h (build_optimization_node): New parameter.
7949 (build_target_option_node): New parameter.
7950 * c-family/c-common.c (handle_optimize_attribute): Fix calls to
7951 build_optimization_node and build_target_option_node.
7952 * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
7953 (handle_pragma_push_options): Ditto.
7954 * toplev.c (process_options): Ditto.
7955 * opts.c (init_options_struct): Check for opts_set non-null.
7956 * target.def (target_option.save): New parameter.
7957 (target_option.restore): New parameter.
7958 * tm.texi: Generate.
7959 * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
7960 (ix86_pragma_target_parse): Ditto.
7961 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
7963 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
7964 to build_optimization_node and build_target_option_node.
7965 (rs6000_valid_attribute_p): Ditto.
7966 (rs6000_pragma_target_parse): Ditto.
7967 * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
7969 * config/i386/i386.h:
7970 TARGET_64BIT_P: New Macro
7971 TARGET_MMX_P: New Macro.
7972 TARGET_3DNOW_P: New Macro.
7973 TARGET_3DNOW_A_P: New Macro.
7974 TARGET_SSE_P: New Macro.
7975 TARGET_SSE2_P: New Macro.
7976 TARGET_SSE3_P: New Macro.
7977 TARGET_SSSE3_P: New Macro.
7978 TARGET_SSE4_1_P: New Macro.
7979 TARGET_SSE4_2_P: New Macro.
7980 TARGET_AVX_P: New Macro.
7981 TARGET_AVX2_P: New Macro.
7982 TARGET_AVX512F_P: New Macro.
7983 TARGET_AVX512PF_P: New Macro.
7984 TARGET_AVX512ER_P: New Macro.
7985 TARGET_AVX512CD_P: New Macro.
7986 TARGET_FMA_P: New Macro.
7987 TARGET_SSE4A_P: New Macro.
7988 TARGET_FMA4_P: New Macro.
7989 TARGET_XOP_P: New Macro.
7990 TARGET_LWP_P: New Macro.
7991 TARGET_ABM_P: New Macro.
7992 TARGET_BMI_P: New Macro.
7993 TARGET_BMI2_P: New Macro.
7994 TARGET_LZCNT_P: New Macro.
7995 TARGET_TBM_P: New Macro.
7996 TARGET_POPCNT_P: New Macro.
7997 TARGET_SAHF_P: New Macro.
7998 TARGET_MOVBE_P: New Macro.
7999 TARGET_CRC32_P: New Macro.
8000 TARGET_AES_P: New Macro.
8001 TARGET_PCLMUL_P: New Macro.
8002 TARGET_CMPXCHG16B_P: New Macro.
8003 TARGET_FSGSBASE_P: New Macro.
8004 TARGET_RDRND_P: New Macro.
8005 TARGET_F16C_P: New Macro.
8006 TARGET_RTM_P: New Macro.
8007 TARGET_HLE_P: New Macro.
8008 TARGET_RDSEED_P: New Macro.
8009 TARGET_PRFCHW_P: New Macro.
8010 TARGET_ADX_P: New Macro.
8011 TARGET_FXSR_P: New Macro.
8012 TARGET_XSAVE_P: New Macro.
8013 TARGET_XSAVEOPT_P: New Macro.
8014 TARGET_LP64_P: New Macro.
8015 TARGET_X32_P: New Macro.
8016 TARGET_FPMATH_DEFAULT_P: New Macro.
8017 TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
8018 * config/i386/i386.c (ix86_option_override_internal): New parameters.
8020 Change ix86_tune_string to access opts->x_ix86_tune_string.
8021 Change ix86_isa_flags to access opts->x_ix86_isa_flags.
8022 Change ix86_arch_string to access opts->x_ix86_arch_string.
8023 Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
8024 Change ix86_pmode to access opts->x_ix86_pmode.
8025 Change ix86_abi to access opts->x_ix86_abi.
8026 Change ix86_cmodel to access opts->x_ix86_cmodel.
8027 Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
8028 Change ix86_isa_flags_explicit to access
8029 opts->x_ix86_isa_flags_explicit.
8030 Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
8031 Change ix86_regparm to access opts->x_ix86_regparm.
8032 Change ix86_branch_cost to access opts->x_ix86_branch_cost.
8033 Change ix86_preferred_stack_boundary_arg to access
8034 opts->x_ix86_preferred_stack_boundary_arg.
8035 Change ix86_force_align_arg_pointer to access
8036 opts->x_ix86_force_align_arg_pointer.
8037 Change ix86_incoming_stack_boundar_arg to access
8038 opts->x_ix86_incoming_stack_boundar_arg.
8039 Change ix86_fpmath to access opts->x_ix86_fpmath.
8040 Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
8041 Change ix86_recip_name to access opts->x_ix86_recip_name.
8042 Change ix86_stack_protector_guard to access
8043 opts->x_ix86_stack_protector_guard.
8044 Change ix86_tune_memcpy_strategy to access
8045 opts->x_ix86_tune_memcpy_strategy.
8046 Change ix86_tune_memset_strategy to access
8047 opts->x_ix86_tune_memset_strategy.
8048 Change global_options to access opts.
8049 Change global_options_set to access opts_set.
8050 Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
8051 Change TARGET_MMX to TARGET_MMX_P (opts->...).
8052 Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
8053 Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
8054 Change TARGET_SSE to TARGET_SSE_P (opts->...).
8055 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
8056 Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
8057 Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
8058 Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
8059 Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
8060 Change TARGET_AVX to TARGET_AVX_P (opts->...).
8061 Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
8062 Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
8063 Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
8064 Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
8065 Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
8066 Change TARGET_FMA to TARGET_FMA_P (opts->...).
8067 Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
8068 Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
8069 Change TARGET_XOP to TARGET_XOP_P (opts->...).
8070 Change TARGET_LWP to TARGET_LWP_P (opts->...).
8071 Change TARGET_ABM to TARGET_ABM_P (opts->...).
8072 Change TARGET_BMI to TARGET_BMI_P (opts->...).
8073 Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
8074 Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
8075 Change TARGET_TBM to TARGET_TBM_P (opts->...).
8076 Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
8077 Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
8078 Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
8079 Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
8080 Change TARGET_AES to TARGET_AES_P (opts->...).
8081 Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
8082 Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
8083 Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
8084 Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
8085 Change TARGET_F16C to TARGET_F16C_P (opts->...).
8086 Change TARGET_RTM to TARGET_RTM_P (opts->...).
8087 Change TARGET_HLE to TARGET_HLE_P (opts->...).
8088 Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
8089 Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
8090 Change TARGET_ADX to TARGET_ADX_P (opts->...).
8091 Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
8092 Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
8093 Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
8094 Change TARGET_LP64 to TARGET_LP64_P (opts->...).
8095 Change TARGET_X32 to TARGET_X32_P (opts->...).
8096 Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
8097 Change TARGET_FLOAT_RETURNS_IN_80387 to
8098 TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
8099 (ix86_function_specific_save): New parameter. Use opts-> fields
8100 to replace global fields.
8101 (ix86_function_specific_restore): Ditto.
8102 (ix86_valid_target_attribute_inner_p): New parameters.
8104 Fix call to ix86_handle_option and set_option.
8105 (ix86_valid_target_attribute_tree): New parameters.
8106 Change global_options to access opts.
8107 Change global_options_set to access opts_set.
8108 Fix call to ix86_valid_target_attribute_inner_p.
8109 Change ix86_tune_string to access opts->x_ix86_tune_string.
8110 Change ix86_arch_string to access opts->x_ix86_arch_string.
8111 Change ix86_fpmath to access opts->x_ix86_fpmath
8112 Fix call to ix86_option_override_internal.
8113 Fix call to ix86_add_new_builtins.
8114 Fix calls to build_optimization_node and build_target_option_node.
8115 (ix86_valid_target_attribute_p): Remove access to global_options.
8116 Use new gcc_options structure func_options.
8117 Fix call to ix86_valid_target_attribute_tree.
8118 Fix call to build_optimization_node.
8119 (get_builtin_code_for_version): Fix call to
8120 ix86_valid_target_attribute_tree.
8122 2013-10-15 David Malcolm <dmalcolm@redhat.com>
8124 * Makefile.in (PICFLAG): New.
8125 (enable_host_shared): New.
8126 (INTERNAL_CFLAGS): Use PICFLAG.
8127 (LIBIBERTY): Use pic build of libiberty.a if configured with
8128 --enable-host-shared.
8129 * configure.ac: Add --enable-host-shared, setting up new
8131 * configure: Regenerate.
8132 * doc/install.texi (--enable-shared): Add note contrasting it with ...
8133 (--enable-host-shared): New option.
8135 2013-10-15 Richard Biener <rguenther@suse.de>
8137 * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
8138 for built-in functions.
8140 2013-10-15 Zhenqiang Chen <zhenqiang.chen@arm.com>
8142 * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
8143 (optimize_range_tests_1): New function,
8144 extracted from optimize_range_tests.
8145 (optimize_range_tests_xor): Similarly.
8146 (optimize_range_tests_diff): New function.
8147 (optimize_range_tests): Use optimize_range_tests_1.
8149 2013-10-15 Cong Hou <congh@google.com>
8151 * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
8152 requirement of the reduction pattern so that one operand of the
8153 reduction operation can come from outside of the loop.
8155 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
8157 * config/arm/neon-schedgen.ml: Remove.
8158 * config/arm/cortex-a9-neon.md: Remove comment regarding
8161 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
8163 * config/arm/types: Remove old neon types.
8165 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
8167 * config/arm/cortex-a7.md
8168 (cortex_a7_neon_type): New.
8169 (cortex_a7_neon_mul): Update for new types.
8170 (cortex_a7_neon_mla): Likewise.
8171 (cortex_a7_neon): Likewise.
8173 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
8175 * config/arm/cortex-a15-neon.md
8176 (cortex_a15_neon_type): New,
8178 (cortex_a15_neon_int_1): Remove.
8179 (cortex_a15_neon_int_2): Likewise.
8180 (cortex_a15_neon_int_3): Likewise.
8181 (cortex_a15_neon_int_4): Likewise.
8182 (cortex_a15_neon_int_5): Likewise.
8183 (cortex_a15_neon_vqneg_vqabs): Likewise.
8184 (cortex_a15_neon_vmov): Likewise.
8185 (cortex_a15_neon_vaba): Likewise.
8186 (cortex_a15_neon_vaba_qqq): Likewise.
8187 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
8188 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
8189 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
8191 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
8192 (cortex_a15_neon_mla_qqq_8_16): Likewise.
8193 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
8194 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
8195 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
8196 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
8197 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
8198 (cortex_a15_neon_shift_1): Likewise.
8199 (cortex_a15_neon_shift_2): Likewise.
8200 (cortex_a15_neon_shift_3): Likewise.
8201 (cortex_a15_neon_vshl_ddd): Likewise.
8202 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
8203 (cortex_a15_neon_vsra_vrsra): Likewise.
8204 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
8205 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
8206 (cortex_a15_neon_bp_3cycle): Likewise.
8207 (cortex_a15_neon_ldm_2): Likewise.
8208 (cortex_a15_neon_stm_2): Likewise.
8209 (cortex_a15_neon_mcr): Likewise.
8210 (cortex_a15_neon_mrc): Likewise.
8211 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
8212 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
8213 (cortex_a15_neon_fp_vmul_ddd): Likewise.
8214 (cortex_a15_neon_fp_vmul_qqd): Likewise.
8215 (cortex_a15_neon_fp_vmla_ddd): Likewise.
8216 (cortex_a15_neon_fp_vmla_qqq): Likewise.
8217 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
8218 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
8219 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
8220 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
8221 (cortex_a15_neon_bp_simple): Likewise.
8222 (cortex_a15_neon_bp_2cycle): Likewise.
8223 (cortex_a15_neon_bp_3cycle): Likewise.
8224 (cortex_a15_neon_vld1_1_2_regs): Likewise.
8225 (cortex_a15_neon_vld1_3_4_regs): Likewise.
8226 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
8227 (cortex_a15_neon_vld2_4_regs): Likewise.
8228 (cortex_a15_neon_vld3_vld4): Likewise.
8229 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
8230 (cortex_a15_neon_vst1_3_4_regs): Likewise.
8231 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
8232 (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
8233 (cortex_a15_neon_vst3_vst4): Rename to...
8234 (cortex_a15_neon_vst4): This, update for new attributes.
8235 (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
8236 (cortex_a15_neon_vld3_vld4_lane): Likewise.
8237 (cortex_a15_neon_vst1_vst2_lane): Likewise.
8238 (cortex_a15_neon_vst3_vst4_lane): Likewise.
8239 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
8240 (cortex_a15_neon_ldm_2): Likewise.
8241 (cortex_a15_neon_stm_2): Likewise.
8242 (cortex_a15_neon_mcr): Likewise.
8243 (cortex_a15_neon_mcr_2_mcrr): Likewise.
8244 (cortex_a15_neon_mrc): Likewise.
8245 (cortex_a15_neon_mrrc): Likewise.
8247 (cortex_a15_neon_abd): New.
8248 (cortex_a15_neon_abd_q): Likewise.
8249 (cortex_a15_neon_aba): Likewise.
8250 (cortex_a15_neon_aba_q): Likewise.
8251 (cortex_a15_neon_acc): Likewise.
8252 (cortex_a15_neon_acc_q): Likewise.
8253 (cortex_a15_neon_arith_basic): Likewise.
8254 (cortex_a15_neon_arith_complex): Likewise.
8255 (cortex_a15_neon_multiply): Likewise.
8256 (cortex_a15_neon_multiply_q): Likewise.
8257 (cortex_a15_neon_mla): Likewise.
8258 (cortex_a15_neon_mla_q): Likewise.
8259 (cortex_a15_neon_sat_mla_long): Likewise.
8260 (cortex_a15_neon_shift_acc): Likewise.
8261 (cortex_a15_neon_shift_imm_basic): Likewise.
8262 (cortex_a15_neon_shift_imm_complex): Likewise.
8263 (cortex_a15_neon_shift_reg_basic): Likewise.
8264 (cortex_a15_neon_shift_reg_basic_q): Likewise.
8265 (cortex_a15_neon_shift_reg_complex): Likewise.
8266 (cortex_a15_neon_shift_reg_complex_q): Likewise.
8267 (cortex_a15_neon_fp_negabs): Likewise
8268 (cortex_a15_neon_fp_arith): Likewise
8269 (cortex_a15_neon_fp_arith_q): Likewise
8270 (cortex_a15_neon_fp_cvt_int): Likewise
8271 (cortex_a15_neon_fp_cvt_int_q): Likewise
8272 (cortex_a15_neon_fp_cvt_16): Likewise
8273 (cortex_a15_neon_fp_mul): Likewise
8274 (cortex_a15_neon_fp_mul_q): Likewise
8275 (cortex_a15_neon_fp_mla): Likewise
8276 (cortex_a15_neon_fp_mla_q): Likewise
8277 (cortex_a15_neon_fp_recps_rsqrte): Likewise.
8278 (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
8279 (cortex_a15_neon_bitops): Likewise.
8280 (cortex_a15_neon_bitops_q): Likewise.
8281 (cortex_a15_neon_from_gp): Likewise.
8282 (cortex_a15_neon_from_gp_q): Likewise.
8283 (cortex_a15_neon_tbl3_tbl4): Likewise.
8284 (cortex_a15_neon_zip_q): Likewise.
8285 (cortex_a15_neon_to_gp): Likewise.
8286 (cortex_a15_neon_load_a): Likewise.
8287 (cortex_a15_neon_load_b): Likewise.
8288 (cortex_a15_neon_load_c): Likewise.
8289 (cortex_a15_neon_load_d): Likewise.
8290 (cortex_a15_neon_load_e): Likewise.
8291 (cortex_a15_neon_load_f): Likewise.
8292 (cortex_a15_neon_store_a): Likewise.
8293 (cortex_a15_neon_store_b): Likewise.
8294 (cortex_a15_neon_store_c): Likewise.
8295 (cortex_a15_neon_store_d): Likewise.
8296 (cortex_a15_neon_store_e): Likewise.
8297 (cortex_a15_neon_store_f): Likewise.
8298 (cortex_a15_neon_store_g): Likewise.
8299 (cortex_a15_neon_store_h): Likewise.
8300 (cortex_a15_vfp_to_from_gp): Likewise.
8302 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
8304 * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
8306 (cortex_a9_neon_vshl_ddd): Remove.
8307 (cortex_a9_neon_vst3_vst4): Likewise.
8308 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
8310 (cortex_a9_neon_bit_ops_q): New.
8312 (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
8313 (cortex_a9_neon_int_2): Likewise.
8314 (cortex_a9_neon_int_3): Likewise.
8315 (cortex_a9_neon_int_4): Likewise.
8316 (cortex_a9_neon_int_5): Likewise.
8317 (cortex_a9_neon_vqneg_vqabs): Likewise.
8318 (cortex_a9_neon_vmov): Likewise.
8319 (cortex_a9_neon_vaba): Likewise.
8320 (cortex_a9_neon_vaba_qqq): Likewise.
8321 (cortex_a9_neon_shift_1): Likewise.
8322 (cortex_a9_neon_shift_2): Likewise.
8323 (cortex_a9_neon_shift_3): Likewise.
8324 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
8325 (cortex_a9_neon_vsra_vrsra): Likewise.
8326 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
8327 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
8328 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
8330 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
8331 (cortex_a9_neon_mla_qqq_8_16): Likewise.
8332 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
8334 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
8335 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
8336 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
8337 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
8338 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
8339 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
8340 (cortex_a9_neon_fp_vsum): Likewise.
8341 (cortex_a9_neon_fp_vmul_ddd): Likewise.
8342 (cortex_a9_neon_fp_vmul_qqd): Likewise.
8343 (cortex_a9_neon_fp_vmla_ddd): Likewise.
8344 (cortex_a9_neon_fp_vmla_qqq): Likewise.
8345 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
8346 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
8347 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
8348 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
8349 (cortex_a9_neon_bp_simple): Likewise.
8350 (cortex_a9_neon_bp_2cycle): Likewise.
8351 (cortex_a9_neon_bp_3cycle): Likewise.
8352 (cortex_a9_neon_ldr): Likewise.
8353 (cortex_a9_neon_str): Likewise.
8354 (cortex_a9_neon_vld1_1_2_regs): Likewise.
8355 (cortex_a9_neon_vld1_3_4_regs): Likewise.
8356 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
8357 (cortex_a9_neon_vld2_4_regs): Likewise.
8358 (cortex_a9_neon_vld3_vld4): Likewise.
8359 (cortex_a9_neon_vld1_vld2_lane): Likewise.
8360 (cortex_a9_neon_vld3_vld4_lane): Likewise.
8361 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
8362 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
8363 (cortex_a9_neon_vst1_3_4_regs): Likewise.
8364 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
8365 (cortex_a9_neon_vst1_vst2_lane): Likewise.
8366 (cortex_a9_neon_vst3_vst4_lane): Likewise.
8367 (cortex_a9_neon_mcr): Likewise.
8368 (cortex_a9_neon_mcr_2_mcrr): Likewise.
8369 (cortex_a9_neon_mrc): Likewise.
8370 (cortex_a9_neon_mrrc): Likewise.
8372 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
8374 * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
8376 (cortex_a8_neon_vshl_ddd): Remove.
8377 (cortex_a8_neon_vst3_vst4): Likewise.
8378 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
8380 (cortex_a8_neon_bit_ops_q): New.
8382 (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
8383 (cortex_a8_neon_int_2): Likewise..
8384 (cortex_a8_neon_int_3): Likewise.
8385 (cortex_a8_neon_int_5): Likewise.
8386 (cortex_a8_neon_vqneg_vqabs): Likewise.
8387 (cortex_a8_neon_int_4): Likewise.
8388 (cortex_a8_neon_vaba): Likewise.
8389 (cortex_a8_neon_vaba_qqq): Likewise.
8390 (cortex_a8_neon_shift_1): Likewise.
8391 (cortex_a8_neon_shift_2): Likewise.
8392 (cortex_a8_neon_shift_3): Likewise.
8393 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
8394 (cortex_a8_neon_vsra_vrsra): Likewise.
8395 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
8396 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
8397 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
8399 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
8400 (cortex_a8_neon_mla_qqq_8_16): Likewise.
8401 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
8403 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
8404 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
8405 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
8406 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
8407 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
8408 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
8409 (cortex_a8_neon_fp_vsum): Likewise.
8410 (cortex_a8_neon_fp_vmul_ddd): Likewise.
8411 (cortex_a8_neon_fp_vmul_qqd): Likewise.
8412 (cortex_a8_neon_fp_vmla_ddd): Likewise.
8413 (cortex_a8_neon_fp_vmla_qqq): Likewise.
8414 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
8415 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
8416 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
8417 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
8418 (cortex_a8_neon_bp_simple): Likewise.
8419 (cortex_a8_neon_bp_2cycle): Likewise.
8420 (cortex_a8_neon_bp_3cycle): Likewise.
8421 (cortex_a8_neon_ldr): Likewise.
8422 (cortex_a8_neon_str): Likewise.
8423 (cortex_a8_neon_vld1_1_2_regs): Likewise.
8424 (cortex_a8_neon_vld1_3_4_regs): Likewise.
8425 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
8426 (cortex_a8_neon_vld2_4_regs): Likewise.
8427 (cortex_a8_neon_vld3_vld4): Likewise.
8428 (cortex_a8_neon_vld1_vld2_lane): Likewise.
8429 (cortex_a8_neon_vld3_vld4_lane): Likewise.
8430 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
8431 (cortex_a8_neon_vst1_3_4_regs): Likewise.
8432 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
8433 (cortex_a8_neon_vst1_vst2_lane): Likewise.
8434 (cortex_a8_neon_vst3_vst4_lane): Likewise.
8435 (cortex_a8_neon_mcr): Likewise.
8436 (cortex_a8_neon_mcr_2_mcrr): Likewise.
8437 (cortex_a8_neon_mrc): Likewise.
8438 (cortex_a8_neon_mrrc): Likewise.
8440 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
8442 * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
8444 * config/aarch64/aarch64-simd.md (neon_type): Remove.
8445 (aarch64_simd_dup<mode>): Add "type" attribute.
8446 (aarch64_dup_lane<mode>): Likewise.
8447 (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
8448 (*aarch64_simd_mov<mode>): Likewise.
8449 (aarch64_simd_mov_from_<mode>low): Likewise.
8450 (aarch64_simd_mov_from_<mode>high): Likewise.
8451 (orn<mode>3): Likewise.
8452 (bic<mode>3): Likewise.
8453 (add<mode>3): Likewise.
8454 (sub<mode>3): Likewise.
8455 (mul<mode>3): Likewise.
8456 (*aarch64_mul3_elt<mode>): Likewise.
8457 (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
8458 (*aarch64_mul3_elt_to_128df): Likewise.
8459 (*aarch64_mul3_elt_to_64v2df): Likewise.
8460 (neg<mode>2): Likewise.
8461 (abs<mode>2): Likewise.
8462 (abd<mode>_3): Likewise.
8463 (aba<mode>_3): Likewise.
8464 (fabd<mode>_3): Likewise.
8465 (*fabd_scalar<mode>3): Likewise.
8466 (and<mode>3): Likewise.
8467 (ior<mode>3): Likewise.
8468 (xor<mode>3): Likewise.
8469 (one_cmpl<mode>2): Likewise.
8470 (aarch64_simd_vec_set<mode>): Likewise.
8471 (aarch64_simd_lshr<mode>): Likewise.
8472 (aarch64_simd_ashr<mode>): Likewise.
8473 (aarch64_simd_imm_shl<mode>): Likewise.
8474 (aarch64_simd_reg_sshl<mode): Likewise.
8475 (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
8476 (aarch64_simd_reg_shl<mode>_signed): Likewise.
8477 (aarch64_simd_vec_setv2di): Likewise.
8478 (aarch64_simd_vec_set<mode>): Likewise.
8479 (aarch64_mla<mode>): Likewise.
8480 (*aarch64_mla_elt<mode>): Likewise.
8481 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
8482 (aarch64_mls<mode>): Likewise.
8483 (*aarch64_mls_elt<mode>): Likewise.
8484 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
8485 (<su><maxmin><mode>3): Likewise.
8486 (move_lo_quad_<mode>): Likewise.
8487 (aarch64_simd_move_hi_quad_<mode>): Likewise.
8488 (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
8489 (vec_pack_trunc_<mode>): Likewise.
8490 (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
8491 (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
8492 (*aarch64_<su>mlal_lo<mode>): Likewise.
8493 (*aarch64_<su>mlal_hi<mode>): Likewise.
8494 (*aarch64_<su>mlsl_lo<mode>): Likewise.
8495 (*aarch64_<su>mlsl_hi<mode>): Likewise.
8496 (*aarch64_<su>mlal<mode>): Likewise.
8497 (*aarch64_<su>mlsl<mode>): Likewise.
8498 (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
8499 (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
8500 (add<mode>3): Likewise.
8501 (sub<mode>3): Likewise.
8502 (mul<mode>3): Likewise.
8503 (div<mode>3): Likewise.
8504 (neg<mode>2): Likewise.
8505 (abs<mode>2): Likewise.
8506 (fma<mode>4): Likewise.
8507 (*aarch64_fma4_elt<mode>): Likewise.
8508 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
8509 (*aarch64_fma4_elt_to_128df): Likewise.
8510 (*aarch64_fma4_elt_to_64v2df): Likewise.
8511 (fnma<mode>4): Likewise.
8512 (*aarch64_fnma4_elt<mode>): Likewise.
8513 (*aarch64_fnma4_elt_<vswap_width_name><mode>
8514 (*aarch64_fnma4_elt_to_128df): Likewise.
8515 (*aarch64_fnma4_elt_to_64v2df): Likewise.
8516 (<frint_pattern><mode>2): Likewise.
8517 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
8518 (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
8519 (vec_unpacks_lo_v4sf): Likewise.
8520 (aarch64_float_extend_lo_v2df): Likewise.
8521 (vec_unpacks_hi_v4sf): Likewise.
8522 (aarch64_float_truncate_lo_v2sf): Likewise.
8523 (aarch64_float_truncate_hi_v4sf): Likewise.
8524 (aarch64_vmls<mode>): Likewise.
8525 (<su><maxmin><mode>3): Likewise.
8526 (<maxmin_uns><mode>3): Likewise.
8527 (reduc_<sur>plus_<mode>): Likewise.
8528 (reduc_<sur>plus_v2di): Likewise.
8529 (reduc_<sur>plus_v2si): Likewise.
8530 (reduc_<sur>plus_<mode>): Likewise.
8531 (aarch64_addpv4sf): Likewise.
8532 (clz<mode>2): Likewise.
8533 (reduc_<maxmin_uns>_<mode>): Likewise.
8534 (reduc_<maxmin_uns>_v2di): Likewise.
8535 (reduc_<maxmin_uns>_v2si): Likewise.
8536 (reduc_<maxmin_uns>_<mode>): Likewise.
8537 (reduc_<maxmin_uns>_v4sf): Likewise.
8538 (aarch64_simd_bsl<mode>_internal): Likewise.
8539 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
8540 (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
8541 (aarch64_get_lane<mode>): Likewise.
8542 (*aarch64_combinez<mode>): Likewise.
8543 (aarch64_combine<mode>): Likewise.
8544 (aarch64_simd_combine<mode>): Likewise.
8545 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
8546 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
8547 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
8548 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
8549 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
8550 (aarch64_<sur>h<addsub><mode>): Likewise.
8551 (aarch64_<sur><addsub>hn<mode>): Likewise.
8552 (aarch64_<sur><addsub>hn2<mode>): Likewise.
8553 (aarch64_pmul<mode>): Likewise.
8554 (aarch64_<su_optab><optab><mode>): Likewise.
8555 (aarch64_<sur>qadd<mode>): Likewise.
8556 (aarch64_sqmovun<mode>): Likewise.
8557 (aarch64_<sur>qmovn<mode>): Likewise.
8558 (aarch64_s<optab><mode>): Likewise.
8559 (aarch64_sq<r>dmulh<mode>): Likewise.
8560 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
8561 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
8562 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
8563 (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
8564 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
8565 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
8566 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
8567 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
8568 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
8569 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
8570 (aarch64_sqdmull<mode>): Likewise.
8571 (aarch64_sqdmull_lane<mode>_internal): Likewise.
8572 (aarch64_sqdmull_n<mode>): Likewise.
8573 (aarch64_sqdmull2<mode>_internal): Likewise.
8574 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
8575 (aarch64_sqdmull2_n<mode>_internal): Likewise.
8576 (aarch64_<sur>shl<mode>): Likewise.
8577 (aarch64_<sur>q<r>shl<mode>
8578 (aarch64_<sur>shll_n<mode>): Likewise.
8579 (aarch64_<sur>shll2_n<mode>): Likewise.
8580 (aarch64_<sur>shr_n<mode>): Likewise.
8581 (aarch64_<sur>sra_n<mode>): Likewise.
8582 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
8583 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
8584 (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
8585 (aarch64_cm<optab><mode>): Likewise.
8586 (aarch64_cm<optab>di): Likewise.
8587 (aarch64_cm<optab><mode>): Likewise.
8588 (aarch64_cm<optab>di): Likewise.
8589 (aarch64_cmtst<mode>): Likewise.
8590 (aarch64_cmtstdi): Likewise.
8591 (aarch64_cm<optab><mode>): Likewise.
8592 (*aarch64_fac<optab><mode>): Likewise.
8593 (aarch64_addp<mode>): Likewise.
8594 (aarch64_addpdi): Likewise.
8595 (sqrt<mode>2): Likewise.
8596 (vec_load_lanesoi<mode>): Likewise.
8597 (vec_store_lanesoi<mode>): Likewise.
8598 (vec_load_lanesci<mode>): Likewise.
8599 (vec_store_lanesci<mode>): Likewise.
8600 (vec_load_lanesxi<mode>): Likewise.
8601 (vec_store_lanesxi<mode>): Likewise.
8602 (*aarch64_mov<mode>): Likewise.
8603 (aarch64_ld2<mode>_dreg): Likewise.
8604 (aarch64_ld2<mode>_dreg): Likewise.
8605 (aarch64_ld3<mode>_dreg): Likewise.
8606 (aarch64_ld3<mode>_dreg): Likewise.
8607 (aarch64_ld4<mode>_dreg): Likewise.
8608 (aarch64_ld4<mode>_dreg): Likewise.
8609 (aarch64_tbl1<mode>): Likewise.
8610 (aarch64_tbl2v16qi): Likewise.
8611 (aarch64_combinev16qi): Likewise.
8612 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
8613 (aarch64_st2<mode>_dreg): Likewise.
8614 (aarch64_st2<mode>_dreg): Likewise.
8615 (aarch64_st3<mode>_dreg): Likewise.
8616 (aarch64_st3<mode>_dreg): Likewise.
8617 (aarch64_st4<mode>_dreg): Likewise.
8618 (aarch64_st4<mode>_dreg): Likewise.
8619 (*aarch64_simd_ld1r<mode>): Likewise.
8620 (aarch64_frecpe<mode>): Likewise.
8621 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
8622 (aarch64_frecps<mode>): Likewise.
8624 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
8626 * config/arm/iterators.md (V_elem_ch): New.
8628 (VQH_type): Likewise.
8629 * config/arm/arm.md (is_neon_type): New.
8630 (conds): Use is_neon_type.
8631 (anddi3_insn): Update type attribute.
8632 (xordi3_insn): Likewise.
8633 (one_cmpldi2): Likewise.
8634 * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
8635 * config/arm/neon.md (neon_mov): Update type attribute.
8636 (*movmisalign<mode>_neon_store): Likewise.
8637 (*movmisalign<mode>_neon_load): Likewise.
8638 (vec_set<mode>_internal): Likewise.
8639 (vec_set<mode>_internal): Likewise.
8640 (vec_setv2di_internal): Likewise.
8641 (vec_extract<mode>): Likewise.
8642 (vec_extract<mode>): Likewise.
8643 (vec_extractv2di): Likewise.
8644 (*add<mode>3_neon): Likewise.
8645 (adddi3_neon): Likewise.
8646 (*sub<mode>3_neon): Likewise.
8647 (subdi3_neon): Likewise.
8648 (fma<VCVTF:mode>4): Likewise.
8649 (fma<VCVTF:mode>4_intrinsic): Likewise.
8650 (*fmsub<VCVTF:mode>4): Likewise.
8651 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
8652 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
8653 (ior<mode>3): Likewise.
8654 (and<mode>3): Likewise.
8655 (orn<mode>3_neon): Likewise.
8656 (orndi3_neon): Likewise.
8657 (bic<mode>3_neon): Likewise.
8658 (bicdi3_neon): Likewise.
8659 (xor<mode>3): Likewise.
8660 (one_cmpl<mode>2): Likewise.
8661 (abs<mode>2): Likewise.
8662 (neg<mode>2): Likewise.
8663 (negdi2_neon): Likewise.
8664 (*umin<mode>3_neon): Likewise.
8665 (*umax<mode>3_neon): Likewise.
8666 (*smin<mode>3_neon): Likewise.
8667 (*smax<mode>3_neon): Likewise.
8668 (vashl<mode>3): Likewise.
8669 (vashr<mode>3_imm): Likewise.
8670 (vlshr<mode>3_imm): Likewise.
8671 (ashl<mode>3_signed): Likewise.
8672 (ashl<mode>3_unsigned): Likewise.
8673 (neon_load_count): Likewise.
8674 (ashldi3_neon_noclobber): Likewise.
8675 (ashldi3_neon): Likewise.
8676 (signed_shift_di3_neon): Likewise.
8677 (unsigned_shift_di3_neon): Likewise.
8678 (ashrdi3_neon_imm_noclobber): Likewise.
8679 (lshrdi3_neon_imm_noclobber): Likewise.
8680 (<shift>di3_neon): Likewise.
8681 (widen_ssum<mode>3): Likewise.
8682 (widen_usum<mode>3): Likewise.
8683 (quad_halves_<code>v4si): Likewise.
8684 (quad_halves_<code>v4sf): Likewise.
8685 (quad_halves_<code>v8hi): Likewise.
8686 (quad_halves_<code>v16qi): Likewise.
8687 (reduc_splus_v2di): Likewise.
8688 (neon_vpadd_internal<mode>): Likewise.
8689 (neon_vpsmin<mode>): Likewise.
8690 (neon_vpsmax<mode>): Likewise.
8691 (neon_vpumin<mode>): Likewise.
8692 (neon_vpumax<mode>): Likewise.
8693 (*ss_add<mode>_neon): Likewise.
8694 (*us_add<mode>_neon): Likewise.
8695 (*ss_sub<mode>_neon): Likewise.
8696 (*us_sub<mode>_neon): Likewise.
8697 (neon_vadd<mode>_unspec): Likewise.
8698 (neon_vaddl<mode>): Likewise.
8699 (neon_vaddw<mode>): Likewise.
8700 (neon_vhadd<mode>): Likewise.
8701 (neon_vqadd<mode>): Likewise.
8702 (neon_vaddhn<mode>): Likewise.
8703 (neon_vmul<mode>): Likewise.
8704 (neon_vfms<VCVTF:mode>): Likewise.
8705 (neon_vmlal<mode>): Likewise.
8706 (neon_vmls<mode>): Likewise.
8707 (neon_vmlsl<mode>): Likewise.
8708 (neon_vqdmulh<mode>): Likewise.
8709 (neon_vqdmlal<mode>): Likewise.
8710 (neon_vqdmlsl<mode>): Likewise.
8711 (neon_vmull<mode>): Likewise.
8712 (neon_vqdmull<mode>): Likewise.
8713 (neon_vsub<mode>_unspec): Likewise.
8714 (neon_vsubl<mode>): Likewise.
8715 (neon_vsubw<mode>): Likewise.
8716 (neon_vqsub<mode>): Likewise.
8717 (neon_vhsub<mode>): Likewise.
8718 (neon_vsubhn<mode>): Likewise.
8719 (neon_vceq<mode>): Likewise.
8720 (neon_vcge<mode>): Likewise.
8721 (neon_vcgeu<mode>): Likewise.
8722 (neon_vcgt<mode>): Likewise.
8723 (neon_vcgtu<mode>): Likewise.
8724 (neon_vcle<mode>): Likewise.
8725 (neon_vclt<mode>): Likewise.
8726 (neon_vcage<mode>): Likewise.
8727 (neon_vcagt<mode>): Likewise.
8728 (neon_vtst<mode>): Likewise.
8729 (neon_vabd<mode>): Likewise.
8730 (neon_vabdl<mode>): Likewise.
8731 (neon_vaba<mode>): Likewise.
8732 (neon_vabal<mode>): Likewise.
8733 (neon_vmax<mode>): Likewise.
8734 (neon_vmin<mode>): Likewise.
8735 (neon_vpaddl<mode>): Likewise.
8736 (neon_vpadal<mode>): Likewise.
8737 (neon_vpmax<mode>): Likewise.
8738 (neon_vpmin<mode>): Likewise.
8739 (neon_vrecps<mode>): Likewise.
8740 (neon_vrsqrts<mode>): Likewise.
8741 (neon_vqabs<mode>): Likewise.
8742 (neon_vqneg<mode>): Likewise.
8743 (neon_vcls<mode>): Likewise.
8744 (clz<mode>2): Likewise.
8745 (popcount<mode>2): Likewise.
8746 (neon_vrecpe<mode>): Likewise.
8747 (neon_vrsqrte<mode>): Likewise.
8748 (neon_vget_lane<mode>_sext_internal): Likewise.
8749 (neon_vget_lane<mode>_zext_internal): Likewise.
8750 (neon_vdup_n<mode>): Likewise.
8751 (neon_vdup_n<mode>): Likewise.
8752 (neon_vdup_nv2di): Likewise.
8753 (neon_vdup_lane<mode>_interal): Likewise.
8754 (*neon_vswp<mode>): Likewise.
8755 (neon_vcombine<mode>): Likewise.
8756 (float<mode><V_cvtto>2): Likewise.
8757 (floatuns<mode><V_cvtto>2): Likewise.
8758 (fix_trunc<mode><V_cvtto>2): Likewise.
8759 (fixuns_trunc<mode><V_cvtto>2
8760 (neon_vcvt<mode>): Likewise.
8761 (neon_vcvt<mode>): Likewise.
8762 (neon_vcvtv4sfv4hf): Likewise.
8763 (neon_vcvtv4hfv4sf): Likewise.
8764 (neon_vcvt_n<mode>): Likewise.
8765 (neon_vcvt_n<mode>): Likewise.
8766 (neon_vmovn<mode>): Likewise.
8767 (neon_vqmovn<mode>): Likewise.
8768 (neon_vqmovun<mode>): Likewise.
8769 (neon_vmovl<mode>): Likewise.
8770 (neon_vmul_lane<mode>): Likewise.
8771 (neon_vmul_lane<mode>): Likewise.
8772 (neon_vmull_lane<mode>): Likewise.
8773 (neon_vqdmull_lane<mode>): Likewise.
8774 (neon_vqdmulh_lane<mode>): Likewise.
8775 (neon_vqdmulh_lane<mode>): Likewise.
8776 (neon_vmla_lane<mode>): Likewise.
8777 (neon_vmla_lane<mode>): Likewise.
8778 (neon_vmlal_lane<mode>): Likewise.
8779 (neon_vqdmlal_lane<mode>): Likewise.
8780 (neon_vmls_lane<mode>): Likewise.
8781 (neon_vmls_lane<mode>): Likewise.
8782 (neon_vmlsl_lane<mode>): Likewise.
8783 (neon_vqdmlsl_lane<mode>): Likewise.
8784 (neon_vext<mode>): Likewise.
8785 (neon_vrev64<mode>): Likewise.
8786 (neon_vrev32<mode>): Likewise.
8787 (neon_vrev16<mode>): Likewise.
8788 (neon_vbsl<mode>_internal): Likewise.
8789 (neon_vshl<mode>): Likewise.
8790 (neon_vqshl<mode>): Likewise.
8791 (neon_vshr_n<mode>): Likewise.
8792 (neon_vshrn_n<mode>): Likewise.
8793 (neon_vqshrn_n<mode>): Likewise.
8794 (neon_vqshrun_n<mode>): Likewise.
8795 (neon_vshl_n<mode>): Likewise.
8796 (neon_vqshl_n<mode>): Likewise.
8797 (neon_vqshlu_n<mode>): Likewise.
8798 (neon_vshll_n<mode>): Likewise.
8799 (neon_vsra_n<mode>): Likewise.
8800 (neon_vsri_n<mode>): Likewise.
8801 (neon_vsli_n<mode>): Likewise.
8802 (neon_vtbl1v8qi): Likewise.
8803 (neon_vtbl2v8qi): Likewise.
8804 (neon_vtbl3v8qi): Likewise.
8805 (neon_vtbl4v8qi): Likewise.
8806 (neon_vtbl1v16qi): Likewise.
8807 (neon_vtbl2v16qi): Likewise.
8808 (neon_vcombinev16qi): Likewise.
8809 (neon_vtbx1v8qi): Likewise.
8810 (neon_vtbx2v8qi): Likewise.
8811 (neon_vtbx3v8qi): Likewise.
8812 (neon_vtbx4v8qi): Likewise.
8813 (*neon_vtrn<mode>_insn): Likewise.
8814 (*neon_vzip<mode>_insn): Likewise.
8815 (*neon_vuzp<mode>_insn): Likewise.
8816 (neon_vld1<mode>): Likewise.
8817 (neon_vld1_lane<mode>): Likewise.
8818 (neon_vld1_lane<mode>): Likewise.
8819 (neon_vld1_dup<mode>): Likewise.
8820 (neon_vld1_dup<mode>): Likewise.
8821 (neon_vld1_dupv2di): Likewise.
8822 (neon_vst1<mode>): Likewise.
8823 (neon_vst1_lane<mode>): Likewise.
8824 (neon_vst1_lane<mode>): Likewise.
8825 (neon_vld2<mode>): Likewise.
8826 (neon_vld2<mode>): Likewise.
8827 (neon_vld2_lane<mode>): Likewise.
8828 (neon_vld2_lane<mode>): Likewise.
8829 (neon_vld2_dup<mode>): Likewise.
8830 (neon_vst2<mode>): Likewise.
8831 (neon_vst2<mode>): Likewise.
8832 (neon_vst2_lane<mode>): Likewise.
8833 (neon_vst2_lane<mode>): Likewise.
8834 (neon_vld3<mode>): Likewise.
8835 (neon_vld3qa<mode>): Likewise.
8836 (neon_vld3qb<mode>): Likewise.
8837 (neon_vld3_lane<mode>): Likewise.
8838 (neon_vld3_lane<mode>): Likewise.
8839 (neon_vld3_dup<mode>): Likewise.
8840 (neon_vst3<mode>): Likewise.
8841 (neon_vst3qa<mode>): Likewise.
8842 (neon_vst3qb<mode>): Likewise.
8843 (neon_vst3_lane<mode>): Likewise.
8844 (neon_vst3_lane<mode>): Likewise.
8845 (neon_vld4<mode>): Likewise.
8846 (neon_vld4qa<mode>): Likewise.
8847 (neon_vld4qb<mode>): Likewise.
8848 (neon_vld4_lane<mode>): Likewise.
8849 (neon_vld4_lane<mode>): Likewise.
8850 (neon_vld4_dup<mode>): Likewise.
8851 (neon_vst4<mode>): Likewise.
8852 (neon_vst4qa<mode>): Likewise.
8853 (neon_vst4qb<mode>): Likewise.
8854 (neon_vst4_lane<mode>): Likewise.
8855 (neon_vst4_lane<mode>): Likewise.
8856 (neon_vec_unpack<US>_lo_<mode>): Likewise.
8857 (neon_vec_unpack<US>_hi_<mode>): Likewise.
8858 (neon_vec_<US>mult_lo_<mode>): Likewise.
8859 (neon_vec_<US>mult_hi_<mode>): Likewise.
8860 (neon_vec_<US>shiftl_<mode>): Likewise.
8861 (neon_unpack<US>_<mode>): Likewise.
8862 (neon_vec_<US>mult_<mode>): Likewise.
8863 (vec_pack_trunc_<mode>): Likewise.
8864 (neon_vec_pack_trunc_<mode>): Likewise.
8865 (neon_vabd<mode>_2): Likewise.
8866 (neon_vabd<mode>_3): Likewise.
8868 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
8870 * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
8871 (load_pair): Update type attribute.
8872 (store_pair): Update type attribute.
8873 * config/aarch64/iterators.md (q): New.
8875 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
8877 * config/arm/types.md: Add new types for Neon insns.
8879 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
8880 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8881 Sergey Lega <sergey.s.lega@intel.com>
8882 Anna Tikhonova <anna.tikhonova@intel.com>
8883 Ilya Tocar <ilya.tocar@intel.com>
8884 Andrey Turetskiy <andrey.turetskiy@intel.com>
8885 Ilya Verbin <ilya.verbin@intel.com>
8886 Kirill Yukhin <kirill.yukhin@intel.com>
8887 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8889 * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
8890 UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
8891 UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
8893 (srcp14<mode>): Ditto.
8894 (rsqrt14<mode>): Ditto.
8895 (rsqrt14<mode>): Ditto.
8896 (avx512f_vmscalef<mode>): Ditto.
8897 (avx512f_scalef<mode>): Ditto.
8898 (avx512f_getexp<mode>): Ditto.
8899 (avx512f_sgetexp<mode>): Ditto.
8900 (avx512f_fixupimm<mode>): Ditto.
8901 (avx512f_sfixupimm<mode>): Ditto.
8902 (avx512f_rndscale<mode>): Ditto.
8903 (*avx512er_exp2<mode>): Ditto.
8904 (*avx512er_rcp28<mode>): Ditto.
8905 (avx512er_rsqrt28<mode>): Ditto.
8906 (avx512f_getmant<mode>): Ditto.
8907 (avx512f_getmant<mode>): Ditto.
8908 (avx512f_rndscale<mode>): Fix formatting.
8910 2013-10-15 Martin Jambor <mjambor@suse.cz>
8912 * ipa-utils.h (ipa_edge_within_scc): Declare.
8913 * ipa-cp.c (edge_within_scc): Moved...
8914 * ipa-utils.c (ipa_edge_within_scc): ...here. Updated all callers.
8916 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
8917 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8918 Sergey Lega <sergey.s.lega@intel.com>
8919 Anna Tikhonova <anna.tikhonova@intel.com>
8920 Ilya Tocar <ilya.tocar@intel.com>
8921 Andrey Turetskiy <andrey.turetskiy@intel.com>
8922 Ilya Verbin <ilya.verbin@intel.com>
8923 Kirill Yukhin <kirill.yukhin@intel.com>
8924 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8926 * config/i386/predicates.md (const_8_to_15_operand): New.
8927 (const_16_to_31_operand): Ditto.
8928 * config/i386/sse.md (V8FI): New.
8930 (reduc_splus_v8df): Ditto.
8931 (reduc_splus_v16sf): Ditto.
8932 (avx512f_vextract<shuffletype>32x4_1): Ditto.
8933 (vec_extract_hi_<mode>): Ditto.
8934 (avx512f_vinsert<shuffletype>32x4_1): Ditto.
8935 (vec_set_lo_<mode>): Ditto.
8936 (vec_set_hi_<mode>): Ditto.
8937 (avx512f_shuf_<shuffletype>64x2_1): Ditto.
8938 (avx512f_shuf_<shuffletype>32x4_1): Ditto.
8939 (avx512f_pshufd_1): Ditto.
8940 (avx512f_broadcast<mode>): Ditto.
8941 (avx512f_broadcast<mode>): Ditto.
8942 (define_split): Split vec_extract_lo into move.
8943 (ssequartermode): Ditto.
8944 (ssedoublemode): Extened with wider modes.
8945 (vec_extract_lo_<mode>): Ditto.
8947 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
8948 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8949 Sergey Lega <sergey.s.lega@intel.com>
8950 Anna Tikhonova <anna.tikhonova@intel.com>
8951 Ilya Tocar <ilya.tocar@intel.com>
8952 Andrey Turetskiy <andrey.turetskiy@intel.com>
8953 Ilya Verbin <ilya.verbin@intel.com>
8954 Kirill Yukhin <kirill.yukhin@intel.com>
8955 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8957 * config/i386/predicates.md (register_or_constm1_operand): New.
8958 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
8959 UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
8960 UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
8961 UNSPEC_SCATTER_PREFETCH
8963 (avx512f_ucmp<mode>3): Ditto.
8964 (avx512f_vternlog<mode>): Ditto.
8965 (avx512f_align<mode>): Ditto.
8966 (<shift_insn><mode>3): Ditto.
8967 (avx512f_<rotate>v<mode>): Ditto.
8968 (avx512f_<rotate><mode>): Ditto.
8969 (avx512f_eq<mode>3): Ditto.
8970 (avx512f_eq<mode>3_1): Ditto.
8971 (avx512f_gt<mode>3): Ditto.
8972 (avx512f_testm<mode>3): Ditto.
8973 (avx512f_testnm<mode>3): Ditto.
8974 (avx512pf_gatherpf<mode>): Ditto.
8975 (*avx512pf_gatherpf<mode>_mask): Ditto.
8976 (*avx512pf_gatherpf<mode>): Ditto.
8977 (avx512pf_scatterpf<mode>): Ditto.
8978 (*avx512pf_scatterpf<mode>_mask): Ditto.
8979 (*avx512pf_scatterpf<mode>): Ditto.
8980 (avx512f_vec_dup_gpr<mode>): Ditto.
8981 (clz<mode>2): Ditto.
8982 (conflict<mode>): Ditto.
8983 (REDUC_SMINMAX_MODE): Extened with wider modes.
8984 (reduc_<code>_<mode>): Ditto.
8985 (vlshr<mode>3): Ditto.
8986 (vashl<mode>3): Ditto.
8988 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
8989 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8990 Sergey Lega <sergey.s.lega@intel.com>
8991 Anna Tikhonova <anna.tikhonova@intel.com>
8992 Ilya Tocar <ilya.tocar@intel.com>
8993 Andrey Turetskiy <andrey.turetskiy@intel.com>
8994 Ilya Verbin <ilya.verbin@intel.com>
8995 Kirill Yukhin <kirill.yukhin@intel.com>
8996 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8998 * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
9001 (avx512fmaskmode): Ditto.
9002 (bcstscalarsuff): Ditto.
9003 (avx512f_blendm<mode>): Ditto.
9004 (cmp_imm_predicate): Ditto.
9005 (avx512f_cmp<mode>3): Ditto.
9006 (avx512f_vec_dup<mode>): Ditto.
9007 (avx512f_vec_dup_mem<mode>): Ditto.
9008 (avx512f_vpermi2var<mode>3): Ditto.
9009 (avx512f_vpermt2var<mode>3): Ditto.
9010 (vec_init<mode>): Ditto.
9011 (avx512f_gathersi<mode>): Ditto.
9012 (*avx512f_gathersi<mode>): Ditto.
9013 (*avx512f_gathersi<mode>_2): Ditto.
9014 (avx512f_gatherdi<mode>): Ditto.
9015 (*avx512f_gatherdi<mode>): Ditto.
9016 (*avx512f_gatherdi<mode>_2): Ditto.
9017 (avx512f_scattersi<mode>): Ditto.
9018 (*avx512f_scattersi<mode>): Ditto.
9019 (avx512f_scatterdi<mode>): Ditto.
9020 (*avx512f_scatterdi<mode>): Ditto.
9021 (sseintprefix): Extened with wider modes.
9022 (VEC_GATHER_IDXSI): Ditto.
9023 (VEC_GATHER_IDXDI): Ditto.
9024 (VEC_GATHER_SRCDI): Ditto.
9026 2013-10-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9027 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9029 * config/arm/t-aprofile: New file.
9030 * config.gcc: Handle --with-multilib-list option.
9032 2013-10-15 Bernd Schmidt <bernds@codesourcery.com>
9034 * reload1.c (reloads_unique_chain_p): Ensure that r1 is
9037 2013-10-15 Richard Biener <rguenther@suse.de>
9039 * tree-loop-distribution.c (build_empty_rdg): Inline into
9041 (rdg_flag_vertex): Inline into single user.
9042 (rdg_flag_vertex_and_dependent): Likewise.
9043 (build_rdg_partition_for_vertex): Remove processed bitmap.
9044 (rdg_build_partitions): Simplify.
9046 2013-10-15 Richard Biener <rguenther@suse.de>
9048 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
9049 Restructure forwarding through conversions and copies to
9050 avoid performing copy-propagation the wrong way. Adjust
9051 recursion invocations.
9052 (forward_propagate_addr_expr): Add argument stating if we
9053 are recursing from a single-use.
9054 (ssa_forward_propagate_and_combine): Adjust.
9056 2013-10-14 David Malcolm <dmalcolm@redhat.com>
9058 * dumpfile.h (gcc::dump_manager): New class, to hold state
9059 relating to dumpfile management.
9060 (get_dump_file_name): Remove in favor of method of dump_manager.
9061 (dump_initialized_p): Likewise.
9062 (dump_start): Likewise.
9063 (dump_finish): Likewise.
9064 (dump_switch_p): Likewise.
9065 (dump_register): Likewise.
9066 (get_dump_file_info): Likewise.
9067 * context.c (gcc::context::context): Construct the dump_manager
9069 * context.h (gcc::context::get_dumps): New.
9070 (gcc::context::m_dumps): New.
9071 * coverage.c (coverage_init): Port to dump_manager API.
9072 * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
9073 (extra_dump_files_in_use): Likewise.
9074 (extra_dump_files_alloced): Likewise.
9075 (gcc::dump_manager::dump_manager): New.
9076 (dump_register): Convert to...
9077 (gcc::dump_manager::dump_register): ...method, replacing
9078 function-static next_dump with m_next_dump field.
9079 (get_dump_file_info): Convert to...
9080 (gcc::dump_manager::get_dump_file_info): ...method.
9081 (get_dump_file_name): Convert to...
9082 (gcc::dump_manager::get_dump_file_name): ...method.
9083 (dump_start): Convert to...
9084 (gcc::dump_manager::dump_start): ...method.
9085 (dump_finish): Convert to...
9086 (gcc::dump_manager::dump_finish): ...method.
9087 (dump_begin): Replace body with...
9088 (gcc::dump_manager::dump_begin): ...new method.
9089 (dump_phase_enabled_p): Convert to...
9090 (gcc::dump_manager::dump_phase_enabled_p): ...method.
9091 (dump_phase_enabled_p): Convert to...
9092 (gcc::dump_manager::dump_phase_enabled_p): ...method.
9093 (dump_initialized_p): Convert to...
9094 (gcc::dump_manager::dump_initialized_p): ...method.
9095 (dump_flag_name): Replace body with...
9096 (gcc::dump_manager::dump_flag_name): ...new method.
9097 (dump_enable_all): Convert to...
9098 (gcc::dump_manager::dump_enable_all): ...new method.
9099 (opt_info_enable_passes): Convert to...
9100 (gcc::dump_manager::opt_info_enable_passes): ...new method.
9101 (dump_switch_p_1): Convert to...
9102 (gcc::dump_manager::dump_switch_p_1): ...new method.
9103 (dump_switch_p): Convert to...
9104 (gcc::dump_manager::dump_switch_p): ...new method.
9105 (opt_info_switch_p): Port to dump_manager API.
9106 (enable_rtl_dump_file): Likewise.
9107 * opts-global.c (handle_common_deferred_options): Port to new
9109 * passes.c (pass_manager::finish_optimization_passes): Likewise.
9110 (pass_manager::register_one_dump_file): Likewise.
9111 (pass_manager::register_pass): Likewise.
9112 (pass_init_dump_file): Likewise.
9113 (pass_fini_dump_file): Likewise.
9114 * statistics.c (statistics_early_init): Likewise.
9116 2013-10-14 Richard Biener <rguenther@suse.de>
9118 * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
9119 iterative_hash_canonical_type, gimple_canonical_type_hash,
9120 gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
9121 gimple_register_canonical_type, print_gimple_types_stats,
9122 free_gimple_type_tables): Move to lto/lto.c
9123 (gt-gimple.h): Do not include.
9124 * gimple.h (gimple_register_canonical_type,
9125 print_gimple_types_stats, free_gimple_type_tables): Remove.
9126 * Makefile.in (GTFILES): Remove gimple.c.
9128 2013-10-14 Travis Snoozy <quandary@remstate.com>
9131 * config/msp430/msp430.c (msp430_option_override): Correct thinko
9132 scanning for msp430x targets.
9134 2013-10-14 Eric Botcazou <ebotcazou@adacore.com>
9137 * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
9138 (registers_ok_for_ldd_peep): Move around.
9139 * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
9140 * config/sparc/sparc.md (widening peepholes): Use it.
9142 2013-10-14 Richard Biener <rguenther@suse.de>
9146 * gimple.c (iterative_hash_canonical_type): Make sure to
9147 record the hash into the correct hashtable slot.
9149 2013-10-13 Eric Botcazou <ebotcazou@adacore.com>
9151 PR rtl-optimization/58662
9152 * combine.c (try_combine): Take into account death nodes on I2 when
9153 splitting a PARALLEL of two independent SETs. Fix dump message.
9155 2013-10-12 Oleg Endo <olegendo@gcc.gnu.org>
9158 * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
9159 * config.gcc (SH extra_objs): Add sh_ifcvt.o.
9160 * config/sh/t-sh (sh_treg_combine.o): New entry.
9161 * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
9162 implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
9163 (register_sh_passes): New function. Register sh_treg_combine pass.
9164 (sh_option_override): Invoke it.
9165 (sh_canonicalize_comparison): Handle op0_preserve_value.
9166 * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
9167 opportunities. Canonicalize branch condition.
9168 (nott): Allow only if pseudos can be created for non-SH2A.
9170 2013-10-12 H.J. Lu <hongjiu.lu@intel.com>
9173 * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
9174 (ix86_expand_movmem): Replace copy_addr_to_reg with
9175 ix86_copy_addr_to_reg.
9176 (ix86_expand_setmem): Likewise.
9178 2013-10-12 Alexander Monakov <amonakov@ispras.ru>
9180 * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
9181 provided by ix86_fp_compare_mode instead of CCFPUmode.
9183 2013-10-12 James Greenhalgh <james.greenhalgh@arm.com>
9185 * config/aarch64/arm_neon.h
9186 (vtbx<1,3>_<psu>8): Fix register constriants.
9188 2013-10-11 Jeff Law <law@redhat.com>
9190 PR tree-optimization/58640
9191 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
9192 threading paths that cross over two loop entry points.
9194 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9196 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
9197 handle vector float as well.
9198 (*vsx_le_perm_load_v4si): Likewise.
9199 (*vsx_le_perm_store_v2di): Likewise.
9200 (*vsx_le_perm_store_v4si): Likewise.
9202 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9204 * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
9205 directly to circumvent subtract from splat{31} workaround.
9206 * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
9208 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
9209 * config/rs6000/altivec.md (define_c_enum "unspec"): Add
9210 UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
9211 (altivec_vperm_<mode>): Convert to define_insn_and_split to
9212 separate big and little endian logic.
9213 (*altivec_vperm_<mode>_internal): New define_insn.
9214 (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
9215 separate big and little endian logic.
9216 (*altivec_vperm_<mode>_uns_internal): New define_insn.
9217 (vec_permv16qi): Add little endian logic.
9219 2013-10-11 Marc Glisse <marc.glisse@inria.fr>
9221 * doc/extend.texi (returns_nonnull): Remove arguments.
9223 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9224 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9225 Sergey Lega <sergey.s.lega@intel.com>
9226 Anna Tikhonova <anna.tikhonova@intel.com>
9227 Ilya Tocar <ilya.tocar@intel.com>
9228 Andrey Turetskiy <andrey.turetskiy@intel.com>
9229 Ilya Verbin <ilya.verbin@intel.com>
9230 Kirill Yukhin <kirill.yukhin@intel.com>
9231 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9233 * config/i386/sse.md (VI48F_256_512): New.
9234 (avx2_permvar<mode>): Change to ...
9235 (<avx2_avx512f>_permvar<mode>): This.
9237 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9238 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9239 Sergey Lega <sergey.s.lega@intel.com>
9240 Anna Tikhonova <anna.tikhonova@intel.com>
9241 Ilya Tocar <ilya.tocar@intel.com>
9242 Andrey Turetskiy <andrey.turetskiy@intel.com>
9243 Ilya Verbin <ilya.verbin@intel.com>
9244 Kirill Yukhin <kirill.yukhin@intel.com>
9245 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9247 * config/i386/i386.c (bdesc_args): Change corresponding pattern for
9248 __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
9249 * config/i386/sse.md (VI4_AVX): New.
9250 (sf2simodelower): Ditto.
9251 (sse2_cvtps2dq): Change to ...
9252 (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
9254 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9255 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9256 Sergey Lega <sergey.s.lega@intel.com>
9257 Anna Tikhonova <anna.tikhonova@intel.com>
9258 Ilya Tocar <ilya.tocar@intel.com>
9259 Andrey Turetskiy <andrey.turetskiy@intel.com>
9260 Ilya Verbin <ilya.verbin@intel.com>
9261 Kirill Yukhin <kirill.yukhin@intel.com>
9262 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9264 * config/i386/sse.md (V_512): New.
9266 (vcond<V_512:mode><VF_512:mode>): Ditto.
9267 (vcond<V_512:mode><VI_512:mode>): Ditto.
9268 (vcondu<V_512:mode><VI_512:mode>): Ditto.
9270 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9271 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9272 Sergey Lega <sergey.s.lega@intel.com>
9273 Anna Tikhonova <anna.tikhonova@intel.com>
9274 Ilya Tocar <ilya.tocar@intel.com>
9275 Andrey Turetskiy <andrey.turetskiy@intel.com>
9276 Ilya Verbin <ilya.verbin@intel.com>
9277 Kirill Yukhin <kirill.yukhin@intel.com>
9278 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9280 * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
9281 * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
9283 (fma<mode>4): Removed condition.
9284 (fms<mode>4): Ditto.
9285 (fnma<mode>4): Ditto.
9286 (fnms<mode>4): Ditto.
9287 (fma4i_fmadd_<mode>): Ditto.
9288 (*fma_fmadd_<mode>): Ditto.
9289 (*fma_fmsub_<mode>): Ditto.
9290 (*fma_fnmadd_<mode>): Ditto.
9291 (*fma_fnmsub_<mode>): Ditto.
9292 (fmaddsub_<mode>): Allow for TARGET_AVX512F.
9293 (*fma_fmaddsub_<mode>): Ditto.
9294 (*fma_fmsubadd_<mode>): Ditto.
9295 (*fmai_fmadd_<mode>): Ditto.
9296 (*fmai_fmsub_<mode>): Ditto.
9297 (*fmai_fnmadd_<mode>): Ditto.
9298 (*fmai_fnmsub_<mode>): Ditto.
9300 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9301 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9302 Sergey Lega <sergey.s.lega@intel.com>
9303 Anna Tikhonova <anna.tikhonova@intel.com>
9304 Ilya Tocar <ilya.tocar@intel.com>
9305 Andrey Turetskiy <andrey.turetskiy@intel.com>
9306 Ilya Verbin <ilya.verbin@intel.com>
9307 Kirill Yukhin <kirill.yukhin@intel.com>
9308 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9310 * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
9311 (VI124_256): Changed to ...
9312 (VI124_256_48_512): This.
9313 (ssepackmode): Extended with wider modes.
9314 (<code><mode>3): Changed iterator.
9315 (*avx2_<code><mode>3): Ditto.
9316 (vec_pack_trunc_<mode>): Ditto.
9318 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9319 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9320 Sergey Lega <sergey.s.lega@intel.com>
9321 Anna Tikhonova <anna.tikhonova@intel.com>
9322 Ilya Tocar <ilya.tocar@intel.com>
9323 Andrey Turetskiy <andrey.turetskiy@intel.com>
9324 Ilya Verbin <ilya.verbin@intel.com>
9325 Kirill Yukhin <kirill.yukhin@intel.com>
9326 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9328 * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
9329 (VI8F_256_512): Ditto.
9330 (abs<mode>2): Changed iterator.
9331 (avx2_perm<mode>): Changed to ...
9332 (<avx2_avx512f>_perm<mode>): This.
9333 (avx2_perm<mode>_1): Changed to ...
9334 (<avx2_avx512f>_perm<mode>_1): This.
9336 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9337 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9338 Sergey Lega <sergey.s.lega@intel.com>
9339 Anna Tikhonova <anna.tikhonova@intel.com>
9340 Ilya Tocar <ilya.tocar@intel.com>
9341 Andrey Turetskiy <andrey.turetskiy@intel.com>
9342 Ilya Verbin <ilya.verbin@intel.com>
9343 Kirill Yukhin <kirill.yukhin@intel.com>
9344 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9346 * config/i386/sse.md (VI48_AVX512F): New.
9347 (VI48_AVX2): Changed to ...
9348 (VI48_AVX2_48_AVX512F): This.
9349 (avx2_ashrv<mode>): Changed to ...
9350 (<avx2_avx512f>_ashrv<mode>): This.
9351 (avx2_<shift_insn>v<mode>): Changed to ...
9352 (<avx2_avx512f>_<shift_insn>v<mode>): This.
9354 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9355 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9356 Sergey Lega <sergey.s.lega@intel.com>
9357 Anna Tikhonova <anna.tikhonova@intel.com>
9358 Ilya Tocar <ilya.tocar@intel.com>
9359 Andrey Turetskiy <andrey.turetskiy@intel.com>
9360 Ilya Verbin <ilya.verbin@intel.com>
9361 Kirill Yukhin <kirill.yukhin@intel.com>
9362 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9364 * config/i386/sse.md (VI4_AVX512F): New.
9365 (VI8_AVX2_AVX512F): Ditto.
9366 (mul<mode>3): Extended with wider modes.
9367 (*<sse4_1_avx2>_mul<mode>3): Ditto.
9368 (mul<mode>3): Ditto.
9369 (vec_widen_<s>mult_odd_<mode>): Ditto.
9371 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9372 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9373 Sergey Lega <sergey.s.lega@intel.com>
9374 Anna Tikhonova <anna.tikhonova@intel.com>
9375 Ilya Tocar <ilya.tocar@intel.com>
9376 Andrey Turetskiy <andrey.turetskiy@intel.com>
9377 Ilya Verbin <ilya.verbin@intel.com>
9378 Kirill Yukhin <kirill.yukhin@intel.com>
9379 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9381 * config/i386/sse.md (VI2_AVX512F): New.
9382 (VI124_AVX512F): Ditto.
9383 (sseunpackmode): Extended with wider modes.
9384 (sseunpackfltmode): Ditto.
9385 (vec_unpacks_float_hi_<mode>): Ditto.
9386 (vec_unpacks_float_lo_<mode>): Ditto.
9387 (vec_unpacku_float_hi_<mode>): Ditto.
9388 (vec_unpacku_float_lo_<mode>): Ditto.
9389 (vec_unpacks_lo_<mode>): Ditto.
9390 (vec_unpacks_hi_<mode>): Ditto.
9391 (vec_unpacku_lo_<mode>): Ditto.
9392 (vec_unpacku_hi_<mode>): Ditto.
9394 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9395 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9396 Sergey Lega <sergey.s.lega@intel.com>
9397 Anna Tikhonova <anna.tikhonova@intel.com>
9398 Ilya Tocar <ilya.tocar@intel.com>
9399 Andrey Turetskiy <andrey.turetskiy@intel.com>
9400 Ilya Verbin <ilya.verbin@intel.com>
9401 Kirill Yukhin <kirill.yukhin@intel.com>
9402 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9404 * config/i386/i386.md (multdiv): New.
9405 (multdiv_mnemonic): Ditto.
9406 * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
9407 (<sse>_vm<multdiv_mnemonic><mode>3): This.
9408 (<sse>_vmdiv<mode>3): Removed.
9410 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9411 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9412 Sergey Lega <sergey.s.lega@intel.com>
9413 Anna Tikhonova <anna.tikhonova@intel.com>
9414 Ilya Tocar <ilya.tocar@intel.com>
9415 Andrey Turetskiy <andrey.turetskiy@intel.com>
9416 Ilya Verbin <ilya.verbin@intel.com>
9417 Kirill Yukhin <kirill.yukhin@intel.com>
9418 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9420 * config/i386/sse.md (V): Extended with wider modes.
9422 (ssehalfvecmode): Ditto.
9424 (ssepackfltmode): Ditto.
9425 (avx_vec_concat<mode>): Ditto.
9426 (V_256_512): New iterator.
9427 (VF2_512_256): Ditto.
9428 (si2dfmode): New attribute.
9429 (si2dfmodelower): Ditto.
9431 (concat_tg_mode): Ditto.
9432 (floatv4siv4df2): Changed to ...
9433 (float<si2dfmodelower><mode>2): This.
9434 (avx_cvtps2pd256): Changed to ...
9435 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
9436 (vec_pack_trunc_v4df): Changed to ...
9437 (vec_pack_trunc_<mode>): This.
9438 (avx_vpermil<mode>): Changed to ...
9439 (<sse2_avx_avx512f>_vpermil<mode>): This.
9440 (<fixsuffix>fix_truncv8dfv8si2): New.
9441 (vec_pack_sfix_trunc_v8df): Ditto.
9442 (avx512f_rndscale<mode>): Ditto.
9443 (avx512f_roundpd512): Ditto.
9444 (vec_pack_ufix_trunc_<mode>): Updated iterator.
9446 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9447 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9448 Sergey Lega <sergey.s.lega@intel.com>
9449 Anna Tikhonova <anna.tikhonova@intel.com>
9450 Ilya Tocar <ilya.tocar@intel.com>
9451 Andrey Turetskiy <andrey.turetskiy@intel.com>
9452 Ilya Verbin <ilya.verbin@intel.com>
9453 Kirill Yukhin <kirill.yukhin@intel.com>
9454 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9456 * config/i386/i386.md (any_fix): New iterator.
9457 (fixsuffix): New attribute.
9458 * config/i386/sse.md (VF1): Extened with wider modes.
9462 (sseintvecmodelower): Ditto.
9463 (ssescalarmode): Ditto.
9464 (ssescalarnum): Ditto.
9466 (ssexmmmode): Ditto.
9467 (<fixsuffix>fix_truncv16sfv16si2): Ditto.
9468 (<sse>_rcp<mode>2): Change iterator.
9469 (rsqrt<mode>2): Ditto.
9470 (<sse>_rsqrt<mode>2): Ditto.
9471 (avx2_vec_dup<mode>): Ditto.
9472 (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
9473 (round<mode>2_sfix): Ditto.
9474 (avx2_pbroadcast<mode>): Ditto.
9475 (*andnot<mode>3): Handle XI mode.
9476 (*<code><mode>3): Ditto.
9477 (AVXTOSSEMODE): Removed.
9478 (avx_vpermil<mode>): Changed to ...
9479 (<sse2_avx_avx512f>_vpermil<mode>): This.
9481 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9482 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9483 Sergey Lega <sergey.s.lega@intel.com>
9484 Anna Tikhonova <anna.tikhonova@intel.com>
9485 Ilya Tocar <ilya.tocar@intel.com>
9486 Andrey Turetskiy <andrey.turetskiy@intel.com>
9487 Ilya Verbin <ilya.verbin@intel.com>
9488 Kirill Yukhin <kirill.yukhin@intel.com>
9489 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9491 * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
9492 (<sse>_comi): Ditto.
9493 (<sse>_ucomi): Ditto.
9494 (sse_cvtss2siq_2): Ditto.
9495 (sse2_cvtsd2si): Ditto.
9496 (sse2_cvtsd2siq): Ditto.
9497 (sse2_cvttsd2si): Ditto.
9498 (sse2_cvttsd2siq): Ditto.
9499 (<shift_insn><mode>3): Ditto.
9500 (sse2_cvtsi2sdq): Update constraint and prefix.
9501 (sse_cvtsi2ss): Update prefix.
9502 (sse_cvtsi2ssq): Ditto.
9504 2013-10-11 Jakub Jelinek <jakub@redhat.com>
9506 * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
9507 ignore internal calls.
9509 2013-10-11 Richard Biener <rguenther@suse.de>
9511 * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
9512 and (ab) for SSA_NAMEs. Mark INTEGER_CSTs with (OVF) if
9513 TREE_OVERFLOW is set.
9515 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
9517 * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
9519 * gimple.c: GIMPLE statements have subcodes, not sub-codes.
9520 * gimple.h: Likewise.
9522 * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
9524 * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
9527 * doc/gimple.texi (is_gimple_omp): Move into the correct section.
9529 * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
9530 * configure: Regenerate.
9532 2013-10-11 Jakub Jelinek <jakub@redhat.com>
9534 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
9535 and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
9536 formatting fixes, use pp_colon instead of pp_character (..., ':'),
9537 similarly pp_right_paren.
9538 (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
9539 OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
9540 allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
9541 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
9543 (omp_declare_simd_clauses_equal,
9544 omp_remove_redundant_declare_simd_attrs): New functions.
9545 (attribute_value_equal): Use omp_declare_simd_clauses_equal.
9546 (walk_tree_1): Handle new OpenMP 4.0 clauses.
9547 * tree.h (OMP_LOOP_CHECK): Define.
9548 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
9549 OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
9550 (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
9551 OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
9552 OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
9553 OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
9554 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
9555 OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
9556 OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
9557 OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
9558 OMP_CLAUSE_SIMDLEN_EXPR): Define.
9559 (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
9560 (omp_remove_redundant_declare_simd_attrs): New prototype.
9561 * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
9562 GIMPLE_OMP_TEAMS): New codes.
9563 (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
9564 * omp-low.c (struct omp_context): Add cancel_label and cancellable
9566 (target_nesting_level): New variable.
9567 (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
9568 OMP_CLAUSE_DIST_SCHEDULE. Don't fallback to library implementation
9569 for collapse > 1 static schedule unless ordered.
9570 (get_ws_args_for): Add par_stmt argument. Handle combined loops.
9571 (determine_parallel_type): Adjust get_ws_args_for caller.
9572 (install_var_field): Handle mask & 4 for double indirection.
9573 (scan_sharing_clauses): Ignore shared clause on teams construct.
9574 Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
9575 (create_omp_child_function): If inside target or declare target
9576 constructs, set "omp declare target" attribute on the child function.
9577 (find_combined_for): New function.
9578 (scan_omp_parallel): Handle combined loops.
9579 (scan_omp_target, scan_omp_teams): New functions.
9580 (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
9581 restrictions and set ctx->cancellable for cancellable constructs.
9582 (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
9583 selected builtin calls. Handle GIMPLE_OMP_TASKGROUP,
9584 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
9585 (build_omp_barrier): Add lhs argument, return gimple rather than tree.
9586 (omp_clause_aligned_alignment): New function.
9587 (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
9588 (lower_rec_input_clauses): Add FD argument. Ignore shared clauses
9589 on teams constructs. Handle user defined reductions and new
9591 (lower_reduction_clauses): Don't set placeholder to address of ref
9592 if it has already the right type.
9593 (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
9594 (expand_parallel_call): Use the new non-_start suffixed builtins,
9595 handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
9596 and GOMP_parallel_end after the call.
9597 (expand_task_call): Handle OMP_CLAUSE_DEPEND.
9598 (expand_omp_for_init_counts): Handle combined loops.
9599 (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
9601 (expand_omp_for_generic): Likewise. Use GOMP_loop_end_cancel at the
9602 end of cancellable loops.
9603 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
9604 Likewise. Handle collapse > 1 loops.
9605 (expand_omp_simd): Handle combined loops.
9606 (expand_omp_for): Add inner_stmt argument, adjust callers of
9607 expand_omp_for* functions, use expand_omp_for_static*chunk even
9608 for collapse > 1 unless ordered.
9609 (expand_omp_sections): Use GOMP_sections_end_cancel at the end
9610 of cancellable sections.
9611 (expand_omp_single): Remove need_barrier variable, just rely on
9612 gimple_omp_return_nowait_p. Adjust build_omp_barrier caller.
9613 (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
9614 (expand_omp_atomic_load, expand_omp_atomic_store,
9615 expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
9616 (expand_omp_target): New function.
9617 (expand_omp): Handle combined loops. Handle GIMPLE_OMP_TASKGROUP,
9618 GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
9619 (build_omp_regions_1): Immediately close region for
9620 GF_OMP_TARGET_KIND_UPDATE.
9621 (maybe_add_implicit_barrier_cancel): New function.
9622 (lower_omp_sections): Adjust lower_rec_input_clauses caller. Handle
9624 (lower_omp_single): Likewise. Add clobber after the barrier.
9625 (lower_omp_taskgroup): New function.
9626 (lower_omp_for): Handle combined loops. Adjust
9627 lower_rec_input_clauses caller. Handle cancellation.
9628 (lower_depend_clauses): New function.
9629 (lower_omp_taskreg): Lower depend clauses. Adjust
9630 lower_rec_input_clauses caller. Add clobber after the call. Handle
9632 (lower_omp_target, lower_omp_teams): New functions.
9633 (lower_omp_1): Handle cancellation. Handle GIMPLE_OMP_TASKGROUP,
9634 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
9635 and GOMP_cancellation_point calls.
9636 (lower_omp): Fold stmts inside of target region.
9637 (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
9638 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
9639 * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
9640 (BT_FN_VOID_OMPFN_PTR_UINT,
9641 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
9642 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
9643 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
9644 (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
9645 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
9646 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
9647 BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
9648 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
9649 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
9650 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
9651 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
9652 call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
9653 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
9654 BUILT_IN_GOMP_SECTIONS_END_CANCEL. Don't handle
9655 BUILT_IN_GOMP_PARALLEL_END.
9656 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
9657 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
9658 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
9659 GF_OMP_FOR_KIND_DISTRIBUTE.
9660 (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
9661 (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
9662 (dump_gimple_omp_return): Print lhs if it has any.
9663 (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
9664 gimple_omp_atomic_seq_cst_p.
9665 (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
9666 and GIMPLE_OMP_TEAMS.
9667 * langhooks.c (lhd_omp_mappable_type): New function.
9668 * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
9669 * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
9671 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
9672 GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
9673 (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
9674 (struct gimplify_omp_ctx): Add combined_loop field.
9675 (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
9676 on stmts inside of target region.
9677 (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
9678 (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
9679 ORT_TARGET and ORT_TARGET_DATA.
9680 (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
9682 (omp_notice_threadprivate_variable): Complain about threadprivate
9683 variables in target region.
9684 (omp_notice_variable): Complain about vars with non-mappable type
9685 in target region. Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
9686 (omp_check_private): Ignore ORT_TARGET* regions.
9687 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
9688 gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
9689 (find_combined_omp_for): New function.
9690 (gimplify_omp_for): Handle gimplification of combined loops.
9691 (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
9693 (gimplify_omp_target_update): New function.
9694 (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
9695 (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
9696 OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
9697 (gimplify_body): If fndecl has "omp declare target" attribute, add
9698 implicit ORT_TARGET context around it.
9699 * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
9700 OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
9701 * tree-nested.c (convert_nonlocal_reference_stmt,
9702 convert_local_reference_stmt, convert_gimple_call): Handle
9703 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
9704 * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
9705 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
9706 instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
9707 (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
9708 BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
9709 BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
9710 BUILT_IN_GOMP_LOOP_END_CANCEL,
9711 BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
9712 BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
9713 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
9714 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
9715 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
9716 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
9717 BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
9718 BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
9719 (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
9720 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
9721 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
9722 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
9723 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
9724 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
9725 * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
9726 Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
9727 * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
9728 gimple_build_omp_teams): New functions.
9729 (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
9730 GIMPLE_OMP_TASKGROUP. Walk optional lhs on GIMPLE_OMP_RETURN.
9731 (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
9732 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
9733 * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
9734 GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
9735 GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
9736 GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
9737 GF_OMP_ATOMIC_SEQ_CST): New.
9738 (gimple_build_omp_taskgroup, gimple_build_omp_target,
9739 gimple_build_omp_teams): New prototypes.
9740 (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
9741 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
9742 (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
9743 GIMPLE_OMP_SINGLE as end of range.
9744 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
9745 gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
9746 gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
9747 gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
9748 gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
9749 gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
9750 gimple_omp_target_kind, gimple_omp_target_set_kind,
9751 gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
9752 gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
9753 gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
9754 gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
9755 gimple_omp_teams_set_clauses): New inlines.
9756 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
9757 and GIMPLE_OMP_TASKGROUP.
9758 * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
9759 (enum omp_clause_depend_kind, enum omp_clause_map_kind,
9760 enum omp_clause_proc_bind_kind): New.
9761 (union omp_clause_subcode): Add depend_kind, map_kind and
9762 proc_bind_kind fields.
9763 * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
9764 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
9765 * langhooks-def.h (lhd_omp_mappable_type): New prototype.
9766 (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
9767 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
9769 2013-10-10 Teresa Johnson <tejohnson@google.com>
9771 * predict.c (tree_estimate_probability): Add new parameter
9772 for estimate_bb_frequencies.
9773 (estimate_bb_frequencies): Add new parameter to force estimation.
9774 (rebuild_frequencies): When max frequency in function is small,
9775 recompute counts from frequencies.
9776 * predict.h (estimate_bb_frequencies): New parameter.
9778 2013-10-10 David Malcolm <dmalcolm@redhat.com>
9780 * ipa-inline.c (ipa_inline): Fix leak of "order" when
9781 optimizations are disabled.
9783 2013-10-10 David Malcolm <dmalcolm@redhat.com>
9785 * coverage.c (coverage_finish): Fix leak of da_file_name.
9787 2013-10-10 Jan Hubicka <jh@suse.cz>
9789 * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
9790 for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
9793 2013-10-10 Jakub Jelinek <jakub@redhat.com>
9796 * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
9797 if any labels are in FALLTHRU_BB, use a special label emitted
9798 immediately after the asm goto insn rather than label_rtx
9800 (expand_asm_stmt): Adjust caller.
9801 * cfgrtl.c (commit_one_edge_insertion): Force splitting of
9802 edge if the last insn in predecessor is a jump with single successor,
9803 but it isn't simplejump_p.
9805 2013-10-10 Richard Biener <rguenther@suse.de>
9807 PR tree-optimization/58656
9808 * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
9810 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
9812 * gimplify.c: Include expr.h and tm_p.h for targets with special
9813 va-arg padding requirements.
9815 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
9817 * tree-flow.h: Move some prototypes to gimple.h.
9818 (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
9819 * gimple.h: Relocate some prototypes from tree-flow.h
9820 * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
9822 * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
9823 (build_va_arg_indirect_ref): Relocate and make static.
9824 (std_gimplify_va_arg_expr): Relocate here.
9825 * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
9826 * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
9828 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9830 * doc/md.texi: Document the mnemonic attribute.
9832 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9835 * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
9836 (set_attr_alternative x ...) when searching for user defined
9839 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
9841 * config/aplha/alpha.c: Add gimple-ssa.h to include list.
9843 2013-10-09 Easwaran Raman <eraman@google.com>
9845 * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
9846 * cfgexpand.c (defer_stack_allocation): ...use here
9847 * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
9849 2013-10-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
9851 * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
9852 (operand_equal_for_value_replacement): New function, extracted from
9853 value_replacement and enhanced to catch more cases.
9854 (value_replacement): Use operand_equal_for_value_replacement.
9856 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
9858 * loop-doloop.c (doloop_modify, doloop_optimize): Use
9859 get_max_loop_iterations.
9861 2013-10-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9863 * config/arm/aarch-common.c (arm_early_load_addr_dep):
9864 Place comment above function.
9866 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
9868 * tree-flow.h: Remove all remaining prototypes, enums and structs that
9869 are not related to tree-cfg.c.
9870 * tree-ssa-address.h: New file. Relocate prototypes.
9871 * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
9872 (addr_for_mem_ref): New. Combine call to get_address_description and
9873 return addr_for_mem_ref.
9874 * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
9875 * tree-ssa-live.h: Adjust prototypes.
9876 * passes.c: Include tree-ssa-live.h.
9877 * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
9878 * graphite.c (graphite_transform_loops): Make static.
9879 (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
9880 make_pass_graphite, pass_data_graphite_transforms,
9881 make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
9882 * ipa-pure-const.c (warn_function_noreturn): Make static.
9883 (execute_warn_function_noreturn, gate_warn_function_noreturn,
9884 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
9885 Relocate from tree-cfg.c
9886 * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
9888 (execute_warn_function_noreturn, gate_warn_function_noreturn,
9889 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
9890 Move to ipa-pure-const.c.
9891 (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
9892 Relocate from tree-optimize.c.
9893 * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
9894 make_pass_fixup_cfg): Move to tree-cfg.c.
9895 * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
9896 Relocate some prototypes.
9897 * tree-data-ref.h (tree_check_data_deps) Add prototype.
9898 * tree-dump.c (dump_function_to_file): Remove prototype.
9899 Add tree-flow.h to the include file.
9900 * tree-dump.h: Remove prototype.
9901 * tree-parloops.h: New File. Add prototypes.
9902 * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
9903 pass_data_parallelize_loops, make_pass_parallelize_loops): Relocate
9904 from tree-ssa-loop.c.
9905 * tree-predcom.c (run_tree_predictive_commoning,
9906 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
9907 Relocate here from tree-ssa-loop.c.
9908 * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
9909 ssa_name_values.release ().
9910 * tree-ssa-threadedge.h: New File. Relocate prototypes here.
9911 (ssa_name_values): Relocate from tree-flow.h.
9912 * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
9913 * tree-ssa-loop.c (run_tree_predictive_commoning,
9914 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
9915 graphite_transforms, gate_graphite_transforms, pass_data_graphite,
9916 make_pass_graphite, pass_data_graphite_transforms,
9917 make_pass_graphite_transforms, gate_tree_parallelize_loops,
9918 tree_parallelize_loops, pass_data_parallelize_loops,
9919 make_pass_parallelize_loops): Move to other files.
9920 * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
9922 * tree.h: Remove prototypes from tree-address.c.
9924 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
9926 * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
9927 (struct int_tree_map): Move to tree-hasher.h
9928 (SCALE, LABEL, PERCENT): Move to gimple.h
9929 * tree-flow-inline.h: Delete. Move functions to other files.
9930 (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
9931 * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
9932 (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
9933 * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
9934 inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
9935 (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
9936 * tree-hasher.h: Don't include tree-flow.h.
9937 (struct int_tree_map): Relocate from tree-flow.h.
9938 * tree-sra.c (contains_view_convert_expr_p): Relocate from
9939 tree-flow-inline.h and make static.
9940 * tree-ssa-alias.h (ranges_overlap_p): Relocate from
9942 * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
9943 tree-flow-inline.h and make static.
9944 * tree.h (is_global_var, may_be_aliased): Relocate from
9946 * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
9947 * value-prof.c: No longer include tree-flow-inline.h.
9948 * tree-switch-conversion.c: No longer include tree-flow-inline.h.
9950 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
9952 * tree-flow.h: Move some protoypes. Include new tree-ssa-loop.h.
9953 (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
9954 (enum move_pos): Move to tree-ssa-loop-im.h
9955 * cfgloop.h: Move some prototypes.
9956 (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
9957 * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
9958 * tree-ssa-loop.h: New File. Include other tree-ssa-loop-*.h files.
9959 (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
9960 (loop_containing_stmt): Relocate from tree-flow-inline.h.
9961 * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
9962 * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
9963 (enum move_pos): Relocate here.
9964 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
9966 (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
9967 (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
9968 make_pass_lim): Relocate here from tree-ssa-loop.c.
9969 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
9971 (loop_edge_to_cancel, unloop_loops): Make static.
9972 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
9973 make_pass_iv_canon): Relocate from tree-ssa-loop.c.
9974 (tree_complete_unroll, gate_tree_complete_unroll,
9975 pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
9976 (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
9977 pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
9978 * tree-ssa-loop-ivopts.c: Remove local prototypes.
9979 (stmt_invariant_in_loop_p): Remove unused function.
9980 * tree-ssa-loop-ivopts.h: New file. Add prototypes.
9981 * tree-ssa-loop-manip.h: New file. Add prototypes.
9982 * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
9983 (gcov_type_to_double_int): Move to cfgloop.h.
9984 (double_int_cmp, bound_index,
9985 estimate_numbers_of_iterations_loop): Make static.
9986 (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
9987 (max_loop_iterations): Factor out get_max_loop_iterations.
9988 (estimated_loop_iterations_int, max_stmt_executions_int): Move to
9990 * tree-ssa-loop-niter.h: New file. Add prototypes.
9991 * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
9992 gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
9993 make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
9994 * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
9995 gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
9996 make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
9997 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
9998 pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
9999 (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
10000 pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
10001 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
10002 make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
10003 pass_data_complete_unroll, make_pass_complete_unroll,
10004 tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
10005 pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
10006 tree-ssa-loop-ivcanon.c.
10007 (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
10008 pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
10009 tree-ssa-loop-prefetch.c.
10010 (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
10011 tree-ssa-loop-im.c.
10012 (get_lsm_tmp_name): Relocate and add suffix parameter.
10013 (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
10014 * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
10015 * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
10016 max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
10017 (get_estimated_loop_iterations): Factor out accessor from
10018 estimated_loop_iterations in tree-ssa-loop-niter.c.
10019 (get_max_loop_iterations): Factor out accessor from
10020 _max_loop_iterations in tree-ssa-niter.c.
10021 * loop-unroll.c (decide_unroll_constant_iterations,
10022 decide_unroll_runtime_iterations, decide_peel_simple,
10023 decide_unroll_stupid): Use new get_* accessors.
10025 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
10027 PR tree-optimization/20318
10028 * doc/extend.texi (returns_nonnull): New function attribute.
10029 * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
10031 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
10032 (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
10034 2013-10-09 Eric Botcazou <ebotcazou@adacore.com>
10036 PR middle-end/58570
10037 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
10038 false if both components are bitfields.
10040 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
10042 * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
10043 (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
10044 (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
10045 * config/aarch64/aarch64.h
10046 (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
10047 * config/aarch64/aarch64-simd-builtins.def
10048 (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
10050 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
10052 * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
10054 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
10056 * config/aarch64/arm_neon.h (vdiv_f64): Added.
10058 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
10060 * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
10061 (vneg_f64): New intrinsic.
10062 (vneg_s8): Asm replaced with C.
10063 (vneg_s16): Likewise.
10064 (vneg_s32): Likewise.
10065 (vneg_s64): New intrinsic.
10066 (vnegq_f32): Asm replaced with C.
10067 (vnegq_f64): Likewise.
10068 (vnegq_s8): Likewise.
10069 (vnegq_s16): Likewise.
10070 (vnegq_s32): Likewise.
10071 (vnegq_s64): Likewise.
10073 2013-10-09 Renlin Li <Renlin.Li@arm.com>
10075 * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
10077 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10079 * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
10080 packed stack special handling.
10081 (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
10082 back to fixed stack slots for FPRs saved due to stdarg.
10084 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10086 * config/s390/s390.c (s390_frame_info): Restructure function.
10088 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10090 * config/s390/s390.c (struct s390_frame_layout): New field
10092 (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
10093 (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
10094 regs_ever_clobbered to char*.
10095 (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
10096 of cfun->has_nonlocal_label. Ignore frame related restore INSNs.
10097 (s390_register_info): Enable FPR save slots. Move/Copy some
10098 functionality into ...
10099 (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
10100 (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
10102 (s390_frame_info): Do gpr slot allocation here now. stdarg does
10103 not imply a stack frame.
10104 (s390_init_frame_layout): Remove variable clobbered_regs.
10105 (s390_update_register_info): Remove function.
10106 (s390_hard_regno_rename_ok): Call-saved regs without a save slot
10107 cannot be used for register renaming.
10108 (s390_hard_regno_scratch_ok): New function.
10109 (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
10110 (s390_initial_elimination_offset): Change offset calculation of
10111 the return address pointer.
10112 (save_gprs): Deal with only r6 being saved from the call-saved regs.
10113 (restore_gprs): Set frame related flag.
10114 (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
10115 (s390_emit_prologue): Call s390_register_info instead of
10116 s390_update_frame_layout. Call s390_save_gprs_to_fprs.
10117 (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
10118 (s390_optimize_prologue): Call s390_optimize_register_info.
10119 Try to remove also FPR slot save/restore INSNs. Remove frame
10120 related flags from restore INSNs.
10122 2013-10-08 DJ Delorie <dj@redhat.com>
10124 * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
10127 * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
10128 avoid conflict with the MI use of %c.
10129 * config/rl78/rl78-real.md: change %c to %C throughout.
10130 * config/rl78/rl78-virt.md: Likewise.
10132 2013-10-08 Jan Hubicka <jh@suse.cz>
10134 * config/i386/i386.c (ix86_option_override_internal): Switch
10135 to SSE math for -ffast-math when target ISA supports SSE2.
10137 2013-10-08 Andrew MacLeod <amacleod@redhat.com>
10139 * tree-flow.h: Remove some prototypes.
10140 * tree.h: Remove some protypes, add a couple.
10141 * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
10142 using_eh_for_cleanups_p): Add interface routines for front ends.
10143 * tree-eh.h: New file. Add protoptyes.
10144 * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
10145 (add_stmt_to_eh_lp_fn): Make static.
10146 (lower_try_finally): Use new using_eh_for_cleanups_p.
10147 * emit-rtl.c: Include tree-eh.h.
10148 * gimple.h: Include tree-eh.h.
10150 2013-10-08 Marc Glisse <marc.glisse@inria.fr>
10152 PR tree-optimization/58480
10153 * tree-vrp.c (infer_nonnull_range): New function.
10154 (infer_value_range): Call infer_nonnull_range.
10156 2013-10-08 Dehao Chen <dehao@google.com>
10158 PR tree-optimization/58619
10159 * tree-inline.c (copy_phis_for_bb): Combine location data
10162 2013-10-08 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10165 * config/arm/arm.c (arm_emit_ldrd_pop): Attach
10166 RTX_FRAME_RELATED_P on INSN.
10168 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10170 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
10171 (altivec_expand_vec_perm_const): Call it.
10173 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10175 * config/rs6000/vector.md (mov<mode>): Emit permuted move
10176 sequences for LE VSX loads and stores at expand time.
10177 * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
10179 * config/rs6000/rs6000.c (rs6000_const_vec): New.
10180 (rs6000_gen_le_vsx_permute): New.
10181 (rs6000_gen_le_vsx_load): New.
10182 (rs6000_gen_le_vsx_store): New.
10183 (rs6000_gen_le_vsx_move): New.
10184 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
10185 (*vsx_le_perm_load_v4si): New.
10186 (*vsx_le_perm_load_v8hi): New.
10187 (*vsx_le_perm_load_v16qi): New.
10188 (*vsx_le_perm_store_v2di): New.
10189 (*vsx_le_perm_store_v4si): New.
10190 (*vsx_le_perm_store_v8hi): New.
10191 (*vsx_le_perm_store_v16qi): New.
10192 (*vsx_xxpermdi2_le_<mode>): New.
10193 (*vsx_xxpermdi4_le_<mode>): New.
10194 (*vsx_xxpermdi8_le_V8HI): New.
10195 (*vsx_xxpermdi16_le_V16QI): New.
10196 (*vsx_lxvd2x2_le_<mode>): New.
10197 (*vsx_lxvd2x4_le_<mode>): New.
10198 (*vsx_lxvd2x8_le_V8HI): New.
10199 (*vsx_lxvd2x16_le_V16QI): New.
10200 (*vsx_stxvd2x2_le_<mode>): New.
10201 (*vsx_stxvd2x4_le_<mode>): New.
10202 (*vsx_stxvd2x8_le_V8HI): New.
10203 (*vsx_stxvd2x16_le_V16QI): New.
10205 2013-10-07 Renlin Li <Renlin.Li@arm.com>
10207 * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
10209 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10211 * config/s390/s390.c (s390_register_info): Make the call-saved FPR
10212 loop to work also for 31bit ABI.
10213 Save the stack pointer for frame_size > 0.
10215 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10217 * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
10218 ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
10219 constraint letters from expanders.
10220 ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
10221 retry count to general_operand.
10222 ("tabort"): Give operand 0 a mode.
10223 ("tabort_1"): Add mode and constraint letter for operand 0.
10224 * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
10226 2013-10-04 Jeff Law <law@redhat.com>
10228 * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
10230 * tree-ssa-threadedge.c (thread_through_normal_block): Broken
10232 (thread_across_edge): Here. Call it.
10234 2013-10-04 Cary Coutant <ccoutant@google.com>
10236 * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
10237 discarding a location list expression (or a piece of one).
10239 2013-10-03 Jan Hubicka <jh@suse.cz>
10241 * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
10242 rate of 2. Core2, Corei7 and Haswell has issue rate of 4.
10243 (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
10245 2013-10-03 Jan Hubicka <jh@suse.cz>
10247 * config/i386/i386.c (ix86_option_override_internal): Do not enable
10248 accumulate-outgoing-args when producing unwind info.
10250 2013-10-03 Wei Mi <wmi@google.com>
10252 * lra-constraints.c (insert_move_for_subreg): New function
10253 extracted from simplify_operand_subreg.
10254 (simplify_operand_subreg): Add reload for paradoxical subreg.
10256 2013-10-03 Rong Xu <xur@google.com>
10258 * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
10259 the candidate of builtin_expect such that we should fix the
10260 size/time estimation.
10261 (estimate_function_body_sizes): Do the acutally size/time fix-up
10262 for builtin_expect.
10264 2013-10-03 Rong Xu <xur@google.com>
10266 * predict.c (tree_predict_by_opcode): Get the probability
10267 for builtin_expect from param builtin_expect_probability.
10268 * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
10269 * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
10270 * doc/invoke.texi: Add documentation for builtin-expect-probability.
10272 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
10275 * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
10276 * calls.c (alloca_call_p): Use get_callee_fndecl.
10277 * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
10278 * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
10280 (vrp_visit_stmt): Remove duplicated code.
10282 2013-10-03 Michael Meissner <meissner@linux.vnet.ibm.com>
10284 * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
10285 ceildf2, btruncdf2, instead of vsx_* name.
10287 * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
10288 iterators to only do V2DF and V4SF here. Move the DF code to
10289 rs6000.md where it is combined with SF mode. Replace <VSv> with
10290 just 'v' since only vector operations are handled with these insns
10291 after moving the DF support to rs6000.md.
10292 (vsx_sub<mode>3): Likewise.
10293 (vsx_mul<mode>3): Likewise.
10294 (vsx_div<mode>3): Likewise.
10295 (vsx_fre<mode>2): Likewise.
10296 (vsx_neg<mode>2): Likewise.
10297 (vsx_abs<mode>2): Likewise.
10298 (vsx_nabs<mode>2): Likewise.
10299 (vsx_smax<mode>3): Likewise.
10300 (vsx_smin<mode>3): Likewise.
10301 (vsx_sqrt<mode>2): Likewise.
10302 (vsx_rsqrte<mode>2): Likewise.
10303 (vsx_fms<mode>4): Likewise.
10304 (vsx_nfma<mode>4): Likewise.
10305 (vsx_copysign<mode>3): Likewise.
10306 (vsx_btrunc<mode>2): Likewise.
10307 (vsx_floor<mode>2): Likewise.
10308 (vsx_ceil<mode>2): Likewise.
10309 (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
10310 (vsx_sminsf3): Likewise.
10311 (vsx_fmadf4): Likewise.
10312 (vsx_fmsdf4): Likewise.
10313 (vsx_nfmadf4): Likewise.
10314 (vsx_nfmsdf4): Likewise.
10315 (vsx_cmpdf_internal1): Likewise.
10317 * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
10318 simpler to select whether a target has SPE or traditional floating
10319 point support in iterators.
10320 (TARGET_DF_SPE): Likewise.
10321 (TARGET_SF_FPR): Likewise.
10322 (TARGET_DF_FPR): Likewise.
10323 (TARGET_SF_INSN): Macros to say whether floating point support
10324 exists for a given operation for expanders.
10325 (TARGET_DF_INSN): Likewise.
10327 * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
10328 combining of SF/DF mode operations, using both traditional and VSX
10336 (abs<mode>2): Combine SF/DF modes using traditional floating point
10337 instructions. Add support for using the upper DF registers with
10338 VSX support, and SF registers with power8-vector support. Update
10339 expanders for operations supported by both the SPE and traditional
10340 floating point units.
10341 (abs<mode>2_fpr): Likewise.
10342 (nabs<mode>2): Likewise.
10343 (nabs<mode>2_fpr): Likewise.
10344 (neg<mode>2): Likewise.
10345 (neg<mode>2_fpr): Likewise.
10346 (add<mode>3): Likewise.
10347 (add<mode>3_fpr): Likewise.
10348 (sub<mode>3): Likewise.
10349 (sub<mode>3_fpr): Likewise.
10350 (mul<mode>3): Likewise.
10351 (mul<mode>3_fpr): Likewise.
10352 (div<mode>3): Likewise.
10353 (div<mode>3_fpr): Likewise.
10354 (sqrt<mode>3): Likewise.
10355 (sqrt<mode>3_fpr): Likewise.
10356 (fre<Fs>): Likewise.
10357 (rsqrt<mode>2): Likewise.
10358 (cmp<mode>_fpr): Likewise.
10359 (smax<mode>3): Likewise.
10360 (smin<mode>3): Likewise.
10361 (smax<mode>3_vsx): Likewise.
10362 (smin<mode>3_vsx): Likewise.
10363 (negsf2): Delete SF operations that are merged with DF.
10364 (abssf2): Likewise.
10365 (addsf3): Likewise.
10366 (subsf3): Likewise.
10367 (mulsf3): Likewise.
10368 (divsf3): Likewise.
10370 (fmasf4_fpr): Likewise.
10371 (fmssf4_fpr): Likewise.
10372 (nfmasf4_fpr): Likewise.
10373 (nfmssf4_fpr): Likewise.
10374 (sqrtsf2): Likewise.
10375 (rsqrtsf_internal1): Likewise.
10376 (smaxsf3): Likewise.
10377 (sminsf3): Likewise.
10378 (cmpsf_internal1): Likewise.
10379 (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
10380 (negdf2): Delete DF operations that are merged with SF.
10381 (absdf2): Likewise.
10382 (nabsdf2): Likewise.
10383 (adddf3): Likewise.
10384 (subdf3): Likewise.
10385 (muldf3): Likewise.
10386 (divdf3): Likewise.
10388 (rsqrtdf_internal1): Likewise.
10389 (fmadf4_fpr): Likewise.
10390 (fmsdf4_fpr): Likewise.
10391 (nfmadf4_fpr): Likewise.
10392 (nfmsdf4_fpr): Likewise.
10393 (sqrtdf2): Likewise.
10394 (smaxdf3): Likewise.
10395 (smindf3): Likewise.
10396 (cmpdf_internal1): Likewise.
10397 (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
10398 (btrunc<mode>2): Delete separate expander, and combine with the
10399 insn and add VSX instruction support. Use TARGET_<MODE>_FPR.
10400 (btrunc<mode>2_fpr): Likewise.
10401 (ceil<mode>2): Likewise.
10402 (ceil<mode>2_fpr): Likewise.
10403 (floor<mode>2): Likewise.
10404 (floor<mode>2_fpr): Likewise.
10405 (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
10406 Add support for using the upper registers with VSX and
10407 power8-vector. Move insns to be closer to the define_expands. On
10408 VSX systems, prefer the traditional form of FMA over the VSX
10409 version, since the traditional form allows the target not to
10410 overlap with the inputs.
10411 (fms<mode>4_fpr): Likewise.
10412 (nfma<mode>4_fpr): Likewise.
10413 (nfms<mode>4_fpr): Likewise.
10415 2013-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10416 Richard Earnshaw <richard.earnshaw@arm.com>
10418 * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
10419 (struct mult_cost_table): Likewise.
10420 (struct mem_cost_table): Likewise.
10421 (struct fp_cost_table): Likewise.
10422 (struct vector_cost_table): Likewise.
10423 (cpu_cost_table): Likewise.
10424 * config/arm/arm.opt (mold-rts-costs): New option.
10425 (mnew-generic-costs): Likewise.
10426 * config/arm/arm.c (generic_extra_costs): New table.
10427 (cortexa15_extra_costs): Likewise.
10428 (arm_slowmul_tune): Use NULL as new costs.
10429 (arm_fastmul_tune): Likewise.
10430 (arm_strongarm_tune): Likewise.
10431 (arm_xscale_tune): Likewise.
10432 (arm_9e_tune): Likewise.
10433 (arm_v6t2_tune): Likewise.
10434 (arm_cortex_a5_tune): Likewise.
10435 (arm_cortex_a9_tune): Likewise.
10436 (arm_v6m_tune): Likewise.
10437 (arm_fa726te_tune): Likewise.
10438 (arm_cortex_a15_tune): Use cortex15_extra_costs.
10439 (arm_cortex_tune): Use generict_extra_costs.
10440 (shifter_op_p): New function.
10441 (arm_unspec_cost): Likewise.
10442 (LIBCALL_COST): Define.
10443 (arm_new_rtx_costs): New function.
10444 (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
10445 table is available. Use old costs otherwise unless mnew-generic-costs
10447 * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
10448 (cpu_cost_table): Declare.
10450 2013-10-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
10453 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
10454 (*subs_mul_imm_<mode>)
10455 (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
10456 (*sub_<shift>_<mode>)
10457 (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
10458 Remove k constraint.
10460 2013-10-03 Ian Bolton <ian.bolton@arm.com>
10462 * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
10464 * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
10466 2013-10-02 Teresa Johnson <tejohnson@google.com>
10468 * predict.c (probably_never_executed): New function.
10469 (probably_never_executed_bb_p): Invoke probably_never_executed.
10470 (probably_never_executed_edge_p): Ditto.
10471 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
10472 Treat profile insanities conservatively.
10474 2013-10-02 John David Anglin <danglin@gcc.gnu.org>
10476 * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
10478 2013-10-02 Vladimir Makarov <vmakarov@redhat.com>
10480 * lra-constraints.c (process_alt_operand): Calculate scratch_p and
10481 use it. Use smaller increase for scratch. Don't increase reject
10482 for early clobber scratch.
10483 * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
10484 setting eliminated regs except setting fp from hfp.
10485 (lra_eliminate): Check lra_insn_recog_data on NULL.
10487 2013-10-02 Michael Meissner <meissner@linux.vnet.ibm.com>
10490 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
10491 setting -mvsx-timode by default until the underlying problem is fixed.
10492 (RS6000_CPU, power7 defaults): Likewise.
10494 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
10496 * config/x-linux (host-linux.o): Remove header dependencies.
10497 Use $(COMPILE) and $(POSTCOMPILE).
10498 * config/t-linux-android (linux-android.o): Ditto.
10500 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
10502 * Makefile.in (expmed.o-warn): Remove.
10504 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
10506 * graphite-scop-detection.c: Include tree-ssa-propagate,h.
10507 * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
10509 2013-10-02 Teresa Johnson <tejohnson@google.com>
10511 * dojump.c (do_jump_1): Divide probability between
10512 both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
10514 2013-10-02 Tom Tromey <tromey@redhat.com>
10516 * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
10518 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
10520 * tree-flow.h: Remove some prototypes.
10521 * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
10522 mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
10523 * tree-into-ssa.c (mark_virtual_operand_for_renaming,
10524 mark_virtual_phi_result_for_renaming): Relocate here.
10525 * tree-into-ssa.h: Add prototypes.
10526 * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
10527 single_pred_before_succ_order.
10528 (blocks_in_phiopt_order): Rename and move to cfganal.c.
10529 (nonfreeing_call_p) Move to gimple.c.
10530 * cfganal.c (single_pred_before_succ_order): Move and renamed from
10532 * basic-block.h (single_pred_before_succ_order): Add prototype.
10533 * gimple.c (nonfreeing_call_p): Relocate here.
10534 * gimple.h: Add prototype.
10535 * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
10536 * tree-ssa-dom.h: New file. Relocate prototypes here.
10537 * tree-ssa.h: Include tree-ssa-dom.h.
10539 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
10541 * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
10542 Use $(COMPILE) and $(POSTCOMPILE).
10544 * config/alpha/x-alpha (driver-alpha.o): Ditto.
10546 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
10548 * tree-flow.h: Remove some prototypes.
10549 * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
10550 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
10551 * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
10552 propagate_tree_value*): Move from here to...
10553 * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
10554 propagate_tree_value*): Relocate here.
10555 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
10556 * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
10557 * gimple-fold.c: Remove gimple-fold.h from include list.
10558 * tree-vrp.c: Remove gimple-fold.h from include list.
10559 * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
10560 * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
10561 * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
10562 * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
10563 * sese.c: Add tree-ssa-propagate.h to include list.
10565 2013-10-02 Richard Biener <rguenther@suse.de>
10567 * tree-loop-distribution.c: Include tree-vectorizer.h for
10568 find_loop_location.
10569 (enum partition_kind): Remove PKIND_REDUCTION.
10570 (struct partition_s): Remove has_writes member, add reduction_p member.
10571 (partition_alloc): Adjust.
10572 (partition_builtin_p): Likewise.
10573 (partition_has_writes): Remove.
10574 (partition_reduction_p): New function.
10575 (partition_merge_into): Likewise.
10576 (generate_code_for_partition): Commonize builtin partition
10578 (rdg_cannot_recompute_vertex_p): Remove.
10579 (already_processed_vertex_p): Likewise.
10580 (rdg_flag_vertex): Do not set has_writes.
10581 (classify_partition): Adjust.
10582 (rdg_build_partitions): Do not set has_writes, treat all
10583 partitions as useful.
10584 (distribute_loop): Record number of library calls generated. Adjust.
10585 (tree_loop_distribution): Report number of loops and library
10586 calls generated as opt-info.
10588 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
10590 * tree-flow.h: Include new .h files. Move prototypes.
10591 * tree-cfgcleanup.h: New file. Add prototypes from tree-flow.h.
10592 * tree-dfa.h: New File. Add prototypes from tree-flow.h.
10593 (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
10594 * tree-pretty-print.h: Add prototypes from tree-flow.h.
10595 * tree-into-ssa.h: New File. Add prototypes from tree-flow.h.
10596 ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
10597 * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
10598 * tree.h (get_ref_base_and_extent): Move prototype out.
10599 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
10601 * gimple-low.h: New File. Add prototypes from tree-flow.h.
10602 * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
10603 * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
10604 * tree-scalar-evolution.c: Include tree.h.
10605 * sese.c: Include tree.h.
10606 * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
10607 * dwarf2out.c: Include tree-dfa.h.
10608 * tree-chrec.c: Include tree.h.
10609 * tree-data-ref.c: Include tree.h.
10611 2013-10-02 Yufeng Zhang <yufeng.zhang@arm.com>
10613 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
10616 2013-10-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10618 * config/t-sol2 (sol2-c.o): Remove header dependencies.
10619 Use $(COMPILE) and $(POSTCOMPILE).
10620 (sol2-cxx.o): Likewise.
10621 (sol2-stubs.o): Likewise.
10622 (sol2.o): Likewise.
10623 * config/x-solaris (host-solaris.o): Likewise.
10625 * config/sparc/t-sparc (sparc.o): Remove.
10626 (sparc-c.o): Remove header dependencies.
10627 Use $(COMPILE) and $(POSTCOMPILE).
10628 * config/sparc/x-sparc: Likewise.
10630 2013-10-02 Joern Rennecke <joern.rennecke@embecosm.com>
10632 * config/arc/arc-opts.h: Add 2013 to Copyright years.
10633 * config/arc/arc700.md: Likewise.
10634 * config/arc/arc-modes.def: Likewise.
10635 * config/arc/arc-simd.h: Likewise.
10636 * config/arc/t-arc-uClibc: Likewise.
10637 * config/arc/t-arc-newlib: Likewise.
10639 2013-10-02 Renlin Li <renlin.li@arm.com>
10641 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
10643 (aarch64_expand_epilogue): Likewise.
10645 2013-10-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10646 Yufeng Zhang <yufeng.zhang@arm.com>
10648 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
10650 (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
10651 'base_in' represent a conversion and legal_cast_p_1 holds; set
10652 'base_in' with the returned value from get_unwidened.
10654 2013-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10656 * config/arm/arm.c (arm_legitimize_reload_address): Explain why
10657 plus_constant is not used.
10659 2013-10-01 Wei Mi <wmi@google.com>
10661 * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
10662 * config/i386/i386.md: Add define_peephole2 to
10663 break partial reg stall for cvtss2sd/cvtsd2ss.
10665 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
10667 * config/arc/arc.c (pass_arc_ifcvt::clone):
10668 Update for ctxt_ -> m_ctxt change.
10670 2013-10-01 Jeff Law <law@redhat.com>
10672 * tree-ssa-threadupdate.c (struct redirection_data): Delete
10673 outgoing_edge and intermediate_edge fields. Instead store the path.
10674 (redirection_data::hash): Hash on the last edge's destination index.
10675 (redirection_data::equal): Check the entire thread path.
10676 (lookup_redirectio_data): Corresponding changes.
10677 (create_edge_and_update_destination_phis): Likewise.
10678 (thread_single_edge): Likewise.
10680 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
10681 Diego Novillo <dnovillo@google.com>
10683 * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
10684 (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
10685 (vld32wh_insn, vld32wl_insn): Delete commented-out old
10686 versions of these patterns.
10688 * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
10689 (__builtin_arc_aligned): Likewise.
10691 * config/arc/arc.md: Expand adc_0 comment stating the intended
10692 purpose and why it isn't ready.
10693 Replace commented out call_value_via_label_mixed with a
10694 plain comment about bl_s.
10696 * config/arc/arc.c (stdio.h): Don't include directly.
10697 (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
10698 Remove if (1) condition.
10699 (arc_encode_section_info): Fix comment.
10701 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
10703 * config/arc/arc.c (arc_conditional_register_usage):
10704 Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
10705 Also set reg_alloc_order for DMA config regs.
10707 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
10708 Jeremy Bennett <jeremy.bennett@embecosm.com>
10710 * doc/install.texi (--with-cpu): Mention ARC.
10711 (arc-*-elf32): New paragraph.
10712 (arc-linux-uclibc): Likewise.
10713 * doc/md.texi (Machine Constraints): Add ARC part.
10714 * doc/invoke.texi: (menu): Add ARC Options.
10715 (Machine Dependent Options) <ARC Options>: Add synopsis.
10716 (node ARC Options): Add.
10717 * doc/extend.texi (long_call / short_call attribute): Add ARC.
10718 (ARC Built-in Functions): New section defining
10719 generic ARC built-in functions.
10720 (ARC SIMD Built-in Functions): New section defining SIMD specific
10721 built-in functions.
10722 (Declaring Attributes of Functions): Extended
10723 description of short_call and long_call attributes for ARC and
10724 added index entries.
10726 2013-10-01 Saurabh Verma <saurabh.verma@codito.com>
10727 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
10728 Joern Rennecke <joern.rennecke@embecosm.com>
10729 Muhammad Khurram Riaz <khurram.riaz@arc.com>
10730 Brendan Kehoe <brendan@zen.org>
10731 Michael Eager <eager@eagercon.com>
10732 Simon Cook <simon.cook@embecosm.com>
10733 Jeremy Bennett <jeremy.bennett@embecosm.com>
10735 * config/arc, common/config/arc: New directories.
10737 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
10738 Brendan Kehoe <brendan@zen.org>
10739 Simon Cook <simon.cook@embecosm.com>
10741 * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
10743 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
10745 * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
10746 * tree-ssa-coalesce.h: New. Move prototype to here.
10747 * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
10748 * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
10749 (gimple_can_coalesce_p): Move to...
10750 * gimple.c (gimple_can_coalesce_p): Here.
10752 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
10754 * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
10755 (dump_decl_set): Move to gimple.c.
10756 * gimple.h: Don't include tree-ssa-operands.h.
10757 (dump_decl_set): Add prototype.
10758 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
10759 Move to gimple-ssa.h.
10760 (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
10761 gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
10762 gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
10763 gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
10764 * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
10766 (dump_decl_set): Relocate here.
10767 * gimple-ssa.h: New file.
10768 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
10769 Relocate from gimple.h.
10770 * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
10771 * tree-ssa-operands.c (swap_ssa_operands): Rename from
10772 swap_tree_operands and remove non-ssa path.
10773 (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
10774 * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
10776 * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
10777 vect_is_simple_reduction_1): Use swap_ssa_operands.
10778 * tree-flow.h: Move various prototypes to tree-phinodes.h.
10779 (enum need_phi_state): Move to tree-into-ssa.c.
10780 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
10781 BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
10782 (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
10783 * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
10784 link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
10785 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
10786 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
10787 num_imm_uses): Move to ssa-iterators.h.
10788 (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
10789 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
10791 (op_iter_done, op_iter_next_def, op_iter_next_tree,
10792 clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
10793 op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
10794 single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
10795 num_ssa_operands, delink_stmt_imm_use, single_phi_def,
10796 op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
10797 end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
10798 first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
10799 end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
10800 (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
10801 gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
10802 gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
10803 phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
10804 (set_phi_nodes): Move to tree-phinodes.h.
10805 * tree-ssa-operands.h (enum ssa_op_iter_type,
10806 struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
10807 ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
10808 (dump_decl_set): Remove prototype.
10809 (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
10810 * tree-phinodes.h: New file. Move some prototypes from tree-flow.h.
10811 (set_phi_nodes): Relocate from tree-flow-inline.h.
10812 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
10814 * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
10815 include list. Temporarily add gimple.h to include list.
10816 * ssa-iterators.h: New file.
10817 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
10818 BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
10819 (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
10820 FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
10821 Relocate from tree-ssa-operands.h.
10822 (delink_imm_use, link_imm_use_to_list, link_imm_use,
10823 set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
10824 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
10825 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
10826 num_imm_uses, get_use_from_ptr, get_def_from_ptr,
10827 phi_arg_index_from_use, op_iter_done, op_iter_next_def,
10828 op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
10829 op_iter_init_use, op_iter_init_def, op_iter_init_tree,
10830 single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
10831 zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
10832 single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
10833 end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
10834 link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
10835 first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
10836 Relocate from tree-flow-inline.h.
10837 * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
10839 2013-10-01 Vidya Praveen <vidyapraveen@arm.com>
10842 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
10843 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
10844 Insert '\t' to output template.
10845 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
10846 (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
10847 gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
10848 (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
10850 2013-10-01 Uros Bizjak <ubizjak@gmail.com>
10852 * doc/install.texi (Host/target specific installation notes for GCC):
10853 Put @anchor before @heading.
10854 * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
10855 Use @email for email addresses.
10857 2013-10-01 Jeff Law <law@redhat.com>
10859 * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
10860 a vec. Only delete the path if we create one without successfully
10861 registering a jump thread.
10862 * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
10864 * tree-ssa-threadupdate.c (threaded_edges): Remove. No longer used
10865 (paths): New vector of jump threading paths.
10866 (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
10867 (THREAD_PATH): New accessor macro for the entire thread path.
10868 (lookup_redirection_data): Get intermediate and final outgoing edge
10869 from the thread path.
10870 (create_edge_and_update_destination_phis): Copy the threading path.
10871 (ssa_fix_duplicate_block_edges): Get edges and block types from the
10872 jump threading path.
10873 (ssa_redirect_edges): Get edges and block types from the jump threading
10874 path. Free the path vector.
10875 (thread_block): Get edges from the jump threading path. Look at the
10876 entire path to see if we thread to a loop exit. If we cancel a jump
10877 thread request, then free the path vector.
10878 (thread_single_edge): Get edges and block types from the jump threading
10879 path. Free the path vector.
10880 (thread_through_loop_header): Get edges and block types from the jump
10881 threading path. Free the path vector.
10882 (mark_threaded_blocks): Iterate over the vector of paths and store
10883 the path on the appropriate edge. Get edges and block types from the
10884 jump threading path.
10885 (mark_threaded_blocks): Get edges and block types from the jump
10886 threading path. Free the path vector.
10887 (thread_through_all_blocks): Use the vector of paths rather than
10888 a vector of 3-edge sets.
10889 (register_jump_thread): Accept pointer to a path vector rather
10890 than the path vector itself. Store the path vector for later use.
10893 2013-10-01 Jakub Jelinek <jakub@redhat.com>
10894 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10897 * config/s390/s390.c (s390_split_branches): Modify check for table
10899 (s390_chunkify_start): Rearrange table jump insn check in order to
10900 deal with compare and branch insns correctly.
10902 2013-10-01 Kugan Vivekanandarajah <kuganv@linaro.org>
10906 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
10907 * config/arm/arm.md (arm_ashldi3_1bit): define_insn into
10908 define_insn_and_split.
10909 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
10910 (shiftsi3_compare): New pattern.
10911 (rrx): New pattern.
10912 * config/arm/unspecs.md (UNSPEC_RRX): New.
10914 2013-10-01 Alan Modra <amodra@gmail.com>
10916 * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
10917 casing inout operands.
10919 2013-10-01 Richard Biener <rguenther@suse.de>
10921 PR tree-optimization/58553
10922 * tree-loop-distribution.c (struct partition_s): Add niter member.
10923 (classify_partition): Populate niter member for the partition
10924 and properly identify whether the relevant store happens before
10925 or after the loop exit.
10926 (generate_memset_builtin): Use niter member from the partition.
10927 (generate_memcpy_builtin): Likewise.
10929 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
10931 * vec.h (vec_prefix, vec): Prefix member names with "m_".
10932 * vec.c (vec_prefix::calculate_allocation): Update accordingly.
10934 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
10936 * basic-block.h (edge_list): Prefix member names with "m_".
10937 * context.h (context): Likewise.
10938 * domwalk.h (dom_walker): Likewise.
10939 * gengtype-state.c (s_expr_writer, state_writer): Likewise.
10940 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
10941 * hash-table.h (hash_table): Likewise.
10942 * machmode.h (bit_field_mode_iterator): Likewise.
10943 * pass_manager.h (pass_list): Likewise.
10944 * tree-into-ssa.c (mark_def_dom_walker): Likewise.
10945 * tree-pass.h (pass_data): Likewise.
10946 * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
10947 * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
10948 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
10949 * asan.c (pass_data_asan): Update accordingly.
10950 * cfganal.c (control_dependences::find_control_dependence): Likewise.
10951 (control_dependences::control_dependences): Likewise.
10952 (control_dependences::~control_dependences): Likewise.
10953 (control_dependences::~control_dependences): Likewise.
10954 (control_dependences::get_edges_dependent_on): Likewise.
10955 * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
10956 (pass_data_remove_cgraph_callee_edges::clone): Likewise.
10957 * context.c (gcc::context::context): Likewise.
10958 * cprop.c (pass_rtl_cprop::clone): Likewise.
10959 * domwalk.c (dom_walker::walk): Likewise.
10960 * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
10961 * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
10962 * mode-switching.c (pass_mode_switching::clone): Likewise.
10963 * passes.c (opt_pass::opt_pass): Likewise.
10964 (pass_manager::pass_manager): Likewise.
10965 * predict.c (pass_strip_predict_hints::clone): Likewise.
10966 * recog.c (pass_data pass_data_peephole2::clone): Likewise.
10967 (pass_split_all_insns::clone): Likewise.
10968 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
10970 (bit_field_mode_iterator::next_mode): Likewise.
10971 (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
10972 * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
10973 * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
10974 * tree-complex.c (pass_lower_complex::clone): Likewise.
10975 * tree-eh.c (pass_cleanup_eh::clone): Likewise.
10976 * tree-object-size.c (pass_object_sizes::clone): Likewise.
10977 * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
10978 * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
10979 (pass_fold_builtins::clone): Likewise.
10980 * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
10981 * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
10982 * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
10983 (pass_cd_dce::clone): Likewise.
10984 * tree-ssa-dom.c (pass_dominator::clone): Likewise.
10985 (pass_phi_only_cprop::clone): Likewise.
10986 * tree-ssa-dse.c (pass_dse::clone): Likewise.
10987 * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
10988 * tree-ssa-loop.c (pass_lim::clone): Likewise.
10989 * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
10990 * tree-ssa-pre.c (pass_fre::clone): Likewise.
10991 * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
10992 * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
10993 * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
10994 * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
10995 * tree-vrp.c (pass_vrp::clone): Likewise.
10996 * tsan.c (pass_tsan::clone): Likewise.
10998 2013-09-30 Jakub Jelinek <jakub@redhat.com>
11000 PR middle-end/58564
11001 * fold-const.c (tree_unary_nonnegative_warnv_p): Use
11002 INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
11004 PR middle-end/58564
11005 * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
11006 optimization, punt if sign_bit_p looked through any zero extension.
11008 2013-09-30 Teresa Johnson <tejohnson@google.com>
11010 * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
11011 Update redirected out edge count in joiner case.
11012 (ssa_redirect_edges): Common the joiner and non-joiner cases
11013 so that joiner case gets profile updates.
11015 2013-09-30 Richard Biener <rguenther@suse.de>
11017 PR tree-optimization/58554
11018 * tree-loop-distribution.c (classify_partition): Require
11019 unconditionally executed stores for memcpy and memset recognition.
11020 (tree_loop_distribution): Calculate dominance info.
11022 2013-09-30 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
11024 * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
11025 (NO_PROFILE_COUNTERS): Likewise.
11026 (PROFILE_HOOK): Likewise.
11027 (FUNCTION_PROFILER): Likewise.
11028 * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
11030 2013-09-30 Iain Sandoe <iain@codesourcery.com>
11032 * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
11033 calls and defines in TARGET_MACHO conditional.
11034 (load_macho_picbase_di): Likewise.
11035 (reload_macho_picbase): Likewise.
11036 (reload_macho_picbase_si): Likewise.
11037 (reload_macho_picbase_di): Likewise.
11038 (nonlocal_goto_receiver): Likewise.
11040 2013-09-30 Nick Clifton <nickc@redhat.com>
11042 * config/msp430/msp430.c (msp430x_names): New array. Lists MCUs
11043 that use the MSP430X ISA.
11044 (msp430_option_override): Scan -mmcu command line option for any
11045 MCU name that supports the MSP430X ISA.
11046 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
11047 -mmcu options which enable the MSP430X ISA.
11049 2013-09-30 Richard Biener <rguenther@suse.de>
11051 PR middle-end/58532
11052 * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
11053 before looking for setjmp-like calls.
11055 2013-09-29 Iain Sandoe <iain@codesourcery.com>
11058 * config/darwin-protos.h (machopic_get_function_picbase): New.
11059 * config/darwin.c (machopic_get_function_picbase): New.
11060 * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
11061 label for a new func. (load_macho_picbase_di): Likewise.
11062 (reload_macho_picbase): New expand.
11063 (reload_macho_picbase_si): New insn.
11064 (reload_macho_picbase_di): New insn.
11065 (nonlocal_goto_receiver): New define and split.
11066 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
11067 (unspecv enum): Add UNSPECV_NLGR.
11069 2013-09-29 Iain Sandoe <iain@codesourcery.com>
11071 * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
11072 that altivec registers are correctly sized on Darwin.
11074 2013-09-29 Iain Sandoe <iain@codesourcery.com>
11076 * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
11077 darwin-driver.o): Use COMPILE and POSTCOMPILE.
11078 * config/x-darwin (host-darwin.o): Likewise.
11079 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
11080 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
11081 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
11083 2013-09-29 Uros Bizjak <ubizjak@gmail.com>
11085 * doc/invoke.texi: Fix usage of @tie{} command.
11087 2013-09-29 Eric Botcazou <ebotcazou@adacore.com>
11089 * config/sparc/sync.md: Add peephole for consecutive memory barriers.
11091 2013-09-28 Jan Hubicka <jh@suse.cz>
11093 * config/i386/x86-tune.def: Add documentation for each of the options;
11096 2013-09-28 Jan Hubicka <jh@suse.cz>
11098 * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
11100 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
11101 (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
11102 (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
11103 (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
11104 (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
11106 2013-09-28 Richard Sandiford <rdsandiford@googlemail.com>
11108 * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
11109 bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
11110 cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
11111 cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
11112 combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
11113 cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
11114 df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
11115 dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
11116 errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
11117 fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
11118 gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
11119 genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
11120 genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
11121 genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
11122 gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
11123 gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
11124 gimple.h, godump.c, graphite-clast-to-gimple.c,
11125 graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
11126 graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
11127 hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
11128 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
11129 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
11130 ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
11131 loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
11132 lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
11133 mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
11134 pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
11135 predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
11136 profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
11137 regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
11138 reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
11139 sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
11140 statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
11141 system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
11142 tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
11143 tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
11144 tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
11145 tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
11146 tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
11147 tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
11148 tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
11149 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
11150 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
11151 tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
11152 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
11153 tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
11154 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
11155 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
11156 tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
11157 tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
11158 tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
11159 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
11160 tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
11161 tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
11162 varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
11163 whitespace before "(".
11165 2013-09-28 Sandra Loosemore <sandra@codesourcery.com>
11167 * expr.h (extract_bit_field): Remove packedp parameter.
11168 * expmed.c (extract_fixed_bit_field): Remove packedp parameter
11169 from forward declaration.
11170 (store_split_bit_field): Remove packedp arg from calls to
11171 extract_fixed_bit_field.
11172 (extract_bit_field_1): Remove packedp parameter and packedp
11173 argument from recursive calls and calls to extract_fixed_bit_field.
11174 (extract_bit_field): Remove packedp parameter and corresponding
11175 arg to extract_bit_field_1.
11176 (extract_fixed_bit_field): Remove packedp parameter. Remove code
11178 (extract_split_bit_field): Remove packedp arg from call to
11179 extract_fixed_bit_field.
11180 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
11181 (copy_blkmode_from_reg): Likewise.
11182 (copy_blkmode_to_reg): Likewise.
11183 (read_complex_part): Likewise.
11184 (store_field): Likewise.
11185 (expand_expr_real_1): Likewise.
11186 * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
11187 to extract_bit_field.
11188 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
11189 call to extract_bit_field.
11190 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
11191 call to extract_bit_field.
11192 * doc/invoke.texi (Code Gen Options): Remove mention of warnings
11193 and special packedp behavior from -fstrict-volatile-bitfields
11196 2013-09-27 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11198 * lra-eliminations.c (init_elim_table): Guard value_p.
11200 2013-09-27 Michael Meissner <meissner@linux.vnet.ibm.com>
11202 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
11203 DFmode, DImode, and SFmode in the upper VSX registers based on the
11204 -mupper-regs-{df,sf} flags. Fix wu constraint to be ALTIVEC_REGS
11205 if -mpower8-vector. Combine -mvsx-timode handling with the rest
11206 of the VSX register handling.
11208 * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
11209 (f32_sv): Likewise.
11210 (zero_extendsidi2_lfiwzx): Add support for loading into the
11211 Altivec registers with -mpower8-vector. Use wu/wv constraints to
11212 only do VSX memory options on Altivec registers.
11213 (extendsidi2_lfiwax): Likewise.
11214 (extendsfdf2_fpr): Likewise.
11215 (mov<mode>_hardfloat, SF/SD modes): Likewise.
11216 (mov<mode>_hardfloat32, DF/DD modes): Likewise.
11217 (mov<mode>_hardfloat64, DF/DD modes): Likewise.
11218 (movdi_internal64): Likewise.
11220 2013-09-27 Xinliang David Li <davidxl@google.com>
11222 * opts.c (finish_options): Adjust parameters
11223 according to vect cost model.
11224 (common_handle_option): Set dynamic vect cost
11226 targhooks.c (default_add_stmt_cost): Compute stmt cost
11228 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
11229 Use helper function.
11230 * tree-vectorizer.h (unlimited_cost_model): New function.
11231 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
11232 * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
11234 (vect_enhance_data_refs_alignment): Ditto.
11235 * flag-types.h: New enum.
11236 * common/config/i386/i386-common.c (ix86_option_init_struct):
11237 No need to initialize vect_cost_model flag.
11238 * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
11241 2013-09-27 Diego Novillo <dnovillo@google.com>
11243 * gimple.h (enum ssa_mode): Remove.
11245 2013-09-27 Paulo Matos <pmatos@broadcom.com>
11247 * cfgloop.h (number_of_loops): Fix typo in check for null.
11249 2013-09-27 Jakub Jelinek <jakub@redhat.com>
11251 PR middle-end/58551
11252 * tree-cfg.c (move_sese_region_to_fn): Also move loops that
11253 are children of outermost saved_cfun's loop, and set it up to
11254 be moved to dest_cfun's outermost loop. Fix up num_nodes adjustments
11255 if loop != loop0 and SESE region contains bbs that belong to loop0.
11257 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
11259 * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
11260 (binary_scale_code_p, get_base_term, get_index_term): New functions.
11261 (set_address_segment, set_address_base, set_address_index)
11262 (set_address_disp): Accept the argument unconditionally.
11263 (baseness): Remove must_be_base_p and must_be_index_p checks.
11264 (decompose_normal_address): Classify as much as possible in the
11267 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
11269 * cse.c (count_reg_usage): Handle INT_LIST.
11270 * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
11271 * reginfo.c (reg_scan_mark_refs): Likewise.
11272 * reload1.c (eliminate_regs_1): Likewise.
11274 2013-09-27 Iain Sandoe <iain@codesourcery.com>
11276 PR middle-end/58547
11277 * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
11280 2013-09-27 Richard Biener <rguenther@suse.de>
11282 PR tree-optimization/58459
11283 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
11284 restriction not propagating into loops.
11286 2013-09-26 Florian Weimer <fw@deneb.enyo.de>
11288 * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
11289 * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
11290 * doc/tree-ssa.texi (Walking use-def chains): Delete.
11292 2013-09-26 Richard Biener <rguenther@suse.de>
11294 * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
11296 2013-09-26 Richard Biener <rguenther@suse.de>
11298 * alias.h (component_uses_parent_alias_set): Rename to ...
11299 (component_uses_parent_alias_set_from): ... this.
11300 * alias.c (component_uses_parent_alias_set): Rename to ...
11301 (component_uses_parent_alias_set_from): ... this and return
11302 the desired parent.
11303 (reference_alias_ptr_type_1): Use the result from
11304 component_uses_parent_alias_set_from instead of stripping
11305 components one at a time.
11306 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
11308 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
11310 * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
11311 Move prototypes to...
11312 * tree-ssa-ter.h: New File. Move prototypes here.
11313 * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
11314 * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
11315 * tree-outof-ssa.c (ssa_is_replaceable_p): New. Refactor common bits
11316 from is_replaceable_p.
11317 * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
11318 (ter_is_replaceable_p): New. Use new refactored ssa_is_replaceable_p.
11319 (process_replaceable): Use ter_is_replaceable_p.
11320 (find_replaceable_in_bb): Use ter_is_replaceable_p.
11321 * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c. Use
11322 newly refactored ssa_is_replaceable_p.
11323 * cfgexpand.c: Include tree-outof-ssa.h.
11324 * ssaexpand.h: Delete.
11326 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
11328 * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
11329 (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
11331 (create_gimple_tmp): Delete.
11332 (get_expr_type, build_assign, build_type_cast): Move to...
11333 * gimple-builder.c: New File.
11334 (get_expr_type): Relocate from gimple.c.
11335 (build_assign, build_type_cast): Change to only create ssanames.
11336 * gimple.h: Move prototypes to...
11337 * gimple-builder.h: New File. Here.
11338 * tree-ssa.h: And here.
11339 * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
11340 count_uses_and_derefs): Relocate from gimple.c.
11341 (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
11342 * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
11343 * tree-ssa-math-opts (execute_cse_reciprocals): Use
11344 gimple_replace_ssa_lhs.
11345 * asan.c: Include gimple-builder.h.
11346 * Makefile.in: Add gimple-builder.o.
11348 2013-09-26 Richard Biener <rguenther@suse.de>
11350 * tree-ssa-live.c (var_map_base_init): Handle SSA names with
11351 DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
11352 (loe_visit_block): Use gcc_checking_assert.
11353 * tree-ssa-coalesce.c (create_outofssa_var_map): Use
11354 gimple_assign_ssa_name_copy_p.
11355 (gimple_can_coalesce_p): Adjust according to the var_map_base_init
11358 2013-09-26 David Edelsohn <dje.gcc@gmail.com>
11360 * config/rs6000/t-rs6000 (rs6000.o): Remove.
11361 (rs6000-c.o): Use COMPILE and POSTCOMPILE.
11363 2013-09-26 Richard Biener <rguenther@suse.de>
11365 PR tree-optimization/58539
11366 * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
11367 the fact that debug statements are not taking part in loop-closed
11370 2013-09-26 Nick Clifton <nickc@redhat.com>
11372 * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
11373 time warning message.
11374 (msp430_print_operand_raw): Delete unused letter parameter.
11375 (TARGET_PRINT_OPERAND_ADDRESS): Define.
11376 (msp430_print_operand_address): New function.
11377 (msp430_print_operand): Move address printing code from here to
11379 * config/msp430/msp430.md (movsipsi2): Add comment in generated
11381 (zero_extendpsisi2): Likewise.
11382 (extendpsisi2): New pattern.
11383 (andneghi3): New pattern.
11385 2013-09-26 Yvan Roux <yvan.roux@linaro.org>
11387 * config/aarch64/aarch64.opt (mlra): New option.
11388 * config/aarch64/aarch64.c (aarch64_lra_p): New function.
11389 (TARGET_LRA_P): Define.
11391 2013-09-26 Eric Botcazou <ebotcazou@adacore.com>
11393 * expr.c (expand_assignment): Remove obsolete comment.
11395 2013-09-25 Jeff Law <law@redhat.com>
11397 * tree-flow.h (thread_through_all_blocks): Prototype moved into
11398 tree-ssa-threadupdate.h.
11399 (register_jump_thread): Similarly.
11400 * tree-ssa-threadupdate.h: New header file.
11401 * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
11402 * tree-vrp.c: Likewise.
11403 * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
11404 (thread_around_empty_blocks): Change type of path vector argument to
11405 an edge,type pair from just an edge. Initialize both elements when
11406 appending to a jump threading path. Tweak references to elements
11408 (thread_across_edge): Similarly. Release memory for the elements
11410 * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
11411 (dump_jump_thread_path): New function broken out from
11412 register_jump_thread.
11413 (register_jump_thread): Use dump_jump_thread_path. Change type of
11414 path vector entries. Search the path for NULL edges and dump
11415 the path if one is found. Tweak the conversion of path to 3-edge
11416 form to use the block copy type information embedded in the path.
11418 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
11420 * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
11422 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
11423 Vladimir Makarov <vmakarov@redhat.com>
11425 * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
11426 from the least significant bit.
11427 (strip_address_mutations): Add bitfield operations handling.
11428 (must_be_index_p): Add shifting and rotate operations handling.
11429 (set_address_base): Use must_be_base_p predicate.
11430 (set_address_index): Use must_be_index_p predicate.
11432 2013-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
11433 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11434 Sergey Lega <sergey.s.lega@intel.com>
11435 Anna Tikhonova <anna.tikhonova@intel.com>
11436 Ilya Tocar <ilya.tocar@intel.com>
11437 Andrey Turetskiy <andrey.turetskiy@intel.com>
11438 Ilya Verbin <ilya.verbin@intel.com>
11439 Kirill Yukhin <kirill.yukhin@intel.com>
11440 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11442 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
11444 (ix86_expand_vector_move_misalign): Support new unaligned load and
11445 stores and use new names.
11446 (CODE_FOR_sse2_storedqu): Rename to ...
11447 (CODE_FOR_sse2_storedquv16qi): ... this.
11448 (CODE_FOR_sse2_loaddqu): Rename to ...
11449 (CODE_FOR_sse2_loaddquv16qi): ... this.
11450 (CODE_FOR_avx_loaddqu256): Rename to ...
11451 (CODE_FOR_avx_loaddquv32qi): ... this.
11452 (CODE_FOR_avx_storedqu256): Rename to ...
11453 (CODE_FOR_avx_storedquv32qi): ... this.
11454 * config/i386/i386.md (fpint_logic): New.
11455 * config/i386/sse.md (VMOVE): Extend for AVX512.
11459 (VI_UNALIGNED_LOADSTORE): Ditto.
11460 (sse2_avx_avx512f): Ditto.
11461 (sse2_avx2): Extend for AVX512.
11462 (sse4_1_avx2): Ditto.
11463 (avx2_avx512f): New.
11464 (sse): Extend for AVX512.
11467 (avxsizesuffix): Ditto.
11468 (sseintvecmode): Ditto.
11469 (ssePSmode): Ditto.
11470 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
11471 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
11472 (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
11473 (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
11474 (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
11475 (<sse2_avx_avx512f>_storedqu<mode): ... this.
11476 (<sse>_movnt<mode>): Replace constraint "x" with "v".
11477 (STORENT_MODE): Extend for AVX512.
11478 (*absneg<mode>2): Replace constraint "x" with "v".
11479 (*mul<mode>3): Ditto.
11480 (*ieee_smin<mode>3): Ditto.
11481 (*ieee_smax<mode>3): Ditto.
11482 (avx_cmp<mode>3): Replace VF with VF_128_256.
11483 (*<sse>_maskcmp<mode>3_comm): Ditto.
11484 (<sse>_maskcmp<mode>3): Ditto.
11485 (<sse>_andnot<mode>3): Extend for AVX512.
11486 (<code><mode>3, anylogic): Replace VF with VF_128_256.
11487 (<code><mode>3, fpint_logic): New.
11488 (*<code><mode>3): Extend for AVX512.
11489 (avx512flogicsuff): New.
11490 (avx512f_<logic><mode>): Ditto.
11491 (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
11493 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
11494 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
11495 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
11496 (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
11497 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
11498 (xop_vpermil2<mode>3): Ditto.
11499 (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
11500 (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
11501 (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
11502 (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
11504 2013-09-25 Tom Tromey <tromey@redhat.com>
11506 * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
11507 (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
11508 (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
11509 (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
11510 (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
11511 (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
11512 (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
11513 (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
11514 (GRAPHITE_HTAB_H): Remove.
11516 2013-09-25 Tom Tromey <tromey@redhat.com>
11518 * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
11520 2013-09-25 Tom Tromey <tromey@redhat.com>
11522 * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
11524 2013-09-25 Tom Tromey <tromey@redhat.com>
11526 * config/i386/t-i386 (i386.o): Remove.
11527 (i386-c.o): Use COMPILE and POSTCOMPILE.
11529 2013-09-25 Tom Tromey <tromey@redhat.com>
11531 * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
11533 2013-09-25 Tom Tromey <tromey@redhat.com>
11535 * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
11536 (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
11537 (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
11538 (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
11539 (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
11540 (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
11541 (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
11542 (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
11543 (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
11544 (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
11545 (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
11546 (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
11547 (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
11548 (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
11549 (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
11550 (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
11551 (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
11552 (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
11553 (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
11554 (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
11555 (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
11556 (tree-ssa-pre.o, tree-ssa-sccvn.o)
11557 (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
11558 (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
11559 (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
11560 (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
11561 (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
11562 (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
11563 (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
11564 (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
11565 (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
11566 (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
11567 (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
11568 (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
11569 (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
11570 (graphite-clast-to-gimple.o, graphite-dependences.o)
11571 (graphite-interchange.o, graphite-poly.o)
11572 (graphite-scop-detection.o, graphite-sese-to-poly.o)
11573 (graphite-optimize-isl.o, tree-vect-loop.o)
11574 (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
11575 (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
11576 (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
11577 (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
11578 (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
11579 (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
11580 (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
11581 (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
11582 (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
11583 (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
11584 (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
11585 (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
11586 (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
11587 (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
11588 (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
11589 (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
11590 (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
11591 (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
11592 (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
11593 (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
11594 (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
11595 (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
11596 (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
11597 (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
11598 (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
11599 (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
11600 (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
11601 (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
11602 (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
11603 (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
11604 (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
11605 (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
11606 (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
11607 (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
11608 (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
11609 (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
11610 (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
11611 (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
11612 (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
11613 (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
11614 (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
11615 (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
11616 (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
11617 (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
11618 (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
11619 (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
11620 (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
11621 (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
11622 (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
11623 (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
11624 (gcov-dump.o): Remove.
11625 (default-c.o): Use COMPILE and POSTCOMPILE.
11626 (CFLAGS-gcc.o): New variable.
11627 ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
11629 2013-09-25 Tom Tromey <tromey@redhat.com>
11631 * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
11632 (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
11633 (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
11634 (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
11635 (c-family/c-pragma.o, c-family/c-pretty-print.o)
11636 (c-family/c-semantics.o, c-family/c-ada-spec.o)
11637 (c-family/array-notation-common.o, c-family/stub-objc.o)
11638 (c-family/c-ubsan.o): Remove.
11640 2013-09-25 Tom Tromey <tromey@redhat.com>
11642 * Makefile.in (C_TREE_H): Reference c/c-tree.h.
11644 2013-09-25 Tom Tromey <tromey@redhat.com>
11646 * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
11647 to add -DENABLE_SHARED_LIBGCC.
11648 (gcc.o): Don't use subshell.
11650 2013-09-25 Tom Tromey <tromey@redhat.com>
11652 * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
11653 * configure.ac: Don't invoke AM_PROG_CC_C_O.
11654 (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
11655 * configure, config.in: Rebuild.
11657 2013-09-25 Tom Tromey <tromey@redhat.com>
11659 * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
11660 (COMPILE, POSTCOMPILE): New variables.
11661 (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
11662 (DEPFILES): New variable.
11663 Include ".Po" files.
11664 * configure.ac: Add checks for dependency checking.
11665 * configure, aclocal.m4: Regenerate.
11667 2013-09-25 Tom Tromey <tromey@redhat.com>
11669 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
11670 ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
11672 2013-09-25 Tom Tromey <tromey@redhat.com>
11674 * Makefile.in (generated_files): Add options.h,
11675 target-hooks-def.h, insn-opinit.h,
11676 common/common-target-hooks-def.h, pass-instances.def,
11677 c-family/c-target-hooks-def.h.
11679 2013-09-25 Jeff Law <law@redhat.com>
11681 * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
11682 than foo[foo.length () - 1] to access last member in a vec.
11683 * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
11685 2013-09-25 Richard Biener <rguenther@suse.de>
11687 PR middle-end/58521
11688 * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
11690 2013-09-25 Jan Hubicka <jh@suse.cz>
11692 * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
11695 2013-09-25 Marek Polacek <polacek@redhat.com>
11698 * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
11699 when determining the type name.
11701 2013-09-24 Oleg Endo <olegendo@gcc.gnu.org>
11703 * config/sh/sh.md: Fix formatting.
11705 2013-09-24 Xinliang David Li <davidxl@google.com>
11707 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
11708 max peel iterations parameter.
11709 * param.def: New parameter.
11710 * doc/invoke.texi: Document New parameter.
11712 2013-09-24 Christophe Lyon <christophe.lyon@linaro.org>
11714 * gimple-pretty-print.c: Various whitespace tweaks.
11715 * tree-core.h: Likewise.
11716 * tree-pretty-print.c: Likewise.
11717 * tree-ssa-alias.c: Likewise.
11718 * tree-ssa-copy.c: Likewise.
11719 * tree-ssanames.c: Likewise.
11720 * tree-ssanames.h: Likewise.
11721 * tree-vrp.c: Likewise.
11723 2013-09-24 Alan Modra <amodra@gmail.com>
11725 PR middle-end/57134
11726 PR middle-end/57586
11727 * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
11728 for output operands that disallow regs. Don't use EXPAND_WRITE on
11731 2013-09-24 Richard Biener <rguenther@suse.de>
11733 PR middle-end/58513
11734 * tree.c (reference_alias_ptr_type): Move ...
11735 * alias.c (reference_alias_ptr_type): ... here and implement
11736 in terms of the new reference_alias_ptr_type_1.
11737 (ref_all_alias_ptr_type_p): New helper.
11738 (get_deref_alias_set_1): Drop flag_strict_aliasing here,
11739 use ref_all_alias_ptr_type_p.
11740 (get_deref_alias_set): Add flag_strict_aliasing check here.
11741 (reference_alias_ptr_type_1): New function, split out from ...
11742 (get_alias_set): ... here.
11743 (alias_ptr_types_compatible_p): New function.
11744 * alias.h (reference_alias_ptr_type): Declare.
11745 (alias_ptr_types_compatible_p): Likewise.
11746 * tree.h (reference_alias_ptr_type): Remove.
11747 * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
11748 to compare MEM_REF alias types.
11750 2013-09-24 Richard Biener <rguenther@suse.de>
11752 * tree-vrp.c (vrp_finalize): Check for SSA name presence.
11754 2013-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
11756 * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
11757 reload helper function arrays into a single array reg_addr.
11758 (reload_fpr_gpr): Likewise.
11759 (reload_gpr_vsx): Likewise.
11760 (reload_vsx_gpr): Likewise.
11761 (struct rs6000_reg_addr): Likewise.
11762 (reg_addr): Likewise.
11763 (rs6000_debug_reg_global): Change rs6000_vector_reload,
11764 reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
11765 (rs6000_init_hard_regno_mode_ok): Likewise.
11766 (rs6000_secondary_reload_direct_move): Likewise.
11767 (rs6000_secondary_reload): Likewise.
11769 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
11770 constraints: wu, ww, and wy. Repurpose wv constraint added during
11771 power8 changes. Put wg constraint in alphabetical order.
11773 * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
11774 for future work to add ISA 2.07 VSX single precision support.
11775 (-mvsx-scalar-double): Change default from -1 to 1, update
11776 documentation comment.
11777 (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
11778 (-mupper-regs-df): New debug switch to control whether DF values
11779 can go in the traditional Altivec registers.
11780 (-mupper-regs-sf): New debug switch to control whether SF values
11781 can go in the traditional Altivec registers.
11783 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
11784 and wy constraints.
11785 (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
11786 loop variables. Rename -mvsx-scalar-memory to -mupper-regs-df.
11787 Add new constraints, wu/ww/wy. Repurpose wv constraint.
11788 (rs6000_debug_legitimate_address_p): Print if we are running
11789 before, during, or after reload.
11790 (rs6000_secondary_reload): Add a comment.
11791 (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
11793 * config/rs6000/constraints.md (wa constraint): Sort w<x>
11794 constraints. Update documentation string.
11795 (wd constraint): Likewise.
11796 (wf constraint): Likewise.
11797 (wg constraint): Likewise.
11798 (wn constraint): Likewise.
11799 (ws constraint): Likewise.
11800 (wt constraint): Likewise.
11801 (wx constraint): Likewise.
11802 (wz constraint): Likewise.
11803 (wu constraint): New constraint for ISA 2.07 SFmode scalar
11805 (ww constraint): Likewise.
11806 (wy constraint): Likewise.
11807 (wv constraint): Repurpose ISA 2.07 constraint that we did not use
11808 in the previous submissions.
11809 * doc/md.texi (PowerPC and IBM RS6000): Likewise.
11811 2013-09-23 Richard Sandiford <rdsandiford@googlemail.com>
11813 * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
11814 (REG_BR_PROB): Say that the probability is stored in an int_list.
11815 * reg-notes.def: Update commentary to mention INT_LIST.
11816 * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
11817 (INT_LIST): New rtx.
11818 * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
11819 * rtlanal.c (int_reg_note_p): New function.
11820 (alloc_reg_note): Assert that the note does not have an int argument.
11821 (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
11822 * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
11823 * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
11824 rather than an INSN_LIST. Handle INT_LIST.
11825 * ifcvt.c (cond_exec_process_insns): Take the probability as an int
11826 rather than an rtx. Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
11827 (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
11828 Manipulate them as ints rather than rtxes.
11829 * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
11830 * regmove.c (copy_src_to_dest): Likewise.
11831 * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
11833 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
11834 into the cases that need it.
11835 * config/arm/arm.c (arm_unwind_emit): Likewise.
11837 * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
11838 * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
11839 * loop-doloop.c (add_test, doloop_modify): Likewise.
11840 * loop-unswitch.c (compare_and_jump_seq): Likewise.
11841 * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
11842 * predict.c (combine_predictions_for_insn): Likewise.
11843 * print-rtl.c (print_rtx): Handle INT_LIST.
11844 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
11845 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
11846 * config/arm/arm.c (emit_unlikely_jump): Likewise.
11847 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
11848 (ix86_split_fp_branch, predict_jump): Likewise.
11849 * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
11850 * config/sh/sh.c (expand_cbranchsi4): Likewise.
11851 * config/spu/spu.c (ea_load_store_inline): Likewise.
11853 * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
11854 value of a REG_BR_PROB note.
11855 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
11856 (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
11857 * emit-rtl.c (try_split): Likewise.
11858 * predict.c (br_prob_note_reliable_p): Likewise.
11859 (invert_br_probabilities, combine_predictions_for_insn): Likewise.
11860 * reorg.c (mostly_true_jump): Likewise.
11861 * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
11862 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
11863 * config/i386/i386.c (ix86_print_operand): Likewise.
11864 * config/ia64/ia64.c (ia64_print_operand): Likewise.
11865 * config/mmix/mmix.c (mmix_print_operand): Likewise.
11866 * config/rs6000/rs6000.c (output_cbranch): Likewise.
11867 * config/s390/s390.c (s390_expand_tbegin): Likewise.
11868 * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
11869 * config/sparc/sparc.c (output_cbranch): Likewise.
11870 * config/spu/spu.c (get_branch_target): Likewise.
11871 * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
11872 * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
11874 2013-09-23 Jan Hubicka <jh@suse.cz>
11876 * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
11878 * ipa-utils.h (possible_polymorphic_call_target_p): New function.
11879 * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
11881 * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
11882 (gimple_fold_call): Dump inconsistent devirtualizations; add
11883 sanity check for type based devirtualizations.
11884 * ipa-prop.c: Include ipa-utils.h
11885 (ipa_intraprocedural_devirtualization): Add sanity check.
11886 (try_make_edge_direct_virtual_call): Likewise.
11888 2013-09-23 Eric Botcazou <ebotcazou@adacore.com>
11890 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
11891 assignment statements.
11893 2013-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
11895 * gimple-pretty-print.c (dump_ssaname_info): New function.
11896 (dump_gimple_phi): Call it.
11897 (pp_gimple_stmt_1): Likewise.
11898 * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
11899 (range_info_def): Declare.
11900 * tree-pretty-print.c (pp_double_int): New function.
11901 (dump_generic_node): Call it.
11902 * tree-pretty-print.h (pp_double_int): Declare.
11903 * tree-ssa-alias.c (dump_alias_info): Check pointer type.
11904 * tree-ssanames.h (range_info_def): New structure.
11905 (value_range_type): Move definition here.
11906 (set_range_info, value_range_type, duplicate_ssa_name_range_info):
11908 * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
11910 (set_range_info): New function.
11911 (get_range_info): Likewise.
11912 (duplicate_ssa_name_range_info): Likewise.
11913 (duplicate_ssa_name_fn): Check pointer type and call
11914 duplicate_ssa_name_range_info.
11915 * tree-ssa-copy.c (fini_copy_prop): Likewise.
11916 * tree-vrp.c (value_range_type): Remove definition, now in
11918 (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
11919 * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
11920 (SSA_NAME_RANGE_INFO): New macro.
11922 2013-09-23 Richard Biener <rguenther@suse.de>
11924 PR tree-optimization/58464
11925 * tree-ssa-pre.c (phi_trans_lookup): Remove.
11926 (phi_trans_add): Change to add conditionally on being not present.
11927 (phi_translate_1): Remove recursion detection here.
11928 (phi_translate): Pre-seed the cache with NULL to catch
11929 recursion here in a more generic way.
11930 (bitmap_find_leader): Adjust comment.
11931 (get_representative_for): Dump value-numbers.
11932 (create_expression_by_pieces): Likewise.
11933 (insert_into_preds_of_block): Likewise.
11935 2013-09-23 Christian Bruel <christian.bruel@st.com>
11938 * config/sh/sh.md (movsf_ie): Allow fpul_operand.
11939 * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
11941 2013-09-23 James Greenhalgh <james.greenhalgh@arm.com>
11944 2013-09-20 Renlin Li <renlin.li@arm.com>
11946 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
11948 (aarch64_expand_epilogue): Likewise.
11949 (aarch64_legitimize_reload_address): Likewise.
11951 2013-09-22 Eric Botcazou <ebotcazou@adacore.com>
11953 * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
11954 NULL_TREE before pushing them onto the vector. Likewise for labels.
11956 2013-09-21 Eric Botcazou <ebotcazou@adacore.com>
11958 * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
11959 comparison operators when -fno-trapping-math is in effect.
11960 * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
11961 comparison operators in TFmode and assert that unsupported operators
11963 (ia64_print_operand): Likewise.
11965 2013-09-21 Jan Hubicka <jh@suse.cz>
11967 * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
11968 (sse_typeless_stores): Enable for core
11969 (sse_load0_by_pxor): Likewise.
11970 (four_jump_limit): Disable for core.
11971 (pad_returns): Likewise.
11972 (avoid_vector_decode): Likewise.
11973 (fuse_cmp_and_branch): Enable for cores.
11974 * i386.c (x86_accumulate_outgoing_args): Disable for cores.
11976 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
11978 PR middle-end/56791
11979 * config/pa/pa.c (pa_option_override): Disable auto increment and
11980 decrement instructions until reload is completed.
11982 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
11983 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
11984 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
11986 2013-09-20 DJ Delorie <dj@redhat.com>
11987 Nick Clifton <nickc@redhat.com>
11989 * config/rl78/rl78.c: Various whitespace and comment tweaks.
11990 (need_to_save): Save bank 0 on interrupts.
11991 (characterize_address): Strip far address wrappers.
11992 (rl78_as_legitimate_address): Likewise.
11993 (transcode_memory_rtx): Likewise.
11994 (rl78_peep_movhi_p): Disable this peephole after devirt.
11995 (rl78_propogate_register_origins): Forget all origins when a
11997 * config/rl78/rl78-virt.md: Various whitespace tweaks.
11998 * config/rl78/rl78-real.md: Various whitespace tweaks. Additional
12000 * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
12001 * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
12002 * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
12004 * config/rl78/constraints.md: Various whitespace and paren tweaks.
12006 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
12008 * config/pa/pa.md: In "scc" insn patterns, change output template to
12009 handle const0_rtx in reg_or_0_operand operands.
12011 2013-09-20 Martin Husemann <martin@NetBSD.org>
12014 * config/vax/vax.c (vax_output_int_move): Use D format specifier.
12015 * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
12017 2013-09-20 Richard Biener <rguenther@suse.de>
12019 PR middle-end/58484
12020 * tree-scalar-evolution.c (struct scev_info_str): Shrink by
12021 remembering SSA name version and block index.
12022 (new_scev_info_str): Adjust.
12023 (hash_scev_info): Likewise. Also hash the block index.
12024 (eq_scev_info): Adjust.
12025 (find_var_scev_info): Likewise.
12026 (struct instantiate_cache_entry): Remove.
12027 (struct instantiate_cache_type): Use a htab to map name, block
12029 (instantiate_cache_type::~instantiate_cache_type): Adjust.
12030 (get_instantiated_value_entry): Likewise.
12031 (hash_idx_scev_info, eq_idx_scev_info): New functions.
12032 (instantiate_scev_name): Adjust.
12034 2013-09-20 Jeff Law <law@redhat.com>
12036 * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
12038 2013-09-20 Yufeng Zhang <yufeng.zhang@arm.com>
12040 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
12041 Call aarch64_simd_expand_args to update op[argc].
12043 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
12045 * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
12048 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
12050 * gengtype.c (file_rules): Added rule for *.cc files.
12051 (get_output_file_with_visibility): Give fatal message when no
12054 2013-09-20 Renlin Li <renlin.li@arm.com>
12056 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
12057 (aarch64_expand_epilogue): Likewise.
12058 (aarch64_legitimize_reload_address): Likewise.
12060 2013-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
12062 PR middle-end/57748
12063 * expr.c (expand_assignment): Remove misalignp code path.
12065 2013-09-20 Marek Polacek <polacek@redhat.com>
12068 * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
12069 TYPE_PRECISION. Add asserts.
12071 2013-09-20 Richard Biener <rguenther@suse.de>
12073 PR tree-optimization/58453
12074 * tree-loop-distribution.c (distribute_loop): Apply the cost
12075 model for -ftree-loop-distribute-patterns, too.
12077 2013-09-20 Richard Biener <rguenther@suse.de>
12079 PR middle-end/58473
12080 * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
12081 make type comparison less strict.
12083 2013-09-20 Alan Modra <amodra@gmail.com>
12085 * configure: Regenerate.
12086 * aclocal.m4: Regenerate.
12088 2013-09-20 Marek Polacek <polacek@redhat.com>
12091 * doc/extend.texi: Document that attribute used is meant to be used
12092 on variables with static storage duration.
12094 2013-09-19 Jakub Jelinek <jakub@redhat.com>
12096 PR tree-optimization/58472
12097 * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
12098 simd_lane_access set inv_p = false.
12099 * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
12100 the simduid magic VAR_DECL.
12102 2013-09-19 Jan Hubicka <jh@suse.cz>
12104 * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
12106 2013-09-17 Jeff Law <law@redhat.com>
12108 * tree-ssa-dom.c (record_temporary_equivalences): New function
12109 split out of dom_opt_dom_walker::after_dom_children.
12110 (dom_opt_dom_walker::thread_across_edge): Move common code
12111 in here from dom_opt_dom_walker::after_dom_children.
12112 (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
12114 2013-09-19 Jan Hubicka <jh@suse.cz>
12116 * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
12117 (TARGET_GENERIC): Use PROCESOR_GENERIC
12118 (enum processor_type): Unify generic32 and 64.
12119 * i386.md (cpu): Likewise.
12120 * x86-tune.def (use_leave): Enable for generic32.
12121 (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
12122 * athlon.md: Change generic64 to generic in all occurences.
12123 * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
12124 (ix86_target_macros_internal): Likewise.
12125 * driver-i386.c (host_detect_local_cpu): Likewise.
12126 * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
12128 (generic_memcpy, generic_memset, generic_cost): This one.
12129 (generic32_memcpy, generic32_memset, generic32_cost): Remove.
12130 (m_GENERIC32, m_GENERIC64): Remove.
12131 (m_GENERIC): Turn into one flag.
12132 (processor_target): Unify generic tunnings.
12133 (ix86_option_override_internal): Replace generic32/64 by generic.
12134 (ix86_issue_rate): Likewise.
12135 (ix86_adjust_cost): Likewise.
12137 2013-09-19 Jan Hubicka <jh@suse.cz>
12139 * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
12140 of speculative flag.
12142 2013-09-19 Jakub Jelinek <jakub@redhat.com>
12144 * omp-low.c (expand_omp_sections): Always pass len - 1 to
12145 GOMP_sections_start, even if !exit_reachable.
12147 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
12149 * lra-constraints.c (need_for_all_save_p): Use macro
12150 HARD_REGNO_CALL_PART_CLOBBERED.
12151 * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
12152 set up pseudo conflict hard regs.
12154 2013-09-18 Michael Meissner <meissner@linux.vnet.ibm.com>
12157 * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
12160 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
12162 PR rtl-optimization/58438
12163 * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
12164 * lra-constraints.c (undo_optional_reloads): Keep optional reloads
12165 from previous subpasses.
12167 2013-09-18 Richard Earnshaw <rearnsha@arm.com>
12169 * arm.c (arm_get_frame_offsets): Validate architecture supports
12170 LDRD/STRD before accepting the tuning preference.
12171 (arm_expand_prologue): Likewise.
12172 (arm_expand_epilogue): Likewise.
12174 2013-09-18 Richard Biener <rguenther@suse.de>
12176 PR tree-optimization/58417
12177 * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
12178 have chrecs with symbols defined in the loop as operands.
12179 (chrec_fold_multiply): Likewise.
12180 * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
12181 parameters before folding binary operations.
12182 (struct instantiate_cache_entry_hasher): Remove.
12183 (struct instantiate_cache_type): Use a pointer-map.
12184 (instantiate_cache_type::instantiate_cache_type): New function.
12185 (instantiate_cache_type::get): Likewise.
12186 (instantiate_cache_type::set): Likewise.
12187 (instantiate_cache_type::~instantiate_cache_type): Adjust.
12188 (get_instantiated_value_entry): Likewise.
12189 (global_cache): New global.
12190 (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
12191 instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
12192 instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
12193 (instantiate_scev_name): Adjust.
12194 (instantiate_scev): Construct global instead of local cache.
12195 (resolve_mixers): Likewise.
12197 2013-09-18 Daniel Morris <danielm@ecoscentric.com>
12198 Paolo Carlini <paolo.carlini@oracle.com>
12201 * doc/implement-cxx.texi: Fix references to the C++ standards.
12203 2013-09-18 Jakub Jelinek <jakub@redhat.com>
12205 * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
12206 * tree-vect-data-refs.c (vect_analyze_data_refs): For
12207 simd_lane_access drs, update also DR_ALIGNED_TO.
12209 2013-09-18 Marek Polacek <polacek@redhat.com>
12212 * doc/extend.texi: Document no_sanitize_undefined attribute.
12213 * builtins.c (fold_builtin_0): Don't sanitize function if it has the
12214 no_sanitize_undefined attribute.
12216 2013-09-18 Nick Clifton <nickc@redhat.com>
12218 * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
12219 (ASM_DECLARE_FUNCTION_NAME): Define.
12221 2013-09-17 Trevor Saunders <tsaunders@mozilla.com>
12223 * compare-elim.c (find_comparison_dom_walker): New class
12224 (find_comparisons_in_bb): Rename to
12225 find_comparison_dom_walker::before_dom_children
12226 (find_comparisons): Adjust
12227 * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
12229 (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
12230 * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
12231 (init_walk_dominator_tree): Remove declaration.
12232 (fini_walk_dominator_tree): Remove declaration.
12233 * fwprop.c (single_def_use_dom_walker): New class
12234 (single_def_use_enter_block): Convert to
12235 single_def_use_dom_walker::before_dom_children.
12236 (single_def_use_leave_block): Convert to
12237 single_def_use_dom_walker::after_dom_children.
12238 (build_single_def_use_links): Adjust.
12239 * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
12241 (find_candidates_in_block): Convert to
12242 find_candidates_dom_walker::before_dom_children.
12243 (execute_strength_reduction): Adjust.
12244 * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
12245 (sese_dom_walker): New class.
12246 (sese_dom_walker::sese_dom_walker): New constructor.
12247 (sese_dom_walker::~sese_dom_walker): New destructor.
12248 (build_sese_conditions_before): Convert to
12249 sese_dom_walker::before_dom_children.
12250 (build_sese_conditions_after): Convert to
12251 sese_dom_walker::after_dom_children.
12252 (build_poly_scop): Adjust
12253 * tree-into-ssa.c (rewrite_dom_walker): New class
12254 (rewrite_enter_block): Convert to
12255 rewrite_dom_walker::before_dom_children.
12256 (rewrite_leave_block): Convert to
12257 rewrite_dom_walker::after_dom_children.
12258 (rewrite_update_dom_walker): New class.
12259 (rewrite_update_enter_block): Convert to
12260 rewrite_update_dom_walker::before_dom_children.
12261 (rewrite_update_leave_block): Convert to
12262 rewrite_update_dom_walker::after_dom_children.
12263 (rewrite_blocks, rewrite_into_ssa): Adjust.
12264 (mark_def_dom_walker): New class.
12265 (mark_def_dom_walker::mark_def_dom_walker): New constructor.
12266 (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
12267 (mark_def_sites_blocks): Convert to
12268 mark_def_dom_walker::before_dom_children.
12269 (mark_def_site_blocks): Remove.
12270 * tree-ssa-dom.c (dom_opt_dom_walker): New class.
12271 (tree_ssa_dominator_optimize): Adjust.
12272 (dom_thread_across_edge): Convert to method
12273 dom_opt_dom_walker::thread_across_edge.
12274 (dom_opt_enter_block): Convert to member function
12275 dom_opt_dom_walker::before_dom_children.
12276 (dom_opt_leave_block): Convert to member function
12277 dom_opt_dom_walker::after_dom_children.
12278 * tree-ssa-dse.c (dse_dom_walker): New class.
12279 (dse_enter_block): Convert to member function
12280 dse_dom_walker::before_dom_children.
12281 (tree_ssa_dse): Adjust.
12282 * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
12283 (determine_invariantness_stmt): Convert to method
12284 invariantness_dom_walker::before_dom_children.
12285 (determine_invariantness): Remove
12286 (move_computations_dom_walker): New class.
12287 (move_computations_stmt): Convert to method
12288 move_computations_dom_walker::before_dom_children.
12289 (move_computations, tree_ssa_lim): Adjust.
12290 * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
12291 (nt_init_block): Convert to method
12292 notrappping_dom_walker::before_dom_children.
12293 (nt_fini_block): Convert to method
12294 method nontrapping_dom_walker::after_dom_children.
12295 (get_non_trapping): Adjust.
12296 * tree-ssa-pre.c (eliminate_dom_walker): New class.
12297 (eliminate_bb): Convert to method
12298 eliminate_dom_walker::before_dom_children.
12299 (eliminate_leave_block): Convert to method
12300 eliminate_dom_walker::after_dom_children.
12301 (eliminate): Adjust.
12302 * tree-ssa-strlen.c (strlen_dom_walker): New class.
12303 (strlen_enter_block): Convert to method
12304 strlen_dom_walker::before_dom_children.
12305 (strlen_leave_block): Convert to method
12306 method strlen_dom_walker::after_dom_children.
12307 (tree_ssa_strlen): Adjust.
12308 * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
12309 (tree_ssa_uncprop): Adjust.
12310 (uncprop_leave_block): Convert to method
12311 uncprop_dom_walker::after_dom_children.
12312 (uncprop_leave_block): Convert to method
12313 uncprop_dom_walker::before_dom_children.
12315 2013-09-18 Bin Cheng <bin.cheng@arm.com>
12317 * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
12318 branch in same basic block. Check both src and dest of the move insn.
12320 2013-09-17 Nick Clifton <nickc@redhat.com>
12322 * config/rl78/rl78-real.md (bf): New pattern.
12324 * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
12325 (rl78_print_operand): Do not put a # before a %B.
12326 * config/rl78/rl78.opt: Tweak doc strings.
12328 2013-09-17 DJ Delorie <dj@redhat.com>
12330 * config/rl78/constraints.md (Wcv): Allow up to $r31.
12331 * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
12332 (rl78_option_override): Likewise, if -mallregs.
12333 (is_virtual_register): Likewise.
12334 * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
12335 (REGNO_OK_FOR_BASE_P): Likewise.
12336 * config/rl78/rl78.opt (-mallregs): New.
12338 2013-09-17 Nick Clifton <nickc@redhat.com>
12340 * config/rl78/rl78.c (need_to_save): Change return type to bool.
12341 For interrupt functions: save all call clobbered registers if the
12342 interrupt handler is not a leaf function.
12343 (rl78_expand_prologue): Always recompute the frame information.
12344 For interrupt functions: only select bank 0 if one of the bank 0
12345 registers is going to be psuhed.
12347 2013-09-17 DJ Delorie <dj@redhat.com>
12349 * config/rl78/constraints.md: For each W* constraint, rename to C*
12350 and create a W* constraint that checks for an optional ES: prefix
12352 * config/rl78/rl78.md (UNS_ES_ADDR): New.
12353 (es_addr): New. Used to wrap far addresses.
12354 * config/rl78/rl78-protos.h (rl78_es_addr): New.
12355 (rl78_es_base): New.
12356 * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
12357 wrapped far addresses.
12358 (rl78_print_operand_1): Unwrap far addresses before processing.
12359 (rl78_lo16): Wrap far addresses in unspecs.
12360 (rl78_es_addr): New.
12361 (rl78_es_base): New.
12362 (insn_ok_now): Check for not-yet-wrapped far addresses.
12363 (transcode_memory_rtx): Properly re-wrap far addresses.
12365 2013-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
12367 * config/sparc/t-rtems: Add leon3 multilibs.
12369 2013-09-17 Cong Hou <congh@google.com>
12371 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
12372 when checking the dot production pattern. The type of rhs operand
12373 of multiply is now checked correctly.
12375 2013-09-17 Jeff Law <law@redhat.com>
12377 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
12378 edge implied equivalences into successor phis.
12379 * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
12380 here from tree-ssa-threadedge.c.
12381 (mark_threaded_blocks): When threading through a joiner, if both
12382 successors of the joiner's clone reach the same block, verify the
12383 PHI arguments are equal. If not, cancel the jump threading request.
12384 * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
12385 tree-ssa-threadupdate.c
12386 (thread_across_edge): Don't check PHI argument equality when
12387 threading through joiner block here.
12389 2013-09-17 Andrew MacLeod <amacleod@redhat.com>
12391 * tree-flow.h (ssa_undefined_value_p): Remove prototype.
12392 * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
12393 (warn_uninit, warn_uninitialized_vars,
12394 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
12395 Move to tree-ssa-uninit.c.
12396 * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
12397 (has_undefined_value_p): New. Pass dependant parts of
12398 ssa_undefined_value_p.
12399 (uninit_undefined_value_p): Use has_undefined_value_p.
12400 (warn_uninit, warn_uninitialized_vars,
12401 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
12402 Move from tree-ssa.c.
12403 * tree-ssa.h: Adjust prototypes.
12405 2013-09-17 Jan Hubicka <jh@suse.cz>
12407 PR middle-end/58332
12408 * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
12409 * ipa-inline.c (can_inline_edge_p): Do not downgrade
12410 FUNCTION_NOT_OPTIMIZED.
12411 * ipa-inline-analysis.c (compute_inline_parameters): Function
12412 not optimized is not inlinable unless it is alwaysinline.
12413 (inline_analyze_function): Force calls in not optimized
12414 function not inlinable.
12416 2013-09-17 Jan Hubicka <jh@suse.cz>
12418 PR middle-end/58329
12419 * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
12421 * ipa.c (function_and_variable_visibility): Likewise.
12422 * ipa-profile.c (ipa_profile): Likewise.
12424 2013-09-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
12427 * cgraph.c (cgraph_function_body_availability): Check for ifunc
12428 attribute, and don't inline the resolver in this case.
12430 2013-09-17 Teresa Johnson <tejohnson@google.com>
12432 * coverage.c (get_coverage_counts): Add missing newline.
12434 2013-09-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12436 PR tree-optimization/58088
12437 * fold-const.c (mask_with_trailing_zeros): New function.
12438 (fold_binary_loc): Make sure we don't recurse infinitely
12439 when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
12440 Use mask_with_trailing_zeros where appropriate.
12442 2013-09-17 Yuri Rumyantsev <ysrumyan@gmail.com>
12444 * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
12445 of 'prev' var to get better distance estimation.
12447 2013-09-17 Eric Botcazou <ebotcazou@adacore.com>
12449 * tree-inline.h (struct copy_body_data): Add transform_parameter.
12450 * tree-inline.c (is_parameter_of): New predicate.
12451 (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
12452 a parameter has been remapped.
12453 (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
12454 (optimize_inline_calls): Initialize transform_parameter.
12455 (copy_gimple_seq_and_replace_locals): Likewise.
12456 (tree_function_versioning): Likewise.
12457 (maybe_inline_call_in_expr): Likewise.
12459 2013-09-17 Nick Clifton <nickc@redhat.com>
12461 * config/msp430/msp430-protos.h: Add prototypes for new functions.
12462 * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
12463 interrupt handlers.
12464 (is_attr_func): New function.
12465 (msp430_is_interrupt_func): New function.
12466 (is_naked_func): New function.
12467 (is_reentrant_func): New function.
12468 (is_critical_func): New function.
12469 (msp430_start_function): Add annotations for function attributes.
12470 (msp430_attr): New function.
12471 (msp430_attribute_table): New.
12472 (msp430_function_section): New function.
12473 (TARGET_ASM_FUNCTION_SECTION): Define.
12474 (msp430_builtin): New enum.
12475 (msp430_init_builtins): New function.
12476 (msp430_builtin_devl): New function.
12477 (msp430_expand_builtin): New function.
12478 (TARGET_INIT_BUILTINS): Define.
12479 (TARGET_EXPAND_BUILTINS): Define.
12480 (TARGET_BUILTIN_DECL): Define.
12481 (msp430_expand_prologue): Add support for naked, interrupt,
12482 critical and reentrant functions.
12483 (msp430_expand_epilogue): Likewise.
12484 (msp430_print_operand): Handle 'O' character.
12485 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
12487 * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
12488 UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
12489 (pushm): Use a 'n' rather than an 'i' constraint.
12490 (msp_return): Add generation of the interrupt return instruction.
12491 (disable_interrupts): New pattern.
12492 (enable_interrupts): New pattern.
12493 (push_intr_state): New pattern.
12494 (pop_intr_state): New pattern.
12495 (bic_SR): New pattern.
12496 (bis_SR): New pattern.
12497 * doc/extend.texi: Document MSP430 function attributes and builtin
12500 2013-09-17 Richard Biener <rguenther@suse.de>
12502 PR tree-optimization/58432
12503 * tree-loop-distribution.c (tree_loop_distribution): Also
12504 scan PHIs for outside loop uses and seed a partition from them.
12506 2013-09-17 Bin Cheng <bin.cheng@arm.com>
12508 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
12509 (restructure_reference): Call backtrace_base_for_ref.
12511 2013-09-17 Alan Modra <amodra@gmail.com>
12514 * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
12517 2013-09-16 DJ Delorie <dj@redhat.com>
12519 * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
12520 vregs location for RL78/G10.
12521 (rl78_expand_prologue): Avoid SEL on G10.
12522 (rl78_expand_epilogue): Likewise.
12523 (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
12524 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
12525 __RL78_G10__ when appropriate.
12526 (ASM_SPEC): Pass -mg10 along to the assembler.
12527 * config/rl78/rl78.md (sel_rb): Disable for G10.
12528 * config/rl78/rl78.opt: Add -mg10 option.
12529 * config/rl78/t-rl78: Add -mg10 multilib.
12531 2013-09-16 Xinliang David Li <davidxl@google.com>
12533 * tree-if-conv.c (main_tree_if_conversion): Check new flag.
12534 * omp-low.c (omp_max_vf): Ditto.
12535 (expand_omp_simd): Ditto.
12536 * tree-vectorizer.c (vectorize_loops): Ditto.
12537 (gate_vect_slp): Ditto.
12538 (gate_increase_alignment): Ditto.
12539 * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
12540 * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
12541 (gate_tree_vectorize): Name change.
12542 (tree_vectorize): Ditto.
12543 (pass_vectorize::gate): Call new function.
12544 (pass_vectorize::execute): Ditto.
12545 * opts.c: O3 default setting change.
12546 (finish_options): Check new flag.
12547 * doc/invoke.texi: Document new flags.
12548 * common.opt: New flags.
12550 2013-09-16 Andreas Schwab <schwab@linux-m68k.org>
12552 * doc/tm.texi.in (Cond Exec Macros): Remove node.
12553 (Condition Code): Don't reference it.
12554 * doc/tm.texi: Regenerate.
12556 2013-09-16 Vladimir Makarov <vmakarov@redhat.com>
12558 PR middle-end/58418
12559 * lra-constraints.c (undo_optional_reloads): Consider all optional
12560 reload even if it did not get a hard reg.
12562 2013-09-16 Teresa Johnson <tejohnson@google.com>
12564 * dumpfile.c (dump_loc): Remove newline emission.
12565 * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
12566 emission to dump_printf_loc calls where missing.
12567 (vect_mark_for_runtime_alias_test): Ditto.
12568 (vect_analyze_data_ref_dependence): Ditto.
12569 (vect_analyze_data_ref_dependences): Ditto.
12570 (vect_slp_analyze_data_ref_dependence): Ditto.
12571 (vect_slp_analyze_data_ref_dependences): Ditto.
12572 (vect_compute_data_ref_alignment): Ditto.
12573 (vect_update_misalignment_for_peel): Ditto.
12574 (vect_verify_datarefs_alignment): Ditto.
12575 (vector_alignment_reachable_p): Ditto.
12576 (vect_get_data_access_cost): Ditto.
12577 (vect_enhance_data_refs_alignment): Ditto.
12578 (vect_find_same_alignment_drs): Ditto.
12579 (vect_analyze_data_refs_alignment): Ditto.
12580 (vect_analyze_group_access): Ditto.
12581 (vect_analyze_data_ref_access): Ditto.
12582 (vect_analyze_data_ref_accesses): Ditto.
12583 (vect_prune_runtime_alias_test_list): Ditto.
12584 (vect_analyze_data_refs): Ditto.
12585 (vect_create_addr_base_for_vector_ref): Ditto.
12586 (vect_create_data_ref_ptr): Ditto.
12587 (vect_grouped_store_supported): Ditto.
12588 (vect_grouped_load_supported): Ditto.
12589 * value-prof.c (check_counter): Ditto.
12590 (check_ic_target): Ditto.
12591 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
12592 (vect_recog_widen_mult_pattern): Ditto.
12593 (vect_recog_widen_sum_pattern): Ditto.
12594 (vect_recog_over_widening_pattern): Ditto.
12595 (vect_recog_widen_shift_pattern): Ditto.
12596 (vect_recog_rotate_pattern): Ditto.
12597 (vect_recog_vector_vector_shift_pattern): Ditto.
12598 (vect_recog_divmod_pattern): Ditto.
12599 (vect_recog_mixed_size_cond_pattern): Ditto.
12600 (vect_recog_bool_pattern): Ditto.
12601 (vect_pattern_recog_1): Ditto.
12602 (vect_pattern_recog): Ditto.
12603 * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
12604 (vect_is_simple_iv_evolution): Ditto.
12605 (vect_analyze_scalar_cycles_1): Ditto.
12606 (vect_get_loop_niters): Ditto.
12607 (vect_analyze_loop_1): Ditto.
12608 (vect_analyze_loop_form): Ditto.
12609 (vect_analyze_loop_operations): Ditto.
12610 (vect_analyze_loop_2): Ditto.
12611 (vect_analyze_loop): Ditto.
12612 (report_vect_op): Ditto.
12613 (vect_is_slp_reduction): Ditto.
12614 (vect_is_simple_reduction_1): Ditto.
12615 (vect_get_known_peeling_cost): Ditto.
12616 (vect_estimate_min_profitable_iters): Ditto.
12617 (vect_model_reduction_cost): Ditto.
12618 (vect_model_induction_cost): Ditto.
12619 (get_initial_def_for_induction): Ditto.
12620 (vect_create_epilog_for_reduction): Ditto.
12621 (vectorizable_reduction): Ditto.
12622 (vectorizable_induction): Ditto.
12623 (vectorizable_live_operation): Ditto.
12624 (vect_loop_kill_debug_uses): Ditto.
12625 (vect_transform_loop): Ditto.
12626 * tree-vect-stmts.c (vect_mark_relevant): Ditto.
12627 (vect_stmt_relevant_p): Ditto.
12628 (process_use): Ditto.
12629 (vect_mark_stmts_to_be_vectorized): Ditto.
12630 (vect_model_simple_cost): Ditto.
12631 (vect_model_promotion_demotion_cost): Ditto.
12632 (vect_model_store_cost): Ditto.
12633 (vect_get_store_cost): Ditto.
12634 (vect_model_load_cost): Ditto.
12635 (vect_get_load_cost): Ditto.
12636 (vect_init_vector_1): Ditto.
12637 (vect_get_vec_def_for_operand): Ditto.
12638 (vect_finish_stmt_generation): Ditto.
12639 (vectorizable_call): Ditto.
12640 (vectorizable_conversion): Ditto.
12641 (vectorizable_assignment): Ditto.
12642 (vectorizable_shift): Ditto.
12643 (vectorizable_operation): Ditto.
12644 (vectorizable_store): Ditto.
12645 (vectorizable_load): Ditto.
12646 (vectorizable_condition): Ditto.
12647 (vect_analyze_stmt): Ditto.
12648 (vect_transform_stmt): Ditto.
12649 (vect_is_simple_use): Ditto.
12650 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
12651 (vect_can_advance_ivs_p): Ditto.
12652 (vect_update_ivs_after_vectorizer): Ditto.
12653 (vect_do_peeling_for_loop_bound): Ditto.
12654 (vect_gen_niters_for_prolog_loop): Ditto.
12655 (vect_update_inits_of_drs): Ditto.
12656 (vect_create_cond_for_alias_checks): Ditto.
12657 * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
12658 (vect_build_slp_tree_1): Ditto.
12659 (vect_supported_load_permutation_p): Ditto.
12660 (vect_analyze_slp_instance): Ditto.
12661 (vect_analyze_slp): Ditto.
12662 (vect_make_slp_decision): Ditto.
12663 (vect_detect_hybrid_slp): Ditto.
12664 (vect_bb_vectorization_profitable_p): Ditto.
12665 (vect_slp_analyze_bb_1): Ditto.
12666 (vect_update_slp_costs_according_to_vf): Ditto.
12667 (vect_get_mask_element): Ditto.
12668 (vect_transform_slp_perm_load): Ditto.
12669 (vect_schedule_slp_instance): Ditto.
12670 (vect_schedule_slp): Ditto.
12671 (vect_slp_transform_bb): Ditto.
12672 * profile.c (read_profile_edge_counts): Ditto.
12673 (compute_branch_probabilities): Ditto.
12674 * coverage.c (get_coverage_counts): Ditto.
12676 2013-09-16 Diego Novillo <dnovillo@google.com>
12678 * tree-core.h: Add missing comment lines from refactoring of tree.h.
12680 2013-09-16 Jan Hubicka <jh@suse.cz>
12682 * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
12683 abstract functions; for static functions check the presence of body.
12685 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
12687 * config/aarch64/aarch64-simd-builtins.def (fma): New.
12688 * config/aarch64/aarch64-simd.md
12689 (aarch64_mla_elt<mode>): New.
12690 (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
12691 (aarch64_mls_elt<mode>): Likewise.
12692 (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
12693 (aarch64_fma4_elt<mode>): Likewise.
12694 (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
12695 (aarch64_fma4_elt_to_128v2df): Likewise.
12696 (aarch64_fma4_elt_to_64df): Likewise.
12697 (fnma<mode>4): Likewise.
12698 (aarch64_fnma4_elt<mode>): Likewise.
12699 (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
12700 (aarch64_fnma4_elt_to_128v2df): Likewise.
12701 (aarch64_fnma4_elt_to_64df): Likewise.
12702 * config/aarch64/iterators.md (VDQSF): New.
12703 * config/aarch64/arm_neon.h
12704 (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
12705 (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
12707 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
12709 * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
12710 (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
12711 (aarch64_mul3_elt_to_128df): Likewise.
12712 (aarch64_mul3_elt_to_64v2df): Likewise.
12713 * config/aarch64/iterators.md (VEL): Also handle DFmode.
12715 (VMUL_CHANGE_NLANES) Likewise.
12718 * config/aarch64/arm_neon.h
12719 (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
12721 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
12723 * config/aarch64/arm_neon.h
12724 (vcvtx_high_f32_f64): Fix parameters.
12726 2013-09-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12727 Uros Bizjak <ubizjak@gmail.com>
12729 * config/alpha.c: Include tree-ssanames.h.
12731 2013-09-16 Richard Biener <rguenther@suse.de>
12733 * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
12734 (dot_rdg_1): Handle control_dd.
12735 (create_edge_for_control_dependence): New function.
12736 (create_rdg_edges): Add control dependences if asked for.
12737 (build_rdg): Likewise.
12738 (generate_loops_for_partition): If there are not necessary
12739 control stmts remove all their dependencies.
12740 (collect_condition_stmts, rdg_flag_loop_exits): Remove.
12741 (distribute_loop): Pass on control dependences.
12742 (tree_loop_distribution): Compute control dependences and remove
12743 restriction on number of loop nodes.
12745 2013-09-16 Jakub Jelinek <jakub@redhat.com>
12747 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
12748 for internal calls.
12750 2013-09-16 Richard Sandiford <rdsandiford@googlemail.com>
12752 * cse.c (try_const_anchors): Punt on CC modes.
12754 2013-09-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12756 * config/vax/constraints.md (T): Add missing CONSTANT_P check.
12758 2013-09-14 John David Anglin <danglin@gcc.gnu.org>
12761 * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
12762 calls to word_mode.
12764 2013-09-14 Iain Sandoe <iain@codesourcery.com>
12767 * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
12769 (darwin_objc1_section): Likewise.
12770 (darwin_file_end): Emit Image Info section when required.
12772 2013-09-14 Jan Hubicka <jh@suse.cz>
12774 * tree-into-ssa.c (gate_into_ssa): New.
12775 (pass_data_build_ssa): Use it.
12776 * cgraph.h (expand_thunk): Update prototype.
12777 * cgraphunit.c (analyze_function): Expand thunks early.
12778 (expand_thunk): Fix DECL_CONTEXT of reust_decl;
12779 build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
12780 set lowered flag; do not add new function.
12781 (assemble_thunks_and_aliases): Update.
12782 * tree-ssa.c (gate_init_datastructures): New gate.
12783 (pass_data_init_datastructures): Use it.
12785 2013-09-14 Iain Sandoe <iain@codesourcery.com>
12788 * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
12789 xmm register set described in the psABI.
12791 2013-09-13 Evgeny Gavrin <e.gavrin@samsung.com>
12793 * dwarf2out.c (should_emit_struct_debug): Add check
12794 for type_decl variable is not NULL.
12796 2013-09-13 Jacek Caban <jacek@codeweavers.com>
12798 * config.gcc: Use new winnt-c.c target hooks
12799 * config/t-winnt: New file
12800 * config/winnt-c.c: New file
12801 * doc/tm.texi.in: Document new hook
12802 * doc/tm.texi: Regenerated
12804 2013-09-13 Jan Hubicka <jh@suse.cz>
12806 PR middle-end/58094
12807 * ipa-inline.c (check_callers): New function.
12808 (check_caller_edge): Remove.
12809 (want_inline_function_to_all_callers_p): Also permit alises that are
12811 (inline_to_all_callers): Terminate the walk when devirtualization
12812 introduce new calls.
12814 2013-09-13 Jan Hubicka <jh@suse.cz>
12816 * ipa-inline-analysis.c (struct growth_data): Add node.
12817 (do_estimate_growth_1): Fix detection of recursion.
12819 2013-09-13 Jakub Jelinek <jakub@redhat.com>
12821 PR tree-optimization/58392
12822 * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
12823 to avoid shadowing of outer loop variable. If
12824 saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
12825 replace_by_duplicate_decl simduid of loops that have it set and
12826 set dest_cfun->has_simduid_loops and/or
12827 dest_cfun->has_force_vect_loops.
12828 * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
12829 instead of maybe_lookup_decl.
12830 * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
12831 Use id->blocks_to_copy instead of blocks_to_copy. Adjust recursive
12832 call. Copy over force_vect and copy and remap simduid. Set
12833 cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
12834 (copy_cfg_body): Remove blocks_to_copy argument. Use
12835 id->blocks_to_copy instead of blocks_to_copy. Adjust copy_loops
12836 caller. Don't set cfun->has_simduid_loops and/or
12837 cfun->has_force_vect_loops here.
12838 (copy_body): Remove blocks_to_copy argument. Adjust copy_cfg_body
12840 (expand_call_inline, tree_function_versioning): Adjust copy_body
12843 2013-09-13 Martin Jambor <mjambor@suse.cz>
12846 * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
12847 the assert if the edge was a speculative one.
12849 2013-09-13 Richard Biener <rguenther@suse.de>
12851 * tree-data-ref.h (known_dependences_p): Move here ...
12852 * tree-loop-distribution.c (known_dependences_p): ... from here.
12853 (dump_rdg_component, debug_rdg_component): Remove.
12854 (dump_rdg): Adjust.
12855 (generate_loops_for_partition): Use gimple_uid instead of
12856 relying on matching stmt visit order.
12857 (rdg_build_partitions): Take starting stmt vector.
12858 (ldist_gen): Merge into ...
12859 (distribute_loop): ... this function. Do not compute starting
12861 * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
12863 2013-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12865 * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
12866 Set type attribute correctly. Set predicable_short_it attribute.
12867 (cmpsi_shiftsi): Remove %? from output template.
12869 2013-09-13 Richard Biener <rguenther@suse.de>
12871 * tree-loop-distribution.c (struct rdg_component,
12872 rdg_defs_used_in_other_loops_p, free_rdg_components,
12873 rdg_build_components): Remove.
12874 (stmts_from_loop): Do not record virtual PHIs.
12875 (generate_loops_for_partition): Skip virtual PHIs.
12876 (build_rdg_partition_for_component): Rename to ...
12877 (build_rdg_partition_for_vertex): ... this and adjust.
12878 (rdg_build_partitions): Take a vector of starting vertices
12879 instead of components. Remove unnecessary leftover handling.
12880 (ldist_gen): Do not build components or record other stores.
12881 (distribute_loop): Do not distribute loops containing stmts
12884 2013-09-13 Christian Bruel <christian.bruel@st.com>
12887 * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
12889 2013-09-13 Kai Tietz <ktietz@redhat.com>
12891 * config.gcc: Separate cases for mingw and cygwin targets,
12892 and add 64-bit cygwin target case.
12894 * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
12895 dll-export inline-functions.
12896 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
12898 2013-09-13 Jeff Law <law@redhat.com>
12900 PR middle-end/58387
12902 2013-09-06 Jeff Law <law@redhat.com>
12904 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
12905 edge implied equivalences into successor phis.
12907 2013-09-12 DJ Delorie <dj@redhat.com>
12909 * config/rl78/rl78-virt.md: Change from | to \; for asm line
12912 2013-09-12 Brooks Moses <bmoses@google.com>
12915 * Makefile.in: Do not install driver binaries in $(target)/bin.
12917 2013-09-12 DJ Delorie <dj@redhat.com>
12919 * config/rl78/rl78.opt (mrelax): New.
12920 * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
12921 * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
12923 * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
12925 (rl78_expand_epilogue): Likewise.
12927 2013-09-12 Vladimir Makarov <vmakarov@redhat.com>
12929 PR middle-end/58335
12930 * lra-eliminations.c (remove_reg_equal_offset_note): New.
12931 (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
12932 pointer elimination with using remove_reg_equal_offset_note.
12934 2013-09-12 DJ Delorie <dj@redhat.com>
12936 * config/msp430/: New port.
12937 * config.gcc (msp430): Added.
12938 * doc/invoke.texi: Document MSP430 options.
12939 * doc/install.texi: Document msp430-elf
12940 * doc/md.texi: Document msp430-elf
12941 * doc/contrib.texi: Document msp430-elf
12943 * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
12946 2013-09-12 Martin Jambor <mjambor@suse.cz>
12949 * ipa-prop.c (remove_described_reference): Give up if the edge in the
12950 reference descriptor is NULL.
12951 (ipa_edge_removal_hook): If owning a reference descriptor, set its
12954 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
12956 * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
12957 (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
12958 num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
12959 * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
12960 make_temp_ssa_name): move to tree-ssanames.h
12961 * tree-ssa-alias.h: Move prototype.
12962 * tree-ssa.h: Include tree-ssanames.h.
12963 * tree-ssanames.c (FREE_SSANAMES): Move to here.
12964 * tree-ssanames.h: New. Move items from tree-flow*.h
12965 * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
12967 2013-09-12 Richard Biener <rguenther@suse.de>
12969 PR tree-optimization/58404
12970 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
12971 propagate non-invariant addresses into dereferences wrapped
12972 in component references.
12974 2013-09-12 Richard Biener <rguenther@suse.de>
12976 PR tree-optimization/58402
12977 * passes.def: Move pass_late_warn_uninitialized later.
12979 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
12981 * tree-ssa.h: New. Move content from tree-flow.h and
12982 tree-flow-inline.h.
12983 * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
12984 Move prototypes belonging to tree-ssa.c.
12985 * tree-flow-inline.h (redirect_edge_var_map_def,
12986 redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
12988 * gimple.h: Adjust prototypes.
12989 * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
12991 * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
12992 * tree.h: Move prototype to tree-ssa.h.
12993 * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
12994 * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
12995 * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
12996 cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
12997 cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
12998 ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
12999 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
13000 gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
13001 graphite-blocking.c, graphite-clast-to-gimple.c,
13002 graphite-dependences.c, graphite-interchange.c,
13003 graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
13004 graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
13005 ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
13006 ipa-reference.c, ipa-split.c, ipa-utils.c,
13007 loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
13008 lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
13009 passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
13010 tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
13011 tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
13012 tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
13013 tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
13014 tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
13015 tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
13016 tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
13017 tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
13018 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
13019 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
13020 tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
13021 value-prof.c, var-tracking.c,
13022 varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
13024 2013-09-12 Richard Biener <rguenther@suse.de>
13026 PR tree-optimization/58396
13027 * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
13028 (build_rdg): Take a loop-nest parameter, fix memleaks.
13029 (distribute_loop): Compute loop-nest here and pass it to build_rdg.
13031 2013-09-12 Yuri Rumyantsev <ysrumyan@gmail.com>
13033 * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
13036 2013-09-12 Cameron McInally <cameron.mcinally@nyu.edu>
13038 * doc/extend.texi: Fix errors in x86 FMA builtin naming.
13039 The FMA instruction names should have a 'v' prefix.
13041 2013-09-12 Richard Biener <rguenther@suse.de>
13043 * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
13044 (dot_rdg): Use popen instead of system in optional code.
13045 (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
13046 (already_processed_vertex_p): Adjust.
13047 (has_anti_or_output_dependence, predecessor_has_mem_write,
13048 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
13049 rdg_flag_uses): Remove.
13050 (rdg_flag_vertex): Simplify.
13051 (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
13053 (build_rdg_partition_for_component): Process the first vertex
13054 of a component only.
13055 (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
13057 2013-09-12 Alan Modra <amodra@gmail.com>
13059 * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
13061 2013-09-11 DJ Delorie <dj@redhat.com>
13062 Nick Clifton <nickc@redhat.com>
13064 * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
13065 (rl78_stack_based_mem): New.
13066 * config/rl78/constraints.md (Iv08): New.
13075 * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
13077 (movsi): Change from expand to insn-and-split.
13078 (ashrsi3): Clobber AX.
13082 * config/rl78/rl78.md (CC_REG): Fix.
13083 (addsi3): Allow memory and immediate operands.
13084 (addsi3_internal): Split into...
13085 (addsi3_internal_virt): ...new, and ...
13086 (addsi3_internal_real): ...new.
13088 (subsi3_internal_virt): New.
13089 (subsi3_internal_real): New.
13090 (mulsi3): Add memory operand.
13091 (mulsi3_rl78): Likewise.
13092 (mulsi3_g13): Likewise.
13093 * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
13094 (cbranchqi4_real): Add more constraint options.
13095 (cbranchhi4_real): Expand pattern.
13096 (cbranchhi4_real_signed): New.
13097 (cbranchhi4_real_inverted): New.
13098 (cbranchsi4_real_lt): New.
13099 (cbranchsi4_real_ge): New.
13100 (cbranchsi4_real_signed): New.
13101 (cbranchsi4_real): New.
13103 * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
13105 (lshrsi3_virt): Likewise.
13106 (ashlsi3_virt): Likewise.
13107 (cbranchqi4_virt_signed): New.
13108 (cbranchhi4_virt_signed): New.
13109 (cbranchsi4_virt): New.
13110 * config/rl78/rl78.c: Whitespace fixes throughout.
13111 (move_elim_pass): New.
13112 (pass_data_rl78_move_elim): New.
13113 (pass_rl78_move_elim): New.
13114 (make_pass_rl78_move_elim): New.
13115 (rl78_devirt_info): Run devirt earlier.
13116 (rl78_move_elim_info): New.
13117 (rl78_asm_file_start): Register it.
13118 (rl78_split_movsi): New.
13119 (rl78_as_legitimate_address): Allow virtual base registers when
13121 (rl78_addr_space_convert): Remove spurious debug stuff.
13122 (rl78_print_operand_1): Add z,s,S,r,E modifiers.
13123 (rl78_print_operand): More cases for not printing '#'.
13124 (rl78_expand_compare): Remove most of the logic.
13125 (content_memory): New.
13126 (clear_content_memory): New.
13127 (get_content_index): New.
13128 (get_content_name): New.
13129 (display_content_memory): New.
13130 (update_content): New.
13131 (record_content): New.
13132 (already_contains): New.
13133 (insn_ok_now): Re-recog insns with virtual registers.
13134 (add_postponed_content_update): New.
13135 (process_postponed_content_update): New.
13136 (gen_and_emit_move): New.
13137 (transcode_memory_rtx): Record new location content.
13138 Use gen_and_emit_move.
13139 (force_into_acc): New.
13140 (move_to_acc): Use gen_and_emit_move.
13141 (move_from_acc): Likewise.
13142 (move_acc_to_reg): Likewise.
13143 (move_to_x): Likewise.
13144 (move_to_hl): Likewise.
13145 (move_to_de): Likewise.
13146 (rl78_alloc_physical_registers_op1): Record location content.
13147 (has_constraint): New.
13148 (rl78_alloc_physical_registers_op2): Record location content.
13149 Optimize use of HL.
13150 (rl78_alloc_physical_registers_ro1): Likewise.
13151 (rl78_alloc_physical_registers_cmp): Likewise.
13152 (rl78_alloc_physical_registers_umul): Likewise.
13153 (rl78_alloc_address_registers_macax): New.
13154 (rl78_alloc_physical_registers): Initialize and set location
13155 content memory as needed.
13156 (rl78_reorg): Make sure split2 is called.
13157 (rl78_rtx_costs): New.
13159 2013-09-11 Richard Sandiford <rdsandiford@googlemail.com>
13161 * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
13162 for (not (neg ...)) and (neg (not ...)) cases.
13164 2013-09-11 Richard Biener <rguenther@suse.de>
13166 PR middle-end/58377
13167 * passes.def: Split critical edges before late uninit warning passes.
13168 * tree-cfg.c (pass_split_crit_edges): Implement clone method.
13170 2013-09-11 Jakub Jelinek <jakub@redhat.com>
13172 PR tree-optimization/58385
13173 * fold-const.c (build_range_check): If both low and high are NULL,
13174 use omit_one_operand_loc to preserve exp side-effects.
13176 2013-09-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13178 * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
13180 2013-09-11 Richard Biener <rguenther@suse.de>
13182 * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
13183 dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
13184 dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
13185 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
13186 stmts_from_loop, known_dependences_p, build_empty_rdg,
13187 build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
13188 * tree-loop-distribution.c: ... here.
13189 * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
13190 RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
13191 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
13192 struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
13193 * tree-loop-distribution.c: ... here.
13194 * tree-loop-distribution.c: Include gimple-pretty-print.h.
13195 (struct partition_s): Add loops member.
13196 (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
13197 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
13198 build_rdg_partition_for_component, rdg_build_partitions): Adjust.
13200 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13201 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13202 Sergey Lega <sergey.s.lega@intel.com>
13203 Anna Tikhonova <anna.tikhonova@intel.com>
13204 Ilya Tocar <ilya.tocar@intel.com>
13205 Andrey Turetskiy <andrey.turetskiy@intel.com>
13206 Ilya Verbin <ilya.verbin@intel.com>
13207 Kirill Yukhin <kirill.yukhin@intel.com>
13208 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13210 * config/i386/constraints.md (k): New.
13212 * config/i386/i386.c (const regclass_map): Add new mask registers.
13213 (dbx_register_map): Ditto.
13214 (dbx64_register_map): Ditto.
13215 (svr4_dbx_register_map): Ditto.
13216 (ix86_conditional_register_usage): Squash mask registers if AVX512F is
13218 (ix86_preferred_reload_class): Disable constants for mask registers.
13219 (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
13220 (ix86_hard_regno_mode_ok): Support new mask registers.
13221 (x86_order_regs_for_local_alloc): Ditto.
13222 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
13223 (FIXED_REGISTERS): Add new mask registers.
13224 (CALL_USED_REGISTERS): Ditto.
13225 (REG_ALLOC_ORDER): Ditto.
13226 (VALID_MASK_REG_MODE): New.
13227 (FIRST_MASK_REG): Ditto.
13228 (LAST_MASK_REG): Ditto.
13229 (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
13230 (MAYBE_MASK_CLASS_P): New.
13231 (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
13232 (REG_CLASS_CONTENTS): Ditto.
13233 (MASK_REGNO_P): New.
13234 (ANY_MASK_REG_P): Ditto.
13235 (HI_REGISTER_NAMES): Add new mask registers.
13236 * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
13237 MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
13239 (attribute "type"): Add mskmov, msklog.
13240 (attribute "length_immediate"): Support them.
13241 (attribute "memory"): Ditto.
13242 (attribute "prefix_0f"): Ditto.
13243 (*movhi_internal): Support new mask registers.
13244 (*movqi_internal): Ditto.
13245 (define_split): Split out clobber pattern is a logic
13246 insn on mask registers.
13247 (*k<logic><mode>): New.
13248 (*andhi_1): Extend to support mask regs.
13249 (*andqi_1): Extend to support mask regs.
13250 (kandn<mode>): New.
13251 (define_split): Split and-not to and and not if operands
13253 (*<code><mode>_1): Separate HI mode to new pattern...
13254 (*<code>hi_1): This.
13255 (*<code>qi_1): Extend to support mask regs.
13256 (kxnor<mode>): New.
13257 (kortestzhi): Ditto.
13258 (kortestchi): Ditto.
13260 (*one_cmpl<mode>2_1): Remove HImode and handle it...
13261 (*one_cmplhi2_1): ...Here, now with mask registers support.
13262 (*one_cmplqi2_1): Support new mask registers.
13263 (HI/QImode arithmetics splitter): Don't split if mask registers
13265 (HI/QImode not splitter): Ditto.
13266 * config/i386/predicated.md (mask_reg_operand): New.
13267 (general_reg_operand): Ditto.
13269 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13271 * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
13272 * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
13274 2013-09-10 Jeff Law <law@redhat.com>
13276 PR tree-optimization/58380
13277 * tree-ssa-threadupdate.c (thread_block): Recognize another case
13278 of threading through a buried loop header.
13280 * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
13281 return value for single successor case.
13283 2013-09-10 Jan Hubicka <jh@suse.cz>
13285 * ipa-devirt.c (ipa_devirt): Enable with LTO.
13287 2013-09-10 Richard Earnshaw <rearnsha@arm.com>
13290 * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
13291 support conditional execution.
13292 (combine_vcvt_f64_<FCVTI32typename>): Likewise.
13294 2013-09-10 Vladimir Makarov <vmakarov@redhat.com>
13296 * lra.c (lra): Clear lra_optional_reload_pseudos before every
13298 * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
13299 Check destination too to check move insn.
13300 (undo_optional_reloads): Add check that the original peudo did not
13301 changed its allocation and the optional reload was inherited on last
13302 inheritance pass. Break loop after deciding to keep optional reload.
13303 (lra_undo_inheritance): Add check that inherited pseudo still in
13306 2013-09-10 James Greenhalgh <james.greenhalgh@arm.com>
13308 * config/aarch64/aarch64.md (generic_sched): New.
13309 * config/aarch64/aarch64-generic.md (load): Make conditional
13310 on generic_sched attribute.
13311 (nonload): Likewise.
13313 2013-09-10 Jan Hubicka <jh@suse.cz>
13315 * lto-cgraph.c: Include ipa-utils.h.
13316 (compute_ltrans_boundary): Also add possible targets into the boundary.
13318 2013-09-10 Jan Hubicka <jh@suse.cz>
13320 * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
13321 VAR_DECL of vtable rather than full expression.
13323 2013-09-10 Jan Hubicka <jh@suse.cz>
13324 Paolo Carlini <paolo.carlini@oracle.com>
13326 * cgraphunit.c (analyze_functions): Save input_location, set it
13327 to UNKNOWN_LOCATION and restore it at the end.
13329 2013-09-10 Martin Jambor <mjambor@suse.cz>
13331 * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
13332 represented by a thunk.
13334 2013-09-10 Jeff Law <law@redhat.com>
13336 PR tree-optimization/58343
13337 * tree-ssa-threadupdate.c (thread_block): Identify and disable
13338 jump threading requests through loop headers buried in the middle
13339 of a jump threading path.
13341 * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
13342 in return value/type.
13344 2013-09-10 Jakub Jelinek <jakub@redhat.com>
13346 PR rtl-optimization/58365
13347 * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
13348 resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
13351 2013-09-10 Richard Biener <rguenther@suse.de>
13353 * tree-data-ref.h (build_rdg): Drop all parameters but loop.
13354 * tree-data-ref.c (create_rdg_vertices): Collect all data
13355 references, signal failure to the caller, use data-ref API.
13356 (build_rdg): Compute data references only once. Maintain lifetime
13357 of data references and data dependences from within RDG.
13358 (free_rdg): Free dependence relations.
13359 * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
13360 inventing extra dependences.
13361 (distribute_loop): Update for RDG API changes.
13363 2013-09-10 Kai Tietz <ktietz@redhat.com>
13365 * doc/invoke.texi (fms-extensions): Document changed
13366 behavior for ms-abi targets.
13367 * config/i386/i386.c (ix86_option_override_internal):
13368 Set default value of option -fms-extension for ms-abi targets.
13370 2013-09-10 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
13372 * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
13374 2013-09-10 Alan Modra <amodra@gmail.com>
13377 * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
13379 2013-09-10 Alan Modra <amodra@gmail.com>
13381 * config/rs6000/predicates.md (add_cint_operand): New.
13382 (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
13383 * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
13384 using add_cint_operand.
13385 (largetoc_high_plus_aix): Likewise.
13387 2013-09-09 Jakub Jelinek <jakub@redhat.com>
13389 PR tree-optimization/58364
13390 * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
13391 BOOLEAN_TYPE, only invert in_p and continue with arg0 if
13392 the current range can't be an unconditional true or false.
13394 2013-09-09 James Greenhalgh <james.greenhalgh@arm.com>
13396 * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
13398 2013-09-09 Uros Bizjak <ubizjak@gmail.com>
13400 * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
13402 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
13405 * doc/invoke.texi (-Wdelete-incomplete): Document it.
13407 2013-09-09 Ian Bolton <ian.bolton@arm.com>
13409 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
13410 NO_REGS for immediate that can't be moved directly into FP_REGS.
13412 2013-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13414 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
13415 comparison with negated operand.
13416 * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
13419 2013-09-09 Richard Biener <rguenther@suse.de>
13421 PR middle-end/58326
13422 * cfgloopmanip.c (fix_bb_placements): When fixing the placement
13423 of a subloop record all its block as affecting loop-closed SSA form.
13425 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
13427 * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
13428 of an rtx/bitpos pair.
13429 (store_fixed_bit_field): Update accordingly.
13431 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
13433 * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
13435 * builtins.c (expand_errno_check): Likewise.
13436 * dwarf2cfi.c (init_return_column_size): Likewise.
13437 * except.c (sjlj_mark_call_sites): Likewise.
13438 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
13439 * lra-constraints.c (emit_inc): Likewise.
13440 * ree.c (combine_set_extension): Likewise.
13441 * regmove.c (fixup_match_2): Likewise.
13442 * reload1.c (inc_for_reload): Likewise.
13444 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
13446 * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
13447 (force_to_mode, simplify_shift_const_1, simplify_comparison):
13448 Use gen_int_mode with the mode of the associated simplify_* call.
13449 * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
13450 * expmed.c (expand_shift_1): Likewise.
13451 * function.c (instantiate_virtual_regs_in_insn): Likewise.
13452 * loop-iv.c (iv_number_of_iterations): Likewise.
13453 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
13454 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
13456 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
13458 * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
13459 of the associated expand_* call.
13460 (asan_emit_stack_protection): Likewise.
13461 * builtins.c (round_trampoline_addr): Likewise.
13462 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
13463 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
13464 (emit_store_flag): Likewise.
13465 * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
13466 (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
13468 * function.c (instantiate_virtual_regs_in_insn): Likewise.
13469 * ifcvt.c (noce_try_store_flag_constants): Likewise.
13470 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
13471 * modulo-sched.c (generate_prolog_epilog): Likewise.
13472 * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
13473 (expand_ctz, expand_ffs, expand_unop): Likewise.
13475 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
13477 * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
13478 of the associated gen_rtx_* call.
13479 * caller-save.c (init_caller_save): Likewise.
13480 * combine.c (find_split_point, make_extraction): Likewise.
13481 (make_compound_operation): Likewise.
13482 * dwarf2out.c (mem_loc_descriptor): Likewise.
13483 * explow.c (plus_constant, probe_stack_range): Likewise.
13484 * expmed.c (expand_mult_const): Likewise.
13485 * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
13486 * reload1.c (init_reload): Likewise.
13487 * valtrack.c (cleanup_auto_inc_dec): Likewise.
13488 * var-tracking.c (adjust_mems): Likewise.
13489 * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
13490 rather than gen_rtx_fmt_ee.
13492 2013-09-09 Jan Hubicka <jh@suse.cz>
13494 PR middle-end/58294
13495 * value-prof.c (gimple_ic): Copy also abnormal edges.
13497 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
13499 * asan.c (asan_shadow_cst): Use gen_int_mode.
13501 2013-09-08 Jan Hubicka <jh@suse.cz>
13503 * ipa-profile.c: Add toplevel comment.
13504 (ipa_propagate_frequency_1): Be more conservative when profile is read.
13505 (contains_hot_call_p): New function.
13506 (ipa_propagate_frequency): Set frequencies based on counts when
13508 * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
13509 profile; do not tamper with profile after inlining if it is read.
13511 2013-09-08 Jan Hubicka <jh@suse.cz>
13513 * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
13516 2013-09-08 Jan Hubicka <jh@suse.cz>
13518 * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
13519 summary generation.
13521 2013-09-08 Jeff Law <law@redhat.com>
13524 * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
13527 2013-09-08 Andi Kleen <ak@linux.intel.com>
13529 * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
13531 2013-09-08 Jan Hubicka <jh@suse.cz>
13533 * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
13535 2013-09-08 Richard Sandiford <rdsandiford@googlemail.com>
13537 * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
13538 for non-debug insns.
13539 * lra.c (new_insn_reg): Take the containing insn as a parameter.
13540 Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
13541 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
13544 2013-09-08 Jan Hubicka <jh@suse.cz>
13546 * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
13547 targets and devirtualize to BUILT_IN_UNREACHABLE.
13548 * timevar.def (TV_IPA_UNREACHABLE): New timevar.
13549 * ipa.c (walk_polymorphic_call_targets): New function.
13550 (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
13551 functions; use the new timevar.
13552 * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
13553 was removed from the program.
13554 (record_binfo): If BINFO corresponds to an anonymous namespace, we may
13555 not consider it in the walk when its vtable is dead.
13556 (possible_polymorphic_call_targets_1): Pass anonymous flag to
13558 (devirt_variable_node_removal_hook): New function.
13559 (possible_polymorphic_call_targets): Also register
13560 devirt_variable_node_removal_hook.
13561 (ipa_devirt): Do not do non-speculative devirtualization.
13562 (gate_ipa_devirt): One execute if devirtualizing speculatively.
13564 2013-09-08 Jan Hubicka <jh@suse.cz>
13566 * cgraph.h (varpool_node_hook, varpool_node_hook_list,
13567 varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
13568 varpool_remove_variable_insertion_hook): Declare.
13569 * varpool.c (varpool_node_hook_list): New structure.
13570 (first_varpool_node_removal_hook,
13571 first_varpool_variable_insertion_hook): New variables.
13572 (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
13573 varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
13574 varpool_remove_variable_insertion_hook,
13575 varpool_call_variable_insertion_hooks): New functions.
13576 (varpool_remove_node): Use it.
13578 2013-09-08 Paolo Carlini <paolo.carlini@oracle.com>
13581 * diagnostic.c (diagnostic_build_prefix): When s.file is
13582 "<built-in>" don't output line and column numbers.
13584 2013-09-06 Jan Hubicka <jh@suse.cz>
13586 * cgraphunit.c (expand_thunk): Get body before touching arguments.
13587 * lto-streamer-out.c: Stream thunks, too.
13588 * lto-streamer-in.c (input_function): Pop cfun here
13589 (lto_read_body): Instead of here.
13591 2013-09-06 Caroline Tice <cmtice@google.com>
13593 * doc/install.texi: Add documentation for the --enable-vtable-verify
13594 and the --disable-libvtv configure options.
13596 2013-09-06 Jeff Law <law@redhat.com>
13598 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
13599 edge implied equivalences into successor phis.
13601 2013-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
13603 * resource.c (mark_referenced_resources): Handle COND_EXEC.
13605 2013-09-06 Claudiu Zissulescu <claziss@synopsys.com>
13607 * resource.c (mark_target_live_regs): Compute resources taking
13608 into account if a call is predicated or not.
13610 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
13612 * toplev.c (output_stack_usage): Be prepared for suffixes created by
13613 the compiler in the function names.
13615 2013-09-06 Jan Hubicka <jh@suse.cz>
13617 PR middle-end/58094
13618 * ipa-inline.c (has_caller_p): New function.
13619 (want_inline_function_to_all_callers_p): Use it.
13620 (sum_callers, inline_to_all_callers): Break out from ...
13621 (ipa_inline): ... here.
13623 2013-09-06 Jan Hubicka <jh@suse.cz>
13625 * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
13626 only when AVX is enabled.
13628 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
13630 * config/aarch64/aarch64.md
13631 (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
13632 is fpsimd_<load/store>2.
13633 (load_pair<mode>): Likewise.
13634 (store_pair<mode>): Likewise.
13636 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
13638 * config/arm/types.md (type): Add "mrs" type.
13639 * config/aarch64/aarch64.md
13640 (aarch64_load_tp_hard): Make type "mrs".
13641 * config/arm/arm.md
13642 (load_tp_hard): Make type "mrs".
13643 * config/arm/cortex-a15.md: Update with new attributes.
13644 * config/arm/cortex-a5.md: Update with new attributes.
13645 * config/arm/cortex-a53.md: Update with new attributes.
13646 * config/arm/cortex-a7.md: Update with new attributes.
13647 * config/arm/cortex-a8.md: Update with new attributes.
13648 * config/arm/cortex-a9.md: Update with new attributes.
13649 * config/arm/cortex-m4.md: Update with new attributes.
13650 * config/arm/cortex-r4.md: Update with new attributes.
13651 * config/arm/fa526.md: Update with new attributes.
13652 * config/arm/fa606te.md: Update with new attributes.
13653 * config/arm/fa626te.md: Update with new attributes.
13654 * config/arm/fa726te.md: Update with new attributes.
13656 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
13658 * config/aarch64/aarch64.md
13659 (*movti_aarch64): Use "multiple" for type where v8type is "move2".
13660 (*movtf_aarch64): Likewise.
13661 * config/arm/arm.md
13662 (thumb1_movdi_insn): Use "multiple" for type where more than one
13663 instruction is used for a move.
13664 (*arm32_movhf): Likewise.
13665 (*thumb_movdf_insn): Likewise.
13667 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
13669 * config/arm/types.md (type): Rename fcpys to fmov.
13670 * config/arm/vfp.md
13671 (*arm_movsi_vfp): Rename type fcpys as fmov.
13672 (*thumb2_movsi_vfp): Likewise
13673 (*movhf_vfp_neon): Likewise
13674 (*movhf_vfp): Likewise
13675 (*movsf_vfp): Likewise
13676 (*thumb2_movsf_vfp): Likewise
13677 (*movsfcc_vfp): Likewise
13678 (*thumb2_movsfcc_vfp): Likewise
13679 * config/aarch64/aarch64-simd.md
13680 (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
13681 * config/aarch64/aarch64.md
13682 (*movsi_aarch64): Replace type mov_reg with fmovs.
13683 (*movdi_aarch64): Likewise
13684 (*movsf_aarch64): Likewise
13685 (*movdf_aarch64): Likewise
13687 (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
13688 * config/arm/iwmmxt.md
13689 (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
13690 * config/arm/arm1020e.md: Update with new attributes.
13691 * config/arm/cortex-a15-neon.md: Update with new attributes.
13692 * config/arm/cortex-a5.md: Update with new attributes.
13693 * config/arm/cortex-a53.md: Update with new attributes.
13694 * config/arm/cortex-a7.md: Update with new attributes.
13695 * config/arm/cortex-a8-neon.md: Update with new attributes.
13696 * config/arm/cortex-a9.md: Update with new attributes.
13697 * config/arm/cortex-m4-fpu.md: Update with new attributes.
13698 * config/arm/cortex-r4f.md: Update with new attributes.
13699 * config/arm/marvell-pj4.md: Update with new attributes.
13700 * config/arm/vfp11.md: Update with new attributes.
13702 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
13704 * config/aarch64/aarch64.md
13705 (*madd<mode>): Fix type attribute.
13706 (*maddsi_uxtw): Likewise.
13707 (*msub<mode>): Likewise.
13708 (*msubsi_uxtw): Likewise.
13709 (<su_optab>maddsidi4): Likewise.
13710 (<su_optab>msubsidi4): Likewise.
13712 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
13714 * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
13715 * config/arm/arm.md (core_cycles): Remove fdiv.
13716 * config/arm/vfp.md:
13717 (*sqrtsf2_vfp): Update for attribute changes.
13718 (*sqrtdf2_vfp): Likewise.
13719 * config/aarch64/aarch64.md:
13720 (sqrt<mode>2): Update for attribute changes.
13721 * config/arm/arm1020e.md: Update with new attributes.
13722 * config/arm/cortex-a15-neon.md: Update with new attributes.
13723 * config/arm/cortex-a5.md: Update with new attributes.
13724 * config/arm/cortex-a53.md: Update with new attributes.
13725 * config/arm/cortex-a7.md: Update with new attributes.
13726 * config/arm/cortex-a8-neon.md: Update with new attributes.
13727 * config/arm/cortex-a9.md: Update with new attributes.
13728 * config/arm/cortex-m4-fpu.md: Update with new attributes.
13729 * config/arm/cortex-r4f.md: Update with new attributes.
13730 * config/arm/marvell-pj4.md: Update with new attributes.
13731 * config/arm/vfp11.md: Update with new attributes.
13733 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
13735 * config/arm/types.md
13736 (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
13737 * config/aarch64/aarch64.md
13738 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
13740 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
13741 (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
13742 (float<GPI:mode><GPF:mode>2): Likewise.
13743 * config/arm/vfp.md
13744 (*truncsisf2_vfp): Update with new attributes.
13745 (*truncsidf2_vfp): Likewise.
13746 (fixuns_truncsfsi2): Likewise.
13747 (fixuns_truncdfsi2): Likewise.
13748 (*floatsisf2_vfp): Likewise.
13749 (*floatsidf2_vfp): Likewise.
13750 (floatunssisf2): Likewise.
13751 (floatunssidf2): Likewise.
13752 (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
13753 (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
13754 * config/arm/arm1020e.md: Update with new attributes.
13755 * config/arm/cortex-a15-neon.md: Update with new attributes.
13756 * config/arm/cortex-a5.md: Update with new attributes.
13757 * config/arm/cortex-a53.md: Update with new attributes.
13758 * config/arm/cortex-a7.md: Update with new attributes.
13759 * config/arm/cortex-a8-neon.md: Update with new attributes.
13760 * config/arm/cortex-a9.md: Update with new attributes.
13761 * config/arm/cortex-m4-fpu.md: Update with new attributes.
13762 * config/arm/cortex-r4f.md: Update with new attributes.
13763 * config/arm/marvell-pj4.md: Update with new attributes.
13764 * config/arm/vfp11.md: Update with new attributes.
13766 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
13768 * config/aarch64/arm_neon.h
13769 (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
13770 (vqtbx<1,2,3,4><q>_s8): Likewise.
13772 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
13774 * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
13775 * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
13776 (add<mode>3): Add type attribute.
13777 (add<mode>3): Likewise.
13778 (usadd<mode>3): Likewise.
13779 (ssadd<mode>3): Likewise.
13780 (sub<mode>3): Likewise.
13781 (sub<mode>3): Likewise.
13782 (ussub<mode>3): Likewise.
13783 (sssub<mode>3): Likewise.
13784 (ssmulsa3): Likewise.
13785 (usmulusa3): Likewise.
13786 (arm_usatsihi): Likewise.
13787 * config/arm/vfp.md
13788 (*movdi_vfp): Add types for all instructions.
13789 (*movdi_vfp_cortexa8): Likewise.
13790 (*movhf_vfp_neon): Likewise.
13791 (*movhf_vfp): Likewise.
13792 (*movdf_vfp): Likewise.
13793 (*thumb2_movdf_vfp): Likewise.
13794 (*thumb2_movdfcc_vfp): Likewise.
13795 * config/arm/arm.md: Add type attribute to all insn patterns.
13796 (*thumb1_adddi3): Add type attribute.
13797 (*arm_adddi3): Likewise.
13798 (*adddi_sesidi_di): Likewise.
13799 (*adddi_zesidi_di): Likewise.
13800 (*thumb1_addsi3): Likewise.
13801 (addsi3_compare0): Likewise.
13802 (*addsi3_compare0_scratch): Likewise.
13803 (*compare_negsi_si): Likewise.
13804 (cmpsi2_addneg): Likewise.
13805 (*addsi3_carryin_<optab>): Likewise.
13806 (*addsi3_carryin_alt2_<optab>): Likewise.
13807 (*addsi3_carryin_clobercc_<optab>): Likewise.
13808 (*subsi3_carryin): Likewise.
13809 (*subsi3_carryin_const): Likewise.
13810 (*subsi3_carryin_compare): Likewise.
13811 (*subsi3_carryin_compare_const): Likewise.
13812 (*arm_subdi3): Likewise.
13813 (*thumb_subdi3): Likewise.
13814 (*subdi_di_zesidi): Likewise.
13815 (*subdi_di_sesidi): Likewise.
13816 (*subdi_zesidi_di): Likewise.
13817 (*subdi_sesidi_di): Likewise.
13818 (*subdi_zesidi_ze): Likewise.
13819 (thumb1_subsi3_insn): Likewise.
13820 (*arm_subsi3_insn): Likewise.
13821 (*anddi3_insn): Likewise.
13822 (*anddi_zesidi_di): Likewise.
13823 (*anddi_sesdi_di): Likewise.
13824 (*ne_zeroextracts): Likewise.
13825 (*ne_zeroextracts): Likewise.
13826 (*ite_ne_zeroextr): Likewise.
13827 (*ite_ne_zeroextr): Likewise.
13828 (*anddi_notdi_di): Likewise.
13829 (*anddi_notzesidi): Likewise.
13830 (*anddi_notsesidi): Likewise.
13831 (andsi_notsi_si): Likewise.
13832 (thumb1_bicsi3): Likewise.
13833 (*iordi3_insn): Likewise.
13834 (*iordi_zesidi_di): Likewise.
13835 (*iordi_sesidi_di): Likewise.
13836 (*thumb1_iorsi3_insn): Likewise.
13837 (*xordi3_insn): Likewise.
13838 (*xordi_zesidi_di): Likewise.
13839 (*xordi_sesidi_di): Likewise.
13840 (*arm_xorsi3): Likewise.
13841 (*andsi_iorsi3_no): Likewise.
13842 (*smax_0): Likewise.
13843 (*smax_m1): Likewise.
13844 (*arm_smax_insn): Likewise.
13845 (*smin_0): Likewise.
13846 (*arm_smin_insn): Likewise.
13847 (*arm_umaxsi3): Likewise.
13848 (*arm_uminsi3): Likewise.
13849 (*minmax_arithsi): Likewise.
13850 (*minmax_arithsi_): Likewise.
13851 (*satsi_<SAT:code>): Likewise.
13852 (arm_ashldi3_1bit): Likewise.
13853 (arm_ashrdi3_1bit): Likewise.
13854 (arm_lshrdi3_1bit): Likewise.
13855 (*arm_negdi2): Likewise.
13856 (*thumb1_negdi2): Likewise.
13857 (*arm_negsi2): Likewise.
13858 (*thumb1_negsi2): Likewise.
13859 (*negdi_extendsid): Likewise.
13860 (*negdi_zero_extend): Likewise.
13861 (*arm_abssi2): Likewise.
13862 (*thumb1_abssi2): Likewise.
13863 (*arm_neg_abssi2): Likewise.
13864 (*thumb1_neg_abss): Likewise.
13865 (one_cmpldi2): Likewise.
13866 (extend<mode>di2): Likewise.
13867 (*compareqi_eq0): Likewise.
13868 (*arm_extendhisi2addsi): Likewise.
13869 (*arm_movdi): Likewise.
13870 (*thumb1_movdi_insn): Likewise.
13871 (*arm_movt): Likewise.
13872 (*thumb1_movsi_insn): Likewise.
13873 (pic_add_dot_plus_four): Likewise.
13874 (pic_add_dot_plus_eight): Likewise.
13875 (tls_load_dot_plus_eight): Likewise.
13876 (*thumb1_movhi_insn): Likewise.
13877 (*thumb1_movsf_insn): Likewise.
13878 (*movdf_soft_insn): Likewise.
13879 (*thumb_movdf_insn): Likewise.
13880 (cbranchsi4_insn): Likewise.
13881 (cbranchsi4_scratch): Likewise.
13882 (*negated_cbranchsi4): Likewise.
13883 (*tbit_cbranch): Likewise.
13884 (*tlobits_cbranch): Likewise.
13885 (*tstsi3_cbranch): Likewise.
13886 (*cbranchne_decr1): Likewise.
13887 (*addsi3_cbranch): Likewise.
13888 (*addsi3_cbranch_scratch): Likewise.
13889 (*arm_cmpdi_insn): Likewise.
13890 (*arm_cmpdi_unsig): Likewise.
13891 (*arm_cmpdi_zero): Likewise.
13892 (*thumb_cmpdi_zero): Likewise.
13893 (*deleted_compare): Likewise.
13894 (*mov_scc): Likewise.
13895 (*mov_negscc): Likewise.
13896 (*mov_notscc): Likewise.
13897 (*cstoresi_eq0_thumb1_insn): Likewise.
13898 (cstoresi_nltu_thumb1): Likewise.
13899 (cstoresi_ltu_thu): Likewise.
13900 (thumb1_addsi3_addgeu): Likewise.
13901 (*arm_jump): Likewise.
13902 (*thumb_jump): Likewise.
13903 (*check_arch2): Likewise.
13904 (arm_casesi_internal): Likewise.
13905 (thumb1_casesi_dispatch): Likewise.
13906 (*arm_indirect_jump): Likewise.
13907 (*thumb1_indirect_jump): Likewise.
13909 (*and_scc): Likewise.
13910 (*ior_scc): Likewise.
13911 (*compare_scc): Likewise.
13912 (*cond_move): Likewise.
13913 (*cond_arith): Likewise.
13914 (*cond_sub): Likewise.
13915 (*cmp_ite0): Likewise.
13916 (*cmp_ite1): Likewise.
13917 (*cmp_and): Likewise.
13918 (*cmp_ior): Likewise.
13919 (*ior_scc_scc): Likewise.
13920 (*ior_scc_scc_cmp): Likewise.
13921 (*and_scc_scc): Likewise.
13922 (*and_scc_scc_cmp): Likewise.
13923 (*and_scc_scc_nod): Likewise.
13924 (*negscc): Likewise.
13925 (movcond_addsi): Likewise.
13926 (movcond): Likewise.
13927 (*ifcompare_plus_move): Likewise.
13928 (*if_plus_move): Likewise.
13929 (*ifcompare_move_plus): Likewise.
13930 (*if_move_plus): Likewise.
13931 (*ifcompare_arith_arith): Likewise.
13932 (*if_arith_arith): Likewise.
13933 (*ifcompare_arith_move): Likewise.
13934 (*if_arith_move): Likewise.
13935 (*ifcompare_move_arith): Likewise.
13936 (*if_move_arith): Likewise.
13937 (*ifcompare_move_not): Likewise.
13938 (*if_move_not): Likewise.
13939 (*ifcompare_not_move): Likewise.
13940 (*if_not_move): Likewise.
13941 (*ifcompare_shift_move): Likewise.
13942 (*if_shift_move): Likewise.
13943 (*ifcompare_move_shift): Likewise.
13944 (*if_move_shift): Likewise.
13945 (*ifcompare_shift_shift): Likewise.
13946 (*ifcompare_not_arith): Likewise.
13947 (*ifcompare_arith_not): Likewise.
13948 (*if_arith_not): Likewise.
13949 (*ifcompare_neg_move): Likewise.
13950 (*if_neg_move): Likewise.
13951 (*ifcompare_move_neg): Likewise.
13952 (*if_move_neg): Likewise.
13953 (prologue_thumb1_interwork): Likewise.
13954 (*cond_move_not): Likewise.
13955 (*sign_extract_onebit): Likewise.
13956 (*not_signextract_onebit): Likewise.
13957 (stack_tie): Likewise.
13958 (align_4): Likewise.
13959 (align_8): Likewise.
13960 (consttable_end): Likewise.
13961 (consttable_1): Likewise.
13962 (consttable_2): Likewise.
13963 (consttable_4): Likewise.
13964 (consttable_8): Likewise.
13965 (consttable_16): Likewise.
13966 (*thumb1_tablejump): Likewise.
13967 (prefetch): Likewise.
13968 (force_register_use): Likewise.
13969 (thumb_eh_return): Likewise.
13970 (load_tp_hard): Likewise.
13971 (load_tp_soft): Likewise.
13972 (tlscall): Likewise.
13973 (*arm_movtas_ze): Likewise.
13974 (*arm_rev): Likewise.
13975 (*arm_revsh): Likewise.
13976 (*arm_rev16): Likewise.
13977 * config/arm/thumb2.md
13978 (*thumb2_smaxsi3): Likewise.
13979 (*thumb2_sminsi3): Likewise.
13980 (*thumb32_umaxsi3): Likewise.
13981 (*thumb2_uminsi3): Likewise.
13982 (*thumb2_negdi2): Likewise.
13983 (*thumb2_abssi2): Likewise.
13984 (*thumb2_neg_abss): Likewise.
13985 (*thumb2_movsi_insn): Likewise.
13986 (tls_load_dot_plus_four): Likewise.
13987 (*thumb2_movhi_insn): Likewise.
13988 (*thumb2_mov_scc): Likewise.
13989 (*thumb2_mov_negs): Likewise.
13990 (*thumb2_mov_negs): Likewise.
13991 (*thumb2_mov_nots): Likewise.
13992 (*thumb2_mov_nots): Likewise.
13993 (*thumb2_movsicc_): Likewise.
13994 (*thumb2_movsfcc_soft_insn): Likewise.
13995 (*thumb2_indirect_jump): Likewise.
13996 (*thumb2_and_scc): Likewise.
13997 (*thumb2_ior_scc): Likewise.
13998 (*thumb2_ior_scc_strict_it): Likewise.
13999 (*thumb2_cond_move): Likewise.
14000 (*thumb2_cond_arith): Likewise.
14001 (*thumb2_cond_ari): Likewise.
14002 (*thumb2_cond_sub): Likewise.
14003 (*thumb2_negscc): Likewise.
14004 (*thumb2_movcond): Likewise.
14005 (thumb2_casesi_internal): Likewise.
14006 (thumb2_casesi_internal_pic): Likewise.
14007 (*thumb2_alusi3_short): Likewise.
14008 (*thumb2_mov<mode>_shortim): Likewise.
14009 (*thumb2_addsi_short): Likewise.
14010 (*thumb2_subsi_short): Likewise.
14011 (thumb2_addsi3_compare0): Likewise.
14012 (*thumb2_cbz): Likewise.
14013 (*thumb2_cbnz): Likewise.
14014 (*thumb2_one_cmplsi2_short): Likewise.
14015 (*thumb2_negsi2_short): Likewise.
14016 (*orsi_notsi_si): Likewise.
14017 * config/arm/arm1020e.md: Update with new attributes.
14018 * config/arm/arm1026ejs.md: Update with new attributes.
14019 * config/arm/arm1136jfs.md: Update with new attributes.
14020 * config/arm/arm926ejs.md: Update with new attributes.
14021 * config/arm/cortex-a15.md: Update with new attributes.
14022 * config/arm/cortex-a5.md: Update with new attributes.
14023 * config/arm/cortex-a53.md: Update with new attributes.
14024 * config/arm/cortex-a7.md: Update with new attributes.
14025 * config/arm/cortex-a8.md: Update with new attributes.
14026 * config/arm/cortex-a9.md: Update with new attributes.
14027 * config/arm/cortex-m4.md: Update with new attributes.
14028 * config/arm/cortex-r4.md: Update with new attributes.
14029 * config/arm/fa526.md: Update with new attributes.
14030 * config/arm/fa606te.md: Update with new attributes.
14031 * config/arm/fa626te.md: Update with new attributes.
14032 * config/arm/fa726te.md: Update with new attributes.
14034 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
14036 * config/aarch64/aarch64-simd.md
14037 (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
14038 <vwx> iterator to ensure correct register choice.
14039 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
14040 (aarch64_sqdmull_n<mode>): Likewise.
14041 (aarch64_sqdmull2_n<mode>_internal): Likewise.
14042 * config/aarch64/arm_neon.h
14043 (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
14044 (vml<as><q>_n_<su>16): Likewise.
14045 (vml<as>l_high_lane<q>_<su>16): Likewise.
14046 (vml<as>l_high_n_<su>16): Likewise.
14047 (vml<as>l_lane<q>_<su>16): Likewise.
14048 (vml<as>l_n_<su>16): Likewise.
14049 (vmul<q>_lane<q>_<su>16): Likewise.
14050 (vmul<q>_n_<su>16): Likewise.
14051 (vmull_lane<q>_<su>16): Likewise.
14052 (vmull_n_<su>16): Likewise.
14053 (vmull_high_lane<q>_<su>16): Likewise.
14054 (vmull_high_n_<su>16): Likewise.
14055 (vqrdmulh<q>_n_s16): Likewise.
14057 2013-09-06 Tejas Belagod <tejas.belagod@arm.com>
14059 * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
14060 have the correct lane parameter.
14062 2013-09-06 Richard Biener <rguenther@suse.de>
14064 * cfganal.c (control_dependences::~control_dependences):
14065 Properly free all of the vector.
14067 2013-09-06 Kirill Yukhin <kirill.yukhin@intel.com>
14070 * config/i386/i386.c (ix86_conditional_register_usage):
14071 Proper initialize extended SSE registers.
14073 2013-09-06 Jan Hubicka <jh@suse.cz>
14075 PR tree-optimization/58311
14076 * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
14078 2013-09-06 Jan Hubicka <jh@suse.cz>
14080 * Makefile.in (tree-sra.o): Update dependencies.
14081 * tree-sra.c: Include ipa-utils.h
14082 (scan_function): Use recursive_call_p.
14083 (has_caller_p): New function.
14084 (cgraph_for_node_and_aliases): Count also callers of aliases.
14086 2013-09-06 Jan Hubicka <jh@suse.cz>
14088 PR middle-end/58094
14089 * cgraph.h (symtab_semantically_equivalent_p): Declare.
14090 * tree-tailcall.c: Include ipa-utils.h.
14091 (find_tail_calls): Use it.
14092 * ipa-pure-const.c (check_call): Likewise.
14093 * ipa-utils.c (recursive_call_p): New function.
14094 * ipa-utils.h (recursive_call_p): Dclare.
14095 * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
14096 (symtab_semantically_equivalent_p): New function.
14097 * Makefile.in (tree-tailcall.o): Update dependencies.
14099 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
14101 * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
14102 non-inlinable part.
14104 2013-09-06 Richard Biener <rguenther@suse.de>
14106 * lto-streamer.h (lto_global_var_decls): Remove.
14107 * Makefile.in (OBJS): Remove lto-symtab.o.
14108 (lto-symtab.o): Remove.
14109 (GTFILES): Remove lto-symtab.c
14110 * lto-symtab.c: Move to lto/
14112 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14114 * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
14115 (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
14116 (UNSPEC_FPINT_RINT): New constant definitions.
14117 (FPINT, fpint_name, fpint_roundingmode): New integer iterator
14118 definition with 2 attributes.
14119 ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
14120 ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
14123 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14125 * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
14126 ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
14127 Set the mnemonic attribute to "bcr_flush". Set the "z196prop"
14128 attribute to "z196_alone".
14129 * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
14132 2013-09-06 Richard Biener <rguenther@suse.de>
14134 * basic-block.h (class control_dependences): New.
14135 * tree-ssa-dce.c (control_dependence_map): Remove.
14137 (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
14138 (set_control_dependence_map_bit, clear_control_dependence_bitmap,
14139 find_pdom, find_control_dependence, find_all_control_dependences):
14141 (mark_control_dependent_edges_necessary,
14142 find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
14143 tree_dce_done, perform_tree_ssa_dce): Adjust.
14144 * cfganal.c (set_control_dependence_map_bit,
14145 clear_control_dependence_bitmap, find_pdom, find_control_dependence,
14146 find_all_control_dependences): Move from tree-ssa-dce.c and
14147 implement as methods of control_dependences class.
14148 (control_dependences::control_dependences): New.
14149 (control_dependences::~control_dependences): Likewise.
14150 (control_dependences::get_edges_dependent_on): Likewise.
14151 (control_dependences::get_edge): Likewise.
14153 2013-09-04 Jan Hubicka <jh@suse.cz>
14155 * tree.c (types_same_for_odr): Drop overactive check.
14156 * ipa-devirt.c (hash_type_name): Likewise.
14158 2013-09-04 Jan Hubicka <jh@suse.cz>
14160 * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
14161 (analyze_functions): ... here.
14163 2013-09-04 Jan Hubicka <jh@suse.cz>
14165 PR middle-end/58201
14166 * cgraphunit.c (analyze_functions): Clear AUX fields
14167 after processing; initialize assembler name has.
14169 2013-09-05 Jeff Law <law@redhat.com>
14171 * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
14172 from thread_around_empty_block. Record threading path into PATH.
14173 Recurse if threading through the initial block is successful.
14174 (thread_across_edge): Corresponding changes to slightly simplify.
14176 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
14178 * config/aarch64/aarch64.md
14179 (type): Remove frecpe, frecps, frecpx.
14180 (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
14181 fix to be a TARGET_SIMD instruction.
14182 (aarch64_frecps): Remove.
14183 * config/aarch64/aarch64-simd.md
14184 (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
14185 (aarch64_frecps<mode>): Handle all float/vector of float modes.
14187 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
14188 Sofiane Naci <sofiane.naci@arm.com>
14190 * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
14191 into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
14192 Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
14193 "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
14194 "logic_reg", "logics_reg", "rev". Expand "arlo_shift" into
14195 "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
14196 "logics_shift_imm". Expand "arlo_shift_reg" into "alu_shift_reg",
14197 "alus_shift_reg", "logic_shift_reg", "logics_shift_reg". Expand "clz"
14198 into "clz, "rbit". Rename "shift" to "shift_imm".
14199 * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
14200 changes. Update for attribute changes all occurrences of arlo_* and
14202 * config/arm/arm-fixed.md: Update for attribute changes
14203 all occurrences of arlo_* types.
14204 * config/arm/thumb2.md: Update for attribute changes all occurrences
14206 * config/arm/arm.c (xscale_sched_adjust_cost): (rtx insn, rtx
14207 (cortexa7_older_only): Likewise.
14208 (cortexa7_younger): Likewise.
14209 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
14210 (1020alu_shift_op): Likewise.
14211 (1020alu_shift_reg_op): Likewise.
14212 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
14213 (alu_shift_op): Likewise.
14214 (alu_shift_reg_op): Likewise.
14215 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
14216 (11_alu_shift_op): Likewise.
14217 (11_alu_shift_reg_op): Likewise.
14218 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
14219 (9_alu_shift_reg_op): Likewise.
14220 * config/arm/cortex-a15.md (cortex_a15_alu): Update for
14222 (cortex_a15_alu_shift): Likewise.
14223 (cortex_a15_alu_shift_reg): Likewise.
14224 * config/arm/cortex-a5.md (cortex_a5_alu): Update for
14226 (cortex_a5_alu_shift): Likewise.
14227 * config/arm/cortex-a53.md (cortex_a53_alu): Update for
14229 (cortex_a53_alu_shift): Likewise.
14230 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
14232 (cortex_a7_alu_reg): Likewise.
14233 (cortex_a7_alu_shift): Likewise.
14234 * config/arm/cortex-a8.md (cortex_a8_alu): Update for
14236 (cortex_a8_alu_shift): Likewise.
14237 (cortex_a8_alu_shift_reg): Likewise.
14238 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
14239 (cortex_a9_dp_shift): Likewise.
14240 * config/arm/cortex-m4.md (cortex_m4_alu): Update for
14242 * config/arm/cortex-r4.md
14243 (cortex_r4_alu): Update for attribute changes.
14244 (cortex_r4_mov): Likewise.
14245 (cortex_r4_alu_shift_reg): Likewise.
14246 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
14247 (526_alu_shift_op): Likewise.
14248 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
14249 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
14250 (626te_alu_shift_op): Likewise.
14251 * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
14252 (726te_alu_shift_op): Likewise.
14253 (726te_alu_shift_reg_op): Likewise.
14254 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
14255 (mp626_alu_shift_op): Likewise.
14256 * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
14257 (pj4_alu_conds): Likewise.
14258 (pj4_shift): Likewise.
14259 (pj4_shift_conds): Likewise.
14260 (pj4_alu_shift): Likewise.
14261 (pj4_alu_shift_conds): Likewise.
14262 * config/aarch64/aarch64.md: Update for attribute change
14263 all occurrences of arlo_* and shift* types.
14265 2013-09-05 Mike Stump <mikestump@comcast.net>
14267 * tree.h: Move documentation for tree_function_decl to tree-core.h
14268 with the declaration.
14270 2013-09-05 Peter Bergner <bergner@vnet.ibm.com>
14273 * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
14274 looking for widest mode.
14276 2013-09-05 Eric Botcazou <ebotcazou@adacore.com>
14278 * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
14280 2013-09-05 Richard Biener <rguenther@suse.de>
14282 PR tree-optimization/58137
14283 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
14284 Do not create vectors of pointers.
14285 * tree-vect-loop.c (get_initial_def_for_induction): Use proper
14286 types for the components of the vector initializer.
14287 * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
14288 allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
14290 2013-09-05 Martin Jambor <mjambor@suse.cz>
14292 * ipa-prop.c (remove_described_reference): Accept missing references,
14293 return false if that hppens, otherwise return true.
14294 (cgraph_node_for_jfunc): New function.
14295 (try_decrement_rdesc_refcount): Likewise.
14296 (try_make_edge_direct_simple_call): Use them.
14297 (ipa_edge_removal_hook): Remove references from rdescs.
14298 (ipa_edge_duplication_hook): Clone rdescs and their references
14299 when the new edge has the same caller as the old one.
14300 * cgraph.c (cgraph_resolve_speculation): Remove speculative
14301 reference before removing any edges.
14303 2013-09-05 Richard Earnshaw <rearnsha@arm.com>
14305 * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
14307 * thumb2.md (thumb2_storewb_parisi): New pattern.
14309 2013-09-05 Yufeng Zhang <yufeng.zhang@arm.com>
14311 * config/aarch64/aarch64-option-extensions.def: Add
14312 AARCH64_OPT_EXTENSION of 'crc'.
14313 * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
14314 (AARCH64_ISA_CRC): Ditto.
14315 * doc/invoke.texi (-march and -mcpu feature modifiers): Add
14316 description of the CRC extension.
14318 2013-09-05 Alexander Ivchenko <alexander.ivchenko@intel.com>
14320 * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
14321 * config/rs6000/linux.h: Ditto.
14322 * alpha/linux.h: Ditto.
14323 * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
14324 no_c99_libc_has_function.
14325 * config/c6x/uclinux-elf.h: Ditto.
14326 * config/lm32/uclinux-elf.h: Ditto.
14327 * config/m68k/uclinux.h: Ditto.
14328 * config/moxie/uclinux.h: Ditto.
14329 * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
14330 (crisv32-*-linux*, cris-*-linux*): Ditto.
14331 * config/bfin/bfin.c: Include "tm_p.h".
14333 2013-09-05 Richard Biener <rguenther@suse.de>
14335 * tree-vect-loop.c (vect_analyze_loop_operations): Properly
14336 check for a definition without a basic-block.
14338 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
14339 Sofiane Naci <sofiane.naci@arm.com>
14341 * config/aarch64/aarch64.md
14342 (*movti_aarch64): Rename r_2_f and f_2_r.
14343 (*movsf_aarch64): Likewise.
14344 (*movdf_aarch64): Likewise.
14345 (*movtf_aarch64): Likewise.
14346 (aarch64_movdi_<mode>low): Likewise.
14347 (aarch64_movdi_<mode>high): Likewise.
14348 (aarch64_mov<mode>high_di): Likewise.
14349 (aarch64_mov<mode>low_di): Likewise.
14350 (aarch64_movtilow_tilow): Likewise.
14351 * config/arm/arm.md (attribute "neon_type"): Delete. Move attribute
14352 values to config/arm/types.md
14353 (attribute "conds"): Update for attribute change.
14354 (anddi3_insn): Likewise.
14355 (iordi3_insn): Likewise.
14356 (xordi3_insn): Likewise.
14357 (one_cmpldi2): Likewise.
14358 * config/arm/types.md (type): Add Neon types.
14359 * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
14360 use "type" attribute.
14361 (movmisalign<mode>_neon_store): Likewise.
14362 (movmisalign<mode>_neon_load): Likewise.
14363 (vec_set<mode>_internal): Likewise.
14364 (vec_setv2di_internal): Likewise.
14365 (vec_extract<mode>): Likewise.
14366 (vec_extractv2di): Likewise.
14367 (add<mode>3_neon): Likewise.
14368 (adddi3_neon): Likewise.
14369 (sub<mode>3_neon): Likewise.
14370 (subdi3_neon): Likewise.
14371 (mul<mode>3_neon): Likewise.
14372 (mul<mode>3add<mode>_neon): Likewise.
14373 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
14374 (fma<VCVTF:mode>4)): Likewise.
14375 (fma<VCVTF:mode>4_intrinsic): Likewise.
14376 (fmsub<VCVTF:mode>4)): Likewise.
14377 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
14378 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
14379 (ior<mode>3): Likewise.
14380 (and<mode>3): Likewise.
14381 (anddi3_neon): Likewise.
14382 (orn<mode>3_neon): Likewise.
14383 (orndi3_neon): Likewise.
14384 (bic<mode>3_neon): Likewise.
14385 (bicdi3_neon): Likewise.
14386 (xor<mode>3): Likewise.
14387 (one_cmpl<mode>2): Likewise.
14388 (abs<mode>2): Likewise.
14389 (neg<mode>2): Likewise.
14390 (umin<mode>3_neon): Likewise.
14391 (umax<mode>3_neon): Likewise.
14392 (smin<mode>3_neon): Likewise.
14393 (smax<mode>3_neon): Likewise.
14394 (vashl<mode>3): Likewise.
14395 (vashr<mode>3_imm): Likewise.
14396 (vlshr<mode>3_imm): Likewise.
14397 (ashl<mode>3_signed): Likewise.
14398 (ashl<mode>3_unsigned): Likewise.
14399 (neon_load_count): Likewise.
14400 (ashldi3_neon_noclobber): Likewise.
14401 (signed_shift_di3_neon): Likewise.
14402 (unsigned_shift_di3_neon): Likewise.
14403 (ashrdi3_neon_imm_noclobber): Likewise.
14404 (lshrdi3_neon_imm_noclobber): Likewise.
14405 (widen_ssum<mode>3): Likewise.
14406 (widen_usum<mode>3): Likewise.
14407 (quad_halves_<code>v4si): Likewise.
14408 (quad_halves_<code>v4sf): Likewise.
14409 (quad_halves_<code>v8hi): Likewise.
14410 (quad_halves_<code>v16qi): Likewise.
14411 (reduc_splus_v2di): Likewise.
14412 (neon_vpadd_internal<mode>): Likewise.
14413 (neon_vpsmin<mode>): Likewise.
14414 (neon_vpsmax<mode>): Likewise.
14415 (neon_vpumin<mode>): Likewise.
14416 (neon_vpumax<mode>): Likewise.
14417 (ss_add<mode>_neon): Likewise.
14418 (us_add<mode>_neon): Likewise.
14419 (ss_sub<mode>_neon): Likewise.
14420 (us_sub<mode>_neon): Likewise.
14421 (neon_vadd<mode>_unspec): Likewise.
14422 (neon_vaddl<mode>): Likewise.
14423 (neon_vaddw<mode>): Likewise.
14424 (neon_vhadd<mode>): Likewise.
14425 (neon_vqadd<mode>): Likewise.
14426 (neon_vaddhn<mode>): Likewise.
14427 (neon_vmul<mode>): Likewise.
14428 (neon_vmla<mode>): Likewise.
14429 (neon_vmlal<mode>): Likewise.
14430 (neon_vmls<mode>): Likewise.
14431 (neon_vmlsl<mode>): Likewise.
14432 (neon_vqdmulh<mode>): Likewise.
14433 (neon_vqdmlal<mode>): Likewise.
14434 (neon_vqdmlsl<mode>): Likewise.
14435 (neon_vmull<mode>): Likewise.
14436 (neon_vqdmull<mode>): Likewise.
14437 (neon_vsub<mode>_unspec): Likewise.
14438 (neon_vsubl<mode>): Likewise.
14439 (neon_vsubw<mode>): Likewise.
14440 (neon_vqsub<mode>): Likewise.
14441 (neon_vhsub<mode>): Likewise.
14442 (neon_vsubhn<mode>): Likewise.
14443 (neon_vceq<mode>): Likewise.
14444 (neon_vcge<mode>): Likewise.
14445 (neon_vcgeu<mode>): Likewise.
14446 (neon_vcgt<mode>): Likewise.
14447 (neon_vcgtu<mode>): Likewise.
14448 (neon_vcle<mode>): Likewise.
14449 (neon_vclt<mode>): Likewise.
14450 (neon_vcage<mode>): Likewise.
14451 (neon_vcagt<mode>): Likewise.
14452 (neon_vtst<mode>): Likewise.
14453 (neon_vabd<mode>): Likewise.
14454 (neon_vabdl<mode>): Likewise.
14455 (neon_vaba<mode>): Likewise.
14456 (neon_vabal<mode>): Likewise.
14457 (neon_vmax<mode>): Likewise.
14458 (neon_vmin<mode>): Likewise.
14459 (neon_vpaddl<mode>): Likewise.
14460 (neon_vpadal<mode>): Likewise.
14461 (neon_vpmax<mode>): Likewise.
14462 (neon_vpmin<mode>): Likewise.
14463 (neon_vrecps<mode>): Likewise.
14464 (neon_vrsqrts<mode>): Likewise.
14465 (neon_vqabs<mode>): Likewise.
14466 (neon_vqneg<mode>): Likewise.
14467 (neon_vcls<mode>): Likewise.
14468 (clz<mode>2): Likewise.
14469 (popcount<mode>2): Likewise.
14470 (neon_vrecpe): Likewise.
14471 (neon_vrsqrte): Likewise.
14472 (neon_vget_lane<mode>_sext_internal): Likewise.
14473 (neon_vget_lane<mode>_zext_internal): Likewise.
14474 (neon_vdup_n<mode>): Likewise.
14475 (neon_vdup_nv2di): Likewise.
14476 (neon_vdpu_lane<mode>_internal): Likewise.
14477 (neon_vswp<mode>): Likewise.
14478 (float<mode><V_cvtto>2): Likewise.
14479 (floatuns<mode><V_cvtto>2): Likewise.
14480 (fix_trunc<mode><V_cvtto>)2): Likewise
14481 (fixuns_trunc<mode><V_cvtto)2): Likewise.
14482 (neon_vcvt<mode>): Likewise.
14483 (neon_vcvtv4sfv4hf): Likewise.
14484 (neon_vcvtv4hfv4sf): Likewise.
14485 (neon_vcvt_n<mode>): Likewise.
14486 (neon_vmovn<mode>): Likewise.
14487 (neon_vqmovn<mode>): Likewise.
14488 (neon_vqmovun<mode>): Likewise.
14489 (neon_vmovl<mode>): Likewise.
14490 (neon_vmul_lane<mode>): Likewise.
14491 (neon_vmull_lane<mode>): Likewise.
14492 (neon_vqdmull_lane<mode>): Likewise.
14493 (neon_vqdmulh_lane<mode>): Likewise.
14494 (neon_vmla_lane<mode>): Likewise.
14495 (neon_vmlal_lane<mode>): Likewise.
14496 (neon_vqdmlal_lane<mode>): Likewise.
14497 (neon_vmls_lane<mode>): Likewise.
14498 (neon_vmlsl_lane<mode>): Likewise.
14499 (neon_vqdmlsl_lane<mode>): Likewise.
14500 (neon_vext<mode>): Likewise.
14501 (neon_vrev64<mode>): Likewise.
14502 (neon_vrev32<mode>): Likewise.
14503 (neon_vrev16<mode>): Likewise.
14504 (neon_vbsl<mode>_internal): Likewise.
14505 (neon_vshl<mode>): Likewise.
14506 (neon_vqshl<mode>): Likewise.
14507 (neon_vshr_n<mode>): Likewise.
14508 (neon_vshrn_n<mode>): Likewise.
14509 (neon_vqshrn_n<mode>): Likewise.
14510 (neon_vqshrun_n<mode>): Likewise.
14511 (neon_vshl_n<mode>): Likewise.
14512 (neon_vqshl_n<mode>): Likewise.
14513 (neon_vqshlu_n<mode>): Likewise.
14514 (neon_vshll_n<mode>): Likewise.
14515 (neon_vsra_n<mode>): Likewise.
14516 (neon_vsri_n<mode>): Likewise.
14517 (neon_vsli_n<mode>): Likewise.
14518 (neon_vtbl1v8qi): Likewise.
14519 (neon_vtbl2v8qi): Likewise.
14520 (neon_vtbl3v8qi): Likewise.
14521 (neon_vtbl4v8qi): Likewise.
14522 (neon_vtbx1v8qi): Likewise.
14523 (neon_vtbx2v8qi): Likewise.
14524 (neon_vtbx3v8qi): Likewise.
14525 (neon_vtbx4v8qi): Likewise.
14526 (neon_vtrn<mode>_internal): Likewise.
14527 (neon_vzip<mode>_internal): Likewise.
14528 (neon_vuzp<mode>_internal): Likewise.
14529 (neon_vld1<mode>): Likewise.
14530 (neon_vld1_lane<mode>): Likewise.
14531 (neon_vld1_dup<mode>): Likewise.
14532 (neon_vld1_dupv2di): Likewise.
14533 (neon_vst1<mode>): Likewise.
14534 (neon_vst1_lane<mode>): Likewise.
14535 (neon_vld2<mode>): Likewise.
14536 (neon_vld2_lane<mode>): Likewise.
14537 (neon_vld2_dup<mode>): Likewise.
14538 (neon_vst2<mode>): Likewise.
14539 (neon_vst2_lane<mode>): Likewise.
14540 (neon_vld3<mode>): Likewise.
14541 (neon_vld3qa<mode>): Likewise.
14542 (neon_vld3qb<mode>): Likewise.
14543 (neon_vld3_lane<mode>): Likewise.
14544 (neon_vld3_dup<mode>): Likewise.
14545 (neon_vst3<mode>): Likewise.
14546 (neon_vst3qa<mode>): Likewise.
14547 (neon_vst3qb<mode>): Likewise.
14548 (neon_vst3_lane<mode>): Likewise.
14549 (neon_vld4<mode>): Likewise.
14550 (neon_vld4qa<mode>): Likewise.
14551 (neon_vld4qb<mode>): Likewise.
14552 (neon_vld4_lane<mode>): Likewise.
14553 (neon_vld4_dup<mode>): Likewise.
14554 (neon_vst4<mode>): Likewise.
14555 (neon_vst4qa<mode>): Likewise.
14556 (neon_vst4qb<mode>): Likewise.
14557 (neon_vst4_lane<mode>): Likewise.
14558 (neon_vec_unpack<US>_lo_<mode>): Likewise.
14559 (neon_vec_unpack<US>_hi_<mode>): Likewise.
14560 (neon_vec_<US>mult_lo_<mode>): Likewise.
14561 (neon_vec_<US>mult_hi_<mode>): Likewise.
14562 (neon_vec_<US>shiftl_<mode>): Likewise.
14563 (neon_unpack<US>_<mode>): Likewise.
14564 (neon_vec_<US>mult_<mode>): Likewise.
14565 (vec_pack_trunc_<mode>): Likewise.
14566 (neon_vec_pack_trunk_<mode>): Likewise.
14567 (neon_vabd<mode>_2): Likewise.
14568 (neon_vabd<mode>_3): Likewise.
14569 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
14570 (thumb2_movsi_vfp): Likewise.
14571 (movdi_vfp): Likewise.
14572 (movdi_vfp_cortexa8): Likewise.
14573 (movhf_vfp_neon): Likewise.
14574 (movhf_vfp): Likewiwse.
14575 (movsf_vfp): Likewiwse.
14576 (thumb2_movsf_vfp): Likewiwse.
14577 (movdf_vfp): Likewise.
14578 (thumb2_movdf_vfp): Likewise.
14579 (movsfcc_vfp): Likewise.
14580 (thumb2_movsfcc_vfp): Likewise.
14581 (movdfcc_vfp): Likewise.
14582 (thumb2_movdfcc_vfp): Likewise.
14583 * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
14584 * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
14585 (v10_v2c): Likewise.
14586 * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
14588 (cortex_a15_neon_int_2): Likewise.
14589 (cortex_a15_neon_int_3): Likewise.
14590 (cortex_a15_neon_int_4): Likewise.
14591 (cortex_a15_neon_int_5): Likewise.
14592 (cortex_a15_neon_vqneg_vqabs): Likewise.
14593 (cortex_a15_neon_vmov): Likewise.
14594 (cortex_a15_neon_vaba): Likewise.
14595 (cortex_a15_neon_vaba_qqq): Likewise.
14596 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
14597 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
14598 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
14599 scalar_64_32_long_scalar): Likewise.
14600 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
14601 (cortex_a15_neon_mla_qqq_8_16): Likewise.
14602 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
14603 lotype_qdd_64_32_long): Likewise.
14604 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
14605 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
14606 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
14607 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
14608 (cortex_a15_neon_shift_1): Likewise.
14609 (cortex_a15_neon_shift_2): Likewise.
14610 (cortex_a15_neon_shift_3): Likewise.
14611 (cortex_a15_neon_vshl_ddd): Likewise.
14612 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
14613 (cortex_a15_neon_vsra_vrsra): Likewise.
14614 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
14615 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
14616 (cortex_a15_neon_fp_vmul_ddd): Likewise.
14617 (cortex_a15_neon_fp_vmul_qqd): Likewise.
14618 (cortex_a15_neon_fp_vmla_ddd): Likewise.
14619 (cortex_a15_neon_fp_vmla_qqq): Likewise.
14620 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
14621 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
14622 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
14623 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
14624 (cortex_a15_neon_bp_simple): Likewise.
14625 (cortex_a15_neon_bp_2cycle): Likewise.
14626 (cortex_a15_neon_bp_3cycle): Likewise.
14627 (cortex_a15_neon_vld1_1_2_regs): Likewise.
14628 (cortex_a15_neon_vld1_3_4_regs): Likewise.
14629 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
14630 (cortex_a15_neon_vld2_4_regs): Likewise.
14631 (cortex_a15_neon_vld3_vld4): Likewise.
14632 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
14633 (cortex_a15_neon_vst1_3_4_regs): Likewise.
14634 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
14635 (cortex_a15_neon_vst3_vst4): Likewise.
14636 (cortex_a15_neon_vld1_vld2_lane): Likewise.
14637 (cortex_a15_neon_vld3_vld4_lane" 10
14638 (cortex_a15_neon_vst1_vst2_lane): Likewise.
14639 (cortex_a15_neon_vst3_vst4_lane): Likewise.
14640 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
14641 (cortex_a15_neon_ldm_2): Likewise.0
14642 (cortex_a15_neon_stm_2): Likewise.
14643 (cortex_a15_neon_mcr): Likewise.
14644 (cortex_a15_neon_mcr_2_mcrr): Likewise.
14645 (cortex_a15_neon_mrc): Likewise.
14646 (cortex_a15_neon_mrrc): Likewise.
14647 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
14649 (cortex_a15_alu_shift): Likewise.
14650 (cortex_a15_alu_shift_reg): Likewise.
14651 (cortex_a15_mult32): Likewise.
14652 (cortex_a15_mult64): Likewise.
14653 (cortex_a15_block): Likewise.
14654 (cortex_a15_branch): Likewise.
14655 (cortex_a15_load1): Likewise.
14656 (cortex_a15_load3): Likewise.
14657 (cortex_a15_store1): Likewise.
14658 (cortex_a15_store3): Likewise.
14659 (cortex_a15_call): Likewise.
14660 * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
14661 (cortex_a5_f2r): Likewise.
14662 * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
14664 (cortex_a53_f2r): Likewise.
14665 * config/arm/cortex-a7.md
14666 (cortex_a7_branch): Update for attribute change.
14667 (cortex_a7_call): Likewise.
14668 (cortex_a7_alu_imm): Likewise.
14669 (cortex_a7_alu_reg): Likewise.
14670 (cortex_a7_alu_shift): Likewise.
14671 (cortex_a7_mul): Likewise.
14672 (cortex_a7_load1): Likewise.
14673 (cortex_a7_store1): Likewise.
14674 (cortex_a7_load2): Likewise.
14675 (cortex_a7_store2): Likewise.
14676 (cortex_a7_load3): Likewise.
14677 (cortex_a7_store3): Likewise.
14678 (cortex_a7_load4): Likewise.
14679 (cortex_a7_store4): Likewise.
14680 (cortex_a7_fpalu): Likewise.
14681 (cortex_a7_fconst): Likewise.
14682 (cortex_a7_fpmuls): Likewise.
14683 (cortex_a7_neon_mul): Likewise.
14684 (cortex_a7_fpmacs): Likewise.
14685 (cortex_a7_neon_mla: Likewise.
14686 (cortex_a7_fpmuld: Likewise.
14687 (cortex_a7_fpmacd: Likewise.
14688 (cortex_a7_fpfmad: Likewise.
14689 (cortex_a7_fdivs: Likewise.
14690 (cortex_a7_fdivd: Likewise.
14691 (cortex_a7_r2f: Likewise.
14692 (cortex_a7_f2r: Likewise.
14693 (cortex_a7_f_flags: Likewise.
14694 (cortex_a7_f_loads: Likewise.
14695 (cortex_a7_f_loadd: Likewise.
14696 (cortex_a7_f_stores: Likewise.
14697 (cortex_a7_f_stored: Likewise.
14698 (cortex_a7_neon): Likewise.
14699 * config/arm/cortex-a8-neon.md
14700 (cortex_a8_neon_mrc): Update for attribute change.
14701 (cortex_a8_neon_mrrc): Likewise.
14702 (cortex_a8_neon_int_1): Likewise.
14703 (cortex_a8_neon_int_2): Likewise.
14704 (cortex_a8_neon_int_3): Likewise.
14705 (cortex_a8_neon_int_4): Likewise.
14706 (cortex_a8_neon_int_5): Likewise.
14707 (cortex_a8_neon_vqneg_vqabs): Likewise.
14708 (cortex_a8_neon_vmov): Likewise.
14709 (cortex_a8_neon_vaba): Likewise.
14710 (cortex_a8_neon_vaba_qqq): Likewise.
14711 (cortex_a8_neon_vsma): Likewise.
14712 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
14713 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
14714 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
14715 long_scalar): Likewise.
14716 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
14717 (cortex_a8_neon_mla_qqq_8_16): Likewise.
14718 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
14719 long_scalar_qdd_64_32_long): Likewise.
14720 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
14721 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
14722 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
14723 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
14724 (cortex_a8_neon_shift_1): Likewise.
14725 (cortex_a8_neon_shift_2): Likewise.
14726 (cortex_a8_neon_shift_3): Likewise.
14727 (cortex_a8_neon_vshl_ddd): Likewise.
14728 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
14729 (cortex_a8_neon_vsra_vrsra): Likewise.
14730 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
14731 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
14732 (cortex_a8_neon_fp_vsum): Likewise.
14733 (cortex_a8_neon_fp_vmul_ddd): Likewise.
14734 (cortex_a8_neon_fp_vmul_qqd): Likewise.
14735 (cortex_a8_neon_fp_vmla_ddd): Likewise.
14736 (cortex_a8_neon_fp_vmla_qqq): Likewise.
14737 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
14738 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
14739 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
14740 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
14741 (cortex_a8_neon_bp_simple): Likewise.
14742 (cortex_a8_neon_bp_2cycle): Likewise.
14743 (cortex_a8_neon_bp_3cycle): Likewise.
14744 (cortex_a8_neon_ldr): Likewise.
14745 (cortex_a8_neon_str): Likewise.
14746 (cortex_a8_neon_vld1_1_2_regs): Likewise.
14747 (cortex_a8_neon_vld1_3_4_regs): Likewise.
14748 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
14749 (cortex_a8_neon_vld2_4_regs): Likewise.
14750 (cortex_a8_neon_vld3_vld4): Likewise.
14751 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
14752 (cortex_a8_neon_vst1_3_4_regs): Likewise.
14753 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
14754 (cortex_a8_neon_vst3_vst4): Likewise.
14755 (cortex_a8_neon_vld1_vld2_lane): Likewise.
14756 (cortex_a8_neon_vld3_vld4_lane): Likewise.
14757 (cortex_a8_neon_vst1_vst2_lane): Likewise.
14758 (cortex_a8_neon_vst3_vst4_lane): Likewise.
14759 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
14760 (cortex_a8_neon_mcr): Likewise.
14761 (cortex_a8_neon_mcr_2_mcrr): Likewise.
14762 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
14763 * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
14765 (ca9_neon_mrrc): Likewise.
14766 (cortex_a9_neon_int_1): Likewise.
14767 (cortex_a9_neon_int_2): Likewise.
14768 (cortex_a9_neon_int_3): Likewise.
14769 (cortex_a9_neon_int_4): Likewise.
14770 (cortex_a9_neon_int_5): Likewise.
14771 (cortex_a9_neon_vqneg_vqabs): Likewise.
14772 (cortex_a9_neon_vmov): Likewise.
14773 (cortex_a9_neon_vaba): Likewise.
14774 (cortex_a9_neon_vaba_qqq): Likewise.
14775 (cortex_a9_neon_vsma): Likewise.
14776 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
14777 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
14778 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
14779 long_scalar): Likewise.
14780 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
14781 (cortex_a9_neon_mla_qqq_8_16): Likewise.
14782 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
14783 long_scalar_qdd_64_32_long): Likewise.
14784 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
14785 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
14786 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
14787 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
14788 (cortex_a9_neon_shift_1): Likewise.
14789 (cortex_a9_neon_shift_2): Likewise.
14790 (cortex_a9_neon_shift_3): Likewise.
14791 (cortex_a9_neon_vshl_ddd): Likewise.
14792 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
14793 (cortex_a9_neon_vsra_vrsra): Likewise.
14794 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
14795 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
14796 (cortex_a9_neon_fp_vsum): Likewise.
14797 (cortex_a9_neon_fp_vmul_ddd): Likewise.
14798 (cortex_a9_neon_fp_vmul_qqd): Likewise.
14799 (cortex_a9_neon_fp_vmla_ddd): Likewise.
14800 (cortex_a9_neon_fp_vmla_qqq): Likewise.
14801 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
14802 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
14803 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
14804 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
14805 (cortex_a9_neon_bp_simple): Likewise.
14806 (cortex_a9_neon_bp_2cycle): Likewise.
14807 (cortex_a9_neon_bp_3cycle): Likewise.
14808 (cortex_a9_neon_ldr): Likewise.
14809 (cortex_a9_neon_str): Likewise.
14810 (cortex_a9_neon_vld1_1_2_regs): Likewise.
14811 (cortex_a9_neon_vld1_3_4_regs): Likewise.
14812 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
14813 (cortex_a9_neon_vld2_4_regs): Likewise.
14814 (cortex_a9_neon_vld3_vld4): Likewise.
14815 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
14816 (cortex_a9_neon_vst1_3_4_regs): Likewise.
14817 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
14818 (cortex_a9_neon_vst3_vst4): Likewise.
14819 (cortex_a9_neon_vld1_vld2_lane): Likewise.
14820 (cortex_a9_neon_vld3_vld4_lane): Likewise.
14821 (cortex_a9_neon_vst1_vst2_lane): Likewise.
14822 (cortex_a9_neon_vst3_vst4_lane): Likewise.
14823 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
14824 (cortex_a9_neon_mcr): Likewise.
14825 (cortex_a9_neon_mcr_2_mcrr): Likewise.
14826 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
14827 (cortex_a9_fps): Likewise.
14828 * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
14830 (cortex_m4_fmuls): Likewise.
14831 * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
14833 (cortex_r4_mrc): Likewise.
14834 * config/arm/iterators.md: Update comment referring to neon_type.
14835 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
14836 (iwmmxt_movsi_insn): Likewise.
14837 * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
14839 (pj4_core_to_vfp): Likewise.
14840 * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
14842 * config/arm/vfp11.md (vfp_fload): Update for attribute change.
14843 (vfp_fstore): Likewise.
14844 * doc/md.texi: Change references to neon_type to refer to type.
14846 2013-09-04 Dodji Seketeli <dodji@redhat.com>
14848 * tree.h (DECL_BUILT_IN): Fix typo in comment.
14850 2013-09-04 David Edelsohn <dje.gcc@gmail.com>
14852 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
14853 lglobl if not weak.
14855 2013-09-04 Easwaran Raman <eraman@google.com>
14857 PR middle-end/57370
14858 * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
14859 (build_and_add_sum): Use it.
14860 (appears_later_in_bb): Simplify code.
14862 2013-09-04 Teresa Johnson <tejohnson@google.com>
14864 * dumpfile.c (dump_finish): Don't close stderr/stdout.
14866 2013-09-04 James Greenhalgh <james.greenhalgh@arm.com>
14868 * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
14870 2013-09-04 Jan Hubicka <jh@suse.cz>
14872 * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
14873 * ipa-devirt.c: Include diganostic.h
14874 (odr_type_d): Add types and types_set.
14875 (hash_type_name): Work for types with vtables during LTO.
14876 (odr_hasher::remove): Fix comment; destroy types_set.
14877 (add_type_duplicate): New function,
14878 (get_odr_type): Use it.
14879 (dump_type_inheritance_graph): Dump type duplicates.
14880 * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
14882 * tree.c (types_same_for_odr): Give exact answers on types with
14885 2013-09-04 Dodji Seketeli <dodji@redhat.com>
14887 * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
14888 explaining their differences.
14890 2013-09-04 Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
14892 * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
14894 2013-09-03 Jeff Law <law@redhat.com>
14896 * tree-ssa-threadedge.c (thread_across_edge): Record entire path
14897 when not threading through a joiner block. Pass joiner/no joiner
14898 state to register_jump_thread.
14899 * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
14900 state from argument rather than implying on path length.
14901 Dump the entire jump thread path into debugging dump.
14902 * tree-flow.h (register_jump_thread): Update prototype.
14904 2013-08-29 Xinliang David Li <davidxl@google.com>
14906 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
14907 Remove a trivial gcc_assert.
14909 2013-08-29 Xinliang David Li <davidxl@google.com>
14911 * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
14912 * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
14913 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
14914 Delay base decl alignment adjustment.
14915 * tree-vectorizer.c (vect_destroy_datarefs): New function.
14916 * tree-vectorizer.h: New data structure.
14917 (set_dr_misalignment): New function.
14918 (dr_misalignment): Ditto.
14919 * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
14920 (vectorizable_load): Ditto.
14921 (ensure_base_align): New function.
14922 (vectorize_loops): Add dbg_cnt support.
14923 (execute_vect_slp): Ditto.
14924 * dbgcnt.def: New debug counter.
14925 * Makefile: New dependency.
14927 2013-09-03 Meador Inge <meadori@codesourcery.com>
14931 2013-08-30 Meador Inge <meadori@codesourcery.com>
14933 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
14935 2013-09-03 David Edelsohn <dje.gcc@gmail.com>
14937 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
14938 function descriptor.
14940 2013-09-03 Richard Biener <rguenther@suse.de>
14942 * tree-affine.c (add_elt_to_tree): Fix association issue,
14943 avoid useless converts and make sure to always return a
14944 properly typed result.
14946 2013-09-03 Richard Biener <rguenther@suse.de>
14948 PR middle-end/57656
14949 * fold-const.c (negate_expr_p): Fix division case.
14950 (negate_expr): Likewise.
14952 2013-09-03 Richard Biener <rguenther@suse.de>
14955 * tree-streamer-out.c: Include tm.h.
14956 * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
14958 2013-09-03 Jan Hubicka <jh@suse.cz>
14960 * tree-profile.c (tree_profiling): Cleanup CFG when done.
14962 2013-09-03 Alan Modra <amodra@gmail.com>
14964 * config.gcc (powerpc*-*-linux*): Add support for little-endian
14965 multilibs to big-endian target and vice versa.
14966 * config/rs6000/t-linux64: Use := assignment on all vars.
14967 (MULTILIB_EXTRA_OPTS): Remove fPIC.
14968 (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
14969 * config/rs6000/t-linux64le: New file.
14970 * config/rs6000/t-linux64bele: New file.
14971 * config/rs6000/t-linux64lebe: New file.
14973 2013-09-02 Jan Hubicka <jh@suse.cz>
14975 * ipa-inline-transform.c (inline_transform): Do not
14976 optimize_inline_calls when not optimizing.
14978 2013-09-02 Jan Hubicka <jh@suse.cz>
14980 * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
14981 duplicated nodes for assembler names.
14982 * symtab.c (symtab_unregister_node): Do not attempt to unlink
14983 hard registers from assembler name hash.
14985 2013-09-02 Jan Hubicka <jh@suse.cz>
14987 * ipa-split.c (execute_split_functions): Split externally visible
14988 functions called once.
14990 2013-09-02 Martin Jambor <mjambor@suse.cz>
14993 * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
14994 linked list. When finding the correct duplicate, also consider also
14995 the caller in additon to its inlined_to node.
14997 2013-09-02 James Greenhalgh <james.greenhalgh@arm.com>
14999 * config/aarch64/aarch64-simd-builtins.def
15000 (dup_lane_scalar): Remove.
15001 * config/aarch64/aarch64-simd.md
15002 (aarch64_simd_dup): Add 'w->w' alternative.
15003 (aarch64_dup_lane<mode>): Allow for VALL.
15004 (aarch64_dup_lane_scalar<mode>): Remove.
15005 (aarch64_dup_lane_<vswap_width_name><mode>): New.
15006 (aarch64_get_lane_signed<mode>): Add w->w altenative.
15007 (aarch64_get_lane_unsigned<mode>): Likewise.
15008 (aarch64_get_lane<mode>): Likewise.
15009 * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
15010 (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
15011 * config/aarch64/iterators.md (VSWAP_WIDTH): New.
15012 (VCON): Change container of V2SF.
15013 (vswap_width_name): Likewise.
15014 * config/aarch64/arm_neon.h
15015 (__aarch64_vdup_lane_any): New.
15016 (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
15017 (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
15018 (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
15020 2013-09-02 Eric Botcazou <ebotcazou@adacore.com>
15022 PR middle-end/56382
15023 * expr.c (emit_move_complex): Do not move complex FP values as parts if
15024 the source or the destination is a single hard register.
15026 2013-09-02 Richard Biener <rguenther@suse.de>
15028 PR middle-end/57511
15029 * tree-scalar-evolution.c (instantiate_scev_name): Allow
15032 2013-09-02 Richard Biener <rguenther@suse.de>
15034 * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
15035 arithmetic to sizetype.
15037 2013-09-02 Bin Cheng <bin.cheng@arm.com>
15039 * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
15040 Find auto-increment use both before and after candidate.
15042 2013-09-02 Marek Polacek <polacek@redhat.com>
15044 * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
15046 2013-09-01 Jan Hubicka <jh@suse.cz>
15048 * Makefile.in: Add ipa-profile.o
15049 (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
15050 * cgraph.c (struct cgraph_propagate_frequency_data,
15051 cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
15052 ipa-profile.c; replace cgraph_ by ipa_ prefix.
15053 * cgraph.h (cgraph_propagate_frequency): Remove.
15054 * ipa-inline-analysis.c: Include ipa-utils.h;
15055 drop duplicated cfgloop.h.
15056 (inline_update_callee_summaries): Update.
15057 * ipa-profile.c: New file.
15058 * ipa-utils.h (ipa_propagate_frequency): Declare.
15059 * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
15060 data-streamer.h, value-prof.h.
15061 (symtab_remove_unreachable_nodes): Update profile.
15062 (struct histogram_entry, histogram, histogram_pool, histogram_hash,
15063 account_time_size, cmp_counts, dump_histogram,
15064 ipa_profile_generate_summary, ipa_profile_write_summary,
15065 ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
15066 pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
15067 Move to ipa-profile.c.
15069 2013-09-01 John David Anglin <danglin@gcc.gnu.org>
15071 * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
15073 2013-09-01 Jan Hubicka <jh@suse.cz>
15075 * common.opt (fdevirtualize-speculatively): New function.
15076 * invoke.texi (fdevirtualize-speculatively): Document.
15077 * ipa-devirt.c: Include ipa-inline.h
15078 (likely_target_p): New function.
15079 (ipa_devirt): New function.
15080 (gate_ipa_devirt): New function.
15081 (pass_data_ipa_devirt): New static var.
15082 (pass_ipa_devirt): Likewise.
15083 (make_pass_ipa_devirt): New function.
15084 * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
15085 (common_handle_option): Disable devirtualization when
15086 value range profiling is available.
15087 * passes.def (pass_ipa_devirt): Add.
15088 * timever.def (TV_IPA_DEVIRT): New timevar.
15089 * tree-pass.h (make_pass_ipa_devirt):
15091 2013-09-01 Iain Sandoe <iain@codesourcery.com>
15093 * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
15094 include sanitize(undefined).
15096 2013-08-31 Diego Novillo <dnovillo@google.com>
15098 * Makefile.in (TREE_CORE_H): Define.
15100 (GTFILES): Add tree-core.h.
15101 * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
15103 * tree-core.h: New file.
15104 Move all data structures, enum, typedefs, global
15105 declarations and constants from ...
15106 * tree.h: ... here.
15108 2013-08-31 Jan Hubicka <jh@suse.cz>
15110 * bulitins.c (expand_builtin): Do not early exit for gcov
15111 instrumented functions.
15113 2013-08-31 Marek Polacek <polacek@redhat.com>
15115 * ubsan.c: Include tm_p.h.
15117 2013-08-31 Jan Hubicka <jh@suse.cz>
15119 * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
15122 * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
15123 * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
15124 * tree-cfg.c (verify_gimple_label): ... here.
15125 * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
15126 (ipa_merge_profiles): New function.
15127 * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
15128 (lto_input_function_body): Likewise.
15129 * ipa-utils.h (ipa_merge_profiles): Declare.
15130 * lto-streamer.h (lto_input_function_body): Update prototype.
15131 (emit_label_in_global_context_p): Remove.
15132 * lto-symtab.c: Include ipa-utils.h
15133 (lto_cgraph_replace_node): Use ipa_merge_profiles.
15135 2013-08-31 Jan Hubicka <jh@suse.cz>
15137 * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
15139 2013-08-31 Jan Hubicka <jh@suse.cz>
15141 * basic-block.h (apply_scale): Make scale parmeter gcov_type.
15143 2013-08-31 Uros Bizjak <ubizjak@gmail.com>
15145 * config/alpha/alpha.c (alpha_emit_conditional_move): Update
15146 "cmp" RTX before signed_comparison_operator check to account
15147 for "code" changes.
15149 2013-08-30 Jan Hubicka <jh@suse.cz>
15151 * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
15152 (detect_type_change_1): Rename to ...
15153 (detect_type_change): ... this one; early return on non-polymorphic
15155 (detect_type_change_ssa): Add comp_type parameter; update
15156 use of detect_type_change.
15157 (compute_complex_assign_jump_func): Add param_type parameter;
15158 update use of detect_type_change_ssa.
15159 (compute_complex_ancestor_jump_func): Likewise.
15160 (ipa_get_callee_param_type): New function.
15161 (ipa_compute_jump_functions_for_edge): Compute parameter type;
15162 update calls to the jump function computation functions.
15164 2013-08-30 Teresa Johnson <tejohnson@google.com>
15165 Steven Bosscher <steven@gcc.gnu.org>
15167 * cfgrtl.c (fixup_new_cold_bb): New routine.
15168 (commit_edge_insertions): Invoke fixup_partitions.
15169 (find_partition_fixes): New routine.
15170 (fixup_partitions): Ditto.
15171 (verify_hot_cold_block_grouping): Update comments.
15172 (rtl_verify_edges): Invoke find_partition_fixes.
15173 (rtl_verify_bb_pointers): Update comments.
15174 (rtl_verify_bb_layout): Ditto.
15175 * basic-block.h (probably_never_executed_edge_p): Declare.
15176 (fixup_partitions): Ditto.
15177 * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
15178 * bb-reorder.c (sanitize_hot_paths): New function.
15179 (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
15180 sanitize_hot_paths.
15181 * predict.c (probably_never_executed_edge_p): New routine.
15182 * cfg.c (check_bb_profile): Add partition insanity warnings.
15184 2013-08-30 Meador Inge <meadori@codesourcery.com>
15186 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
15188 2013-08-30 Marek Polacek <polacek@redhat.com>
15190 * Makefile.in (ubsan.o): Add.
15191 (c-family/c-ubsan.o): Add.
15192 (builtins.o): Add ubsan.h dependency.
15193 * ubsan.h: New file.
15194 * ubsan.c: New file.
15195 * common.opt: Add -fsanitize=undefined option.
15196 (flag_sanitize): Add variable.
15197 (fsanitize=): Add option. Add Driver.
15198 (fsanitize=thread): Remove option.
15199 (fsanitize=address): Likewise.
15200 (static-libubsan): New option.
15201 * doc/invoke.texi: Document the new flag and -static-libubsan.
15202 * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
15203 (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
15204 * builtin-attrs.def (ATTR_COLD): Define.
15205 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
15206 * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
15207 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
15208 * flag-types.h (sanitize_code): New enum.
15209 * opts.c (common_handle_option): Parse command line arguments
15210 of -fsanitize=. Add -fsanitize=unreachable option.
15211 * varasm.c (get_variable_section): Adjust.
15212 (assemble_noswitch_variable): Likewise.
15213 (assemble_variable): Likewise.
15214 (output_constant_def_contents): Likewise.
15215 (categorize_decl_for_section): Likewise.
15216 (place_block_symbol): Likewise.
15217 (output_object_block): Likewise.
15218 * builtins.def: Likewise.
15219 * toplev.c (compile_file): Likewise.
15220 (process_options): Likewise.
15221 * cppbuiltin.c: Likewise.
15222 * tsan.c (tsan_pass): Likewise.
15223 (tsan_gate): Likewise.
15224 (tsan_gate_O0): Likewise.
15225 * cfgexpand.c (partition_stack_vars): Likewise.
15226 (expand_stack_vars): Likewise.
15227 (defer_stack_allocation): Likewise.
15228 (expand_used_vars): Likewise.
15229 * cfgcleanup.c (old_insns_match_p): Likewise.
15230 * asan.c (asan_finish_file): Likewise.
15231 (asan_instrument): Likewise.
15232 (gate_asan): Likewise.
15233 (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
15234 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
15235 (asan_global_struct): Use pointer_sized_int_node instead
15236 calling build_nonstandard_integer_type.
15237 (initialize_sanitizer_builtins): Likewise.
15238 (asan_finish_file): Likewise.
15239 * gcc.c: Document %{%:function(args):X}.
15240 (static_spec_functions): Add sanitize.
15241 (handle_spec_function): Add retval_nonnull argument and if non-NULL,
15242 store funcval != NULL there.
15243 (do_spec_1): Adjust handle_spec_function caller.
15244 (handle_braces): Allow %:function(args) as condition.
15245 (sanitize_spec_function): New function.
15246 (ADD_STATIC_LIBUBSAN_LIBS): Define.
15247 (LIBUBSAN_SPEC): Likewise.
15248 (LIBUBSAN_EARLY_SPEC): Likewise.
15249 (SANITIZER_SPEC): Handle libubsan.
15250 (SANITIZER_EARLY_SPEC): Likewise.
15251 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
15252 instead of fsanitize=address.
15253 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
15254 instead of fsanitize=address*.
15255 * builtins.c: Include ubsan.h.
15256 (fold_builtin_0): Instrument __builtin_unreachable.
15257 * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
15258 instead of flag_asan.
15259 * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
15260 (pointer_sized_int_node): Define.
15261 * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
15263 2013-08-30 Mike Stump <mikestump@comcast.net>
15265 * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
15268 2013-08-29 Jan Hubicka <jh@suse.cz>
15270 * cgraph.c (cgraph_function_body_availability): Handle weakref
15272 * passes.def: Remove pass_fixup_cfg.
15273 * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
15274 track when we need to remove functions.
15275 (gate_ipa_inline): Execute inlining always; add comment why.
15276 (pass_data_ipa_inline): Remove TODO_remove_functions.
15277 * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
15278 do not produce summaries.
15279 * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
15280 (symtab_nonoverwritable_alias): Assert we are not called on weakref.
15281 * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
15282 constant pool and vtable.
15284 2013-08-30 Tejas Belagod <tejas.belagod@arm.com>
15286 * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
15287 New arm_neon.h's internal macros to specify 64-bit constants.
15288 Avoid using stdint.h's macros.
15290 2013-08-30 Joern Rennecke <joern.rennecke@embecosm.com>
15292 * recog.c (verify_changes): Verify that changes[i].old is non-zero
15293 before applying REG_P.
15295 2013-08-30 Jakub Jelinek <jakub@redhat.com>
15297 PR tree-optimization/58277
15298 * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
15299 after seeing too many stmts with vdef in between dombb and current
15300 bb, invalidate everything.
15302 2013-08-30 Richard Biener <rguenther@suse.de>
15304 * fold-const.c (fold_single_bit_test): Fix overflow test.
15306 2013-08-30 Eric Botcazou <ebotcazou@adacore.com>
15308 * function.c (assign_parm_setup_reg): For a parameter passed by pointer
15309 and which can live in a register, always retrieve the value on entry.
15310 * var-tracking.c (add_stores): Treat the copy on entry for a parameter
15311 passed by invisible reference specially.
15312 (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
15313 (vt_add_function_parameter): Correctly deal with a parameter passed by
15314 invisible reference.
15316 2013-08-30 Jan Hubicka <jh@suse.cz>
15318 * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
15320 2013-08-30 Richard Biener <rguenther@suse.de>
15322 PR tree-optimization/58228
15323 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
15324 allow invariant loads in nested loop vectorization.
15326 2013-08-30 Richard Biener <rguenther@suse.de>
15328 PR tree-optimization/58223
15329 * tree-loop-distribution.c (has_anti_dependence): Rename to ...
15330 (has_anti_or_output_dependence): ... this and adjust to also
15331 look for output dependences.
15332 (mark_nodes_having_upstream_mem_writes): Adjust.
15333 (rdg_flag_uses): Likewise.
15335 2013-08-30 Richard Biener <rguenther@suse.de>
15337 PR tree-optimization/58010
15338 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
15339 assert that we have a loop-closed PHI.
15341 2013-08-29 Jan Hubicka <jh@suse.cz>
15343 * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
15344 * cgraph.c (cgraph_release_function_body): Free decl_in_state.
15345 * lto-section-in.c (lto_free_function_in_decl_state): New function.
15346 (lto_free_function_in_decl_state_for_node): New function.
15348 2013-08-29 Xinliang David Li <davidxl@google.com>
15350 * loop-unroll.c (report_unroll_peel): Minor message change.
15351 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
15352 Emit alignment peeling message with default -fopt-info.
15353 (vect_loop_versioning): Emit loop version info message.
15354 * tree-vectorizer.c (vectorize_loops): Minor message change.
15355 (execute_vect_slp): Ditto.
15357 2013-08-29 Eric Botcazou <ebotcazou@adacore.com>
15359 * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
15360 of the clone from the DECL_NAME of the original function.
15362 2013-08-29 Oleg Endo <olegendo@gcc.gnu.org>
15364 * passes.c (register_pass): Add overload.
15365 * tree-pass.h (register_pass): Forward declare it. Add comment.
15367 2013-08-29 Jan Hubicka <jh@suse.cz>
15369 * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
15370 DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
15371 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
15372 DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
15373 (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
15374 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
15375 Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
15376 (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
15378 2013-08-29 Teresa Johnson <tejohnson@google.com>
15380 * dumpfile.c (dump_loc): Output column number.
15381 * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
15382 * doc/invoke.texi: Document optall -fopt-info flag.
15383 * profile.c (read_profile_edge_counts): Use new dump framework.
15384 (compute_branch_probabilities): Ditto.
15385 * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
15386 when pass not in any opt group.
15387 * pass_manager.h (pass_manager::get_pass_profile): New method.
15388 * value-prof.c (check_counter): Use new dump framework.
15389 (check_ic_target): Ditto.
15390 * coverage.c (get_coverage_counts): Ditto.
15391 (coverage_init): Setup new dump framework.
15393 2013-08-29 Richard Biener <rguenther@suse.de>
15395 PR tree-optimization/58246
15396 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
15397 handle the dominance check inside a basic-block.
15399 2013-08-29 Richard Biener <rguenther@suse.de>
15401 PR middle-end/57287
15402 * tree-ssa-copy.c (may_propagate_copy): Allow propagating
15403 of default defs that appear in abnormal PHI nodes.
15405 2013-08-29 Richard Biener <rguenther@suse.de>
15407 PR tree-optimization/57685
15408 * tree-vrp.c (register_edge_assert_for_1): Recurse only for
15409 single-use operands to avoid exponential complexity.
15411 2013-08-28 Dehao Chen <dehao@google.com>
15413 * ipa-inline.c (edge_badness): Fix integer underflow.
15415 2013-08-28 Uros Bizjak <ubizjak@gmail.com>
15417 * gtm-builtins.def (_ITM_free): Declare leaf.
15419 2013-08-28 Jakub Jelinek <jakub@redhat.com>
15422 * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
15423 (*tls_local_dynamic_base_64_largepic): Likewise.
15424 (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
15425 Remove predicate from call operand.
15426 * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
15427 return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
15429 2013-08-28 Jeff Law <law@redhat.com>
15431 * tree-ssa-threadedge.c (thread_around_empty_block): Remove
15432 checks for the number of predecessors and successors allowed.
15433 * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
15434 which require copying a joiner block if there is a request which
15435 is a subpath that requires no joiner block copying.
15437 2013-08-28 Jan Hubicka <jh@suse.cz>
15439 * lto-streamer-out.c (DFS_write_tree_body): Drop
15440 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
15441 (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
15442 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
15443 * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
15444 Do not read DECL_ERROR_ISSUED.
15445 (unpack_ts_decl_with_vis_value_fields): Do not read
15447 (lto_input_ts_binfo_tree_pointers): Do not read
15448 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
15449 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
15450 write DECL_ERROR_ISSUED..
15451 (pack_ts_decl_with_vis_value_fields): Do not write
15453 (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
15454 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
15455 * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
15456 * tree.h (tree_decl_common): Update comment.
15457 (DECL_ERROR_ISSUED): Remove.
15459 2013-08-28 Jakub Jelinek <jakub@redhat.com>
15461 PR middle-end/58257
15462 * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
15464 2013-08-28 Jan Hubicka <jh@suse.cz>
15466 * builtins.def (free): Declare leaf.
15468 2013-08-27 David Malcolm <dmalcolm@redhat.com>
15470 * gdbhooks.py: New.
15471 * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
15472 * configure: Regenerate.
15474 2013-08-27 Martin Jambor <mjambor@suse.cz>
15476 * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
15477 (ipa_ancestor_jf_data): Likewise.
15478 (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
15479 (ipa_get_jf_pass_through_type_preserved): New function.
15480 (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
15481 (ipa_get_jf_ancestor_type_preserved): New function.
15482 * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
15483 (ipa_get_jf_ancestor_result): Likewise.
15484 (propagate_vals_accross_pass_through): Use
15485 ipa_get_jf_pass_through_result to do all the value mappings.
15486 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
15487 type_preserved flag.
15488 (ipa_set_jf_cst_copy): New function.
15489 (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
15490 (ipa_set_jf_arith_pass_through): Likewise.
15491 (ipa_set_ancestor_jf): Likewise.
15492 (compute_complex_assign_jump_func): Set type_preserved instead of
15494 (ipa_compute_jump_functions_for_edge): Likewise.
15495 (combine_known_type_and_ancestor_jfs): Honor type_preserved.
15496 (update_jump_functions_after_inlining): Update type_preserved.
15497 Explicitely create jump functions when combining one with pass_through.
15498 (ipa_write_jump_function): Stream the type_preserved flags.
15499 (ipa_read_jump_function): Likewise.
15501 2013-08-27 Jakub Jelinek <jakub@redhat.com>
15502 Aldy Hernandez <aldyh@redhat.com>
15504 * Makefile.in (omp-low.o): Depend on $(TARGET_H).
15505 * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
15506 * function.h (struct function): Add has_force_vect_loops and
15508 * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
15509 * gimple.c (gimple_build_omp_critical): Add KIND argument and
15511 * gimple.def: Update CLAUSES comments.
15512 * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
15513 (gimple_build_omp_for): Add argument to prototype.
15514 (gimple_omp_for_kind): New.
15515 (gimple_omp_for_set_kind): New.
15516 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
15517 GOVD_DATA_SHARE_CLASS.
15518 (enum omp_region_type): Add ORT_SIMD.
15519 (gimple_add_tmp_var): Handle ORT_SIMD.
15520 (gimplify_var_or_parm_decl): Same.
15521 (is_gimple_stmt): Same.
15522 (omp_firstprivatize_variable): Same.
15523 (omp_add_variable): Only use splay_tree_insert if lookup failed.
15524 (omp_notice_variable): Handle ORT_SIMD.
15525 (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
15526 (omp_check_private): Handle ORT_SIMD.
15527 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
15528 OMP_CLAUSE_SAFELEN.
15529 (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
15530 Handle OMP_CLAUSE_LASTPRIVATE.
15531 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
15532 OMP_CLAUSE_SAFELEN.
15533 (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
15534 (gimplify_expr): Handle OMP_SIMD.
15535 * internal-fn.c (expand_GOMP_SIMD_LANE): New.
15536 (expand_GOMP_SIMD_VF): New.
15537 (expand_GOMP_SIMD_LAST_LANE): New.
15538 * internal-fn.def (GOMP_SIMD_LANE): New.
15539 (GOMP_SIMD_VF): New.
15540 (GOMP_SIMD_LAST_LANE): New.
15541 * omp-low.c: Include target.h.
15542 (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
15543 OMP_CLAUSE_SAFELEN.
15544 (check_omp_nesting_restrictions): Same.
15546 (lower_rec_simd_input_clauses): New.
15547 (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
15549 (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
15550 GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
15551 (expand_omp_build_assign): New.
15552 (expand_omp_for_init_counts): New.
15553 (expand_omp_for_init_vars): New.
15554 (extract_omp_for_update_vars): New.
15555 (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
15556 and rewrite accordingly.
15557 (expand_omp_simd): New.
15558 (expand_omp_for): Use expand_omp_simd.
15559 (lower_omp_for_lastprivate): Unshare vinit when appropriate.
15560 (lower_omp_for): Do not lower the body.
15561 * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
15562 in their own loops.
15563 * tree-flow.h (find_omp_clause): Remove prototype.
15564 * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
15565 forcing vectorization of the loop, or if flag_tree_vectorize.
15566 (gate_tree_if_conversion): Similarly.
15567 * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
15568 gimple_build_omp_for.
15569 (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
15570 * tree-parloops (create_parallel_loop): Pass kind argument to
15571 gimple_build_omp_for.
15572 * tree-pretty-print.c (dump_omp_clause): Add cases for
15573 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
15574 OMP_CLAUSE__SIMDUID_.
15575 (dump_generic_node): Handle OMP_SIMD.
15576 * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
15577 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
15578 unroll OMP_SIMD loops here.
15579 * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
15580 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
15582 (vect_analyze_data_refs): Handle simd loops.
15583 * tree-vect-loop.c (vectorizable_live_operation): Handle
15585 * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
15586 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
15587 (vectorizable_load): Same.
15588 * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
15589 (struct simduid_to_vf): New.
15590 (simduid_to_vf::hash): New.
15591 (simduid_to-vf::equal): New.
15592 (struct simd_array_to_simduid): New.
15593 (simd_array_to_simduid::hash): New.
15594 (simd_array_to_simduid::equal): New.
15595 (adjust_simduid_builtins): New.
15596 (struct note_simd_array_uses_struct): New.
15597 (note_simd_array_uses_cb): New.
15598 (note_simd_array_uses): New.
15599 (vectorize_loops): Handle simd hints and adjust simd builtins
15601 * tree-vectorizer.h (struct _stmt_vec_info): Add
15602 simd_lane_access_p field.
15603 (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
15604 * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
15605 OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
15606 (omp_clause_code_name): Same.
15607 (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
15608 OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
15609 * tree.def (OMP_SIMD): New entry.
15610 * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
15611 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
15612 (OMP_CLAUSE_DECL): Adjust range for new clauses.
15613 (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
15614 (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
15615 (OMP_CLAUSE_LINEAR_STEP): New.
15616 (OMP_CLAUSE_SAFELEN_EXPR): New.
15617 (OMP_CLAUSE__SIMDUID__DECL): New.
15618 (find_omp_clause): New prototype.
15620 2013-08-27 H.J. Lu <hongjiu.lu@intel.com>
15622 * config/i386/driver-i386.c (host_detect_local_cpu): Update
15623 Haswell processor detection.
15625 2013-08-27 Christian Widmer <shadow@umbrox.de>
15628 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
15629 of Ivy Bridge and Haswell processors. Assume core-avx2 for unknown
15630 AVX2 capable processors.
15632 2013-08-27 Tejas Belagod <tejas.belagod@arm.com>
15634 * config/aarch64/arm_neon.h: Replace all inline asm implementations
15635 of vget_low_* with implementations in terms of other intrinsics.
15637 2013-08-27 Marc Glisse <marc.glisse@inria.fr>
15639 PR middle-end/57219
15640 * doc/extend.texi (__builtin_isinf_sign): Restrict the return
15641 values to -1, 0 and 1.
15643 2013-08-27 Vidya Praveen <vidyapraveen@arm.com>
15645 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
15646 UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
15647 (<optab><mode>3_insn): Remove.
15648 (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
15649 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
15650 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
15651 (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
15652 (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
15653 (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
15654 (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
15655 (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
15656 (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
15657 (ror<mode>3_insn): Likewise.
15658 * config/aarch64/predicates.md (aarch64_simd_register): New.
15660 2013-08-27 Richard Biener <rguenther@suse.de>
15662 PR tree-optimization/57521
15663 * tree-if-conv.c (if_convertible_bb_p): Verify that at least
15664 one edge is non-critical.
15665 (find_phi_replacement_condition): Make sure to use a non-critical
15666 edge. Cleanup and remove old bug workarounds.
15667 (bb_postdominates_preds): Remove.
15668 (if_convertible_loop_p_1): Do not compute post-dominators.
15669 (combine_blocks): Do not free post-dominators.
15670 (main_tree_if_conversion): Likewise.
15671 (pass_data_if_conversion): Add TODO_verify_ssa.
15673 2013-08-27 DJ Delorie <dj@redhat.com>
15675 * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
15677 2013-08-27 Yufeng Zhang <yufeng.zhang@arm.com>
15679 * function.c (assign_parm_find_data_types): Set passed_mode and
15680 nominal_mode to the TYPE_MODE of nominal_type for the built
15681 pointer type in case of the struct-pass-by-reference.
15683 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
15685 * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
15686 (UINT16_TYPE): Change default to "unsigned int".
15688 * config/avr/avr.opt (mfract-convert-truncate): New option.
15689 * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
15690 is set, round negative fractional integers according to n1169
15691 when converting to integer types.
15693 2013-08-26 Jan Hubicka <jh@suse.cz>
15695 * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
15696 methods can not be called indirectly when their address is not taken.
15698 2013-08-26 Jan Hubicka <jh@suse.cz>
15700 * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
15703 2013-08-26 Jan Hubicka <jh@suse.cz>
15705 * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
15708 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
15710 * reload.c (find_valid_class): Allow classes that do not include
15711 FIRST_PSEUDO_REGISTER - 1.
15713 2013-08-26 Jan Hubicka <jh@suse.cz>
15715 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
15716 fix edge count/frequency when speculation failed; fix type check
15717 for the direct call.
15719 2013-08-26 Jan Hubicka <jh@suse.cz>
15721 * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
15723 2013-08-26 Jan Hubicka <jh@suse.cz>
15725 * ipa-inline-transform.c (inline_transform): Be ready for basic block
15726 to be changed by edge redirection.
15728 2013-08-26 Jan Hubicka <jh@suse.cz>
15730 * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
15731 formating; add sanity check.
15732 (cgraph_resolve_speculation): Add FIXME about scaling profiles.
15733 (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
15734 * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
15735 (resolve_noninline_speculation): Update callee keys, too.
15737 2013-08-26 Jan Hubicka <jh@suse.cz>
15739 * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
15740 (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
15742 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
15744 * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
15747 2013-08-26 Uros Bizjak <ubizjak@gmail.com>
15749 * config/i386/i386.c (ix86_debug_options): Remove prototype.
15750 (x86_64_elf_select_section): Ditto.
15751 (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
15753 (ix86_pass_by_reference): Ditto.
15754 (output_set_got): Ditto.
15755 (ix86_unary_operator_ok): Ditto.
15756 (ix86_expand_builtin): Ditto.
15758 2013-08-23 Jan Hubicka <jh@suse.cz>
15760 * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
15762 2013-08-23 Jan Hubicka <jh@suse.cz>
15764 * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
15765 (tree_decl_with_vis): Add FINAL field.
15767 2013-08-23 Jeff Law <law@redhat.com>
15769 * tree-ssa-pre.c (do_regular_insertion): Include the expression in
15770 the debugging dump when the expression is fully redundant.
15772 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
15774 * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
15775 * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
15776 * pretty-print.c (pp_formatted_text_data): Likewise.
15777 (pp_write_text_to_stream): Likewise.
15778 (pp_write_text_as_dot_label_to_stream): Likewise.
15779 (pp_append_r): Likewise.
15780 (pp_format): Likewise.
15781 (pp_flush): Likewise.
15782 (pp_clear_output_area): Likewise.
15783 (pp_append_text): Likewise.
15784 (pp_formatted_text): Likewise.
15785 (pp_remaining_character_count_for_line): Likewise.
15786 (pp_newline): Likewise.
15787 (pp_character): Likewise.
15788 (output_buffer::~output_buffer): Define.
15789 (pretty_printer::~pretty_printer): Destruct output buffer.
15790 * pretty-print.h (output_buffer::~output_buffer): Declare.
15791 (pretty_printer::~pretty_printer): Declare virtual.
15793 2013-08-24 Marc Glisse <marc.glisse@inria.fr>
15796 * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
15797 HOST_WIDE_INT_M1U): New macros.
15798 * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
15799 fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
15800 unsigned -1 for lshift.
15801 * cse.c (cse_insn): Likewise.
15802 * double-int.c (rshift_double, lshift_double): Likewise.
15803 * builtins.c (fold_builtin_bitop): Likewise.
15804 * combine.c (force_to_mode): Likewise.
15805 * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
15806 * simplify-rtx.c (simplify_const_unary_operation,
15807 simplify_const_binary_operation): Likewise.
15808 * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
15809 check_va_list_escapes): Likewise.
15810 * rtlanal.c (nonzero_bits1): Likewise.
15811 * expmed.c (expand_smod_pow2): Likewise.
15812 * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
15814 2013-08-23 Jan Hubicka <jh@suse.cz>
15816 * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
15817 as having address taken.
15819 2013-08-23 Jan Hubicka <jh@suse.cz>
15821 * ipa-utils.h (method_class_type): Declare.
15822 * ipa-devirt.c (method_class_type): Export.
15824 * cgraphunit.c (analyze_functions): Do basic devirtualization;
15825 do not walk base classes of anonymous types.
15827 2013-08-23 Kaz Kojima <kkojima@gcc.gnu.org>
15829 PR rtl-optimization/58220
15830 PR regression/58221
15831 * final.c (reemit_insn_block_notes): Use NEXT_INSN to
15832 handle SEQUENCE insns properly.
15834 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
15836 * pretty-print.h (pp_newline_and_flush): Declare. Remove macro
15838 (pp_newline_and_indent): Likewise.
15839 (pp_separate_with): Likewise.
15840 * pretty-print.c (pp_newline_and_flush): Define.
15841 (pp_newline_and_indent): Likewise.
15842 (pp_separate_with): Likewise.
15844 2013-08-23 Jakub Jelinek <jakub@redhat.com>
15847 * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
15848 * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
15850 2013-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
15852 * config/i386/predicates.md (ext_sse_reg_operand): New.
15853 * config/i386/i386.md (*movti_internal): Use
15854 predicate to determine if EVEX is needed.
15855 (*movsi_internal): Ditto.
15856 (*movdf_internal): Ditto.
15857 (*movsf_internal): Ditto.
15858 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
15860 2013-08-23 Jakub Jelinek <jakub@redhat.com>
15862 PR tree-optimization/58209
15863 * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
15864 (find_tail_calls): Give up for pointer result types if m is non-NULL.
15865 (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
15866 emit POINTER_PLUS_EXPR.
15867 (create_tailcall_accumulator): For pointer result type accumulate in
15870 2013-08-22 Paolo Carlini <paolo.carlini@oracle.com>
15872 * configure.ac: Add backslashes missing from the last change.
15873 * configure: Regenerate.
15875 2013-08-22 Jan Hubicka <jh@susue.cz>
15877 * ipa.c (function_and_variable_visibility): First remember function
15878 was global and then make it local.
15880 2013-08-22 Julian Brown <julian@codesourcery.com>
15882 * configure.ac: Add aarch64 to list of arches which use "nop" in
15884 * configure: Regenerate.
15886 2013-08-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15888 * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
15889 gnu_libc_has_function.
15890 * config/s390/tpf.h: Likewise.
15892 2013-08-22 Jan Hubicka <jh@susue.cz>
15894 * timevar.c (validate_phases): Add cast.
15896 2013-08-22 Jan Hubicka <jh@susue.cz>
15898 * timevar.c (validate_phases): Use size_t for memory.
15899 * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
15901 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
15903 * pretty-print.h (output_buffer::output_buffer): Declare.
15904 (pretty_printer::pretty_printer): Likewise.
15905 (pp_construct): Remove.
15906 * pretty-print.c (output_buffer::output_buffer): Define.
15907 (pretty_printer::pretty_printer): Rename from pp_construct. Simplify.
15908 * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
15909 (print_gimple_expr): Likewise.
15910 (print_gimple_seq): Likewise.
15911 (gimple_dump_bb): Likewise.
15912 * sched-vis.c (dump_value_slim): Likewise.
15913 (dump_insn_slim): Likewise.
15914 (dump_rtl_slim): Likewise.
15915 (str_pattern_slim): Likewise.
15916 * tree-mudflap.c (mf_varname_tree): Likewise.
15917 * graph.c (print_graph_cfg): Likewise.
15918 (start_graph_dump): Likewise.
15919 * tree-pretty-print.c (maybe_init_pretty_print): Likewise. Use
15921 * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
15922 pretty printer initialization.
15923 * coretypes.h (diagnostic_context): Remove superflous type alias
15925 (pretty_printer): Likewise. Declare directly as a class.
15926 (pretty_print_info): Remove declaration as class.
15927 * asan.c (asan_emit_stack_protection): Remove call to pp_construct
15928 and pp_clear_output_area.
15929 (asan_add_global): Likewise.
15931 2013-08-22 Jan Hubicka <jh@suse.cz>
15933 * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
15934 * ipa-utils.h (update_type_inheritance_graph): Declare.
15935 (possible_polymorphic_call_target_p): Declare.
15936 (possible_polymorphic_call_target_p): New.
15937 * ipa-devirt.c: Update toplevel comments.
15938 (cached_polymorphic_call_targets): Move up.
15939 (odr_type_d): Move ID down.
15940 (polymorphic_type_binfo_p): Update comment.
15941 (odr_hasher::remove): Likewise;
15942 (get_odr_type): Set anonymous_namespace.
15943 (dump_odr_type): Dump it.
15944 (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
15945 (maybe_record_node): Record node in cached_polymorphic_call_targets.
15946 (record_binfo): Add comment.
15947 (free_polymorphic_call_targets_hash): Do not ICE when cache is not
15949 (devirt_node_removal_hook): Do not iCE when cache is freed.
15950 (possible_polymorphic_call_target_p): New predicate.
15951 (update_type_inheritance_graph): New function.
15953 2013-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
15954 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15955 Sergey Lega <sergey.s.lega@intel.com>
15956 Anna Tikhonova <anna.tikhonova@intel.com>
15957 Ilya Tocar <ilya.tocar@intel.com>
15958 Andrey Turetskiy <andrey.turetskiy@intel.com>
15959 Ilya Verbin <ilya.verbin@intel.com>
15960 Kirill Yukhin <kirill.yukhin@intel.com>
15961 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15963 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
15964 (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
15965 (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
15966 (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
15967 (OPTION_MASK_ISA_AVX2_UNSET): Update.
15968 (OPTION_MASK_ISA_AVX512F_UNSET): New.
15969 (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
15970 (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
15971 (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
15972 (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
15973 OPT_mavx512pf, OPT_mavx512er cases.
15974 * config/i386/constraints.md (v): New constraint.
15975 (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
15976 * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
15977 (bit_AVX512CD): New.
15978 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
15979 AVX512F, AVX512ER, AVX512PF, AVX512CD features.
15980 * config/i386/i386-c.c (ix86_target_macros_internal):
15981 Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
15983 * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
15984 (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
15985 * config/i386/i386.c (regclass_map, dbx_register_map)
15986 (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
15987 (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
15988 (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
15989 -mavx512pf options.
15990 (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
15991 PTA_AVX512PF, PTA_AVX512CD. Handle -mavx512f, -mavx512er, -mavx512cd,
15992 -mavx512pf options. Fix formatting.
15993 (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
15994 targets. Squash EVEX_SSE_REGS if AVX512F is disabled.
15995 (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
15996 -mavx512cd, -mavx512pf options.
15997 (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
15998 (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
15999 (ix86_preferred_output_reload_class): Replace SSE_REGS with
16001 (ix86_hard_regno_mode_ok): Support 512-bit registers.
16002 (ix86_set_reg_reg_cost): Ditto.
16003 (x86_order_regs_for_local_alloc): Ditto.
16004 (MAX_VECT_LEN): Extend to 64-byte.
16005 (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
16006 * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
16007 (TARGET_AVX512ER, TARGET_AVX512CD): New.
16008 (BIGGEST_ALIGNMENT): Extend to 512-bits.
16009 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
16010 (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
16011 (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
16012 (SSE_REG_MODE_P): Support new modes.
16013 (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
16014 (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
16015 (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
16016 (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
16017 (REG_CLASS_CONTENTS): Add new registers.
16018 (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
16019 (EXT_REX_SSE_REGNO_P): New.
16020 (HI_REGISTER_NAMES): Add new registers.
16021 * config/i386/i386.md: Define constants for new registers.
16022 (mode): Add new 512-bit modes.
16023 (prefix): Support evex prefix.
16024 (isa): Support avx512f, noavx512f, fma_avx512f.
16025 (ssemodesuffix): Add new 512-bit modes.
16027 (*movxi_internal_avx512f): Ditto.
16028 (*movdi_internal): Replace constraint "x" with the new constraint "v".
16030 (*movsi_internal): Likewise.
16031 (*movdf_internal): Likewise.
16032 (*movsf_internal): Likewise.
16033 (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
16034 (<code><mode>3): Likewise.
16035 * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
16037 * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
16038 with the new constraint "v".
16039 * config/i386/sse.md (*mov<mode>_internal): Support new registers and
16041 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
16042 with the new constraint "v".
16043 (<sse2>_loaddqu<avxsizesuffix>): Likewise.
16044 (<sse2>_storedqu<avxsizesuffix>): Likewise.
16045 (*<plusminus_insn><mode>3): Likewise.
16046 (<sse>_vm<plusminus_insn><mode>3): Likewise.
16047 (*mul<mode>3): Likewise.
16048 (<sse>_vmmul<mode>3): Likewise.
16049 (<sse>_div<mode>3): Likewise.
16050 (<sse>_vmdiv<mode>3): Likewise.
16051 (<sse>_sqrt<mode>2): Likewise.
16052 (<sse>_vmsqrt<mode>2): Likewise.
16053 (*<code><mode>3_finite): Likewise.
16054 (*<code><mode>3) <smaxmin>: Likewise.
16055 (<sse>_vm<code><mode>3): Likewise.
16056 (*<code><mode>3) <any_logic>: Likewise.
16057 (*fma_fmadd_<mode>): Likewise.
16058 (*fma_fmsub_<mode>): Likewise.
16059 (*fma_fnmadd_<mode>): Likewise.
16060 (*fma_fnmsub_<mode>): Likewise.
16061 (*fma_fmaddsub_<mode>): Likewise.
16062 (*fma_fmsubadd_<mode>): Likewise.
16063 (*fmai_fmadd_<mode>): Likewise.
16064 (*fmai_fmsub_<mode>): Likewise.
16065 (*fmai_fnmadd_<mode>): Likewise.
16066 (*fmai_fnmsub_<mode>): Likewise.
16067 (sse_cvtsi2ss): Likewise.
16068 (sse_cvtsi2ssq): Likewise.
16069 (sse_cvtss2si): Likewise.
16070 (sse_cvtss2si_2): Likewise.
16071 (sse_cvtss2siq): Likewise.
16072 (sse_cvtss2siq_2): Likewise.
16073 (sse_cvttss2si): Likewise.
16074 (sse_cvtss2siq_2): Likewise.
16075 (float<sseintvecmodelower><mode>2): Likewise.
16076 (sse2_cvtsd2si_2): Likewise.
16077 (sse2_cvtsd2siq_2): Likewise.
16078 (*<plusminus_insn><mode>3): Likewise.
16079 (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
16080 (*<sse4_1_avx2>_mul<mode>3): Likewise.
16081 (ashr<mode>3): Likewise.
16082 (<shift_insn><mode>3): Likewise.
16083 (avx2_<code><mode>3): Likewise.
16084 (*avx2_<code><mode>3): Likewise.
16085 (*andnot<mode>3): Likewise.
16086 (*<code><mode>3) <any_logic>: Likewise.
16087 (abs<mode>2): Likewise.
16088 (avx2_permvar<mode>): Likewise.
16089 (avx2_perm<mode>_1): Likewise.
16090 (*avx_vpermilp<mode>): Likewise.
16091 (avx_vpermilvar<mode>3): Likewise.
16092 (avx2_ashrv<mode>): Likewise.
16093 (avx2_<shift_insn>v<mode>): Likewise.
16094 * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
16096 * doc/rtl.texi: Document XImode.
16098 2013-08-21 Jeff Law <law@redhat.com>
16100 * tree-flow.h (register_jump_thread): Pass vector of edges
16101 instead of each important edge.
16102 * tree-ssa-threadedge.c (thread_across_edge): Build the jump
16103 thread path into a vector and pass that to register_jump_thread.
16104 * tree-ssa-threadupdate.c (register_jump_thread): Conver the
16105 passed in edge vector to the current 3-edge form.
16108 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
16110 * dce.c (fini_dce): Call df_analyze again just in case
16111 delete_unmarked_insns removed anything.
16113 2013-08-21 Joern Rennecke <joern.rennecke@embecosm.com>
16115 * reload.h (struct reg_equivs): Rename to ..
16116 (struct reg_equivs_s): .. this.
16118 2013-08-20 Martin Liska <marxin.liska@gmail.com>
16120 * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
16122 2013-08-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16124 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
16126 2013-08-21 Jeff Law <law@redhat.com>
16128 * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
16129 simplify assignments too. If the RHS collapses to a singleton
16130 range, then return the value for the range.
16132 2013-08-21 Kirill Yukhin <kirill.yukhin@intel.com>
16134 * config/i386/sse.md (V16): Rename to...
16136 (mov<mode>): Update iterator name.
16137 (*mov<mode>_internal): Ditto.
16138 (push<mode>1): Ditto.
16139 (movmisalign<mode>): Ditto.
16141 2013-08-20 Jan Hubicka <jh@suse.cz>
16144 * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
16145 entry for direct edges.
16146 (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
16148 2013-08-20 David Malcolm <dmalcolm@redhat.com>
16150 Revert my last two changes, r201865 and r201864:
16153 2013-08-20 David Malcolm <dmalcolm@redhat.com>
16155 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
16156 instances can own GC refs.
16158 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
16159 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
16160 (gcc::context::gt_pch_nx): Likewise.
16161 (gcc::context::gt_pch_nx): Likewise.
16162 * ggc.h (gt_ggc_mx <T>): New.
16163 (gt_pch_nx_with_op <T>): New.
16164 (gt_pch_nx <T>): New.
16165 * passes.c (opt_pass::gt_ggc_mx): New.
16166 (opt_pass::gt_pch_nx): New.
16167 (opt_pass::gt_pch_nx_with_op): New.
16168 (pass_manager::gt_ggc_mx): New.
16169 (pass_manager::gt_pch_nx): New.
16170 (pass_manager::gt_pch_nx_with_op): New.
16171 (pass_manager::operator new): Use
16172 ggc_internal_cleared_alloc_stat rather than xcalloc.
16173 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
16174 (pass_manager::gt_ggc_mx): New.
16175 (pass_manager::gt_pch_nx): New.
16176 (pass_manager::gt_pch_nx_with_op): New.
16177 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
16178 (opt_pass::operator new): New.
16179 (opt_pass::gt_ggc_mx): New.
16180 (opt_pass::gt_pch_nx): New.
16181 (opt_pass::gt_pch_nx_with_op): New.
16184 2013-08-20 David Malcolm <dmalcolm@redhat.com>
16186 * Makefile.in (GTFILES): Add context.h.
16187 * context.c (gcc::context::operator new): New.
16188 (gcc::context::gt_ggc_mx): New.
16189 (gcc::context::gt_pch_nx): New.
16190 (gcc::context::gt_pch_nx): New.
16191 * context.h (gcc::context): Add GTY((user)) marking.
16192 (gcc::context::operator new): New.
16193 (gcc::context::gt_ggc_mx): New.
16194 (gcc::context::gt_pch_nx): New.
16195 (gcc::context::gt_pch_nx): New.
16196 (g): Add GTY marking.
16197 (gt_ggc_mx (gcc::context *)): New.
16198 (gt_pch_nx (gcc::context *)): New.
16199 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
16200 void *cookie)): New.
16201 * gengtype.c (open_base_files) <ifiles>: Add context.h.
16203 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
16205 * dce.c (fini_dce): Call df_analyze again just in case
16206 delete_unmarked_insns removed anything.
16208 2013-08-20 Teresa Johnson <tejohnson@google.com>
16210 PR rtl-optimizations/57451
16211 * final.c (reemit_insn_block_notes): Prevent lexical blocks
16212 from crossing split section boundaries.
16214 2013-08-20 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
16216 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
16217 * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
16218 with MULTLIB_DEFAULTS.
16220 2013-08-20 Nick Clifton <nickc@redhat.com>
16222 * target.def (narrow_volatile_bitfield): Note that the default
16223 value is false, not !TARGET_STRICT_ALIGN.
16224 * doc/tm.texi: Regenerate.
16226 2013-08-20 Pavel Chupin <pavel.v.chupin@intel.com>
16228 Fix LIB_SPEC for systems without libpthread.
16230 * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
16231 * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
16233 * config/i386/linux-common.h: Likewise.
16234 * config/mips/linux-common.h: Likewise.
16236 2013-08-20 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
16238 * tree-ssa-ccp.c (get_default_value): Remove redundant condition
16241 2013-08-20 David Malcolm <dmalcolm@redhat.com>
16243 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
16244 instances can own GC refs.
16246 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
16247 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
16248 (gcc::context::gt_pch_nx): Likewise.
16249 (gcc::context::gt_pch_nx): Likewise.
16250 * ggc.h (gt_ggc_mx <T>): New.
16251 (gt_pch_nx_with_op <T>): New.
16252 (gt_pch_nx <T>): New.
16253 * passes.c (opt_pass::gt_ggc_mx): New.
16254 (opt_pass::gt_pch_nx): New.
16255 (opt_pass::gt_pch_nx_with_op): New.
16256 (pass_manager::gt_ggc_mx): New.
16257 (pass_manager::gt_pch_nx): New.
16258 (pass_manager::gt_pch_nx_with_op): New.
16259 (pass_manager::operator new): Use
16260 ggc_internal_cleared_alloc_stat rather than xcalloc.
16261 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
16262 (pass_manager::gt_ggc_mx): New.
16263 (pass_manager::gt_pch_nx): New.
16264 (pass_manager::gt_pch_nx_with_op): New.
16265 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
16266 (opt_pass::operator new): New.
16267 (opt_pass::gt_ggc_mx): New.
16268 (opt_pass::gt_pch_nx): New.
16269 (opt_pass::gt_pch_nx_with_op): New.
16271 2013-08-20 David Malcolm <dmalcolm@redhat.com>
16273 * Makefile.in (GTFILES): Add context.h.
16274 * context.c (gcc::context::operator new): New.
16275 (gcc::context::gt_ggc_mx): New.
16276 (gcc::context::gt_pch_nx): New.
16277 (gcc::context::gt_pch_nx): New.
16278 * context.h (gcc::context): Add GTY((user)) marking.
16279 (gcc::context::operator new): New.
16280 (gcc::context::gt_ggc_mx): New.
16281 (gcc::context::gt_pch_nx): New.
16282 (gcc::context::gt_pch_nx): New.
16283 (g): Add GTY marking.
16284 (gt_ggc_mx (gcc::context *)): New.
16285 (gt_pch_nx (gcc::context *)): New.
16286 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
16287 void *cookie)): New.
16288 * gengtype.c (open_base_files) <ifiles>: Add context.h.
16290 2013-08-20 Alan Modra <amodra@gmail.com>
16293 * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
16294 (rs6000_emit_epilogue): Likewise.
16296 2013-08-19 Dehao Chen <dehao@google.com>
16298 * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
16300 2013-08-19 Peter Bergner <bergner@vnet.ibm.com>
16301 Jakub Jelinek <jakub@redhat.com>
16303 * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
16304 (BUILT_IN_FABSD64): Likewise.
16305 (BUILT_IN_FABSD128): Likewise.
16306 * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
16307 (fold_builtin_1): Likewise.
16308 * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
16309 destination and source operands.
16310 (*abstd2_fpr): Likewise.
16311 (*nabstd2_fpr): Likewise.
16313 2013-08-19 Richard Sandiford <rdsandiford@googlemail.com>
16315 * config/mips/mips.c (mips_adjust_insn_length): Add checks for
16318 2013-08-19 Aldy Hernandez <aldyh@redhat.com>
16320 * doc/invoke.texi (-fcilkplus): Clarify that implementation is
16323 2013-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
16325 * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
16326 * builtins.c (default_libc_has_function): New.
16327 (gnu_libc_has_function): Ditto.
16328 (no_c99_libc_has_function): Ditto.
16329 (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
16330 instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
16331 (fold_builtin_sincos): Likewise.
16332 (fold_builtin_cexp): Likewise.
16333 * builtins.def (DEF_C94_BUILTIN): Likewise.
16334 (DEF_C99_BUILTIN): Likewise.
16335 (DEF_C99_C90RES_BUILTIN): Likewise.
16336 (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
16337 definitions to using this define.
16338 * config/darwin-protos.h (darwin_libc_has_function): New.
16339 * config/darwin.c (darwin_libc_has_function): Ditto.
16340 * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
16341 TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
16342 * config/darwin.h: Ditto.
16343 * config/elfos.h: Ditto.
16344 * config/freebsd.h: Ditto.
16345 * config/i386/cygming.h: Ditto.
16346 * config/i386/djgpp.h: Ditto.
16347 * config/i386/i386-interix.h: Ditto.
16348 * config/microblaze/microblaze.h: Ditto.
16349 * config/mmix/mmix.h: Ditto.
16350 * config/gnu-user.h: Ditto.
16351 * config/ia64/hpux.h: Ditto.
16352 * config/pa/pa-hpux.h: Ditto.
16353 * config/pdp11/pdp11.h: Ditto.
16354 * config/picochip/picochip.h: Ditto.
16355 * config/linux.h: Ditto.
16356 * config/netbsd.h: Ditto.
16357 * config/openbsd.h: Ditto.
16358 * config/rs6000/aix43.h: Ditto.
16359 * config/rs6000/aix51.h: Ditto.
16360 * config/rs6000/aix52.h: Ditto.
16361 * config/rs6000/aix53.h: Ditto.
16362 * config/rs6000/aix61.h: Ditto.
16363 * config/rs6000/darwin.h: Ditto.
16364 * config/rs6000/linux.h: Ditto.
16365 * config/rs6000/linux64.h: Ditto.
16366 * config/s390/tpf.h: Ditto.
16367 * config/sol2-10.h: Ditto.
16368 * config/sol2.h: Ditto.
16369 * config/vms/vms.h: Ditto.
16370 * config/vxworks.h: Ditto.
16371 * config/linux-android.c (linux_android_libc_has_function):
16372 New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
16373 * config/linux-protos.h (linux_android_libc_has_function):
16375 * config/i386/i386.c (ix86_libc_has_function): New.
16376 * config/i386/i386-protos.h
16377 (ix86_libc_has_function): New declaration.
16378 * config/i386/i386.md
16379 ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
16380 ("isinf<mode>2): Likewise.
16381 * convert.c (convert_to_integer): Using new target hook
16382 TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
16383 TARGET_C99_FUNCTIONS.
16384 * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
16385 * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
16386 * coretypes.h (function_class): New enum for different
16387 classes of functions.
16388 * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
16389 * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
16390 (TARGET_HAS_SINCOS): Likewise.
16391 (TARGET_LIBC_HAS_FUNCTION): New.
16392 * doc/tm.texi: Regenerated.
16393 * targhooks.h (default_libc_has_function): New declaration.
16394 (no_c99_libc_has_function): Ditto.
16395 (gnu_libc_has_function): Ditto.
16396 * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
16397 and TARGET_HAS_SINCOS.
16399 2013-08-18 Jan Hubicka <jh@suse.cz>
16401 * Makeifle-in (ipa-devirt.o): New.
16402 (GTFILES): Add ipa-utils.h and ipa-devirt.c
16403 * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
16404 (analyze_functions): Look into possible targets of polymorphic call.
16405 * dumpfile.c (dump_files): Add type-inheritance dump.
16406 * dumpfile.h (TDI_inheritance): New.
16407 * ipa-devirt.c: New file.
16408 * ipa-utils.h (odr_type_d): Forward declare.
16409 (odr_type): New type.
16410 (build_type_inheritance_graph): Declare.
16411 (possible_polymorphic_call_targets): Declare and introduce inline
16412 variant when only edge is pased.
16413 (dump_possible_polymorphic_call_targets): Likewise.
16414 * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
16415 * tree.c (type_in_anonymous_namespace_p): Break out from ...
16416 (types_same_for_odr): ... here.
16417 * tree.h (type_in_anonymous_namespace_p): Declare.
16419 2013-08-18 Jakub Jelinek <jakub@redhat.com>
16421 PR tree-optimization/58006
16422 * tree-parloops.c (take_address_of): Don't ICE if get_name
16424 (eliminate_local_variables_stmt): Remove clobber stmts.
16426 2013-08-18 Eric Botcazou <ebotcazou@adacore.com>
16428 * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
16429 error message is issued for an alias to undefined symbol.
16431 2013-08-18 Jan Hubicka <jh@suse.cz>
16433 * cgraph.c (cgraph_create_indirect_edge): Discover
16434 polymorphic calls and record basic info into indirect_info.
16435 * gimple-fold.c (gimple_fold_call): When doing BINFO based
16436 devirtualization, ignore objc function calls.
16437 * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
16438 call with no parm index info.
16439 * ipa-prop.c (ipa_analyze_call_uses): Likewise.
16440 * tree.c (virtual_method_call_p): New function.
16441 * tree.h (virtual_method_call_p): Declare.
16443 2013-08-16 Jan Hubicka <jh@suse.cz>
16445 PR middle-end/58179
16446 * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
16448 2013-08-16 David Edelsohn <dje.gcc@gmail.com>
16450 * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
16453 2013-08-16 David Malcolm <dmalcolm@redhat.com>
16455 * gengtype.c (type_for_name): Add special-case support for
16456 locating types within the "gcc::" namespace.
16457 (open_base_files): Emit a "using namespace gcc" directive.
16459 2013-08-16 Michael Meissner <meissner@linux.vnet.ibm.com>
16462 * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
16463 memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
16465 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
16466 array instead of each individual operand as a separate argument.
16467 (emit_fusion_gpr_load): Likewise.
16468 (expand_fusion_gpr_load): Add new function declaration.
16470 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
16471 signature to have the operands passed as an array, instead of as
16472 separate arguments. Allow ZERO_EXTEND to be in the memory
16473 address, and also SIGN_EXTEND if -mpower8-fusion-sign. Do not
16474 depend on the register live/dead flags when peepholes are run.
16475 (expand_fusion_gpr_load): New function to be called from the
16476 peephole2 pass, to change the register that addis sets to be the
16478 (emit_fusion_gpr_load): Change the calling signature to have the
16479 operands passed as an array, instead of as separate arguments.
16480 Allow ZERO_EXTEND to be in the memory address, and also
16481 SIGN_EXTEND if -mpower8-fusion-sign.
16483 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
16484 unspec enumeration.
16485 (power8 fusion peephole/peephole2): Rework the fusion peepholes to
16486 adjust the register addis loads up in the peephole2 pass. Do not
16487 depend on the register live/dead state when the peephole pass is done.
16489 2013-08-16 David Malcolm <dmalcolm@redhat.com>
16491 * gengtype.c (create_user_defined_type): Ensure that the kind
16492 is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
16493 declaration is seen before the GTY((user)) marking.
16495 2013-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
16498 * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
16500 2013-08-16 Jan Hubicka <jh@suse.cz>
16502 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
16503 arugment expected_type.
16504 (gimple_fold_call): Use it.
16505 * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
16506 * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
16507 * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
16508 (try_make_edge_direct_virtual_call): Likewise.
16509 * tree.c (obj_type_ref_class): New.
16510 * tree.h (obj_type_ref_class): Use it.
16512 2013-08-16 Gabriel Dos Reis <gdr@integrable-solutions.net>
16514 * sched-vis.c (rtl_slim_pp_initialized): Remove.
16515 (rtl_slim_pp): Likewise.
16516 (init_rtl_slim_pretty_print): Likewise.
16517 (dump_value_slim): Don't call it. Use local pretty printer.
16518 (dump_insn_slim): Likewise.
16519 (dump_rtl_slim): Likewise.
16520 (str_pattern_slim): Likewise.
16521 * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
16524 2013-08-16 Jakub Jelinek <jakub@redhat.com>
16526 PR tree-optimization/58164
16527 * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
16528 walk gimple_goto_dest of GIMPLE_GOTO.
16530 PR tree-optimization/58165
16531 * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
16532 bi_call must be the last stmt in a bb, don't split_block, instead
16533 use fallthru edge from it and give up if there is none.
16534 Release conds vector when returning early.
16536 2013-08-14 Xinliang David Li <davidxl@google.com>
16538 * config/i386/i386.c (ix86_option_override_internal):
16539 Remove unused variable and field.
16541 2013-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16544 * doc/invoke.texi: Add documentation of mcompat-align-parm option.
16545 * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
16546 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
16547 and Linux, correct BLKmode alignment when 128-bit alignment is
16548 required and compatibility flag is not set.
16549 (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
16550 for zero-size arguments when compatibility flag is not set.
16552 2013-08-14 Jakub Jelinek <jakub@redhat.com>
16554 PR tree-optimization/58145
16555 * tree-sra.c (build_ref_for_offset): If prev_base has
16556 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
16558 2013-08-14 Xinliang David Li <davidxl@google.com>
16560 * config/i386/i386.c (ix86_option_override_internal):
16561 Fix uninitialized variable error.
16563 2013-08-14 Xinliang David Li <davidxl@google.com>
16565 * config/i386/i386.opt: Define two new options.
16566 * config/i386/x86-tune.def: Add arch selector field in macros.
16567 * config/i386/i386.h: Adjust macro definition.
16568 * config/i386/i386.c (ix86_option_override_internal):
16570 (parse_mtune_ctrl_str): New function.
16571 (set_ix86_tune_features): New function.
16572 (ix86_function_specific_restore): Call the new helper function.
16574 2013-08-14 Andrey Belevantsev <abel@ispras.ru>
16576 PR rtl-optimization/57662
16577 * sel-sched.c (code_motion_process_successors): When the current insn
16578 is removed after the recursive traversal, break from the loop.
16579 Add comments and debug printouts.
16581 2013-08-14 Jakub Jelinek <jakub@redhat.com>
16582 Alexandre Oliva <aoliva@redhat.com>
16585 * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
16586 and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
16587 there also UNSPEC_PLTOFF.
16589 2013-08-14 Marek Polacek <polacek@redhat.com>
16591 * ipa-inline-analysis.c (add_clause): Avoid shifting integer
16592 NUM_CONDITIONS bit positions.
16594 2013-08-13 Cary Coutant <ccoutant@google.com>
16596 * dwarf2out.c (CHECKSUM_BLOCK): New macro.
16597 (attr_checksum): Hash vector contents instead of pointer.
16598 (attr_checksum_ordered): Likewise.
16600 2013-08-13 Uros Bizjak <ubizjak@gmail.com>
16602 * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
16603 when Pmode != word_mode. Add length_address attribute.
16604 (sse3_monitor_<mode>): Merge from sse3_monitor and
16605 sse3_monitor64_<mode> insn patterns. Emit addr32 prefix when
16606 Pmode != word_mode. Update insn length attribute.
16607 * config/i386/i386.c (ix86_option_override_internal): Update
16608 ix86_gen_monitor selection for merged sse3_monitor insn.
16610 2013-08-13 Julian Brown <julian@codesourcery.com>
16612 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
16613 perform invalid legitimization on greater-than-word-size modes for
16614 TARGET_E500_DOUBLE.
16616 2013-08-13 Vladimir Makarov <vmakarov@redhat.com>
16618 * ira.c (setup_class_translate_array): Use aclass instead of cl
16619 for classes not fully covered by allocno classes.
16621 2013-08-13 Jakub Jelinek <jakub@redhat.com>
16623 PR tree-optimization/57661
16624 * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
16625 * tree-inline.c (tree_function_versioning): Initialize it.
16626 (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
16627 if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
16628 that is not being copied.
16631 * asan.c (instrument_strlen_call): Fix typo in comment.
16632 Use char * type even for the lhs of POINTER_PLUS_EXPR.
16634 2013-08-13 Steve Ellcey <sellcey@mips.com>
16636 * config/mips/mips.md (prefetch): Use lw instead of ld on
16637 loongson in 32bit mode.
16639 2013-08-13 Nick Clifton <nickc@redhat.com>
16641 * config.gcc: (avr-linux): Allow for tmake_file not being empty.
16643 2013-08-13 Jan Hubicka <jh@suse.cz>
16645 * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
16646 introduced edge; fix typo in sanity check.
16647 (cgraph_resolve_speculation): Export; improve diagnostic.
16648 (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
16649 speculation at type mismatch.
16650 * cgraph.h (cgraph_turn_edge_to_speculative): Update.
16651 (cgraph_resolve_speculation): Declare.
16652 (symtab_can_be_discarded): New function.
16653 * value-prof.c (gimple_ic_transform): Remove actual transform code.
16654 * ipa-inline-transform.c (speculation_removed): New global var.
16655 (clone_inlined_nodes): See if speculation can be removed.
16656 (inline_call): If speculations was removed, we growths may not match.
16657 * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
16658 (speculation_useful_p): New function.
16659 (resolve_noninline_speculation): New function.
16660 (inline_small_functions): Resolve useless speculations.
16661 * ipa-inline.h (speculation_useful_p): Declare
16662 * ipa.c (can_replace_by_local_alias): Simplify.
16663 (ipa_profile): Produce speculative calls in non-lto, too;
16664 add simple cost model; produce local aliases.
16666 2013-08-13 David Malcolm <dmalcolm@redhat.com>
16668 * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
16671 2013-08-12 Paolo Carlini <paolo.carlini@oracle.com>
16673 * config/i386/i386.c (ix86_function_versions): Use error + inform.
16675 2013-08-12 Uros Bizjak <ubizjak@gmail.com>
16677 * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
16678 iterator instead of X87MODEF.
16680 2013-08-12 Perez Read <netfirewall@gmail.com>
16683 * config/i386/i386.md (*movabs<mode>_1): Add <ptrsize> PTR before
16684 operand 0 for intel asm alternative.
16685 (*movabs<mode>_2): Ditto for operand 1.
16687 2013-08-12 James Greenhalgh <james.greenhalgh@arm.com>
16689 * config/aarch64/arm_none.h
16690 (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
16692 2013-08-12 Nick Clifton <nickc@redhat.com>
16694 * config.gcc (m32r-linux): Allow for tmake_file not being empty.
16696 2013-08-12 Yuri Rumyantsev <ysrumyan@gmail.com>
16698 * config/i386/i386.md (floatunssi<mode>2 expand): Add new
16699 expand for QI/HImode operand to produce more effictive code for
16700 unsigned char(short) --> float(double) conversion.
16702 2013-08-12 Alexander Monakov <amonakov@ispras.ru>
16704 * doc/invoke.texi: Mention that -ftls-model does not force the final
16707 2013-08-12 Marek Polacek <polacek@redhat.com>
16708 Marc Glisse <marc.glisse@inria.fr>
16710 PR tree-optimization/57980
16711 * tree-tailcall.c (process_assignment): Call build_minus_one_cst
16712 when creating -1 constant.
16714 2013-08-10 Jan Hubicka <jh@suse.cz>
16716 Workaround binutils PR14342.
16717 * tree-profile.c (init_ic_make_global_vars): Add LTO path.
16718 (gimple_init_edge_profiler): Likewise.
16719 (gimple_gen_ic_func_profiler): Likewise.
16721 2013-08-09 Jan Hubicka <jh@suse.cz>
16723 * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
16725 2013-08-09 Xinliang David Li <davidxl@google.com>
16727 * config/i386/stringop.def: New file.
16728 * config/i386/stringop.opt: New file.
16729 * config/i386/i386-opts.h: Include stringopt.def.
16730 * config/i386/i386.opt: Include stringopt.opt.
16731 * config/i386/i386.c (ix86_option_override_internal):
16732 Override default size based stringop inline strategies with options.
16733 * config/i386/i386.c (ix86_parse_stringop_strategy_string):
16736 2013-08-09 Jan Hubicka <jh@suse.cz>
16738 * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
16740 2013-08-09 Jan Hubicka <jh@suse.cz>
16742 * cgraph.c (cgraph_resolve_speculation): Cut frequency to
16744 (dump_cgraph_node): Dump profile-id.
16745 * cgraph.h (cgraph_indirect_call_info): Add common_target_id
16746 and common_target_probability.
16747 * lto-cgraph.c (lto_output_edge): Stream common targets.
16748 (lto_output_node): Stream profile ids.
16749 (input_node): Stream profile ids.
16750 (input_edge): Stream common targets.
16751 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
16752 * ipa.c: Include value-prof.h
16753 (ipa_profile_generate_summary): Turn indirect call statement histograms
16754 into common targets.
16755 (ipa_profile): Turn common targets into speculative edges.
16757 2013-08-09 Jan Hubicka <jh@suse.cz>
16759 * cgraph.h (cgraph_node): Add profile_id.
16760 * value-prof.c (cgraph_node_map): Turn into pointer_map.
16761 (init_node_map): Rewrite to handle hashes increas of incremental IDs.
16762 (del_node_map): Update.
16763 (find_func_by_funcdef_no): Replace by ...
16764 (find_func_by_profile_id): ... this one.
16765 (gimple_ic_transform): Do not remove useful histograms when
16766 speculation is not done; dump info when indirect call removal
16768 * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
16769 * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
16770 (__gcov_indirect_call_profiler_v2): .. this one.
16771 * profile.h (init_node_map): Update.
16772 * coverage.c (coverage_compute_profile_id): New function.
16773 * coverage.h (coverage_compute_profile_id): Declare.
16774 * tree-profile.c (init_ic_make_global_vars): Make
16775 __gcov_indirect_call_callee and __gcov_indirect_call_counters global.
16776 (gimple_init_edge_profiler): Update prototype of
16777 __gcov_indirect_call_profiler.
16778 (gimple_gen_ic_func_profiler): Simplify.
16779 (tree_profiling): Use init_node_map
16781 2013-08-09 Jan Hubicka <jh@suse.cz>
16783 * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
16784 non-speculative refs.
16785 * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
16786 (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
16787 (cgraph_set_call_stmt): Likewise.
16788 (cgraph_create_edge_1): Fix release checking compilatoin;
16789 clear lto_stmt_uid.
16790 (cgraph_free_edge): Free indirect info.
16791 (cgraph_turn_edge_to_speculative): New function.
16792 (cgraph_speculative_call_info): New function.
16793 (cgraph_make_edge_direct): Return direct edge; handle speculation.
16794 (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
16795 (dump_cgraph_node): Dump speculation.
16796 (verify_edge_count_and_frequency): Accept speculative edges.
16797 (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
16798 (verify_cgraph_node): Handle speculation.
16799 * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
16800 (cgraph_set_call_stmt): Update prototype.
16801 (cgraph_make_edge_direct): Update prototype.
16802 (cgraph_speculative_call_info): Declare.
16803 * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
16804 to change; update call of ipa_find_references.
16805 * ipa-ref.c (ipa_record_reference): Fix return value; clear
16806 lto_stmt_uid and speculative flags.
16807 (ipa_dump_references): Dump speculation.
16808 (ipa_clone_references): Clone speculative flag.
16809 (ipa_clone_referring): Likewise.
16810 (ipa_clone_ref): New function.
16811 (ipa_find_reference): Look into lto_stmt_uids
16812 (ipa_clear_stmts_in_references): Do not clear speculative calls.
16813 * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
16814 (ipa_find_reference): Update declaration.
16815 (ipa_clone_ref): Declare.
16816 * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
16817 stream speculative flag.
16818 (lto_output_ref): Stream statements uids and speculation.
16819 (input_ref): Likewise.
16820 (input_edge): Stream speuclation.
16821 * cgraphclones.c (cgraph_clone_edge): Clone speculation.
16822 (cgraph_set_call_stmt_including_clones): Handle speculation.
16823 * ipa-inline.c (heap_edge_removal_hook): New function.
16824 (inline_small_functions): Register it.
16825 * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
16826 also initialize refs.
16827 * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
16829 (try_make_edge_direct_simple_call): Likewise.
16830 (try_make_edge_direct_simple_call): Likewise.
16831 (update_indirect_edges_after_inlining): Likewise.
16832 (remove_described_reference): Look proper lto_stmt_uid.
16833 (propagate_controlled_uses): Likewise.
16834 (propagate_controlled_uses): Liekwise.
16835 * tree-inline.c (copy_bb): Copy speculative edges.
16836 (redirect_all_calls): New function.
16837 (copy_cfg_body): Do redirection after loop info is updated.
16838 (delete_unreachable_blocks_update_callgraph): Updadte speculation.
16840 2013-08-09 Jan Hubicka <jh@suse.cz>
16842 * lto-streamer-out.c (output_function): Renumber PHIs.
16843 * lto-streamer-in.c (input_function): Likewise.
16845 2013-08-09 James Greenhalgh <james.greenhalgh@arm.com>
16847 * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
16848 (get_lane_unsigned): Likewise.
16849 (dup_lane_scalar): Likewise.
16850 (get_lane): enable for VALL.
16851 * config/aarch64/aarch64-simd.md
16852 (aarch64_dup_lane_scalar<mode>): Remove.
16853 (aarch64_get_lane_signed<mode>): Likewise.
16854 (aarch64_get_lane_unsigned<mode>): Likewise.
16855 (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
16856 (aarch64_get_lane_zero_extendsi<mode>): Likewise.
16857 (aarch64_get_lane<mode>): Enable for all vector modes.
16858 (aarch64_get_lanedi): Remove misleading constraints.
16859 * config/aarch64/arm_neon.h
16860 (__aarch64_vget_lane_any): Define.
16861 (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
16862 (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
16863 (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
16864 * config/aarch64/iterators.md (VDQQH): New.
16865 (VDQQHS): Likewise.
16866 (vwcore): Likewise.
16868 2013-08-09 Eric Botcazou <ebotcazou@adacore.com>
16870 * configure.ac: Add GAS check for LEON instructions on SPARC.
16871 * configure: Regenerate.
16872 * config.in: Likewise.
16873 * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
16875 * config/sparc/sparc.opt (LEON, LEON3): New masks.
16876 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
16878 (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
16879 (AS_LEON_FLAG): New macro.
16880 * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
16881 and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
16882 Deal with LEON and LEON3 for the memory model.
16883 * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
16884 (atomic_compare_and_swap<mode>_1): Likewise.
16885 (*atomic_compare_and_swap<mode>_1): Likewise.
16887 2013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16889 * config/arm/neon.md (vcond): Fix floating-point vector
16890 comparisons against 0.
16892 2013-08-08 Vladimir Makarov <vmakarov@redhat.com>
16894 * lra-constraints.c (emit_spill_move): Remove assert.
16895 (process_alt_operands): Add more debugging
16896 output. Increase reject for spilling into memory. Decrease
16897 reject for reloading scratch.
16898 (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
16900 2013-08-08 Steve Ellcey <sellcey@mips.com>
16902 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
16903 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
16904 micromips incompatible. Add nan2008.
16905 (MULTILIB_DIRNAMES): Add nan2008.
16906 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
16907 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
16908 and micromips incompatible. Add nan2008.
16909 (MULTILIB_DIRNAMES): Add nan2008.
16910 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
16912 2013-08-08 Richard Sandiford <rdsandiford@googlemail.com>
16914 PR rtl-optimization/58079
16915 * combine.c (combine_simplify_rtx): Avoid using SUBST if
16916 simplify_comparison has widened a comparison with an integer.
16918 2013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16920 * config/arm/neon.md (movmisalign<mode>): Disable when we
16921 don't allow unaligned accesses.
16922 (*movmisalign<mode>_neon_store): Likewise.
16923 (*movmisalign<mode>_neon_load): Likewise.
16924 (*movmisalign<mode>_neon_store): Likewise.
16925 (*movmisalign<mode>_neon_load): Likewise.
16927 2013-08-08 Jan Hubicka <jh@suse.cz>
16929 * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
16930 (make_pass_rebuild_cgraph_edges): Also clear references.
16931 * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
16932 * ipa-inline-transform.c (inline_transform): Remove all references
16934 * cgraphunit.c (expand_function): Remove all references after
16936 * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
16937 (ipa_find_reference): Rewrite to iterator.
16938 (remove_stmt_references): Likewise.
16939 (ipa_clear_stmts_in_references): New function.
16940 * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
16941 * cgraphclones.c (cgraph_materialize_all_clones): Remove or
16943 * ipa-split.c (split_function): Remove references in split function.
16945 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
16948 * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
16949 (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
16951 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
16954 * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
16955 suggested mode for the assignment isn't compatible with the
16956 registers required.
16958 2013-08-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
16961 * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
16963 2013-08-07 Xinliang David Li <davidxl@google.com>
16965 * config/i386/i386.opt: New option -mtune-ctrl=.
16966 * config/i386/x86-tune.def: New file.
16967 * config/i386/i386.h: include x86-tune.def.
16968 * config/i386/i386.c (ix86_option_override_internal):
16969 Parsing -mtune-ctrl= option and set tune features.
16971 2013-08-07 Oleg Endo <olegendo@gcc.gnu.org>
16974 * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
16975 (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
16978 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
16980 * rtl.h (update_alignments): Declare.
16981 * final.c (grow_label_align): New function extracted from...
16982 (shorten_branches): ...here. Call it.
16983 (update_alignments): New function.
16984 * reorg.c (sibling_labels): New variable.
16985 (get_label_before): Add SIBLING parameter. If it is non-zero, push
16986 the new label along with it onto the sibling_labels vector.
16987 (fill_simple_delay_slots): Adjust call to get_label_before.
16988 (fill_slots_from_thread): Likewise.
16989 (relax_delay_slots): Likewise.
16990 (make_return_insns): Likewise.
16991 (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
16993 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
16995 * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
16996 document its semantics.
16997 (diagnostic_report_diagnostic): Adjust accordingly.
16999 2013-08-07 David Malcolm <dmalcolm@redhat.com>
17001 * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
17002 (sparc_option_override): ...and port to new C++ pass API.
17003 * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
17005 2013-08-07 Peter Bergner <bergner@vnet.ibm.com>
17007 * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
17009 2013-08-06 Caroline Tice <cmtice@google.com>
17011 * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
17012 (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
17013 * tree-pass.h: Add pass_vtable_verify.
17014 * varasm.c (assemble_variable): Add code to properly set the comdat
17015 section and name for the .vtable_map_vars section.
17016 (assemble_vtyv_preinit_initializer): New function.
17017 (default_sectin_type_flags): Make sure .vtable_map_vars section has
17019 * output.h: Add function decl for assemble_vtv_preinit_initializer.
17020 * vtable-verify.c: New file.
17021 * vtable-verify.h: New file.
17022 * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
17023 initialiation levels.
17024 * timevar.def (TV_VTABLE_VERIFICATION): New definition.
17025 * passes.def: Insert pass_vtable_verify.
17026 * aclocal.m4: Reorder includes.
17027 * doc/invoke.texi: Document the -fvtable-verify=, -fvtv-debug, and
17028 -fvtv-counts options.
17029 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
17030 as appropriate, if -fvtable-verify=... is used.
17031 (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
17032 -fvtable-verify=... is used.
17033 * Makefile.in (OBJS): Add vtable-verify.o to list.
17034 (vtable-verify.o): Add new build rule.
17035 (GTFILES): Add vtable-verify.c to list.
17036 * common.opt (fvtable-verify=): New flag.
17037 (vtv_priority): Values for fvtable-verify= flag.
17038 (fvtv-counts): New flag.
17039 (fvtv-debug): New flag.
17040 * tree.h (save_vtable_map_decl): New extern function decl.
17042 2013-08-07 David Malcolm <dmalcolm@redhat.com>
17044 * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
17045 (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
17046 (pass_data_rl78_devirt): ...new pass_data instance and...
17047 (make_pass_rl78_devirt): ...new function.
17048 (rl78_asm_file_start): Port pass registration to new C++ API.
17050 2013-08-07 David Malcolm <dmalcolm@redhat.com>
17052 * coretypes.h (rtl_opt_pass): Add.
17053 (gcc::context): Add.
17054 * config/epiphany/epiphany.c (pass_mode_switch_use): New.
17055 (epiphany_init): Port to new C++ pass API.
17056 (epiphany_optimize_mode_switching): Likewise.
17057 * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
17058 (pass_manager::get_pass_mode_switching): New.
17059 (pass_manager::get_pass_peephole2): New.
17060 * mode-switching.c (pass_mode_switching): Add clone method.
17061 * recog.c (pass_peephole2): Add clone method.
17062 (pass_split_all_insns): Add clone method.
17064 2013-08-06 David Malcolm <dmalcolm@redhat.com>
17066 * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
17067 (mips_option_override): ...here, porting to new C++ API for passes.
17069 2013-08-06 Jan Hubicka <jh@suse.cz>
17071 * cgraph.c (cgraph_get_body): New function based on lto.c
17073 * cgraph.h (cgraph_get_body): Declare.
17074 * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
17076 * cgraphunit.c (expand_function): Get body prior expanding.
17077 * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
17078 * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
17080 * passes.c (do_per_function_toporder): Get body.
17081 * tree-inline.c (expand_call_inline): Get body prior inlining it.
17082 * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
17084 2013-08-06 Martin Jambor <mjambor@suse.cz>
17087 * cgraphunit.c (cgraph_finalize_function): Assert that nested function
17088 is not re-finalized. Rename second parameter to no_collect.
17090 2013-08-06 Martin Jambor <mjambor@suse.cz>
17092 PR middle-end/58041
17093 * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
17094 MEM_REF has proper alignment information.
17096 2013-08-05 Oleg Endo <olegendo@gcc.gnu.org>
17099 * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
17101 * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
17102 rtx (*) (rtx, ...) with insn_gen_fn.
17103 * genoutput.c (output_insn_data): Cast gen_? function pointers to
17104 insn_gen_fn::stored_funcptr. Add initializer braces.
17106 2013-08-05 David Malcolm <dmalcolm@redhat.com>
17108 Rewrite how instances of passes are cloned to remove assumptions
17109 about their sizes (thus allowing pass subclasses to have
17110 additional data fields, albeit non-GC-managed ones at this point).
17112 * passes.c (make_pass_instance): Now that passes have clone
17113 methods, rewrite this function to eliminate XNEW and memcpy
17114 calls that used hardcoded sizes. Since this function no longer
17115 creates pass instances, rename it to...
17116 (add_pass_instance): ...this. Document the old way that passes were
17117 numbered and flagged, and rework this function to continue using it.
17118 (next_pass_1): Add an initial_pass argument for use by
17120 (position_pass): When adding multiple instances of a pass, use
17121 the pass's clone method, rather than relying on the XNEW/memcpy
17122 within the former make_pass_instance (now add_pass_instance).
17123 (pass_manager::pass_manager): When invoking next_pass_1, also supply
17124 the initial instance of the current pass within the pass manager.
17126 2013-08-05 David Malcolm <dmalcolm@redhat.com>
17128 This is the automated part of the conversion of passes from C
17129 structs to C++ classes.
17131 Patch autogenerated by refactor_passes.py from
17132 https://github.com/davidmalcolm/gcc-refactoring-scripts
17133 revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
17135 * asan.c (pass_asan): Convert from a global struct to a subclass of
17136 gimple_opt_pass along with...
17137 (pass_data_asan): ...new pass_data instance and...
17138 (make_pass_asan): ...new function.
17139 (pass_asan_O0): Convert from a global struct to a subclass of
17140 gimple_opt_pass along with...
17141 (pass_data_asan_O0): ...new pass_data instance and...
17142 (make_pass_asan_O0): ...new function.
17143 * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
17144 subclass of rtl_opt_pass along with...
17145 (pass_data_inc_dec): ...new pass_data instance and...
17146 (make_pass_inc_dec): ...new function.
17147 * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
17148 a subclass of rtl_opt_pass along with...
17149 (pass_data_reorder_blocks): ...new pass_data instance and...
17150 (make_pass_reorder_blocks): ...new function.
17151 (pass_duplicate_computed_gotos): Convert from a global struct to a
17152 subclass of rtl_opt_pass along with...
17153 (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
17154 (make_pass_duplicate_computed_gotos): ...new function.
17155 (pass_partition_blocks): Convert from a global struct to a subclass of
17156 rtl_opt_pass along with...
17157 (pass_data_partition_blocks): ...new pass_data instance and...
17158 (make_pass_partition_blocks): ...new function.
17159 * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
17160 struct to a subclass of rtl_opt_pass along with...
17161 (pass_data_branch_target_load_optimize1): ...new pass_data instance
17163 (make_pass_branch_target_load_optimize1): ...new function.
17164 (pass_branch_target_load_optimize2): Convert from a global struct to a
17165 subclass of rtl_opt_pass along with...
17166 (pass_data_branch_target_load_optimize2): ...new pass_data instance
17168 (make_pass_branch_target_load_optimize2): ...new function.
17169 * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
17170 of rtl_opt_pass along with...
17171 (pass_data_jump): ...new pass_data instance and...
17172 (make_pass_jump): ...new function.
17173 (pass_jump2): Convert from a global struct to a subclass of
17174 rtl_opt_pass along with...
17175 (pass_data_jump2): ...new pass_data instance and...
17176 (make_pass_jump2): ...new function.
17177 * cfgexpand.c (pass_expand): Convert from a global struct to a
17178 subclass of rtl_opt_pass along with...
17179 (pass_data_expand): ...new pass_data instance and...
17180 (make_pass_expand): ...new function.
17181 * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
17182 of rtl_opt_pass along with...
17183 (pass_data_free_cfg): ...new pass_data instance and...
17184 (make_pass_free_cfg): ...new function.
17185 (pass_into_cfg_layout_mode): Convert from a global struct to a
17186 subclass of rtl_opt_pass along with...
17187 (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
17188 (make_pass_into_cfg_layout_mode): ...new function.
17189 (pass_outof_cfg_layout_mode): Convert from a global struct to a
17190 subclass of rtl_opt_pass along with...
17191 (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
17192 (make_pass_outof_cfg_layout_mode): ...new function.
17193 * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
17194 struct to a subclass of gimple_opt_pass along with...
17195 (pass_data_build_cgraph_edges): ...new pass_data instance and...
17196 (make_pass_build_cgraph_edges): ...new function.
17197 (pass_rebuild_cgraph_edges): Convert from a global struct to a
17198 subclass of gimple_opt_pass along with...
17199 (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
17200 (make_pass_rebuild_cgraph_edges): ...new function.
17201 (pass_remove_cgraph_callee_edges): Convert from a global struct to a
17202 subclass of gimple_opt_pass along with...
17203 (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
17205 (make_pass_remove_cgraph_callee_edges): ...new function.
17206 * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
17207 struct to a subclass of rtl_opt_pass along with...
17208 (pass_data_stack_adjustments): ...new pass_data instance and...
17209 (make_pass_stack_adjustments): ...new function.
17210 * combine.c (pass_combine): Convert from a global struct to a subclass
17211 of rtl_opt_pass along with...
17212 (pass_data_combine): ...new pass_data instance and...
17213 (make_pass_combine): ...new function.
17214 * compare-elim.c (pass_compare_elim_after_reload): Convert from a
17215 global struct to a subclass of rtl_opt_pass along with...
17216 (pass_data_compare_elim_after_reload): ...new pass_data instance
17218 (make_pass_compare_elim_after_reload): ...new function.
17219 * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
17220 of rtl_opt_pass along with...
17221 (pass_data_rtl_cprop): ...new pass_data instance and...
17222 (make_pass_rtl_cprop): ...new function.
17223 * cse.c (pass_cse): Convert from a global struct to a subclass of
17224 rtl_opt_pass along with...
17225 (pass_data_cse): ...new pass_data instance and...
17226 (make_pass_cse): ...new function.
17227 (pass_cse2): Convert from a global struct to a subclass of
17228 rtl_opt_pass along with...
17229 (pass_data_cse2): ...new pass_data instance and...
17230 (make_pass_cse2): ...new function.
17231 (pass_cse_after_global_opts): Convert from a global struct to a
17232 subclass of rtl_opt_pass along with...
17233 (pass_data_cse_after_global_opts): ...new pass_data instance and...
17234 (make_pass_cse_after_global_opts): ...new function.
17235 * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
17236 of rtl_opt_pass along with...
17237 (pass_data_ud_rtl_dce): ...new pass_data instance and...
17238 (make_pass_ud_rtl_dce): ...new function.
17239 (pass_fast_rtl_dce): Convert from a global struct to a subclass of
17240 rtl_opt_pass along with...
17241 (pass_data_fast_rtl_dce): ...new pass_data instance and...
17242 (make_pass_fast_rtl_dce): ...new function.
17243 * df-core.c (pass_df_initialize_opt): Convert from a global struct to
17244 a subclass of rtl_opt_pass along with...
17245 (pass_data_df_initialize_opt): ...new pass_data instance and...
17246 (make_pass_df_initialize_opt): ...new function.
17247 (pass_df_initialize_no_opt): Convert from a global struct to a
17248 subclass of rtl_opt_pass along with...
17249 (pass_data_df_initialize_no_opt): ...new pass_data instance and...
17250 (make_pass_df_initialize_no_opt): ...new function.
17251 (pass_df_finish): Convert from a global struct to a subclass of
17252 rtl_opt_pass along with...
17253 (pass_data_df_finish): ...new pass_data instance and...
17254 (make_pass_df_finish): ...new function.
17255 * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
17256 rtl_opt_pass along with...
17257 (pass_data_rtl_dse1): ...new pass_data instance and...
17258 (make_pass_rtl_dse1): ...new function.
17259 (pass_rtl_dse2): Convert from a global struct to a subclass of
17260 rtl_opt_pass along with...
17261 (pass_data_rtl_dse2): ...new pass_data instance and...
17262 (make_pass_rtl_dse2): ...new function.
17263 * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
17264 subclass of rtl_opt_pass along with...
17265 (pass_data_dwarf2_frame): ...new pass_data instance and...
17266 (make_pass_dwarf2_frame): ...new function.
17267 * except.c (pass_set_nothrow_function_flags): Convert from a global
17268 struct to a subclass of rtl_opt_pass along with...
17269 (pass_data_set_nothrow_function_flags): ...new pass_data instance
17271 (make_pass_set_nothrow_function_flags): ...new function.
17272 (pass_convert_to_eh_region_ranges): Convert from a global struct to a
17273 subclass of rtl_opt_pass along with...
17274 (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
17276 (make_pass_convert_to_eh_region_ranges): ...new function.
17277 * final.c (pass_compute_alignments): Convert from a global struct to a
17278 subclass of rtl_opt_pass along with...
17279 (pass_data_compute_alignments): ...new pass_data instance and...
17280 (make_pass_compute_alignments): ...new function.
17281 (pass_final): Convert from a global struct to a subclass of
17282 rtl_opt_pass along with...
17283 (pass_data_final): ...new pass_data instance and...
17284 (make_pass_final): ...new function.
17285 (pass_shorten_branches): Convert from a global struct to a subclass of
17286 rtl_opt_pass along with...
17287 (pass_data_shorten_branches): ...new pass_data instance and...
17288 (make_pass_shorten_branches): ...new function.
17289 (pass_clean_state): Convert from a global struct to a subclass of
17290 rtl_opt_pass along with...
17291 (pass_data_clean_state): ...new pass_data instance and...
17292 (make_pass_clean_state): ...new function.
17293 * function.c (pass_instantiate_virtual_regs): Convert from a global
17294 struct to a subclass of rtl_opt_pass along with...
17295 (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
17296 (make_pass_instantiate_virtual_regs): ...new function.
17297 (pass_leaf_regs): Convert from a global struct to a subclass of
17298 rtl_opt_pass along with...
17299 (pass_data_leaf_regs): ...new pass_data instance and...
17300 (make_pass_leaf_regs): ...new function.
17301 (pass_thread_prologue_and_epilogue): Convert from a global struct to a
17302 subclass of rtl_opt_pass along with...
17303 (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
17305 (make_pass_thread_prologue_and_epilogue): ...new function.
17306 (pass_match_asm_constraints): Convert from a global struct to a
17307 subclass of rtl_opt_pass along with...
17308 (pass_data_match_asm_constraints): ...new pass_data instance and...
17309 (make_pass_match_asm_constraints): ...new function.
17310 * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
17311 subclass of rtl_opt_pass along with...
17312 (pass_data_rtl_fwprop): ...new pass_data instance and...
17313 (make_pass_rtl_fwprop): ...new function.
17314 (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
17315 rtl_opt_pass along with...
17316 (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
17317 (make_pass_rtl_fwprop_addr): ...new function.
17318 * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
17319 rtl_opt_pass along with...
17320 (pass_data_rtl_pre): ...new pass_data instance and...
17321 (make_pass_rtl_pre): ...new function.
17322 (pass_rtl_hoist): Convert from a global struct to a subclass of
17323 rtl_opt_pass along with...
17324 (pass_data_rtl_hoist): ...new pass_data instance and...
17325 (make_pass_rtl_hoist): ...new function.
17326 * gimple-low.c (pass_lower_cf): Convert from a global struct to a
17327 subclass of gimple_opt_pass along with...
17328 (pass_data_lower_cf): ...new pass_data instance and...
17329 (make_pass_lower_cf): ...new function.
17330 * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
17331 from a global struct to a subclass of gimple_opt_pass along with...
17332 (pass_data_strength_reduction): ...new pass_data instance and...
17333 (make_pass_strength_reduction): ...new function.
17334 * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
17335 of rtl_opt_pass along with...
17336 (pass_data_rtl_ifcvt): ...new pass_data instance and...
17337 (make_pass_rtl_ifcvt): ...new function.
17338 (pass_if_after_combine): Convert from a global struct to a subclass of
17339 rtl_opt_pass along with...
17340 (pass_data_if_after_combine): ...new pass_data instance and...
17341 (make_pass_if_after_combine): ...new function.
17342 (pass_if_after_reload): Convert from a global struct to a subclass of
17343 rtl_opt_pass along with...
17344 (pass_data_if_after_reload): ...new pass_data instance and...
17345 (make_pass_if_after_reload): ...new function.
17346 * init-regs.c (pass_initialize_regs): Convert from a global struct to
17347 a subclass of rtl_opt_pass along with...
17348 (pass_data_initialize_regs): ...new pass_data instance and...
17349 (make_pass_initialize_regs): ...new function.
17350 * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
17351 of ipa_opt_pass_d along with...
17352 (pass_data_ipa_cp): ...new pass_data instance and...
17353 (make_pass_ipa_cp): ...new function.
17354 * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
17355 global struct to a subclass of gimple_opt_pass along with...
17356 (pass_data_inline_parameters): ...new pass_data instance and...
17357 (make_pass_inline_parameters): ...new function.
17358 * ipa-inline.c (pass_early_inline): Convert from a global struct to a
17359 subclass of gimple_opt_pass along with...
17360 (pass_data_early_inline): ...new pass_data instance and...
17361 (make_pass_early_inline): ...new function.
17362 (pass_ipa_inline): Convert from a global struct to a subclass of
17363 ipa_opt_pass_d along with...
17364 (pass_data_ipa_inline): ...new pass_data instance and...
17365 (make_pass_ipa_inline): ...new function.
17366 * ipa-pure-const.c (pass_local_pure_const): Convert from a global
17367 struct to a subclass of gimple_opt_pass along with...
17368 (pass_data_local_pure_const): ...new pass_data instance and...
17369 (make_pass_local_pure_const): ...new function.
17370 (pass_ipa_pure_const): Convert from a global struct to a subclass of
17371 ipa_opt_pass_d along with...
17372 (pass_data_ipa_pure_const): ...new pass_data instance and...
17373 (make_pass_ipa_pure_const): ...new function.
17374 * ipa-reference.c (pass_ipa_reference): Convert from a global struct
17375 to a subclass of ipa_opt_pass_d along with...
17376 (pass_data_ipa_reference): ...new pass_data instance and...
17377 (make_pass_ipa_reference): ...new function.
17378 * ipa-split.c (pass_split_functions): Convert from a global struct to
17379 a subclass of gimple_opt_pass along with...
17380 (pass_data_split_functions): ...new pass_data instance and...
17381 (make_pass_split_functions): ...new function.
17382 (pass_feedback_split_functions): Convert from a global struct to a
17383 subclass of gimple_opt_pass along with...
17384 (pass_data_feedback_split_functions): ...new pass_data instance and...
17385 (make_pass_feedback_split_functions): ...new function.
17386 * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
17387 global struct to a subclass of simple_ipa_opt_pass along with...
17388 (pass_data_ipa_function_and_variable_visibility): ...new pass_data
17390 (make_pass_ipa_function_and_variable_visibility): ...new function.
17391 (pass_ipa_free_inline_summary): Convert from a global struct to a
17392 subclass of simple_ipa_opt_pass along with...
17393 (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
17394 (make_pass_ipa_free_inline_summary): ...new function.
17395 (pass_ipa_whole_program_visibility): Convert from a global struct to a
17396 subclass of ipa_opt_pass_d along with...
17397 (pass_data_ipa_whole_program_visibility): ...new pass_data instance
17399 (make_pass_ipa_whole_program_visibility): ...new function.
17400 (pass_ipa_profile): Convert from a global struct to a subclass of
17401 ipa_opt_pass_d along with...
17402 (pass_data_ipa_profile): ...new pass_data instance and...
17403 (make_pass_ipa_profile): ...new function.
17404 (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
17405 ipa_opt_pass_d along with...
17406 (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
17407 (make_pass_ipa_cdtor_merge): ...new function.
17408 * ira.c (pass_ira): Convert from a global struct to a subclass of
17409 rtl_opt_pass along with...
17410 (pass_data_ira): ...new pass_data instance and...
17411 (make_pass_ira): ...new function.
17412 (pass_reload): Convert from a global struct to a subclass of
17413 rtl_opt_pass along with...
17414 (pass_data_reload): ...new pass_data instance and...
17415 (make_pass_reload): ...new function.
17416 * jump.c (pass_cleanup_barriers): Convert from a global struct to a
17417 subclass of rtl_opt_pass along with...
17418 (pass_data_cleanup_barriers): ...new pass_data instance and...
17419 (make_pass_cleanup_barriers): ...new function.
17420 * loop-init.c (pass_loop2): Convert from a global struct to a subclass
17421 of rtl_opt_pass along with...
17422 (pass_data_loop2): ...new pass_data instance and...
17423 (make_pass_loop2): ...new function.
17424 (pass_rtl_loop_init): Convert from a global struct to a subclass of
17425 rtl_opt_pass along with...
17426 (pass_data_rtl_loop_init): ...new pass_data instance and...
17427 (make_pass_rtl_loop_init): ...new function.
17428 (pass_rtl_loop_done): Convert from a global struct to a subclass of
17429 rtl_opt_pass along with...
17430 (pass_data_rtl_loop_done): ...new pass_data instance and...
17431 (make_pass_rtl_loop_done): ...new function.
17432 (pass_rtl_move_loop_invariants): Convert from a global struct to a
17433 subclass of rtl_opt_pass along with...
17434 (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
17435 (make_pass_rtl_move_loop_invariants): ...new function.
17436 (pass_rtl_unswitch): Convert from a global struct to a subclass of
17437 rtl_opt_pass along with...
17438 (pass_data_rtl_unswitch): ...new pass_data instance and...
17439 (make_pass_rtl_unswitch): ...new function.
17440 (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
17441 subclass of rtl_opt_pass along with...
17442 (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
17444 (make_pass_rtl_unroll_and_peel_loops): ...new function.
17445 (pass_rtl_doloop): Convert from a global struct to a subclass of
17446 rtl_opt_pass along with...
17447 (pass_data_rtl_doloop): ...new pass_data instance and...
17448 (make_pass_rtl_doloop): ...new function.
17449 * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
17450 a subclass of rtl_opt_pass along with...
17451 (pass_data_lower_subreg): ...new pass_data instance and...
17452 (make_pass_lower_subreg): ...new function.
17453 (pass_lower_subreg2): Convert from a global struct to a subclass of
17454 rtl_opt_pass along with...
17455 (pass_data_lower_subreg2): ...new pass_data instance and...
17456 (make_pass_lower_subreg2): ...new function.
17457 * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
17458 struct to a subclass of ipa_opt_pass_d along with...
17459 (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
17460 (make_pass_ipa_lto_gimple_out): ...new function.
17461 (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
17462 of ipa_opt_pass_d along with...
17463 (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
17464 (make_pass_ipa_lto_finish_out): ...new function.
17465 * mode-switching.c (pass_mode_switching): Convert from a global struct
17466 to a subclass of rtl_opt_pass along with...
17467 (pass_data_mode_switching): ...new pass_data instance and...
17468 (make_pass_mode_switching): ...new function.
17469 * modulo-sched.c (pass_sms): Convert from a global struct to a
17470 subclass of rtl_opt_pass along with...
17471 (pass_data_sms): ...new pass_data instance and...
17472 (make_pass_sms): ...new function.
17473 * omp-low.c (pass_expand_omp): Convert from a global struct to a
17474 subclass of gimple_opt_pass along with...
17475 (pass_data_expand_omp): ...new pass_data instance and...
17476 (make_pass_expand_omp): ...new function.
17477 (pass_lower_omp): Convert from a global struct to a subclass of
17478 gimple_opt_pass along with...
17479 (pass_data_lower_omp): ...new pass_data instance and...
17480 (make_pass_lower_omp): ...new function.
17481 (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
17482 of gimple_opt_pass along with...
17483 (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
17484 (make_pass_diagnose_omp_blocks): ...new function.
17485 * passes.c (pass_early_local_passes): Convert from a global struct to
17486 a subclass of simple_ipa_opt_pass along with...
17487 (pass_data_early_local_passes): ...new pass_data instance and...
17488 (make_pass_early_local_passes): ...new function.
17489 (pass_all_early_optimizations): Convert from a global struct to a
17490 subclass of gimple_opt_pass along with...
17491 (pass_data_all_early_optimizations): ...new pass_data instance and...
17492 (make_pass_all_early_optimizations): ...new function.
17493 (pass_all_optimizations): Convert from a global struct to a subclass
17494 of gimple_opt_pass along with...
17495 (pass_data_all_optimizations): ...new pass_data instance and...
17496 (make_pass_all_optimizations): ...new function.
17497 (pass_all_optimizations_g): Convert from a global struct to a subclass
17498 of gimple_opt_pass along with...
17499 (pass_data_all_optimizations_g): ...new pass_data instance and...
17500 (make_pass_all_optimizations_g): ...new function.
17501 (pass_rest_of_compilation): Convert from a global struct to a subclass
17502 of rtl_opt_pass along with...
17503 (pass_data_rest_of_compilation): ...new pass_data instance and...
17504 (make_pass_rest_of_compilation): ...new function.
17505 (pass_postreload): Convert from a global struct to a subclass of
17506 rtl_opt_pass along with...
17507 (pass_data_postreload): ...new pass_data instance and...
17508 (make_pass_postreload): ...new function.
17509 * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
17510 subclass of rtl_opt_pass along with...
17511 (pass_data_gcse2): ...new pass_data instance and...
17512 (make_pass_gcse2): ...new function.
17513 * postreload.c (pass_postreload_cse): Convert from a global struct to
17514 a subclass of rtl_opt_pass along with...
17515 (pass_data_postreload_cse): ...new pass_data instance and...
17516 (make_pass_postreload_cse): ...new function.
17517 * predict.c (pass_profile): Convert from a global struct to a subclass
17518 of gimple_opt_pass along with...
17519 (pass_data_profile): ...new pass_data instance and...
17520 (make_pass_profile): ...new function.
17521 (pass_strip_predict_hints): Convert from a global struct to a subclass
17522 of gimple_opt_pass along with...
17523 (pass_data_strip_predict_hints): ...new pass_data instance and...
17524 (make_pass_strip_predict_hints): ...new function.
17525 * recog.c (pass_peephole2): Convert from a global struct to a subclass
17526 of rtl_opt_pass along with...
17527 (pass_data_peephole2): ...new pass_data instance and...
17528 (make_pass_peephole2): ...new function.
17529 (pass_split_all_insns): Convert from a global struct to a subclass of
17530 rtl_opt_pass along with...
17531 (pass_data_split_all_insns): ...new pass_data instance and...
17532 (make_pass_split_all_insns): ...new function.
17533 (pass_split_after_reload): Convert from a global struct to a subclass
17534 of rtl_opt_pass along with...
17535 (pass_data_split_after_reload): ...new pass_data instance and...
17536 (make_pass_split_after_reload): ...new function.
17537 (pass_split_before_regstack): Convert from a global struct to a
17538 subclass of rtl_opt_pass along with...
17539 (pass_data_split_before_regstack): ...new pass_data instance and...
17540 (make_pass_split_before_regstack): ...new function.
17541 (pass_split_before_sched2): Convert from a global struct to a subclass
17542 of rtl_opt_pass along with...
17543 (pass_data_split_before_sched2): ...new pass_data instance and...
17544 (make_pass_split_before_sched2): ...new function.
17545 (pass_split_for_shorten_branches): Convert from a global struct to a
17546 subclass of rtl_opt_pass along with...
17547 (pass_data_split_for_shorten_branches): ...new pass_data instance
17549 (make_pass_split_for_shorten_branches): ...new function.
17550 * ree.c (pass_ree): Convert from a global struct to a subclass of
17551 rtl_opt_pass along with...
17552 (pass_data_ree): ...new pass_data instance and...
17553 (make_pass_ree): ...new function.
17554 * reg-stack.c (pass_stack_regs): Convert from a global struct to a
17555 subclass of rtl_opt_pass along with...
17556 (pass_data_stack_regs): ...new pass_data instance and...
17557 (make_pass_stack_regs): ...new function.
17558 (pass_stack_regs_run): Convert from a global struct to a subclass of
17559 rtl_opt_pass along with...
17560 (pass_data_stack_regs_run): ...new pass_data instance and...
17561 (make_pass_stack_regs_run): ...new function.
17562 * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
17563 subclass of rtl_opt_pass along with...
17564 (pass_data_cprop_hardreg): ...new pass_data instance and...
17565 (make_pass_cprop_hardreg): ...new function.
17566 * reginfo.c (pass_reginfo_init): Convert from a global struct to a
17567 subclass of rtl_opt_pass along with...
17568 (pass_data_reginfo_init): ...new pass_data instance and...
17569 (make_pass_reginfo_init): ...new function.
17570 * regmove.c (pass_regmove): Convert from a global struct to a subclass
17571 of rtl_opt_pass along with...
17572 (pass_data_regmove): ...new pass_data instance and...
17573 (make_pass_regmove): ...new function.
17574 * regrename.c (pass_regrename): Convert from a global struct to a
17575 subclass of rtl_opt_pass along with...
17576 (pass_data_regrename): ...new pass_data instance and...
17577 (make_pass_regrename): ...new function.
17578 * reorg.c (pass_delay_slots): Convert from a global struct to a
17579 subclass of rtl_opt_pass along with...
17580 (pass_data_delay_slots): ...new pass_data instance and...
17581 (make_pass_delay_slots): ...new function.
17582 (pass_machine_reorg): Convert from a global struct to a subclass of
17583 rtl_opt_pass along with...
17584 (pass_data_machine_reorg): ...new pass_data instance and...
17585 (make_pass_machine_reorg): ...new function.
17586 * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
17587 of rtl_opt_pass along with...
17588 (pass_data_sched): ...new pass_data instance and...
17589 (make_pass_sched): ...new function.
17590 (pass_sched2): Convert from a global struct to a subclass of
17591 rtl_opt_pass along with...
17592 (pass_data_sched2): ...new pass_data instance and...
17593 (make_pass_sched2): ...new function.
17594 * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
17595 to a subclass of rtl_opt_pass along with...
17596 (pass_data_stack_ptr_mod): ...new pass_data instance and...
17597 (make_pass_stack_ptr_mod): ...new function.
17598 * store-motion.c (pass_rtl_store_motion): Convert from a global struct
17599 to a subclass of rtl_opt_pass along with...
17600 (pass_data_rtl_store_motion): ...new pass_data instance and...
17601 (make_pass_rtl_store_motion): ...new function.
17602 * tracer.c (pass_tracer): Convert from a global struct to a subclass
17603 of gimple_opt_pass along with...
17604 (pass_data_tracer): ...new pass_data instance and...
17605 (make_pass_tracer): ...new function.
17606 * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
17607 to a subclass of gimple_opt_pass along with...
17608 (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
17609 (make_pass_diagnose_tm_blocks): ...new function.
17610 (pass_lower_tm): Convert from a global struct to a subclass of
17611 gimple_opt_pass along with...
17612 (pass_data_lower_tm): ...new pass_data instance and...
17613 (make_pass_lower_tm): ...new function.
17614 (pass_tm_init): Convert from a global struct to a subclass of
17615 gimple_opt_pass along with...
17616 (pass_data_tm_init): ...new pass_data instance and...
17617 (make_pass_tm_init): ...new function.
17618 (pass_tm_mark): Convert from a global struct to a subclass of
17619 gimple_opt_pass along with...
17620 (pass_data_tm_mark): ...new pass_data instance and...
17621 (make_pass_tm_mark): ...new function.
17622 (pass_tm_edges): Convert from a global struct to a subclass of
17623 gimple_opt_pass along with...
17624 (pass_data_tm_edges): ...new pass_data instance and...
17625 (make_pass_tm_edges): ...new function.
17626 (pass_tm_memopt): Convert from a global struct to a subclass of
17627 gimple_opt_pass along with...
17628 (pass_data_tm_memopt): ...new pass_data instance and...
17629 (make_pass_tm_memopt): ...new function.
17630 (pass_ipa_tm): Convert from a global struct to a subclass of
17631 simple_ipa_opt_pass along with...
17632 (pass_data_ipa_tm): ...new pass_data instance and...
17633 (make_pass_ipa_tm): ...new function.
17634 * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
17635 subclass of gimple_opt_pass along with...
17636 (pass_data_call_cdce): ...new pass_data instance and...
17637 (make_pass_call_cdce): ...new function.
17638 * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
17639 subclass of gimple_opt_pass along with...
17640 (pass_data_build_cfg): ...new pass_data instance and...
17641 (make_pass_build_cfg): ...new function.
17642 (pass_split_crit_edges): Convert from a global struct to a subclass of
17643 gimple_opt_pass along with...
17644 (pass_data_split_crit_edges): ...new pass_data instance and...
17645 (make_pass_split_crit_edges): ...new function.
17646 (pass_warn_function_return): Convert from a global struct to a
17647 subclass of gimple_opt_pass along with...
17648 (pass_data_warn_function_return): ...new pass_data instance and...
17649 (make_pass_warn_function_return): ...new function.
17650 (pass_warn_function_noreturn): Convert from a global struct to a
17651 subclass of gimple_opt_pass along with...
17652 (pass_data_warn_function_noreturn): ...new pass_data instance and...
17653 (make_pass_warn_function_noreturn): ...new function.
17654 (pass_warn_unused_result): Convert from a global struct to a subclass
17655 of gimple_opt_pass along with...
17656 (pass_data_warn_unused_result): ...new pass_data instance and...
17657 (make_pass_warn_unused_result): ...new function.
17658 * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
17659 a subclass of gimple_opt_pass along with...
17660 (pass_data_merge_phi): ...new pass_data instance and...
17661 (make_pass_merge_phi): ...new function.
17662 * tree-complex.c (pass_lower_complex): Convert from a global struct to
17663 a subclass of gimple_opt_pass along with...
17664 (pass_data_lower_complex): ...new pass_data instance and...
17665 (make_pass_lower_complex): ...new function.
17666 (pass_lower_complex_O0): Convert from a global struct to a subclass of
17667 gimple_opt_pass along with...
17668 (pass_data_lower_complex_O0): ...new pass_data instance and...
17669 (make_pass_lower_complex_O0): ...new function.
17670 * tree-eh.c (pass_lower_eh): Convert from a global struct to a
17671 subclass of gimple_opt_pass along with...
17672 (pass_data_lower_eh): ...new pass_data instance and...
17673 (make_pass_lower_eh): ...new function.
17674 (pass_refactor_eh): Convert from a global struct to a subclass of
17675 gimple_opt_pass along with...
17676 (pass_data_refactor_eh): ...new pass_data instance and...
17677 (make_pass_refactor_eh): ...new function.
17678 (pass_lower_resx): Convert from a global struct to a subclass of
17679 gimple_opt_pass along with...
17680 (pass_data_lower_resx): ...new pass_data instance and...
17681 (make_pass_lower_resx): ...new function.
17682 (pass_lower_eh_dispatch): Convert from a global struct to a subclass
17683 of gimple_opt_pass along with...
17684 (pass_data_lower_eh_dispatch): ...new pass_data instance and...
17685 (make_pass_lower_eh_dispatch): ...new function.
17686 (pass_cleanup_eh): Convert from a global struct to a subclass of
17687 gimple_opt_pass along with...
17688 (pass_data_cleanup_eh): ...new pass_data instance and...
17689 (make_pass_cleanup_eh): ...new function.
17690 * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
17691 to a subclass of simple_ipa_opt_pass along with...
17692 (pass_data_ipa_lower_emutls): ...new pass_data instance and...
17693 (make_pass_ipa_lower_emutls): ...new function.
17694 * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
17695 a subclass of gimple_opt_pass along with...
17696 (pass_data_if_conversion): ...new pass_data instance and...
17697 (make_pass_if_conversion): ...new function.
17698 * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
17699 subclass of gimple_opt_pass along with...
17700 (pass_data_build_ssa): ...new pass_data instance and...
17701 (make_pass_build_ssa): ...new function.
17702 * tree-loop-distribution.c (pass_loop_distribution): Convert from a
17703 global struct to a subclass of gimple_opt_pass along with...
17704 (pass_data_loop_distribution): ...new pass_data instance and...
17705 (make_pass_loop_distribution): ...new function.
17706 * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
17707 subclass of gimple_opt_pass along with...
17708 (pass_data_mudflap_1): ...new pass_data instance and...
17709 (make_pass_mudflap_1): ...new function.
17710 (pass_mudflap_2): Convert from a global struct to a subclass of
17711 gimple_opt_pass along with...
17712 (pass_data_mudflap_2): ...new pass_data instance and...
17713 (make_pass_mudflap_2): ...new function.
17714 * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
17715 subclass of gimple_opt_pass along with...
17716 (pass_data_mudflap_1): ...new pass_data instance and...
17717 (make_pass_mudflap_1): ...new function.
17718 (pass_mudflap_2): Convert from a global struct to a subclass of
17719 gimple_opt_pass along with...
17720 (pass_data_mudflap_2): ...new pass_data instance and...
17721 (make_pass_mudflap_2): ...new function.
17722 * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
17723 gimple_opt_pass along with...
17724 (pass_data_nrv): ...new pass_data instance and...
17725 (make_pass_nrv): ...new function.
17726 (pass_return_slot): Convert from a global struct to a subclass of
17727 gimple_opt_pass along with...
17728 (pass_data_return_slot): ...new pass_data instance and...
17729 (make_pass_return_slot): ...new function.
17730 * tree-object-size.c (pass_object_sizes): Convert from a global struct
17731 to a subclass of gimple_opt_pass along with...
17732 (pass_data_object_sizes): ...new pass_data instance and...
17733 (make_pass_object_sizes): ...new function.
17734 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
17735 global struct to a subclass of gimple_opt_pass along with...
17736 (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
17738 (make_pass_cleanup_cfg_post_optimizing): ...new function.
17739 (pass_fixup_cfg): Convert from a global struct to a subclass of
17740 gimple_opt_pass along with...
17741 (pass_data_fixup_cfg): ...new pass_data instance and...
17742 (make_pass_fixup_cfg): ...new function.
17743 * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
17744 (make_pass_mudflap_1): ...new function.
17745 (pass_mudflap_2): Replace declaration with that of...
17746 (make_pass_mudflap_2): ...new function.
17747 (pass_asan): Replace declaration with that of...
17748 (make_pass_asan): ...new function.
17749 (pass_asan_O0): Replace declaration with that of...
17750 (make_pass_asan_O0): ...new function.
17751 (pass_tsan): Replace declaration with that of...
17752 (make_pass_tsan): ...new function.
17753 (pass_tsan_O0): Replace declaration with that of...
17754 (make_pass_tsan_O0): ...new function.
17755 (pass_lower_cf): Replace declaration with that of...
17756 (make_pass_lower_cf): ...new function.
17757 (pass_refactor_eh): Replace declaration with that of...
17758 (make_pass_refactor_eh): ...new function.
17759 (pass_lower_eh): Replace declaration with that of...
17760 (make_pass_lower_eh): ...new function.
17761 (pass_lower_eh_dispatch): Replace declaration with that of...
17762 (make_pass_lower_eh_dispatch): ...new function.
17763 (pass_lower_resx): Replace declaration with that of...
17764 (make_pass_lower_resx): ...new function.
17765 (pass_build_cfg): Replace declaration with that of...
17766 (make_pass_build_cfg): ...new function.
17767 (pass_early_tree_profile): Replace declaration with that of...
17768 (make_pass_early_tree_profile): ...new function.
17769 (pass_cleanup_eh): Replace declaration with that of...
17770 (make_pass_cleanup_eh): ...new function.
17771 (pass_sra): Replace declaration with that of...
17772 (make_pass_sra): ...new function.
17773 (pass_sra_early): Replace declaration with that of...
17774 (make_pass_sra_early): ...new function.
17775 (pass_early_ipa_sra): Replace declaration with that of...
17776 (make_pass_early_ipa_sra): ...new function.
17777 (pass_tail_recursion): Replace declaration with that of...
17778 (make_pass_tail_recursion): ...new function.
17779 (pass_tail_calls): Replace declaration with that of...
17780 (make_pass_tail_calls): ...new function.
17781 (pass_tree_loop): Replace declaration with that of...
17782 (make_pass_tree_loop): ...new function.
17783 (pass_tree_loop_init): Replace declaration with that of...
17784 (make_pass_tree_loop_init): ...new function.
17785 (pass_lim): Replace declaration with that of...
17786 (make_pass_lim): ...new function.
17787 (pass_tree_unswitch): Replace declaration with that of...
17788 (make_pass_tree_unswitch): ...new function.
17789 (pass_predcom): Replace declaration with that of...
17790 (make_pass_predcom): ...new function.
17791 (pass_iv_canon): Replace declaration with that of...
17792 (make_pass_iv_canon): ...new function.
17793 (pass_scev_cprop): Replace declaration with that of...
17794 (make_pass_scev_cprop): ...new function.
17795 (pass_empty_loop): Replace declaration with that of...
17796 (make_pass_empty_loop): ...new function.
17797 (pass_record_bounds): Replace declaration with that of...
17798 (make_pass_record_bounds): ...new function.
17799 (pass_graphite): Replace declaration with that of...
17800 (make_pass_graphite): ...new function.
17801 (pass_graphite_transforms): Replace declaration with that of...
17802 (make_pass_graphite_transforms): ...new function.
17803 (pass_if_conversion): Replace declaration with that of...
17804 (make_pass_if_conversion): ...new function.
17805 (pass_loop_distribution): Replace declaration with that of...
17806 (make_pass_loop_distribution): ...new function.
17807 (pass_vectorize): Replace declaration with that of...
17808 (make_pass_vectorize): ...new function.
17809 (pass_slp_vectorize): Replace declaration with that of...
17810 (make_pass_slp_vectorize): ...new function.
17811 (pass_complete_unroll): Replace declaration with that of...
17812 (make_pass_complete_unroll): ...new function.
17813 (pass_complete_unrolli): Replace declaration with that of...
17814 (make_pass_complete_unrolli): ...new function.
17815 (pass_parallelize_loops): Replace declaration with that of...
17816 (make_pass_parallelize_loops): ...new function.
17817 (pass_loop_prefetch): Replace declaration with that of...
17818 (make_pass_loop_prefetch): ...new function.
17819 (pass_iv_optimize): Replace declaration with that of...
17820 (make_pass_iv_optimize): ...new function.
17821 (pass_tree_loop_done): Replace declaration with that of...
17822 (make_pass_tree_loop_done): ...new function.
17823 (pass_ch): Replace declaration with that of...
17824 (make_pass_ch): ...new function.
17825 (pass_ccp): Replace declaration with that of...
17826 (make_pass_ccp): ...new function.
17827 (pass_phi_only_cprop): Replace declaration with that of...
17828 (make_pass_phi_only_cprop): ...new function.
17829 (pass_build_ssa): Replace declaration with that of...
17830 (make_pass_build_ssa): ...new function.
17831 (pass_build_alias): Replace declaration with that of...
17832 (make_pass_build_alias): ...new function.
17833 (pass_build_ealias): Replace declaration with that of...
17834 (make_pass_build_ealias): ...new function.
17835 (pass_dominator): Replace declaration with that of...
17836 (make_pass_dominator): ...new function.
17837 (pass_dce): Replace declaration with that of...
17838 (make_pass_dce): ...new function.
17839 (pass_dce_loop): Replace declaration with that of...
17840 (make_pass_dce_loop): ...new function.
17841 (pass_cd_dce): Replace declaration with that of...
17842 (make_pass_cd_dce): ...new function.
17843 (pass_call_cdce): Replace declaration with that of...
17844 (make_pass_call_cdce): ...new function.
17845 (pass_merge_phi): Replace declaration with that of...
17846 (make_pass_merge_phi): ...new function.
17847 (pass_split_crit_edges): Replace declaration with that of...
17848 (make_pass_split_crit_edges): ...new function.
17849 (pass_pre): Replace declaration with that of...
17850 (make_pass_pre): ...new function.
17851 (pass_profile): Replace declaration with that of...
17852 (make_pass_profile): ...new function.
17853 (pass_strip_predict_hints): Replace declaration with that of...
17854 (make_pass_strip_predict_hints): ...new function.
17855 (pass_lower_complex_O0): Replace declaration with that of...
17856 (make_pass_lower_complex_O0): ...new function.
17857 (pass_lower_complex): Replace declaration with that of...
17858 (make_pass_lower_complex): ...new function.
17859 (pass_lower_vector): Replace declaration with that of...
17860 (make_pass_lower_vector): ...new function.
17861 (pass_lower_vector_ssa): Replace declaration with that of...
17862 (make_pass_lower_vector_ssa): ...new function.
17863 (pass_lower_omp): Replace declaration with that of...
17864 (make_pass_lower_omp): ...new function.
17865 (pass_diagnose_omp_blocks): Replace declaration with that of...
17866 (make_pass_diagnose_omp_blocks): ...new function.
17867 (pass_expand_omp): Replace declaration with that of...
17868 (make_pass_expand_omp): ...new function.
17869 (pass_expand_omp_ssa): Replace declaration with that of...
17870 (make_pass_expand_omp_ssa): ...new function.
17871 (pass_object_sizes): Replace declaration with that of...
17872 (make_pass_object_sizes): ...new function.
17873 (pass_strlen): Replace declaration with that of...
17874 (make_pass_strlen): ...new function.
17875 (pass_fold_builtins): Replace declaration with that of...
17876 (make_pass_fold_builtins): ...new function.
17877 (pass_stdarg): Replace declaration with that of...
17878 (make_pass_stdarg): ...new function.
17879 (pass_early_warn_uninitialized): Replace declaration with that of...
17880 (make_pass_early_warn_uninitialized): ...new function.
17881 (pass_late_warn_uninitialized): Replace declaration with that of...
17882 (make_pass_late_warn_uninitialized): ...new function.
17883 (pass_cse_reciprocals): Replace declaration with that of...
17884 (make_pass_cse_reciprocals): ...new function.
17885 (pass_cse_sincos): Replace declaration with that of...
17886 (make_pass_cse_sincos): ...new function.
17887 (pass_optimize_bswap): Replace declaration with that of...
17888 (make_pass_optimize_bswap): ...new function.
17889 (pass_optimize_widening_mul): Replace declaration with that of...
17890 (make_pass_optimize_widening_mul): ...new function.
17891 (pass_warn_function_return): Replace declaration with that of...
17892 (make_pass_warn_function_return): ...new function.
17893 (pass_warn_function_noreturn): Replace declaration with that of...
17894 (make_pass_warn_function_noreturn): ...new function.
17895 (pass_cselim): Replace declaration with that of...
17896 (make_pass_cselim): ...new function.
17897 (pass_phiopt): Replace declaration with that of...
17898 (make_pass_phiopt): ...new function.
17899 (pass_forwprop): Replace declaration with that of...
17900 (make_pass_forwprop): ...new function.
17901 (pass_phiprop): Replace declaration with that of...
17902 (make_pass_phiprop): ...new function.
17903 (pass_tree_ifcombine): Replace declaration with that of...
17904 (make_pass_tree_ifcombine): ...new function.
17905 (pass_dse): Replace declaration with that of...
17906 (make_pass_dse): ...new function.
17907 (pass_nrv): Replace declaration with that of...
17908 (make_pass_nrv): ...new function.
17909 (pass_rename_ssa_copies): Replace declaration with that of...
17910 (make_pass_rename_ssa_copies): ...new function.
17911 (pass_sink_code): Replace declaration with that of...
17912 (make_pass_sink_code): ...new function.
17913 (pass_fre): Replace declaration with that of...
17914 (make_pass_fre): ...new function.
17915 (pass_check_data_deps): Replace declaration with that of...
17916 (make_pass_check_data_deps): ...new function.
17917 (pass_copy_prop): Replace declaration with that of...
17918 (make_pass_copy_prop): ...new function.
17919 (pass_vrp): Replace declaration with that of...
17920 (make_pass_vrp): ...new function.
17921 (pass_uncprop): Replace declaration with that of...
17922 (make_pass_uncprop): ...new function.
17923 (pass_return_slot): Replace declaration with that of...
17924 (make_pass_return_slot): ...new function.
17925 (pass_reassoc): Replace declaration with that of...
17926 (make_pass_reassoc): ...new function.
17927 (pass_rebuild_cgraph_edges): Replace declaration with that of...
17928 (make_pass_rebuild_cgraph_edges): ...new function.
17929 (pass_remove_cgraph_callee_edges): Replace declaration with that of...
17930 (make_pass_remove_cgraph_callee_edges): ...new function.
17931 (pass_build_cgraph_edges): Replace declaration with that of...
17932 (make_pass_build_cgraph_edges): ...new function.
17933 (pass_local_pure_const): Replace declaration with that of...
17934 (make_pass_local_pure_const): ...new function.
17935 (pass_tracer): Replace declaration with that of...
17936 (make_pass_tracer): ...new function.
17937 (pass_warn_unused_result): Replace declaration with that of...
17938 (make_pass_warn_unused_result): ...new function.
17939 (pass_diagnose_tm_blocks): Replace declaration with that of...
17940 (make_pass_diagnose_tm_blocks): ...new function.
17941 (pass_lower_tm): Replace declaration with that of...
17942 (make_pass_lower_tm): ...new function.
17943 (pass_tm_init): Replace declaration with that of...
17944 (make_pass_tm_init): ...new function.
17945 (pass_tm_mark): Replace declaration with that of...
17946 (make_pass_tm_mark): ...new function.
17947 (pass_tm_memopt): Replace declaration with that of...
17948 (make_pass_tm_memopt): ...new function.
17949 (pass_tm_edges): Replace declaration with that of...
17950 (make_pass_tm_edges): ...new function.
17951 (pass_split_functions): Replace declaration with that of...
17952 (make_pass_split_functions): ...new function.
17953 (pass_feedback_split_functions): Replace declaration with that of...
17954 (make_pass_feedback_split_functions): ...new function.
17955 (pass_strength_reduction): Replace declaration with that of...
17956 (make_pass_strength_reduction): ...new function.
17957 (pass_ipa_lower_emutls): Replace declaration with that of...
17958 (make_pass_ipa_lower_emutls): ...new function.
17959 (pass_ipa_function_and_variable_visibility): Replace declaration with
17961 (make_pass_ipa_function_and_variable_visibility): ...new function.
17962 (pass_ipa_tree_profile): Replace declaration with that of...
17963 (make_pass_ipa_tree_profile): ...new function.
17964 (pass_early_local_passes): Replace declaration with that of...
17965 (make_pass_early_local_passes): ...new function.
17966 (pass_ipa_whole_program_visibility): Replace declaration with that
17968 (make_pass_ipa_whole_program_visibility): ...new function.
17969 (pass_ipa_lto_gimple_out): Replace declaration with that of...
17970 (make_pass_ipa_lto_gimple_out): ...new function.
17971 (pass_ipa_increase_alignment): Replace declaration with that of...
17972 (make_pass_ipa_increase_alignment): ...new function.
17973 (pass_ipa_inline): Replace declaration with that of...
17974 (make_pass_ipa_inline): ...new function.
17975 (pass_ipa_free_lang_data): Replace declaration with that of...
17976 (make_pass_ipa_free_lang_data): ...new function.
17977 (pass_ipa_free_inline_summary): Replace declaration with that of...
17978 (make_pass_ipa_free_inline_summary): ...new function.
17979 (pass_ipa_cp): Replace declaration with that of...
17980 (make_pass_ipa_cp): ...new function.
17981 (pass_ipa_reference): Replace declaration with that of...
17982 (make_pass_ipa_reference): ...new function.
17983 (pass_ipa_pure_const): Replace declaration with that of...
17984 (make_pass_ipa_pure_const): ...new function.
17985 (pass_ipa_pta): Replace declaration with that of...
17986 (make_pass_ipa_pta): ...new function.
17987 (pass_ipa_lto_finish_out): Replace declaration with that of...
17988 (make_pass_ipa_lto_finish_out): ...new function.
17989 (pass_ipa_tm): Replace declaration with that of...
17990 (make_pass_ipa_tm): ...new function.
17991 (pass_ipa_profile): Replace declaration with that of...
17992 (make_pass_ipa_profile): ...new function.
17993 (pass_ipa_cdtor_merge): Replace declaration with that of...
17994 (make_pass_ipa_cdtor_merge): ...new function.
17995 (pass_cleanup_cfg_post_optimizing): Replace declaration with that
17997 (make_pass_cleanup_cfg_post_optimizing): ...new function.
17998 (pass_init_datastructures): Replace declaration with that of...
17999 (make_pass_init_datastructures): ...new function.
18000 (pass_fixup_cfg): Replace declaration with that of...
18001 (make_pass_fixup_cfg): ...new function.
18002 (pass_expand): Replace declaration with that of...
18003 (make_pass_expand): ...new function.
18004 (pass_instantiate_virtual_regs): Replace declaration with that of...
18005 (make_pass_instantiate_virtual_regs): ...new function.
18006 (pass_rtl_fwprop): Replace declaration with that of...
18007 (make_pass_rtl_fwprop): ...new function.
18008 (pass_rtl_fwprop_addr): Replace declaration with that of...
18009 (make_pass_rtl_fwprop_addr): ...new function.
18010 (pass_jump): Replace declaration with that of...
18011 (make_pass_jump): ...new function.
18012 (pass_jump2): Replace declaration with that of...
18013 (make_pass_jump2): ...new function.
18014 (pass_lower_subreg): Replace declaration with that of...
18015 (make_pass_lower_subreg): ...new function.
18016 (pass_cse): Replace declaration with that of...
18017 (make_pass_cse): ...new function.
18018 (pass_fast_rtl_dce): Replace declaration with that of...
18019 (make_pass_fast_rtl_dce): ...new function.
18020 (pass_ud_rtl_dce): Replace declaration with that of...
18021 (make_pass_ud_rtl_dce): ...new function.
18022 (pass_rtl_dce): Replace declaration with that of...
18023 (make_pass_rtl_dce): ...new function.
18024 (pass_rtl_dse1): Replace declaration with that of...
18025 (make_pass_rtl_dse1): ...new function.
18026 (pass_rtl_dse2): Replace declaration with that of...
18027 (make_pass_rtl_dse2): ...new function.
18028 (pass_rtl_dse3): Replace declaration with that of...
18029 (make_pass_rtl_dse3): ...new function.
18030 (pass_rtl_cprop): Replace declaration with that of...
18031 (make_pass_rtl_cprop): ...new function.
18032 (pass_rtl_pre): Replace declaration with that of...
18033 (make_pass_rtl_pre): ...new function.
18034 (pass_rtl_hoist): Replace declaration with that of...
18035 (make_pass_rtl_hoist): ...new function.
18036 (pass_rtl_store_motion): Replace declaration with that of...
18037 (make_pass_rtl_store_motion): ...new function.
18038 (pass_cse_after_global_opts): Replace declaration with that of...
18039 (make_pass_cse_after_global_opts): ...new function.
18040 (pass_rtl_ifcvt): Replace declaration with that of...
18041 (make_pass_rtl_ifcvt): ...new function.
18042 (pass_into_cfg_layout_mode): Replace declaration with that of...
18043 (make_pass_into_cfg_layout_mode): ...new function.
18044 (pass_outof_cfg_layout_mode): Replace declaration with that of...
18045 (make_pass_outof_cfg_layout_mode): ...new function.
18046 (pass_loop2): Replace declaration with that of...
18047 (make_pass_loop2): ...new function.
18048 (pass_rtl_loop_init): Replace declaration with that of...
18049 (make_pass_rtl_loop_init): ...new function.
18050 (pass_rtl_move_loop_invariants): Replace declaration with that of...
18051 (make_pass_rtl_move_loop_invariants): ...new function.
18052 (pass_rtl_unswitch): Replace declaration with that of...
18053 (make_pass_rtl_unswitch): ...new function.
18054 (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
18055 (make_pass_rtl_unroll_and_peel_loops): ...new function.
18056 (pass_rtl_doloop): Replace declaration with that of...
18057 (make_pass_rtl_doloop): ...new function.
18058 (pass_rtl_loop_done): Replace declaration with that of...
18059 (make_pass_rtl_loop_done): ...new function.
18060 (pass_web): Replace declaration with that of...
18061 (make_pass_web): ...new function.
18062 (pass_cse2): Replace declaration with that of...
18063 (make_pass_cse2): ...new function.
18064 (pass_df_initialize_opt): Replace declaration with that of...
18065 (make_pass_df_initialize_opt): ...new function.
18066 (pass_df_initialize_no_opt): Replace declaration with that of...
18067 (make_pass_df_initialize_no_opt): ...new function.
18068 (pass_reginfo_init): Replace declaration with that of...
18069 (make_pass_reginfo_init): ...new function.
18070 (pass_inc_dec): Replace declaration with that of...
18071 (make_pass_inc_dec): ...new function.
18072 (pass_stack_ptr_mod): Replace declaration with that of...
18073 (make_pass_stack_ptr_mod): ...new function.
18074 (pass_initialize_regs): Replace declaration with that of...
18075 (make_pass_initialize_regs): ...new function.
18076 (pass_combine): Replace declaration with that of...
18077 (make_pass_combine): ...new function.
18078 (pass_if_after_combine): Replace declaration with that of...
18079 (make_pass_if_after_combine): ...new function.
18080 (pass_ree): Replace declaration with that of...
18081 (make_pass_ree): ...new function.
18082 (pass_partition_blocks): Replace declaration with that of...
18083 (make_pass_partition_blocks): ...new function.
18084 (pass_match_asm_constraints): Replace declaration with that of...
18085 (make_pass_match_asm_constraints): ...new function.
18086 (pass_regmove): Replace declaration with that of...
18087 (make_pass_regmove): ...new function.
18088 (pass_split_all_insns): Replace declaration with that of...
18089 (make_pass_split_all_insns): ...new function.
18090 (pass_fast_rtl_byte_dce): Replace declaration with that of...
18091 (make_pass_fast_rtl_byte_dce): ...new function.
18092 (pass_lower_subreg2): Replace declaration with that of...
18093 (make_pass_lower_subreg2): ...new function.
18094 (pass_mode_switching): Replace declaration with that of...
18095 (make_pass_mode_switching): ...new function.
18096 (pass_sms): Replace declaration with that of...
18097 (make_pass_sms): ...new function.
18098 (pass_sched): Replace declaration with that of...
18099 (make_pass_sched): ...new function.
18100 (pass_ira): Replace declaration with that of...
18101 (make_pass_ira): ...new function.
18102 (pass_reload): Replace declaration with that of...
18103 (make_pass_reload): ...new function.
18104 (pass_clean_state): Replace declaration with that of...
18105 (make_pass_clean_state): ...new function.
18106 (pass_branch_prob): Replace declaration with that of...
18107 (make_pass_branch_prob): ...new function.
18108 (pass_value_profile_transformations): Replace declaration with that
18110 (make_pass_value_profile_transformations): ...new function.
18111 (pass_postreload_cse): Replace declaration with that of...
18112 (make_pass_postreload_cse): ...new function.
18113 (pass_gcse2): Replace declaration with that of...
18114 (make_pass_gcse2): ...new function.
18115 (pass_split_after_reload): Replace declaration with that of...
18116 (make_pass_split_after_reload): ...new function.
18117 (pass_branch_target_load_optimize1): Replace declaration with that
18119 (make_pass_branch_target_load_optimize1): ...new function.
18120 (pass_thread_prologue_and_epilogue): Replace declaration with that
18122 (make_pass_thread_prologue_and_epilogue): ...new function.
18123 (pass_stack_adjustments): Replace declaration with that of...
18124 (make_pass_stack_adjustments): ...new function.
18125 (pass_peephole2): Replace declaration with that of...
18126 (make_pass_peephole2): ...new function.
18127 (pass_if_after_reload): Replace declaration with that of...
18128 (make_pass_if_after_reload): ...new function.
18129 (pass_regrename): Replace declaration with that of...
18130 (make_pass_regrename): ...new function.
18131 (pass_cprop_hardreg): Replace declaration with that of...
18132 (make_pass_cprop_hardreg): ...new function.
18133 (pass_reorder_blocks): Replace declaration with that of...
18134 (make_pass_reorder_blocks): ...new function.
18135 (pass_branch_target_load_optimize2): Replace declaration with that
18137 (make_pass_branch_target_load_optimize2): ...new function.
18138 (pass_leaf_regs): Replace declaration with that of...
18139 (make_pass_leaf_regs): ...new function.
18140 (pass_split_before_sched2): Replace declaration with that of...
18141 (make_pass_split_before_sched2): ...new function.
18142 (pass_compare_elim_after_reload): Replace declaration with that of...
18143 (make_pass_compare_elim_after_reload): ...new function.
18144 (pass_sched2): Replace declaration with that of...
18145 (make_pass_sched2): ...new function.
18146 (pass_stack_regs): Replace declaration with that of...
18147 (make_pass_stack_regs): ...new function.
18148 (pass_stack_regs_run): Replace declaration with that of...
18149 (make_pass_stack_regs_run): ...new function.
18150 (pass_df_finish): Replace declaration with that of...
18151 (make_pass_df_finish): ...new function.
18152 (pass_compute_alignments): Replace declaration with that of...
18153 (make_pass_compute_alignments): ...new function.
18154 (pass_duplicate_computed_gotos): Replace declaration with that of...
18155 (make_pass_duplicate_computed_gotos): ...new function.
18156 (pass_variable_tracking): Replace declaration with that of...
18157 (make_pass_variable_tracking): ...new function.
18158 (pass_free_cfg): Replace declaration with that of...
18159 (make_pass_free_cfg): ...new function.
18160 (pass_machine_reorg): Replace declaration with that of...
18161 (make_pass_machine_reorg): ...new function.
18162 (pass_cleanup_barriers): Replace declaration with that of...
18163 (make_pass_cleanup_barriers): ...new function.
18164 (pass_delay_slots): Replace declaration with that of...
18165 (make_pass_delay_slots): ...new function.
18166 (pass_split_for_shorten_branches): Replace declaration with that of...
18167 (make_pass_split_for_shorten_branches): ...new function.
18168 (pass_split_before_regstack): Replace declaration with that of...
18169 (make_pass_split_before_regstack): ...new function.
18170 (pass_convert_to_eh_region_ranges): Replace declaration with that
18172 (make_pass_convert_to_eh_region_ranges): ...new function.
18173 (pass_shorten_branches): Replace declaration with that of...
18174 (make_pass_shorten_branches): ...new function.
18175 (pass_set_nothrow_function_flags): Replace declaration with that of...
18176 (make_pass_set_nothrow_function_flags): ...new function.
18177 (pass_dwarf2_frame): Replace declaration with that of...
18178 (make_pass_dwarf2_frame): ...new function.
18179 (pass_final): Replace declaration with that of...
18180 (make_pass_final): ...new function.
18181 (pass_rtl_seqabstr): Replace declaration with that of...
18182 (make_pass_rtl_seqabstr): ...new function.
18183 (pass_release_ssa_names): Replace declaration with that of...
18184 (make_pass_release_ssa_names): ...new function.
18185 (pass_early_inline): Replace declaration with that of...
18186 (make_pass_early_inline): ...new function.
18187 (pass_inline_parameters): Replace declaration with that of...
18188 (make_pass_inline_parameters): ...new function.
18189 (pass_update_address_taken): Replace declaration with that of...
18190 (make_pass_update_address_taken): ...new function.
18191 (pass_convert_switch): Replace declaration with that of...
18192 (make_pass_convert_switch): ...new function.
18193 * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
18194 to a subclass of simple_ipa_opt_pass along with...
18195 (pass_data_ipa_tree_profile): ...new pass_data instance and...
18196 (make_pass_ipa_tree_profile): ...new function.
18197 * tree-sra.c (pass_sra_early): Convert from a global struct to a
18198 subclass of gimple_opt_pass along with...
18199 (pass_data_sra_early): ...new pass_data instance and...
18200 (make_pass_sra_early): ...new function.
18201 (pass_sra): Convert from a global struct to a subclass of
18202 gimple_opt_pass along with...
18203 (pass_data_sra): ...new pass_data instance and...
18204 (make_pass_sra): ...new function.
18205 (pass_early_ipa_sra): Convert from a global struct to a subclass of
18206 gimple_opt_pass along with...
18207 (pass_data_early_ipa_sra): ...new pass_data instance and...
18208 (make_pass_early_ipa_sra): ...new function.
18209 * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
18210 subclass of gimple_opt_pass along with...
18211 (pass_data_ccp): ...new pass_data instance and...
18212 (make_pass_ccp): ...new function.
18213 (pass_fold_builtins): Convert from a global struct to a subclass of
18214 gimple_opt_pass along with...
18215 (pass_data_fold_builtins): ...new pass_data instance and...
18216 (make_pass_fold_builtins): ...new function.
18217 * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
18218 subclass of gimple_opt_pass along with...
18219 (pass_data_copy_prop): ...new pass_data instance and...
18220 (make_pass_copy_prop): ...new function.
18221 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
18222 global struct to a subclass of gimple_opt_pass along with...
18223 (pass_data_rename_ssa_copies): ...new pass_data instance and...
18224 (make_pass_rename_ssa_copies): ...new function.
18225 * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
18226 subclass of gimple_opt_pass along with...
18227 (pass_data_dce): ...new pass_data instance and...
18228 (make_pass_dce): ...new function.
18229 (pass_dce_loop): Convert from a global struct to a subclass of
18230 gimple_opt_pass along with...
18231 (pass_data_dce_loop): ...new pass_data instance and...
18232 (make_pass_dce_loop): ...new function.
18233 (pass_cd_dce): Convert from a global struct to a subclass of
18234 gimple_opt_pass along with...
18235 (pass_data_cd_dce): ...new pass_data instance and...
18236 (make_pass_cd_dce): ...new function.
18237 * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
18238 subclass of gimple_opt_pass along with...
18239 (pass_data_dominator): ...new pass_data instance and...
18240 (make_pass_dominator): ...new function.
18241 (pass_phi_only_cprop): Convert from a global struct to a subclass of
18242 gimple_opt_pass along with...
18243 (pass_data_phi_only_cprop): ...new pass_data instance and...
18244 (make_pass_phi_only_cprop): ...new function.
18245 * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
18246 subclass of gimple_opt_pass along with...
18247 (pass_data_dse): ...new pass_data instance and...
18248 (make_pass_dse): ...new function.
18249 * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
18250 a subclass of gimple_opt_pass along with...
18251 (pass_data_forwprop): ...new pass_data instance and...
18252 (make_pass_forwprop): ...new function.
18253 * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
18254 struct to a subclass of gimple_opt_pass along with...
18255 (pass_data_tree_ifcombine): ...new pass_data instance and...
18256 (make_pass_tree_ifcombine): ...new function.
18257 * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
18258 subclass of gimple_opt_pass along with...
18259 (pass_data_ch): ...new pass_data instance and...
18260 (make_pass_ch): ...new function.
18261 * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
18262 subclass of gimple_opt_pass along with...
18263 (pass_data_tree_loop): ...new pass_data instance and...
18264 (make_pass_tree_loop): ...new function.
18265 (pass_tree_loop_init): Convert from a global struct to a subclass of
18266 gimple_opt_pass along with...
18267 (pass_data_tree_loop_init): ...new pass_data instance and...
18268 (make_pass_tree_loop_init): ...new function.
18269 (pass_lim): Convert from a global struct to a subclass of
18270 gimple_opt_pass along with...
18271 (pass_data_lim): ...new pass_data instance and...
18272 (make_pass_lim): ...new function.
18273 (pass_tree_unswitch): Convert from a global struct to a subclass of
18274 gimple_opt_pass along with...
18275 (pass_data_tree_unswitch): ...new pass_data instance and...
18276 (make_pass_tree_unswitch): ...new function.
18277 (pass_predcom): Convert from a global struct to a subclass of
18278 gimple_opt_pass along with...
18279 (pass_data_predcom): ...new pass_data instance and...
18280 (make_pass_predcom): ...new function.
18281 (pass_vectorize): Convert from a global struct to a subclass of
18282 gimple_opt_pass along with...
18283 (pass_data_vectorize): ...new pass_data instance and...
18284 (make_pass_vectorize): ...new function.
18285 (pass_graphite): Convert from a global struct to a subclass of
18286 gimple_opt_pass along with...
18287 (pass_data_graphite): ...new pass_data instance and...
18288 (make_pass_graphite): ...new function.
18289 (pass_graphite_transforms): Convert from a global struct to a subclass
18290 of gimple_opt_pass along with...
18291 (pass_data_graphite_transforms): ...new pass_data instance and...
18292 (make_pass_graphite_transforms): ...new function.
18293 (pass_check_data_deps): Convert from a global struct to a subclass of
18294 gimple_opt_pass along with...
18295 (pass_data_check_data_deps): ...new pass_data instance and...
18296 (make_pass_check_data_deps): ...new function.
18297 (pass_iv_canon): Convert from a global struct to a subclass of
18298 gimple_opt_pass along with...
18299 (pass_data_iv_canon): ...new pass_data instance and...
18300 (make_pass_iv_canon): ...new function.
18301 (pass_scev_cprop): Convert from a global struct to a subclass of
18302 gimple_opt_pass along with...
18303 (pass_data_scev_cprop): ...new pass_data instance and...
18304 (make_pass_scev_cprop): ...new function.
18305 (pass_record_bounds): Convert from a global struct to a subclass of
18306 gimple_opt_pass along with...
18307 (pass_data_record_bounds): ...new pass_data instance and...
18308 (make_pass_record_bounds): ...new function.
18309 (pass_complete_unroll): Convert from a global struct to a subclass of
18310 gimple_opt_pass along with...
18311 (pass_data_complete_unroll): ...new pass_data instance and...
18312 (make_pass_complete_unroll): ...new function.
18313 (pass_complete_unrolli): Convert from a global struct to a subclass of
18314 gimple_opt_pass along with...
18315 (pass_data_complete_unrolli): ...new pass_data instance and...
18316 (make_pass_complete_unrolli): ...new function.
18317 (pass_parallelize_loops): Convert from a global struct to a subclass
18318 of gimple_opt_pass along with...
18319 (pass_data_parallelize_loops): ...new pass_data instance and...
18320 (make_pass_parallelize_loops): ...new function.
18321 (pass_loop_prefetch): Convert from a global struct to a subclass of
18322 gimple_opt_pass along with...
18323 (pass_data_loop_prefetch): ...new pass_data instance and...
18324 (make_pass_loop_prefetch): ...new function.
18325 (pass_iv_optimize): Convert from a global struct to a subclass of
18326 gimple_opt_pass along with...
18327 (pass_data_iv_optimize): ...new pass_data instance and...
18328 (make_pass_iv_optimize): ...new function.
18329 (pass_tree_loop_done): Convert from a global struct to a subclass of
18330 gimple_opt_pass along with...
18331 (pass_data_tree_loop_done): ...new pass_data instance and...
18332 (make_pass_tree_loop_done): ...new function.
18333 * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
18334 struct to a subclass of gimple_opt_pass along with...
18335 (pass_data_cse_reciprocals): ...new pass_data instance and...
18336 (make_pass_cse_reciprocals): ...new function.
18337 (pass_cse_sincos): Convert from a global struct to a subclass of
18338 gimple_opt_pass along with...
18339 (pass_data_cse_sincos): ...new pass_data instance and...
18340 (make_pass_cse_sincos): ...new function.
18341 (pass_optimize_bswap): Convert from a global struct to a subclass of
18342 gimple_opt_pass along with...
18343 (pass_data_optimize_bswap): ...new pass_data instance and...
18344 (make_pass_optimize_bswap): ...new function.
18345 (pass_optimize_widening_mul): Convert from a global struct to a
18346 subclass of gimple_opt_pass along with...
18347 (pass_data_optimize_widening_mul): ...new pass_data instance and...
18348 (make_pass_optimize_widening_mul): ...new function.
18349 * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
18350 subclass of gimple_opt_pass along with...
18351 (pass_data_phiopt): ...new pass_data instance and...
18352 (make_pass_phiopt): ...new function.
18353 (pass_cselim): Convert from a global struct to a subclass of
18354 gimple_opt_pass along with...
18355 (pass_data_cselim): ...new pass_data instance and...
18356 (make_pass_cselim): ...new function.
18357 * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
18358 subclass of gimple_opt_pass along with...
18359 (pass_data_phiprop): ...new pass_data instance and...
18360 (make_pass_phiprop): ...new function.
18361 * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
18362 subclass of gimple_opt_pass along with...
18363 (pass_data_pre): ...new pass_data instance and...
18364 (make_pass_pre): ...new function.
18365 (pass_fre): Convert from a global struct to a subclass of
18366 gimple_opt_pass along with...
18367 (pass_data_fre): ...new pass_data instance and...
18368 (make_pass_fre): ...new function.
18369 * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
18370 subclass of gimple_opt_pass along with...
18371 (pass_data_reassoc): ...new pass_data instance and...
18372 (make_pass_reassoc): ...new function.
18373 * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
18374 subclass of gimple_opt_pass along with...
18375 (pass_data_sink_code): ...new pass_data instance and...
18376 (make_pass_sink_code): ...new function.
18377 * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
18378 subclass of gimple_opt_pass along with...
18379 (pass_data_strlen): ...new pass_data instance and...
18380 (make_pass_strlen): ...new function.
18381 * tree-ssa-structalias.c (pass_build_alias): Convert from a global
18382 struct to a subclass of gimple_opt_pass along with...
18383 (pass_data_build_alias): ...new pass_data instance and...
18384 (make_pass_build_alias): ...new function.
18385 (pass_build_ealias): Convert from a global struct to a subclass of
18386 gimple_opt_pass along with...
18387 (pass_data_build_ealias): ...new pass_data instance and...
18388 (make_pass_build_ealias): ...new function.
18389 (pass_ipa_pta): Convert from a global struct to a subclass of
18390 simple_ipa_opt_pass along with...
18391 (pass_data_ipa_pta): ...new pass_data instance and...
18392 (make_pass_ipa_pta): ...new function.
18393 * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
18394 subclass of gimple_opt_pass along with...
18395 (pass_data_uncprop): ...new pass_data instance and...
18396 (make_pass_uncprop): ...new function.
18397 * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
18398 global struct to a subclass of gimple_opt_pass along with...
18399 (pass_data_late_warn_uninitialized): ...new pass_data instance and...
18400 (make_pass_late_warn_uninitialized): ...new function.
18401 * tree-ssa.c (pass_init_datastructures): Convert from a global struct
18402 to a subclass of gimple_opt_pass along with...
18403 (pass_data_init_datastructures): ...new pass_data instance and...
18404 (make_pass_init_datastructures): ...new function.
18405 (pass_early_warn_uninitialized): Convert from a global struct to a
18406 subclass of gimple_opt_pass along with...
18407 (pass_data_early_warn_uninitialized): ...new pass_data instance and...
18408 (make_pass_early_warn_uninitialized): ...new function.
18409 (pass_update_address_taken): Convert from a global struct to a
18410 subclass of gimple_opt_pass along with...
18411 (pass_data_update_address_taken): ...new pass_data instance and...
18412 (make_pass_update_address_taken): ...new function.
18413 * tree-ssanames.c (pass_release_ssa_names): Convert from a global
18414 struct to a subclass of gimple_opt_pass along with...
18415 (pass_data_release_ssa_names): ...new pass_data instance and...
18416 (make_pass_release_ssa_names): ...new function.
18417 * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
18418 subclass of gimple_opt_pass along with...
18419 (pass_data_stdarg): ...new pass_data instance and...
18420 (make_pass_stdarg): ...new function.
18421 * tree-switch-conversion.c (pass_convert_switch): Convert from a
18422 global struct to a subclass of gimple_opt_pass along with...
18423 (pass_data_convert_switch): ...new pass_data instance and...
18424 (make_pass_convert_switch): ...new function.
18425 * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
18426 to a subclass of gimple_opt_pass along with...
18427 (pass_data_tail_recursion): ...new pass_data instance and...
18428 (make_pass_tail_recursion): ...new function.
18429 (pass_tail_calls): Convert from a global struct to a subclass of
18430 gimple_opt_pass along with...
18431 (pass_data_tail_calls): ...new pass_data instance and...
18432 (make_pass_tail_calls): ...new function.
18433 * tree-vect-generic.c (pass_lower_vector): Convert from a global
18434 struct to a subclass of gimple_opt_pass along with...
18435 (pass_data_lower_vector): ...new pass_data instance and...
18436 (make_pass_lower_vector): ...new function.
18437 (pass_lower_vector_ssa): Convert from a global struct to a subclass of
18438 gimple_opt_pass along with...
18439 (pass_data_lower_vector_ssa): ...new pass_data instance and...
18440 (make_pass_lower_vector_ssa): ...new function.
18441 * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
18442 to a subclass of gimple_opt_pass along with...
18443 (pass_data_slp_vectorize): ...new pass_data instance and...
18444 (make_pass_slp_vectorize): ...new function.
18445 (pass_ipa_increase_alignment): Convert from a global struct to a
18446 subclass of simple_ipa_opt_pass along with...
18447 (pass_data_ipa_increase_alignment): ...new pass_data instance and...
18448 (make_pass_ipa_increase_alignment): ...new function.
18449 * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
18450 gimple_opt_pass along with...
18451 (pass_data_vrp): ...new pass_data instance and...
18452 (make_pass_vrp): ...new function.
18453 * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
18454 subclass of simple_ipa_opt_pass along with...
18455 (pass_data_ipa_free_lang_data): ...new pass_data instance and...
18456 (make_pass_ipa_free_lang_data): ...new function.
18457 * tsan.c (pass_tsan): Convert from a global struct to a subclass of
18458 gimple_opt_pass along with...
18459 (pass_data_tsan): ...new pass_data instance and...
18460 (make_pass_tsan): ...new function.
18461 (pass_tsan_O0): Convert from a global struct to a subclass of
18462 gimple_opt_pass along with...
18463 (pass_data_tsan_O0): ...new pass_data instance and...
18464 (make_pass_tsan_O0): ...new function.
18465 * var-tracking.c (pass_variable_tracking): Convert from a global
18466 struct to a subclass of rtl_opt_pass along with...
18467 (pass_data_variable_tracking): ...new pass_data instance and...
18468 (make_pass_variable_tracking): ...new function.
18469 * web.c (pass_web): Convert from a global struct to a subclass of
18470 rtl_opt_pass along with...
18471 (pass_data_web): ...new pass_data instance and...
18472 (make_pass_web): ...new function.
18473 * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
18474 declaration with that of...
18475 (make_pass_mode_switch_use): ...new function.
18476 (pass_resolve_sw_modes): Replace declaration with that of...
18477 (make_pass_resolve_sw_modes): ...new function.
18478 * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
18479 from a global struct to a subclass of rtl_opt_pass along with...
18480 (pass_data_mode_switch_use): ...new pass_data instance and...
18481 (make_pass_mode_switch_use): ...new function.
18482 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
18483 from a global struct to a subclass of rtl_opt_pass along with...
18484 (pass_data_resolve_sw_modes): ...new pass_data instance and...
18485 (make_pass_resolve_sw_modes): ...new function.
18486 * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
18487 struct to a subclass of rtl_opt_pass along with...
18488 (pass_data_insert_vzeroupper): ...new pass_data instance and...
18489 (make_pass_insert_vzeroupper): ...new function.
18490 * config/sparc/sparc.c (pass_work_around_errata): Convert from a
18491 global struct to a subclass of rtl_opt_pass along with...
18492 (pass_data_work_around_errata): ...new pass_data instance and...
18493 (make_pass_work_around_errata): ...new function.
18494 * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
18495 struct to a subclass of rtl_opt_pass along with...
18496 (pass_data_mips_machine_reorg2): ...new pass_data instance and...
18497 (make_pass_mips_machine_reorg2): ...new function.
18499 2013-08-05 David Malcolm <dmalcolm@redhat.com>
18501 * passes.c (pass_manager::operator new): New.
18503 2013-08-05 David Malcolm <dmalcolm@redhat.com>
18505 Handwritten part of conversion of passes to C++ classes.
18507 * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
18508 (toplev.o): Add dep on PASS_MANAGER_H.
18509 * cgraphunit.c (cgraph_process_new_functions): Rework invocation
18510 of early local pases to reflect this moving from a global to a
18511 member of gcc::pass_manager.
18512 (cgraph_add_new_function): Likewise.
18513 * lto-cgraph.c (lto_output_node): Update for conversion of
18514 struct ipa_opt_pass_d to a C++ subclass of opt_pass.
18515 * passes.c (opt_pass::clone): New.
18516 (opt_pass::gate): New.
18517 (opt_pass::execute): New.
18518 (opt_pass::opt_pass): New.
18519 (pass_manager::execute_early_local_passes): New.
18520 (pass_manager::execute_pass_mode_switching): new.
18521 (finish_optimization_passes): Convert to...
18522 (pass_manager::finish_optimization_passes): ...this.
18523 (finish_optimization_passes): Update for conversion of passes to
18525 (register_dump_files_1): Use has_gate since we cannot portably
18526 check a vtable entry against NULL.
18527 (dump_one_pass): Likewise.
18528 (ipa_write_summaries_2): Likewise.
18529 (ipa_write_optimization_summaries_1): Likewise.
18530 (ipa_read_summaries_1): Likewise.
18531 (ipa_read_optimization_summaries_1): Likewise.
18532 (execute_ipa_stmt_fixups): Likewise.
18533 (pass_manager::pass_manager): Rewrite pass-creation, invoking
18534 pass-creation functions rather than wiring up globals, and
18535 storing the results in fields of pass_manager generated using
18536 pass-instances.def.
18537 (pass_manager::dump_profile_report): Update for conversion of
18538 passes to C++ classes.
18539 (pass_manager::execute_ipa_summary_passes): Likewise.
18540 (execute_one_ipa_transform_pass): Likewise.
18541 (execute_one_pass): Use has_gate and has_execute since we cannot
18542 portably check a vtable entry against NULL.
18543 * pass_manager.h (pass_manager::finish_optimization_passes): New.
18544 (pass_manager): Use pass-instances.def to add fields for the
18545 various pass instances.
18546 * toplev.c (finalize): Update for move of
18547 finish_optimization_passes to a method of gcc::pass_manager.
18548 * toplev.h (finish_optimization_passes): Move to method of class
18550 * tree-pass.h (struct pass_data): New.
18551 (opt_pass): Convert to C++ class, make it a subclass of pass_data.
18552 (opt_pass::gate): Convert to virtual function.
18553 (opt_pass::~opt_pass): New.
18554 (opt_pass::clone): New.
18555 (opt_pass::execute): Convert to virtual function.
18556 (opt_pass::opt_pass): New.
18557 (opt_pass::ctxt_): new.
18558 (gimple_opt_pass): Convert to subclass of opt_pass.
18559 (gimple_opt_pass::gimple_opt_pass): New.
18560 (rtl_opt_pass): Convert to subclass of opt_pass.
18561 (rtl_opt_pass::rtl_opt_pass): New.
18562 (ipa_opt_pass_d): Convert to subclass of opt_pass.
18563 (ipa_opt_pass_d::ipa_opt_pass_d): New.
18564 (simple_ipa_opt_pass): Convert to subclass of opt_pass.
18565 (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
18566 * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
18567 invocation of pass_mode_switching to reflect this moving from a
18568 global to a member of gcc::pass_manager.
18569 (ix86_option_override): Rework how pass_insert_vzeroupper is
18570 added to the pass_manager to reflect autogenerated changes.
18571 * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
18573 2013-08-05 Richard Earnshaw <rearnsha@arm.com>
18575 PR rtl-optimization/57708
18576 * recog.c (peep2_find_free_register): Validate all regs in a
18579 2013-08-05 Jan Hubicka <jh@suse.cz>
18582 * cgraph.c (verify_cgraph_node): Accept local flags from other
18584 * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
18585 (function_and_variable_visibility): Likewise.
18586 * trans-mem.c (ipa_tm_create_version): TM versions are not local.
18588 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
18590 * graph.c (init_graph_slim_pretty_print): Remove.
18591 (print_graph_cfg): Do not call it. Use local pretty printer.
18592 (start_graph_dump): Likewise.
18594 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
18596 * gimple-pretty-print.c (buffer): Remove.
18597 (initialized): Likewise.
18598 (maybe_init_pretty_print): Likewise.
18599 (print_gimple_stmt): Do not call it. Use non-static local
18600 pretty_printer variable.
18601 (print_gimple_expr): Likewise.
18602 (print_gimple_seq): Likewise.
18603 (gimple_dump_bb): Likewise.
18605 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
18607 * asan.c (asan_pp): Remove.
18608 (asan_pp_initialized): Likewise.
18609 (asan_pp_initialize): Likewise.
18610 (asan_pp_string): Take a pretty_printer parameter. Adjust callers.
18611 (asan_emit_stack_protection): Tidy. Use local pretty printer.
18612 (asan_add_global): Likewise.
18614 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
18616 * pretty-print.h (pp_base): Remove. Adjust dependent macros.
18617 * diagnostic.h (diagnostic_flush_buffer): Adjust.
18618 * pretty-print.c (pp_formatted_text_data): Likewise.
18619 (pp_indent): Rename from pp_base_indent.
18620 (pp_format): Rename from pp_base_format.
18621 (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
18622 (pp_format_verbatim): Rename from pp_base_format_verbatim.
18623 (pp_flush): Rename from pp_base_flush.
18624 (pp_set_line_maximum_length): Rename from
18625 pp_base_set_line_maximum_length.
18626 (pp_clear_output_area): Rename from pp_base_clear_output_area.
18627 (pp_set_prefix): Rename from pp_base_set_prefix.
18628 (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
18629 (pp_emit_prefix): Rename from pp_base_emit_prefix.
18630 (pp_append_text): Rename from pp_base_append_text.
18631 (pp_formatted_text): Rename from pp_base_formatted_text.
18632 (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
18633 (pp_remaining_character_count_for_line): Rename from
18634 pp_base_remaining_character_count_for_line.
18635 (pp_newline): Rename from pp_base_newline.
18636 (pp_character): Rename from pp_base_character.
18637 (pp_string): Rename from pp_base_string.
18638 (pp_maybe_space): Rename from pp_base_maybe_space.
18639 * asan.c (asan_pp_string): Adjust.
18640 (asan_emit_stack_protection): Likewise.
18641 (asan_add_global): Likewise.
18642 * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
18643 * tree-mudflap.c (mf_varname_tree): Likewise.
18644 * tree-pretty-print.c (pp_tree_identifier): Rename from
18645 pp_base_tree_identifier.
18646 * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
18647 Declare as function.
18649 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
18651 * pretty-print.h (pp_bar_bar): New.
18652 (pp_ampersand_ampersand): Likewise.
18653 (pp_less_equal): Likewise.
18654 (pp_greater_equal): Likewise.
18655 * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
18656 printer functions instead of pp_string or operators and punctuators.
18657 (dump_gimple_call): Likewise.
18658 (dump_gimple_omp_for): Likewise.
18659 (dump_gimple_transaction): Likewise.
18660 (dump_gimple_phi): Likewise.
18661 (pp_gimple_stmt_1): Likewise.
18662 * sched-vis.c (print_insn): Likewise.
18663 * tree-mudflap.c (mf_varname_tree): Likewise.
18664 * tree-pretty-print.c (dump_block_node): Likewise.
18665 (dump_generic_node): Likewise.
18667 2013-08-02 Jan Hubicka <jh@suse.cz>
18669 * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
18671 * lto-streamer-out.c (tree_is_indexable): Results decls and
18672 parm decls are not indexable.
18673 (DFS_write_tree_body): Do not follow args and results.
18674 (hash_tree): Likewise.
18675 (output_functions): Rearrange so struct function is needed
18676 only when real body is output; be able to also ouptut abstract
18677 functions; output DECL_ARGUMENTS and DECL_RESULT.
18678 (lto_output): When not in WPA, ale store abstract functions.
18679 (write_symbol): Do not care about RESULT_DECL.
18680 (output_symbol_p): Handle correctly sbtract decls.
18681 * lto-streamer-in.c (input_function): Rearrange so struct
18682 function can be NULL at entry; allow streaming of
18683 functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
18684 * ipa.c (symtab_remove_unreachable_nodes): Silence confused
18685 sanity check during LTO.
18686 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
18687 RESULT_DECl and DECL_ARGUMENTS.
18688 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
18691 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
18693 * pretty-print.h (pp_underscore): New.
18695 * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
18696 printer functions instead of pp_character.
18697 (dump_binary_rhs): Likewise.
18698 (dump_ternary_rhs): Likewise.
18699 (dump_gimple_call_args): Likewise.
18700 (pp_points_to_solution): Likewise.
18701 (dump_gimple_call): Likewise.
18702 (dump_gimple_switch): Likewise.
18703 (dump_gimple_cond): Likewise.
18704 (dump_gimple_bind): Likewise.
18705 (dump_gimple_try): Likewise.
18706 (dump_gimple_omp_for): Likewise.
18707 (dump_gimple_omp_continue): Likewise.
18708 (dump_gimple_omp_single): Likewise.
18709 (dump_gimple_omp_sections): Likewise.
18710 (dump_gimple_omp_block): Likewise.
18711 (dump_gimple_omp_critical): Likewise.
18712 (dump_gimple_transaction): Likewise.
18713 (dump_gimple_asm): Likewise.
18714 (dump_gimple_phi): Likewise.
18715 (dump_gimple_omp_parallel): Likewise.
18716 (dump_gimple_omp_task): Likewise.
18717 (dump_gimple_omp_atomic_load): Likewise.
18718 (dump_gimple_omp_atomic_store): Likewise.
18719 (dump_gimple_mem_ops): Likewise.
18720 (pp_gimple_stmt_1): Likewise.
18721 (pp_cfg_jump): Likewise.
18722 (dump_implicit_edges): Likewise.
18723 (gimple_dump_bb_for_graph): Likewise.
18724 * graph.c (draw_cfg_node): Likewise.
18725 * langhooks.c (lhd_print_error_function): Likewise.
18726 * sched-vis.c (print_exp): Likewise.
18727 (print_value): Likewise.
18728 (print_pattern): Likewise.
18729 (print_insn): Likewise.
18730 (rtl_dump_bb_for_graph): Likewise.
18731 * tree-pretty-print.c (dump_function_declaration): Likewise.
18732 (dump_array_domain): Likewise.
18733 (dump_omp_clause): Likewise.
18734 (dump_location): Likewise.
18735 (dump_generic_node): Likewise.
18736 (print_struct_decl): Likewise.
18737 * diagnostic.c (diagnostic_show_locus): Use pp_space.
18739 2013-08-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
18741 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
18742 candidate table when replacing a candidate statement.
18743 (replace_rhs_if_not_dup): Likewise.
18744 (replace_one_candidate): Likewise.
18746 2013-08-02 Jan Hubicka <jh@suse.cz>
18747 Martin Liska <marxin.liska@gmail.com>
18749 * cgraphunit.c (add_new_function): Fix logic when adding from
18751 (assemble_thunk): Rename to ...
18752 (expand_thunk); .. this one; export; get it working with
18753 general functions; make produced gimple valid.
18754 * cgraph.h (expand_thunk): Declare.
18756 2013-08-02 Jan Hubicka <jh@suse.cz>
18758 * ipa-cp.c (gather_context_independent_values): Use
18759 ipa_get_param_move_cost.
18760 (get_replacement_map): Remove PARAM; move parameter folding
18762 (create_specialized_node): Update.
18763 * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
18764 assert that we have gimple body; update move_cost.
18765 (count_formal_params): Assert that we have gimple body.
18766 (ipa_dump_param): New function.
18767 (ipa_alloc_node_params): Break out from ...
18768 (ipa_initialize_node_params): ... here.
18769 (ipa_get_vector_of_formal_parms): ICE when used in WPA.
18770 (ipa_write_node_info): Stream move costs.
18771 (ipa_read_node_info): Read move costs.
18772 (ipa_update_after_lto_read): Do not recompute node params.
18773 * ipa-prop.h (ipa_param_descriptor): Add move_cost.
18774 (ipa_get_param): Check we are not in WPA.
18775 (ipa_get_param_move_cost): New.
18776 * tree-inline.c (tree_function_versioning): Fold replacement as needed.
18777 * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
18778 parm numbers to be present.
18780 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
18782 PR rtl-optimization/58048
18783 * lra-constraints.c (process_alt_operands): Don't check asm
18784 operand on register.
18786 2013-08-02 Eric Botcazou <ebotcazou@adacore.com>
18788 * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
18789 the implied StoreLoad barrier for atomic operations if before.
18791 2013-08-02 Jan Hubicka <jh@suse.cz>
18792 Martin Liska <marxin.liska@gmail.com>
18794 * cgraph.c (cgraph_function_body_availability): Do not check
18796 * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
18797 symtab_node_availability): Declare.
18798 * ipa.c (can_replace_by_local_alias): New.
18799 (function_and_variable_visibility): Use it.
18800 * symtab.c (symtab_for_node_and_aliases,
18801 symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
18803 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
18805 PR rtl-optimization/57963
18806 * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
18807 (lra_constraints): Use them.
18809 2013-08-02 Sofiane Naci <sofiane.naci@arm.com>
18811 * config/arm/types.md (define_attr "type"): Add "load_acq"
18813 * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
18815 (cortex_a53_store1): Likewise.
18817 2013-08-01 Jan Hubicka <jh@suse.cz>
18819 * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
18820 partitions are not needed.
18822 2013-08-01 Uros Bizjak <ubizjak@gmail.com>
18824 * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
18825 * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
18826 MAYBE_NON_Q_CLASS_P where appropriate.
18828 2013-08-01 Jan Hubicka <jh@suse.cz>
18830 * cgraph.h (release_function_body): Declare.
18831 * tree.c (free_lang_data_in_decl): Free, parameters and return values
18832 of unused delcarations.
18834 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18836 * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
18837 RTL form when subtracting a constant.
18839 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18841 * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
18842 Generate canonical plus rtx with negated immediate instead of minus
18844 * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
18846 2013-08-01 Jan Hubicka <jh@suse.cz>
18848 * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
18849 (cgraph_release_function_body): Likewise.
18850 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
18851 * cgraph.h (cgrpah_node): Rename abstract_and_needed
18852 to used_as_abstract_origin.
18853 * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
18854 symbols used as abstract origins.
18855 * cgraphunit.c (analyze_functions): Update.
18856 * ipa.c (symtab_remove_unreachable_nodes): Recompute
18857 used_as_abstract_origin.
18858 * tree-inline.c (tree_function_versioning): Update
18859 used_as_abstract_origin; be ready for DECL_RESULT and
18860 DECL_ARGUMENTS to be NULL.
18862 * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
18863 for abstract functions.
18864 * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
18867 2013-08-01 Jan Hubicka <jh@suse.cz>
18869 * profile.c (compute_value_histograms): Fix thinko.
18871 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
18873 * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs. Add
18874 aarch-common-protos.h to extra_headers.
18875 (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
18876 * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
18877 * config/aarch64/t-aarch64 (aarch-common.o): Define.
18879 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
18881 * config/aarch64/aarch64.md (define_attr "type"): Delete.
18882 Include "../arm/types.md". Define "type" attribute for all patterns.
18883 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
18886 2013-07-31 Michael Meissner <meissner@linux.vnet.ibm.com>
18888 * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
18889 to support power8 load fusion.
18890 (fusion_gpr_mem_load): Likewise.
18892 * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
18894 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
18895 declarations for power8 load fusion.
18896 (emit_fusion_gpr_load): Likewise.
18898 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
18899 tuning for power8, turn on fusion mode by default. Turn on sign
18900 extending fusion mode if normal fusion mode is on, and we are at
18902 (fusion_gpr_load_p): New function, return true if we can fuse an
18903 addis instruction with a dependent load to a GPR.
18904 (emit_fusion_gpr_load): Emit the instructions for power8 load
18907 * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
18908 (VSX load fusion peepholes): New peepholes to fuse together an
18909 addi instruction with a VSX load instruction.
18911 * config/rs6000/rs6000.md (GPR load fusion peepholes): New
18912 peepholes to fuse an addis instruction with a load to a GPR base
18913 register. If we are supporting sign extending fusions, convert
18914 sign extending loads to zero extending loads and add an explicit
18917 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
18919 * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs. Add
18920 aarch-common-protos.h to extra_headers.
18921 (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
18922 * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
18923 (arm_early_store_addr_dep): Likewise.
18924 (arm_no_early_alu_shift_dep): Likewise.
18925 (arm_no_early_alu_shift_value_dep): Likewise.
18926 (arm_no_early_mul_dep): Likewise.
18927 (arm_no_early_store_addr_dep): Likewise.
18928 (arm_mac_accumulator_is_mul_result): Likewise.
18929 (arm_mac_accumulator_is_result): Likewise.
18930 * config/arm/aarch-common.c: ... here. New file.
18931 * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
18933 (arm_early_store_addr_dep): Likewise.
18934 (arm_no_early_alu_shift_dep): Likewise.
18935 (arm_no_early_alu_shift_value_dep): Likewise.
18936 (arm_no_early_mul_dep): Likewise.
18937 (arm_no_early_store_addr_dep): Likewise.
18938 (arm_mac_accumulator_is_mul_result): Likewise.
18939 (arm_mac_accumulator_is_result): Likewise.
18940 * config/arm/aarch-common-protos.h: ... here. New file.
18941 * config/arm/t-arm (aarch-common.o): Define.
18943 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
18945 * config/arm/arm.md: Include new file "types.md".
18946 (define_attr "type"): Move from here to ...
18947 (define_attr "mul32"): Likewise.
18948 (define_attr "mul64"): Likewise.
18949 * config/arm/types.md: ... here. New file.
18951 2013-07-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
18953 * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
18954 * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
18956 2013-07-31 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18958 * gen-pass-instances.awk: Fix offset of substr().
18960 2013-07-31 David Malcolm <dmalcolm@redhat.com>
18962 * Makefile.in (pass-instances.def): New.
18963 (passes.o): Replace dependency on passes.def with one on
18966 * gen-pass-instances.awk: New.
18968 * passes.c (pass_manager::pass_manager): Use pass-instances.def
18969 rather than passes.def, updating local definition of NEXT_PASS
18970 macro to add an extra NUM parameter (currently unused).
18972 2013-07-30 David Malcolm <dmalcolm@redhat.com>
18974 * Makefile.in (PASS_MANAGER_H): New.
18975 (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
18976 (passes.o): Likewise.
18977 (statistics.o): Likewise.
18978 (cgraphunit.o): Likewise.
18979 (context.o): Depend on PASS_MANAGER_H.
18981 * pass_manager.h: New.
18983 * cgraphunit.c (cgraph_add_new_function): Update for moves
18984 of globals to fields of pass_manager.
18985 (analyze_function): Likewise.
18986 (expand_function): Likewise.
18987 (ipa_passes): Likewise.
18988 (compile): Likewise.
18990 * context.c (context::context): New.
18991 * context.h (context::context): New.
18992 (context::get_passes): New.
18993 (context::passes_): New.
18995 * lto-cgraph.c (input_node): Update for moves of globals to
18996 fields of pass_manager.
18998 * passes.c (all_passes): Remove, in favor of a field of the
18999 same name within the new class pass_manager.
19000 (all_small_ipa_passes): Likewise.
19001 (all_lowering_passes): Likewise.
19002 (all_regular_ipa_passes): Likewise.
19003 (all_late_ipa_passes): Likewise.
19004 (all_lto_gen_passes): Likewise.
19005 (passes_by_id): Likewise.
19006 (passes_by_id_size): Likewise.
19007 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
19008 the new class pass_manager.
19009 (set_pass_for_id): Convert to...
19010 (pass_manager::set_pass_for_id): ...method.
19011 (get_pass_for_id): Convert to...
19012 (pass_manager::get_pass_for_id): ...method.
19013 (register_one_dump_file): Move body of implementation into...
19014 (pass_manager::register_one_dump_file): ...here.
19015 (register_dump_files_1): Convert to...
19016 (pass_manager::register_dump_files_1): ...method.
19017 (register_dump_files): Convert to...
19018 (pass_manager::register_dump_files): ...method.
19019 (create_pass_tab): Update for moves of globals to fields of
19021 (dump_passes): Move body of implementation into...
19022 (pass_manager::dump_passes): ...here.
19023 (register_pass): Move body of implementation into...
19024 (pass_manager::register_pass): ...here.
19025 (init_optimization_passes): Convert into...
19026 (pass_manager::pass_manager): ...constructor for new
19027 pass_manager class, and initialize the pass_lists array.
19028 (check_profile_consistency): Update for moves of globals to
19029 fields of pass_manager.
19030 (dump_profile_report): Move body of implementation into...
19031 (pass_manager::dump_profile_report): ...here.
19032 (ipa_write_summaries_1): Update for moves of pass lists from
19033 being globals to fields of pass_manager.
19034 (ipa_write_optimization_summaries): Likewise.
19035 (ipa_read_summaries): Likewise.
19036 (ipa_read_optimization_summaries): Likewise.
19037 (execute_all_ipa_stmt_fixups): Likewise.
19039 * statistics.c (statistics_fini): Update for moves of globals to
19040 fields of pass_manager.
19042 * toplev.c (general_init): Replace call to
19043 init_optimization_passes with construction of the pass_manager
19046 * tree-pass.h (all_passes): Remove, in favor of a field of the
19047 same name within the new class pass_manager.
19048 (all_small_ipa_passes): Likewise.
19049 (all_lowering_passes): Likewise.
19050 (all_regular_ipa_passes): Likewise.
19051 (all_lto_gen_passes): Likewise.
19052 (all_late_ipa_passes): Likewise.
19053 (passes_by_id): Likewise.
19054 (passes_by_id_size): Likewise.
19055 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
19056 the new class pass_manager.
19057 (get_pass_for_id): Remove.
19059 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
19061 * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
19064 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
19066 * arm.md (mulhi3): New expand pattern.
19068 2013-07-30 Jan Hubicka <jh@suse.cz>
19069 Martin Liska <marxin.liska@gmail.com>
19071 * profile.c (compute_value_histograms): Do not ICE when
19072 there is mismatch only on some counters.
19074 2013-07-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19076 PR rtl-optimization/57637
19077 * function.c (move_insn_for_shrink_wrap): Also check the
19078 GEN set of the LIVE problem for the liveness analysis
19079 if it exists, otherwise give up.
19081 2013-07-29 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
19083 PR tree-optimization/57993
19084 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
19085 replaced statement in the candidate table.
19086 (phi_add_costs): Return infinite cost when the hidden basis does
19087 not dominate all phis on which the candidate is dependent.
19088 (replace_one_candidate): Record replaced statement in the
19091 2013-07-29 Joern Rennecke <joern.rennecke@embecosm.com>
19093 * config/epiphany/epiphany.md (*isub_i+2): New peephole.
19094 (ashlv2si3): New expander.
19095 (*ashlv2si3_i): New define_insn_and_split.
19096 * predicates.md (float_operation): Allow patterns with three
19097 basic sub-patterns.
19099 PR rtl-optimization/58021
19100 * mode-switching.c (create_pre_exit): Always split off preceding
19101 insns if we are not at the basic block head.
19103 2013-07-29 Maciej W. Rozycki <macro@codesourcery.com>
19105 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
19106 (UCLIBC_DYNAMIC_LINKER): New macro.
19107 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
19109 (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
19110 (UCLIBC_DYNAMIC_LINKER32): Undefine macro first. Handle
19112 (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
19113 (UCLIBC_DYNAMIC_LINKERN32): Likewise.
19114 * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
19115 for SF and DF modes. Use ieee_quad_format for TF mode.
19116 * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
19117 * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
19118 (mips_option_override): Handle `-mnan=legacy'.
19119 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
19120 `-mabs=2008' and `-mnan=2008'.
19121 (OPTION_DEFAULT_SPECS): Add "nan" default.
19122 (ASM_SPEC): Handle `-mnan='.
19123 [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
19124 * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
19125 comment accordingly.
19126 (neg<mode>2): Likewise.
19127 * config/mips/mips.opt (mabs, mnan): New options.
19128 * doc/install.texi (Configuration): Document `--with-nan=' option.
19129 * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
19131 (MIPS Options): Document them.
19132 * config.gcc <mips*-*-*>: Handle `--with-nan='.
19133 * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
19134 * configure: Regenerate.
19135 * config.in: Regenerate.
19137 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
19139 * config/i386/i386.md (float post-reload splitters): Do not check
19140 for subregs of SSE registers.
19142 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
19143 H.J. Lu <hongjiu.lu@intel.com>
19147 * config/i386/i386.md (post-reload splitter
19148 to avoid partial SSE reg dependency stalls): New pattern.
19150 2013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
19152 * config/s390/s390.md ("movcc"): Swap load and store instructions.
19154 2013-07-27 Joern Rennecke <joern.rennecke@embecosm.com>
19156 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
19157 Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
19159 2013-07-26 Cary Coutant <ccoutant@google.com>
19161 * dwarf2out.c (die_checksum_ordered): Don't include template
19162 instantiations in signature.
19163 (is_template_parameter): New function.
19164 (is_template_instantiation): New function.
19165 (generate_skeleton_bottom_up): Don't include template instantiations
19167 (generate_skeleton): Likewise.
19168 (break_out_comdat_types): Move recursive call to break out nested
19170 (prune_unused_types_mark_generic_parms_dies): Call
19171 is_template_parameter.
19173 2013-07-26 Ian Bolton <ian.bolton@arm.com>
19175 * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
19176 uses vector registers.
19177 * config/aarch64/iterators.md: Add attributes rtn and vas.
19179 2013-07-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19180 Richard Earnshaw <richard.earnshaw@arm.com>
19182 * combine.c (simplify_comparison): Re-canonicalize operands
19184 * config/arm/arm.md (movcond_addsi): New splitter.
19186 2013-07-25 Sterling Augustine <saugustine@google.com>
19188 * dwarf2out.c (size_of_pubnames): Move code to...
19189 (include_pubname_in_output): ...here. New.
19190 (want_pubnames): Rearrange.
19191 (output_pubnames): Call include_pubname_in_output. Move assertion.
19193 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
19195 * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
19197 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
19200 * doc/extend.texi: Remove obsolete builtins. Fix
19201 typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
19203 2013-07-25 Jan Hubicka <jh@suse.cz>
19205 * cgraph.c (release_function_body): Break out from ...
19206 (cgraph_release_function_body): ... this one; also release DECL_RESULT
19207 and DECL_ARGUMENTS.
19208 * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
19209 old_tree in the map.
19210 (create_specialized_node): Update.
19211 * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
19213 * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
19214 DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
19215 * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
19216 * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
19219 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19221 * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
19222 addsi3_carryin_alt2_<optab>): Correct output template.
19224 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19226 * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
19227 Adjust for arm_restrict_it.
19228 Remove trailing whitespace.
19230 2013-07-25  Mark Kettenis  <kettenis@openbsd.org>
19232 * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
19233 libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
19235 * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
19237 2013-07-25 Vladimir Makarov <vmakarov@redhat.com>
19239 PR rtl-optimization/57960
19240 * lra-constraints.c (process_alt_operands): Use the right mode
19241 when checking strict_low.
19243 2013-07-25 Jan Hubicka <jh@suse.cz>
19245 * lto-symtab.c (lto_cgraph_replace_node): Release function body.
19246 * cgraph.c (cgraph_remove_node): Do not release function body
19247 when in cgraph streaming.
19248 * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
19249 in other partitions are not considered reachable; fix handling of
19252 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19254 * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
19256 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19261 * config/arm/arm.md ("*sibcall_insn): Replace use of
19262 Ss with US. Adjust output for v5 and v4t.
19263 (*sibcall_value_insn): Likewise and loosen predicate on operand0.
19265 * config/arm/constraints.md ("Ss"): Rename to US.
19267 2013-07-25 Terry Guo <terry.guo@arm.com>
19269 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
19270 shift_add/shift_sub0/shift_sub1 RTXs.
19272 2013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
19273 Anton Blanchard <anton@au1.ibm.com>
19275 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
19276 (altivec_vpks<VI_char>ss): Likewise.
19277 (altivec_vpks<VI_char>us): Likewise.
19278 (altivec_vpku<VI_char>us): Likewise.
19279 (altivec_vpku<VI_char>um): Likewise.
19281 2013-07-24 David Malcolm <dmalcolm@redhat.com>
19283 Introduce context class.
19285 * Makefile.in (CONTEXT_H): New.
19286 (OBJS): Add context.o.
19287 (toplev.o): Add CONTEXT_H to dependencies.
19290 * toplev.c (general_init): Create the singleton gcc::context instance.
19296 2013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
19298 PR rtl-optimization/57968
19299 * mode-switching.c (create_pre_exit): Allow instructions that
19300 don't set a return register to need a non-exit mode.
19302 2013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
19303 Anton Blanchard <anton@au1.ibm.com>
19305 * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
19306 operands to vperm for little endian.
19307 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
19308 of lvsl to create the control mask for a vperm for little endian.
19310 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19311 Anton Blanchard <anton@au1.ibm.com>
19313 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
19314 two operands for little-endian.
19316 2013-07-23 Steve Ellcey <sellcey@mips.com>
19318 * config/mips/mips.c (mips_case_values_threshold): New.
19319 (TARGET_CASE_VALUES_THRESHOLD): Define.
19321 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19322 Anton Blanchard <anton@au1.ibm.com>
19324 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
19325 selection of field for vector splat in little endian mode.
19327 2013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
19329 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
19330 expanders to rs6000.md.
19331 (ior<mode>3): Likewise.
19332 (and<mode>3): Likewise.
19333 (one_cmpl<mode>2): Likewise.
19334 (nor<mode>3): Likewise.
19335 (andc<mode>3): Likewise.
19336 (eqv<mode>3): Likewise.
19337 (nand<mode>3): Likewise.
19338 (orc<mode>3): Likewise.
19340 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
19343 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
19344 to split multi-word logical operations.
19345 (rs6000_split_logical_di): Likewise.
19346 (rs6000_split_logical): Likewise.
19348 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
19349 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
19350 and allow TImode operations in 32-bit.
19351 (vsx_and<mode>3_64bit): Likewise.
19352 (vsx_ior<mode>3_32bit): Likewise.
19353 (vsx_ior<mode>3_64bit): Likewise.
19354 (vsx_xor<mode>3_32bit): Likewise.
19355 (vsx_xor<mode>3_64bit): Likewise.
19356 (vsx_one_cmpl<mode>2_32bit): Likewise.
19357 (vsx_one_cmpl<mode>2_64bit): Likewise.
19358 (vsx_nor<mode>3_32bit): Likewise.
19359 (vsx_nor<mode>3_64bit): Likewise.
19360 (vsx_andc<mode>3_32bit): Likewise.
19361 (vsx_andc<mode>3_64bit): Likewise.
19362 (vsx_eqv<mode>3_32bit): Likewise.
19363 (vsx_eqv<mode>3_64bit): Likewise.
19364 (vsx_nand<mode>3_32bit): Likewise.
19365 (vsx_nand<mode>3_64bit): Likewise.
19366 (vsx_orc<mode>3_32bit): Likewise.
19367 (vsx_orc<mode>3_64bit): Likewise.
19369 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
19370 logical types in GPRs.
19372 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
19373 logical insns to rs6000.md, and allow TImode operations in
19375 (altivec_ior<mode>3): Likewise.
19376 (altivec_xor<mode>3): Likewise.
19377 (altivec_one_cmpl<mode>2): Likewise.
19378 (altivec_nor<mode>3): Likewise.
19379 (altivec_andc<mode>3): Likewise.
19381 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
19382 attributes for moving the 128-bit logical operations into
19384 (BOOL_REGS_OUTPUT): Likewise.
19385 (BOOL_REGS_OP1): Likewise.
19386 (BOOL_REGS_OP2): Likewise.
19387 (BOOL_REGS_UNARY): Likewise.
19388 (BOOL_REGS_AND_CR0): Likewise.
19389 (one_cmpl<mode>2): Add support for DI logical operations on
19390 32-bit, splitting the operations to 32-bit.
19391 (anddi3): Likewise.
19392 (iordi3): Likewise.
19393 (xordi3): Likewise.
19394 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
19395 changes to combine the 32/64-bit code, allow logical operations on
19396 TI mode in 32-bit, and to use similar match_operator patterns like
19397 scalar mode uses. Combine the Altivec and VSX code for logical
19398 operations, and move it here.
19399 (ior<mode>3, 128-bit types): Likewise.
19400 (xor<mode>3, 128-bit types): Likewise.
19401 (one_cmpl<mode>3, 128-bit types): Likewise.
19402 (nor<mode>3, 128-bit types): Likewise.
19403 (andc<mode>3, 128-bit types): Likewise.
19404 (eqv<mode>3, 128-bit types): Likewise.
19405 (nand<mode>3, 128-bit types): Likewise.
19406 (orc<mode>3, 128-bit types): Likewise.
19407 (and<mode>3_internal): Likewise.
19408 (bool<mode>3_internal): Likewise.
19409 (boolc<mode>3_internal1): Likewise.
19410 (boolc<mode>3_internal2): Likewise.
19411 (boolcc<mode>3_internal1): Likewise.
19412 (boolcc<mode>3_internal2): Likewise.
19413 (eqv<mode>3_internal1): Likewise.
19414 (eqv<mode>3_internal2): Likewise.
19415 (one_cmpl1<mode>3_internal): Likewise.
19417 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
19419 * config/microblaze/microblaze.c (microblaze_expand_prologue):
19420 Rename flag_stack_usage to flag_stack_usage_info.
19422 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
19424 * config/microblaze/sync.md: New file.
19425 * config/microblaze/microblaze.md: Include sync.md
19426 * config/microblaze/microblaze.c: Add print_operand 'y'.
19427 * config/microblaze/constraints.md: Add memory_contraint
19428 'Q' which is a single register.
19430 2013-07-23 Eric Botcazou <ebotcazou@adacore.com>
19432 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
19434 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
19436 * reload.c (find_reloads): Exit loop once we find this operand
19437 cannot be reloaded somehow for this alternative.
19439 * reload.c (find_reloads): Exit loop once we find a hard register.
19441 * rtlanal.c (computed_jump_p): Exit loop once we find label
19444 * i386.c (ix86_pad_returns): Exit loop after setting replace.
19446 * cfgloopmanip.c (remove_path): Exit loop after setting
19449 * gensupport.c (subst_dup): Avoid loop if code is not
19450 MATCH_DUP nor MATCH_OP_DUP.
19452 2013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
19454 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
19456 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
19458 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
19459 true for SP_REGNUM if mode == ptr_mode.
19460 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
19461 with value R0_REGNUM + 31.
19463 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
19465 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
19466 pad pointer-typed argument downward.
19468 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
19470 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
19471 and __ILP32__ when the ILP32 model is in use.
19473 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
19475 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
19476 (aarch64_load_symref_appropriately): In the case of
19477 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
19478 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
19479 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
19480 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
19481 if 'mode' doesn't equal to 'ptr_mode'.
19482 (aarch64_output_mi_thunk): Add an assertion on the alignment of
19483 'vcall_offset'; change to call aarch64_emit_move differently depending
19484 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
19485 to calculate the upper bound of 'vcall_offset'.
19486 (aarch64_cannot_force_const_mem): Change to also return true if
19488 (aarch64_legitimize_reload_address): In the case of large
19489 displacements, add new local variable 'xmode' and an assertion
19490 based on it; change to use 'xmode' to generate the new rtx and
19492 (aarch64_asm_trampoline_template): Change to generate the template
19493 differently depending on TARGET_ILP32 or not; change to use
19494 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
19495 (aarch64_trampoline_size): Removed.
19496 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
19497 and replace immediate literals with it. Change to use 'ptr_mode'
19498 instead of 'DImode' and call convert_memory_address if the mode
19499 of 'fnaddr' doesn't equal to 'ptr_mode'.
19500 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
19502 (aarch64_elf_asm_destructor): Likewise.
19503 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
19504 on TARGET_ILP32 instead of aarch64_trampoline_size.
19505 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
19506 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
19507 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
19508 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
19509 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
19510 (storewb_pair<GPI:mode>_<P:mode>): ... this.
19511 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
19512 depending on the value of 'mode'.
19513 (add_losym_<mode>): New.
19514 (ldr_got_small_<mode>): New, based on ldr_got_small.
19515 (ldr_got_small): Remove.
19516 (ldr_got_small_sidi): New.
19517 * config/aarch64/iterators.md (P): New.
19518 (PTR): Change to 'ptr_mode' in the condition.
19520 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
19522 * config.gcc (aarch64*-*-*): Support --with-abi.
19523 (aarch64*-*-elf): Support --with-multilib-list.
19524 (aarch64*-*-linux*): Likewise.
19525 (supported_defaults): Add abi to aarch64*-*-*.
19526 * configure.ac: Mention AArch64 for --with-multilib-list.
19527 * configure: Re-generated.
19528 * config/aarch64/biarchilp32.h: New file.
19529 * config/aarch64/biarchlp64.h: New file.
19530 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
19532 (MULTILIB_DEFAULTS): Ditto.
19533 (DRIVER_SELF_SPECS): Ditto.
19534 (ASM_SPEC): Update to also substitute -mabi.
19535 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
19536 file whose name depends on -mabi= and -mbig-endian.
19537 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
19539 (POINTER_SIZE): New define.
19540 (POINTERS_EXTEND_UNSIGNED): Ditto.
19541 (enum aarch64_abi_type): New enumeration tag.
19542 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
19543 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
19544 (TARGET_ILP32): New define.
19545 * config/aarch64/aarch64.opt (mabi): New.
19546 (aarch64_abi): New.
19547 (ilp32, lp64): New values for -mabi.
19548 * config/aarch64/t-aarch64 (comma): New define.
19549 (MULTILIB_OPTIONS): Ditto.
19550 (MULTILIB_DIRNAMES): Ditto.
19551 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
19552 * doc/invoke.texi: Document -mabi for AArch64.
19554 2013-07-23 Georg-Johann Lay <avr@gjlay.de>
19556 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
19558 2013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
19559 Anton Blanchard <anton@au1.ibm.com>
19561 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
19562 endianness when selecting field to splat.
19564 2013-07-22 Eric Christopher <echristo@gmail.com>
19566 * dwarf2out.c (die_odr_checksum): New function to use
19567 CHECKSUM_ macros and ULEB128 for DIE tag.
19568 (generate_type_signature): Use.
19570 2013-07-22 Eric Botcazou <ebotcazou@adacore.com>
19572 * config.gcc (sparc*-*-*): Accept leon3 processor.
19573 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
19574 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
19575 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
19576 * config/sparc/sparc.opt (enum processor_type): Add leon3.
19577 (mfix-ut699): Adjust comment.
19578 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
19579 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
19580 (CPP_CPU_SPEC): Likewise.
19581 (ASM_CPU_SPEC): Likewise.
19582 * config/sparc/sparc.c (leon3_cost): New constant.
19583 (sparc_option_override): Add leon3 support.
19584 (mem_ref): New function.
19585 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
19586 (sparc_do_work_around_errata): Look into the instruction in the delay
19587 slot and adjust accordingly. Add fix for the data cache nullify issues
19588 of the UT699. Change insertion position for the NOP.
19589 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
19590 (leon3_load): New reservation.
19591 (leon_store): Bump latency to 2.
19592 (grfpu): New automaton.
19593 (grfpu_alu): New unit.
19594 (grfpu_ds): Likewise.
19595 (leon_fp_alu): Adjust.
19596 (leon_fp_mult): Delete.
19597 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
19598 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
19599 * config/sparc/sparc.md (cpu): Add leon3.
19600 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
19601 (swapsi): Likewise.
19602 (atomic_test_and_set): Likewise.
19603 (ldstub): Likewise.
19605 2013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
19607 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
19608 default for R5900 targets.
19609 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
19610 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
19611 * config/mips/mips.c (mips_option_override): Report an error for
19612 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
19613 for -march=r5900 -mhard-float.
19615 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
19617 * df-problems.c (can_move_insns_across): Exit loop once we
19618 find a non-fixed, non-global register.
19620 * ipa-pure-const.c (propagate_nothrow): Exit loop after
19623 * omega.c (omega_eliminate_red): Break after setting red_found.
19624 (omega_problem_has_red_equations): Similarly after setting found.
19625 (omega_query_variable): Similarly after setting coupled.
19627 2013-07-22 Marek Polacek <polacek@redhat.com>
19629 * gimplify.c: Don't include gimple.h twice.
19631 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19633 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
19634 instead of TARGET_THUMB1.
19635 (Pz): New constraint.
19636 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
19638 (compare_negsi_si): Likewise.
19639 (compare_addsi2_op0): Likewise.
19640 (compare_addsi2_op1): Likewise.
19641 (addsi3_carryin_<optab>): Likewise.
19642 (addsi3_carryin_alt2_<optab>): Likewise.
19643 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
19644 for arm_restrict_it.
19645 (subsi3_carryin): Likewise.
19646 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
19647 (minmax_arithsi): Disable for arm_restrict_it.
19648 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
19649 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
19650 (satsi_<SAT:code>_shift): Likewise.
19651 (arm_shiftsi3): Add alternative for 16-bit encoding.
19652 (arm32_movhf): Disable for arm_restrict_it.
19653 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
19654 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
19656 2013-07-22 Sofiane Naci <sofiane.naci@arm.com>
19658 * config/arm/arm.md (attribute "insn"): Delete.
19659 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
19660 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
19661 (not_shiftsi): Update for attribute change.
19662 (not_shiftsi_compare0): Likewise.
19663 (not_shiftsi_compare0_scratch): Likewise.
19664 (arm_one_cmplsi2): Likewise.
19665 (thumb1_one_cmplsi2): Likewise.
19666 (notsi_compare0): Likewise.
19667 (notsi_compare0_scratch): Likewise.
19668 (thumb1_movdi_insn): Likewise.
19669 (arm_movsi_insn): Likewise.
19670 (movhi_insn_arch4): Likewise.
19671 (movhi_bytes): Likewise.
19672 (arm_movqi_insn): Likewise.
19673 (thumb1_movqi_insn): Likewise.
19674 (arm32_movhf): Likewise.
19675 (thumb1_movhf): Likewise.
19676 (arm_movsf_soft_insn): Likewise.
19677 (thumb1_movsf_insn): Likewise.
19678 (thumb_movdf_insn): Likewise.
19679 (movsicc_insn): Likewise.
19680 (movsfcc_soft_insn): Likewise.
19681 (and_scc): Likewise.
19682 (cond_move): Likewise.
19683 (if_move_not): Likewise.
19684 (if_not_move): Likewise.
19685 (if_shift_move): Likewise.
19686 (if_move_shift): Likewise.
19687 (if_shift_shift): Likewise.
19688 (if_not_arith): Likewise.
19689 (if_arith_not): Likewise.
19690 (cond_move_not): Likewise.
19691 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
19692 (neon_mov<mode>): Likewise.
19693 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
19694 (thumb2_movsi_vfp): Likewise.
19695 (movsf_vfp): Likewise.
19696 (thumb2_movsf_vfp): Likewise.
19697 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
19699 (cortexa7_older_only): Likewise.
19700 (cortexa7_younger): Likewise.
19701 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
19702 (1020alu_shift_op): Likewise.
19703 (1020alu_shift_reg_op): Likewise.
19704 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
19705 (alu_shift_op): Likewise.
19706 (alu_shift_reg_op): Likewise.
19707 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
19708 (11_alu_shift_op): Likewise.
19709 (11_alu_shift_reg_op): Likewise.
19710 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
19711 (9_alu_shift_reg_op): Likewise.
19712 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
19714 (cortex_a15_alu_shift): Likewise.
19715 (cortex_a15_alu_shift_reg): Likewise.
19716 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
19717 (cortex_a5_alu_shift): Likewise.
19718 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
19720 (cortex_a53_alu_shift): Likewise.
19721 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
19723 (cortex_a7_alu_reg): Likewise.
19724 (cortex_a7_alu_shift): Likewise.
19725 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
19726 (cortex_a8_alu_shift): Likewise.
19727 (cortex_a8_alu_shift_reg): Likewise.
19728 (cortex_a8_mov): Likewise.
19729 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
19730 (cortex_a9_dp_shift): Likewise.
19731 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
19732 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
19733 (cortex_r4_mov): Likewise.
19734 (cortex_r4_alu_shift): Likewise.
19735 (cortex_r4_alu_shift_reg): Likewise.
19736 * config/arm/fa526.md (526_alu_op): Update for attribute change.
19737 (526_alu_shift_op): Likewise.
19738 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
19739 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
19740 (626te_alu_shift_op): Likewise.
19741 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
19742 (726te_alu_op): Likewise.
19743 (726te_alu_shift_op): Likewise.
19744 (726te_alu_shift_reg_op): Likewise.
19745 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
19746 (mp626_alu_shift_op): Likewise.
19747 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
19748 (pj4_alu_e1_conds): Likewise.
19749 (pj4_alu): Likewise.
19750 (pj4_alu_conds): Likewise.
19751 (pj4_shift): Likewise.
19752 (pj4_shift_conds): Likewise.
19753 (pj4_alu_shift): Likewise.
19754 (pj4_alu_shift_conds): Likewise.
19756 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19758 * config/arm/predicates.md (shiftable_operator_strict_it):
19760 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
19761 Disable cond_exec version for arm_restrict_it.
19762 (thumb2_smaxsi3): Convert to generate cond_exec.
19763 (thumb2_sminsi3): Likewise.
19764 (thumb32_umaxsi3): Likewise.
19765 (thumb2_uminsi3): Likewise.
19766 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
19767 (thumb2_neg_abssi2): Likewise.
19768 (thumb2_mov_scc): Add alternative for 16-bit encoding.
19769 (thumb2_movsicc_insn): Adjust alternatives.
19770 (thumb2_mov_negscc): Disable for arm_restrict_it.
19771 (thumb2_mov_negscc_strict_it): New pattern.
19772 (thumb2_mov_notscc_strict_it): New pattern.
19773 (thumb2_mov_notscc): Disable for arm_restrict_it.
19774 (thumb2_ior_scc): Likewise.
19775 (thumb2_ior_scc_strict_it): New pattern.
19776 (thumb2_cond_move): Adjust for arm_restrict_it.
19777 (thumb2_cond_arith): Disable for arm_restrict_it.
19778 (thumb2_cond_arith_strict_it): New pattern.
19779 (thumb2_cond_sub): Adjust for arm_restrict_it.
19780 (thumb2_movcond): Likewise.
19781 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
19782 (thumb2_zero_extendhisi2_v6): Likewise.
19783 (thumb2_zero_extendqisi2_v6): Likewise.
19784 (orsi_notsi_si): Likewise.
19785 (orsi_not_shiftsi_si): Likewise.
19787 2013-07-22 Georg-Johann Lay <avr@gjlay.de>
19789 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
19790 instruction sequence is 1 byte shorter.
19792 2013-07-22 Uros Bizjak <ubizjak@gmail.com>
19794 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
19795 it is not needed after split.
19797 2013-07-20 Iain Sandoe <iain@codesourcery.com>
19800 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
19801 second label for nonlocal goto receivers. Don't output pic base labels
19802 unless we're producing PIC; mark that action unreachable().
19803 (ix86_save_reg): If the function contains a nonlocal label, save the
19805 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
19806 * config/darwin.c (emitted_pic_label_num): New GTY.
19807 (update_pic_label_number_if_needed): New.
19808 (machopic_output_function_base_name): Adjust for nonlocal receiver
19810 (machopic_should_output_picbase_label): New.
19811 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
19812 (nonlocal_goto_receiver): New insn and split.
19814 2013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
19816 * config/aarch64/aarch64-builtins.c
19817 (aarch64_fold_builtin): Fold abs in all modes.
19818 * config/aarch64/aarch64-simd-builtins.def
19819 (abs): Enable for all modes.
19820 * config/aarch64/arm_neon.h
19821 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
19822 (vabs_f64): Add missing intrinsic.
19824 2013-07-19 Ian Bolton <ian.bolton@arm.com>
19826 * config/aarch64/arm_neon.h (vabs_s64): New function
19828 2013-07-19 Georg-Johann Lay <avr@gjlay.de>
19831 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
19832 * config/avr/avr.md (adjust_len): Add `round'.
19833 * config/avr/avr-protos.h (avr_out_round): New prototype.
19834 (avr_out_plus): Add `out_label' argument.
19835 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
19836 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
19837 Handle the case where `insn' is just a pattern.
19838 (avr_out_bitop): Handle the case where `insn' is just a pattern.
19839 (avr_out_round): New function.
19840 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
19842 2013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
19844 * config/microblaze/microblaze.c (microblaze_expand_prologue):
19845 Add check for flag_stack_usage to handle -fstack-usage support
19847 2013-07-18 Pat Haugen <pthaugen@us.ibm.com>
19849 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
19850 interaction for new Power8 flags and VSX.
19852 2013-07-18 Sriraman Tallam <tmsriram@google.com>
19854 PR middle-end/57698
19855 * tree-inline.c (expand_call_inline): Emit errors during
19856 early_inlining only if optimization is not turned on.
19858 2013-07-18 David Malcolm <dmalcolm@redhat.com>
19862 * passes.c (init_optimization_passes): Move the construction of
19863 the pass hierarchy into a new passes.def file.
19865 * Makefile.in (passes.o): Add dependency on passes.def.
19867 2013-07-18 David Malcolm <dmalcolm@redhat.com>
19869 * passes.c (init_optimization_passes): Introduce macros for
19870 constructing the tree of passes (INSERT_PASSES_AFTER,
19871 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
19872 TERMINATE_PASS_LIST).
19874 2013-07-18 Vladimir Makarov <vmakarov@redhat.com>
19875 Wei Mi <wmi@google.com>
19877 PR rtl-optimization/57878
19878 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
19880 (reload_pseudo_compare_func): Check nregs first for reload
19883 2013-07-18 David Malcolm <dmalcolm@redhat.com>
19885 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
19887 2013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
19889 * read-rtl.c (validate_const_int): Once an invalid character is
19890 seen, quit the loop.
19892 * gengtype.c (write_roots): Similarly once we find the "deletable"
19893 or "if_marked" option.
19895 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
19897 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
19898 "xtab" and "sat". Move value "clz" from here to ...
19899 (attriubte "type"): ... here.
19900 (satsi_<SAT:code>): Delete "insn" attribute.
19901 (satsi_<SAT:code>_shift): Likewise.
19902 (arm_zero_extendqisi2addsi): Likewise.
19903 (arm_extendqisi2addsi): Likewise.
19904 (clzsi2): Update for attribute changes.
19905 (rbitsi2): Likewise.
19906 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
19908 (arm_usatsihi): Likewise.
19909 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
19911 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
19913 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
19914 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
19915 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
19916 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
19917 in alphabetical order.
19918 (attribute "core_cycles"): Update for attribute changes.
19919 (arm_addsi3): Likewise.
19920 (addsi3_compare0): Likewise.
19921 (addsi3_compare0_scratch): Likewise.
19922 (addsi3_compare_op1): Likewise.
19923 (addsi3_compare_op2): Likewise.
19924 (compare_addsi2_op0): Likewise.
19925 (compare_addsi2_op1): Likewise.
19926 (addsi3_carryin_shift_<optab>): Likewise.
19927 (subsi3_carryin_shift): Likewise.
19928 (rsbsi3_carryin_shift): Likewise.
19929 (arm_subsi3_insn): Likewise.
19930 (subsi3_compare0): Likewise.
19931 (subsi3_compare): Likewise.
19932 (arm_andsi3_insn): Likewise.
19933 (thumb1_andsi3_insn): Likewise.
19934 (andsi3_compare0): Likewise.
19935 (andsi3_compare0_scratch): Likewise.
19936 (zeroextractsi_compare0_scratch
19937 (andsi_not_shiftsi_si): Likewise.
19938 (iorsi3_insn): Likewise.
19939 (iorsi3_compare0): Likewise.
19940 (iorsi3_compare0_scratch): Likewise.
19941 (arm_xorsi3): Likewise.
19942 (thumb1_xorsi3_insn): Likewise.
19943 (xorsi3_compare0): Likewise.
19944 (xorsi3_compare0_scratch): Likewise.
19945 (satsi_<SAT:code>_shift): Likewise.
19947 (arm_shiftsi3): Likewise.
19948 (shiftsi3_compare0): Likewise.
19949 (not_shiftsi): Likewise.
19950 (not_shiftsi_compare0): Likewise.
19951 (not_shiftsi_compare0_scratch): Likewise.
19952 (arm_one_cmplsi2): Likewise.
19953 (thumb_one_complsi2): Likewise.
19954 (notsi_compare0): Likewise.
19955 (notsi_compare0_scratch): Likewise.
19956 (thumb1_zero_extendhisi2): Likewise.
19957 (arm_zero_extendhisi2): Likewise.
19958 (arm_zero_extendhisi2_v6): Likewise.
19959 (arm_zero_extendhisi2addsi): Likewise.
19960 (thumb1_zero_extendqisi2): Likewise.
19961 (thumb1_zero_extendqisi2_v6): Likewise.
19962 (arm_zero_extendqisi2): Likewise.
19963 (arm_zero_extendqisi2_v6): Likewise.
19964 (arm_zero_extendqisi2addsi): Likewise.
19965 (thumb1_extendhisi2): Likewise.
19966 (arm_extendhisi2): Likewise.
19967 (arm_extendhisi2_v6): Likewise.
19968 (arm_extendqisi): Likewise.
19969 (arm_extendqisi_v6): Likewise.
19970 (arm_extendqisi2addsi): Likewise.
19971 (thumb1_extendqisi2): Likewise.
19972 (thumb1_movdi_insn): Likewise.
19973 (arm_movsi_insn): Likewise.
19974 (movsi_compare0): Likewise.
19975 (movhi_insn_arch4): Likewise.
19976 (movhi_bytes): Likewise.
19977 (arm_movqi_insn): Likewise.
19978 (thumb1_movqi_insn): Likewise.
19979 (arm32_movhf): Likewise.
19980 (thumb1_movhf): Likewise.
19981 (arm_movsf_soft_insn): Likewise.
19982 (thumb1_movsf_insn): Likewise.
19983 (movdf_soft_insn): Likewise.
19984 (thumb_movdf_insn): Likewise.
19985 (arm_cmpsi_insn): Likewise.
19986 (cmpsi_shiftsi): Likewise.
19987 (cmpsi_shiftsi_swp): Likewise.
19988 (arm_cmpsi_negshiftsi_si): Likewise.
19989 (movsicc_insn): Likewise.
19990 (movsfcc_soft_insn): Likewise.
19991 (arith_shiftsi): Likewise.
19992 (arith_shiftsi_compare0
19993 (arith_shiftsi_compare0_scratch
19994 (sub_shiftsi): Likewise.
19995 (sub_shiftsi_compare0
19996 (sub_shiftsi_compare0_scratch
19997 (and_scc): Likewise.
19998 (cond_move): Likewise.
19999 (if_plus_move): Likewise.
20000 (if_move_plus): Likewise.
20001 (if_move_not): Likewise.
20002 (if_not_move): Likewise.
20003 (if_shift_move): Likewise.
20004 (if_move_shift): Likewise.
20005 (if_shift_shift): Likewise.
20006 (if_not_arith): Likewise.
20007 (if_arith_not): Likewise.
20008 (cond_move_not): Likewise.
20009 (thumb1_ashlsi3): Set type attribute.
20010 (thumb1_ashrsi3): Likewise.
20011 (thumb1_lshrsi3): Likewise.
20012 (thumb1_rotrsi3): Likewise.
20013 (shiftsi3_compare0_scratch): Likewise.
20014 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
20015 (neon_mov<mode>): Likewise.
20016 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
20018 (thumb2_movsi_insn): Likewise.
20019 (thumb2_cmpsi_neg_shiftsi): Likewise.
20020 (thumb2_extendqisi_v6): Likewise.
20021 (thumb2_zero_extendhisi2_v6): Likewise.
20022 (thumb2_zero_extendqisi2_v6): Likewise.
20023 (thumb2_shiftsi3_short): Likewise.
20024 (thumb2_addsi3_compare0_scratch): Likewise.
20025 (orsi_not_shiftsi_si): Likewise.
20026 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
20027 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
20029 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
20030 (1020alu_shift_op): Likewise.
20031 (1020alu_shift_reg_op): Likewise.
20032 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
20033 (alu_shift_op): Likewise.
20034 (alu_shift_reg_op): Likewise.
20035 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
20036 (11_alu_shift_op): Likewise.
20037 (11_alu_shift_reg_op): Likewise.
20038 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
20039 (9_alu_shift_reg_op): Likewise.
20040 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
20042 (cortex_a15_alu_shift): Likewise.
20043 (cortex_a15_alu_shift_reg): Likewise.
20044 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
20046 (cortex_a5_alu_shift): Likewise.
20047 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
20049 (cortex_a53_alu_shift): Likewise.
20050 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
20052 (cortex_a7_alu_reg): Likewise.
20053 (cortex_a7_alu_shift): Likewise.
20054 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
20056 (cortex_a8_alu_shift): Likewise.
20057 (cortex_a8_alu_shift_reg): Likewise.
20058 (cortex_a8_mov): Likewise.
20059 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
20060 (cortex_a9_dp_shift): Likewise.
20061 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
20063 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
20065 (cortex_r4_mov): Likewise.
20066 (cortex_r4_alu_shift): Likewise.
20067 (cortex_r4_alu_shift_reg): Likewise.
20068 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
20069 (526_alu_shift_op): Likewise.
20070 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
20071 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
20072 (626te_alu_shift_op): Likewise.
20073 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
20074 (726te_alu_op): Likewise.
20075 (726te_alu_shift_op): Likewise.
20076 (726te_alu_shift_reg_op): Likewise.
20077 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
20078 (mp626_alu_shift_op): Likewise.
20079 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
20080 (pj4_alu_e1_conds): Likewise.
20081 (pj4_alu): Likewise.
20082 (pj4_alu_conds): Likewise.
20083 (pj4_shift): Likewise.
20084 (pj4_shift_conds): Likewise.
20085 (pj4_alu_shift): Likewise.
20086 (pj4_alu_shift_conds): Likewise.
20087 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
20089 (cortexa7_older_only): Likewise.
20090 (cortexa7_younger): Likewise.
20092 2013-07-18 David Malcolm <dmalcolm@redhat.com>
20094 * ipa-pure-const.c (generate_summary): Rename to...
20095 (pure_const_generate_summary): ... this.
20097 2013-07-17 Iain Sandoe <iain@codesourcery.com>
20099 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
20101 2013-07-17 Yvan Roux <yvan.roux@linaro.org>
20104 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
20107 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20109 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
20110 enabled without -march=zEC12.
20111 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
20114 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
20116 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
20117 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
20118 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
20119 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
20120 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
20121 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
20122 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
20124 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
20125 and ISA_HAS_NMADD3_NMSUB3.
20126 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
20127 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
20128 (nmsub4<mode>, nmsub3<mode>): Likewise.
20129 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
20131 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
20133 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
20134 TARGET_MIPS5400 checking.
20136 2013-07-16 Jakub Jelinek <jakub@redhat.com>
20137 Peter Bergner <bergner@vnet.ibm.com>
20139 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
20140 registers in the comment.
20141 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
20142 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
20143 rather than FIRST_PSEUDO_REGISTERS.
20145 2013-07-16 Peter Bergner <bergner@vnet.ibm.com>
20147 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
20148 enable extra ISA flags with TARGET_HTM.
20150 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
20152 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
20155 2013-07-15 Cong Hou <congh@google.com>
20157 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
20158 in compare function for sorting.
20160 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
20162 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
20163 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
20164 * config/rs6000/rs6000.opt: Add -mhtm option.
20165 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
20166 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
20167 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
20168 __HTM__ if the HTM instructions are available.
20169 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
20170 htm_spr_reg_operand): New define_predicates.
20171 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
20172 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
20174 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
20175 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
20176 HTM builtin functions.
20177 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
20178 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
20179 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
20180 (rs6000_builtin_mask_calculate): Likewise.
20181 (rs6000_option_override_internal): Likewise.
20182 (bdesc_htm): Add new HTM builtin support.
20183 (htm_spr_num): New function.
20184 (htm_spr_regno): Likewise.
20185 (rs6000_htm_spr_icode): Likewise.
20186 (htm_expand_builtin): Likewise.
20187 (htm_init_builtins): Likewise.
20188 (rs6000_expand_builtin): Add support for HTM builtin functions.
20189 (rs6000_init_builtins): Likewise.
20190 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
20192 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
20193 (TARGET_HTM, MASK_HTM): Define macros.
20194 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
20195 (FIXED_REGISTERS): Likewise.
20196 (CALL_USED_REGISTERS): Likewise.
20197 (CALL_REALLY_USED_REGISTERS): Likewise.
20198 (REG_ALLOC_ORDER): Likewise.
20199 (enum reg_class): Likewise.
20200 (REG_CLASS_NAMES): Likewise.
20201 (REG_CLASS_CONTENTS): Likewise.
20202 (REGISTER_NAMES): Likewise.
20203 (ADDITIONAL_REGISTER_NAMES): Likewise.
20204 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
20205 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
20206 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
20207 * config/rs6000/htm.md: New file.
20208 * config/rs6000/htmintrin.h: New file.
20209 * config/rs6000/htmxlintrin.h: New file.
20211 2013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
20213 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
20214 Define SYMBOL_TINY_GOT, update comment.
20215 * config/aarch64/aarch64.c
20216 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
20217 (aarch64_expand_mov_immediate): Likewise.
20218 (aarch64_print_operand): Likewise.
20219 (aarch64_classify_symbol): Likewise.
20220 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
20221 (ldr_got_tiny): Define.
20223 2013-07-13 Tobias Grosser <tobias@grosser.es>
20225 PR tree-optimization/54094
20226 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
20227 scheduling dimension for the parallelism check from the polyhedral
20228 information in the AST.
20229 * graphite-dependences.c (carries_deps): Do not assume the schedule is
20232 2013-07-13 Jason Merrill <jason@redhat.com>
20234 * print-tree.c (debug_vec_tree): Use debug_raw.
20235 (debug_raw (vec<tree, va_gc> &)): New.
20236 (debug_raw (vec<tree, va_gc> *)): New.
20237 * tree.h: Declare them.
20239 2013-07-13 Bin Cheng <bin.cheng@arm.com>
20241 * ifcvt.c (ifcvt_after_combine): New static variable.
20242 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
20244 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
20245 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
20246 rest_of_handle_if_after_reload): Pass new argument for if_convert.
20248 2013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
20250 * config/mips/mips.c (mips_expand_call): Remove empty statement.
20252 2013-07-12 Michael Matz <matz@suse.de>
20254 PR middle-end/55771
20255 * convert.c (convert_to_real): Reject non-float inner types.
20257 2013-07-12 Tejas Belagod <tejas.belagod@arm.com>
20259 * config/aarch64/aarch64-protos.h
20260 (aarch64_simd_immediate_valid_for_move): Remove.
20261 * config/aarch64/aarch64.c (simd_immediate_info): New member.
20262 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
20264 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
20266 2013-07-11 Steve Ellcey <sellcey@mips.com>
20268 * config/mips/mips.c (mips_conditional_register_usage): Do not
20269 use t[0-7] registers in MIPS16 mode when optimizing for size.
20271 2013-07-11 Sriraman Tallam <tmsriram@google.com>
20273 * config/i386/i386.c (dispatch_function_versions): Fix array
20274 indexing of function_version_info to match actual_versions.
20276 2013-07-11 Teresa Johnson <tejohnson@google.com>
20278 * vec.h (struct va_gc): Move release out-of-line.
20279 (va_gc::release): Call ggc_free on released vec.
20281 2013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20283 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
20284 Require GOT register as additional operand in UNSPEC.
20285 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
20286 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
20287 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
20288 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
20289 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
20290 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
20291 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
20293 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
20296 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
20297 name seen by assembler/linker rather if available.
20299 2013-07-11 Andreas Schwab <schwab@suse.de>
20301 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
20303 2013-07-10 Vladimir Makarov <vmakarov@redhat.com>
20305 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
20307 2013-07-10 Joseph Myers <joseph@codesourcery.com>
20309 * doc/tm.texi.in: Move hook documentation to ....
20310 * target.def: ... here.
20312 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
20313 text on @hook line.
20314 * doc/tm.texi: Regenerate.
20316 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
20319 * doc/invoke.texi: Document -Wconditionally-supported.
20321 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
20324 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
20327 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
20330 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
20331 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
20332 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
20333 Remove duplicate devices.
20334 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
20335 * config/avr/t-multilib: Regenerate.
20336 * config/avr/avr-tables.opt: Regenerate.
20337 * doc/avr-mmcu.texi: Regenerate.
20339 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
20342 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
20344 2013-07-10 Graham Stott <graham.stott@btinternet.com>
20346 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
20347 the cost of MULT when optimizing for size.
20349 2013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20351 * config/cr16/cr16-protos.h: Don't include target.h.
20353 2013-07-09 Joseph Myers <joseph@codesourcery.com>
20355 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
20356 adjust register size for TDmode and TFmode for VSX registers.
20358 2013-07-08 Kai Tietz <ktietz@redhat.com>
20361 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
20362 hook_bool_const_tree_true.
20364 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20366 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
20367 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
20368 * config/s390/s390.md: Define FPR*_REGNUM constants.
20369 Fix FPR2_REGNUM constant (18 -> 17).
20370 ("*trunc<BFP:mode><DFP_ALL:mode>2")
20371 ("*trunc<DFP_ALL:mode><BFP:mode>2")
20372 ("trunc<BFP:mode><DFP_ALL:mode>2")
20373 ("trunc<DFP_ALL:mode><BFP:mode>2")
20374 ("*extend<BFP:mode><DFP_ALL:mode>2")
20375 ("*extend<DFP_ALL:mode><BFP:mode>2")
20376 ("extend<BFP:mode><DFP_ALL:mode>2")
20377 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
20380 2013-07-08 Graham Stott <graham.stott@btinternet.com>
20382 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
20384 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20386 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
20387 and cfun_fpr_bit_p to cfun_fpr_save_p.
20388 (s390_frame_area, s390_register_info, s390_frame_info)
20389 (s390_emit_prologue, s390_emit_epilogue)
20390 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
20392 * config/s390/s390.h: Define *_REGNUM macros for floating point
20395 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
20397 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
20399 2013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
20401 PR rtl-optimization/57786
20402 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
20403 and break out of the loop when it is set to false.
20405 2013-07-08 Jakub Jelinek <jakub@redhat.com>
20408 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
20409 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
20410 (const_int 63)) 0)).
20411 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
20412 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
20413 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
20415 PR rtl-optimization/57829
20416 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
20417 mask bits outside of mode are just sign-extension from mode to HWI.
20419 2013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
20421 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
20422 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
20423 adjust_address instead of change_address to keep info about alignment.
20424 (emit_strmov): Remove.
20425 (emit_memmov): New function.
20426 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
20427 (expand_movmem_epilogue): Likewise and return updated rtx for
20429 (expand_constant_movmem_prologue): Likewise and return updated rtx for
20430 destination and source.
20431 (decide_alignment): Refactor, handle vector_loop.
20432 (ix86_expand_movmem): Likewise.
20433 (ix86_expand_setmem): Likewise.
20434 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
20436 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
20438 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
20439 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
20441 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
20443 * config/i386/sse.md (sse_movlhps): Change alternative 3
20444 of operand 2 to "m".
20446 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
20449 * config/i386/sse.md (iptr): New mode attribute.
20450 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
20451 (<sse>_vm<plusminus_insn><mode>3): Ditto.
20452 (<sse>_vmmul<mode>3): Ditto.
20453 (<sse>_vmdiv<mode>3): Ditto.
20454 (sse_vmrcpv4sf2): Ditto.
20455 (<sse>_vmsqrt<mode>2): Ditto.
20456 (sse_vmrsqrtv4sf2): Ditto.
20457 (<sse>_vm<code><mode>3): Ditto.
20458 (avx_vmcmp<mode>3): Ditto.
20459 (<sse>_vmmaskcmp<mode>3): Ditto.
20460 (<sse>_comi): Ditto.
20461 (<sse>_ucomi): Ditto.
20462 (*xop_vmfrcz_<mode>): Ditto.
20463 (*fmai_fmadd_<mode>): Ditto.
20464 (*fmai_fmsub_<mode>): Ditto.
20465 (*fmai_fnmadd_<mode>): Ditto.
20466 (*fmai_fnmsub_<mode>): Ditto.
20467 (*fma4i_vmfmadd_<mode>): Ditto.
20468 (*fma4i_vmfmsub_<mode>): Ditto.
20469 (*fma4i_vmfnmadd_<mode>): Ditto.
20470 (*fma4i_vmfnmsub_<mode>): Ditto.
20471 (*xop_vmfrcz_<mode>): Ditto.
20472 (sse_cvtps2pi): Ditto.
20473 (sse_cvttps2pi): Ditto.
20474 (sse_cvtss2si): Ditto.
20475 (sse_cvtss2si_2): Ditto.
20476 (sse_cvtss2siq_2): Ditto.
20477 (sse_cvttss2si): Ditto.
20478 (sse_cvttss2siq): Ditto.
20479 (sse_cvtsd2si): Ditto.
20480 (sse_cvtsd2si_2): Ditto.
20481 (sse_cvtsd2siq_2): Ditto.
20482 (sse_cvttsd2si): Ditto.
20483 (sse_cvttsd2siq): Ditto.
20484 (sse_cvtsd2ss): Ditto.
20485 (sse_cvtss2sd): Ditto.
20486 (avx2_pbroadcast<mode>): Ditto.
20487 (avx2_pbroadcast<mode>_1): Ditto.
20488 (*avx_vperm_broadcast_v4sf): Ditto.
20490 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
20491 (sse_movlhps): Ditto.
20492 (sse_storehps): Ditto.
20493 (sse_loadhps): Ditto.
20494 (sse_storelps): Ditto.
20495 (sse_loadlps): Ditto.
20496 (*vec_concatv4sf): Ditto.
20497 (*vec_interleave_highv2df): Ditto.
20498 (*vec_interleave_lowv2df): Ditto.
20499 (*vec_extractv2df_1_sse): Ditto.
20500 (*vec_extractv2df_0_sse): Ditto.
20501 (sse2_storelpd): Ditto.
20502 (sse2_loadlpd): Ditto.
20503 (sse2_movsd): Ditto.
20504 (*vec_concatv4si): Ditto.
20505 (vec_concatv2di): Ditto.
20507 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
20508 for Intel asm dialect.
20509 (mmx_punpcklwd): Ditto.
20510 (mmx_punpckldq): Ditto.
20512 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
20513 for intel assembler dialect.
20515 2013-07-06 Jakub Jelinek <jakub@redhat.com>
20518 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
20519 for BUILT_IN_C{LZ,LRSB}*.
20520 * tree.h (CASE_INT_FN): Add FN##IMAX case.
20521 * tree-vrp.c (extract_range_basic): Handle
20522 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
20523 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
20524 fall thru to code calling set_value*.
20525 * builtins.c (expand_builtin): Remove *IMAX cases.
20526 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
20527 if width is bigger than 2*HWI.
20529 2013-07-05 Vladimir Makarov <vmakarov@redhat.com>
20531 PR rtl-optimization/55342
20532 * lra-int.h (lra_subreg_reload_pseudos): New.
20533 * lra.c: Add undoing optional reloads to the block diagram.
20534 (lra_subreg_reload_pseudos): New.
20535 (lra_optional_reload_pseudos): Change comments.
20536 (lra): Init and clear lra_subreg_reload_pseudos. Clear
20537 lra_optional_reload_pseudos after undo transformations.
20538 * lra-assigns.c (pseudo_prefix_title): New.
20539 (lra_setup_reg_renumber): Use it.
20540 (spill_for): Ditto. Check subreg reload pseudos too.
20541 (assign_by_spills): Consider subreg reload pseudos too.
20542 * lra-constraints.c (simplify_operand_subreg): Use
20543 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
20544 (curr_insn_transform): Recognize and do optional reloads.
20545 (undo_optional_reloads): New.
20546 (lra_undo_inheritance): Call undo_optional_reloads.
20548 2013-07-05 Thomas Quinot <quinot@adacore.com>
20550 * tree-complex.c (expand_complex_operations_1): Fix typo.
20552 2013-07-04 Tejas Belagod <tejas.belagod@arm.com>
20554 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
20555 (tune_params): New member 'const vec_costs'.
20556 * config/aarch64/aarch64.c (generic_vector_cost): New.
20557 (generic_tunings): New member 'generic_vector_cost'.
20558 (aarch64_builtin_vectorization_cost): New.
20559 (aarch64_add_stmt_cost): New.
20560 (TARGET_VECTORIZE_ADD_STMT_COST): New.
20561 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
20563 2013-07-03 Jakub Jelinek <jakub@redhat.com>
20566 * config/i386/predicates.md (vsib_address_operand): Disallow
20567 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
20569 2013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
20571 PR middle-end/55030
20572 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
20573 expand_builtin_setjmp_receiver.
20574 (expand_label): Adjust, call expand_builtin_setjmp_receiver
20575 with NULL for the label parameter.
20576 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
20577 the frame-pointer. Adjust comments.
20578 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
20579 only if LABEL is non-NULL.
20581 2013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
20583 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
20584 (ARM_ABI_AAPCS64): Ditto.
20586 (ARM_DEFAULT_ABI): Ditto.
20588 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
20590 * config/aarch64/aarch64-builtins.c
20591 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
20592 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
20594 * config/aarch64/aarch64-simd.md
20595 (aarch64_ld1<VALL:mode>): New.
20596 (aarch64_st1<VALL:mode>): Likewise.
20597 * config/aarch64/arm_neon.h
20598 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
20600 2013-07-02 Sriraman Tallam <tmsriram@google.com>
20602 * config/i386/i386.c (gate_insert_vzeroupper): Check if
20604 (ix86_option_override_internal):Turn on all -mavx target flags by
20605 default as they are dependent on AVX anyway.
20607 2013-07-02 Cary Coutant <ccoutant@google.com>
20609 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
20610 deterministic hash.
20611 (loc_checksum_ordered): Likewise.
20612 (hash_loc_operands): Remove inline keyword.
20614 2013-07-02 Jakub Jelinek <jakub@redhat.com>
20616 PR tree-optimization/57741
20617 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
20618 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
20619 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
20620 Allow REAL_CST step_exprs if flag_associative_math.
20621 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
20623 2013-07-02 Ian Bolton <ian.bolton@arm.com>
20625 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
20627 2013-07-02 Ian Bolton <ian.bolton@arm.com>
20629 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
20631 2013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20633 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
20635 (iorsi3_insn): Likewise.
20636 (arm_xorsi3): Likewise.
20638 2013-07-01 Sofiane Naci <sofiane.naci@arm.com>
20640 * arm.md (attribute "wtype"): Delete. Move attribute values from here
20642 (attribute "type"): ... here, and prefix with "wmmx_".
20643 (attribute "core_cycles"): Update for attribute changes.
20644 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
20645 (tbcstv4hi): Likewise.
20646 (tbcstv2si): Likewise.
20647 (iwmmxt_iordi3): Likewise.
20648 (iwmmxt_xordi3): Likewise.
20649 (iwmmxt_anddi3): Likewise.
20650 (iwmmxt_nanddi3): Likewise.
20651 (iwmmxt_arm_movdi): Likewise.
20652 (iwmmxt_movsi_insn): Likewise.
20653 (mov<mode>_internal): Likewise.
20654 (and<mode>3_iwmmxt): Likewise.
20655 (ior<mode>3_iwmmxt): Likewise.
20656 (xor<mode>3_iwmmxt): Likewise.
20657 (add<mode>3_iwmmxt): Likewise.
20658 (ssaddv8qi3): Likewise.
20659 (ssaddv4hi3): Likewise.
20660 (ssaddv2si3): Likewise.
20661 (usaddv8qi3): Likewise.
20662 (usaddv4hi3): Likewise.
20663 (usaddv2si3): Likewise.
20664 (sub<mode>3_iwmmxt): Likewise.
20665 (sssubv8qi3): Likewise.
20666 (sssubv4hi3): Likewise.
20667 (sssubv2si3): Likewise.
20668 (ussubv8qi3): Likewise.
20669 (ussubv4hi3): Likewise.
20670 (ussubv2si3): Likewise.
20671 (mulv4hi3_iwmmxt): Likewise.
20672 (smulv4hi3_highpart): Likewise.
20673 (umulv4hi3_highpart): Likewise.
20674 (iwmmxt_wmacs): Likewise.
20675 (iwmmxt_wmacsz): Likewise.
20676 (iwmmxt_wmacu): Likewise.
20677 (iwmmxt_wmacuz): Likewise.
20678 (iwmmxt_clrdi): Likewise.
20679 (iwmmxt_clrv8qi): Likewise.
20680 (iwmmxt_clr4hi): Likewise.
20681 (iwmmxt_clr2si): Likewise.
20682 (iwmmxt_uavgrndv8qi3): Likewise.
20683 (iwmmxt_uavgrndv4hi3): Likewise.
20684 (iwmmxt_uavgv8qi3): Likewise.
20685 (iwmmxt_uavgv4hi3): Likewise.
20686 (iwmmxt_tinsrb): Likewise.
20687 (iwmmxt_tinsrh): Likewise.
20688 (iwmmxt_tinsrw): Likewise.
20689 (iwmmxt_textrmub): Likewise.
20690 (iwmmxt_textrmsb): Likewise.
20691 (iwmmxt_textrmuh): Likewise.
20692 (iwmmxt_textrmsh): Likewise.
20693 (iwmmxt_textrmw): Likewise.
20694 (iwmxxt_wshufh): Likewise.
20695 (eqv8qi3): Likewise.
20696 (eqv4hi3): Likewise.
20697 (eqv2si3): Likewise.
20698 (gtuv8qi3): Likewise.
20699 (gtuv4hi3): Likewise.
20700 (gtuv2si3): Likewise.
20701 (gtv8qi3): Likewise.
20702 (gtv4hi3): Likewise.
20703 (gtv2si3): Likewise.
20704 (smax<mode>3_iwmmxt): Likewise.
20705 (umax<mode>3_iwmmxt): Likewise.
20706 (smin<mode>3_iwmmxt): Likewise.
20707 (umin<mode>3_iwmmxt): Likewise.
20708 (iwmmxt_wpackhss): Likewise.
20709 (iwmmxt_wpackwss): Likewise.
20710 (iwmmxt_wpackdss): Likewise.
20711 (iwmmxt_wpackhus): Likewise.
20712 (iwmmxt_wpackwus): Likewise.
20713 (iwmmxt_wpackdus): Likewise.
20714 (iwmmxt_wunpckihb): Likewise.
20715 (iwmmxt_wunpckihh): Likewise.
20716 (iwmmxt_wunpckihw): Likewise.
20717 (iwmmxt_wunpckilb): Likewise.
20718 (iwmmxt_wunpckilh): Likewise.
20719 (iwmmxt_wunpckilw): Likewise.
20720 (iwmmxt_wunpckehub): Likewise.
20721 (iwmmxt_wunpckehuh): Likewise.
20722 (iwmmxt_wunpckehuw): Likewise.
20723 (iwmmxt_wunpckehsb): Likewise.
20724 (iwmmxt_wunpckehsh): Likewise.
20725 (iwmmxt_wunpckehsw): Likewise.
20726 (iwmmxt_wunpckelub): Likewise.
20727 (iwmmxt_wunpckeluh): Likewise.
20728 (iwmmxt_wunpckeluw): Likewise.
20729 (iwmmxt_wunpckelsb): Likewise.
20730 (iwmmxt_wunpckelsh): Likewise.
20731 (iwmmxt_wunpckelsw): Likewise.
20732 (ror<mode>3): Likewise.
20733 (ashr<mode>3_iwmmxt): Likewise.
20734 (lshr<mode>3_iwmmxt): Likewise.
20735 (ashl<mode>3_iwmmxt): Likewise.
20736 (ror<mode>3_di): Likewise.
20737 (ashr<mode>3_di): Likewise.
20738 (lshr<mode>3_di): Likewise.
20739 (ashl<mode>3_di): Likewise.
20740 (iwmmxt_wmadds): Likewise.
20741 (iwmmxt_wmaddu): Likewise.
20742 (iwmmxt_tmia): Likewise.
20743 (iwmmxt_tmiaph): Likewise.
20744 (iwmmxt_tmiabb): Likewise.
20745 (iwmmxt_tmiatb): Likewise.
20746 (iwmmxt_tmiabt): Likewise.
20747 (iwmmxt_tmiatt): Likewise.
20748 (iwmmxt_tmovmskb): Likewise.
20749 (iwmmxt_tmovmskh): Likewise.
20750 (iwmmxt_tmovmskw): Likewise.
20751 (iwmmxt_waccb): Likewise.
20752 (iwmmxt_wacch): Likewise.
20753 (iwmmxt_waccw): Likewise.
20754 (iwmmxt_waligni): Likewise.
20755 (iwmmxt_walignr): Likewise.
20756 (iwmmxt_walignr0): Likewise.
20757 (iwmmxt_walignr1): Likewise.
20758 (iwmmxt_walignr2): Likewise.
20759 (iwmmxt_walignr3): Likewise.
20760 (iwmmxt_wsadb): Likewise.
20761 (iwmmxt_wsadh): Likewise.
20762 (iwmmxt_wsadbz): Likewise.
20763 (iwmmxt_wsadhz): Likewise.
20764 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
20765 (iwmmxt_wabsdiffb): Likewise.
20766 (iwmmxt_wabsdiffh): Likewise.
20767 (iwmmxt_wabsdiffw): Likewise.
20768 (iwmmxt_waddsubhx): Likewise
20769 (iwmmxt_wsubaddhx): Likewise.
20770 (addc<mode>3): Likewise.
20771 (iwmmxt_avg4): Likewise.
20772 (iwmmxt_avg4r): Likewise.
20773 (iwmmxt_wmaddsx): Likewise.
20774 (iwmmxt_wmaddux): Likewise.
20775 (iwmmxt_wmaddsn): Likewise.
20776 (iwmmxt_wmaddun): Likewise.
20777 (iwmmxt_wmulwsm): Likewise.
20778 (iwmmxt_wmulwum): Likewise.
20779 (iwmmxt_wmulsmr): Likewise.
20780 (iwmmxt_wmulumr): Likewise.
20781 (iwmmxt_wmulwsmr): Likewise.
20782 (iwmmxt_wmulwumr): Likewise.
20783 (iwmmxt_wmulwl): Likewise.
20784 (iwmmxt_wqmulm): Likewise.
20785 (iwmmxt_wqmulwm): Likewise.
20786 (iwmmxt_wqmulmr): Likewise.
20787 (iwmmxt_wqmulwmr): Likewise.
20788 (iwmmxt_waddbhusm): Likewise.
20789 (iwmmxt_waddbhusl): Likewise.
20790 (iwmmxt_wqmiabb): Likewise.
20791 (iwmmxt_wqmiabt): Likewise.
20792 (iwmmxt_wqmiatb): Likewise.
20793 (iwmmxt_wqmiatt): Likewise.
20794 (iwmmxt_wqmiabbn): Likewise.
20795 (iwmmxt_wqmiabtn): Likewise.
20796 (iwmmxt_wqmiatbn): Likewise.
20797 (iwmmxt_wqmiattn): Likewise.
20798 (iwmmxt_wmiabb): Likewise.
20799 (iwmmxt_wmiabt): Likewise.
20800 (iwmmxt_wmiatb): Likewise.
20801 (iwmmxt_wmiatt): Likewise.
20802 (iwmmxt_wmiabbn): Likewise.
20803 (iwmmxt_wmiabtn): Likewise.
20804 (iwmmxt_wmiatbn): Likewise.
20805 (iwmmxt_wmiattn): Likewise.
20806 (iwmmxt_wmiawbb): Likewise.
20807 (iwmmxt_wmiawbt): Likewise.
20808 (iwmmxt_wmiawtb): Likewise.
20809 (iwmmxt_wmiawtt): Likewise.
20810 (iwmmxt_wmiawbbn): Likewise.
20811 (iwmmxt_wmiawbtn): Likewise.
20812 (iwmmxt_wmiawtbn): Likewise.
20813 (iwmmxt_wmiawttn): Likewise.
20814 (iwmmxt_wmerge): Likewise.
20815 (iwmmxt_tandc<mode>3): Likewise.
20816 (iwmmxt_torc<mode>3): Likewise.
20817 (iwmmxt_torvsc<mode>3): Likewise.
20818 (iwmmxt_textrc<mode>3): Likewise.
20819 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
20820 (wmmxt_pack): Likewise.
20821 (wmmxt_mult_c1): Likewise.
20822 (wmmxt_mult_c2): Likewise.
20823 (wmmxt_alu_c1): Likewise.
20824 (wmmxt_alu_c2): Likewise.
20825 (wmmxt_alu_c3): Likewise.
20826 (wmmxt_transfer_c1): Likewise.
20827 (wmmxt_transfer_c2): Likewise.
20828 (wmmxt_transfer_c3): Likewise.
20829 (marvell_f_iwmmxt_wstr): Likewise.
20830 (marvell_f_iwmmxt_wldr): Likewise.
20832 2013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
20834 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
20836 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
20839 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
20840 * lra-constraints.c (need_for_split_p): Check call used hard regs
20841 living through calls.
20843 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
20844 call used regs for call insn.
20846 2013-06-28 Jakub Jelinek <jakub@redhat.com>
20849 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
20850 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
20852 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
20854 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
20856 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
20858 * lra-constraints.c (need_for_split_p): Check call used hard regs
20859 living through calls.
20861 2013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
20864 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
20865 to tie with any other modes. Eliminate Altivec vector mode tests,
20866 since these are a subset of ALTIVEC or VSX vector modes. Simplify
20867 code, to return 0 if testing MODE2 for a condition, if we've
20868 already tested MODE1 for the same condition.
20870 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
20872 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
20875 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
20877 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
20878 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
20880 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
20882 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
20884 (aarch64_symbolic_constant_p): Remove.
20885 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
20886 static. Fix line length and white space.
20887 (aarch64_symbolic_constant_p): Remove.
20888 * config/aarch64/predicates.md (aarch64_valid_symref):
20889 Use aarch64_classify_symbol_expression.
20891 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20893 * config/arm/constraints.md (Ts): New constraint.
20894 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
20896 (compare_scc): Use "Ts" constraint for operand 0.
20897 (ior_scc_scc): Likewise.
20898 (and_scc_scc): Likewise.
20899 (and_scc_scc_nodom): Likewise.
20900 (ior_scc_scc_cmp): Likewise for operand 7.
20901 (and_scc_scc_cmp): Likewise.
20902 * config/arm/thumb2.md (thumb2_movsi_insn):
20903 Add alternatives for 16-bit encodings.
20904 (thumb2_movhi_insn): Likewise.
20905 (thumb2_movsicc_insn): Likewise.
20906 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
20907 (thumb2_negscc): Use "Ts" constraint.
20908 Move mvn instruction outside cond_exec block.
20909 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
20910 for 16-bit encodings.
20912 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20914 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
20916 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
20917 (mulsi3subsi): Likewise.
20918 (mulsidi3adddi): Likewise.
20919 (mulsidi3_v6): Likewise.
20920 (umulsidi3_v6): Likewise.
20921 (umulsidi3adddi_v6): Likewise.
20922 (smulsi3_highpart_v6): Likewise.
20923 (umulsi3_highpart_v6): Likewise.
20924 (mulhisi3tb): Likewise.
20925 (mulhisi3bt): Likewise.
20926 (mulhisi3tt): Likewise.
20927 (maddhisi4): Likewise.
20928 (maddhisi4tb): Likewise.
20929 (maddhisi4tt): Likewise.
20930 (maddhidi4): Likewise.
20931 (maddhidi4tb): Likewise.
20932 (maddhidi4tt): Likewise.
20933 (zeroextractsi_compare0_scratch): Likewise.
20934 (insv_zero): Likewise.
20935 (insv_t2): Likewise.
20936 (anddi_notzesidi_di): Likewise.
20937 (anddi_notsesidi_di): Likewise.
20938 (andsi_notsi_si): Likewise.
20939 (iordi_zesidi_di): Likewise.
20940 (xordi_zesidi_di): Likewise.
20941 (andsi_iorsi3_notsi): Likewise.
20942 (smax_0): Likewise.
20943 (smax_m1): Likewise.
20944 (smin_0): Likewise.
20945 (not_shiftsi): Likewise.
20946 (unaligned_loadsi): Likewise.
20947 (unaligned_loadhis): Likewise.
20948 (unaligned_loadhiu): Likewise.
20949 (unaligned_storesi): Likewise.
20950 (unaligned_storehi): Likewise.
20951 (extv_reg): Likewise.
20952 (extzv_t2): Likewise.
20953 (divsi3): Likewise.
20954 (udivsi3): Likewise.
20955 (arm_zero_extendhisi2addsi): Likewise.
20956 (arm_zero_extendqisi2addsi): Likewise.
20957 (compareqi_eq0): Likewise.
20958 (arm_extendhisi2_v6): Likewise.
20959 (arm_extendqisi2addsi): Likewise.
20960 (arm_movt): Likewise.
20961 (thumb2_ldrd): Likewise.
20962 (thumb2_ldrd_base): Likewise.
20963 (thumb2_ldrd_base_neg): Likewise.
20964 (thumb2_strd): Likewise.
20965 (thumb2_strd_base): Likewise.
20966 (thumb2_strd_base_neg): Likewise.
20967 (arm_negsi2): Add alternative for 16-bit encoding.
20968 (arm_one_cmplsi2): Likewise.
20970 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20972 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
20973 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
20974 (movdfcc): Likewise.
20975 * config/arm/vfp.md (*thumb2_movsf_vfp):
20976 Disable predication for arm_restrict_it.
20977 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
20978 (*thumb2_movdfcc_vfp): Likewise.
20979 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
20980 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
20981 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
20982 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
20983 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
20984 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
20985 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
20986 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
20987 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
20988 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
20989 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
20990 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
20991 Disable predication for arm_restrict_it.
20993 2013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
20995 * config/i386/bmiintrin.h (_bextr_u32): New.
20996 (_bextr_u64): Ditto.
20998 2013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
21000 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
21001 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
21002 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
21003 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
21004 * config/mips/n32-elf.h: ...this new file.
21006 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
21009 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
21010 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
21012 2013-06-27 Catherine Moore <clm@codesourcery.com>
21014 * config/mips/mips-tables.opt: Regenerate.
21015 * config/mips/mips-cpus.def: Add m14ke and m14kec.
21016 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
21017 * doc/invoke.texi: Add -m14kc.
21019 2013-06-27 Jakub Jelinek <jakub@redhat.com>
21022 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
21023 constraints of operand 1 and 2.
21026 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
21027 to match RTL canonicalization. Swap predicates and
21028 constraints of operand 1 and 2.
21030 2013-06-27 Vladimir Makarov <vmakarov@redhat.com>
21032 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
21033 Process OP_INOUT regs for splitting too.
21035 2013-06-27 Jakub Jelinek <jakub@redhat.com>
21037 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
21038 decl before the loop, initialize to NULL.
21039 (vectorizable_load): Initialize ptr_incr to NULL.
21041 2013-06-27 Martin Jambor <mjambor@suse.cz>
21044 * ipa-ref.h (ipa_maybe_record_reference): Declare.
21045 * ipa-ref.c (ipa_maybe_record_reference): New function.
21046 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
21047 * ipa-cp.c (create_specialized_node): Record potential references from
21049 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
21051 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
21053 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
21054 parameter 'mode' of type 'enum machine_mode mode'; change to pass
21055 'mode' to force_reg.
21056 (aarch64_add_offset): Update calls to aarch64_force_temporary.
21057 (aarch64_expand_mov_immediate): Likewise.
21059 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
21061 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
21062 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
21064 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21066 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
21067 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
21068 (struct machine_function): Add tbegin_p.
21069 (s390_canonicalize_comparison): Fold CC mode compares to
21070 conditional jump if possible.
21071 (s390_emit_jump): Return the emitted jump.
21072 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
21073 Handle CCRAWmode compares.
21074 (s390_option_override): Default to -mhtm if available.
21075 (s390_reg_clobbered_rtx): Handle floating point regs as well.
21076 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
21077 FPRs instead of df_regs_ever_live_p.
21078 (s390_optimize_nonescaping_tx): New function.
21079 (s390_init_frame_layout): Extend clobbered_regs array to cover
21081 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
21082 (s390_expand_tbegin): New function.
21083 (enum s390_builtin): New enum definition.
21084 (code_for_builtin): New array definition.
21085 (s390_init_builtins): New function.
21086 (s390_expand_builtin): New function.
21087 (TARGET_INIT_BUILTINS): Define.
21088 (TARGET_EXPAND_BUILTIN): Define.
21089 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
21090 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
21091 (s390_alc_comparison): Likewise.
21092 * config/s390/s390-modes.def: Add CCRAWmode.
21093 * config/s390/s390.h (processor_flags): Add PF_TX.
21094 (TARGET_CPU_HTM): Define macro.
21095 (TARGET_HTM): Define macro.
21096 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
21097 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
21098 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
21099 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
21100 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
21101 (TBEGIN_MASK, TBEGINC_MASK): New constants.
21102 ("*cc_to_int"): Move up.
21103 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
21104 constants other than 0.
21105 ("*ccraw_to_int"): New insn and splitter definition.
21106 ("tbegin", "tbegin_nofloat", "tbegin_retry")
21107 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
21108 ("tx_assist"): New expander.
21109 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
21110 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
21111 * config/s390/s390.opt: Add -mhtm option.
21112 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
21113 * config/s390/htmxlintrin.h: New file.
21114 * config/s390/htmintrin.h: New file.
21115 * config/s390/s390intrin.h: New file.
21116 * doc/extend.texi: Document htm builtins.
21117 * config.gcc: Add the new header files to extra_headers.
21119 2013-06-26 Thomas Schwinge <thomas@codesourcery.com>
21121 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
21122 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
21124 2013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
21125 Pat Haugen <pthaugen@us.ibm.com>
21126 Peter Bergner <bergner@vnet.ibm.com>
21128 * config/rs6000/power8.md: New.
21129 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
21130 setting for power8 entry.
21131 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
21132 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
21133 test for Power4/Power5 only.
21134 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
21136 (force_new_group): Adjust comment.
21137 * config/rs6000/rs6000.md: Include power8.md.
21139 2013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
21141 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
21142 * config/arm/arm-protos.h (arm_max_conditional_execute): New
21144 (tune_params): Update comment.
21145 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
21146 (arm_max_conditional_execute): New function.
21147 (thumb2_final_prescan_insn): Use max_insn_skipped and
21148 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
21150 2013-06-25 Jakub Jelinek <jakub@redhat.com>
21152 PR tree-optimization/57705
21153 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
21154 SSA_NAME step, provided that it is not defined inside the loop.
21155 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
21156 (get_initial_def_for_induction): Handle SSA_NAME IV step.
21158 2013-06-25 Martin Jambor <mjambor@suse.cz>
21160 PR middle-end/57670
21161 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
21162 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
21164 (ipa_note_param_call): Initialize member_ptr flag.
21165 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
21166 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
21167 (ipa_write_indirect_edge_info): Stream member_ptr flag.
21168 (ipa_read_indirect_edge_info): Likewise.
21170 2013-06-25 Richard Biener <rguenther@suse.de>
21172 PR middle-end/56977
21173 * passes.c (init_optimization_passes): Move pass_fold_builtins
21174 and pass_dce earlier with -Og.
21176 2013-06-25 Eric Botcazou <ebotcazou@adacore.com>
21178 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
21179 <BIT_FIELD_REF>: Remove trailing TAB.
21180 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
21183 2013-06-24 Martin Jambor <mjambor@suse.cz>
21185 PR tree-optimization/57358
21186 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
21187 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
21188 (ipa_analyze_params_uses): Generate pessimistic info when true.
21190 2013-06-24 Martin Jambor <mjambor@suse.cz>
21192 PR tree-optimization/57539
21193 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
21194 global.inlined_to of the new node to it. All callers changed.
21195 * ipa-inline-transform.c (clone_inlined_nodes): New variable
21196 inlining_into, pass it to cgraph_clone_node.
21197 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
21198 ipa_free_edge_args_substructures.
21199 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
21200 rdesc linked list. Do not assert rdesc edges have inlined caller.
21201 Assert we have found an rdesc in the rdesc list.
21203 2013-06-24 Richard Biener <rguenther@suse.de>
21205 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
21206 (pointer_set_lookup): Declare.
21207 (class pointer_map): New template class implementing a
21208 generic pointer to T map.
21209 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
21210 pointer_map<T>::contains, pointer_map<T>::insert,
21211 pointer_map<T>::traverse): New functions.
21212 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
21213 (pointer_set_lookup): New function.
21214 (pointer_set_contains): Use pointer_set_lookup.
21215 (pointer_set_insert): Likewise.
21216 (insert_aux): Remove.
21217 (struct pointer_map_t): Embed a pointer_set_t.
21218 (pointer_map_create): Adjust.
21219 (pointer_map_destroy): Likewise.
21220 (pointer_map_contains): Likewise.
21221 (pointer_map_insert): Likewise.
21222 (pointer_map_traverse): Likewise.
21223 * tree-streamer.h (struct streamer_tree_cache_d): Use a
21224 pointer_map<unsigned> instead of a pointer_map_t.
21225 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
21226 (streamer_tree_cache_lookup): Likewise.
21227 (streamer_tree_cache_create): Likewise.
21228 (streamer_tree_cache_delete): Likewise.
21229 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
21230 pointer_map<unsigned> instead of a pointer_map_t.
21231 (lto_init_tree_ref_encoder): Adjust.
21232 (lto_destroy_tree_ref_encoder): Likewise.
21233 * lto-section-out.c (lto_output_decl_index): Likewise.
21234 (lto_record_function_out_decl_state): Likewise.
21235 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
21237 2013-06-24 Richard Biener <rguenther@suse.de>
21239 PR tree-optimization/57488
21240 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
21242 2013-06-24 Alan Modra <amodra@gmail.com>
21244 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
21245 (gen_easy_altivec_constant): Likewise.
21246 * config/rs6000/predicates.md (easy_vector_constant_add_self,
21247 easy_vector_constant_msb): Likewise.
21249 2013-06-23 Jakub Jelinek <jakub@redhat.com>
21252 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
21253 add missing return true.
21255 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
21258 * config/sh/predicates.md (general_extend_operand): Invoke
21259 general_movsrc_operand for memory operands.
21260 (general_movsrc_operand): Allow reg+reg addressing, do not use
21261 general_operand for memory operands.
21263 2013-06-23 Sriraman Tallam <tmsriram@google.com>
21265 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
21266 when current target options does not apply.
21267 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
21268 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
21269 * config/i386/bmiintrin.h: Pass appropriate target
21270 attributes to header.
21271 * config/i386/mmintrin.h: Ditto.
21272 * config/i386/nmmintrin.h: Ditto.
21273 * config/i386/avx2intrin.h: Ditto.
21274 * config/i386/fxsrintrin.h: Ditto.
21275 * config/i386/tbmintrin.h: Ditto.
21276 * config/i386/xsaveintrin.h: Ditto.
21277 * config/i386/f16cintrin.h: Ditto.
21278 * config/i386/xtestintrin.h: Ditto.
21279 * config/i386/xsaveoptintrin.h: Ditto.
21280 * config/i386/bmi2intrin.h: Ditto.
21281 * config/i386/lzcntintrin.h: Ditto.
21282 * config/i386/smmintrin.h: Ditto.
21283 * config/i386/wmmintrin.h: Ditto.
21284 * config/i386/x86intrin.h: Remove all header include guards.
21285 * config/i386/prfchwintrin.h: Ditto.
21286 * config/i386/pmmintrin.h: Ditto.
21287 * config/i386/tmmintrin.h: Ditto.
21288 * config/i386/xmmintrin.h: Ditto.
21289 * config/i386/popcntintrin.h: Ditto.
21290 * config/i386/rdseedintrin.h: Ditto.
21291 * config/i386/ammintrin.h: Ditto.
21292 * config/i386/emmintrin.h: Ditto.
21293 * config/i386/immintrin.h: Remove all header include guards.
21294 * config/i386/fma4intrin.h: Ditto.
21295 * config/i386/lwpintrin.h: Ditto.
21296 * config/i386/xopintrin.h: Ditto.
21297 * config/i386/ia32intrin.h: Ditto.
21298 * config/i386/avxintrin.h: Ditto.
21299 * config/i386/rtmintrin.h: Ditto.
21300 * config/i386/fmaintrin.h: Ditto.
21301 * config/i386/mm3dnow.h: Ditto.
21303 2013-06-22 Sriraman Tallam <tmsriram@google.com>
21305 * common/config/i386/i386-common.c: Handle LZCNT.
21307 2013-06-22 Andi Kleen <ak@linux.intel.com>
21309 * doc/extend.texi: Use __atomic_store_n instead of
21310 __atomic_store in HLE example.
21312 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
21314 * config/sh/sh.c: Remove <cstdlib> workaround.
21316 2013-06-21 Andi Kleen <ak@linux.intel.com>
21318 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
21320 2013-06-21 Andi Kleen <ak@linux.intel.com>
21322 * doc/extend.texi: Document that __atomic_clear and
21323 __atomic_test_and_set should only be used with bool.
21325 2013-06-20 Jan Hubicka <jh@suse.cz>
21327 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
21328 types_same_for_odr.
21329 * tree.c (decls_same_for_odr): New function.
21330 (same_for_edr): New function.
21331 (types_same_for_odr): New function.
21332 (get_binfo_at_offset): Use it.
21333 * tree.h (types_same_for_odr): Declare.
21335 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
21336 Jason Merrill <jason@redhat.com>
21338 * system.h: Include <cstdlib> as well as <stdlib.h>.
21340 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
21343 * config/i386/i386.c (construct_container): Report error if
21344 long double is used with disabled x87 float returns.
21346 2013-06-20 Jan Hubicka <jh@suse.cz>
21348 * lto-cgraph.c (input_symtab): Do not set cgraph state.
21350 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
21352 PR rtl-optimization/57425
21353 PR rtl-optimization/57569
21354 * alias.c (write_dependence_p): Remove parameters mem_mode and
21355 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
21356 Changed all callers.
21357 (canon_anti_dependence): Get comments and semantics in sync.
21358 Add parameter mem_canonicalized. Changed all callers.
21359 * rtl.h (canon_anti_dependence): Update prototype.
21361 2013-06-20 Richard Biener <rguenther@suse.de>
21363 * data-streamer-in.c (streamer_read_uhwi): Optimize single
21364 byte case, inline streamer_read_uchar and defer section
21367 2013-06-20 Richard Biener <rguenther@suse.de>
21369 PR tree-optimization/57584
21370 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
21371 SSA names into the expanded expression that take part in
21372 abnormal coalescing.
21374 2013-06-19 Sharad Singhai <singhai@google.com>
21376 * gcov.c (print_usage): Handle new option.
21377 (process_args): Ditto.
21378 (get_gcov_intermediate_filename): New function.
21379 (output_intermediate_file): New function.
21380 (output_gcov_file): New function
21381 (generate_results): Handle new option.
21382 (release_function): Relase demangled name.
21383 (read_graph_file): Handle demangled name.
21384 (output_lines): Ditto.
21385 * doc/gcov.texi: Document gcov intermediate format.
21387 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
21390 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
21391 (lra_emit_add): Use the functions. Add comment about Y as an
21394 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
21397 * collect2.c (collect_atexit): New.
21398 (collect_exit): Delete.
21399 (main): Register collect_atexit with atexit.
21400 (collect_wait): Change collect_exit to exit.
21402 * collect2.h (collect_exit): Delete.
21403 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
21405 2013-06-19 Wei Mi <wmi@google.com>
21407 PR rtl-optimization/57518
21408 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
21409 if regno is used in paradoxical subreg.
21410 (update_equiv_regs): Check pdx_subregs[regno] before
21411 set a reg to be equivalent with a mem.
21413 2013-06-19 Matthias Klose <doko@ubuntu.com>
21416 * file-find.h (find_a_file): Add a mode parameter.
21417 * file-find.c (find_a_file): Likewise.
21418 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
21419 with X_OK for the executables.
21420 * collect2.c (main): Call find_a_file with X_OK.
21422 2013-06-19 Steve Ellcey <sellcey@mips.com>
21425 * config/mips/mips.md (casesi_internal_mips16_<mode>):
21426 Use NEXT_INSN instead of next_real_insn.
21428 2013-06-19 Jan Hubicka <jh@suse.cz>
21430 * cgraph.h (const_value_known_p): Replace by ...
21431 (ctor_for_folding): .. this one.
21432 * cgraphunit.c (process_function_and_variable_attributes): Use it.
21433 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
21434 * expr.c (expand_expr_real_1): Likewise.
21435 (string_constant): Likewise.
21436 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
21437 * ipa.c (process_references): Likewise.
21438 (symtab_remove_unreachable_nodes): Likewise.
21439 * ipa-inline-analysis.c (param_change_prob): Likewise.
21440 * gimple-fold.c (canonicalize_constructor_val): Likewise.
21441 (get_base_constructor): Likwise.
21442 * varpool.c (varpool_remove_node): Likewise.
21443 (varpool_remove_initializer): LIkewise.
21444 (dump_varpool_node): LIkwise.
21445 (const_value_known_p): Rewrite to ...
21446 (ctor_for_folding): ... this one.
21448 2013-06-19 Jakub Jelinek <jakub@redhat.com>
21451 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
21452 PERSONALITY in $PATH derived prefixes.
21454 2013-06-19 Jeff Law <law@redhat.com>
21456 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
21459 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
21460 (simplify_bitwise_binary): Use it to simpify certain binary ops on
21463 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
21465 * config/arm/vfp.md: Move VFP instruction classification documentation
21467 * config/arm/arm.md: ... here. Update instruction classification
21470 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
21472 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
21473 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
21474 pattern. Use more efficient sequences on ARMv5 and Thumb2.
21476 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
21479 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
21480 with NEXT_INSN. Use tablejump_p to check for jump table data
21483 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
21486 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
21487 that now in C++ the value is correct per the C++ standards.
21489 2013-06-19 Richard Biener <rguenther@suse.de>
21491 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
21492 for global context.
21494 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21497 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21500 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
21501 with next_active_insn.
21503 2013-06-18 Sriraman Tallam <tmsriram@google.com>
21505 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
21506 functions are inlined during failures to flag an error.
21507 * tree-inline.c (expand_call_inline): Allow the error to be flagged
21508 in early inline pass.
21510 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
21512 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
21515 2013-06-18 Julian Brown <julian@codesourcery.com>
21517 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
21518 Permit virtual register pre-reload if !strict.
21519 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
21521 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
21523 * config/arm/neon.md (movmisalign<mode>): Use
21524 neon_perm_struct_or_reg_operand instead of
21525 neon_struct_or_register_operand.
21526 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
21527 neon_permissive_struct_operand instead of neon_struct_operand.
21528 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
21529 neon_vector_mem_operand.
21530 * config/arm/predicates.md (neon_struct_operand): Adjust call to
21531 neon_vector_mem_operand.
21532 (neon_permissive_struct_operand): New.
21533 (neon_struct_or_register_operand): Rename to...
21534 (neon_perm_struct_or_reg_operand): This. Adjust call to
21535 neon_vector_mem_operand.
21537 2013-06-18 Richard Biener <rguenther@suse.de>
21539 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
21540 * lto-streamer.h: Include pointer-set.h.
21541 (struct lto_decl_slot): Remove.
21542 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
21543 Remove next_index entry.
21544 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
21545 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
21546 (lto_init_tree_ref_encoder): Adjust.
21547 (lto_destroy_tree_ref_encoder): Likewise.
21548 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
21549 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
21550 (lto_output_decl_index): Adjust.
21551 (lto_new_out_decl_state): Likewise.
21552 (lto_record_function_out_decl_state): Likewise.
21553 * lto-streamer-out.c (copy_function): Likewise.
21555 2013-06-18 Richard Biener <rguenther@suse.de>
21557 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
21558 * cgraphunit.c: Include cfgloop.h.
21559 (init_lowered_empty_function): Initialize the loop tree.
21560 (assemble_thunk): Insert new BBs into loops.
21562 2013-06-18 Richard Biener <rguenther@suse.de>
21564 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
21565 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
21566 the map from cache entry to cache index optional.
21567 (streamer_tree_cache_replace_tree): Adjust accordingly.
21568 (streamer_tree_cache_append): Likewise.
21569 (streamer_tree_cache_delete): Likewise.
21570 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
21571 streamer cache map from cache entry to cache index.
21572 * lto-streamer-out.c (create_output_block): Adjust.
21574 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
21576 * config/arm/arm.md (attribute "insn"): Move multiplication and
21577 division attributes to...
21578 (attribute "type"): ... here. Remove mult.
21579 (attribute "mul32"): New attribute.
21580 (attribute "mul64"): Add umaal.
21581 (*arm_mulsi3): Update attributes.
21582 (*arm_mulsi3_v6): Likewise.
21583 (*thumb_mulsi3): Likewise.
21584 (*thumb_mulsi3_v6): Likewise.
21585 (*mulsi3_compare0): Likewise.
21586 (*mulsi3_compare0_v6): Likewise.
21587 (*mulsi_compare0_scratch): Likewise.
21588 (*mulsi_compare0_scratch_v6): Likewise.
21589 (*mulsi3addsi): Likewise.
21590 (*mulsi3addsi_v6): Likewise.
21591 (*mulsi3addsi_compare0): Likewise.
21592 (*mulsi3addsi_compare0_v6): Likewise.
21593 (*mulsi3addsi_compare0_scratch): Likewise.
21594 (*mulsi3addsi_compare0_scratch_v6): Likewise.
21595 (*mulsi3subsi): Likewise.
21596 (*mulsidi3adddi): Likewise.
21597 (*mulsi3addsi_v6): Likewise.
21598 (*mulsidi3adddi_v6): Likewise.
21599 (*mulsidi3_nov6): Likewise.
21600 (*mulsidi3_v6): Likewise.
21601 (*umulsidi3_nov6): Likewise.
21602 (*umulsidi3_v6): Likewise.
21603 (*umulsidi3adddi): Likewise.
21604 (*umulsidi3adddi_v6): Likewise.
21605 (*smulsi3_highpart_nov6): Likewise.
21606 (*smulsi3_highpart_v6): Likewise.
21607 (*umulsi3_highpart_nov6): Likewise.
21608 (*umulsi3_highpart_v6): Likewise.
21609 (mulhisi3): Likewise.
21610 (*mulhisi3tb): Likewise.
21611 (*mulhisi3bt): Likewise.
21612 (*mulhisi3tt): Likewise.
21613 (maddhisi4): Likewise.
21614 (*maddhisi4tb): Likewise.
21615 (*maddhisi4tt): Likewise.
21616 (maddhidi4): Likewise.
21617 (*maddhidi4tb): Likewise.
21618 (*maddhidi4tt): Likewise.
21619 (divsi3): Likewise.
21620 (udivsi3): Likewise.
21621 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
21622 (thumb2_mulsi_short_compare0): Likewise.
21623 (thumb2_mulsi_short_compare0_scratch): Likewise.
21624 * config/arm/arm1020e.md (1020mult1): Update attribute change.
21625 (1020mult2): Likewise.
21626 (1020mult3): Likewise.
21627 (1020mult4): Likewise.
21628 (1020mult5): Likewise.
21629 (1020mult6): Likewise.
21630 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
21632 (cortex_a15_mult64): Likewise.
21633 (cortex_a15_sdiv): Likewise.
21634 (cortex_a15_udiv): Likewise.
21635 * config/arm/arm1026ejs.md (mult1): Update attribute change.
21641 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
21642 (pj4_ir_div): Likewise.
21643 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
21644 (11_mult2): Likewise.
21645 (11_mult3): Likewise.
21646 (11_mult4): Likewise.
21647 (11_mult5): Likewise.
21648 (11_mult6): Likewise.
21649 (11_mult7): Likewise.
21650 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
21651 (cortex_a8_mla): Likewise.
21652 (cortex_a8_mull): Likewise.
21653 (cortex_a8_smulwy): Likewise.
21654 (cortex_a8_smlald): Likewise.
21655 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
21656 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
21657 (cortex_r4_mul_3): Likewise.
21658 (cortex_r4_mla_4): Likewise.
21659 (cortex_r4_mla_3): Likewise.
21660 (cortex_r4_smlald): Likewise.
21661 (cortex_r4_mull): Likewise.
21662 (cortex_r4_sdiv): Likewise.
21663 (cortex_r4_udiv): Likewise.
21664 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
21665 (cortex_a7_idiv): Likewise.
21666 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
21667 (9_mult2): Likewise.
21668 (9_mult3): Likewise.
21669 (9_mult4): Likewise.
21670 (9_mult5): Likewise.
21671 (9_mult6): Likewise.
21672 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
21673 (cortex_a53_sdiv): Likewise.
21674 (cortex_a53_udiv): Likewise.
21675 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
21676 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
21677 (mp626_mult2): Likewise.
21678 (mp626_mult3): Likewise.
21679 (mp626_mult4): Likewise.
21680 * config/arm/fa526.md (526_mult1): Update attribute change.
21681 (526_mult2): Likewise.
21682 * config/arm/arm-generic.md (mult): Update attribute change.
21683 (mult_ldsched_strongarm): Likewise.
21684 (mult_ldsched): Likewise.
21685 (multi_cycle): Likewise.
21686 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
21687 * config/arm/fa606te.md (606te_mult1): Update attribute change.
21688 (606te_mult2): Likewise.
21689 (606te_mult3): Likewise.
21690 (606te_mult4): Likewise.
21691 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
21692 (cortex_a9_mac16): Likewise.
21693 (cortex_a9_multiply): Likewise.
21694 (cortex_a9_mac): Likewise.
21695 (cortex_a9_multiply_long): Likewise.
21696 * config/arm/fa626te.md (626te_mult1): Update attribute change.
21697 (626te_mult2): Likewise.
21698 (626te_mult3): Likewise.
21699 (626te_mult4): Likewise.
21701 2013-06-18 Richard Biener <rguenther@suse.de>
21704 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
21706 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21709 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
21710 with next_active_insn.
21712 2013-06-18 Alan Modra <amodra@gmail.com>
21714 * config/rs6000/rs6000.h (enum data_align): New.
21715 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
21716 (DATA_ABI_ALIGNMENT): Define.
21717 (CONSTANT_ALIGNMENT): Correct comment.
21718 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
21719 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
21721 2013-06-17 David Malcolm <dmalcolm@redhat.com>
21723 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
21724 ATTRIBUTE_UNUSED marking.
21726 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
21728 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
21729 alternative and update.
21730 (aarch64_dup_lanedi): Delete.
21731 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
21732 * config/aarch64/aarch64-simd-builtins.def: Update.
21734 2013-06-17 Richard Biener <rguenther@suse.de>
21736 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
21737 (lto_input_scc): Declare.
21738 (lto_input_tree_1): Likewise.
21739 (struct lto_stats_d): Add num_tree_bodies_output and
21740 num_pickle_refs_output.
21741 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
21742 (lto_read_tree_1): Split out from ...
21743 (lto_read_tree): ... this.
21744 (lto_input_scc): New function.
21745 (lto_input_tree_1): Split out from ...
21746 (lto_input_tree): ... this. Handle LTO_tree_scc.
21747 (lto_data_in_create): Create the streamer cache without hashes.
21748 * lto-streamer-out.c (create_output_block): Create the streamer
21749 cache with hashes when not doing WPA.
21750 (lto_write_tree_1): Split out from ...
21751 (lto_write_tree): ... this.
21752 (get_symbol_initial_value): New function.
21753 (lto_output_tree_1): Split out from ...
21754 (lto_output_tree): ... this. Write trees as series of SCCs
21755 using a DFS walk via DFS_write_tree.
21756 (struct sccs, struct scc_entry): New types.
21757 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
21758 (DFS_write_tree_body): New function.
21759 (DFS_write_tree): Likewise.
21760 (hash_tree): Likewise.
21761 (scc_entry_compare): Likewise.
21762 (hash_scc): Likewise.
21763 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
21764 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
21765 TREE_CHAIN as regular reference.
21766 (streamer_read_integer_cst): Remove.
21767 (streamer_get_pickled_tree): Adjust.
21768 * tree-streamer-out.c (streamer_write_chain): Disable streaming
21769 of DECL_EXTERNALs in BLOCK_VARS for now.
21770 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
21772 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
21773 Add hash value argument and record that if hashes are recorded
21775 (streamer_tree_cache_insert_1): Adjust.
21776 (streamer_tree_cache_insert): Likewise.
21777 (streamer_tree_cache_insert_at): Rename to ...
21778 (streamer_tree_cache_replace_tree): ... this and adjust.
21779 (streamer_tree_cache_append): Adjust.
21780 (record_common_node): Likewise.
21781 (streamer_tree_cache_create): Add argument whether to
21782 record hash values together with trees.
21783 (streamer_tree_cache_delete): Adjust.
21784 * tree-streamer.h (struct streamer_tree_cache_d): Add
21786 (streamer_read_integer_cst): Remove.
21787 (streamer_tree_cache_insert): Adjust.
21788 (streamer_tree_cache_append): Likewise.
21789 (streamer_tree_cache_insert_at): Rename to ...
21790 (streamer_tree_cache_replace_tree): ... this and adjust.
21791 (streamer_tree_cache_create): Add argument whether to record hashes.
21792 (streamer_tree_cache_get): Rename to ...
21793 (streamer_tree_cache_get_tree): ... this.
21794 (streamer_tree_cache_get_hash): New function.
21795 * tree.c (cache_integer_cst): New function.
21796 * tree.h (cache_integer_cst): Declare.
21797 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
21798 * lto-symtab.c (lto_varpool_replace_node): Only release
21799 DECL_INITIAL of non-prevailing decls.
21800 * varpool.c (varpool_remove_initializer): Do not release
21801 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
21803 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
21805 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
21806 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
21807 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
21808 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
21809 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
21810 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
21811 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
21812 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
21813 instead of TARGET_64BIT.
21814 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
21815 Require ISA_HAS_<D>DIV.
21817 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
21819 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
21820 (mips*-*-linux*): Move default with_llsc setting to where other
21822 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
21824 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
21825 Likewise. Remove default with_tune setting. Move default float
21826 setting to its own block. Handle with_llsc in the same block as above.
21828 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
21830 PR rtl-optimization/57425
21831 PR rtl-optimization/57569
21832 * alias.c (write_dependence_p): Add new parameters mem_mode,
21833 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
21834 Changed all callers.
21835 (canon_anti_dependence): New function.
21836 * cse.c (check_dependence): Use canon_anti_dependence.
21837 * cselib.c (cselib_invalidate_mem): Likewise.
21838 * rtl.h (canon_anti_dependence): Declare.
21840 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
21842 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
21843 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
21844 ".set mips3" for 64-bit targets.
21846 2013-06-15 Dehao Chen <dehao@google.com>
21848 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
21849 * gimple-low.c (gimple_check_call_matching_types): Likewise.
21850 (gimple_check_call_args): Likewise.
21851 * value-prof.c (check_ic_target): Likewise.
21852 * ipa-inline.c (early_inliner): Likewise.
21853 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
21854 * cgraph.c (cgraph_create_edge_1): Likewise.
21855 (cgraph_make_edge_direct): Likewise.
21857 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
21860 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
21861 rs6000_output_move_128bit to handle emitting quad memory
21862 operations. Set attribute length to 8 bytes.
21864 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
21866 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
21868 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
21869 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
21870 (aarch64_<su>mlsl<mode>): Likewise.
21872 2013-06-14 Mike Stump <mikestump@comcast.net>
21874 * Makefile.in (TARGET_H): Add insn-codes.h.
21876 2013-06-14 Alan Modra <amodra@gmail.com>
21878 PR middle-end/57134
21879 PR middle-end/57586
21880 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
21881 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
21882 bitfield expansion when EXPAND_MEMORY.
21883 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
21885 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
21887 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
21888 test for clearing quad memory on 32-bit later.
21890 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
21892 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
21893 (fold_negate_expr): Likewise.
21894 (fold_real_zero_addition_p): Handle vectors.
21895 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
21897 2013-06-14 Alan Modra <amodra@gmail.com>
21899 * varasm.c (force_const_mem): Revert 2013-06-07 change.
21901 2013-06-13 Jan Hubicka <jh@suse.cz>
21903 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
21904 Local comdats are not externally visible.
21905 * symtab.c (dump_symtab_base): Dump externally visible.
21906 (verify_symtab_base): Verify back links in the symtab hash.
21908 2013-06-13 Bin Cheng <bin.cheng@arm.com>
21910 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
21911 CONVERT_EXPR as equal nodes.
21913 2013-06-13 Bin Cheng <bin.cheng@arm.com>
21915 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
21917 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
21919 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
21920 Generalize to complex and vector.
21921 * tree.c (build_all_ones_cst): New function.
21922 * tree.h (build_all_ones_cst): Declare it.
21924 2013-06-13 Alan Modra <amodra@gmail.com>
21926 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
21927 * config/rs6000/rs6000.md (signbittf2): New insn.
21928 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
21929 (abstf2_internal, cmptf_internal2): Likewise.
21930 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
21932 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
21933 Pat Haugen <pthaugen@us.ibm.com>
21934 Peter Bergner <bergner@vnet.ibm.com>
21936 * config/rs6000/rs6000.c (emit_load_locked): Add support for
21937 power8 byte, half-word, and quad-word atomic instructions.
21938 (emit_store_conditional): Likewise.
21939 (rs6000_expand_atomic_compare_and_swap): Likewise.
21940 (rs6000_expand_atomic_op): Likewise.
21942 * config/rs6000/sync.md (larx): Add new modes for power8.
21944 (AINT): New mode iterator to include TImode as well as normal
21945 integer modes on power8.
21946 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
21947 that VSX registers are not considered. Use AINT mode iterator
21948 instead of INT1 to allow inclusion of quad word atomic operations
21950 (load_locked<mode>): Likewise.
21951 (store_conditional<mode>): Likewise.
21952 (atomic_compare_and_swap<mode>): Likewise.
21953 (atomic_exchange<mode>): Likewise.
21954 (atomic_nand<mode>): Likewise.
21955 (atomic_fetch_<fetchop_name><mode>): Likewise.
21956 (atomic_nand_fetch<mode>): Likewise.
21957 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
21959 (ATOMIC): On power8, add QImode, HImode modes.
21960 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
21961 modes that promote to SImode.
21962 (load_lockedti): Convert TImode arguments to PTImode, so that we
21963 get a guaranteed even/odd register pair.
21964 (load_lockedpti): Likewise.
21965 (store_conditionalti): Likewise.
21966 (store_conditionalpti): Likewise.
21968 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
21969 atomic load/store instructions.
21972 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
21974 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
21976 (insn_count): New attribute, with most cases extracted from...
21977 (length): ...here. Redefine most cases in terms of insn_count.
21978 (single_insn): Delete.
21979 (can_delay): Use insn_count to check for single instructions.
21980 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
21981 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
21982 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
21983 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
21984 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
21985 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
21986 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
21987 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
21988 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
21989 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
21990 rather than "length".
21991 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
21992 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
21993 Use "insn_count" rather than "length".
21994 * config/mips/mips-dsp.md
21995 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
21996 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
21999 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
22001 PR tree-optimization/57361
22002 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
22004 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
22006 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
22008 (aarch64_simd_combine<mode>): New instruction expansion.
22009 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
22010 function prototype.
22011 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
22012 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
22014 2013-06-12 Jan Hubicka <jh@suse.cz>
22016 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
22017 decl has when in streaming stage.
22018 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
22019 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
22021 2013-06-12 Roland Stigge <stigge@antcom.de>
22024 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
22026 2013-06-12 Jakub Jelinek <jakub@redhat.com>
22028 PR tree-optimization/57537
22029 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
22030 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
22032 2013-06-12 Richard Biener <rguenther@suse.de>
22034 * data-streamer.h (streamer_write_char_stream): CSE
22035 obs->current_pointer.
22036 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
22037 streamer_write_char_stream manually and optimize the resulting loop.
22038 (streamer_write_hwi_stream): Likewise.
22040 2013-06-12 Jan Hubicka <jh@suse.cz>
22042 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
22043 * cgraph.h (varpool_create_empty_node): Declare.
22044 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
22046 * symtab.c (symtab_unregister_node): Be lax about missin entries
22048 (symtab_get_node): Update comment.
22049 * varpool.c (varpool_create_empty_node): Break out from ...
22050 (varpool_node_for_decl): ... here.
22051 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
22053 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
22055 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
22056 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
22057 part. Use straight-line flow at the end.
22058 <COMPONENT_REF>: Remove superfluous else.
22059 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
22061 2013-06-12 Jakub Jelinek <jakub@redhat.com>
22064 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
22065 target hook even for !TREE_PUBLIC decls. If no resolution info
22066 is available, return false for common and external decls.
22068 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
22070 * config/rl78/constraints.md (U): New constraint.
22071 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
22074 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
22077 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
22078 to allow returning address to AT_PLATFORM name.
22080 2013-06-11 Jan Hubicka <jh@suse.cz>
22082 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
22083 * cgraph.h (symtab_node_base): Add weakref flag.
22084 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
22085 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
22086 (output_weakrefs): Use weakref flag.
22087 * fold-const.c (simple_operand_p): Handle WEAK.
22088 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
22089 * ipa.c (varpool_externally_visible_p): Drop weakref.
22090 (function_and_variable_visibility): Update comment; fix weakref
22091 sanity checks; do not clear DECL_WEAK on them.
22092 * lto-cgraph.c (lto_output_node): update.
22093 (lto_output_varpool_node): Update.
22094 (input_overwrite_node): Update.
22095 (input_node): Update.
22096 (input_varpool_node): Update.
22097 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
22098 (lto_symtab_merge_symbols): Add sanity check.
22099 (lto_symtab_prevailing_decl): Do not special case weakrefs.
22100 * passes.c (rest_of_decl_compilation): Set static flag, too.
22101 * symtab.c (dump_symtab_base): Dump weakref.
22102 (verify_symtab_base): Sanity check weakrefs.
22103 (symtab_make_decl_local): Remove duplicated code.
22104 (symtab_alias_ultimate_target): Simplify.
22105 * varpool.c (varpool_create_variable_alias): Set weakref flag.
22107 2013-06-11 Tom de Vries <tom@codesourcery.com>
22109 * genautomata.c (gen_regexp_sequence): Handle els_num == -1. Handle
22110 sequence_vect == NULL.
22112 2013-06-11 DJ Delorie <dj@redhat.com>
22114 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
22115 (rl78_unwind_word_mode): New.
22117 2013-06-11 David Malcolm <dmalcolm@redhat.com>
22119 * final.c (debug_prefix_maps): Make static.
22121 2013-06-11 David Malcolm <dmalcolm@redhat.com>
22123 * function.c (initial_trampoline): Remove stray copy.
22125 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
22127 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
22129 2013-06-11 Martin Jambor <mjambor@suse.cz>
22131 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
22132 within bounds at the beginning of the function.
22134 2013-06-11 Alan Modra <amodra@gmail.com>
22136 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
22138 (get_named_section): Don't NULL !DECL_P decl.
22140 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
22142 * doc/invoke.texi (core-avx2): Document.
22144 (atom): Updated with MOVBE.
22146 2013-06-11 Richard Biener <rguenther@suse.de>
22148 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
22150 2013-06-11 Anton Blanchard <anton@samba.org>
22152 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
22153 correct shift value in little-endian mode.
22155 2013-06-11 Jakub Jelinek <jakub@redhat.com>
22158 * varasm.c (get_variable_align): Move #endif to the right place.
22160 2013-06-10 Cary Coutant <ccoutant@google.com>
22162 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
22163 for hash so that hash table traversal order is deterministic.
22165 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
22166 Pat Haugen <pthaugen@us.ibm.com>
22167 Peter Bergner <bergner@vnet.ibm.com>
22169 * config/rs6000/vector.md (GPR move splitter): Do not split moves
22170 of vectors in GPRS if they are direct moves or quad word load or
22173 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
22175 (direct_move_p): Likewise.
22176 (quad_load_store_p): Likewise.
22178 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
22179 classes into bins based on the physical register type.
22180 (reg_class_to_reg_type): Likewise.
22181 (IS_STD_REG_TYPE): Likewise.
22182 (IS_FP_VECT_REG_TYPE): Likewise.
22183 (reload_fpr_gpr): Arrays to determine what insn to use if we can
22184 use direct move instructions.
22185 (reload_gpr_vsx): Likewise.
22186 (reload_vsx_gpr): Likewise.
22187 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
22188 information that is a simplification of register classes. Also
22189 precalculate direct move reload helpers.
22190 (direct_move_p): New function to return true if the operation can
22191 be done as a direct move instruciton.
22192 (quad_load_store_p): New function to return true if the operation
22193 is a quad memory operation.
22194 (rs6000_legitimize_address): If quad memory, only allow register
22195 indirect for TImode addresses.
22196 (rs6000_legitimate_address_p): Likewise.
22197 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
22198 (rs6000_reload_register_type): Likewise.
22199 (register_to_reg_type): Return register type.
22200 (rs6000_secondary_reload_simple_move): New helper function for
22201 secondary reload and secondary memory needed to identify anything
22202 that is a simple move, and does not need reloading.
22203 (rs6000_secondary_reload_direct_move): New helper function for
22204 secondary reload to identify cases that can be done with several
22205 instructions via the direct move instructions.
22206 (rs6000_secondary_reload_move): New helper function for secondary
22207 reload to identify moves between register types that can be done.
22208 (rs6000_secondary_reload): Add support for quad memory operations
22209 and for direct move.
22210 (rs6000_secondary_memory_needed): Likewise.
22211 (rs6000_debug_secondary_memory_needed): Change argument names.
22212 (rs6000_output_move_128bit): New function to return the move to
22213 use for 128-bit moves, including knowing about the various
22214 limitations of quad memory operations.
22216 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
22217 memory operations. call rs6000_output_move_128bit for the actual
22218 instruciton(s) to generate.
22219 (vsx_movti_64bit): Likewise.
22221 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
22222 (UNSPEC_P8V_MTVSRWZ): Likewise.
22223 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
22224 (UNSPEC_P8V_MTVSRD): Likewise.
22225 (UNSPEC_P8V_XXPERMDI): Likewise.
22226 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
22227 (UNSPEC_FUSION_GPR): Likewise.
22228 (FMOVE128_GPR): New iterator for direct move.
22229 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
22230 (f32_sv): Likewise.
22231 (f32_dm): Likewise.
22232 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
22233 loads and direct move instructions.
22234 (zero_extendsidi2_lfiwzx): Likewise.
22235 (extendsidi2_lfiwax): Likewise.
22236 (extendsidi2_nocell): Likewise.
22237 (floatsi<mode>2_lfiwax): Likewise.
22238 (lfiwax): Likewise.
22239 (floatunssi<mode>2_lfiwzx): Likewise.
22240 (lfiwzx): Likewise.
22241 (fix_trunc<mode>_stfiwx): Likewise.
22242 (fixuns_trunc<mode>_stfiwx): Likewise.
22243 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
22244 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
22245 (parity<mode>2_cmpb): Set length/type attr.
22246 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
22247 for 'mr.' to fast_compare.
22248 (bpermd_<mode>): Change type attr to popcnt.
22249 (p8_fmrgow_<mode>): New insns for power8 direct move support.
22250 (p8_mtvsrwz_1): Likewise.
22251 (p8_mtvsrwz_2): Likewise.
22252 (reload_fpr_from_gpr<mode>): Likewise.
22253 (p8_mtvsrd_1): Likewise.
22254 (p8_mtvsrd_2): Likewise.
22255 (p8_xxpermdi_<mode>): Likewise.
22256 (reload_vsx_from_gpr<mode>): Likewise.
22257 (reload_vsx_from_gprsf): Likewise.
22258 (p8_mfvsrd_3_<mode>): LIkewise.
22259 (reload_gpr_from_vsx<mode>): Likewise.
22260 (reload_gpr_from_vsxsf): Likewise.
22261 (p8_mfvsrd_4_disf): Likewise.
22262 (multi-word GPR splits): Do not split direct moves or quad memory
22265 2013-06-10 David Malcolm <dmalcolm@redhat.com>
22267 * tree-into-ssa.c (interesting_blocks): Make static.
22269 2013-06-10 Jakub Jelinek <jakub@redhat.com>
22272 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
22273 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
22274 Use DATA_ABI_ALIGNMENT for that case instead if defined.
22275 (get_variable_align): New function.
22276 (get_variable_section, emit_bss, emit_common,
22277 assemble_variable_contents, place_block_symbol): Use
22278 get_variable_align instead of DECL_ALIGN.
22279 (assemble_noswitch_variable): Add align argument, use it
22280 instead of DECL_ALIGN.
22281 (assemble_variable): Adjust caller. Use get_variable_align
22282 instead of DECL_ALIGN.
22283 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
22285 (DATA_ABI_ALIGNMENT): Define.
22286 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
22287 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
22288 opt is false, only return the psABI mandated alignment increase.
22289 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
22290 (DATA_ABI_ALIGNMENT): ... this.
22291 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
22292 (DATA_ABI_ALIGNMENT): ... this.
22293 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
22294 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
22295 (DATA_ABI_ALIGNMENT): ... this.
22296 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
22297 * doc/tm.texi: Regenerated.
22299 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
22301 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
22302 cmp_code to construct REG_EQUAL note.
22304 2013-06-09 Jakub Jelinek <jakub@redhat.com>
22307 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
22308 that operands[2] doesn't overlap with operands[0].
22310 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
22311 Jan Hubicka <jh@suse.cz>
22313 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
22314 hack to mark symbols as used.
22316 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
22318 PR rtl-optimization/57559
22319 * lra-constraints.c (process_alt_operands): Don't discourage
22320 memory with known offset for offsetable memory constraint.
22321 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
22323 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
22325 * varasm.c (struct oc_local_state): Reorder fields.
22326 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
22327 and adjust accordingly.
22328 (output_constructor): Reorder initialization code and adjust call to
22329 output_constructor_bitfield.
22331 2013-06-07 Jan Hubicka <jh@suse.cz>
22333 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
22335 2013-06-07 David Malcolm <dmalcolm@redhat.com>
22337 * tree-object-size.c (unknown): Make const.
22339 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22341 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
22342 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
22343 for last alternative in the cpu_facility attribute.
22345 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22348 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
22349 (xordi3): Change operand 2 constraint to arm_xordi_operand.
22350 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
22351 * config/arm/constraints.md (Dg): New constraint.
22352 * config/arm/neon.md (xordi3_neon): Remove.
22353 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
22354 * config/arm/predicates.md (arm_xordi_operand): New predicate.
22356 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22358 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
22359 Clean up alternatives.
22361 2013-06-07 Alan Modra <amodra@gmail.com>
22363 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
22366 2013-06-07 Alan Modra <amodra@gmail.com>
22368 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
22370 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22372 * config/arm/constraints.md (Df): New constraint.
22373 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
22374 Correct length attribute for last two alternatives.
22376 2013-06-07 Alan Modra <amodra@gmail.com>
22378 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
22379 override user -mfp-in-toc.
22380 (offsettable_ok_by_alignment): Consider just the current access
22381 rather than the whole object, unless BLKmode. Handle
22382 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
22383 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
22384 for -mcmodel=medium.
22385 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
22386 override user -mfp-in-toc or -msum-in-toc. Default to
22387 -mno-fp-in-toc for -mcmodel=medium.
22389 2013-06-06 DJ Delorie <dj@redhat.com>
22391 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
22392 TARGET_VALID_POINTER_MODE.
22394 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
22395 Pat Haugen <pthaugen@us.ibm.com>
22396 Peter Bergner <bergner@vnet.ibm.com>
22398 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
22399 Document new power8 builtins.
22401 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
22402 condition code register, to allow 128-bit logical operations to be
22403 done in the VSX or GPR registers.
22404 (nor<mode>3): Use the canonical form for nor.
22405 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
22406 vclz*, and vpopcnt* vector instructions.
22407 (nand<mode>3): Likewise.
22408 (orc<mode>3): Likewise.
22409 (clz<mode>2): LIkewise.
22410 (popcount<mode>2): Likewise.
22412 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
22413 that only the GPRs are recognized.
22415 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
22416 support for new power8 builtins.
22418 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
22420 (xscvdpspn): Likewise.
22426 (vpopcnt): Likewise.
22427 (vpopcntb): Likewise.
22428 (vpopcnth): Likewise.
22429 (vpopcntw): Likewise.
22430 (vpopcntd): Likewise.
22432 (vmrgew): Likewise.
22433 (vmrgow): Likewise.
22435 (eqv_v16qi3): Likewise.
22436 (eqv_v8hi3): Likewise.
22437 (eqv_v4si3): Likewise.
22438 (eqv_v2di3): Likewise.
22439 (eqv_v4sf3): Likewise.
22440 (eqv_v2df3): Likewise.
22442 (nand_v16qi3): Likewise.
22443 (nand_v8hi3): Likewise.
22444 (nand_v4si3): Likewise.
22445 (nand_v2di3): Likewise.
22446 (nand_v4sf3): Likewise.
22447 (nand_v2df3): Likewise.
22449 (orc_v16qi3): Likewise.
22450 (orc_v8hi3): Likewise.
22451 (orc_v4si3): Likewise.
22452 (orc_v2di3): Likewise.
22453 (orc_v4sf3): Likewise.
22454 (orc_v2df3): Likewise.
22456 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
22457 allow power8 quad mode in 64-bit.
22458 (rs6000_builtin_vectorized_function): Add support to vectorize
22459 ISA 2.07 count leading zeros, population count builtins.
22460 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
22461 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
22462 (builtin_function_type): Add vgbbd builtin function which takes an
22464 (altivec_expand_vec_perm_const): Add support for new power8 merge
22467 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
22468 that does not include TImdoe for use with 32-bit.
22469 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
22471 (UNSPEC_VSX_CVDPSPN): Likewise.
22472 (vsx_xscvdpspn): Likewise.
22473 (vsx_xscvspdpn): Likewise.
22474 (vsx_xscvdpspn_scalar): Likewise.
22475 (vsx_xscvspdpn_directmove): Likewise.
22476 (vsx_and<mode>3): Split logical operations into 32-bit and
22477 64-bit. Add support to do logical operations on TImode as well as
22478 VSX vector types. Allow logical operations to be done in either
22479 VSX registers or in general purpose registers in 64-bit mode. Add
22480 splitters if GPRs were used. For AND, add clobber of CCmode to
22481 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
22483 (vsx_and<mode>3_32bit): Likewise.
22484 (vsx_and<mode>3_64bit): Likewise.
22485 (vsx_ior<mode>3): Likewise.
22486 (vsx_ior<mode>3_32bit): Likewise.
22487 (vsx_ior<mode>3_64bit): Likewise.
22488 (vsx_xor<mode>3): Likewise.
22489 (vsx_xor<mode>3_32bit): Likewise.
22490 (vsx_xor<mode>3_64bit): Likewise.
22491 (vsx_one_cmpl<mode>2): Likewise.
22492 (vsx_one_cmpl<mode>2_32bit): Likewise.
22493 (vsx_one_cmpl<mode>2_64bit): Likewise.
22494 (vsx_nor<mode>3): Likewise.
22495 (vsx_nor<mode>3_32bit): Likewise.
22496 (vsx_nor<mode>3_64bit): Likewise.
22497 (vsx_andc<mode>3): Likewise.
22498 (vsx_andc<mode>3_32bit): Likewise.
22499 (vsx_andc<mode>3_64bit): Likewise.
22500 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
22501 and xxlorc instructions.
22502 (vsx_eqv<mode>3_64bit): Likewise.
22503 (vsx_nand<mode>3_32bit): Likewise.
22504 (vsx_nand<mode>3_64bit): Likewise.
22505 (vsx_orc<mode>3_32bit): Likewise.
22506 (vsx_orc<mode>3_64bit): Likewise.
22508 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
22510 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
22512 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
22513 (p8_vmrgow): Likewise.
22514 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
22515 GPRs to be split under VSX.
22516 (p8v_clz<mode>2): Add power8 count leading zero support.
22517 (p8v_popcount<mode>2): Add power8 population count support.
22518 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
22521 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
22524 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
22526 (vec_nand): Likewise.
22527 (vec_vclz): Likewise.
22528 (vec_vclzb): Likewise.
22529 (vec_vclzd): Likewise.
22530 (vec_vclzh): Likewise.
22531 (vec_vclzw): Likewise.
22532 (vec_vgbbd): Likewise.
22533 (vec_vmrgew): Likewise.
22534 (vec_vmrgow): Likewise.
22535 (vec_vpopcnt): Likewise.
22536 (vec_vpopcntb): Likewise.
22537 (vec_vpopcntd): Likewise.
22538 (vec_vpopcnth): Likewise.
22539 (vec_vpopcntw): Likewise.
22541 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
22543 PR rtl-optimization/57468
22544 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
22547 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
22549 PR rtl-optimization/57459
22550 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
22551 type when setting live regs.
22553 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
22555 * config/s390/s390.opt (mlra): New option.
22556 * config/s390/s390.c (s390_decompose_address): Check displacement
22557 for all registers for LRA.
22558 (s390_secondary_reload): Don't used secondary reloads for LRA.
22559 (s390_lra_p): New function.
22560 (TARGET_LRA_P): Define.
22561 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
22562 of attribute cpu_facility to zarch for the last alternative.
22563 (*cmpmem_short): Ditto.
22565 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
22567 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
22568 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
22569 (arm_expand_prologue): Likewise.
22571 2013-06-06 Teresa Johnson <tejohnson@google.com>
22574 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
22575 as this is now done by redirect_edge_and_branch_force.
22576 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
22577 barriers, and fix interaction with splitting.
22578 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
22579 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
22580 reflect changes made in the routine.
22581 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
22582 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
22583 since this is called in cfglayout mode, and replace partition fixup
22584 with assert as that is now done by force_nonfallthru_and_redirect.
22585 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
22586 already be marked with region crossing note.
22587 (insert_section_boundary_note): Make non-static, gate on flag
22588 has_bb_partition, rewrite to also check for multiple partitions.
22589 (rest_of_handle_reorder_blocks): Remove call to
22590 insert_section_boundary_note, now done later during free_cfg.
22591 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
22592 * bb-reorder.h (insert_section_boundary_note): Declare.
22593 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
22594 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
22595 invoke insert_section_boundary_note.
22596 (try_redirect_by_replacing_jump): Remove unnecessary
22597 check for region crossing note.
22598 (fixup_partition_crossing): New function.
22599 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
22600 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
22601 in non-cfglayout mode.
22602 (force_nonfallthru_and_redirect): Fixup partition boundaries,
22603 remove old code that tried to do this. Emit barrier correctly
22604 when we are in cfglayout mode.
22605 (last_bb_in_partition): New function.
22606 (rtl_split_edge): Correctly fixup partition boundaries.
22607 (commit_one_edge_insertion): Remove old code that tried to
22608 fixup region crossing edge since this is now handled in
22609 split_block, and set up insertion point correctly since
22610 block may now end in a jump.
22611 (verify_hot_cold_block_grouping): Guard against checking when not in
22612 linearized RTL mode.
22613 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
22615 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
22616 rtl_verify_flow_info, so not called in cfglayout mode.
22617 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
22618 (fixup_reorder_chain): Remove old code that attempted to fixup region
22619 crossing note as this is now handled in force_nonfallthru_and_redirect.
22620 (duplicate_insn_chain): Don't duplicate switch section notes.
22621 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
22623 * basic-block.h (emit_barrier_after_bb): Declare.
22625 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22627 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
22628 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
22629 arm_usatsihi): Adjust alternatives for arm_restrict_it.
22631 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22633 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
22635 * config/arm/ldmstm.md: Regenerate.
22637 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22639 * config/arm/sync.md (atomic_loaddi_1):
22640 Disable predication for arm_restrict_it.
22641 (arm_load_exclusive<mode>): Likewise.
22642 (arm_load_exclusivesi): Likewise.
22643 (arm_load_exclusivedi): Likewise.
22644 (arm_load_acquire_exclusive<mode>): Likewise.
22645 (arm_load_acquire_exclusivesi): Likewise.
22646 (arm_load_acquire_exclusivedi): Likewise.
22647 (arm_store_exclusive<mode>): Likewise.
22648 (arm_store_exclusive<mode>): Likewise.
22649 (arm_store_release_exclusivedi): Likewise.
22650 (arm_store_release_exclusive<mode>): Likewise.
22652 2013-06-06 Richard Biener <rguenther@suse.de>
22654 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
22656 (lto_tag_is_tree_code_p): Adjust.
22657 (lto_tag_is_gimple_code_p): Likewise.
22658 (lto_gimple_code_to_tag): Likewise.
22659 (lto_tag_to_gimple_code): Likewise.
22660 (lto_tree_code_to_tag): Likewise.
22661 (lto_tag_to_tree_code): Likewise.
22662 * data-streamer.h (streamer_write_hwi_in_range): Use
22663 uhwi streaming to stream the normalized range.
22664 (streamer_read_hwi_in_range): Likewise.
22666 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22668 * config/arm/arm.md (enabled_for_depr_it): New attribute.
22669 (predicable_short_it): Likewise.
22670 (predicated): Likewise.
22671 (enabled): Handle above.
22672 (define_cond_exec): Set predicated attribute to yes.
22674 2013-06-05 Mike Stump <mikestump@comcast.net>
22676 * gdbinit.in (__FUNCTION__): Add.
22678 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
22680 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
22681 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
22683 2013-06-05 Jan Hubicka <jh@suse.cz>
22685 * varasm.c (mark_decl_referenced): Revert the removal until targets
22688 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
22690 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
22691 instead of mark_decl_referenced.
22693 2013-06-05 Jan Hubicka <jh@suse.cz>
22695 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
22696 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
22697 and symtab_used_from_object_file_p.
22698 (cgraph_make_node_local_1): Clear forced_by_abi.
22699 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
22700 * cgraph.h (symtab_node_base): Add forced_by_abi.
22701 (decide_is_variable_needed): Remove.
22702 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
22703 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
22704 (decide_is_symbol_needed): ... this one; handle symbols in general;
22705 always analyze virtuals; honnor forced_by_abi.
22706 (cgraph_finalize_function): Update.
22707 (varpool_finalize_decl): Update.
22708 (symbol_defined_and_needed): Remove.
22709 (analyze_functions): Update.
22710 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
22711 output_refs, input_overwrite_node): Handle forced_by_abi.
22712 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
22713 (address_taken_from_non_vtable_p): ... this one.
22714 (comdat_can_be_unshared_p_1): New function.
22715 (cgraph_comdat_can_be_unshared_p): Rename to ...
22716 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
22717 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
22718 (function_and_variable_visibility): Clear forced_by_abi as needed.
22719 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
22720 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
22721 * symtab.c (dump_symtab_base): Dump forced_by_abi.
22722 * varpool.c (decide_is_variable_needed): Remove.
22724 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22726 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
22727 (arm_option_override): Override arm_restrict_it where appropriate.
22728 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
22729 * config/arm/arm.opt (mrestrict-it): New command-line option.
22730 * doc/invoke.texi: Document -mrestrict-it.
22732 2013-06-05 David Malcolm <dmalcolm@redhat.com>
22734 * tsan.c (tsan_atomic_table): Make const.
22736 2013-06-05 Richard Biener <rguenther@suse.de>
22738 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
22739 index associated with the tree we are supposed to replace.
22740 * tree-streamer-out.c (pack_ts_base_value_fields): Output
22741 TREE_ASM_WRITTEN as zero for everything but SSA names.
22743 2013-06-05 David Malcolm <dmalcolm@redhat.com>
22745 * tree-ssa-structalias.c (call_stmt_vars): Make static.
22747 2013-06-04 Jan Hubicka <jh@suse.cz>
22749 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
22750 (input_node, input_varpool_node): Handle correctly external same
22752 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
22753 nodes at ltrans stage.
22755 2013-06-04 Jan Hubicka <jh@suse.cz>
22757 * ipa-inline.c (update_caller_keys): Fix availability test.
22758 (update_callee_keys): Likewise.
22759 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
22760 to follow ELF standard.
22762 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
22764 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
22765 (mips64r5900el-*-elf*): New configurations.
22766 * config/mips/mips-cpus.def (r5900): New processor.
22767 * config/mips/mips-tables.opt: Regenerate.
22768 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
22769 (mips_issue_rate): Handle PROCESSOR_R5900.
22770 (mips_reorg_process_insns): Force reorder mode for the R5900.
22771 * config/mips/mips.h (TARGET_MIPS5900): Define.
22772 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
22774 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
22776 * config/mips/mips.md (processor): Add r5900.
22777 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
22779 2013-06-04 Ian Bolton <ian.bolton@arm.com>
22781 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
22782 into function to generate MOVI instruction.
22783 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
22784 (aarch64_preferred_simd_mode): Turn into wrapper.
22785 (aarch64_output_scalar_simd_mov_immediate): New function.
22786 * config/aarch64/aarch64-protos.h: Add prototype for above.
22788 2013-06-04 Ian Bolton <ian.bolton@arm.com>
22790 * config/aarch64/aarch64.c (simd_immediate_info): Remove
22791 element_char member.
22792 (sizetochar): Return signed char.
22793 (aarch64_simd_valid_immediate): Remove elchar and other
22794 unnecessary variables.
22795 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
22796 Calculate element_char as required.
22797 * config/aarch64/aarch64-protos.h: Update and move prototype
22798 for aarch64_output_simd_mov_immediate.
22799 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
22802 2013-06-04 Ian Bolton <ian.bolton@arm.com>
22804 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
22805 information completed by aarch64_simd_valid_immediate.
22806 (aarch64_legitimate_constant_p): Update arguments.
22807 (aarch64_simd_valid_immediate): Work with struct rather than many
22809 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
22810 (aarch64_simd_make_constant): Update arguments.
22811 (aarch64_output_simd_mov_immediate): Work with struct rather than
22812 many pointers. Output immediate directly rather than as operand.
22813 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
22815 * config/aarch64/constraints.md (Dn): Update arguments.
22817 2013-06-04 Ian Bolton <ian.bolton@arm.com>
22819 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
22821 (aarch64_simd_immediate_valid_for_move): Remove.
22822 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
22823 (aarch64_simd_make_constant): Update call.
22824 (aarch64_output_simd_mov_immediate): Update call.
22825 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
22827 * config/aarch64/constraints.md (Dn): Update call.
22829 2013-06-04 Ian Bolton <ian.bolton@arm.com>
22831 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
22832 return type to bool for prototype.
22833 (aarch64_legitimate_constant_p): Check for true instead of not -1.
22834 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
22835 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
22837 2013-06-04 Catherine Moore <clm@codesourcery.com>
22839 * config/mips/mips.opt (meva): New.
22840 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
22841 (ASM_SPEC): Handle -meva.
22842 * doc/invoke.texi (meva): Document.
22844 2013-06-04 Alan Modra <amodra@gmail.com>
22846 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
22849 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22851 * rtl.def: Add extra fourth optional field to define_cond_exec.
22852 * gensupport.c (process_one_cond_exec): Process attributes from
22854 * doc/md.texi: Document fourth field in define_cond_exec.
22856 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
22858 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
22859 out the processing order as in store_bit_field_1.
22861 2013-06-04 Jan Hubicka <jh@suse.cz>
22863 PR middle-end/57500
22864 * cgraphunit.c (cgraph_process_same_body_aliases): Create
22865 non-VAR_DECL node if it does not exist yet.
22867 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
22869 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
22870 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
22871 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
22872 target_cpu_default setting.
22874 2013-06-03 Teresa Johnson <tejohnson@google.com>
22876 * dumpfile.c (opt_info_switch_p): Change -fopt-info
22877 default to -fopt-info=optimized instead of all.
22878 * doc/invoke.texi: Ditto.
22879 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
22880 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
22881 (execute_vect_slp): Emit BB vectorization success under
22882 MSG_OPTIMIZED_LOCATIONS.
22883 * tree-vect-slp.c (vect_slp_transform_bb): Change
22884 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
22885 * tree-vect-loop.c (vect_transform_loop): Ditto.
22887 2013-06-03 Jason Merrill <jason@redhat.com>
22890 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
22891 Use TARGET_EXPR for C++.
22893 2013-06-03 Jakub Jelinek <jakub@redhat.com>
22895 PR rtl-optimization/57268
22896 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
22897 if DEBUG_INSN_P (insn).
22900 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
22902 PR rtl-optimization/57268
22903 * sched-deps.c (sched_analyze_2): Flush dependence lists if
22904 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
22906 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
22908 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
22909 (ix86_avoid_lea_for_addr): Likewise.
22910 (exact_dependency_1): Likewise.
22911 (ix86_adjust_cost): Likewise.
22912 (swap_top_of_ready_list): Fix formatting and !reload_completed check
22914 (do_reorder_for_imul): Fix typo, formatting and
22915 !reload_completed check removed.
22916 (ix86_sched_reorder): Fix typo and formatting.
22917 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
22920 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
22922 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
22924 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
22926 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
22927 <STRING_CST>: Likewise.
22928 <VECTOR_CST>: Likewise.
22930 2013-06-01 Janus Weil <janus@gcc.gnu.org>
22931 Mikael Morin <mikael@gcc.gnu.org>
22933 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
22934 * config.in: Regenerated.
22935 * configure: Regenerated.
22937 2013-06-01 Jan Hubicka <jh@suse.cz>
22939 PR middle-end/57366
22940 * cgraphunit.c (compile): When weakref is not supported,
22941 set up transparent aliases before final output pass.
22942 * varasm.c (assemble_alias): Do not try to do it here.
22944 2013-06-01 Jan Hubicka <jh@suse.cz>
22946 PR middle-end/57467
22947 * passes.c (for_per_function): Skip unanalyzed functions.
22949 2013-06-01 Jan Hubicka <jh@suse.cz>
22951 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
22952 (lto_symtab_merge_symbols_1): ... this one.
22953 (lto_symtab_merge_cgraph_nodes): Rename to ...
22954 (lto_symtab_merge_symbols): ... this one; simplify.
22955 * cgraph.c (same_body_aliases_done): Rename to ...
22956 (cpp_implicit_aliases_done): ... this one.
22957 (cgraph_create_function_alias): Update.
22958 (cgraph_same_body_alias): Update.
22959 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
22960 (verify_edge_corresponds_to_fndecl): Simplify.
22961 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
22962 (cgraph_node): Remove same_body_alias.
22963 (varpool_node): Remove alias_of and extra_name_alias.
22964 (same_body_aliases_done): Rename to ..
22965 (cpp_implicit_aliases_done): ... this one.
22966 (symtab_alias_ultimate_target): Add default parameter.
22967 (symtab_resolve_alias): New function.
22968 (fixup_same_cpp_alias_visibility): Declare.
22969 (cgraph_function_node): Add default parameter.
22970 (cgraph_node_asm_name): Likewise.
22971 (cgraph_function_or_thunk_node): Add default parameter; do
22972 not ICE when it is NULL.
22973 (varpool_variable_node): Likewise.
22974 * tree-emutls.c (create_emultls_var): Update.
22975 (ipa_lower_emutls): Update.
22976 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
22977 (cgraph_reset_node): Reset alias info.
22978 (cgraph_finalize_function): Update.
22979 (fixup_same_cpp_alias_visibility): Move to symtab.c.
22980 (analyze_function): Simplify.
22981 (cgraph_process_same_body_aliases): Simplify.
22982 (analyze_functions): Fixup same body aliases.
22983 (handle_alias_pairs): Simplify.
22984 (assemble_thunk): Update.
22985 (assemble_thunks_and_aliases): Update.
22986 (output_weakrefs): Rewrite.
22987 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
22988 (lto_output_varpool_node): Likewise.
22989 (compute_ltrans_boundary): Remve assert.
22990 (get_alias_symbol): New functoin.
22991 (input_node): Rewrite alias handling.
22992 (input_varpool_node): Likewise.
22993 * ipa-pure-const.c (propagate_pure_const): Fix formating.
22994 * ipa.c (process_references): Handle weakrefs correctly.
22995 (symtab_remove_unreachable_nodes): Likewise.
22996 * trans-mem.c (get_cg_data): Update.
22997 (ipa_tm_create_version_alias): Update.
22998 (ipa_tm_execute): Update.
22999 * symtab.c (dump_symtab_base): Dump aliases.
23000 (verify_symtab_base): Verify aliases.
23001 (symtab_node_availability): New function.
23002 (symtab_alias_ultimate_target): Simplify.
23003 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
23004 handle all the fixup cases.
23005 (symtab_resolve_alias): New function.
23006 * passes.c (ipa_write_summaries): Handle weakrefs.
23007 * varpool.c (varpool_analyze_node): Simplify.
23008 (assemble_aliases): Update.
23009 (varpool_create_variable_alias): Simplify.
23010 (varpool_extra_name_alias): Simplify.
23011 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
23012 (lto_symtab_merge_symbols): ... this one.
23014 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
23017 PR rtl-optimization/57268
23018 * sched-deps.c (sched_analyze_2): Flush dependence lists if
23019 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
23021 2013-06-01 Tobias Burnus <burnus@net-b.de>
23023 Partially reverted:
23024 2013-05-31 Tobias Burnus <burnus@net-b.de>
23026 PR middle-end/57073
23027 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
23030 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
23032 PR rtl-optimization/57268
23033 * sched-deps.c (sched_analyze_2): Flush dependence lists if
23034 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
23036 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
23038 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
23039 unordered comparison operators when -fno-trapping-math is in effect
23041 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
23042 and implement unordered comparison operators properly on the e500.
23044 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
23046 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
23047 for constant scalar integers.
23048 (simplify_relational_operation_1): Likewise.
23050 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
23052 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
23053 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
23056 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
23057 Igor Zamyatin <igor.zamyatin@intel.com>
23059 Silvermont (SLM) architecture performance tuning.
23060 * config/i386/i386.h (enum ix86_tune_indices): Add
23061 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
23062 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
23064 * config/i386/i386.c (initial_ix86_tune_features)
23065 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
23066 (ix86_lea_outperforms): Handle Silvermont tuning.
23067 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
23069 (ix86_use_lea_for_mov): Likewise.
23070 (ix86_avoid_lea_for_addr): Likewise.
23071 (ix86_lea_for_add_ok): Likewise.
23072 (exact_dependency_1): New function.
23073 (exact_store_load_dependency): Likewise.
23074 (ix86_adjust_cost): Handle Silvermont tuning.
23075 (do_reoder_for_imul): Likewise.
23076 (swap_top_of_ready_list): New function.
23077 (ix86_sched_reorder): Changed to handle Silvermont tuning.
23079 * config/i386/i386.md (peepholes that split memory operand in fp
23082 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
23084 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
23085 Remove un-necessary braces.
23087 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
23089 * config/aarch64/aarch64.c (aarch64_classify_symbol):
23090 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
23092 2013-05-31 Tobias Burnus <burnus@net-b.de>
23094 PR middle-end/57073
23095 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
23097 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23100 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
23101 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
23102 * config/arm/neon.md (iordi3_neon): Remove.
23103 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
23104 * config/arm/predicates.md (imm_for_neon_logic_operand):
23105 Move to earlier in the file.
23106 (neon_logic_op2): Likewise.
23107 (arm_iordi_operand_neon): New predicate.
23109 2013-05-31 Richard Biener <rguenther@suse.de>
23111 PR tree-optimization/57478
23112 PR tree-optimization/57453
23113 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
23116 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
23118 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
23119 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
23121 2013-05-30 Tobias Burnus <burnus@net-b.de>
23122 Thomas Koenig <tkoenig@gcc.gnu.org>
23124 PR middle-end/57073
23125 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
23126 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
23128 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
23130 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
23132 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
23134 * target.def (register_usage_leveling_p): New hook.
23135 * targhooks.c (default_register_usage_leveling_p): New.
23136 * targhooks.h (default_register_usage_leveling_p): New prototype.
23137 * lra-assigns.c (register_usage_leveling_p): Use the hook.
23138 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
23139 * doc/tm.texi: Update.
23140 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
23142 2013-05-30 Ian Bolton <ian.bolton@arm.com>
23144 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
23145 (*insv_reg<mode>): New define_insn.
23147 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
23149 PR rtl-optimization/57439
23150 * postreload.c (move2add_valid_value_p): Check that we have
23151 a zero subreg_regno_offset when accessing the register in
23152 the requested mode.
23154 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
23155 Igor Zamyatin <igor.zamyatin@intel.com>
23157 Silvermont (SLM) architecture pipeline model, tuning and
23159 * config.gcc: Add slm config options and target.
23161 * config/i386/slm.md: New.
23163 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
23165 * config/i386/i386-c.c (ix86_target_macros_internal): New case
23167 (ix86_target_macros_internal): Likewise.
23169 * config/i386/i386.c (slm_cost): New cost.
23170 (m_SLM): New macro flag.
23171 (initial_ix86_tune_features): Set m_SLM.
23172 (x86_accumulate_outgoing_args): Likewise.
23173 (x86_arch_always_fancy_math_387): Likewise.
23174 (processor_target_table): Add slm cost.
23175 (cpu_names): Add slm cpu name.
23176 (x86_option_override_internal): Set SLM ISA.
23177 (ix86_issue_rate): New case PROCESSOR_SLM.
23178 (ia32_multipass_dfa_lookahead): Likewise.
23179 (fold_builtin_cpu): Add slm.
23181 * config/i386/i386.h (TARGET_SLM): New target macro.
23182 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
23183 (processor_type): Add PROCESSOR_SLM.
23185 * config/i386/i386.md (cpu): Add new value "slm".
23186 (slm.md): Include slm.md.
23188 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
23189 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23191 * config/arm/arm-protos.h: Add and update function protos.
23192 * config/arm/arm.c (use_simple_return_p): New added.
23193 (thumb2_expand_return): Check simple_return flag.
23194 * config/arm/arm.md: Add simple_return and conditional simple_return.
23195 * config/arm/iterators.md: Add iterator for return and simple_return.
23197 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23199 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
23200 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
23201 (arm_emit_vfp_multi_reg_pop): Likewise.
23202 (thumb2_emit_ldrd_pop): Likewise.
23203 (arm_expand_epilogue): Add misc REG_CFA notes.
23204 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
23206 2013-05-29 Lawrence Crowl <crowl@google.com>
23208 * config/arm/t-arm: Update for below.
23210 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
23211 Change type to hash_table. Update dependent calls and types.
23213 * config/i386/t-cygming: Update for below.
23215 * config/i386/t-interix: Update for below.
23217 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
23218 Change type to hash_table. Update dependent calls and types.
23219 (i386_find_on_wrapper_list::wrappers): Likewise.
23221 * config/ia64/t-ia64: Update for below.
23223 * config/ia64/ia64.c (bundle_state_table):
23224 Change type to hash_table. Update dependent calls and types.
23226 * config/mips/mips.c (mips_reorg_process_insns::htab):
23227 Change type to hash_table. Update dependent calls and types.
23229 * config/sol2.c (solaris_comdat_htab):
23230 Change type to hash_table. Update dependent calls and types.
23232 * config/t-sol2: Update for above.
23234 2013-05-29 Teresa Johnson <tejohnson@google.com>
23236 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
23237 functions are not yet marked as defined.
23239 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
23240 Pat Haugen <pthaugen@us.ibm.com>
23241 Peter Bergner <bergner@vnet.ibm.com>
23243 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
23247 (vrotl<mode>3): Likewise.
23248 (vashl<mode>3): Likewise.
23249 (vlshr<mode>3): Likewise.
23250 (vashr<mode>3): Likewise.
23252 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
23253 support for power8 V2DI builtins.
23255 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
23256 power8 V2DI builtins.
23257 (vupkhsw): Likewise.
23258 (vupklsw): Likewise.
23259 (vaddudm): Likewise.
23260 (vminsd): Likewise.
23261 (vmaxsd): Likewise.
23262 (vminud): Likewise.
23263 (vmaxud): Likewise.
23264 (vpkudum): Likewise.
23265 (vpksdss): Likewise.
23266 (vpkudus): Likewise.
23267 (vpksdus): Likewise.
23272 (vsubudm): Likewise.
23273 (vcmpequd): Likewise.
23274 (vcmpgtsd): Likewise.
23275 (vcmpgtud): Likewise.
23276 (vcmpequd_p): Likewise.
23277 (vcmpgtsd_p): Likewise.
23278 (vcmpgtud_p): Likewise.
23279 (vupkhsw): Likewise.
23280 (vupklsw): Likewise.
23281 (vaddudm): Likewise.
23282 (vmaxsd): Likewise.
23283 (vmaxud): Likewise.
23284 (vminsd): Likewise.
23285 (vminud): Likewise.
23286 (vpksdss): Likewise.
23287 (vpksdus): Likewise.
23288 (vpkudum): Likewise.
23289 (vpkudus): Likewise.
23294 (vsubudm): Likewise.
23296 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
23297 support for power8 V2DI instructions.
23299 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
23300 power8 V2DI instructions. Combine pack and unpack insns to use an
23301 iterator for each mode. Check whether a particular mode supports
23302 Altivec instructions instead of just checking TARGET_ALTIVEC.
23303 (UNSPEC_VPKUWUM): Likewise.
23304 (UNSPEC_VPKSHSS): Likewise.
23305 (UNSPEC_VPKSWSS): Likewise.
23306 (UNSPEC_VPKUHUS): Likewise.
23307 (UNSPEC_VPKSHUS): Likewise.
23308 (UNSPEC_VPKUWUS): Likewise.
23309 (UNSPEC_VPKSWUS): Likewise.
23310 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
23311 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
23312 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
23313 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
23314 (UNSPEC_VUPKHSB): Likewise.
23315 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
23316 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
23317 (UNSPEC_VUPKHSH): Likewise.
23318 (UNSPEC_VUPKLSB): Likewise.
23319 (UNSPEC_VUPKLSH): Likewise.
23321 (VI_char): Likewise.
23322 (VI_scalar): Likewise.
23323 (VI_unit): Likewise.
23325 (VP_small): Likewise.
23326 (VP_small_lc): Likewise.
23327 (VU_char): Likewise.
23328 (add<mode>3): Likewise.
23329 (altivec_vaddcuw): Likewise.
23330 (altivec_vaddu<VI_char>s): Likewise.
23331 (altivec_vadds<VI_char>s): Likewise.
23332 (sub<mode>3): Likewise.
23333 (altivec_vsubcuw): Likewise.
23334 (altivec_vsubu<VI_char>s): Likewise.
23335 (altivec_vsubs<VI_char>s): Likewise.
23336 (altivec_vavgs<VI_char>): Likewise.
23337 (altivec_vcmpbfp): Likewise.
23338 (altivec_eq<mode>): Likewise.
23339 (altivec_gt<mode>): Likewise.
23340 (altivec_gtu<mode>): Likewise.
23341 (umax<mode>3): Likewise.
23342 (smax<mode>3): Likewise.
23343 (umin<mode>3): Likewise.
23344 (smin<mode>3): Likewise.
23345 (altivec_vpkuhum): Likewise.
23346 (altivec_vpkuwum): Likewise.
23347 (altivec_vpkshss): Likewise.
23348 (altivec_vpkswss): Likewise.
23349 (altivec_vpkuhus): Likewise.
23350 (altivec_vpkshus): Likewise.
23351 (altivec_vpkuwus): Likewise.
23352 (altivec_vpkswus): Likewise.
23353 (altivec_vpks<VI_char>ss): Likewise.
23354 (altivec_vpks<VI_char>us): Likewise.
23355 (altivec_vpku<VI_char>us): Likewise.
23356 (altivec_vpku<VI_char>um): Likewise.
23357 (altivec_vrl<VI_char>): Likewise.
23358 (altivec_vsl<VI_char>): Likewise.
23359 (altivec_vsr<VI_char>): Likewise.
23360 (altivec_vsra<VI_char>): Likewise.
23361 (altivec_vsldoi_<mode>): Likewise.
23362 (altivec_vupkhsb): Likewise.
23363 (altivec_vupkhs<VU_char>): Likewise.
23364 (altivec_vupkls<VU_char>): Likewise.
23365 (altivec_vupkhsh): Likewise.
23366 (altivec_vupklsb): Likewise.
23367 (altivec_vupklsh): Likewise.
23368 (altivec_vcmpequ<VI_char>_p): Likewise.
23369 (altivec_vcmpgts<VI_char>_p): Likewise.
23370 (altivec_vcmpgtu<VI_char>_p): Likewise.
23371 (abs<mode>2): Likewise.
23372 (vec_unpacks_hi_v16qi): Likewise.
23373 (vec_unpacks_hi_v8hi): Likewise.
23374 (vec_unpacks_lo_v16qi): Likewise.
23375 (vec_unpacks_hi_<VP_small_lc>): Likewise.
23376 (vec_unpacks_lo_v8hi): Likewise.
23377 (vec_unpacks_lo_<VP_small_lc>): Likewise.
23378 (vec_pack_trunc_v8h): Likewise.
23379 (vec_pack_trunc_v4si): Likewise.
23380 (vec_pack_trunc_<mode>): Likewise.
23382 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
23384 (vec_vmaxsd): Likewise.
23385 (vec_vmaxud): Likewise.
23386 (vec_vminsd): Likewise.
23387 (vec_vminud): Likewise.
23388 (vec_vpksdss): Likewise.
23389 (vec_vpksdus): Likewise.
23390 (vec_vpkudum): Likewise.
23391 (vec_vpkudus): Likewise.
23392 (vec_vrld): Likewise.
23393 (vec_vsld): Likewise.
23394 (vec_vsrad): Likewise.
23395 (vec_vsrd): Likewise.
23396 (vec_vsubudm): Likewise.
23397 (vec_vupkhsw): Likewise.
23398 (vec_vupklsw): Likewise.
23400 2013-05-29 Jan Hubicka <jh@suse.cz>
23402 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
23403 flags; reorder rest of fields in more consistent way.
23404 (varpool_node): Remove analyzed, finalized and alias.
23405 (cgraph_ndoe): Likewise.
23406 (symtab_alias_ultimate_target): New function.
23407 (cgraph_function_node): Move offline.
23408 (cgraph_reset_node): Declare.
23409 (cgraph_comdat_can_be_unshared_p): Remove.
23410 (varpool_remove_initializer): Declare.
23411 (varpool_first_defined_variable, varpool_next_defined_variable
23412 cgraph_first_defined_function, cgraph_next_defined_function): Update.
23413 (cgraph_function_with_gimple_body_p): Update.
23414 (varpool_all_refs_explicit_p): Update.
23415 (symtab_alias_target): New function.
23416 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
23417 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
23418 (cgraph_function_or_thunk_node): Simplify using
23419 symtab_alias_ultimate_target.
23420 (varpool_variable_node): Likewise.
23421 * cgraph.c (cgraph_create_function_alias): Update.
23422 (cgraph_add_thunk): Update.
23423 (cgraph_remove_node): Update.
23424 (dump_cgraph_node): Do not dump removed flags.
23425 (cgraph_function_body_availability): Update.
23426 (cgraph_propagate_frequency): Update.
23427 (verify_cgraph_node): Check sanity of local flag.
23428 (cgraph_function_node): Move here from cgraph.h; revamp for
23429 cgraph_function_or_thunk_node.
23430 * lto-symtab.c (lto_varpool_replace_node): Update.
23431 (lto_symtab_resolve_can_prevail_p): Update.
23432 (lto_symtab_merge_cgraph_nodes): Update.
23433 * ipa-cp.c (determine_versionability, initialize_node_lattices,
23434 propagate_constants_accross_call, devirtualization_time_bonus,
23435 ipcp_propagate_stage): Update.
23436 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
23437 * ipa-inline-transform.c (clone_inlined_nodes,
23438 preserve_function_body_p): Update.
23439 * ipa-reference.c (propagate): Update.
23440 (write_node_summary_p): Update.
23441 * toplev.c (wrapup_global_declaration_2): Update.
23442 * cgraphunit.c (cgraph_analyze_function): Rename to ...
23443 (analyze_function) ... this one.
23444 (cgraph_process_new_functions): Update.
23445 (cgraph_reset_node): Export.
23446 (cgraph_finalize_function): Update.
23447 (cgraph_add_new_function): Update.
23448 (process_function_and_variable_attributes): Update.
23449 (varpool_finalize_decl): Update.
23450 (symbol_finalized): Remove.
23451 (symbol_finalized_and_needed): Rename to ...
23452 (symbol_defined_and_needed): ... update.
23453 (cgraph_analyze_functions): Update.
23454 (handle_alias_pairs): Update.
23455 (mark_functions_to_output): Update.
23456 (assemble_thunk): Update.
23457 (output_in_order): Update.
23458 (output_weakrefs): Update.
23459 (finalize_compilation_unit): Update.
23460 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
23461 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
23462 input_node, input_varpool_node): Update.
23463 * dbxout.c (dbxout_expand_expr): Update.
23464 * cgraphclones.c (cgraph_clone_node): Update.
23465 (cgraph_copy_node_for_versioning): Update.
23466 (cgraph_materialize_clone): Update.
23467 (cgraph_materialize_all_clones): Update.
23468 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
23469 propagate_pure_const, propagate_nothrow): Update.
23470 * lto-streamer-out.c (lto_output, write_symbol): Update.
23471 * ipa-utils.c (ipa_reverse_postorder): Update.
23472 * ipa-inline.c (can_inline_edge_p): Update.
23473 (update_caller_keys, ipa_inline): Update.
23474 * dwarf2out.c (reference_to_unused,
23475 premark_types_used_by_global_vars_helper): Update.
23476 * tree-eh.c (tree_could_trap_p): Update.
23477 * ipa-split.c (consider_split, execute_split_functions): Update.
23478 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
23479 has_addr_references_p): Update; move ahead in file for better
23481 (process_references): Simplify.
23482 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
23483 bodies are removed.
23484 (cgraph_comdat_can_be_unshared_p): Make static.
23485 (cgraph_externally_visible_p): Update.
23486 (varpool_externally_visible_p): Update.
23487 (function_and_variable_visibility): Update.
23488 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
23489 ipa_tm_mark_force_output_node): Update.
23490 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
23491 estimate_edge_devirt_benefit, inline_generate_summary,
23492 inline_write_summary): Update.
23493 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
23494 * ipa-prop.c (ipa_compute_jump_functions): Update.
23495 (ipa_print_node_params, ipa_prop_read_section,
23496 ipa_update_after_lto_read, read_replacements_section): Update.
23497 * varasm.c (mark_decl_referenced): Update.
23498 (assemble_alias, dump_tm_clone_pairs): Update.
23499 * tree-inline.c (copy_bb): Update.
23500 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
23502 * symtab.c (dump_symtab_base): Print new flags.
23503 (verify_symtab_base): Verify new flags.
23504 (symtab_alias_ultimate_target): New function.
23505 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
23506 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
23508 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
23510 * i386.c (ix86_get_function_versions_dispatcher,
23511 ix86_generate_version_dispatcher_body): Update.
23512 (fold_builtin_cpu): Use varpool_add_new_variable.
23513 * varpool.c (varpool_remove_initializer): Break out from ...
23514 (varpool_remove_node): ... this one.
23515 (dump_varpool_node, varpool_node_for_asm,
23516 cgraph_variable_initializer_availability, varpool_analyze_node,
23517 varpool_assemble_decl, varpool_remove_unreferenced_decls,
23518 varpool_finalize_named_section_flags, varpool_create_variable_alias):
23521 2013-05-29 Jan Hubicka <jh@suse.cz>
23523 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
23525 2013-05-29 Easwaran Raman <eraman@google.com>
23527 PR tree-optimization/57442
23528 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
23529 when control exits the main loop.
23531 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
23533 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
23535 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
23536 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
23537 * rx/t-rx: Add rx100 under multi library matches option for nofpu
23540 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23542 PR tree-optimization/57441
23543 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
23544 Don't limit size of incr_vec to number of candidates.
23546 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
23548 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
23549 and mips16 directories.
23550 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
23551 (MULTILIB_DIRNAMES): Ditto.
23552 (MULTILIB_EXCEPTIONS): Add new exceptions.
23553 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
23554 (MULTILIB_DIRNAMES): Ditto.
23555 (MULTILIB_EXCEPTIONS): Add new exceptions.
23557 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
23558 Marcus Shawcroft <marcus.shawcroft@arm.com>
23560 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
23561 SYMBOL_TINY_ABSOLUTE.
23562 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
23563 SYMBOL_TINY_ABSOLUTE.
23564 (aarch64_expand_mov_immediate): Likewise.
23565 (aarch64_classify_symbol): Likewise.
23566 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
23567 Permit SYMBOL_TINY_ABSOLUTE.
23568 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
23570 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
23571 Marcus Shawcroft <marcus.shawcroft@arm.com>
23573 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
23574 Refactor if/switch. Replace gcc_assert with if.
23576 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
23578 * config/i386/i386.c (initial_ix86_tune_features): Enable
23579 FP Reassociation for AMD bdver1 and bdver2.
23581 2013-05-29 Martin Jambor <mjambor@suse.cz>
23583 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
23584 and IMAGPART_EXPR do not occur within other handled_components.
23586 2013-05-29 Richard Biener <rguenther@suse.de>
23588 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
23589 access on whether the use is in the BB we currently try to
23591 (vect_bb_vectorization_profitable_p): Pass the BB we currently
23592 vectorize to vect_bb_slp_scalar_cost.
23594 2013-05-29 Richard Biener <rguenther@suse.de>
23596 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
23597 computing scalar cost offsetted by stmts that are kept live
23599 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
23600 for computation of scalar cost.
23602 2013-05-28 Steve Ellcey <sellcey@mips.com>
23604 * config/mips/mips-cpus.def (mips32r2): Change processor type.
23606 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
23608 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
23609 array notation built-in reduction functions.
23610 * doc/passes.texi (Passes): Added documentation about changes done
23612 * doc/invoke.texi (C Dialect Options): Added documentation about
23613 the -fcilkplus flag.
23614 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
23615 (BUILTINS_DEF): Depend on cilkplus.def.
23616 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
23617 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
23618 * cilkplus.def: New file.
23620 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
23622 PR rtl-optimization/57439
23623 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
23625 2013-05-28 Easwaran Raman <eraman@google.com>
23627 PR tree-optimization/57337
23628 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
23629 (find_insert_point): Correctly identify the insertion point
23630 when two statements with the same UID is compared.
23632 2013-05-28 Richard Biener <rguenther@suse.de>
23634 PR tree-optimization/56787
23635 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
23636 from the list of data references.
23637 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
23639 (vect_analyze_loop_operations): Likewise.
23640 (vect_transform_loop): Remove clobbers.
23642 2013-05-28 Martin Jambor <mjambor@suse.cz>
23644 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
23645 and REALPART_EXPRs have scalar type.
23647 2013-05-28 Richard Biener <rguenther@suse.de>
23649 PR tree-optimization/57411
23650 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
23652 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
23653 virtual operand propagation.
23655 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
23657 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
23658 destination register for bmasksi_vis.
23659 (vector_init_bshuffle): Likewise.
23660 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
23662 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
23664 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
23665 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
23666 mode if the instruction isn't available in the original mode.
23667 * config/sparc/sparc.opt (mfix-ut699): New option.
23668 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
23669 (divdf3): Turn into expander.
23670 (divdf3_nofix): New insn.
23671 (divdf3_fix): Likewise.
23672 (divsf3): Disable if -mfix-ut699.
23673 (sqrtdf2): Turn into expander.
23674 (sqrtdf2_nofix): New insn.
23675 (sqrtdf2_fix): Likewise.
23676 (sqrtsf2): Disable if -mfix-ut699.
23678 2013-05-27 Richard Biener <rguenther@suse.de>
23680 PR middle-end/57412
23681 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
23682 block for the new loop.
23684 2013-05-27 Richard Biener <rguenther@suse.de>
23686 PR tree-optimization/57343
23687 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
23688 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
23689 (number_of_iterations_cond): Do not build the folded tree.
23691 2013-05-27 Richard Biener <rguenther@suse.de>
23694 PR middle-end/57381
23695 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
23696 OEP_CONSTANT_ADDRESS_OF retained.
23698 PR tree-optimization/57417
23699 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
23700 for unchanged base.
23701 (set_ssa_val_to): Compare addresses using
23702 get_addr_base_and_unit_offset.
23704 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
23706 PR rtl-optimization/56833
23707 * postreload.c (move2add_record_mode): New function.
23708 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
23709 (move2add_use_add2_insn): Use move2add_record_sym_value.
23710 (move2add_use_add3_insn): Likewise.
23711 (reload_cse_move2add): Use move2add_valid_value_p and
23712 move2add_record_mode. Invalidate call-clobbered and REG_INC
23713 affected regs by setting reg_mode to VOIDmode.
23714 (move2add_note_store): Don't pretend the inside of a SUBREG is
23715 the actual destination. Invalidate single/leading registers by
23716 setting reg_mode to VOIDmode.
23717 Use move2add_record_sym_value, move2add_valid_value_p and
23718 move2add_record_mode.
23720 2013-05-27 Richard Biener <rguenther@suse.de>
23722 PR tree-optimization/57396
23723 * tree-affine.c (double_int_constant_multiple_p): Properly
23724 return false for val == 0 and div != 0.
23726 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
23728 * config/mips/mips.h: Use #elif in preprocessor conditions.
23730 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
23733 * config/mips/constraints.md (kl): New constraint.
23734 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
23735 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
23736 constraint for operand 0. Split after CSE for MIPS16. Emit a move
23737 from LO for MIPS16.
23738 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
23740 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
23743 * config/mips/mips.c (mips_can_inline_p): New function.
23744 (TARGET_CAN_INLINE_P): Define.
23746 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
23748 * sched-int.h (ds_t, dw_t): Make unsigned int.
23749 Fix documentation that describes how all the ds_t bits are used.
23750 Reserve the last bit for delayed-branch scheduling.
23751 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
23752 (BITS_PER_DEP_WEAK): Fix definition and documentation.
23753 (gen_dep_weak_1): Remove prototype.
23754 * sched-deps.c (get_dep_weak_1): Make static.
23755 * target.def (speculate_insn, needs_block_p, gen_spec_check,
23756 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
23757 * doc/tm.texi: Regenerate.
23758 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
23760 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
23763 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
23765 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
23766 Sandra Loosemore <sandra@codesourcery.com>
23768 * config.gcc (powerpc-*): Allow native for with-cpu.
23770 2013-05-24 Jeff Law <law@redhat.com>
23772 PR tree-optimization/57124
23773 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
23774 conversion feeding a condition if the range has an overflow
23775 if -fstrict-overflow. Add warnings for when we do make the
23778 2013-05-24 Dehao Chen <dehao@google.com>
23780 * tree-cfg.c (locus_discrim_map): Fix the typo.
23781 (locus_discrim_hasher): Likewise.
23782 (locus_discrim_hasher::hash): Likewise.
23783 (locus_discrim_hasher::equal): Likewise.
23785 2013-05-24 Martin Jambor <mjambor@suse.cz>
23787 PR tree-optimization/57294
23788 * cgraph.h (ipa_record_stmt_references): Declare.
23789 * cgraphbuild.c (ipa_record_stmt_references): New function.
23790 (build_cgraph_edges): Use ipa_record_stmt_references.
23791 (rebuild_cgraph_edges): Likewise.
23792 (cgraph_rebuild_references): Likewise.
23793 * ipa-prop.c (ipa_modify_call_arguments): Discard references
23794 associated with the old statement and build references from the
23795 newly built statements.
23796 * ipa-ref.c (ipa_remove_stmt_references): New function.
23797 * ipa-ref.h (ipa_remove_stmt_references): Declare.
23799 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
23801 * lra-constraints.c (emit_spill_move): Use smaller mode for
23803 (check_and_process_move): Consider mem-reg moves for secondary
23805 (curr_insn_transform): Don't lose insns emitted before for
23806 secondary memory moves.
23807 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
23808 reg set up in the current insn.
23810 2013-05-24 Dehao Chen <dehao@google.com>
23812 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
23814 (locus_descrim_hasher::equal): Likewise.
23815 (build_gimple_cfg): New discriminator assignment algorithm.
23816 (make_edges): Likewise.
23817 (next_discriminator_for_locus): Likewise.
23818 (same_line_p): Likewise.
23819 (assign_discriminators): Likewise.
23820 (make_cond_expr_edges): Likewise.
23821 (make_gimple_switch_edges): Likewise.
23822 (make_goto_expr_edges): Likewise.
23823 (make_gimple_asm_edges): Likewise.
23825 2013-05-24 Ian Bolton <ian.bolton@arm.com>
23827 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
23828 X format specifier to only display bottom 16 bits.
23829 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
23830 immediate to match for operand 2, since it will be masked.
23832 2013-05-24 Richard Biener <rguenther@suse.de>
23834 PR tree-optimization/57287
23835 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
23836 all SSA names that occur in abnormal PHIs.
23838 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
23841 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
23842 that index is not negative.
23844 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
23846 PR rtl-optimization/55177
23847 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
23848 (simplify_byte_swapping_operation): New.
23849 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
23850 (simplify_relational_operation_1): Deal with BSWAP.
23852 2013-05-23 Richard Henderson <rth@redhat.com>
23855 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
23856 (ix86_reorg): Call it.
23858 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
23861 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
23862 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
23863 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
23865 2013-05-23 Christian Bruel <christian.bruel@st.com>
23868 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
23870 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
23871 Marcus Shawcroft <marcus.shawcroft@arm.com>
23873 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
23874 * config/aarch64/constraints.md (Usa): Remove.
23875 * doc/md.texi (AArch64 Usa): Remove.
23877 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
23878 Marcus Shawcroft <marcus.shawcroft@arm.com>
23880 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
23881 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
23882 * config/aarch64/predicates.md (aarch64_const_address): Remove.
23883 (aarch64_mov_operand): Use aarch64_mov_operand_p.
23885 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
23887 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
23888 instruction (AdvSIMD).
23889 * config/aarch64/aarch64-builtins.c
23890 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
23891 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
23893 2013-05-23 Martin Jambor <mjambor@suse.cz>
23895 PR middle-end/57347
23896 * tree.h (contains_bitfld_component_ref_p): Declare.
23897 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
23898 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
23900 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
23901 not access a bit-field. Assert all final offsets are byte-aligned.
23903 2013-05-23 Richard Biener <rguenther@suse.de>
23905 PR tree-optimization/57380
23906 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
23907 least one invariant or re-used load.
23908 * passes.c (init_optimization_passes): Move pass_phiprop before
23911 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
23913 * config/aarch64/aarch64-simd.md
23914 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
23916 2013-05-23 Richard Biener <rguenther@suse.de>
23918 PR middle-end/57381
23919 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
23920 OEP_CONSTANT_ADDRESS_OF retained.
23922 2013-05-23 Jakub Jelinek <jakub@redhat.com>
23924 PR middle-end/57344
23925 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
23926 don't lower unit. Handle unit not being always BITS_PER_WORD.
23928 2013-05-23 Richard Biener <rguenther@suse.de>
23930 PR rtl-optimization/57341
23931 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
23932 instead of true_dependence.
23934 2013-05-22 David Malcolm <dmalcolm@redhat.com>
23936 * bb-reorder.c (branch_threshold): Make const.
23937 (exec_threshold): Ditto.
23939 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
23940 Pat Haugen <pthaugen@us.ibm.com>
23941 Peter Bergner <bergner@vnet.ibm.com>
23943 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
23944 documentation for the power8 crypto builtins.
23946 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
23948 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
23949 macros for defining power8 builtin functions.
23950 (BU_P8V_AV_2): Likewise.
23951 (BU_P8V_AV_P): Likewise.
23952 (BU_P8V_VSX_1): Likewise.
23953 (BU_P8V_OVERLOAD_1): Likewise.
23954 (BU_P8V_OVERLOAD_2): Likewise.
23955 (BU_CRYPTO_1): Likewise.
23956 (BU_CRYPTO_2): Likewise.
23957 (BU_CRYPTO_3): Likewise.
23958 (BU_CRYPTO_OVERLOAD_1): Likewise.
23959 (BU_CRYPTO_OVERLOAD_2): Likewise.
23960 (XSCVSPDP): Fix typo, point to the correct instruction.
23961 (VCIPHER): Add power8 crypto builtins.
23962 (VCIPHERLAST): Likewise.
23963 (VNCIPHER): Likewise.
23964 (VNCIPHERLAST): Likewise.
23965 (VPMSUMB): Likewise.
23966 (VPMSUMH): Likewise.
23967 (VPMSUMW): Likewise.
23968 (VPERMXOR_V2DI): Likewise.
23969 (VPERMXOR_V4SI: Likewise.
23970 (VPERMXOR_V8HI: Likewise.
23971 (VPERMXOR_V16QI: Likewise.
23972 (VSHASIGMAW): Likewise.
23973 (VSHASIGMAD): Likewise.
23974 (VPMSUM): Likewise.
23975 (VPERMXOR): Likewise.
23976 (VSHASIGMA): Likewise.
23978 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
23979 __CRYPTO__ if the crypto instructions are available.
23980 (altivec_overloaded_builtins): Add support for overloaded power8
23983 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
23984 support for power8 crypto builtins.
23985 (builtin_function_type): Likewise.
23986 (altivec_init_builtins): Add support for builtins that take vector
23987 long long (V2DI) arguments.
23989 * config/rs6000/crypto.md: New file, define power8 crypto
23992 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
23993 Pat Haugen <pthaugen@us.ibm.com>
23994 Peter Bergner <bergner@vnet.ibm.com>
23996 * doc/invoke.texi (Option Summary): Add power8 options.
23997 (RS/6000 and PowerPC Options): Likewise.
23999 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
24000 constraints.md instead of rs6000.h. Reorder w* constraints. Add
24001 wm, wn, wr documentation.
24003 * config/rs6000/constraints.md (wm): New constraint for VSX
24004 registers if direct move instructions are enabled.
24005 (wn): New constraint for no registers.
24006 (wq): New constraint for quad word even GPR registers.
24007 (wr): New constraint if 64-bit instructions are enabled.
24008 (wv): New constraint if power8 vector instructions are enabled.
24009 (wQ): New constraint for quad word memory locations.
24011 * config/rs6000/predicates.md (const_0_to_15_operand): New
24012 constraint for 0..15 for crypto instructions.
24013 (gpc_reg_operand): If VSX allow registers in VSX registers as well
24014 as GPR and floating point registers.
24015 (int_reg_operand): New predicate to match only GPR registers.
24016 (base_reg_operand): New predicate to match base registers.
24017 (quad_int_reg_operand): New predicate to match even GPR registers
24018 for quad memory operations.
24019 (vsx_reg_or_cint_operand): New predicate to allow vector logical
24020 operations in both GPR and VSX registers.
24021 (quad_memory_operand): New predicate for quad memory operations.
24022 (reg_or_indexed_operand): New predicate for direct move support.
24024 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
24025 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
24026 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
24027 (POWERPC_MASKS): Add power8 options.
24028 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
24031 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
24032 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
24034 * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
24035 (-mpower8-fusion): New power8 options.
24036 (-mpower8-fusion-sign): Likewise.
24037 (-mpower8-vector): Likewise.
24038 (-mcrypto): Likewise.
24039 (-mdirect-move): Likewise.
24040 (-mquad-memory): Likewise.
24042 * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
24043 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
24045 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
24046 (rs6000_debug_vector_unit): Add p8_vector.
24047 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
24048 definitions. Also print fusion state.
24049 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
24050 (rs6000_builtin_mask_calculate): Add power8 builtin support.
24051 (rs6000_option_override_internal): Add support for power8.
24052 (rs6000_common_init_builtins): Add debugging for skipped builtins
24053 if -mdebug=builtin.
24054 (rs6000_adjust_cost): Add power8 support.
24055 (rs6000_issue_rate): Likewise.
24056 (insn_must_be_first_in_group): Likewise.
24057 (insn_must_be_last_in_group): Likewise.
24058 (force_new_group): Likewise.
24059 (rs6000_register_move_cost): Likewise.
24060 (rs6000_opt_masks): Likewise.
24062 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
24063 power8 capable assembler, default to power7 options.
24064 (TARGET_DIRECT_MOVE): Likewise.
24065 (TARGET_CRYPTO): Likewise.
24066 (TARGET_P8_VECTOR): Likewise.
24067 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
24068 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
24069 (VECTOR_MEM_P8_VECTOR_P): Likewise.
24070 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
24071 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
24072 (TARGET_XSCVDPSPN): Likewise.
24073 (TARGET_XSCVSPDPN): Likewsie.
24074 (TARGET_SYNC_HI_QI): Likewise.
24075 (TARGET_SYNC_TI): Likewise.
24076 (MASK_CRYPTO): Likewise.
24077 (MASK_DIRECT_MOVE): Likewise.
24078 (MASK_P8_FUSION): Likewise.
24079 (MASK_P8_VECTOR): Likewise.
24080 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
24081 temporary used by some of the direct move instructions to get two FP
24082 temporary registers does not force creation of a stack frame.
24083 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
24084 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
24085 that any VSX registers are tieable, even if they are also an
24086 Altivec vector mode.
24087 (r6000_reg_class_enum): Add wm, wr, wv constraints.
24088 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
24089 (RS6000_BTM_CRYPTO): Likewise.
24090 (RS6000_BTM_COMMON): Likewise.
24092 * config/rs6000/rs6000.md (cpu attribute): Add power8.
24093 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
24094 (enum rs6000_vector): Add power8 vector support.
24096 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24100 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
24101 (any_sibcall_could_use_r3): this and handle indirect calls.
24102 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
24104 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24106 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
24108 2013-05-22 Richard Biener <rguenther@suse.de>
24110 PR middle-end/57349
24111 * profile.c (branch_prob): Do not split blocks that are
24112 abnormally receiving from ECF_RETURNS_TWICE functions.
24114 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24116 * recog.c (offsettable_address_addr_space_p): Fix calculation of
24117 address mode. Move pointer mode initialization to the same place.
24119 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
24121 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
24122 while it has any effect.
24124 2013-05-21 Easwaran Raman <eraman@google.com>
24126 PR tree-optimization/57322
24127 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
24128 UID of the statement added to the BB to be 1.
24130 2013-05-21 Jakub Jelinek <jakub@redhat.com>
24132 PR tree-optimization/57331
24133 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
24134 of conversion from pointer type to integral type with integer.
24136 2013-05-21 Martin Jambor <mjambor@suse.cz>
24139 * ipa-prop.c (ipa_read_node_info): Process param_used and
24140 controlled_uses in the same order as when writing.
24142 2013-05-21 Magnus Granberg <baldrick@free.fr>
24145 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
24147 2013-05-21 Richard Biener <rguenther@suse.de>
24149 PR tree-optimization/57318
24150 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
24151 estimate stmts with side-effects as likely eliminated.
24153 2013-05-21 Richard Biener <rguenther@suse.de>
24155 PR tree-optimization/57330
24156 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
24157 preserve the call stmts fntype.
24159 2013-05-21 Richard Biener <rguenther@suse.de>
24161 PR tree-optimization/57303
24162 * tree-ssa-sink.c (statement_sink_location): Improve killing
24163 stmt detection and properly handle self-assignments.
24165 2013-05-21 Christian Bruel <christian.bruel@st.com>
24167 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
24168 spanning registers. LEAF_REG_REMAP is supported only for contiguous
24169 registers. Set register size out of the PARALLEL loop.
24171 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
24174 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
24175 (*fmasf4, *fmasf4_media): New insns.
24177 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
24179 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
24180 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
24181 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
24182 (mips_idiv_insns): Update the comments to say that the returned
24183 instruction counts are in units of BASE_INSN_LENGTH.
24184 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
24185 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
24186 using 2 rather than 4 as the length of indirect MIPS16 and
24187 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
24188 length of a NOP. Don't divide MIPS16 lengths by 2.
24189 (mips16_split_long_branches): Assume a branch is long if the
24190 length is greater than 4 rather than 8.
24191 * config/mips/mips.md (length): Give MIPS16 lengths directly,
24192 rather than multiplying them by 2. Multiply instruction counts
24193 by BASE_INSN_LENGTH rather than 4.
24194 (*jump_mips16, tls_get_tp_mips16_<mode>)
24195 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
24197 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
24199 * config/mips/mips.md (extended_mips16): Remove branch case.
24200 (length): Remove duplicated extended_mips16 test.
24202 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
24204 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
24206 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
24208 * recog.h (Recog_data): Rename to...
24209 (recog_data_d): ...this.
24210 (recog_data): Update accordingly.
24211 * recog.c (recog_data): Likewise.
24212 * reload.c (save_recog_data): Likewise.
24213 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
24214 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
24216 2013-05-17 Julian Brown <julian@codesourcery.com>
24218 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
24219 found in a REG_EQUAL note, invalidate it.
24221 2013-05-17 Easwaran Raman <eraman@google.com>
24223 * tree-ssa-reassoc.c (find_insert_point): New function.
24224 (insert_stmt_after): Likewise.
24225 (get_def_stmt): Likewise.
24226 (ensure_ops_are_available): Likewise.
24227 (not_dominated_by): Likewise.
24228 (rewrite_expr_tree): Do not move statements beyond what is
24229 necessary. Remove call to swap_ops_for_binary_stmt...
24230 (reassociate_bb): ... and move it here.
24231 (build_and_add_sum): Assign UIDs for new statements.
24232 (linearize_expr): Likewise.
24233 (do_reassoc): Renumber gimple statement UIDs.
24235 2013-05-17 Jan Hubicka <jh@suse.cz>
24237 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
24239 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
24240 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
24242 (output_weakrefs): Update.
24244 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
24245 Martin Jambor <mjambor@suse.cz>
24247 PR middle-end/57276
24248 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
24249 value that corresponds to the given aggval is found in values vector.
24251 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
24253 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
24254 sse, sse2, sse3, ssse3 and sse4a flags to options.
24256 2013-05-17 David Malcolm <dmalcolm@redhat.com>
24258 * gengtype-state.c: (s_expr_writer): New class, to handle
24259 prettifying of output layout of s-expressions.
24260 (state_writer): New class, to write out gtype.state.
24261 (state_written_type_count): Move this variable into member data of
24263 (s_expr_writer::s_expr_writer): New code: constructor for new class
24264 (state_writer::state_writer(): ditto
24265 (s_expr_writer::write_new_line): New function
24266 (s_expr_writer::write_any_indent): ditto
24267 (s_expr_writer::begin_s_expr): ditto
24268 (s_expr_writer::end_s_expr): ditto
24269 (write_state_fileloc): convert to method of state_writer...
24270 (state_writer:: write_state_fileloc): ...and use methods of
24271 s_expr_writer to write indentation into the gtype.state output file
24272 to visually represent the hierarchical structure of the list
24274 (write_state_fields): ditto, renaming to...
24275 (state_writer::write_state_fields)
24276 (write_state_a_string): ditto, renaming to...
24277 (state_writer::write_state_a_string)
24278 (write_state_string_option): ditto, renaming to...
24279 (state_writer::write_state_string_option)
24280 (write_state_type_option): ditto, renaming to...
24281 (state_writer::write_state_type_option)
24282 (write_state_nested_option): ditto, renaming to...
24283 (state_writer::write_state_nested_option)
24284 (write_state_option): ditto, renaming to...
24285 (state_writer::write_state_option)
24286 (write_state_options): ditto, renaming to...
24287 (state_writer::write_state_options)
24288 (write_state_lang_bitmap): ditto, renaming to...
24289 (state_writer::write_state_lang_bitmap)
24290 (write_state_version): ditto, renaming to...
24291 (state_writer::write_state_version)
24292 (write_state_scalar_type): ditto, renaming to...
24293 (state_writer::write_state_scalar_type)
24294 (write_state_string_type): ditto, renaming to...
24295 (state_writer::write_state_string_type)
24296 (write_state_undefined_type): ditto, renaming to...
24297 (state_writer::write_state_undefined_type)
24298 (write_state_struct_union_type): ditto, renaming to...
24299 (state_writer::write_state_struct_union_type)
24300 (write_state_struct_type): ditto, renaming to...
24301 (state_writer::write_state_struct_type)
24302 (write_state_user_struct_type): ditto, renaming to...
24303 (state_writer::write_state_user_struct_type)
24304 (write_state_lang_struct_type): ditto, renaming to...
24305 (state_writer::write_state_lang_struct_type)
24306 (write_state_param_struct_type): ditto, renaming to...
24307 (state_writer::write_state_param_struct_type)
24308 (write_state_pointer_type): ditto, renaming to...
24309 (state_writer::write_state_pointer_type)
24310 (write_state_array_type): ditto, renaming to...
24311 (state_writer::write_state_array_type)
24312 (write_state_gc_used): ditto, renaming to...
24313 (state_writer::write_state_gc_used)
24314 (write_state_common_type_content): ditto, renaming to...
24315 (state_writer::write_state_common_type_content)
24316 (write_state_type): ditto, renaming to...
24317 (state_writer::write_state_type)
24318 (write_state_pair_list): ditto, renaming to...
24319 (state_writer::write_state_pair_list)
24320 (write_state_pair): ditto, renaming to...
24321 (state_writer::write_state_pair)
24322 (write_state_typedefs): ditto, renaming to...
24323 (state_writer::write_state_typedefs)
24324 (write_state_structures): ditto, renaming to...
24325 (state_writer::write_state_structures)
24326 (write_state_param_structs): ditto, renaming to...
24327 (state_writer::write_state_param_structs)
24328 (write_state_variables): ditto, renaming to...
24329 (state_writer::write_state_variables)
24330 (write_state_srcdir): ditto, renaming to...
24331 (state_writer::write_state_srcdir)
24332 (write_state_files_list): ditto, renaming to...
24333 (state_writer::write_state_files_list)
24334 (write_state_languages): ditto, renaming to...
24335 (state_writer::write_state_languages)
24336 (write_state): create a state_writer instance and use it when
24337 writing out the state file
24339 2013-05-17 Mike Stump <mikestump@comcast.net>
24341 PR rtl-optimization/57304
24342 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
24343 accessing DF_REF_REAL_LOC.
24345 2013-05-17 Jakub Jelinek <jakub@redhat.com>
24347 PR rtl-optimization/57281
24348 PR rtl-optimization/57300
24349 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
24350 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
24351 what the other splitter did if the registers are dead.
24353 2013-05-17 Richard Biener <rguenther@suse.de>
24355 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
24358 2013-05-17 Jakub Jelinek <jakub@redhat.com>
24360 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
24363 2013-05-17 Marek Polacek <polacek@redhat.com>
24365 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
24366 length when doing non-zero store of storing '\0' to '\0'.
24368 2013-05-17 Jakub Jelinek <jakub@redhat.com>
24370 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
24371 vect_external_def oprnd1 with loop_vinfo, try to emit
24372 optional cast, negation and and stmts on the loop preheader
24373 edge instead of into the pattern def seq.
24375 PR tree-optimization/57051
24376 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
24377 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
24379 2013-05-16 Nick Clifton <nickc@redhat.com>
24381 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
24382 (rl78_is_naked_func): New function.
24383 (rl78_expand_prologue): Skip prologue generation for naked functions.
24384 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
24385 * doc/extend.texi (naked): Add RL78 to the list of processors
24386 that supports this attribute.
24388 2013-05-16 Jeff Law <law@redhat.com>
24390 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
24392 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
24394 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
24395 cache parameters using detect_caches_amd also for CYRIX,
24396 NSC and TM2 signatures.
24398 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
24399 Dzianis Kahanovich <mahatma@eu.by>
24403 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
24404 VIA/Centaur processors and determine their cache parameters
24405 using detect_caches_amd.
24407 2013-05-16 Teresa Johnson <tejohnson@google.com>
24409 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
24410 (rtl_verify_edges): New function.
24411 (rtl_verify_bb_insns): Ditto.
24412 (rtl_verify_bb_pointers): Ditto.
24413 (rtl_verify_bb_insn_chain): Ditto.
24414 (rtl_verify_fallthru): Ditto.
24415 (rtl_verify_bb_layout): Ditto.
24416 (rtl_verify_flow_info_1): Outline checks into new functions.
24417 (rtl_verify_flow_info): Ditto.
24419 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
24421 * cfghooks.c (copy_bbs): Add update_dominance argument.
24422 * cfghooks.h (copy_bbs): Update prototype.
24423 * tree-cfg.c (gimple_duplicate_sese_region):
24424 Add update_dominance argument.
24425 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
24426 * tree-ssa-loop-ch.c (copy_loop_headers): Update
24427 gimple_duplicate_sese_region call.
24428 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
24429 Update copy_bbs call.
24430 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
24431 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
24433 2013-05-16 Jakub Jelinek <jakub@redhat.com>
24435 * tree-vectorizer.h (NUM_PATTERNS): Increment.
24436 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
24437 vect_recog_rotate_pattern.
24438 (vect_recog_rotate_pattern): New function.
24440 2013-05-16 Jason Merrill <jason@redhat.com>
24442 * Makefile.in (LLINKER): New variable.
24443 (mostlyclean): Remove link mutex.
24444 * configure.ac: Handle --enable-link-mutex.
24445 * lock-and-run.sh: New script.
24447 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24450 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
24453 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24455 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
24457 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
24459 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
24460 * config/arm/arm.c (next_consecutive_mem): New function.
24461 (gen_movmem_ldrd_strd): Likewise.
24462 * config/arm/arm.md (movmemqi): Update condition and code.
24463 (unaligned_loaddi, unaligned_storedi): New patterns.
24465 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24467 * config.gcc: Obsolete *-*-solaris2.9*.
24468 * doc/install.texi (Specific, *-*-solaris2*): Document it.
24470 2013-05-16 Richard Biener <rguenther@suse.de>
24472 * passes.c (init_optimization_passes): Move pass_parallelize_loops
24473 earlier, after GRAPHITE transforms and IV canonicalization.
24475 2013-05-16 Jakub Jelinek <jakub@redhat.com>
24477 * omp-low.c (extract_omp_for_data): For collapsed loops,
24478 if at least one of the loops is known at compile time to
24479 iterate zero times, set count to 0.
24480 (expand_omp_regimplify_p): New function.
24481 (expand_omp_for_generic): For collapsed loops, if at least
24482 one of the loops isn't known to iterate at least once,
24483 add runtime check with setting count to 0.
24484 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
24485 For unsigned types if it isn't known at compile time that
24486 the loop will iterate at least once, add runtime check to bypass
24487 the whole loop if initial condition isn't true.
24489 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
24491 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
24493 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
24495 PR middle-end/57286
24496 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
24497 transformations to avoid an infinite loop.
24499 2013-05-16 Marek Polacek <polacek@redhat.com>
24501 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
24503 2013-05-15 Leif Ekblad <leif@rdos.net>
24505 * config/i386/i386.c (ix86_decompose_address): Use
24506 DEFAULT_TLS_SEG_REG to access TLS segment register.
24507 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
24508 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
24509 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
24511 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
24514 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
24515 sibling calls to functions that would normally be lazily bound,
24516 unless $gp is call-clobbered.
24518 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
24520 * config/i386/i386.c (ix86_option_override_internal): Update
24521 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
24522 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
24523 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
24524 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
24526 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
24528 2013-05-15 Andreas Schwab <schwab@suse.de>
24530 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
24531 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
24534 2013-05-15 Teresa Johnson <tejohnson@google.com>
24536 * loop-unroll.c (report_unroll_peel): Check decision before
24537 emitting unroll/peel message.
24539 2013-05-15 Teresa Johnson <tejohnson@google.com>
24541 * function.h (has_bb_partition): New rtl_data flag.
24542 (bb_reorder_complete): Ditto.
24543 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
24544 instead of flag_reorder_blocks_and_partition.
24545 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
24546 with some enhancements.
24547 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
24548 * bb-reorder.c (connect_traces): Check for has_bb_partition
24549 instead of flag_reorder_blocks_and_partition.
24550 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
24551 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
24552 verify_hot_cold_block_grouping.
24553 (partition_hot_cold_basic_blocks): Set has_bb_partition.
24555 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24558 * config/arm/predicates.md (call_insn_operand): New predicate.
24559 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
24560 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
24561 if insn is not a tail call.
24562 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
24564 * config/arm/arm.h (enum reg_class): New caller save register class.
24565 (REG_CLASS_NAMES): Likewise.
24566 (REG_CLASS_CONTENTS): Likewise.
24567 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
24570 2013-05-15 Richard Biener <rguenther@suse.de>
24572 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
24573 of MSG_OPTIMIZED_LOCATIONS.
24574 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
24575 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
24577 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
24578 of MSG_OPTIMIZED_LOCATIONS.
24579 (execute_vect_slp): Likewise.
24580 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
24581 (vect_create_cond_for_alias_checks): Likewise.
24582 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
24583 (vect_recog_widen_mult_pattern): Likewise.
24584 (vect_recog_widen_sum_pattern): Likewise.
24585 (vect_recog_over_widening_pattern): Likewise.
24586 (vect_recog_widen_shift_pattern): Likewise.
24587 (vect_recog_vector_vector_shift_pattern): Likewise.
24588 (vect_recog_divmod_pattern): Likewise.
24589 (vect_recog_mixed_size_cond_pattern): Likewise.
24590 (vect_recog_bool_pattern): Likewise.
24591 (vect_pattern_recog_1): Likewise.
24593 2013-05-15 Martin Jambor <mjambor@suse.cz>
24595 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
24596 non-functions to builtin_unreachable.
24597 * ipa-inline-transform.c (inline_call): Do not assert estimates were
24598 correct when new direct edges were discovered.
24600 2013-05-15 Martin Jambor <mjambor@suse.cz>
24602 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
24603 header, print symbol order instead of node uid, print more information
24604 about indirect edge targets.
24605 (ipa_make_edge_direct_to_target): Print symbol order instead of node
24607 (ipa_make_edge_direct_to_target): Likewise.
24608 (remove_described_reference): Likewise.
24609 (propagate_controlled_uses): Likewise.
24610 (ipa_print_node_params): Also print symbol order.
24611 (ipcp_transform_function): Print symbol order instead of node uids.
24612 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
24613 (cgraph_get_create_real_symbol_node): Likewise.
24614 * ipa-cp.c (print_lattice): Likewise.
24615 (print_all_lattices): Likewise.
24616 (determine_versionability): Likewise.
24617 (initialize_node_lattices): Likewise.
24618 (estimate_local_effects): Likewise.
24619 (update_profiling_info): Likewise.
24620 (create_specialized_node): Likewise.
24621 (perhaps_add_new_callers): Likewise.
24622 (decide_about_value): Likewise.
24623 (decide_whether_version_node): Likewise.
24624 (identify_dead_nodes): Likewise.
24625 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
24626 (dump_inline_summary): Likewise.
24627 (estimate_node_size_and_time): Likewise.
24628 (inline_analyze_function): Likewise.
24629 * ipa-inline.c (report_inline_failed_reason): Likewise.
24630 (want_early_inline_function_p): Likewise.
24631 (edge_badness): Likewise.
24632 (update_edge_key): Likewise.
24633 (inline_small_functions): Likewise. Add dumping of order to two other
24635 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
24636 instead of node uids.
24637 (propagate_pure_const): Likewise.
24638 (propagate_pure_const): Likewise.
24639 * ipa-utils.c (dump_cgraph_node_set): Likewise.
24640 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
24641 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
24643 * tree-pretty-print.c (dump_function_header): Likewise.
24644 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
24645 Print symbol order instead of node uids.
24647 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24649 * config/s390/s390.c (s390_register_move_cost): Don't impose the
24650 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
24652 2013-05-15 Richard Biener <rguenther@suse.de>
24654 PR tree-optimization/57275
24655 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
24656 return value for fail to do runtime alias checks for gather loads.
24658 2013-05-15 Jan Hubicka <jh@suse.cz>
24662 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
24663 weakrefs are not external.
24664 (lto_symtab_merge_decls): Fix thinko when dealing with
24665 non-lto_symtab decls.
24666 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
24667 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
24668 * varpool.c (dump_varpool_node): Dump more flags.
24670 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
24672 * config/i386/i386.c (processor_alias_table): Add instruction
24673 FSGSBASE for AMD bdver3 architecture.
24675 2013-05-14 Jakub Jelinek <jakub@redhat.com>
24677 * tree.c (warn_deprecated_use): Print file:line using locus color.
24678 * diagnostic.c (diagnostic_report_current_module): Print file:line
24679 and file:line:column using locus color.
24681 2013-05-14 Mike Stump <mikestump@comcast.net>
24683 * gdbinit.in: Add __null.
24685 2013-05-14 Mike Stump <mikestump@comcast.net>
24687 * recog.h: Rename struct recog_data to Recog_data.
24688 * recog.c: Likewise.
24689 * reload.c (can_reload_into): Likewise.
24690 * config/picochip/picochip.c: Likewise.
24692 2013-05-14 Mike Stump <mikestump@comcast.net>
24694 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
24696 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
24698 * resource.h (struct resources): Remove unch_memory member.
24699 (CLEAR_RESOURCE): Don't clear unch_memory.
24700 * resource.c (mark_referenced_resources): Don't set it.
24701 (mark_set_resources): Likewise.
24702 (mark_target_live_regs): Don't clear it.
24703 (init_resource_info): Likewise.
24704 * reorg.c (resource_conflicts_p): Don't compare it.
24705 (redundant_insn): Don't set it.
24707 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
24709 * emit-rtl.c (next_label): Remove unused function.
24710 (skip_consecutive_labels, link_cc0_insns): Move to ...
24711 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
24712 only place where these functions are used, and make them static.
24714 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
24716 * fold-const.c (fold_negate_expr): Handle vectors.
24717 (fold_truth_not_expr): Make it static.
24718 (fold_invert_truthvalue): New static function.
24719 (invert_truthvalue_loc): Handle vectors. Do not call
24720 fold_truth_not_expr directly.
24721 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
24722 <TRUTH_NOT_EXPR>: Do not cast to boolean.
24723 (fold_comparison): Handle vector constants.
24724 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
24725 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
24726 * tree.h (fold_truth_not_expr): Remove declaration.
24728 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
24730 * config/aarch64/aarch64-simd.md
24731 (aarch64_vcond_internal<mode>): Rename to...
24732 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
24733 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
24734 float modes. Clarify all iterator modes.
24735 (vcond<mode><mode>): Use new name for vcond expanders.
24736 (vcond<v_cmp_result><mode>): Likewise.
24737 (vcondu<mode><mode>: Likewise.
24738 * config/aarch64/iterators.md (VDQF_COND): New.
24740 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
24743 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
24744 variable for the shift amount. Check that we shift by non-negative
24747 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
24750 * config/arm/arm.h (EPILOGUE_USES): Only return true
24751 for LR_REGNUM after epilogue_completed.
24753 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
24755 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
24756 is error_mark_node.
24758 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24761 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
24762 and Solaris 11+/x86 with gld.
24763 * configure: Regenerate.
24765 2013-05-14 Jakub Jelinek <jakub@redhat.com>
24767 * expmed.c (expand_shift_1): Canonicalize rotates by
24768 constant bitsize / 2 to bitsize - 1.
24769 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
24770 case ROTATERT>: Likewise.
24773 2013-05-10 Jakub Jelinek <jakub@redhat.com>
24775 * config/i386/i386.md (rotateinv): New code attr.
24776 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
24777 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
24778 roll $31, %eax, etc.
24780 2013-05-14 Richard Biener <rguenther@suse.de>
24782 PR middle-end/57235
24783 * tree-eh.c (sink_clobbers): Give up for successors with
24784 multiple predecessors and no virtual uses.
24786 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
24788 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
24789 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
24791 2013-05-14 Jakub Jelinek <jakub@redhat.com>
24793 PR middle-end/57251
24794 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
24795 the case when both op0 and op1 have VOIDmode.
24797 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
24799 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
24800 in multiply-accumulate mode.
24802 2013-05-13 Guozhi Wei <carrot@google.com>
24804 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
24806 2013-05-13 Kai Tietz <ktietz@redhat.com>
24809 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
24810 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
24811 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
24812 * config/i386/i386.c (ix86_option_override_internal): Likewise.
24813 (ix86_expand_prologue): Likewise.
24814 (ix86_expand_split_stack_prologue): Likewise.
24815 (legitimate_pic_address_disp_p): Likewise.
24816 (legitimize_pic_address): Likewise.
24817 (legitimize_tls_address): Likewise.
24818 (legitimize_pe_coff_symbol): Likewise.
24819 (output_pic_addr_const): Likewise.
24820 (construct_plt_address): Likewise.
24821 (ix86_expand_call): Likewise.
24822 (x86_output_mi_thunk): Likewise.
24823 (x86_function_profiler): Likewise.
24825 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
24827 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
24828 similar switch cases.
24829 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
24830 (aarch64_simd_mov_to_<mode>low): Delete.
24831 (aarch64_simd_mov_to_<mode>high): Delete.
24832 (move_lo_quad_<mode>): Add w<-r alternative.
24833 (aarch64_simd_move_hi_quad_<mode>): Likewise.
24834 (aarch64_simd_mov_from_*): Update type attribute.
24835 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
24838 2013-05-13 Jan Hubicka <jh@suse.cz>
24840 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
24841 * config/i386/i386.c (ix86_compute_frame_layout,
24842 ix86_expand_epilogue, emit_i387_cw_initialization,
24843 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
24844 ix86_local_alignment): Fix use of size/speed predicates.
24846 2013-05-13 Jakub Jelinek <jakub@redhat.com>
24848 PR tree-optimization/45216
24849 PR tree-optimization/57157
24850 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
24851 the (-Y) & (B - 1) variant if OP is |.
24852 * expmed.c (expand_shift_1): For rotations by const0_rtx just
24853 return shifted. Use (-op1) & (prec - 1) as other_amount
24854 instead of prec - op1.
24856 2013-05-13 Martin Jambor <mjambor@suse.cz>
24858 PR middle-end/42371
24859 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
24860 (ipa_constant_data): New type.
24861 (ipa_jump_func): Use ipa_constant_data to hold information about
24862 constant jump functions.
24863 (ipa_get_jf_constant): Adjust to jump function type changes.
24864 (ipa_get_jf_constant_rdesc): New function.
24865 (ipa_param_descriptor): New field controlled_uses.
24866 (ipa_get_controlled_uses): New function.
24867 (ipa_set_controlled_uses): Likewise.
24868 * ipa-ref.h (ipa_find_reference): Declare.
24869 * ipa-prop.c (ipa_cst_ref_desc): New type.
24870 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
24872 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
24873 New parameter cs. Adjust all callers.
24874 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
24875 (remove_described_reference): New function.
24876 (jfunc_rdesc_usable): Likewise.
24877 (try_make_edge_direct_simple_call): Decrement controlled use count,
24878 attempt to remove reference if it hits zero.
24879 (combine_controlled_uses_counters): New function.
24880 (propagate_controlled_uses): Likewise.
24881 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
24882 (ipa_edge_duplication_hook): Duplicate reference descriptions.
24883 (ipa_print_node_params): Print described use counter.
24884 (ipa_write_jump_function): Adjust to jump function type changes.
24885 (ipa_read_jump_function): New parameter CS, pass it to
24886 ipa_set_jf_constant. Adjust caller.
24887 (ipa_write_node_info): Stream controlled use count
24888 (ipa_read_node_info): Likewise.
24889 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
24891 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
24892 count. Remove cloning-added reference if it reaches zero.
24893 * ipa-ref.c (ipa_find_reference): New function.
24895 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
24897 * config/i386/i386.c (processor_target_table): Modified default
24898 alignment values for AMD BD and BT architectures.
24900 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
24902 * tree-vect-generic.c (uniform_vector_p): Move ...
24903 * tree.c (uniform_vector_p): ... here.
24904 * tree.h (uniform_vector_p): Declare it.
24905 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
24908 2013-05-13 Jakub Jelinek <jakub@redhat.com>
24910 PR tree-optimization/57230
24911 * tree-ssa-strlen.c (handle_char_store): Record length for
24912 array store from STRING_CST.
24914 PR tree-optimization/57230
24915 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
24918 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
24920 * config/epiphany/epiphany.c (epiphany_init): Check size of
24921 NUM_MODES_FOR_MODE_SWITCHING.
24922 (epiphany_expand_prologue):
24923 Remove CONFIG_REGNUM initial value handling code.
24924 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
24925 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
24926 (emit_set_fp_mode, epiphany_mode_after): Likewise.
24927 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
24928 Don't return 1 for FP_MODE_NONE.
24929 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
24930 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
24931 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
24932 * config/epiphany/epiphany.md (save_config): New pattern.
24934 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
24936 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
24938 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
24940 * config/i386/i386.md (memory): Handle sseishft1.
24941 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
24942 (*vec_extractv2di_1): Ditto.
24944 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
24946 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
24949 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
24951 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
24952 Add mthumb/march=armv7-a multilib.
24953 Add mthumb/march=armv7-r multilib.
24954 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
24956 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
24958 * config/v850/t-rtems: Add more multilibs.
24960 2013-05-10 Richard Biener <rguenther@suse.de>
24962 PR tree-optimization/57214
24963 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
24964 not propagate from SSA names that occur in abnormal PHI nodes.
24966 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
24968 * stor-layout.c (element_precision): New function.
24969 * machmode.h (element_precision): Declare it.
24970 * tree.c (build_minus_one_cst): New function.
24971 (element_precision): Likewise.
24972 * tree.h (build_minus_one_cst): Declare new function.
24973 (element_precision): Likewise.
24974 * fold-const.c (operand_equal_p): Use element_precision.
24975 (fold_binary_loc): Handle vector types.
24976 * convert.c (convert_to_integer): Use element_precision.
24977 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
24980 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
24982 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
24983 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
24984 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
24985 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
24986 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
24987 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
24988 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
24989 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
24990 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
24991 (Uuw8): New constraints.
24992 (Usb4): Move into alphabetical order.
24993 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
24994 (sd8_operand, ub8_operand, uw8_operand): New predicates.
24995 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
24996 previously unnamed patterns.
24997 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
24998 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
24999 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
25000 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
25001 of set_attr_alternative/if_then_else. Use extended_mips16 instead
25002 of specific lengths.
25004 2013-05-10 Jakub Jelinek <jakub@redhat.com>
25006 * config/i386/i386.md (rotateinv): New code attr.
25007 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
25008 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
25009 roll $31, %eax, etc.
25011 PR tree-optimization/45216
25012 PR tree-optimization/57157
25013 * tree-ssa-forwprop.c (simplify_rotate): New function.
25014 (ssa_forward_propagate_and_combine): Call it.
25016 2013-05-10 Richard Biener <rguenther@suse.de>
25018 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
25019 disable peeling when we version for aliasing.
25020 (vector_alignment_reachable_p): Honor explicit user alignment.
25021 (vect_supportable_dr_alignment): Likewise.
25022 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
25023 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
25024 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
25025 then peeling to arrange for the cost-model check to come first.
25027 2013-05-10 Alan Modra <amodra@gmail.com>
25029 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
25030 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
25031 * configure: Regenerate.
25033 2013-05-10 Alan Modra <amodra@gmail.com>
25036 * varasm.c (default_elf_select_section): Move !DECL_P check..
25037 (get_named_section): ..to here before calling get_section_name.
25039 (default_section_type_flags): Add DECL_P check.
25040 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
25041 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
25043 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
25045 * config/epiphany/epiphany.c (epiphany_expand_prologue):
25046 When using gen_stack_adjust_str with a register offset, add a
25047 REG_FRAME_RELATED_EXPR note.
25049 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
25051 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
25052 (*vec_extractv4si_zext_mem): Ditto.
25053 (*vec_extractv2di): Add 0->x and x->x alternatives.
25054 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
25055 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
25057 2013-05-09 Jason Merrill <jason@redhat.com>
25059 N3639 C++1y VLA support
25060 * gimplify.c (gimplify_vla_decl): Don't touch an existing
25063 * tree.c (build_constructor_va): New.
25064 * tree.h: Declare it.
25066 2013-05-09 Martin Jambor <mjambor@suse.cz>
25069 * gimple-fold.c (canonicalize_constructor_val): Call
25070 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
25072 2013-05-09 Jan Hubicka <jh@suse.cz>
25073 Richard Biener <rguenther@suse.de>
25076 * symtab.c (symtab_make_decl_local): Do not add private names.
25078 2013-05-09 Jan Hubicka <jh@suse.cz>
25081 * symtab.c (insert_to_assembler_name_hash): Handle clones.
25082 (unlink_from_assembler_name_hash): Likewise.
25083 (symtab_prevail_in_asm_name_hash, symtab_register_node,
25084 symtab_unregister_node, symtab_initialize_asm_name_hash,
25085 change_decl_assembler_name): Update.
25087 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
25089 * config/aarch64/aarch64.md: New movtf split.
25090 (*movtf_aarch64): Update.
25091 (aarch64_movdi_tilow): Handle TF modes and rename to
25092 aarch64_movdi_<mode>low.
25093 (aarch64_movdi_tihigh): Handle TF modes and rename to
25094 aarch64_movdi_<mode>high
25095 (aarch64_movtihigh_di): Handle TF modes and rename to
25096 aarch64_mov<mode>high_di
25097 (aarch64_movtilow_di): Handle TF modes and rename to
25098 aarch64_mov<mode>low_di
25099 (aarch64_movtilow_tilow): Remove spurious whitespace.
25100 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
25102 (aarch64_print_operand): Update.
25104 2013-05-09 Alan Modra <amodra@gmail.com>
25106 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
25108 * configure: Regenerate.
25110 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
25112 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
25113 splitter preparation statements.
25114 * config/i386/sse.md (*vec_extract* splitters): Ditto.
25115 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
25118 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25120 * gimple-ssa-strength-reduction.c (count_candidates): Change
25121 return value to int.
25122 (analyze_candidates_and_replace): Change type of length to int.
25124 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
25126 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
25127 (*vec_extract<mode>): Use VI12_128 mode iterator.
25128 (*vec_extract<mode>_mem): Ditto.
25129 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
25132 2013-05-08 Diego Novillo <dnovillo@google.com>
25137 2012-08-17 Diego Novillo <dnovillo@google.com>
25140 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
25141 * config.in: Regenerate.
25142 * configure: Regenerate.
25143 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
25145 2013-05-08 Jan Hubicka <jh@suse.cz>
25148 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
25149 * cgraph.h (symtab_node_base): Add unique_name.
25150 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
25151 input_overwrite_node, input_varpool_node): Stream unique_name.
25152 * cgraphclones.c (cgraph_create_virtual_clone,
25153 cgraph_function_versioning): Set unique_name.
25154 * ipa.c (function_and_variable_visibility): Set unique_name.
25156 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25158 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
25159 (alloc_cand_and_find_basis): Restrict conditional candidate
25160 processing to CAND_MULTs.
25162 2013-05-08 Jan Hubicka <jh@suse.cz>
25165 lto-symtab.c (lto_symtab_symbol_p): New function.
25166 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
25167 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
25168 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
25169 Skip static symbols.
25171 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
25173 PR tree-optimization/57200
25174 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
25175 Only call inform if the preceding warning_at returns true.
25177 2013-05-07 Han Shen <shenhan@google.com>
25179 * cfgexpand.c (record_or_union_type_has_array_p): New function.
25180 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
25181 * common.opt (fstack-protector-strong): New option.
25182 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
25183 * doc/invoke.texi (Optimization Options): Document
25184 "-fstack-protector-strong".
25185 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
25187 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
25189 * config/mips/mips.c (mips_machine_reorg2): Return 0.
25191 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
25193 * ira.c (update_equiv_regs): Add insn having equiv memory even if
25194 it is not lhs of the insn.
25195 (setup_reg_equiv): Remove insn having equiv memory which it is not
25197 * lra-constraints.c (process_address): Try to improve generation
25198 code for address base + disp.
25199 (lra_constraints): Make correct the code for checking insn setting
25200 up backward equivalence. Remove insn only if it is in the init
25202 * lra-eliminations.c (update_reg_eliminate): Change return value.
25203 (lra_eliminate): Use the result.
25205 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
25207 * config/i386/sse.md (ssescalarnummask): New mode attribute.
25208 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
25209 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
25210 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
25211 register target operands.
25212 (*vec_extractv8hi_sse2): New pattern.
25213 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
25214 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
25215 (*vec_extract<mode>_mem): New insn and split pattern.
25217 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
25219 * config/arm/arm.c (arm_asan_shadow_offset): New function.
25220 (TARGET_ASAN_SHADOW_OFFSET): Define.
25221 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
25222 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
25224 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25226 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
25227 (incr_vec_index): Return -1 if increment not found.
25228 (create_add_on_incoming_edge): Assert if increment not found.
25229 (record_increment): Limit number of increments recorded.
25230 (all_phi_incrs_profitable): Return false if an increment not found.
25231 (replace_profitable_candidates): Don't process increments that were
25233 (analyze_candidates_and_replace): Limit size of incr_vec.
25235 2013-05-07 Richard Biener <rguenther@suse.de>
25237 * calls.c (special_function_p): setjmp-like functions are leaf.
25238 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
25239 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
25241 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
25243 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
25244 (aarch64_simd_mov<mode>): New expander.
25245 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
25246 (aarch64_simd_mov_to_<mode>high): Likewise.
25247 (aarch64_simd_mov_from_<mode>low): Likewise.
25248 (aarch64_simd_mov_from_<mode>high): Likewise.
25249 (aarch64_dup_lane<mode>): Update.
25250 (aarch64_dup_lanedi): New instruction pattern.
25251 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
25252 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
25254 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25256 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
25257 (replace_mult_candidate): Remove unnecessary argument; remove
25258 unnecessary parameter from call to introduce_cast_before_cand.
25259 (replace_unconditional_candidate): Remove unnecessary parameter
25260 from call to replace_mult_candidate.
25261 (replace_conditional_candidate): Likewise.
25262 (insert_initializers): Use make_temp_ssa_name.
25263 (introduce_cast_before_cand): Remove unnecessary argument; use
25264 make_temp_ssa_name.
25265 (replace_one_candidate): Remove unnecessary argument; remove
25266 unnecessary parameter from calls to introduce_cast_before_cand.
25267 (replace_profitable_candidates): Remove unnecessary parameters
25268 from calls to replace_one_candidate.
25270 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25272 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
25273 phi def as possibly hiding a basis for a CAND_ADD whose operands
25274 have been commuted in the analysis.
25275 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
25277 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
25279 * config/aarch64/aarch64.md
25280 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
25281 shift value between 0-4.
25283 2013-05-07 Richard Biener <rguenther@suse.de>
25285 * double-int.h (rshift): New overload.
25286 * double-int.c (rshift): New function.
25287 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
25288 (create_reference_ops_from_ref): Remove.
25289 (vn_reference_insert): Use shared ops for constructing the
25290 reference and copy it.
25292 2013-05-07 Richard Biener <rguenther@suse.de>
25294 PR middle-end/57190
25295 * tree-eh.c (sink_clobbers): Properly propagate
25296 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
25298 2013-05-07 Jakub Jelinek <jakub@redhat.com>
25300 PR tree-optimization/57149
25301 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
25302 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
25303 collect_phi_def_edges, execute_late_warn_uninitialized): Use
25304 uninit_undefined_value_p instead of ssa_undefined_value_p.
25307 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
25308 for modifier == EXPAND_INITIALIZER.
25310 2013-05-07 Anton Blanchard <anton@samba.org>
25312 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
25313 for powerpc64 little endian.
25314 * configure: Regenerate.
25316 2013-05-06 Graham Stott <grahams@btinternet.com>
25318 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
25319 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
25320 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
25321 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
25323 2013-05-06 Graham Stott <grahams@btinternet.com>
25325 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
25326 codes which allow non-lvalues.
25328 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
25330 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
25331 components are all 1s.
25332 (integer_minus_onep): New function.
25333 * tree.h (integer_minus_onep): Declare it.
25334 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
25335 integer_minus_onep instead of integer_all_onesp.
25337 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25340 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
25341 variations of these patterns.
25343 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
25345 * config/i386/i386.md (isa): Add x64_sse4 member.
25346 (enabled): Handle x64_sse4.
25347 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
25348 instruction for 64bit SSE4_1 targets. Update insn attributes.
25349 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
25350 instruction for SSE4_1 targets. Update insn attributes.
25351 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
25352 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
25353 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
25355 (*vec_extractv4si): Rename from *sse4_1_pextrd.
25356 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
25357 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
25359 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25362 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
25364 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
25366 * final.c (do_assembler_dialects): Don't handle curly braces and
25367 vertical bar escaped by % as dialect delimiters.
25368 (output_asm_insn): Print curly braces and vertical bar if escaped
25369 by % and ASSEMBLER_DIALECT defined.
25370 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
25371 * doc/tm.texi: Regenerated.
25373 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
25375 * config/mips/mips.c: Include tree-pass.h.
25376 (mips_reorg): Split in pre- and post-dbr_schedule parts.
25377 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
25378 (pass_mips_machine_reorg2): New machine specific pass.
25379 (insert_pass_mips_machine_reorg2): New pass plugin definition.
25380 (mips_option_override): Register the new pass.
25381 * rtl.h (cleanup_barriers): Remove prototype.
25382 (dbr_schedule): Likewise.
25383 * jump.c (cleanup_barriers): Make static.
25384 * reorg.c (dbr_schedule): Likewise.
25386 2013-05-06 Richard Biener <rguenther@suse.de>
25388 PR tree-optimization/57185
25389 * tree-parloops.c (add_field_for_reduction): Handle anonymous
25390 SSA names properly.
25392 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
25395 * config/i386/i386.c (add_parameter_dependencies): Add dependence
25396 between "first_arg" and "insn", not "last" and "insn".
25398 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25400 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
25401 (find_candidates_in_block): Re-enable slsr_process_phi.
25402 (create_phi_basis): Fix double counting of candidate adjustment.
25404 2013-05-06 Richard Biener <rguenther@suse.de>
25406 PR middle-end/57147
25407 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
25408 the edge is also fallthru, preserve it and just clear the
25410 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
25411 also complex, preserve that and just clear the fallthru flag.
25412 * tree-inline.c (update_ssa_across_abnormal_edges): Also
25413 update virtual operands.
25415 2013-05-06 Alan Modra <amodra@gmail.com>
25417 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
25418 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
25419 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
25420 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
25421 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
25422 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
25424 2013-05-06 Alan Modra <amodra@gmail.com>
25426 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
25427 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
25428 (DEFAULT_ASM_ENDIAN): Define.
25429 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
25430 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
25431 Update -K PIC clause from sysv4.h.
25432 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
25433 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
25435 2013-05-06 Alan Modra <amodra@gmail.com>
25437 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
25438 twice for little-endian.
25439 (ashrdi3_no_power, ashrdi3): Support little-endian.
25441 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25444 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
25445 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
25447 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
25448 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
25449 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
25452 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
25453 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25455 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
25456 * config/pa/pa.opt: Make mbig-switch a no-op.
25457 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
25458 (CASE_VECTOR_MODE): Always return SImode.
25459 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
25460 for the !TARGET_BIG_SWITCH case.
25461 * config/pa/pa-linux.h: Likewise.
25462 * config/pa/pa-openbsd.h: Likewise.
25463 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
25464 * config/pa/pa.md (short_jump): Remove define_insn.
25465 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
25466 (casesi0): Remove define_insn.
25467 (type): Remove btable_branch.
25468 (pa_combine_type): Likewise.
25469 (in_nullified_branch_delay): Likewise.
25470 (in_call_delay): Likewise.
25471 (define_delay): Likewise.
25472 (define_insn_reservation "Z3"): Likewise.
25473 (define_insn_reservation "Z4"): Likewise.
25474 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
25475 (pa_adjust_insn_length): Remove adjustment for btable branches.
25476 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
25479 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
25481 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
25482 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
25483 Add m->r,x alternatives.
25484 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
25485 splitters using SWI48x mode iterator.
25486 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
25487 TARGET_64BIT. Add m->x alternative.
25488 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
25489 Add o->x alternative. Enable for TARGET_SSE.
25490 (sse_storeq): Remove expander.
25491 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
25492 with memory input operand.
25493 (*vec_extractv2di_1 splitter): New.
25494 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
25495 * config/i386/i386.md (ssevecmodelower): New mode attribute.
25497 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
25499 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
25500 (INT_LOWPART): Delete.
25501 (extract_MB): Adjust.
25502 (extract_ME): Adjust.
25503 (print_operand): Adjust.
25505 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
25507 * config/rs6000/predicates.md (reg_or_add_cint_operand,
25508 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
25509 (reg_or_logical_cint_operand, easy_fp_constant,
25510 logical_const_operand): Delete "CONST_DOUBLE" case.
25511 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
25512 "HOST_BITS_PER_WIDE_INT == 64" test.
25513 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
25514 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
25515 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
25516 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
25518 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
25519 CONST_DOUBLE DImode/VOIDmode case.
25520 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
25521 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
25522 CONST_DOUBLE VOIDmode case.
25523 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
25524 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
25525 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
25526 Delete CONST_DOUBLE case.
25527 (splitters for mov FMOVE64 const_double): Delete
25528 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
25529 "HOST_BITS_PER_WIDE_INT >= 64" test.
25530 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
25532 (mov DI const_double): Delete.
25534 2013-05-04 Jakub Jelinek <jakub@redhat.com>
25536 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
25537 on op shows all bits zero in mode of a lowpart subreg, return zero.
25539 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
25542 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
25543 to save TFmode registers and DImode to save TImode registers for
25544 caller save operations.
25545 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
25546 mark being partially clobbered since they only use the first
25549 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
25550 and TDmode only use the upper 64-bits of each VSX register.
25552 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25554 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
25555 (find_candidates_in_block): Disable slsr_process_phi.
25557 2013-05-03 Guozhi Wei <carrot@google.com>
25559 * coverage.c (coverage_obj_init): Move the construction of gcov
25561 (build_init_ctor): ... here.
25563 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25565 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
25566 (slsr_cand_d): Redefine def_phi.
25567 (stride_status, phi_adjust_status, count_phis_status): New enums.
25568 (find_phi_def): New.
25569 (find_basis_for_base_expr): New.
25570 (find_basis_for_candidate): Handle hidden bases.
25571 (alloc_cand_and_find_basis): Handle phi candidates.
25572 (slsr_process_phi): New.
25573 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
25574 (create_mul_imm_cand): Likewise.
25575 (create_add_ssa_cand): Exclude phi base candidates.
25576 (create_add_imm_cand): Likewise.
25577 (slsr_process_cast): Likewise.
25578 (slsr_process_copy): Likewise.
25579 (find_candidates_in_block): Handle phi candidates.
25580 (dump_candidate): Likewise.
25581 (unconditional_cands): Delete.
25582 (unconditional_cands_with_known_stride_p): Delete.
25583 (phi_dependent_cand_p): New.
25584 (cand_increment): Handle phi-dependent candidates.
25585 (replace_dependent): Delete.
25586 (replace_mult_candidate): New.
25587 (replace_unconditional_candidate): New.
25588 (incr_vec_index): Move to avoid forward reference.
25589 (create_add_on_incoming_edge): New.
25590 (create_phi_basis): New.
25591 (replace_dependents): Delete.
25592 (replace_conditional_candidate): New.
25593 (phi_add_costs): New.
25594 (replace_uncond_cands_and_profitable_phis): New.
25595 (record_increment): Handle phi adjustments.
25596 (record_phi_increments): New.
25597 (record_increments): Handle phi adjustments.
25598 (phi_incr_cost): New.
25599 (lowest_cost_path): Handle phis.
25600 (total_savings): Likewise.
25601 (analyze_increments): Likewise.
25602 (ncd_with_phi): New.
25603 (ncd_of_cand_and_phis): New.
25604 (nearest_common_dominator_for_cands): Handle phi increments.
25605 (all_phi_incrs_profitable): New.
25606 (replace_profitable_candidates): Handle phi-dependent candidates.
25607 (analyze_candidates_and_replace): Likewise.
25609 2013-05-03 Teresa Johnson <tejohnson@google.com>
25612 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
25613 do not exceed REG_BR_PROB_BASE.
25615 2013-05-03 Jeff Law <law@redhat.com>
25617 PR tree-optimization/57144
25618 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
25619 operand of the condition will bit into the new type when eliminating
25620 a cast feeding a condition.
25622 2013-05-03 Jakub Jelinek <jakub@redhat.com>
25624 PR rtl-optimization/57130
25625 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
25626 of COMPARE as in_code to the recursive call if needed.
25628 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
25630 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
25631 (enabled): Handle new members.
25632 * config/i386/sse.md (*vec_concatv2si): Merge from
25633 *vec_concatv2si_sse2 and vec_concatv2si_sse.
25634 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
25636 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
25638 PR tree-optimization/57027
25639 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
25640 for fnms opportunity, check we got the prerequisite kind
25641 of tree / gimple before using accessor functions.
25643 2013-05-03 Richard Biener <rguenther@suse.de>
25645 * double-int.h (lshift): New overload without precision
25646 and arith argument.
25647 (operator *=, operator +=, operator -=): Move ...
25648 * double-int.c (operator *=, operator +=, operator -=): ... here
25649 and implement more efficiently.
25650 (mul_double_with_sign): Remove.
25651 (lshift_double): Adjust to take unsinged shift argument, push
25652 dispatching code to callers.
25653 (mul_double_wide_with_sign): Add early out for callers that
25654 are not interested in high parts or overflow.
25655 (lshift): New function.
25656 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
25657 dispatch code here.
25658 (lrotate, rrotate): Use logical shifts.
25659 * expr.c (get_inner_reference): Use lshift.
25660 * fixed-value.c (do_fixed_divide): Likewise.
25661 * tree-dfa.c (get_ref_base_and_extent): Likewise.
25662 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
25663 (indirect_refs_may_alias_p): Likewise.
25664 (stmt_kills_ref_p_1): Likewise.
25666 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
25668 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
25670 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
25672 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
25673 scalar form of FABD instruction.
25675 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
25677 * lra-constraints.c (process_alt_operands): Add checking alt
25678 number to choose the best alternative.
25680 2013-05-02 Richard Biener <rguenther@suse.de>
25682 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
25683 bitmap and its handling.
25684 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
25686 2013-05-02 Richard Biener <rguenther@suse.de>
25688 PR middle-end/57140
25689 * tree-inline.c (copy_loops): Properly handle removed loops.
25690 (copy_cfg_body): Mark destination loops for fixup if source
25691 loops needed fixup.
25693 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
25696 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
25697 generating simple_return for naked functions.
25699 2013-05-02 Martin Jambor <mjambor@suse.cz>
25701 PR middle-end/56988
25702 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
25703 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
25705 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
25706 ipa_agg_replacement_value structures.
25707 (known_aggs_to_agg_replacement_list): Likewise.
25708 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
25709 (read_agg_replacement_chain): Likewise.
25710 (ipcp_transform_function): Also check that by_ref flags match.
25712 2013-05-02 Richard Biener <rguenther@suse.de>
25714 * graphds.h (struct graph): Add obstack member.
25715 * graphds.c (new_graph): Initialize obstack and allocate
25717 (add_edge): Allocate edge from the obstack.
25718 (free_graph): Free the obstack instead of all edges and vertices.
25720 2013-05-02 Teresa Johnson <tejohnson@google.com>
25722 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
25724 * cfg.c (update_bb_profile_for_threading): Ditto.
25725 * tree-inline.c (copy_bb): Ditto.
25726 (copy_edges_for_bb): Ditto.
25727 (initialize_cfun): Ditto.
25728 (copy_cfg_body): Ditto.
25729 (expand_call_inline): Ditto.
25730 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
25731 (estimate_node_size_and_time): Ditto.
25732 (inline_merge_summary): Ditto.
25733 * cgraphclones.c (cgraph_clone_edge): Ditto.
25734 (cgraph_clone_node): Ditto.
25735 * sched-rgn.c (compute_dom_prob_ps): Ditto.
25736 (compute_trg_info): Ditto.
25738 2013-05-02 Ian Bolton <ian.bolton@arm.com>
25740 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
25741 S reg when fp attribute set.
25742 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
25744 2013-05-02 Ian Bolton <ian.bolton@arm.com>
25746 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
25748 (*and_one_cmplsi3_compare0_uxtw): Likewise.
25749 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
25750 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
25752 2013-05-02 Richard Biener <rguenther@suse.de>
25754 * tree-scalar-evolution.c (scev_info_hasher): Remove.
25755 (struct instantiate_cache_entry): New type.
25756 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
25757 (struct instantiate_cache_type): New type.
25758 (set_instantiated_value, get_instantiated_value): Remove.
25759 (get_instantiated_value_entry): New function.
25760 (instantiate_scev_name): Use the new cache and adjust.
25761 (instantiate_scev_poly): Adjust.
25762 (instantiate_scev_binary): Likewise.
25763 (instantiate_array_ref): Likewise.
25764 (instantiate_scev_convert): Likewise.
25765 (instantiate_scev_not): Likewise.
25766 (instantiate_scev_3): Likewise.
25767 (instantiate_scev_2): Likewise.
25768 (instantiate_scev_r): Likewise.
25769 (instantiate_scev): Likewise.
25770 (resolve_mixers): Likewise.
25772 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
25775 * lra-constraints.c (best_small_class_operands_num): Remove.
25776 (process_alt_operands): Remove small_class_operands_num. Take
25777 small classes operands into losers and only if the operand is not
25778 matched. Modify debugging output.
25779 (curr_insn_transform): Remove best_small_class_operands_num.
25782 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
25784 * config/aarch64/aarch64-builtins.c
25785 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
25786 * config/aarch64/aarch64-simd-builtins.def
25787 (reduc_splus_): Add new modes.
25788 (reduc_uplus_): New.
25789 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
25790 (reduc_uplus_v4sf): Likewise.
25791 (reduc_splus_v4sf): Likewise.
25792 (aarch64_addv<mode>): Likewise.
25793 (reduc_uplus_<mode>): Likewise.
25794 (reduc_splus_<mode>): Likewise.
25795 (aarch64_addvv2di): Likewise.
25796 (reduc_uplus_v2di): Likewise.
25797 (reduc_splus_v2di): Likewise.
25798 (aarch64_addvv2si): Likewise.
25799 (reduc_uplus_v2si): Likewise.
25800 (reduc_splus_v2si): Likewise.
25801 (reduc_<sur>plus_<mode>): New.
25802 (reduc_<sur>plus_v2di): Likewise.
25803 (reduc_<sur>plus_v2si): Likewise.
25804 (reduc_<sur>plus_v4sf): Likewise.
25805 (aarch64_addpv4sf): Likewise.
25806 * config/aarch64/arm_neon.h
25807 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
25808 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
25809 add UNSPEC_SADDV, UNSPEC_UADDV.
25811 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
25813 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
25815 * config/aarch64/arm_neon.h
25816 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
25818 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
25820 * config/aarch64/aarch64-builtins
25821 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
25823 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
25825 * config/aarch64/aarch64-simd-builtins.def
25826 (reduc_smax_): New.
25827 (reduc_smin_): Likewise.
25828 (reduc_umax_): Likewise.
25829 (reduc_umin_): Likewise.
25830 (reduc_smax_nan_): Likewise.
25831 (reduc_smin_nan_): Likewise.
25834 (smax): Update for V2SF, V4SF and V2DF modes.
25837 (smin_nan): Likewise.
25838 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
25839 (<su><maxmin><mode>3): ...This, refactor.
25840 (s<maxmin><mode>3): New.
25841 (<maxmin_uns><mode>3): Likewise.
25842 (reduc_<maxmin_uns>_<mode>): Refactor.
25843 (reduc_<maxmin_uns>_v4sf): Likewise.
25844 (reduc_<maxmin_uns>_v2si): Likewise.
25845 (aarch64_<fmaxmin><mode>: Remove.
25846 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
25848 (vmin<q>_f<32,64>): Likewise.
25849 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
25851 (su): Add mappings for smax, smin, umax, umin.
25853 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
25854 (FMAXMIN): Rename as...
25855 (FMAXMIN_UNS): ...This.
25857 (fmaxminv): Likewise.
25858 (fmaxmin): Likewise.
25860 (maxmin_uns_op): Likewise.
25862 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
25864 * config/aarch64/arm_neon.h
25865 (vac<ge, gt><sd>_f<32, 64>): Rename to...
25866 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
25867 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
25869 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
25871 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
25872 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
25874 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
25876 * config/aarch64/aarch64-simd.md
25877 (vcond<mode>_internal): Handle special cases for constant masks.
25878 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
25879 (vcondu<mode><mode>): Likewise.
25880 (vcond<v_cmp_result><mode>): New.
25882 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
25884 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
25885 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
25886 * config/aarch64/aarch64-simd-builtins.def
25887 (cmeq): Update to BUILTIN_VALLDI.
25892 * config/aarch64/arm_neon.h
25893 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
25894 to builtins or C as appropriate.
25896 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
25898 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
25900 (cmhi): Rename to...
25902 * config/aarch64/aarch64-simd.md
25903 (simd_mode): Add SF.
25904 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
25905 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
25906 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
25907 (cstore<mode>_neg): ...This.
25908 * config/aarch64/iterators.md
25910 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
25911 (COMPARISONS): New.
25912 (UCOMPARISONS): Likewise.
25913 (optab): Add missing comparisons.
25919 (VCMP_S): Likewise.
25920 (VCMP_U): Likewise.
25921 (V_cmp_result): Add DF, SF modes.
25922 (v_cmp_result): Likewise.
25924 (vmtype): Likewise.
25925 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
25927 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
25929 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
25930 define_insn to define_insn_and_split.
25931 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
25932 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
25933 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
25934 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
25935 (thumb2_negscc): Likewise.
25937 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
25939 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
25941 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
25943 * config/arm/thumb2.md: Remove trailing whitespaces.
25945 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
25947 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
25948 Use gen_int_mode rather than GEN_INT.
25950 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
25952 * value-prof.c (stream_in_histogram_value): Remove the strayed
25955 2013-04-30 Richard Biener <rguenther@suse.de>
25957 PR middle-end/57122
25958 * cfghooks.c (split_edge): Properly check for the loop latch edge.
25960 2013-04-30 Richard Biener <rguenther@suse.de>
25962 PR middle-end/57107
25963 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
25965 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
25967 PR rtl-optimization/56957
25968 PR rtl-optimization/57105
25969 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
25970 variable. Use just INSN_UID for determining whether an insn
25971 should be only disconnected from the insn stream.
25972 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
25974 2013-04-30 Jakub Jelinek <jakub@redhat.com>
25976 PR tree-optimization/57104
25977 * tsan.c (instrument_expr): Don't instrument accesses to
25978 DECL_HARD_REGISTER VAR_DECLs.
25980 2013-04-30 Richard Biener <rguenther@suse.de>
25982 * function.h (loops_for_fn): New inline function.
25983 (set_loops_for_fn): Likewise.
25984 * cfgloop.h (place_new_loop): Add struct function parameter.
25985 (get_loop): Likewise.
25986 (get_loops): Likewise.
25987 (number_of_loops): Likewise.
25988 (fel_next): Adjust.
25989 (fel_init): Likewise.
25990 * cfg.c (get_loop_copy): Adjust.
25991 * cfgloop.c (flow_loops_dump): Likewise.
25992 (record_loop_exits): Likewise.
25993 (verify_loop_structure): Likewise.
25994 * cfgloopanal.c (mark_irreducible_loops): Likewise.
25995 (estimate_reg_pressure_cost): Likewise.
25996 (mark_loop_exit_edges): Likewise.
25997 * cfgloopmanip.c (place_new_loop): Likewise.
25998 (add_loop): Likewise.
25999 (duplicate_loop): Likewise.
26000 * graph.c (draw_cfg_nodes): Likewise.
26001 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
26002 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
26003 (extract_affine_chrec): Likewise.
26004 (build_scop_iteration_domain): Likewise.
26005 * graphite.c (graphite_initialize): Likewise.
26006 * ira-build.c (create_loop_tree_nodes): Likewise.
26007 (more_one_region_p): Likewise.
26008 (rebuild_regno_allocno_maps): Likewise.
26009 (mark_loops_for_removal): Likewise.
26010 (mark_all_loops_for_removal): Likewise.
26011 (remove_unnecessary_regions): Likewise.
26012 (ira_build): Likewise.
26013 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
26014 * loop-init.c (fix_loop_structure): Likewise.
26015 (gate_rtl_move_loop_invariants): Likewise.
26016 (gate_rtl_unswitch): Likewise.
26017 (gate_rtl_unroll_and_peel_loops): Likewise.
26018 (rtl_doloop): Likewise.
26019 * lto-streamer-in.c (input_cfg): Likewise.
26020 * lto-streamer-out.c (output_cfg): Likewise.
26021 * modulo-sched.c (sms_schedule): Likewise.
26022 * predict.c (tree_estimate_probability): Likewise.
26023 (tree_estimate_probability_driver): Likewise.
26024 (estimate_loops): Likewise.
26025 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
26026 (move_sese_region_to_fn): Likewise.
26027 (debug_loop_num): Likewise.
26028 * tree-chrec.c (chrec_evaluate): Likewise.
26029 (hide_evolution_in_other_loops_than_loop): Likewise.
26030 (chrec_component_in_loop_num): Likewise.
26031 (reset_evolution_in_loop): Likewise.
26032 (evolution_function_is_invariant_rec_p): Likewise.
26033 * tree-if-conv.c (main_tree_if_conversion): Likewise.
26034 * tree-inline.c (copy_loops): Likewise.
26035 (copy_cfg_body): Likewise.
26036 (tree_function_versioning): Likewise.
26037 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
26038 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
26040 (add_to_evolution_1): Likewise.
26041 (scev_const_prop): Likewise.
26042 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
26043 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
26044 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
26045 (tree_ssa_lim_initialize): Likewise.
26046 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
26047 (verify_loop_closed_ssa): Likewise.
26048 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
26049 (tree_ssa_loop_im): Likewise.
26050 (tree_ssa_loop_unswitch): Likewise.
26051 (tree_vectorize): Likewise.
26052 (check_data_deps): Likewise.
26053 (tree_ssa_loop_ivcanon): Likewise.
26054 (tree_ssa_loop_bounds): Likewise.
26055 (tree_complete_unroll): Likewise.
26056 (tree_complete_unroll_inner): Likewise.
26057 (tree_parallelize_loops): Likewise.
26058 (tree_ssa_loop_prefetch): Likewise.
26059 (tree_ssa_loop_ivopts): Likewise.
26060 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
26061 * tree-vectorizer.c (vectorize_loops): Likewise.
26063 2013-04-29 Mike Frysinger <vapier@gentoo.org>
26065 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
26066 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
26067 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
26068 with EABI_LINK_SPEC.
26070 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
26073 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
26076 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
26079 * lra-constraints.c (process_alt_operands): Discourage a bit more
26080 using memory for pseudos. Print cost dump for alternatives.
26081 Modify cost values for conflicts with early clobbers.
26082 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
26084 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
26087 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
26089 2013-04-29 Ian Bolton <ian.bolton@arm.com>
26091 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
26092 from/to S register.
26093 (movdi_aarch64): Support LDR/STR from/to D register.
26095 2013-04-29 Ian Bolton <ian.bolton@arm.com>
26097 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
26098 or higher by default.
26100 2013-04-29 Richard Biener <rguenther@suse.de>
26102 PR middle-end/57075
26103 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
26104 even if not adding abnormal edges for calls that can make
26107 2013-04-29 Richard Biener <rguenther@suse.de>
26109 PR middle-end/57103
26110 * tree-cfg.c (move_stmt_op): Fix condition under which to update
26112 (move_stmt_r): Remove redundant checking.
26114 2013-04-29 Teresa Johnson <tejohnson@google.com>
26117 * basic-block.h (apply_scale): New function.
26118 (apply_probability): Use apply_scale.
26119 * gimple-streamer-in.c (input_bb): Ditto.
26120 * lto-streamer-in.c (input_cfg): Ditto.
26121 * lto-cgraph.c (merge_profile_summaries): Ditto.
26122 * tree-optimize.c (execute_fixup_cfg): Ditto.
26123 * tree-inline.c (copy_bb): Update comment to use apply_scale.
26124 (copy_edges_for_bb): Ditto.
26125 (copy_cfg_body): Ditto.
26127 2013-04-29 Tom de Vries <tom@codesourcery.com>
26129 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
26130 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
26131 (tail_merge_optimize): Handle current_loops == NULL.
26133 2013-04-26 Jeff Law <law@redhat.com>
26135 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
26136 (simplify_cond_using_ranges): Generalize code to simplify
26137 COND_EXPRs where one argument is a constant and the other
26138 is an SSA_NAME created by an integral type conversion.
26140 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26142 * config/arm/arm.md (store_minmaxsi): Use only when
26143 optimize_insn_for_size_p.
26145 2013-04-29 Christian Bruel <christian.bruel@st.com>
26148 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
26150 2013-04-29 Richard Biener <rguenther@suse.de>
26152 PR middle-end/57089
26153 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
26154 loop tree make sure to schedule a fixup for the child as well.
26155 (expand_omp_for_generic): Properly add loops.
26156 (expand_omp_for_static_nochunk): Likewise.
26157 (expand_omp_for_static_chunk): Likewise.
26158 (expand_omp_for): For the degenerate case fixup loops.
26159 (expand_omp_sections): Fix default bb placement in loops.
26160 (expand_omp_atomic_pipeline): Properly add loops.
26162 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26164 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
26166 2013-04-29 Tom de Vries <tom@codesourcery.com>
26168 * tree-ssa-tail-merge.c: Update header comment.
26170 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
26172 * config/aarch64/arm_neon.h
26173 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
26174 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
26175 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
26176 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
26177 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
26178 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
26179 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
26180 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
26182 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
26184 * config/aarch64/aarch64-simd.md
26185 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
26186 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
26187 fix_trunc, fixuns_trunc.
26188 (ftrunc<VDQF:mode>2): New.
26189 * config/aarch64/iterators.md (optab): Add fix, fixuns.
26190 (fix_trunc_optab): New.
26192 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
26194 * config/aarch64/aarch64-builtins.c
26195 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
26196 iceilf, lround, iroundf.
26198 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
26201 * config/i386/i386.h (enum ix86_tune_indices)
26202 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
26203 New, split from X86_TUNE_INTER_UNIT_MOVES.
26204 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
26205 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
26206 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
26207 (TARGET_INTER_UNIT_MOVES): Remove.
26208 * config/i386/i386.c (initial_ix86_tune_features): Update.
26209 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
26210 (ix86_expand_convert_uns_didf_sse): Use
26211 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
26212 (ix86_expand_vector_init_one_nonzero): Ditto.
26213 (ix86_expand_vector_init_interleave): Ditto.
26214 (inline_secondary_memory_needed): Return true for moves from SSE class
26215 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
26216 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
26217 * config/i386/constraints.md (Yi, Ym): Depend on
26218 TARGET_INTER_UNIT_MOVES_TO_VEC.
26219 (Yj, Yn): New constraints.
26220 * config/i386/i386.md (*movdi_internal): Change constraints of
26221 operand 1 from Yi to Yj and from Ym to Yn.
26222 (*movsi_internal): Ditto.
26223 (*movdf_internal): Ditto.
26224 (*movsf_internal): Ditto.
26225 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
26226 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
26227 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
26228 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
26229 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
26230 * config/i386/sse.md (movdi_to_sse): Ditto.
26231 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
26232 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
26233 TARGET_INTER_UNIT_MOVES.
26234 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
26235 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
26236 instead of TARGET_INTER_UNIT_MOVES.
26237 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
26238 operand 1 from Yi to Yj and from Ym to Yn.
26240 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
26242 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
26243 (float_truncate_hi_): Likewise.
26244 (float_extend_lo_): Likewise.
26245 (float_truncate_lo_): Likewise.
26246 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
26247 (aarch64_float_extend_lo_v2df): Likewise.
26248 (vec_unpacks_hi_v4sf): Likewise.
26249 (aarch64_float_truncate_lo_v2sf): Likewise.
26250 (aarch64_float_truncate_hi_v4sf): Likewise.
26251 (vec_pack_trunc_v2df): Likewise.
26252 (vec_pack_trunc_df): Likewise.
26254 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
26256 * config/aarch64/aarch64-builtins.c
26257 (aarch64_fold_builtin): Fold float conversions.
26258 * config/aarch64/aarch64-simd-builtins.def
26259 (floatv2si, floatv4si, floatv2di): New.
26260 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
26261 * config/aarch64/aarch64-simd.md
26262 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
26263 * config/aarch64/iterators.md (FLOATUORS): New.
26264 (optab): Add float, floatuns.
26265 (su_optab): Likewise.
26267 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
26269 * config/aarch64/aarch64-builtins.c
26270 (aarch64_builtin_vectorized_function): Use new names for
26272 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
26273 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
26274 (fcvtzu): Split as...
26275 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
26276 (fcvtas): Split as...
26277 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
26278 (fcvtau): Split as...
26279 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
26280 (fcvtps): Split as...
26281 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
26282 (fcvtpu): Split as...
26283 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
26284 (fcvtms): Split as...
26285 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
26286 (fcvtmu): Split as...
26287 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
26288 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
26289 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
26290 (lfrintnusf, lfrintnudf): Likewise.
26291 * config/aarch64/aarch64-simd.md
26292 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
26294 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
26295 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
26296 (fcvt_pattern): Likewise.
26298 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
26300 * config/aarch64/aarch64-simd.md
26301 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
26302 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
26304 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
26306 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
26307 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
26308 (vrnd<a,m,n,p>_f32): Implement using builtins.
26309 (vrnd<i,x><q>_f<32, 64>): New.
26311 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
26313 * config/aarch64/aarch64-builtins.c
26314 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
26315 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
26316 (frintz): Rename to...
26318 (frintp): Rename to...
26320 (frintm): Rename to...
26322 (frinti): Rename to...
26323 (nearbyint): ...this.
26324 (frintx): Rename to...
26326 (frinta): Rename to...
26328 * config/aarch64/aarch64-simd.md
26329 (aarch64_frint<frint_suffix><mode>): Delete.
26330 (<frint_pattern><mode>2): Convert to insn.
26331 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
26332 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
26333 (frint_pattern): Likewise.
26334 (frint_suffix): Likewise.
26336 2013-04-29 Richard Biener <rguenther@suse.de>
26338 PR tree-optimization/57081
26339 * loop-init.c: Include tree-flow.h.
26340 (loop_optimizer_finalize): Free number of iteration estimates.
26341 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
26343 2013-04-29 Jakub Jelinek <jakub@redhat.com>
26345 PR tree-optimization/57083
26346 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
26347 non-singleton shift count range, zero extend low_bound for uns case.
26349 * config/i386/predicates.md (general_vector_operand): New predicate.
26350 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
26351 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
26352 if they aren't nonimmediate operands. If their original values
26353 satisfy const_vector_equal_evenodd_p, don't shift them.
26354 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
26355 predicates. For the SSE4.1 case force operands[{1,2}] into registers
26356 if not nonimmediate_operand.
26357 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
26358 instead of register_operand.
26359 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
26361 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
26363 * stor-layout.c (finalize_size_functions): Allocate a structure and
26364 reset cfun before dumping the functions.
26366 2013-04-27 Jakub Jelinek <jakub@redhat.com>
26368 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
26371 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
26372 use xop_pmacsdqh if uns_p.
26373 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
26374 the immediate rotate count.
26376 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
26378 * rtl.h (struct rtx_def): Add comment for field jump.
26379 (LRA_SUBREG_P): New macro.
26380 * recog.c (register_operand): Check LRA_SUBREG_P.
26381 * lra.c (lra): Add note at the end of RTL code. Align non-empty
26383 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
26384 (lra_final_code_change): Skip subreg change for operators.
26385 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
26386 if there are no operand changes.
26387 * lra-constraints.c (curr_insn_set): New.
26388 (match_reload): Set LRA_SUBREG_P.
26389 (emit_spill_move): Ditto.
26390 (check_and_process_move): Use curr_insn_set. Process only single
26391 set insns. Don't initialize sec_mem_p and change_p.
26392 (simplify_operand_subreg): Use LRA_SUBREG_P.
26393 (reg_in_class_p): New function.
26394 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
26395 of #ifdef. Add code to remove cycling.
26396 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
26397 non-null disp. Reload inner instead of disp when base and index
26398 are null. Try to put lo_sum into register.
26399 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
26400 (check_and_process_move): Move code for move cost check to
26401 simple_move_p. Remove equiv_substitution.
26402 (simple_move_p): New function.
26403 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
26404 curr_insn_set. Call check_and_process_move only for single set
26405 insns. Use the new function. Move call of check_and_process_move
26406 after operand equiv substitution and address process.
26408 2013-04-26 Jakub Jelinek <jakub@redhat.com>
26411 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
26412 with nonlocal goto receivers or returns twice calls, ignore
26413 unininitialized values from abnormal edges to nl goto receiver
26414 or returns twice call.
26416 2013-04-26 Jakub Jelinek <jakub@redhat.com>
26418 PR tree-optimization/57051
26419 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
26420 and VEC_RSHIFT_EXPR if shift count is a multiple of element
26423 2013-04-26 Richard Biener <rguenther@suse.de>
26425 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
26426 (expand_omp_taskreg): Likewise. Mark loops for fixup.
26427 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
26428 (fixup_loop_arrays_after_move): New function.
26429 (move_sese_region_to_fn): Properly outline the loop tree parts
26430 of the SESE region.
26432 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
26434 * config/i386/i386.md (type, unit): Fix long lines.
26436 2013-04-26 Richard Biener <rguenther@suse.de>
26438 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
26439 (lto-streamer-out.o): Likewise.
26440 * cfgloop.c (init_loops_structure): Export, add struct function
26441 argument and adjust.
26442 (flow_loops_find): Adjust.
26443 * cfgloop.h (enum loop_estimation): Add EST_LAST.
26444 (init_loops_structure): Declare.
26445 * lto-streamer-in.c: Include cfgloop.h.
26446 (input_cfg): Input the loop tree.
26447 * lto-streamer-out.c: Include cfgloop.h.
26448 (output_cfg): Output the loop tree.
26449 (output_struct_function_base): Do not drop PROP_loops.
26451 2013-03-26 Richard Biener <rguenther@suse.de>
26453 * tree-cfg.c (execute_build_cfg): Build the loop tree.
26454 (pass_build_cfg): Provide PROP_loops.
26455 (move_sese_region_to_fn): Remove loops that are outlined into fn
26457 * tree-inline.c: Include cfgloop.h.
26458 (initialize_cfun): Do not drop PROP_loops.
26459 (copy_loops): New function.
26460 (copy_cfg_body): Copy loop structure.
26461 (tree_function_versioning): Initialize destination loop tree.
26462 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
26463 (pass_parallelize_loops): Do IL verification.
26464 * loop-init.c (loop_optimizer_init): Fixup loops if required.
26465 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
26466 the CFG make sure we fixup loops as well.
26467 * tree-ssa-tail-merge.c: Include cfgloop.h.
26468 (replace_block_by): When merging loop latches mark loops for fixup.
26469 * lto-streamer-out.c (output_struct_function_base): Drop
26470 PROP_loops for now.
26471 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
26472 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
26473 * ipa-split.c: Include cfgloop.h.
26474 (split_function): Add the new return block to the loop tree root.
26475 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
26476 whether we have removed the forwarder block.
26477 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
26478 * cfgloop.h (place_new_loop): Declare.
26479 * cfgloopmanip.c (place_new_loop): Export.
26480 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
26481 (tree-switch-conversion.o): Likewise.
26482 (tree-complex.o): Likewise.
26483 (tree-inline.o): Likewise.
26484 (tree-ssa-tailmerge.o): Likewise.
26485 (ipa-split.o): Likewise.
26486 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
26487 (tree-ssa-copy.o): Likewise.
26488 * tree-switch-conversion.c: Include cfgloop.h
26489 (process_switch): If we emit a bit-test cascade, schedule loops
26491 * tree-complex.c: Include cfgloop.h.
26492 (expand_complex_div_wide): Properly add new basic-blocks to loops.
26493 * asan.c: Include cfgloop.h.
26494 (create_cond_insert_point): Properly add new basic-blocks to
26495 loops, schedule loop fixup.
26496 * cfgloop.c (verify_loop_structure): Check that looks are not
26498 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
26500 (expand_omp_for_generic): Likewise.
26501 (expand_omp_sections): Likewise.
26502 (expand_omp_atomic_pipeline): Schedule loops for fixup.
26503 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
26504 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
26505 is initialized, not when loops are present.
26506 * tree-parloops.c (parallelize_loops): Remove checking here.
26507 * passes.c (init_optimization_passes): Schedule a copy-propagation
26508 pass before complete unrolling of inner loops.
26510 2013-04-26 Jakub Jelinek <jakub@redhat.com>
26512 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
26513 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
26514 (colorize_init): Add argument to _WIN32 version.
26515 * toplev.c: Include diagnostic-color.h.
26516 (process_options): Default to -fdiagnostics-color=auto if
26517 GCC_COLORS env var is in the environment.
26518 * common.opt (fdiagnostics-color=): Add Var and Init.
26519 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
26520 env var is in the environment, the default is auto rather than never.
26522 * diagnostic.h (file_name_as_prefix): Add context argument.
26523 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
26524 the string as locus.
26525 * langhooks.c (lhd_print_error_function): Adjust caller.
26527 2013-04-25 Lawrence Crowl <crowl@google.com>
26529 * var-tracking.c (shared_hash_def::htab):
26530 Change type to hash_table. Update dependent calls and types.
26532 2013-04-25 Lawrence Crowl <crowl@google.com>
26534 * Makefile.in: Update as needed below.
26536 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
26537 Move declaration to after the type's method definitons.
26539 * attribs.c (htab_t scoped_attributes::attribute_hash):
26540 Change type to hash_table. Update dependent calls and types.
26542 * bitmap.c (htab_t bitmap_desc_hash):
26543 Change type to hash_table. Update dependent calls and types.
26545 * cselib.c (htab_t cselib_hash_table):
26546 Change type to hash_table. Update dependent calls and types.
26548 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
26549 (hash_string_slot_node): Move implementation into lto-streamer.h
26550 struct string_slot_hasher.
26551 (eq_string_slot_node): Likewise.
26553 * data-streamer-out.c: Update output_block::string_hash_table
26554 dependent calls and types.
26556 * dwarf2cfi.c (htab_t trace_index):
26557 Change type to hash_table. Update dependent calls and types.
26559 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
26560 Change type to hash_table. Update dependent calls and types.
26561 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
26562 (htab_t optimize_external_refs::map): Likewise.
26563 (htab_t output_comp_unit::extern_map): Likewise.
26564 (htab_t output_comdat_type_unit::extern_map): Likewise.
26565 (htab_t output_macinfo::macinfo_htab): Likewise.
26566 (htab_t optimize_location_lists::htab): Likewise.
26567 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
26569 * except.c (htab_t ehspec_hash_type):
26570 Change type to hash_table. Update dependent calls and types.
26571 (assign_filter_values::ttypes): Likewise.
26572 (assign_filter_values::ehspec): Likewise.
26573 (sjlj_assign_call_site_values::ar_hash): Likewise.
26574 (convert_to_eh_region_ranges::ar_hash): Likewise.
26576 * gcse.c (htab_t pre_ldst_table):
26577 Change type to hash_table. Update dependent calls and types.
26579 * ggc-common.c (htab_t saving_htab):
26580 Change type to hash_table. Update dependent calls and types.
26581 (htab_t loc_hash): Likewise.
26582 (htab_t ptr_hash): Likewise.
26583 (call_count): Rename ggc_call_count.
26584 (call_alloc): Rename ggc_call_alloc.
26585 (loc_descriptor): Rename make_loc_descriptor.
26586 (add_statistics): Rename ggc_add_statistics.
26588 * ggc-common.c (saving_htab):
26589 Change type to hash_table. Update dependent calls and types.
26591 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
26592 (push_gimplify_context): Likewise.
26593 (pop_gimplify_context): Likewise.
26594 (struct gimple_temp_hash_elt): Added.
26595 (struct gimplify_hasher): Likewise.
26596 (struct gimplify_ctx.temp_htab):
26597 Change type to hash_table. Update dependent calls and types.
26599 * gimple-fold.c: Include gimplify-ctx.h.
26601 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
26602 Change type to hash_table. Update dependent calls and types.
26603 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
26604 avoid potential global name collision.
26606 * gimplify.c: Include gimplify-ctx.h.
26607 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
26608 (htab_t gimplify_ctx::temp_htab):
26609 Update dependent calls and types for new type hash_table.
26610 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
26611 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
26613 * gimplify-ctx.h: New.
26614 (struct gimple_temp_hash_elt): Move from gimplify.c.
26615 (class gimplify_hasher): New.
26616 (struct gimplify_ctx): Move from gimple.h.
26617 (htab_t gimplify_ctx::temp_htab):
26618 Change type to hash_table. Update dependent calls and types.
26620 * graphite-clast-to-gimple.c: Include graphite-htab.h.
26621 (htab_t ivs_params::newivs_index):
26622 Change type to hash_table. Update dependent calls and types.
26623 (htab_t ivs_params::params_index): Likewise.
26624 (htab_t print_generated_program::params_index): Likewise.
26625 (htab_t gloog::newivs_index): Likewise.
26626 (htab_t gloog::params_index): Likewise.
26628 * graphite.c: Include graphite-htab.h.
26629 4htab_t graphite_transform_loops::bb_pbb_mapping):
26630 Change type to hash_table. Update dependent calls and types.
26632 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
26633 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
26634 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
26636 * graphite-dependences.c: Include graphite-htab.h.
26637 (loop_is_parallel_p): Change hash table type of parameter.
26639 * graphite-htab.h: New.
26640 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
26641 (extern find_pbb_via_hash): Move from graphite-poly.h.
26642 (extern loop_is_parallel_p): Move from graphite-poly.h.
26643 (extern get_loop_body_pbbs): Move from graphite-poly.h.
26645 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
26646 (extern loop_is_parallel_p): Move to graphite-htab.h.
26647 (extern get_loop_body_pbbs): Move to graphite-htab.h.
26649 * haifa-sched.c (htab_t delay_htab):
26650 Change type to hash_table. Update dependent calls and types.
26651 (htab_t delay_htab_i2): Likewise.
26653 * ira-color.c (htab_t allocno_hard_regs_htab):
26654 Change type to hash_table. Update dependent calls and types.
26656 * ira-costs.c (htab_t cost_classes_htab):
26657 Change type to hash_table. Update dependent calls and types.
26659 * loop-invariant.c (htab_t merge_identical_invariants::eq):
26660 Change type to hash_table. Update dependent calls and types.
26662 * loop-iv.c (htab_t bivs):
26663 Change type to hash_table. Update dependent calls and types.
26665 * loop-unroll.c (htab_t opt_info::insns_to_split):
26666 Change type to hash_table. Update dependent calls and types.
26667 (htab_t opt_info::insns_with_var_to_expand): Likewise.
26669 * lto-streamer.h (struct string_slot): Move from data-streamer.h
26670 (struct string_slot_hasher): New.
26671 (htab_t output_block::string_hash_table):
26672 Change type to hash_table. Update dependent calls and types.
26674 * lto-streamer-in.c (freeing_string_slot_hasher): New.
26675 (htab_t file_name_hash_table):
26676 Change type to hash_table. Update dependent calls and types.
26678 * lto-streamer-out.c: Update output_block::string_hash_table dependent
26681 * lto-streamer.c (htab_t tree_htab):
26682 Change type to hash_table. Update dependent calls and types.
26684 * omp-low.c: Include gimplify-ctx.h.
26686 * passes.c (htab_t name_to_pass_map):
26687 Change type to hash_table. Update dependent calls and types.
26688 (pass_traverse): Rename to passes_pass_traverse.
26690 * plugin.c (htab_t event_tab):
26691 Change type to hash_table. Update dependent calls and types.
26693 * postreload-gcse.c (htab_t expr_table):
26694 Change type to hash_table. Update dependent calls and types.
26695 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
26697 * sese.c (debug_rename_map_1): Make extern.
26698 (htab_t copy_bb_and_scalar_dependences::rename_map):
26699 Change type to hash_table. Update dependent calls and types.
26701 * sese.h (extern debug_rename_map): Move to .c file.
26703 * store-motion.c (htab_t store_motion_mems_table):
26704 Change type to hash_table. Update dependent calls and types.
26706 * trans-mem.c (htab_t tm_new_mem_hash):
26707 Change type to hash_table. Update dependent calls and types.
26709 * tree-browser.c (htab_t TB_up_ht):
26710 Change type to hash_table. Update dependent calls and types.
26712 * tree-cfg.c (htab_t discriminator_per_locus):
26713 Change type to hash_table. Update dependent calls and types.
26715 * tree-complex.c: Include tree-hasher.h
26716 (htab_t complex_variable_components):
26717 Change type to hash_table. Update dependent calls and types.
26719 * tree-eh.c (htab_t finally_tree):
26720 Change type to hash_table. Update dependent calls and types.
26722 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
26723 struct int_tree_hasher.
26724 (extern int_tree_map_eq): Likewise.
26725 (uid_decl_map_hash): Removed.
26726 (extern decl_tree_map_eq): Likewise.
26728 * tree-hasher.h: New.
26729 (struct int_tree_hasher): New.
26730 (typedef int_tree_htab_type): New.
26732 * tree-inline.c: Include gimplify-ctx.h.
26734 * tree-mudflap.c: Include gimplify-ctx.h.
26736 * tree-parloops.c: Include tree-hasher.h.
26737 (htab_t eliminate_local_variables_stmt::decl_address):
26738 Change type to hash_table. Update dependent calls and types.
26739 (htab_t separate_decls_in_region::decl_copies): Likewise.
26741 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
26742 Change type to hash_table. Update dependent calls and types.
26744 * tree-sra.c (candidates):
26745 Change type to hash_table. Update dependent calls and types.
26747 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
26749 (int_tree_map_hash): Likewise.
26751 * tree-ssa-dom.c (htab_t avail_exprs):
26752 Change type to hash_table. Update dependent calls and types.
26754 * tree-ssa-live.c (var_map_base_init::tree_to_index):
26755 Change type to hash_table. Update dependent calls and types.
26757 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
26758 Change type to hash_table. Update dependent calls and types.
26760 * tree-ssa-phiopt.c (seen_ssa_names):
26761 Change type to hash_table. Update dependent calls and types.
26763 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
26764 Change type to hash_table. Update dependent calls and types.
26766 * tree-ssa-uncprop.c (equiv):
26767 Change type to hash_table. Update dependent calls and types.
26769 2013-04-25 Jakub Jelinek <jakub@redhat.com>
26771 PR rtl-optimization/57003
26772 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
26773 call note_stores with kill_clobbered_value callback again after
26774 killing regs_invalidated_by_call.
26776 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
26778 * config/aarch64/aarch64-simd.md
26779 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
26780 (aarch64_simd_bsl<mode>): Likewise.
26781 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
26783 2013-04-25 Marek Polacek <polacek@redhat.com>
26785 PR tree-optimization/57066
26786 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
26788 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
26790 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
26792 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
26794 * config/aarch64/aarch64-builtins.c
26795 (aarch64_fold_builtin): New.
26796 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
26797 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
26798 * config/aarch64/aarch64-simd-builtins.def (abs): New.
26799 * config/aarch64/arm_neon.h
26800 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
26802 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
26803 Tejas Belagod <tejas.belagod@arm.com>
26805 * config/aarch64/aarch64-builtins.c
26806 (aarch64_gimple_fold_builtin): New.
26807 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
26808 * config/aarch64/aarch64-simd-builtins.def (addv): New.
26809 * config/aarch64/aarch64-simd.md (addpv4sf): New.
26810 (addvv4sf): Update.
26811 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
26813 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
26815 * config/aarch64/aarch64.md
26816 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
26818 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
26820 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
26821 (*ngcsi_uxtw): New pattern.
26823 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26824 Julian Brown <julian@codesourcery.com>
26826 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
26827 (TB_DREG): Add T_V4HF.
26828 (v4hf_UP): New macro.
26829 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
26830 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
26831 Handle initialisation of V4HF. Adjust initialisation of reinterpret
26833 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
26834 (arm_vector_mode_supported_p): Handle V4HF.
26835 (arm_mangle_map): Handle V4HFmode.
26836 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
26837 * config/arm/arm_neon_builtins.def: Add entries for
26838 vcvtv4hfv4sf, vcvtv4sfv4hf.
26839 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
26840 (neon_vcvtv4hfv4sf): Likewise.
26841 * config/arm/neon-gen.ml: Handle half-precision floating point
26843 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
26844 * config/arm/arm_neon.h: Regenerate.
26845 * config/arm/neon.ml (type elts): Add F16.
26846 (type vectype): Add T_float16x4, T_floatHF.
26847 (type vecmode): Add V4HF.
26848 (type features): Add Requires_FP_bit feature.
26849 (elt_width): Handle F16.
26850 (elt_class): Likewise.
26851 (elt_of_class_width): Likewise.
26852 (mode_of_elt): Refactor.
26853 (type_for_elt): Handle F16, fix error messages.
26854 (vectype_size): Handle T_float16x4.
26855 (vcvt_sh): New function.
26856 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
26857 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
26858 (string_of_mode): Handle V4HF.
26859 * doc/arm-neon-intrinsics.texi: Regenerate.
26861 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
26863 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
26864 format specifier in 'X' case.
26866 2013-04-25 Alan Modra <amodra@gmail.com>
26869 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
26870 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
26871 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
26872 Repeat for many other rotate/shift and mask patterns using subregs.
26873 Name lshiftrt insns.
26874 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
26875 on WORDS_BIG_ENDIAN.
26877 2013-04-25 Alan Modra <amodra@gmail.com>
26879 * config.gcc: Support little-endian powerpc-linux targets.
26880 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
26881 (LINK_OS_LINUX_SPEC): Define.
26882 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
26883 Preserve MASK_LITTLE_ENDIAN.
26884 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
26885 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
26886 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
26887 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
26888 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
26889 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
26890 Correct fp word order for little-endian. Don't shift toc entries
26891 smaller than a word for little-endian.
26892 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
26893 (bswapdi2 splits): Correct low-part subreg for little-endian.
26894 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
26895 low/high where such is correct only for be.
26896 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
26897 little-endian for -mcall-aixdesc.
26899 2013-04-25 Alan Modra <amodra@gmail.com>
26901 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
26902 replace_equiv_address_nv.
26904 2013-04-25 Alan Modra <amodra@gmail.com>
26906 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
26908 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
26911 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
26912 * rtl.h (struct rtx_def): ...
26914 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
26916 PR rtl-optimizations/57046
26917 * lra-constraints (split_reg): Set up lra_risky_transformations_p
26918 for multi-reg splits.
26920 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
26922 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
26924 2013-04-24 Sterling Augustine <saugustine@google.com>
26926 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
26927 (comp_dir_string, debug_str_dwo_section): New.
26928 (DEBUG_STR_DWO_SECTION): Rename to ...
26929 (DEBUG_DWO_STR_SECTION): ... this.
26930 (DEBUG_NORM_STR_SECTION): Delete.
26931 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
26932 (DEBUG_STR_DWO_SECTION_FLAGS): New.
26933 (find_AT_string): Move most logic to ...
26934 (find_AT_string_in_table): ... here. New.
26935 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
26936 add_skeleton_AT_string. Delete logic.
26937 (output_skeleton_debug_sections): Remove call to
26938 add_top_level_skeleton_die_attrs.
26939 (add_comp_dir_attribute): Move logic to comp_dir_string.
26940 (dwarf2out_init): Initialize debug_str_dwo_section.
26941 (output_indirect_string): Call find_string_form.
26942 (output_indirect_strings): Rewrite.
26943 (prune_unused_types): Empty skeleton_debug_str_hash.
26944 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
26945 (dwarf2out_finish): Call output_indirect_strings.
26947 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
26949 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
26951 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
26953 * rtl.h (struct rtx_def): Add comment for field jump.
26954 (LRA_SUBREG_P): New macro.
26955 * recog.c (register_operand): Check LRA_SUBREG_P.
26956 * lra.c (lra): Add note at the end of RTL code. Align non-empty
26958 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
26959 (lra_final_code_change): Skip subreg change for operators.
26960 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
26961 if there are no operand changes.
26962 * lra-constraints.c (curr_insn_set): New.
26963 (match_reload): Set LRA_SUBREG_P.
26964 (emit_spill_move): Ditto.
26965 (check_and_process_move): Use curr_insn_set. Process only single
26966 set insns. Don't initialize sec_mem_p and change_p.
26967 (simplify_operand_subreg): Use LRA_SUBREG_P.
26968 (reg_in_class_p): New function.
26969 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
26970 of #ifdef. Add code to remove cycling.
26971 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
26972 non-null disp. Reload inner instead of disp when base and index
26973 are null. Try to put lo_sum into register.
26974 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
26975 (check_and_process_move): Move code for move cost check to
26976 simple_move_p. Remove equiv_substitution.
26977 (simple_move_p): New function.
26978 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
26979 curr_insn_set. Call check_and_process_move only for single set
26980 insns. Use the new function. Move call of check_and_process_move
26981 after operand equiv substitution and address process.
26983 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
26985 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
26986 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
26987 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
26989 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
26991 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
26993 2013-04-24 Marek Polacek <polacek@redhat.com>
26995 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
26996 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
26997 (select_loops_exit_conditions): Likewise.
26998 (number_of_iterations_for_all_loops): Likewise.
26999 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
27000 (scev_analysis): Likewise.
27002 2013-04-02 Catherine Moore <clm@codesourcery.com>
27003 Chao-ying Fu <fu@mips.com>
27005 * config/mips/micromips.md (jraddiusp): New pattern.
27006 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
27007 instruction if possible.
27009 2013-04-24 Alan Modra <amodra@gmail.com>
27011 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
27013 2013-04-24 Julian Brown <julian@codesourcery.com>
27014 Chung-Lin Tang <cltang@codesourcery.com>
27016 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
27017 dependency behavior in enumeration type DIE generation. Add TODO note
27018 to comments about future DW_FORM_sdata/udata re-work of related code.
27020 2013-04-23 Lawrence Crowl <crowl@google.com>
27022 * Makefile.in: Update as needed below.
27024 * hash-table.h (class hash_table):
27025 Correct many methods with parameter types compare_type to the correct
27026 value_type. (Correct code was unlikely to notice the change.)
27027 (hash_table::elements_with_deleted) New.
27028 (class hashtable::iterator): New.
27029 (hashtable::begin()): New.
27030 (hashtable::end()): New.
27031 (FOR_EACH_HASH_TABLE_ELEMENT): New.
27033 * statistics.c (statistics_hashes):
27034 Change type to hash_table. Update dependent calls and types.
27036 * tree-into-ssa.c (var_infos):
27037 Change type to hash_table. Update dependent calls and types.
27039 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
27040 Change type to hash_table. Update dependent calls and types.
27042 * tree-ssa-loop-im.c (struct mem_ref.refs):
27043 Change type to hash_table. Update dependent calls and types.
27045 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
27046 Change type to hash_table. Update dependent calls and types.
27048 * tree-ssa-sccvn.c (vn_tables_s::nary):
27049 Change type to hash_table. Update dependent calls and types.
27050 (vn_tables_s::phis): Likewise.
27051 (vn_tables_s::references): Likewise.
27053 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
27054 (vn_reference_eq): Update parameter and return types.
27056 * tree-ssa-structalias.c (pointer_equiv_class_table):
27057 Change type to hash_table. Update dependent calls and types.
27058 (location_equiv_class_table): Likewise.
27060 * tree-vect-data-refs.c: Consequential changes for making
27061 peeling a hash_table.
27063 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
27064 (destroy_loop_vec_info): Dependent hash_table update.
27066 * tree-vectorizer.h (peeling_htab):
27067 Change type to hash_table. Update dependent calls and types.
27069 2013-04-23 Shiva Chen <shiva0217@gmail.com>
27071 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
27072 to check the register content is equal or not.
27073 * lra-constraints.c (match_reload): Use lra_assign_reg_val
27074 to assign register content record.
27075 * lra-eliminations.c (update_reg_eliminate): Use
27076 lra_update_reg_val_offset to update register content offset.
27077 * lra-int.h (struct lra_reg): Add offset member.
27078 (lra_reg_val_equal_p): New static inline function.
27079 (lra_update_reg_val_offset): New static inline function.
27080 (lra_assign_reg_val): New static inline function.
27081 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
27082 to assign register content record.
27083 (initialize_lra_reg_info_element): Initial offset to zero.
27085 2013-04-23 Catherine Moore <clm@codesourcery.com>
27087 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
27088 operands. Record compression.
27090 2013-04-23 Xinliang David Li <davidxl@google.com>
27092 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
27094 2013-04-23 Richard Biener <rguenther@suse.de>
27096 PR middle-end/57036
27097 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
27098 parameter, only add abnormal goto edges from the copied body
27099 if the call could perform abnormal gotos.
27100 (copy_cfg_body): Adjust.
27102 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
27104 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
27106 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
27108 * coretypes.h (gimple_stmt_iterator): Add struct to make
27111 2013-04-23 Richard Biener <rguenther@suse.de>
27113 PR tree-optimization/57026
27114 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
27115 from SSA names occuring in abnormal PHI nodes.
27117 2013-04-22 Andi Kleen <ak@linux.intel.com>
27119 * lto/lto.c (print_lto_report_1): Fix LTO report names.
27121 2013-04-22 Andi Kleen <ak@linux.intel.com>
27123 * lto/lto.c (print_lto_report_1): Declare early.
27124 (read_cgraph_and_symbols): Call print_lto_report_1 early.
27126 2013-04-22 Andi Kleen <ak@linux.intel.com>
27128 * common.opt (-flto-report-wpa): Add.
27129 * doc/invoke.texi (-flto-report-wpa): Add.
27130 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
27133 2013-04-22 Xinliang David Li <davidxl@google.com>
27135 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
27136 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
27137 * Makefile.in: New dependency
27139 David Daney <ddaney.cavm@gmail.com>
27141 * configure.ac (gcc_cv_as_micromips_support): Use the
27142 --fatal-warnings option.
27143 * configure: Regenerate.
27145 2013-04-22 Marek Polacek <polacek@redhat.com>
27148 * tsan.c (instrument_expr): Don't instrument expression
27149 in case its size is zero.
27151 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
27155 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
27157 * config/alpha/alpha.c (TARGET_LRA_P): New define.
27159 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
27161 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
27162 (gimple_stmt_iterator): New typedef.
27163 * gimple.h (gimple_stmt_iterator): Rename to...
27164 (gimple_stmt_iterator_d): ... This.
27165 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
27166 trees be valid for GIMPLE and GENERIC.
27167 (TARGET_GIMPLE_FOLD_BUILTIN): New.
27168 * gimple-fold.c (gimple_fold_call): Call target hook
27169 gimple_fold_builtin.
27170 * hooks.c (hook_bool_gsiptr_false): New.
27171 * hooks.h (hook_bool_gsiptr_false): New.
27172 * target.def (fold_stmt): New.
27173 * doc/tm.texi: Regenerate.
27175 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
27178 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
27179 a set sp if no stack realignment.
27181 2013-04-22 Nick Clifton <nickc@redhat.com>
27183 * config.gcc (tilegx-linux): Extend extra_objs rather than
27185 (tilepro-linux): Likewise.
27187 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
27189 * config/aarch64/aarch64-builtins.c
27191 (CF0, CF1, CF2, CF3, CF4, CF10): New.
27192 (VAR<1-12>): Add MAP parameter.
27193 (BUILTIN_*): Likewise.
27194 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
27195 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
27196 (aarch64_ushl_n<mode>): Likewise.
27197 (aarch64_sshr_n<mode>): Likewise.
27198 (aarch64_ushr_n<mode>): Likewise.
27199 (aarch64_<maxmin><mode>): Likewise.
27200 (aarch64_sqrt<mode>): Likewise.
27201 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
27202 (vshr<q>_n_*): Likewise.
27204 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
27206 * config/aarch64/aarch64-builtins.c
27207 (aarch64_simd_builtin_type_mode): Handle SF types.
27209 (BUILTIN_GPF): Define.
27210 (aarch64_init_simd_builtins): Handle SF types.
27211 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
27212 (frecps): Likewise.
27213 (frecpx): Likewise.
27214 * config/aarch64/aarch64-simd.md
27215 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
27216 (aarch64_frecpe<mode>): New.
27217 (aarch64_frecps<mode>): Likewise.
27218 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
27219 (v8type): Add frecp<esx>.
27220 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
27221 (aarch64_frecps<mode>): Likewise.
27222 * config/aarch64/iterators.md (FRECP): New.
27223 (frecp_suffix): Likewise.
27224 * config/aarch64/arm_neon.h
27225 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
27227 2013-04-22 Christian Bruel <christian.bruel@st.com>
27230 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
27231 (REG_CLASS_NAMES): Idem.
27232 (REG_CLASS_CONTENTS): Idem.
27233 (REGCLASS_HAS_FP_REG): Idem.
27234 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
27235 (sh_conditional_register_usage): Idem.
27237 2013-04-21 Jeff Law <law@redhat.com>
27239 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
27240 (ssa_forward_propagate_and_combine): Use it.
27242 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
27244 * lra.c: Update the flow chart diagram.
27246 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
27248 PR rtl-optimization/56847
27249 * lra-constraints.c (process_alt_operands): Discourage alternative
27250 with non-matche doffsettable memory constraint fro memory with
27253 2013-04-19 Richard Biener <rguenther@suse.de>
27255 PR tree-optimization/56982
27256 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
27258 * gimplify.c (gimplify_call_expr): Notice special calls.
27259 (gimplify_modify_expr): Likewise.
27260 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
27261 abnormal control flow receivers.
27262 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
27263 in the same way as cfun->has_nonlocal_labels.
27264 (gimple_purge_dead_abnormal_call_edges): Likewise.
27265 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
27266 receivers start a basic-block.
27268 2013-04-19 Richard Biener <rguenther@suse.de>
27270 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
27272 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
27273 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
27274 (SLP_TREE_LOAD_PERMUTATION): Add.
27275 (vect_transform_slp_perm_load): Adjust prototype.
27276 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
27277 (vect_free_slp_instance): Likewise.
27278 (vect_create_new_slp_node): Likewise.
27279 (vect_supported_slp_permutation_p): Remove.
27280 (vect_slp_rearrange_stmts): Adjust.
27281 (vect_supported_load_permutation_p): Likewise. Inline
27282 vect_supported_slp_permutation_p here.
27283 (vect_analyze_slp_instance): Compute load permutations per
27284 slp node instead of per instance.
27285 (vect_get_slp_defs): Adjust.
27286 (vect_transform_slp_perm_load): Likewise.
27287 (vect_schedule_slp_instance): Remove redundant code.
27288 (vect_schedule_slp): Remove hack for PR56270, add it ...
27289 * tree-vect-stmts.c (vectorizable_load): ... here, do not
27290 CSE loads for SLP. Adjust.
27292 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
27294 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
27295 spelling in two comments.
27297 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
27300 * config/arm/arm.c (load_multiple_sequence): Require SP
27301 as base register for loads if SP is in the register list.
27303 2013-04-19 Martin Jambor <mjambor@suse.cz>
27305 PR tree-optimization/56718
27306 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
27307 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
27308 and made public. Adjusted all callers.
27309 (ipa_intraprocedural_devirtualization): New function.
27310 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
27311 (ipa_intraprocedural_devirtualization): Likewise.
27312 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
27314 2013-04-19 Richard Biener <rguenther@suse.de>
27316 PR tree-optimization/57000
27317 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
27319 2013-04-19 Terry Guo <terry.guo@arm.com>
27321 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
27323 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
27324 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
27325 (cortex_m4_fmacs): Use new reservations.
27326 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
27328 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
27330 PR rtl-optimization/56999
27331 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
27333 (lra_coalesce): Remove split_origin_bitmap and related code.
27334 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
27335 ranges if necessary.
27337 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
27339 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
27341 (ix86_expand_call): Remove clobbered_registers array and use
27342 x86_64_ms_sysv_extra_clobbered_registers instead.
27343 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
27345 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
27347 * config/i386/i386.md (*call_rex64_ms_sysv): Use
27348 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
27349 (*call_value_rex64_ms_sysv): Ditto.
27351 2013-04-18 Cary Coutant <ccoutant@google.com>
27353 * dwarf2out.c (output_pubnames): Check die_perennial_p of
27354 parent instead of die_mark.
27356 2013-04-18 Diego Novillo <dnovillo@google.com>
27358 * gimple.c (create_gimple_tmp): New.
27359 (get_expr_type): New.
27360 (build_assign): New.
27361 (build_type_cast): New.
27362 * gimple.h (enum ssa_mode): Define.
27363 (gimple_seq_set_location): New.
27364 * asan.c (build_check_stmt): Change some gimple_build_* calls
27365 to use build_assign and build_type_cast.
27367 2013-04-18 Richard Biener <rguenther@suse.de>
27369 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
27370 handle negative step. Remove redundant checks.
27371 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
27372 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
27373 for negative step and grouped loads fail to vectorize.
27375 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
27377 * emit-rtl.c (reset_insn_used_flags): New function.
27378 (reset_all_used_flags): Use it.
27379 (verify_insn_sharing): New function.
27380 (verify_rtl_sharing): Fix verification for SEQUENCEs.
27382 2013-04-18 Jakub Jelinek <jakub@redhat.com>
27384 PR tree-optimization/56984
27385 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
27386 and (x >> M) >= N don't register any assertion if N << M is the
27389 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
27391 * lower-subreg.c (resolve_simple_move): If called self-recursive,
27392 do not delete_insn insns that have not yet been emitted, only
27393 unlink them with remove_insn.
27394 * df-scan.c (df_insn_delete): Revert r197492.
27396 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
27398 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
27399 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
27401 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
27403 * config/arm/arm.md (movsicc_insn): Convert define_insn into
27404 define_insn_and_split.
27405 (and_scc,ior_scc,negscc): Likewise.
27406 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
27408 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
27410 * config/arm/arm.c (use_return_insn): Return 0 for targets that
27411 can benefit from using a sequence of LDRD instructions in epilogue
27412 instead of a single LDM instruction.
27414 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
27417 * doc/extend.texi: Fix typo.
27419 2013-04-17 Richard Biener <rguenther@suse.de>
27421 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
27422 (vect_build_slp_tree): ... here.
27423 (vect_build_slp_tree_1): Compute which stmts of the SLP group
27424 match. Remove special-casing of mismatched complex loads.
27425 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
27426 re-try the match with swapped commutative operands.
27427 (vect_supported_load_permutation_p): Remove special-casing of
27428 mismatched complex loads.
27429 (vect_analyze_slp_instance): Adjust.
27431 2013-04-17 Richard Biener <rguenther@suse.de>
27433 PR rtl-optimization/56921
27434 * cfgloop.h (struct loop): Add simple_loop_desc member.
27435 (struct niter_desc): Mark with GTY(()).
27436 (simple_loop_desc): Do not use aux field but simple_loop_desc.
27437 * loop-iv.c (get_simple_loop_desc): Likewise.
27438 (free_simple_loop_desc): Likewise.
27441 2013-04-16 Richard Biener <rguenther@suse.de>
27443 PR rtl-optimization/56921
27444 * loop-init.c (pass_rtl_move_loop_invariants): Add
27445 TODO_do_not_ggc_collect to todo_flags_finish.
27446 (pass_rtl_unswitch): Same.
27447 (pass_rtl_unroll_and_peel_loops): Same.
27448 (pass_rtl_doloop): Same.
27450 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
27452 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
27453 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
27454 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
27456 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
27457 * tree-streamer.c (record_common_node): Adjust reference in comment.
27459 2013-04-17 Terry Guo <terry.guo@arm.com>
27461 * config/arm/cortex-m4.md: Add a new bypass.
27463 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
27465 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
27467 (*subs_<optab><mode>_multp2): New pattern.
27468 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
27469 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
27471 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
27473 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
27474 (*subs_mul_imm_<mode>): New pattern.
27476 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
27479 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
27480 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
27481 (vsx_movti_32bit): Change j->wa to O->wa.
27483 2013-04-16 Richard Biener <rguenther@suse.de>
27485 PR rtl-optimization/56921
27486 * loop-init.c (pass_rtl_move_loop_invariants): Add
27487 TODO_do_not_ggc_collect to todo_flags_finish.
27488 (pass_rtl_unswitch): Same.
27489 (pass_rtl_unroll_and_peel_loops): Same.
27490 (pass_rtl_doloop): Same.
27492 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
27494 * config/arm/arm.c (emit_multi_reg_push): New declaration
27495 for an existing function.
27496 (arm_emit_strd_push): New function.
27497 (arm_expand_prologue): Used here.
27498 (arm_emit_ldrd_pop): New function.
27499 (arm_expand_epilogue): Used here.
27500 (arm_get_frame_offsets): Update condition.
27501 (arm_emit_multi_reg_pop): Add a special case for load of a single
27502 register with writeback.
27504 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
27506 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
27509 2013-04-16 Richard Biener <rguenther@suse.de>
27511 PR tree-optimization/56756
27512 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
27513 (first_mem_ref_loc): New.
27514 (execute_sm): Place the load temporarily before a previous
27515 access instead of in the latch edge to ensure its SSA dependencies
27516 are defined at points dominating the load.
27518 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
27520 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
27521 correct fix by moving header and footer insn to the footer of
27522 the merged basic block. Clear BB_END of the merged-away block.
27524 PR middle-end/43631
27525 * emit-rtl.c (make_note_raw): New function.
27526 (link_insn_into_chain): New static inline function.
27527 (add_insn): Use it.
27528 (add_insn_before, add_insn_after): Factor insn chain linking code...
27529 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
27530 using link_insn_into_chain.
27531 (note_outside_basic_block_p): New helper function for emit_note_after
27532 and emit_note_before.
27533 (emit_note_after): Use nobb variant of add_insn_after if the note
27534 should not be contained in a basic block.
27535 (emit_note_before): Use nobb variant of add_insn_before if the note
27536 should not be contained in a basic block.
27537 (emit_note_copy): Use make_note_raw.
27538 (emit_note): Likewise.
27539 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
27540 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
27541 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
27542 the moved barrier the tail of the basic block it follows.
27543 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
27545 2013-04-15 Jakub Jelinek <jakub@redhat.com>
27547 PR tree-optimization/56962
27548 * gimple-ssa-strength-reduction.c (record_increment): Only set
27549 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
27550 either rhs1 or rhs2 is equal to c->base_expr.
27552 2013-04-15 Richard Biener <rguenther@suse.de>
27554 PR tree-optimization/56933
27555 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
27557 (GROUP_READ_WRITE_DEPENDENCE): Remove.
27558 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
27559 * tree-vect-data-refs.c (vect_analyze_group_access): Move
27560 dependence check ...
27561 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
27563 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
27564 GROUP_READ_WRITE_DEPENDENCE.
27566 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27568 * emit-rtl.c (reset_all_used_flags): New function.
27569 (verify_rtl_sharing): Call reset_all_used_flags before and after
27570 performing the checks.
27572 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27574 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
27575 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
27576 * config/arm/constraints.md (De): New constraint.
27577 * config/arm/neon.md (anddi3_neon): Delete.
27578 (neon_vand<mode>): Expand to standard anddi3 pattern.
27579 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
27580 Move earlier in the file.
27581 (neon_inv_logic_op2): Likewise.
27582 (arm_anddi_operand_neon): New predicate.
27584 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27586 * configure.ac (gcc_cv_ld_as_needed): Set
27587 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
27588 Use -z ignore, -z record on *-*-solaris2*.
27589 (HAVE_LD_AS_NEEDED): Update comment.
27590 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
27591 * configure: Regenerate.
27592 * config.in: Regenerate.
27593 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
27594 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
27595 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
27596 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
27597 equivalents. Fix markup.
27598 * doc/tm.texi: Regenerate.
27600 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
27602 * config/i386/i386.opt: New option mstack-protector-guard=.
27603 * config/i386/i386-opts.h: Add enum stack_protector_guard.
27604 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
27605 TARGET_SSP_TLS_GUARD.
27606 * config/i386/i386.c (ix86_option_override_internal): Set
27607 ix86_stack_protector_guard.
27608 * config/i386/i386.md (stack_protect_set): Enable for
27609 TARGET_SSP_TLS_GUARD only.
27610 (stack_protect_set_<mode>): Ditto.
27611 (stack_protect_test): Ditto.
27612 (stack_protect_test_<mode>): Ditto.
27613 * doc/invoke.texi (i386 Option): Document.
27615 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
27618 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
27619 (S_MODES): Set H_MODE bit.
27620 (SF_MODES): Set only S_MODE and SF_MODE bits.
27621 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
27622 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
27623 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
27624 <MODE_FLOAT>: Likewise.
27626 2013-04-15 Joey Ye <joey.ye@arm.com>
27628 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
27630 2013-04-15 Joey Ye <joey.ye@arm.com>
27632 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
27634 (thumb_far_jump_used_p): Count instruction size and set
27637 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
27639 * reorg.c (fill_simple_delay_slots): Reindent block of code.
27640 * resource.c (mark_target_live_regs): Reformat conditional block.
27642 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
27644 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
27645 notes, they are emitted only just before final.
27646 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
27648 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
27650 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
27651 * cfgrtl.c (delete_insn): Call it here instead.
27652 * lra-spills.c (lra_final_code_change): Use delete_insn.
27653 * haifa-sched.c (sched_remove_insn): Likewise.
27654 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
27655 returning to the nop pool.
27656 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
27657 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
27659 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
27661 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
27662 * doc/tm.texi: Regenerated.
27664 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
27666 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
27669 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
27671 * df-core.c (df_find_def): Compare register numbers.
27672 (df_find_use): Likewise.
27674 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
27677 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
27678 lra_in_progress for return.
27680 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
27682 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
27683 define_insn into define_insn_and_split and emit movsicc patterns.
27685 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
27687 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
27689 2013-04-12 Richard Biener <rguenther@suse.de>
27691 * tree-pass.h (TODO_do_not_ggc_collect): New.
27692 * passes.c (execute_one_ipa_transform_pass): Honor
27693 TODO_do_not_ggc_collect.
27694 (execute_one_pass): Likewise.
27697 2013-04-10 Richard Biener <rguenther@suse.de>
27699 * passes.c (init_optimization_passes): Remove reload pass.
27700 * ira.c (do_reload): Merge into ...
27702 (rest_of_handle_reload): Remove.
27703 (pass_reload): Likewise.
27704 * config/i386/i386.c (ix86_option_override): Refer to ira instead
27705 of reload for vzeroupper pass placement.
27707 2013-04-12 Jakub Jelinek <jakub@redhat.com>
27709 PR tree-optimization/56918
27710 PR tree-optimization/56920
27711 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
27712 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
27713 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
27714 use wide_mul_with_sign method.
27716 2013-04-12 Richard Biener <rguenther@suse.de>
27718 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
27719 not be considered a gimple constant.
27721 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
27723 * fold-const.c (const_binop): Handle vector shifts by a scalar.
27724 (fold_binary_loc): Call const_binop also for mixed vector-scalar
27727 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
27728 Jakub Jelinek <jakub@redhat.com>
27730 * opts.c: Include diagnostic-color.h.
27731 (common_handle_option): Handle OPT_fdiagnostics_color_.
27732 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
27733 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
27734 (diagnostic-color.o): New.
27735 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
27736 (diagnostic_color_rule): New enum.
27737 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
27738 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
27739 the location string.
27740 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
27741 either NULL, or color kind.
27742 * diagnostic-color.c: New file.
27743 * diagnostic-color.h: New file.
27744 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
27746 * doc/invoke.texi (-fdiagnostics-color): Document.
27747 * pretty-print.h (pp_show_color): Define.
27748 (struct pretty_print_info): Add show_color field.
27749 * diagnostic.c: Include diagnostic-color.h.
27750 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
27751 macros. Colorize error:, warning: etc. strings and also the location
27753 (diagnostic_show_locus): Colorize the caret line.
27754 * pretty-print.c: Include diagnostic-color.h.
27755 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
27756 inside of %< %> quotes or quoted through q format modifier.
27758 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27760 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
27762 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
27764 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
27765 code in CC_NZ mode.
27766 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
27769 2013-04-11 Marek Polacek <polacek@redhat.com>
27771 PR tree-optimization/48184
27772 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
27774 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
27776 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
27777 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
27778 (skip_simple_arithmetic): Tidy up.
27779 * tree.h (skip_simple_constant_arithmetic): Declare.
27781 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
27783 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
27785 2013-04-11 Richard Biener <rguenther@suse.de>
27787 * tree-vect-loop.c (get_initial_def_for_induction): Properly
27788 generate vector constants.
27790 2013-04-11 Richard Biener <rguenther@suse.de>
27792 PR tree-optimization/56878
27793 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
27794 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
27796 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
27797 Prefer to align the DR with the most invariant base address.
27799 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
27801 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
27804 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
27806 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
27807 floating-point vector comparisons against 0.
27809 2013-04-11 Jakub Jelinek <jakub@redhat.com>
27811 PR tree-optimization/56899
27812 * fold-const.c (extract_muldiv_1): Apply distributive law
27813 only if TYPE_OVERFLOW_WRAPS (ctype).
27815 2013-04-11 Bin Cheng <bin.cheng@arm.com>
27818 * ira-costs.c (scan_one_insn): Check whether the source rtx of
27819 loading has side effect.
27821 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
27823 * config/sparc/sparc.c: Include tree-pass.h.
27824 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
27825 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
27826 head of file. Change return type. Split off gate function.
27827 (sparc_gate_work_around_errata): New function.
27828 (pass_work_around_errata): New pass definition.
27829 (insert_pass_work_around_errata) New pass insert definition to
27830 insert pass_work_around_errata just after delayed-branch scheduling.
27831 (sparc_option_override): Insert the pass.
27832 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
27834 2013-04-10 David S. Miller <davem@davemloft.net>
27836 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
27837 or -mcpu=hypersparc.
27839 * target.def (cstore_mode): New hook.
27840 * target.h: Include insn-codes.h
27841 * targhooks.c: Likewise.
27842 (default_cstore_mode): New function.
27843 * targhooks.h: Declare it.
27844 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
27845 * doc/tm.texi: Rebuild.
27846 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
27847 target hook, rather than inspecting the insn_data.
27848 * config/sparc/sparc.c (sparc_cstore_mode): New function.
27849 (TARGET_CSTORE_MODE): Redefine.
27850 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
27852 * config/sparc/predicates.md (cstore_result_operand): New special
27854 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
27855 Use it for operand 0.
27856 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
27857 (*snesi_special): Likewise.
27858 (*snesi_zero): Likewise.
27859 (*seqsi_zero): Likewise.
27860 (*sltu_insn): Likewise.
27861 (*sgeu_insn): Likewise.
27862 (*seqdi_special): Make operand 0 and comparison operation be of
27864 (*snedi_special): Likewise.
27865 (*snedi_special_vis3): Likewise.
27866 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
27867 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
27868 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
27869 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
27870 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
27871 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
27872 (*sltu_extend_sp64): Likewise.
27873 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
27874 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
27875 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
27876 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
27877 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
27879 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
27881 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
27882 (aarch64_start_file): Use the new function.
27884 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
27885 Jason Merrill <jason@redhat.com>
27887 * common.opt: Add -gdwarf.
27888 * opts.c (common_handle_option): Handle it.
27889 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
27891 2013-04-10 Richard Biener <rguenther@suse.de>
27893 * passes.c (execute_todo): Do not call ggc_collect conditional here.
27894 (execute_one_ipa_transform_pass): But unconditionally here.
27895 (execute_one_pass): And here.
27896 (init_optimization_passes): Remove reload pass.
27897 * tree-pass.h (TODO_ggc_collect): Remove.
27898 (pass_reload): Likewise.
27899 * ira.c (do_reload): Merge into ...
27901 (rest_of_handle_reload): Remove.
27902 (pass_reload): Likewise.
27903 * config/i386/i386.c (ix86_option_override): Refer to ira instead
27904 of reload for vzeroupper pass placement.
27905 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
27906 and todo_flags_finish of all passes.
27908 2013-04-10 Richard Biener <rguenther@suse.de>
27910 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
27911 first_const_oprnd field, rename first_def_type to first_op_type.
27912 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
27913 (vect_get_and_check_slp_defs): Always use the type of the
27914 operand. Allow mixed vect_external_def, vect_constant_def types.
27915 (vect_get_constant_vectors): Handle mixed vect_external_def,
27916 vect_constant_def types.
27918 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
27920 PR tree-optimization/55524
27921 * tree-ssa-math-opts.c
27922 (convert_mult_to_fma): Don't use an fms construct
27923 when we don't have an fms operation, but fnma, and it looks
27924 likely that we'll be able to use the latter.
27926 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
27928 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
27930 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
27931 inline fail caused by overwritable functions.
27933 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
27935 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
27936 unnecessary bits in the constant power of two case.
27938 2013-04-10 Richard Biener <rguenther@suse.de>
27940 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
27941 broken code swapping operands.
27942 (vect_build_slp_tree): Do not compute load permutations here.
27943 (vect_analyze_slp_instance): Compute load permutations here,
27944 after building the SLP tree.
27946 2013-04-09 Christian Bruel <christian.bruel@st.com>
27948 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
27949 of next/prev_real_insn.
27951 2013-04-09 Jan Hubicka <jh@suse.cz>
27953 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
27954 Drop aliased parameter.
27955 (function_and_variable_visibility): Do not handle alias pairs.
27956 * cgraph.c (varpool_externally_visible_p): Update prototype.
27957 * varpool.c (varpool_add_new_variable): Update.
27959 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27961 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
27963 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
27965 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
27967 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
27969 2013-04-09 Marek Polacek <polacek@redhat.com>
27971 PR tree-optimization/48762
27972 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
27974 2013-04-09 Richard Biener <rguenther@suse.de>
27976 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
27978 (vect_build_slp_tree): Likewise.
27979 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
27980 calculating the cost of a SLP instance.
27981 (vect_analyze_slp_instance): Use it from here, after building
27984 2013-04-09 Jakub Jelinek <jakub@redhat.com>
27986 PR middle-end/56883
27987 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
27988 expand_omp_for_static_chunk): Use simple_p = true in
27989 force_gimple_operand_gsi calls when assigning to addressable decls.
27991 2013-04-09 Jeff Law <law@redhat.com>
27993 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
27994 when the boolean was created by converting a wider object which
27995 had a boolean range.
27997 2013-04-09 Richard Biener <rguenther@suse.de>
27999 * tree-vectorizer.h (slp_void_p): Remove.
28000 (slp_tree): Typedef before _slp_tree declaration.
28001 (struct _slp_tree): Use a vector of slp_tree as children.
28002 (vect_get_place_in_interleaving_chain): Remove.
28003 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
28005 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
28007 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
28008 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
28009 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
28010 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
28011 Use slp_node instead of slp_void_p and adjust.
28013 2013-04-09 Richard Biener <rguenther@suse.de>
28015 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
28016 work that is not necessary.
28018 2013-04-09 Jakub Jelinek <jakub@redhat.com>
28020 PR tree-optimization/56854
28021 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
28022 forward into clobber stmts if it would change MEM_REF lhs into
28025 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
28027 * tree.c (type_hash_lookup, type_hash_add): Make static.
28028 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
28030 2013-04-09 Richard Biener <rguenther@suse.de>
28032 * tree.h (unsave_expr_now): Remove.
28033 * tree-inline.c (mark_local_for_remap_r): Remove.
28034 (unsave_expr_1): Likewise.
28035 (unsave_r): Likewise.
28036 (unsave_expr_now): Likewise.
28037 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
28038 (propagate_tree_value): Likewise.
28040 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
28042 * doc/rtl.texi (sequence): Rewrite documentation to match the
28043 current use of SEQUENCE rtl objects.
28044 * rtl.def (SEQUENCE): Likewise.
28046 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
28047 Update documentation.
28048 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
28049 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
28051 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
28053 2013-04-08 Teresa Johnson <tejohnson@google.com>
28055 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
28056 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
28058 (estimate_edge_size_and_time): Add comment to suggest using rounding
28060 (estimate_node_size_and_time): Ditto.
28061 (remap_edge_change_prob): Use helper rounding divide methods.
28062 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
28063 (gimple_mod_pow2_value_transform): Ditto.
28064 (gimple_mod_subtract_transform): Ditto.
28065 (gimple_ic_transform): Ditto.
28066 (gimple_stringops_transform): Ditto.
28067 * stmt.c (conditional_probability): Ditto.
28068 (emit_case_dispatch_table): Ditto.
28069 * lto-cgraph.c (merge_profile_summaries): Ditto.
28070 * tree-optimize.c (execute_fixup_cfg): Ditto.
28071 * cfgcleanup.c (try_forward_edges): Ditto.
28072 * cfgloopmanip.c (scale_loop_profile): Ditto.
28074 (duplicate_loop_to_header_edge): Ditto.
28075 (lv_adjust_loop_entry_edge): Ditto.
28076 * tree-vect-loop.c (vect_transform_loop): Ditto.
28077 * profile.c (compute_branch_probabilities): Ditto.
28078 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
28079 * lto-streamer-in.c (input_cfg): Ditto.
28080 * gimple-streamer-in.c (input_bb): Ditto.
28081 * ipa-cp.c (update_profiling_info): Ditto.
28082 (update_specialized_profile): Ditto.
28083 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
28084 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
28086 * sched-rgn.c (compute_dom_prob_ps): Ditto.
28087 (compute_trg_info): Ditto.
28088 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
28089 (purge_dead_edges): Ditto.
28090 * loop-unswitch.c (unswitch_loop): Ditto.
28091 * cgraphclones.c (cgraph_clone_edge): Ditto.
28092 (cgraph_clone_node): Ditto.
28093 * tree-inline.c (copy_bb): Ditto.
28094 (copy_edges_for_bb): Ditto.
28095 (initialize_cfun): Ditto.
28096 (copy_cfg_body): Ditto.
28097 (expand_call_inline): Ditto.
28099 2013-04-08 Kai Tietz <ktietz@redhat.com>
28101 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
28102 TARGET_CYGWIN64 by TARGET_64BIT.
28104 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
28106 * config/epiphany/epiphany.md (GPR_1): New constant.
28107 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
28108 * config/epiphany/epiphany.c (gen_compare_reg):
28109 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
28110 is already in place.
28111 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
28112 Don't require being called during rtl expansion; If y operlaps r0,
28114 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
28115 (epiphany_expand_epilogue): Likewise.
28117 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
28118 Don't use CC_FPmode for ORDERED / UNORDERED.
28119 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
28121 * config/epiphany/constraints.md (CnL): New constraint.
28122 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
28123 * config/epiphany/predicates.md (add_operand): Allow 1024.
28125 * config/epiphany/epiphany.md (logical_op): New code iterator.
28126 (op_mnc): New code attribute.
28127 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
28128 (mov_f+1, mov_f+2): New peephole2 patterns.
28130 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
28131 (cstoresi4): Also allow re-use of zero result when doing a NE
28132 comparison to a non-zero operand.
28133 Use (clobber (scratch)) for first insn if the gpr output is not needed.
28135 * config/epiphany/epiphany.md (<insn_opname>v2si3):
28136 Use gen_addsi3_i / gen_subsi3_i.
28138 2013-04-08 Jakub Jelinek <jakub@redhat.com>
28142 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
28143 contain anything but clobbers, at most one __builtin_stack_restore,
28144 optionally debug stmts and final resx, and if it has at least one
28145 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
28146 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
28147 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
28148 which isn't defaut definition, remove them.
28149 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
28150 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
28151 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
28152 with MEM_REF LHS with SSA_NAME address.
28154 2013-04-08 Jeff Law <law@redhat.com>
28156 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
28158 2013-04-08 Richard Biener <rguenther@suse.de>
28160 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
28162 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
28163 determined vector type.
28164 (vect_analyze_data_refs): Likewise.
28165 (vect_get_new_vect_var): Adjust.
28166 (vect_create_destination_var): Preserve SSA name versions.
28167 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
28168 not dump anything here.
28170 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
28172 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
28173 Add member lr_slot_known.
28174 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
28176 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
28177 Remove code that sets lr_slot_offset according to what a previous
28178 version of epiphany_emit_save_restore used to do.
28179 (epiphany_emit_save_restore): When doing an lr save or restore,
28180 set/verify lr_slot_known and lr_slot_offset.
28182 2013-04-08 Xinyu Qi <xyqi@marvell.com>
28185 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
28188 2013-04-08 Richard Biener <rguenther@suse.de>
28190 * alias.c (find_base_term): Fix thinko in previous change.
28192 2013-04-08 Jakub Jelinek <jakub@redhat.com>
28194 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
28195 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
28196 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
28197 if possible to compute val.
28198 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
28199 For QImode integers don't require anything about precision. Use
28200 const_with_all_bytes_same to find out if the constant doesn't have
28201 repeated bytes in it.
28203 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28205 * config/s390/s390.c (s390_expand_insv): Only accept insertions
28208 2013-04-08 Marek Polacek <polacek@redhat.com>
28210 PR rtl-optimization/48182
28211 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
28214 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28217 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
28218 nuses, make sure we have a label.
28220 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28223 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
28224 (rs6000_emit_swdiv_low_precision): Remove.
28225 (rs6000_emit_swdiv): Rewrite to handle between one and four
28226 iterations of Newton-Raphson generally; modify required number of
28227 iterations for some cases.
28228 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
28230 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
28232 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
28233 set-but-unused variable.
28235 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
28236 basic blocks of released function bodies garbage-collectable.
28238 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
28239 (struct rtl_opt_pass): Add TODO_df_finish.
28241 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
28243 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
28245 * config/arm/constraints.md (q): New constraint.
28246 * config/arm/ldrdstrd.md: New file.
28247 * config/arm/arm.md (ldrdstrd.md) New include.
28248 (arm_movdi): Use "q" instead of "r" constraint
28249 for double-word memory access.
28250 (movdf_soft_insn): Likewise.
28251 * config/arm/vfp.md (movdi_vfp): Likewise.
28252 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
28253 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
28254 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
28255 (mem_ok_for_ldrd_strd): Likewise.
28256 (output_move_double): Update assertion.
28258 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
28260 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
28262 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
28264 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
28265 define_insn_and_split.
28266 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
28268 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
28270 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
28271 define_insn_and_split.
28272 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
28273 (shiftsi3_compare): New pattern.
28274 (rrx): New pattern.
28275 * config/arm/unspecs.md (UNSPEC_RRX): New.
28277 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
28279 * config/arm/arm.md (negdi_extendsidi): New pattern.
28280 (negdi_zero_extendsidi): Likewise.
28282 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
28284 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
28285 define_insn_and_split.
28286 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
28287 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
28289 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
28291 * config/arm/arm.md (arm_subdi3): Convert define_insn into
28292 define_insn_and_split.
28293 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
28294 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
28296 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
28298 * config/arm/arm.md (subsi3_carryin): New pattern.
28299 (subsi3_carryin_const): Likewise.
28300 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
28301 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
28303 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
28305 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
28307 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
28309 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
28310 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
28312 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28314 * config/arm/arm.c (arm_expand_builtin): Change fcode
28315 type to unsigned int.
28317 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28319 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
28321 2013-04-04 Ian Lance Taylor <iant@google.com>
28323 * doc/standards.texi (Standards): The Go frontend supports the Go 1
28326 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
28328 PR middle-end/56729
28329 * df-scan.c (df_insn_delete): Disable failing assert.
28331 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28333 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
28334 New function prototype.
28335 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
28336 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
28337 (arm_builtin_vectorized_function): New function.
28339 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28341 * config/arm/arm_neon_builtins.def: New file.
28342 * config/arm/arm.c (neon_builtin_data): Move contents to
28343 arm_neon_builtins.def.
28344 (enum arm_builtins): Include neon builtin definitions.
28345 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
28346 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
28348 2013-04-04 Marek Polacek <polacek@redhat.com>
28350 PR tree-optimization/48186
28351 * predict.c (maybe_hot_frequency_p): Return false if
28352 HOT_BB_FREQUENCY_FRACTION is 0.
28353 (cgraph_maybe_hot_edge_p): Likewise.
28355 2013-04-04 Richard Biener <rguenther@suse.de>
28357 PR tree-optimization/56826
28358 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
28361 2013-04-04 Richard Biener <rguenther@suse.de>
28363 PR tree-optimization/56213
28364 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
28365 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
28367 2013-04-04 Richard Biener <rguenther@suse.de>
28369 PR tree-optimization/56837
28370 * tree-loop-distribution.c (classify_partition): For non-zero
28371 values require that the value has the same precision as its
28372 mode to be useful as memset value.
28374 2013-04-03 Nick Clifton <nickc@redhat.com>
28376 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
28377 (fmssf4): Use fmsf.s on E3V5 architectures.
28378 (fnmasf4): Use fnmaf.s on E3V5 architectures.
28379 (fnmssf4): Use fnmsf.s on E3V5 architectures.
28381 2013-04-03 Jeff Law <law@redhat.com>
28383 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
28384 (lra-eliminations.o): Likewise.
28386 2013-04-03 Teresa Johnson <tejohnson@google.com>
28388 * gcov-io.c (compute_working_sets): Moved most of body of old
28389 compute_working_sets here from profile.c.
28390 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
28391 (gcov_working_set_t): Moved typedef here from basic-block.h
28392 (compute_working_set): Declare.
28393 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
28394 (get_working_sets): Renamed from compute_working_set,
28395 replace most of body with call to new compute_working_sets.
28396 (get_exec_counts): Replace call to compute_working_sets
28397 to get_working_sets.
28398 * profile.h (get_working_sets): Renamed from compute_working_set.
28399 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
28400 to get_working_sets.
28401 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
28402 * gcov-dump.c (dump_working_sets): New function.
28404 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
28406 * hwint.c (sext_hwi, zext_hwi): New functions.
28407 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
28408 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
28409 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
28410 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
28411 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
28412 (sext_hwi, zext_hwi): New functions.
28414 2013-04-03 Jeff Law <law@redhat.com>
28416 PR tree-optimization/56799
28417 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
28418 back test for widening conversion erroneously dropped in prior change.
28420 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28423 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
28424 instead of next_real_insn.
28426 2013-04-03 Marek Polacek <polacek@redhat.com>
28429 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
28431 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28434 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
28436 (thumb1_output_casesi): Likewise.
28437 (thumb2_output_casesi): Likewise.
28439 2013-04-03 Richard Biener <rguenther@suse.de>
28441 PR tree-optimization/56817
28442 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
28444 (tree_unroll_loops_completely_1): ... new function to manually
28445 walk the loop tree, properly defering outer loops of unrolled
28446 loops to later iterations.
28448 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
28450 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
28451 (vectorizable_load): Likewise.
28452 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
28453 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
28455 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
28457 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
28460 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28462 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
28464 2013-04-03 Bin Cheng <bin.cheng@arm.com>
28466 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
28468 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
28470 PR tree-optimization/56790
28471 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
28474 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
28476 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
28478 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
28479 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
28482 2013-04-03 Jakub Jelinek <jakub@redhat.com>
28485 * tree.h (force_folding_builtin_constant_p): New decl.
28486 * builtins.c (force_folding_builtin_constant_p): New variable.
28487 (fold_builtin_constant_p): Fold immediately also if
28488 force_folding_builtin_constant_p.
28490 2013-04-03 Richard Biener <rguenther@suse.de>
28492 PR tree-optimization/56812
28493 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
28494 DRs of the same interleaving chain are independent.
28496 2013-04-02 Jason Merrill <jason@redhat.com>
28498 * gdbinit.in (pbb): Use debug fn.
28500 2013-04-02 Lawrence Crowl <crowl@google.com>
28502 * sese.h (struct ivtype_map_elt_s): Remove unused.
28503 (extern debug_ivtype_map): Remove unused.
28504 (extern eq_ivtype_map_elts): Remove unused.
28505 * sese.c (debug_ivtype_map): Removed unused.
28506 (debug_ivtype_map_1): Removed unused.
28507 (debug_ivtype_elt): Remove unused.
28508 (eq_ivtype_map_elts): Remove unused.
28510 2013-04-02 Kai Tietz <ktietz@redhat.com>
28513 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
28514 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
28515 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
28517 (legitimize_pe_coff_symbol): Likewise.
28518 (is_imported_p): New helper-function.
28519 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
28520 for Windows x64 targets.
28521 (ix86_expand_prologue): Optimize for pe-coff targets.
28522 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
28523 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
28524 medium/large code-model.
28525 (legitimize_pic_address): Likewise.
28526 (legitimize_tls_address): Likewise.
28527 (ix86_expand_call): Likewise.
28528 (x86_output_mi_thunk): Likewise.
28529 (get_dllimport_decl): Add new beimport argument.
28530 (construct_plt_address): Don't assert for x64 pe-coff targets.
28531 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
28533 (SYMBOL_FLAG_STUBVAR): New macro.
28534 (SYMBOL_REF_STUBVAR_P): Likewise.
28535 * config/i386/winnt.c (stub_list): New structure.
28536 (stub_head): New local variable.
28537 (i386_pe_record_stub): New function.
28538 (i386_pe_file_end): Emit refptr-stubs.
28540 2013-04-02 Jakub Jelinek <jakub@redhat.com>
28542 PR rtl-optimization/56745
28543 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
28544 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
28547 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
28548 and both of them are MEM_REFs, just compare first argument for
28549 equality and attempt to deal even with differing offsets.
28552 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
28553 of gimple_clobber_p to be MEM_REF.
28554 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
28555 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
28556 after gimplification.
28557 * asan.c (get_mem_ref_of_assignment): Don't instrument
28558 gimple_clobber_p stmts.
28559 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
28560 gimple_clobber_p stmt if they have MEM_REF lhs and
28561 are dead because of another gimple_clobber_p stmt.
28562 * tree-ssa-live.c (clear_unused_block_pointer): Treat
28563 gimple_clobber_p stmts like debug stmts.
28564 (remove_unused_locals): Remove clobbers with MEM_REF lhs
28565 that refer to unused VAR_DECLs or uninitialized values.
28566 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
28567 gimple_clobber_p stmts if they refer to removed parameters.
28568 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
28571 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
28573 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
28574 using SWI48 mode attribute.
28576 2013-04-02 Wei Mi <wmi@google.com>
28578 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
28579 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
28580 *<rotate_insn><mode>3_mask in i386.md.
28582 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
28584 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
28586 2013-04-02 Richard Biener <rguenther@suse.de>
28588 PR tree-optimization/56778
28589 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
28590 Runtime alias tests are not supported for gather loads.
28591 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
28592 stmts referenced from SSA operands before updating SSA form.
28594 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
28595 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28597 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
28598 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
28599 * config/arm/cortex-a53.md: New file.
28600 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
28601 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
28602 * config/arm/arm.c (arm_issue_rate): Likewise.
28603 * config/arm/arm-tune.md: Regenerate
28604 * config/arm/arm-tables.opt: Regenerate.
28605 * config/arm/arm-cores.def: Add cortex-a53.
28607 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
28609 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
28612 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
28614 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
28615 scalar load/store operations using B/H registers.
28616 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
28618 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
28620 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
28622 * config/aarch64/aarch64.c
28623 (aarch64_simd_scalar_immediate_valid_for_move): New.
28624 * config/aarch64/aarch64-protos.h
28625 (aarch64_simd_scalar_immediate_valid_for_move): New.
28626 * config/aarch64/constraints.md (Dh, Dq): New.
28627 * config/aarch64/iterators.md (hq): New.
28629 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
28631 * reorg.c (get_branch_condition): Deal with conditional returns.
28632 (fill_simple_delay_slots): Remove dead code dealing with jumps.
28634 2013-04-01 Wei Mi <wmi@google.com>
28636 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
28637 Truncate operand 2 using %b asm operand modifier.
28638 (*<shift_insn><mode>3_mask): Ditto.
28639 (*<rotate_insn><mode>3_mask): Ditto.
28641 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
28643 PR middle-end/56798
28644 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
28646 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
28648 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
28650 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
28652 2013-03-30 Lawrence Crowl <crowl@google.com>
28654 * dse.c (clear_alias_sets): Remove never set.
28655 (disqualified_clear_alias_sets): Remove never set.
28656 (clear_alias_mode_pool): Remove never set.
28657 (dse_step0): Remove condition that is never true.
28658 (canon_address): Remove condition that is never true.
28659 (dse_step7): Remove condition that is never true.
28660 (rest_of_handle_dse): Remove condition that is never true.
28661 (rest_of_handle_dse::did_global): Remove never read from above.
28662 (dse_step2_spill): Remove never called from above.
28663 (dse_step5_spill): Remove never called from above.
28665 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
28667 * doc/md.texi (Standard Names) <casesi>: Update documentation for
28668 JUMP_TABLE_DATA changes.
28669 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
28670 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
28671 (Insns) <jump_table_data>: New entry.
28672 * doc/tm.texi: Regenerate.
28674 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
28676 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
28677 for table jump at the end of a basic block using tablejump_p.
28678 * targhooks.c (default_invalid_within_doloop): Likewise.
28679 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
28680 target hook implementation that is identical to the default hook.
28681 (rs6000_invalid_within_doloop): Remove.
28683 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
28684 unused variable from tablejump_p call.
28686 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
28687 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
28688 (INSN_DELETED_P): Likewise.
28689 (emit_jump_table_data): New prototype.
28690 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
28691 after 4th as unused.
28692 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
28693 * sched-vis.c (print_insn): Likewise.
28694 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
28695 insn for compatibility with back ends that use next_active_insn to
28696 identify jump table data.
28697 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
28698 (remove_insn): Likewise.
28699 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
28701 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
28702 (emit_jump_table_data): New function.
28704 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
28705 basic block, a JUMP_TABLE_DATA never is.
28706 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
28707 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
28708 off from code handling real insns.
28709 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
28710 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
28711 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
28712 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
28713 is not a NONDEBUG_INSN_P.
28714 * ira-costs.c (scan_one_insn): Likewise.
28715 * jump.c (mark_all_labels): Likewise.
28716 (mark_jump_label_1): Likewise.
28717 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
28718 * lra.c (get_insn_freq): Expect all insns reaching here to be in
28720 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
28721 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
28722 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
28723 JUMP_TABLE_DATA_P insns.
28724 (calculate_elim_costs_all_insns): Likewise.
28725 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
28726 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
28727 (delete_output_reload): Code style fixups.
28728 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
28729 insn flags on this non-insn.
28730 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
28731 as scheduling barriers, for pre-change compatibility.
28732 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
28733 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
28735 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
28736 redundant JUMP_TABLE_DATA_P test.
28737 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
28738 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
28739 (frv_for_each_packet): Likewise.
28740 * config/i386/i386.c (min_insn_size): Likewise.
28741 (ix86_avoid_jump_mispredicts): Likewise.
28742 * config/m32r/m32r.c (m32r_is_insn): Likewise.
28743 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
28744 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
28745 (mips16_insn_length): Robustify.
28746 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
28747 (mips16_split_long_branches): Likewise.
28748 * config/pa/pa.c (pa_combine_instructions): Likewise.
28749 * config/rs6000/rs6000.c (get_next_active_insn): Treat
28750 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
28751 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
28752 as contributing to pool range lengths.
28753 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
28754 Remove redundant JUMP_TABLE_DATA_P test.
28755 (sh_loop_align): Likewise.
28756 (split_branches): Likewise.
28757 (sh_insn_length_adjustment): Likewise.
28758 * config/spu/spu.c (get_branch_target): Likewise.
28760 2013-03-29 Jan Hubicka <jh@suse.cz>
28762 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
28763 gcov streaming; stream hot bb threshold to ltrans.
28764 * predict.c (get_hot_bb_threshold): Break out from ....
28765 (maybe_hot_count_p): ... here.
28766 (set_hot_bb_threshold): New function.
28767 * lto-section-in.c (lto_section_name): Add profile.
28768 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
28769 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
28770 and data-streamer.h
28771 (histogram_entry): New structure.
28772 (histogram, histogram_pool): New global vars.
28773 (histogram_hash): New structure.
28774 (histogram_hash::hash): New method.
28775 (histogram_hash::equal): Likewise.
28776 (account_time_size): New function.
28777 (cmp_counts): New function.
28778 (dump_histogram): New function.
28779 (ipa_profile_generate_summary): New function.
28780 (ipa_profile_write_summary): New function.
28781 (ipa_profile_read_summary): New function.
28782 (ipa_profile): Decide on threshold.
28783 (pass_ipa_profile): Add ipa_profile_write_summary and
28784 ipa_profile_read_summary.
28785 * Makefile.in (ipa.o): Update dependencies.
28786 * lto-streamer.h (LTO_section_ipa_profile): New section.
28788 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
28790 * tree.h (VAR_P): New.
28792 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
28795 * doc/invoke.texi ([-fwhole-program]): Fix typo.
28797 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
28799 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
28800 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
28801 (control_flow_insn_p): Likewise.
28802 * cfgrtl.c (duplicate_insn_chain): Likewise.
28803 * final.c (get_attr_length_1): Likewise.
28804 (shorten_branches): Likewise.
28805 (final_scan_insn): Likewise.
28806 * function.c (instantiate_virtual_regs): Likewise.
28807 * gcse.c (insert_insn_end_basic_block): Likewise.
28808 * ira-costs.c (scan_one_insn): Likewise.
28809 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
28810 * lra.c (check_rtl): Likewise.
28811 * reload1.c (elimination_costs_in_insn): Likewise.
28812 * reorg.c (follow_jumps): Likewise.
28814 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
28815 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
28816 (thumb_far_jump_used_p): Likewise.
28817 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
28818 (workaround_speculation): Likewise.
28819 (add_sched_insns_for_speculation): Likewise.
28820 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
28821 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
28822 (frv_for_each_packet): Likewise.
28823 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
28824 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
28825 (final_emit_insn_group_barriers): Likewise.
28826 * config/m32r/m32r.c (m32r_is_insn): Likewise.
28827 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
28828 (mips16_insn_length): Likewise.
28829 * config/pa/pa.c (pa_reorg): Likewise.
28830 (pa_combine_instructions): Likewise.
28831 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
28832 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
28833 (sh_reorg): Likewise.
28834 (split_branches): Likewise.
28835 * config/spu/spu.c (get_branch_target): Likewise.
28837 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
28840 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
28842 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
28843 Fix declaration name.
28845 2013-03-28 Lawrence Crowl <crowl@google.com>
28847 * graphds.h (struct graph.indicies): Remove unused.
28848 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
28849 (SCOP_ORIGINAL_PDDRS): Remove unused.
28850 * sese.h (extern insert_loop_close_phis): Removed unused.
28851 (extern insert_guard_phis): Removed unused.
28852 (extern ivtype_map_elt_info): Removed unused.
28853 (new_ivtype_map_elt): Removed unused.
28854 * sese.c (ivtype_map_elt_info): Removed unused.
28856 2013-03-28 Lawrence Crowl <crowl@google.com>
28858 * Makefile.in: Add several missing include dependences.
28860 (test-dump.o): New. This object is not added to any executable,
28861 but is present for ad-hoc testing.
28863 (debug (const bitmap_head_def &)): New.
28864 (debug (const bitmap_head_def *)): New.
28866 (extern debug (const bitmap_head_def &)): New.
28867 (extern debug (const bitmap_head_def *)): New.
28869 (debug (edge_def &)): New.
28870 (debug (edge_def *)): New.
28872 (debug (basic_block_def &)): New.
28873 (debug (basic_block_def *)): New.
28875 (dump_node (const_tree, int, FILE *)): Correct source file.
28877 (debug (die_struct &)): New.
28878 (debug (die_struct *)): New.
28880 (extern debug (die_struct &)): New.
28881 (extern debug (die_struct *)): New.
28882 * gimple-pretty-print.c
28883 (debug (gimple_statement_d &)): New.
28884 (debug (gimple_statement_d *)): New.
28885 * gimple-pretty-print.h
28886 (extern debug (gimple_statement_d &)): New.
28887 (extern debug (gimple_statement_d *)): New.
28889 (debug (ira_allocno_copy &)): New.
28890 (debug (ira_allocno_copy *)): New.
28891 (debug (ira_allocno &)): New.
28892 (debug (ira_allocno *)): New.
28894 (extern debug (ira_allocno_copy &)): New.
28895 (extern debug (ira_allocno_copy *)): New.
28896 (extern debug (ira_allocno &)): New.
28897 (extern debug (ira_allocno *)): New.
28899 (debug (live_range &)): New.
28900 (debug (live_range *)): New.
28902 (debug (lra_live_range &)): New.
28903 (debug (lra_live_range *)): New.
28905 (debug (lra_live_range &)): New.
28906 (debug (lra_live_range *)): New.
28908 (debug (omega_pb_d &)): New.
28909 (debug (omega_pb_d *)): New.
28911 (extern debug (omega_pb_d &)): New.
28912 (extern debug (omega_pb_d *)): New.
28914 (debug (const rtx_def &)): New.
28915 (debug (const rtx_def *)): New.
28917 (debug_tree (tree): Move within file.
28918 (debug_raw (const tree_node &)): New.
28919 (debug_raw (const tree_node *)): New.
28920 (dump_tree_via_hooks (const tree_node *, int)): New.
28921 (debug (const tree_node &)): New.
28922 (debug (const tree_node *)): New.
28923 (debug_verbose (const tree_node &)): New.
28924 (debug_verbose (const tree_node *)): New.
28925 (debug_head (const tree_node &)): New.
28926 (debug_head (const tree_node *)): New.
28927 (debug_body (const tree_node &)): New.
28928 (debug_body (const tree_node *)): New.
28929 (debug_vec_tree (tree): Move and reimplement in terms of dump.
28930 (debug (vec<tree, va_gc> &)): New.
28931 (debug (vec<tree, va_gc> *)): New.
28933 (extern debug (const rtx_def &)): New.
28934 (extern debug (const rtx_def *)): New.
28936 (debug_raw (simple_bitmap_def &)): New.
28937 (debug_raw (simple_bitmap_def *)): New.
28938 (debug (simple_bitmap_def &)): New.
28939 (debug (simple_bitmap_def *)): New.
28941 (extern debug (simple_bitmap_def &)): New.
28942 (extern debug (simple_bitmap_def *)): New.
28943 (extern debug_raw (simple_bitmap_def &)): New.
28944 (extern debug_raw (simple_bitmap_def *)): New.
28946 (debug (vinsn_def &)): New.
28947 (debug (vinsn_def *)): New.
28948 (debug_verbose (vinsn_def &)): New.
28949 (debug_verbose (vinsn_def *)): New.
28950 (debug (expr_def &)): New.
28951 (debug (expr_def *)): New.
28952 (debug_verbose (expr_def &)): New.
28953 (debug_verbose (expr_def *)): New.
28954 (debug (vec<rtx> &)): New.
28955 (debug (vec<rtx> *)): New.
28957 (extern debug (vinsn_def &)): New.
28958 (extern debug (vinsn_def *)): New.
28959 (extern debug_verbose (vinsn_def &)): New.
28960 (extern debug_verbose (vinsn_def *)): New.
28961 (extern debug (expr_def &)): New.
28962 (extern debug (expr_def *)): New.
28963 (extern debug_verbose (expr_def &)): New.
28964 (extern debug_verbose (expr_def *)): New.
28965 (extern debug (vec<rtx> &)): New.
28966 (extern debug (vec<rtx> *)): New.
28968 (_list_iter_cond_expr): Make inline instead of static.
28970 (debug (sreal &)): New.
28971 (debug (sreal *)): New.
28973 (extern debug (sreal &)): New.
28974 (extern debug (sreal *)): New.
28976 (extern debug_raw (const tree_node &)): New.
28977 (extern debug_raw (const tree_node *)): New.
28978 (extern debug (const tree_node &)): New.
28979 (extern debug (const tree_node *)): New.
28980 (extern debug_verbose (const tree_node &)): New.
28981 (extern debug_verbose (const tree_node *)): New.
28982 (extern debug_head (const tree_node &)): New.
28983 (extern debug_head (const tree_node *)): New.
28984 (extern debug_body (const tree_node &)): New.
28985 (extern debug_body (const tree_node *)): New.
28986 (extern debug (vec<tree, va_gc> &)): New.
28987 (extern debug (vec<tree, va_gc> *)): New.
28989 (debug (struct loop &)): New.
28990 (debug (struct loop *)): New.
28991 (debug_verbose (struct loop &)): New.
28992 (debug_verbose (struct loop *)): New.
28993 * tree-dump.c: Add header dependence.
28995 (extern debug (struct loop &)): New.
28996 (extern debug (struct loop *)): New.
28997 (extern debug_verbose (struct loop &)): New.
28998 (extern debug_verbose (struct loop *)): New.
29000 (debug (data_reference &)): New.
29001 (debug (data_reference *)): New.
29002 (debug (vec<data_reference_p> &)): New.
29003 (debug (vec<data_reference_p> *)): New.
29004 (debug (vec<ddr_p> &)): New.
29005 (debug (vec<ddr_p> *)): New.
29007 (extern debug (data_reference &)): New.
29008 (extern debug (data_reference *)): New.
29009 (extern debug (vec<data_reference_p> &)): New.
29010 (extern debug (vec<data_reference_p> *)): New.
29011 (extern debug (vec<ddr_p> &)): New.
29012 (extern debug (vec<ddr_p> *)): New.
29014 (debug (pt_solution &)): New.
29015 (debug (pt_solution *)): New.
29017 (extern debug (pt_solution &)): New.
29018 (extern debug (pt_solution *)): New.
29020 (debug (_var_map &)): New.
29021 (debug (_var_map *)): New.
29022 (debug (tree_live_info_d &)): New.
29023 (debug (tree_live_info_d *)): New.
29025 (extern debug (_var_map &)): New.
29026 (extern debug (_var_map *)): New.
29027 (extern debug (tree_live_info_d &)): New.
29028 (extern debug (tree_live_info_d *)): New.
29030 2013-03-28 Jan Hubicka <jh@suse.cz>
29032 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
29034 2013-03-28 Ian Bolton <ian.bolton@arm.com>
29036 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
29037 record only when desired or required.
29039 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
29041 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
29042 *vec_extractv2di_1_rex64. Use x64 isa attribute.
29044 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29046 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
29047 (*andsi3_compare0_uxtw): New pattern.
29048 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
29049 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
29051 2013-03-28 Jan Hubicka <jh@suse.cz>
29053 * data-streamer-in.c (streamer_read_gcov_count): New function.
29054 * gimple-streamer-out.c: Include value-prof.h.
29055 (output_gimple_stmt): Output histogram.
29056 (output_bb): Use streamer_write_gcov_count.
29057 * value-prof.c: Include data-streamer.h
29058 (dump_histogram_value): Add HIST_TYPE_MAX.
29059 (stream_out_histogram_value): New function.
29060 (stream_in_histogram_value): New function.
29061 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
29062 (stream_out_histogram_value, stream_in_histogram_value): Declare.
29063 * data-streamer-out.c (streamer_write_gcov_count): New function.
29064 (streamer_write_gcov_count_stream): New function.
29065 * lto-cgraph.c (lto_output_edge): Update counter streaming.
29066 (lto_output_node): Likewise.
29067 (input_node, input_edge): Likewise.
29068 * lto-streamer-out.c (output_cfg): Update streaming.
29069 * lto-streamer-in.c (input_cfg): Likewise.
29070 * data-streamer.h (streamer_write_gcov_count,
29071 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
29072 * gimple-streamer-in.c: Include value-prof.h
29073 (input_gimple_stmt): Input histograms.
29074 (input_bb): Update profile streaming.
29076 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
29078 * genmodes.c (emit_max_int): New function.
29079 (emit_insn_modes_h): Added call to emit_max_function.
29080 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
29082 * machmode.def: Fixed comment.
29084 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
29086 * combine.c (try_combine): Removed useless assert.
29087 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
29089 2013-03-28 Marek Polacek <polacek@redhat.com>
29090 Richard Biener <rguenther@suse.de>
29092 PR tree-optimization/56695
29093 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
29094 build signed result of a vector comparison.
29095 * tree-cfg.c (verify_gimple_comparison): Check that a result
29096 of a vector comparison has signed type.
29098 2013-03-28 Richard Biener <rguenther@suse.de>
29100 PR tree-optimization/37021
29101 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
29102 do not restrict gaps between groups.
29103 * tree-vect-stmts.c (vectorizable_load): Properly account for
29104 a gap between groups.
29106 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
29108 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
29109 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
29112 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
29114 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
29115 * doc/extend.texi (Named Address Spaces): Ditto.
29116 (Variable Attributes): Ditto.
29118 2013-03-27 Kai Tietz <ktietz@redhat.com>
29120 * config.build: Add support for cygwin x64 target.
29121 * config.gcc: Likewise.
29122 * config.host: Likewise.
29123 * configure.ac: Likewise
29124 * configure: Regenerated.
29126 2013-03-27 Kai Tietz <ktietz@redhat.com>
29128 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
29129 * config/i386/t-cygwin-w64: New file.
29130 * config/i386/cygwin-w64.h: New file.
29131 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
29132 and add support for x64-cygwin target.
29133 (CPP_SPEC): Likewise.
29134 (CXX_WRAP_SPEC_LIST): Undefine before define.
29135 (LIBGCJ_SONAME): Use 15 as version.
29137 2013-03-27 Richard Biener <rguenther@suse.de>
29139 PR tree-optimization/56716
29140 * tree-ssa-structalias.c (perform_var_substitution): Adjust
29141 dumping for ref nodes.
29143 2013-03-27 Martin Jambor <mjambor@suse.cz>
29145 PR tree-optimization/55334
29146 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
29147 restricted pointers to arrays.
29149 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
29151 * Makefile.in (.SUFFIXES): Add .cc.
29152 (.c.o): Apply same recipe for implicit rule .cc.o.
29154 2013-03-27 Richard Biener <rguenther@suse.de>
29156 PR tree-optimization/37021
29157 * tree-vect-data-refs.c (vect_check_strided_load): Allow
29158 REALPART/IMAGPART_EXPRs around the supported refs.
29159 * tree-ssa-structalias.c (find_func_aliases): Assume that
29160 floating-point values are not used to transfer pointers.
29162 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
29164 * target.def (TARGET_HAS_IFUNC_P): New target hook.
29165 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
29166 * doc/tm.texi: Regenerate.
29167 * targhooks.h (default_has_ifunc_p): New.
29168 * targhooks.c (default_has_ifunc_p): Ditto.
29169 * config/linux-protos.h: New file.
29170 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
29171 hook for linux which disables support of indirect functions in android.
29172 * config/linux-android.c: New file.
29173 * config/t-linux-android.c: Ditto.
29174 * config.gcc: Added new object file linux-android.o.
29175 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
29176 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
29177 * varasm.c (do_assemble_alias): Likewise.
29178 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
29179 doesn't support indirect functions.
29180 * configure: Regenerate.
29182 2013-03-27 Bin Cheng <bin.cheng@arm.com>
29185 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
29186 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
29189 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29191 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
29193 2013-03-27 Terry Guo <terry.guo@arm.com>
29195 * config/arm/arm-cores.def: Added core cortex-r7.
29196 * config/arm/arm-tune.md: Regenerated.
29197 * config/arm/arm-tables.opt: Regenerated.
29198 * doc/invoke.texi: Added entry for core cortex-r7.
29200 2013-03-27 Walter Lee <walt@tilera.com>
29202 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
29203 double-decrement of next_scratch_regno.
29205 2013-03-27 Walter Lee <walt@tilera.com>
29207 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
29209 (insn_v1mulus): Ditto.
29210 (insn_v2muls): Ditto.
29212 2013-03-27 Walter Lee <walt@tilera.com>
29214 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
29215 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
29217 2013-03-27 Walter Lee <walt@tilera.com>
29219 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
29220 (*sibcall_value): Ditto.
29222 2013-03-27 Walter Lee <walt@tilera.com>
29224 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
29225 (insn_mnz_v8qi): ... this ...
29226 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
29228 (insn_v<n>mnz): Replaced by ...
29229 (insn_v1mnz): ... this ...
29230 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
29232 (insn_mz_<mode>): Replaced by ...
29233 (insn_mz_v8qi): ... this ...
29234 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
29236 (insn_v<n>mz): Replaced by ...
29237 (insn_v1mz): ... this ...
29238 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
29241 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
29243 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
29245 2013-03-26 Roland McGrath <mcgrathr@google.com>
29247 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
29248 than fprintf with a non-constant, non-format string.
29250 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
29252 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
29253 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
29254 operand 0 predicate.
29255 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
29256 attribute. Use general_x64nomem_operand as operand 1 predicate.
29257 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
29258 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
29259 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
29260 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
29261 (mov<mode>_insv_1): Remove expander. Merge insn with
29262 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
29263 Use general_x64nomem_operand as operand 1 predicate.
29264 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
29265 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
29266 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
29267 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
29268 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
29269 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
29270 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
29271 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
29272 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
29273 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
29274 (general_x64nomem_operand): Ditto.
29276 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
29278 * config/rtems.opt: Add -pthread option.
29280 2013-03-26 Richard Biener <rguenther@suse.de>
29282 * alias.c (find_base_term): Avoid redundant and not used recursion.
29283 (base_alias_check): Get the initial base term from the caller.
29284 (true_dependence_1): Compute and pass base terms to base_alias_check.
29285 (write_dependence_p): Likewise.
29286 (may_alias_p): Likewise.
29288 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
29290 * config/aarch64/aarch64.c (aarch64_classify_address): Support
29291 PC-relative load in SI modes and above only.
29293 2013-03-26 Xinyu Qi <xyqi@marvell.com>
29295 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
29296 * config/arm/iwmmxt.md (WCGR0): Update.
29297 (WCGR1, WCGR2, WCGR3): Likewise.
29299 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
29301 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
29302 Use x64 and nox64 isa attributes.
29304 2013-03-26 Richard Biener <rguenther@suse.de>
29306 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
29307 alignment computations and rely on get_object_alignment_1
29308 for the !TYPE_P case.
29309 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
29311 2013-03-26 Walter Lee <walt@tilera.com>
29313 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
29314 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
29316 2013-03-25 Jeff Law <law@redhat.com>
29318 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
29319 check for INTEGRAL_TYPE_P that was missing due to checking in
29320 wrong version of prior patch.
29322 2013-03-25 Walter Lee <walt@tilera.com>
29324 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
29325 TILEGX_INSN_SHUFFLEBYTES1.
29326 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
29328 (tilegx_builtins): Ditto.
29329 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
29331 2013-03-25 Walter Lee <walt@tilera.com>
29333 * config/tilegx/tilegx.md (floatsisf2): New pattern.
29334 (floatunssisf2): New pattern.
29335 (floatsidf2): New pattern.
29336 (floatunssidf2): New pattern.
29338 2013-03-25 Walter Lee <walt@tilera.com>
29340 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
29341 tests for constraint J, K, N, P.
29343 2013-03-25 Walter Lee <walt@tilera.com>
29345 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
29346 Use indirect/pcrel encoding.
29347 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
29350 2013-03-25 Steve Ellcey <sellcey@mips.com>
29352 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
29353 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
29354 * config/mips/mips.c (mips_option_override): Set IMADD default.
29355 * config/mips/mips.h (PTF_AVOID_IMADD): New.
29356 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
29357 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
29358 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
29359 * doc/invoke.texi (-mimadd/-mno-imadd): New.
29361 2013-03-25 Jeff Law <law@redhat.com>
29363 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
29364 slightly to avoid creating and folding useless trees. Simplify
29365 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
29367 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
29369 * config/i386/i386.md (*zero_extendsidi2): Merge with
29370 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
29371 * config/i386/predicates.md (x86_64_zext_operand): Rename from
29372 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
29373 targets. Clarify comment.
29375 2013-03-25 Martin Jambor <mjambor@suse.cz>
29377 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
29378 pass-through jump functions differently.
29379 (ipa_read_jump_function): Likewise. Also use setter functions to set
29382 2013-03-25 Martin Jambor <mjambor@suse.cz>
29384 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
29385 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
29387 (ipa_get_indirect_edge_target): New function.
29388 (devirtualization_time_bonus): New parameter known_aggs, pass it to
29389 ipa_get_indirect_edge_target. Update all callers.
29390 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
29391 ipa_get_indirect_edge_target_1 instead of calling
29392 ipa_get_indirect_edge_target.
29393 (create_specialized_node): Pass aggvlas to
29394 ipcp_discover_new_direct_edges.
29396 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29398 * config/arm/arm.md (f_sels, f_seld): New types.
29399 (*cmov<mode>): New pattern.
29400 * config/arm/predicates.md (arm_vsel_comparison_operator): New
29403 2013-03-25 Kai Tietz <ktietz@redhat.com>
29405 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
29406 POSIX-printf for mingw-hosted builds.
29408 2013-03-25 Richard Biener <rguenther@suse.de>
29410 PR middle-end/56694
29411 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
29412 must-not-throw stmt location.
29414 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29416 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
29417 Emit load-acquire versions when acq is true.
29418 (arm_emit_store_exclusive): Add rel parameter.
29419 Emit store-release versions when rel is true.
29420 (arm_split_compare_and_swap): Use acquire-release instructions
29422 of barriers when appropriate.
29423 (arm_split_atomic_op): Likewise.
29424 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
29425 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
29426 (VUNSPEC_SLX): Likewise.
29427 (VUNSPEC_LDA): Likewise.
29428 (VUNSPEC_STL): Likewise.
29429 * config/arm/sync.md (atomic_load<mode>): New pattern.
29430 (atomic_store<mode>): Likewise.
29431 (arm_load_acquire_exclusive<mode>): Likewise.
29432 (arm_load_acquire_exclusivesi): Likewise.
29433 (arm_load_acquire_exclusivedi): Likewise.
29434 (arm_store_release_exclusive<mode>): Likewise.
29436 2013-03-25 Catherine Moore <clm@codesourcery.com>
29438 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
29439 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
29440 * config/mip/predicates.md (lwsp_swsp_operand,
29441 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
29442 sb16_operand, db4_operand, db7_operand, ib3_operand,
29443 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
29444 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
29445 andi16_operand): New predicates.
29446 * config/mips/mips.md (compression): New attribute.
29447 (enabled): New attribute.
29448 (length): Consider compression in computing length.
29449 (shift_compression): New code attribute.
29450 (*add<mode>3): New operands. Record compression.
29451 (sub<mode>3): Likewise.
29452 (one_cmpl<mode>2): Likewise.
29453 (*and<mode>3): Likewise.
29454 (*ior<mode>3): Likewise.
29455 (unnamed pattern for xor): Likewise.
29456 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
29457 (*<optab><mode>3): Likewise.
29458 (*mov<mode>_internal: Likewise.
29459 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
29460 (mips_unsigned_immediate_p): New.
29461 (umips_lwsp_swsp_address_p): New.
29462 (m16_based_address_p): New.
29463 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
29464 (mips_unsigned_immediate_p): New prototype.
29465 (lwsp_swsp_address_p): New prototype.
29466 (m16_based_address_p): New prototype.
29467 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
29468 (mips_signed_immediate_p): New function.
29469 (m16_based_address_p): New function.
29470 (lwsp_swsp_address_p): New function.
29471 (mips_print_operand_punctuation): Recognize short delay slot insns
29472 for microMIPS.add<mode>3"
29474 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29477 * config/arm/iterators.md (v_cmp_result): New mode attribute.
29478 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
29480 2013-03-25 Richard Biener <rguenther@suse.de>
29482 PR tree-optimization/56689
29483 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
29486 2013-03-25 Richard Biener <rguenther@suse.de>
29488 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
29490 (memory_references): Likewise.
29491 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
29492 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
29493 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
29494 (gather_mem_refs_in_loops): Fold into ...
29495 (analyze_memory_references): ... this. Move initialization
29496 to tree_ssa_lim_initialize.
29497 (fill_always_executed_in): Rename to ...
29498 (fill_always_executed_in_1): ... this.
29499 (fill_always_executed_in): Move contains_call computation to
29500 this new function from ...
29501 (tree_ssa_lim_initialize): ... here.
29502 (tree_ssa_lim): Call fill_always_executed_in.
29504 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
29506 * postreload.c (reload_combine): Fix code detecting returns.
29508 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
29510 * function.c (emit_use_return_register_into_block): On cc0 targets,
29511 do not emit the sequence between cc0 setter and user.
29513 2013-03-25 Kai Tietz <ktietz@redhat.com>
29515 * config/i386/predicates.md (local_symbolic_operand): Interpret
29516 dll-imported symbols as none-local.
29518 2013-03-25 Richard Biener <rguenther@suse.de>
29520 * tree-ssa-loop-im.c (struct depend): Remove.
29521 (struct lim_aux_data): Make depends a vec of gimples.
29522 (free_lim_aux_data): Adjust.
29523 (add_dependency): Likewise.
29524 (set_level): Likewise.
29526 2013-03-25 Richard Biener <rguenther@suse.de>
29528 PR middle-end/56434
29529 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
29530 the pointer returned by calls with ECF_MALLOC set.
29532 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
29534 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
29536 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
29538 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
29539 using MMXMODE mode iterator.
29540 (*move<mode>_internal): Merge with *movv2sf_internal and
29541 *movv2sf_internal_rex64 using MMXMODE mode iterator.
29543 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
29545 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
29546 (record_last_mem_set_info): Likewise.
29548 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
29549 of XNEWVEC followed by memset.
29550 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
29552 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
29554 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
29555 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
29556 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
29557 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
29558 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
29559 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
29560 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
29561 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
29562 BARRIER_P instead of GET_CODE.
29564 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
29566 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
29567 inaccuracy in the probing code.
29569 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
29570 (ctrapdi4): Likewise.
29572 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
29574 * calls.c (expand_call): Add missing guard to code handling return
29575 of non-BLKmode structures in MSB.
29576 * function.c (expand_function_end): Likewise.
29578 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
29580 * combine.c (try_combine): Adjust comment. Do not add the set of
29581 insn #0 if the destination indirectly is set or dies in insn #2.
29582 Tidy up code to distribute a new note.
29584 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
29586 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
29587 also for alternatives 16 and 17.
29589 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
29591 * config/i386/sse.md (*mov<mode>_internal): Merge with
29592 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
29593 Emit insn template depending on type attribute. Use
29594 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
29595 movd instead of movq mnemonic for interunit moves. Rewrite mode
29596 attribute calculation. Remove unit attribute calculation.
29597 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
29598 Set prefix_data16 attribute for DImode ssemov types.
29599 Use Ym instead of y for SSE-MMX conversion alternatives.
29600 Reorder operand constraints.
29602 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
29604 * df.h (df_insn_delete): Adjust prototype.
29605 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
29606 and let it decide whether mark the basic block dirty.
29607 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
29608 * df-scan.c (df_insn_info_delete): New helper function, split
29609 off from df_insn_delete.
29610 (df_scan_free_bb_info): Use it.
29611 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
29613 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
29614 that the insn is actually an insn and it has a non-NULL basic block.
29615 Do not mark basic block dirty if only deleting a DEBUG_INSN.
29617 2013-03-22 Richard Biener <rguenther@suse.de>
29619 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
29621 (mem_ref_alloc): Do not allocate them.
29622 (refs_independent_p): Do not query or maintain a cache.
29624 2013-03-22 Richard Biener <rguenther@suse.de>
29626 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
29627 (gather_mem_refs_in_loops): Do not compute it.
29628 (analyze_memory_references): Do not allocate it.
29629 (tree_ssa_lim_finalize): Do not free it.
29630 (for_all_locs_in_loop): Do not query all_refs_in_loop.
29632 2013-03-22 Richard Biener <rguenther@suse.de>
29634 * is-a.h (as_a): Use gcc_checking_assert.
29636 2013-03-22 Ian Bolton <ian.bolton@arm.com>
29638 * config/aarch64/aarch64.c (aarch64_print_operand): New
29639 format specifier for printing a constant in hex.
29640 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
29641 format specifier for printing second operand.
29643 2013-03-22 Richard Biener <rguenther@suse.de>
29645 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
29647 (gather_mem_refs_in_loops): Perform store accumulation here.
29648 (create_vop_ref_mapping_loop): Remove.
29649 (create_vop_ref_mapping): Likewise.
29650 (analyze_memory_references): Initialize refs_stored_in_loop.
29651 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
29652 (record_indep_loop): Remove.
29653 (record_dep_loop): New function.
29654 (ref_indep_loop_p_1): Adjust to only walk over references
29655 in the loop, not its subloops.
29656 (ref_indep_loop_p): Rename to ...
29657 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
29658 maintaining a more fine-grained cache.
29659 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
29660 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
29662 2013-03-22 Richard Biener <rguenther@suse.de>
29664 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
29665 (struct mem_ref): Make accesses_in_loop a vec of a vec of
29666 aggregate mem_ref_loc.
29667 (free_mem_ref_locs): Inline into ...
29668 (memref_free): ... this and adjust.
29669 (mem_ref_alloc): Adjust.
29670 (mem_ref_locs_alloc): Remove.
29671 (record_mem_ref_loc): Adjust.
29672 (get_all_locs_in_loop): Rewrite into ...
29673 (for_all_locs_in_loop): ... this iterator.
29674 (rewrite_mem_ref_loc): New functor.
29675 (rewrite_mem_refs): Use for_all_locs_in_loop.
29676 (sm_set_flag_if_changed): New functor.
29677 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
29678 (ref_always_accessed): New functor.
29679 (ref_always_accessed_p): Use for_all_locs_in_loop.
29681 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
29683 * tree-pass.h (PROP_gimple_lvec): New.
29684 * passes.c (dump_properties): Handle PROP_gimple_lvec.
29685 (init_optimization_passes): Move pass_lower_vector.
29686 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
29688 (pass_lower_vector): Provide PROP_gimple_lvec.
29689 (pass_lower_vector_ssa): Likewise.
29690 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
29692 2013-03-21 Mark Wielaard <mjw@redhat.com>
29694 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
29696 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
29698 * config/i386/i386.md (*movdi_internal): Disparage slightly
29699 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
29700 conversion alternatives.
29702 2013-03-21 Jakub Jelinek <jakub@redhat.com>
29704 PR middle-end/48087
29705 * diagnostic.def (DK_WERROR): New kind.
29706 * diagnostic.h (werrorcount): Define.
29707 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
29708 promoted to DK_ERROR, increment DK_WERROR counter instead of
29710 * toplev.c (toplev_main): Call print_ignored_options even if
29711 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
29712 even if just werrorcount is non-zero.
29715 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
29717 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
29718 (string_cst_pool_decl): New function.
29719 (optimize_one_addr_into_implicit_ptr): New function.
29720 (resolve_addr_in_expr): Optimize DWARF location expression
29721 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
29722 which doesn't live in memory, but has DW_AT_location or
29723 DW_AT_const_value, or refers to a string literal, into
29724 DW_OP_GNU_implicit_pointer.
29725 (optimize_location_into_implicit_ptr): New function.
29726 (resolve_addr): If removing DW_AT_location of a variable because
29727 it was DW_OP_addr of address of the variable, but the variable doesn't
29728 live in memory, try to emit const value attribute for the initializer.
29730 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
29732 * tree.h (VECTOR_TYPE_P): New macro.
29733 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
29734 TYPE_MODE): Use it.
29735 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
29736 VEC_COND_EXPR cannot be lvalues.
29737 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
29739 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
29741 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
29742 Restrict the transformation to equal modes.
29744 2013-03-21 Richard Biener <rguenther@suse.de>
29746 PR tree-optimization/39326
29747 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
29748 (MEM_ANALYZABLE): Adjust.
29749 (record_mem_ref_loc): Move bitmap ops ...
29750 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
29751 unanalyzable refs, do not record locations for it.
29752 (analyze_memory_references): Allocate ref zero as shared
29754 (refs_independent_p): Do not test for unanalyzed mems here.
29755 (ref_indep_loop_p_1): Special-case disambiguation against
29756 the unanalyzed ref.
29757 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
29759 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
29761 * config/arm/arm-protos.h (tune_params): Add
29762 prefer_neon_for_64bits field.
29763 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
29764 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
29765 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
29766 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
29767 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
29768 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
29769 (arm_option_override): Handle -mneon-for-64bits new option.
29770 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
29771 (prefer_neon_for_64bits): Declare new variable.
29772 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
29773 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
29774 (arch_enabled): Handle new arch types. Remove support for onlya8
29776 (one_cmpldi2): Use new arch names.
29777 (zero_extend<mode>di2, extend<mode>di2): Ditto.
29778 * config/arm/arm.opt (mneon-for-64bits): Add option.
29779 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
29780 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
29781 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
29783 * doc/invoke.texi (-mneon-for-64bits): Document.
29785 2013-03-21 Richard Biener <rguenther@suse.de>
29787 PR tree-optimization/39326
29788 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
29789 (sort_bbs_in_loop_postorder_cmp): New function.
29790 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
29792 2013-03-21 Richard Biener <rguenther@suse.de>
29794 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
29795 (vect_insert_into_interleaving_chain): Likewise.
29796 (vect_drs_dependent_in_basic_block): Inline ...
29797 (vect_slp_analyze_data_ref_dependence): ... here. New function,
29799 (vect_analyze_data_ref_dependence): ... here. Simplify.
29800 (vect_check_interleaving): Simplify.
29801 (vect_analyze_data_ref_dependences): Likewise. Split out ...
29802 (vect_slp_analyze_data_ref_dependences): ... this new function.
29803 (dr_group_sort_cmp): New function.
29804 (vect_analyze_data_ref_accesses): Compute data-reference groups
29805 here instead of in vect_analyze_data_ref_dependence. Use
29806 a more efficient algorithm.
29807 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
29808 vect_slp_analyze_data_ref_dependences. Call
29809 vect_analyze_data_ref_accesses earlier.
29810 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
29811 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
29812 (vect_slp_analyze_data_ref_dependences): New prototype.
29814 2013-03-21 Richard Biener <rguenther@suse.de>
29816 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
29817 ref is stored in the loop.
29818 (find_refs_for_sm): Walk only over all stores.
29819 (store_motion_loop): Allocate from lim_bitmap_obstack.
29820 (store_motion): Likewise.
29822 2013-03-21 Richard Biener <rguenther@suse.de>
29824 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
29825 Update virtual SSA form.
29827 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29829 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
29830 * configure: Regenerate.
29831 * config.in: Regenerate.
29832 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
29833 if !HAVE_LD_EH_FRAME_CIEV3.
29835 2013-03-21 Richard Biener <rguenther@suse.de>
29837 * tree-cfg.c (verify_expr_no_block): New function.
29838 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
29839 nor DECL_VALUE_EXPR have locations with associated blocks.
29840 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
29841 (clear_unused_block_pointer): Remove code dealing with
29842 blocks in DECL_DEBUG_EXPR locations.
29844 2013-03-21 Richard Biener <rguenther@suse.de>
29846 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
29847 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
29848 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
29849 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
29850 instead of DECL_DEBUG_EXPR_IS_FROM.
29851 * gimplify.c (gimplify_modify_expr): Likewise.
29852 * tree-cfg.c (verify_expr_location_1): Likewise.
29853 * tree-complex.c (create_one_component_var): Likewise.
29854 * tree-sra.c (create_access_replacement): Likewise.
29855 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
29856 (clear_unused_block_pointer): Likewise.
29857 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
29858 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
29859 * var-tracking.c (var_debug_decl): Likewise.
29860 (track_expr_p): Likewise.
29861 * tree-inline.c (add_local_variables): Likewise. Set
29862 DECL_HAS_DEBUG_EXPR_P after copying it.
29863 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
29864 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
29866 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
29869 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
29870 * configure: Regenerate.
29871 * config.in: Regenerate.
29872 * config/i386/i386.md (*movdf_internal): Use
29873 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
29874 movd instead of movq mnemonic for interunit moves.
29875 (*movdi_internal): Ditto.
29877 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29879 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
29880 (abd<mode>_3): New pattern.
29881 (aba<mode>_3): New pattern.
29882 (fabd<mode>_3): New pattern.
29884 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29886 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
29887 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
29888 occurrence of REGISTER_PREFIX as its empty string.
29890 2013-03-20 Jeff Law <law@redhat.com>
29892 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
29893 addititional equivalences for equality comparisons between an SSA_NAME
29894 and a constant where the SSA_NAME was set from a widening conversion.
29896 2013-03-20 Walter Lee <walt@tilera.com>
29898 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
29900 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
29902 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
29903 depending on type attribute.
29904 (*movti_internal): Ditto.
29905 (*movtf_internal): Ditto.
29906 (*movxf_internal): Ditto.
29907 (*movdf_internal): Ditto.
29908 (*movsf_internal): Ditto.
29910 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
29912 * config/i386/i386.md (*movti_internal): Set prefix attribute to
29913 maybe_vex for sselog1 and ssemov types.
29914 (*movdi_internal): Reorder operand constraints.
29915 (*movsi_internal): Ditto. Set prefix attribute to
29916 maybe_vex for sselog1 and ssemov types.
29917 (*movtf_internal): Set prefix attribute to maybe_vex
29918 for sselog1 and ssemov types.
29919 (*movdf_internal): Ditto. Set prefix_data16 attribute for
29920 DImode ssemov types. Reorder operand constraints.
29921 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
29922 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
29923 attribute for SImode ssemov types. Reorder operand constraints.
29925 2013-03-20 Martin Jambor <mjambor@suse.cz>
29927 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
29928 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
29930 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
29932 * config/rs6000/predicates.md (indexed_address, update_address_mem
29933 update_indexed_address_mem): New predicates.
29934 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
29935 attribute for load/store instructions.
29936 * config/rs6000/dfp.md (movsd_store): Likewise.
29937 (movsd_load): Likewise.
29938 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
29939 (unnamed HI->DI extend define_insn): Likewise.
29940 (unnamed SI->DI extend define_insn): Likewise.
29941 (unnamed QI->SI extend define_insn): Likewise.
29942 (unnamed QI->HI extend define_insn): Likewise.
29943 (unnamed HI->SI extend define_insn): Likewise.
29944 (unnamed HI->SI extend define_insn): Likewise.
29945 (extendsfdf2_fpr): Likewise.
29946 (movsi_internal1): Likewise.
29947 (movsi_internal1_single): Likewise.
29948 (movhi_internal): Likewise.
29949 (movqi_internal): Likewise.
29950 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
29951 attribute for load/store instructions.
29952 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
29954 (mov<mode>_softfloat): Likewise.
29955 (mov<mode>_hardfloat32): Likewise.
29956 (mov<mode>_hardfloat64): Likewise.
29957 (mov<mode>_softfloat64): Likewise.
29958 (movdi_internal32): Likewise.
29959 (movdi_internal64): Likewise.
29960 (probe_stack_<mode>): Likewise.
29962 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
29964 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
29965 floating point, and decimal floating point to reload iterator.
29967 * config/rs6000/constraints.md (wl constraint): New constraints to
29968 return FLOAT_REGS if certain options are used to reduce the number
29969 of separate patterns that exist in the file.
29970 (wx constraint): Likewise.
29971 (wz constraint): Likewise.
29973 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
29974 -mdebug=reg, print wg, wl, wx, and wz constraints.
29975 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
29976 Initialize the reload functions for 64-bit binary/decimal floating
29978 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
29979 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
29980 create the buffer on the stack to overcome not having a 32-bit
29982 (rs6000_emit_move): Likewise.
29983 (rs6000_secondary_memory_needed_rtx): Likewise.
29984 (rs6000_alloc_sdmode_stack_slot): Likewise.
29985 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
29986 via xxlxor, just like DFmode 0.0.
29988 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
29989 define as 1 if we are running on a power7 or newer.
29990 (enum r6000_reg_class_enum): Add new constraints.
29992 * config/rs6000/dfp.md (movsd): Delete, combine with binary
29993 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
29994 with other moves by using conditional constraits (wg). Use LFIWZX
29995 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
29996 (movsd splitter): Likewise.
29997 (movsd_hardfloat): Likewise.
29998 (movsd_softfloat): Likewise.
30000 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
30001 binary and decimal floating point moves.
30002 (fmove_ok): New attributes to combine binary and decimal floating
30003 point moves, and to combine power6x (mfpgpr) moves along normal
30005 (real_value_to_target): Likewise.
30006 (f32_lr): Likewise.
30007 (f32_lm): Likewise.
30008 (f32_li): Likewise.
30009 (f32_sr): Likewise.
30010 (f32_sm): Likewise.
30011 (f32_si): Likewise.
30012 (movsf): Combine binary and decimal floating point moves. Combine
30013 power6x (mfpgpr) moves with other moves by using conditional
30014 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
30015 (mov<mode> for SFmode/SDmode); Likewise.
30016 (SFmode/SDmode splitters): Likewise.
30017 (movsf_hardfloat): Likewise.
30018 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
30019 (movsf_softfloat): Likewise.
30020 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
30022 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
30023 wx and wz constraints.
30025 * config/rs6000/constraints.md (wg constraint): New constraint to
30026 return FLOAT_REGS if -mmfpgpr (power6x) was used.
30028 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
30031 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
30032 -mdebug=reg, print wg, wl, wx, and wz constraints.
30033 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
30034 Initialize the reload functions for 64-bit binary/decimal floating
30036 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
30037 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
30038 create the buffer on the stack to overcome not having a 32-bit
30040 (rs6000_emit_move): Likewise.
30041 (rs6000_secondary_memory_needed_rtx): Likewise.
30042 (rs6000_alloc_sdmode_stack_slot): Likewise.
30043 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
30044 via xxlxor, just like DFmode 0.0.
30046 * config/rs6000/dfp.md (movdd): Delete, combine with binary
30047 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
30048 with other moves by using conditional constraits (wg). Use LFIWZX
30049 and STFIWX for loading SDmode on power7.
30050 (movdd splitters): Likewise.
30051 (movdd_hardfloat32): Likewise.
30052 (movdd_softfloat32): Likewise.
30053 (movdd_hardfloat64_mfpgpr): Likewise.
30054 (movdd_hardfloat64): Likewise.
30055 (movdd_softfloat64): Likewise.
30057 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
30058 64-bit binary and decimal floating point moves.
30059 (FMOVE64X): Likewise.
30060 (movdf): Combine 64-bit binary and decimal floating point moves.
30061 Combine power6x (mfpgpr) moves with other moves by using
30062 conditional constraits (wg).
30063 (mov<mode> for DFmode/DDmode): Likewise.
30064 (DFmode/DDmode splitters): Likewise.
30065 (movdf_hardfloat32): Likewise.
30066 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
30067 (movdf_softfloat32): Likewise.
30068 (movdf_hardfloat64_mfpgpr): Likewise.
30069 (movdf_hardfloat64): Likewise.
30070 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
30071 (movdf_softfloat64): Likewise.
30072 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
30073 (reload_<mode>_load): Move to later in the file so they aren't in
30074 the middle of the floating point move insns.
30075 (reload_<mode>_store): Likewise.
30077 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
30080 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
30081 constraint if -mdebug=reg.
30082 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
30083 Enable using dd reload support if needed.
30085 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
30086 binary and decimal floating point moves in rs6000.md.
30087 (movtd_internal): Likewise.
30089 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
30090 decimal floating point moves.
30092 (movtf_internal): Likewise.
30093 (mov<mode>_internal, TDmode/TFmode): Likewise.
30094 (movtf_softfloat): Likewise.
30095 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
30097 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
30098 movdi_internal64, using wg constraint for move direct operations.
30099 (movdi_internal64): Likewise.
30101 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
30102 MODES_TIEABLE_P for selected modes. Print the numerical value of
30103 the various virtual registers. Use GPR/FPR first/last values,
30104 instead of hard coding the register numbers. Print which modes
30105 have reload functions registered.
30106 (rs6000_option_override_internal): If -mdebug=reg, trace the options
30107 settings before/after setting cpu, target and subtarget settings.
30108 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
30109 and for secondary reload failures in rs6000_secondary_reload_inner.
30110 (rs6000_secondary_reload_fail): Likewise.
30111 (rs6000_secondary_reload_inner): Likewise.
30113 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
30114 macros for first/last GPR and FPR registers.
30115 (LAST_GPR_REGNO): Likewise.
30116 (FIRST_FPR_REGNO): Likewise.
30117 (LAST_FPR_REGNO): Likewise.
30119 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
30120 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
30121 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
30122 (vcond<mode><mode>): Likewise.
30123 (vcondu<mode><mode>): Likewise.
30124 (vector_gtu<mode>): Likewise.
30125 (vector_gte<mode>): Likewise.
30126 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
30127 to prevent the compiler from converting DImode operations to TImode.
30128 (ior<mode>3): Likewise.
30129 (and<mode>3): Likewise.
30130 (one_cmpl<mode>2): Likewise.
30131 (nor<mode>3): Likewise.
30132 (andc<mode>3): Likewise.
30134 * config/rs6000/constraints.md (wt constraint): New constraint
30135 that returns VSX_REGS if TImode is allowed in VSX registers.
30137 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
30138 constant under VSX.
30140 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
30141 similar to TImode, but it is restricted to being in the GPRs.
30143 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
30144 TImode to occupy a single VSX register.
30146 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
30147 -mvsx-timode for power7/power8.
30148 (power7 cpu): Likewise.
30149 (power8 cpu): Likewise.
30151 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
30152 sure that TFmode/TDmode take up two registers if they are ever
30153 allowed in the upper VSX registers.
30154 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
30156 (rs6000_init_hard_regno_mode_ok): Likewise.
30157 (rs6000_debug_reg_global): Add debugging for PTImode and wt
30158 constraint. Print if LRA is turned on.
30159 (rs6000_option_override_internal): Give an error if -mvsx-timode
30160 and VSX is not enabled.
30161 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
30162 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
30163 to reg+offset addressing. Use PTImode when checking offset
30164 addresses for validity.
30165 (reg_offset_addressing_ok_p): Likewise.
30166 (rs6000_legitimate_offset_address_p): Likewise.
30167 (rs6000_legitimize_address): Likewise.
30168 (rs6000_legitimize_reload_address): Likewise.
30169 (rs6000_legitimate_address_p): Likewise.
30170 (rs6000_eliminate_indexed_memrefs): Likewise.
30171 (rs6000_emit_move): Likewise.
30172 (rs6000_secondary_reload): Likewise.
30173 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
30174 reloads to fpr registers to continue to use reg+offset addressing,
30175 but 64-bit reloads to altivec registers need reg+reg addressing.
30176 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
30177 it. Treat LO_SUM like a PLUS operation.
30178 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
30179 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
30180 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
30181 registers to share a register with a smaller sized type, since VSX
30182 puts scalars in the upper 64-bits.
30183 (print_operand): Add support for PTImode.
30184 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
30185 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
30186 registers, but don't have arithmetic support.
30187 (rs6000_memory_move_cost): Add test for VSX.
30188 (rs6000_opt_masks): Add -mvsx-timode.
30190 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
30193 (VSr): Use wt constraint for TImode.
30194 (VSv): Drop TImode support.
30195 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
30196 (vsx_movti_64bit): Likewise.
30197 (vsx_movti_32bit): Likewise.
30198 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
30199 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
30200 one '?' on the appropriate output constraint. Do not allow TImode
30201 logical operations on 32-bit systems.
30202 (vsx_ior<mode>3): Likewise.
30203 (vsx_xor<mode>3): Likewise.
30204 (vsx_one_cmpl<mode>2): Likewise.
30205 (vsx_nor<mode>3): Likewise.
30206 (vsx_andc<mode>3): Likewise.
30207 (vsx_concat_<mode>): Likewise.
30208 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
30210 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
30211 OPTION_MASK_VSX_TIMODE.
30212 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
30213 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
30215 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
30216 (TI2 iterator): New iterator for TImode, PTImode.
30217 (wd mode attribute): Add values for vector types.
30218 (movti_string): Replace TI move operations with operations for TImode
30219 and PTImode. Add support for TImode being allowed in VSX registers.
30220 (mov<mode>_string, TImode/PTImode): Likewise.
30221 (movti_ppc64): Likewise.
30222 (mov<mode>_ppc64, TImode/PTImode): Likewise.
30223 (TI mode splitters): Likewise.
30225 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
30228 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
30230 PR tree-optimization/56355
30231 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
30232 Also handle integers with undefined overflow.
30234 2013-03-20 Catherine Moore <clm@codesourcery.com>
30235 Maciej W. Rozycki <macro@codesourcery.com>
30236 Tom de Vries <tom@codesourcery.com>
30237 Nathan Sidwell <nathan@codesourcery.com>
30238 Iain Sandoe <iain@codesourcery.com>
30239 Nathan Froyd <froydnj@codesourcery.com>
30240 Chao-ying Fu <fu@mips.com>
30242 * doc/extend.texi: (micromips, nomicromips, nocompression):
30243 Document new function attributes.
30244 * doc/invoke.texi (minterlink-compressed, mmicromips,
30245 m14k, m14ke, m14kec): Document new options.
30246 (minterlink-mips16): Update documentation.
30247 * doc/md.texi (ZC, ZD): Document new constraints.
30248 * configure.ac (gcc_cv_as_micromips): Check if linker
30249 supports the .set micromips directive.
30250 * configure: Regenerate.
30251 * config.in: Regenerate.
30252 * config/mips/mips-tables.opt: Regenerate.
30253 * config/mips/micromips.md: New file.
30254 * constraints.md (ZC, ZD): New constraints.
30255 * config/mips/predicates.md (movep_src_register): New predicate.
30256 (movep_src_operand): New predicate.
30257 (non_volatile_mem_operand): New predicate.
30258 * config/mips/mips.md (multimem): New type.
30259 (length): Differentiate between 17-bit and 18-bit branch offsets.
30260 (MOVEP1, MOVEP2): New mode iterator.
30261 (mov_<load>l): Use ZC constraint.
30262 (mov_<load>r): Likewise.
30263 (mov_<store>l): Likewise.
30264 (mov_<store>r): Likewise.
30265 (*branch_equality<mode>_inverted): Add microMIPS support.
30266 (*branch_equality<mode>): Likewise.
30267 (*jump_absolute): Likewise.
30268 (indirect_jump_<mode>): Likewise.
30269 (tablejump_<mode>): Likewise.
30270 (<optab>_internal): Likewise.
30271 (sibcall_internal): Likewise.
30272 (sibcall_value_internal): Likewise.
30273 (prefetch): Use constraint ZD.
30274 * config/mips/mips.opt (minterlink-compressed): New option.
30275 (minterlink-mips16): Now an alias for minterlink-compressed.
30276 (mmicromips): New option.
30277 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
30278 (compare_and_swap_12): Likewise.
30279 (sync_add<mode>): Likewise.
30280 (sync_<optab>_12): Likewise.
30281 (sync_old_<optab>_12): Likewise.
30282 (sync_new_<optab>_12): Likewise.
30283 (sync_nand_12): Likewise.
30284 (sync_old_nand_12): Likewise.
30285 (sync_new_nand_12): Likewise.
30286 (sync_sub<mode>): Likewise.
30287 (sync_old_add<mode>): Likewise.
30288 (sync_old_sub<mode>): Likewise.
30289 (sync_new_add<mode>): Likewise.
30290 (sync_new_sub<mode>): Likewise.
30291 (sync_<optab><mode>): Likewise.
30292 (sync_old_<optab><mode>): Likewise.
30293 (sync_new_<optab><mode>): Likewise.
30294 (sync_nand<mode>): Likewise.
30295 (sync_old_nand<mode>): Likewise.
30296 (sync_new_nand<mode>): Likewise.
30297 (sync_lock_test_and_set<mode>): Likewise.
30298 (test_and_set_12): Likewise.
30299 (atomic_compare_and_swap<mode>): Likewise.
30300 (atomic_exchange<mode>_llsc): Likewise.
30301 (atomic_fetch_add<mode>_llsc): Likewise.
30302 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
30303 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
30304 (umips_save_restore_pattern_p): Likewise.
30305 (umips_load_store_pair_p): Likewise.
30306 (umips_output_load_store_pair): Likewise.
30307 (umips_movep_target_p): Likewise.
30308 (umips_12bit_offset_address_p): Likewise.
30309 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
30310 (mips_base_mips16): Rename this...
30311 (mips_base_compression_flags): ...to this. Update all uses.
30312 (mips_attribute_table): Add micromips, nomicromips and nocompression.
30313 (mips_mips16_decl_p): Delete.
30314 (mips_nomips16_decl_p): Delete.
30315 (mips_get_compress_on_flags): New function.
30316 (mips_get_compress_off_flags): New function.
30317 (mips_get_compress_mode): New function.
30318 (mips_get_compress_on_name): New function.
30319 (mips_get_compress_off_name): New function.
30320 (mips_insert_attributes): Support multiple compression types.
30321 (mips_merge_decl_attributes): Likewise.
30322 (umips_12bit_offset_address_p): New function.
30323 (mips_start_function_definition): Emit .set micromips directive.
30324 (mips_call_may_need_jalx_p): New function.
30325 (mips_function_ok_for_sibcall): Add microMIPS support.
30326 (mips_print_operand_punctuation): Support short delay slots and
30328 (umips_swm_mask, umips_swm_encoding): New.
30329 (umips_build_save_restore): New function.
30330 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
30331 (was_mips16_p): Remove.
30332 (old_compression_mode): New.
30333 (mips_set_compression_mode): New function.
30334 (mips_set_current_function): Add microMIPS support.
30335 (mips_option_override): Likewise.
30336 (umips_save_restore_pattern_p): New function.
30337 (umips_output_save_restore): New function.
30338 (umips_load_store_pair_p_1): New function.
30339 (umips_load_store_pair_p): New function.
30340 (umips_output_load_store_pair_1): New function.
30341 (umips_output_load_store_pair): New function.
30342 (umips_movep_target_p) New function.
30343 (mips_prepare_pch_save): Add microMIPS support.
30344 * config/mips/mips.h (TARGET_COMPRESSION): New.
30345 (TARGET_CPU_CPP_BUILTINS): Update macro
30346 to use new compression flags and to support microMIPS.
30347 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
30348 (MIPS_ARCH_FLOAT_SPEC): Likewise.
30349 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
30350 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
30351 (ASM_SPEC): Support mmicromips and mno-micromips.
30352 (M16STORE_REG_P): New macro.
30353 (MIPS_CALL): Support TARGET_MICROMIPS.
30354 (MICROMIPS_J): New macro.
30355 (mips_base_mips16): Rename this...
30356 (mips_base_compression_flags): ...to this.
30357 (UMIPS_12BIT_OFFSET_P): New macro.
30358 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
30359 (MULTILIB_DIRNAMES): Likewise.
30360 2013-03-20 Richard Biener <rguenther@suse.de>
30362 PR tree-optimization/56661
30363 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
30364 the result does not have to be distinct.
30366 2013-03-20 Richard Biener <rguenther@suse.de>
30368 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
30371 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30372 Steven Bosscher <steven@gcc.gnu.org>
30374 PR rtl-optimization/56605
30375 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
30377 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
30380 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
30381 that require movd instead of movq.
30383 2013-03-20 Richard Biener <rguenther@suse.de>
30385 * tree-ssa-structalias.c (struct variable_info): Add pointer
30386 to the first field of an aggregate with sub-vars. Make
30387 this and the pointer to the next subfield its ID.
30388 (vi_next): New function.
30389 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
30390 storedanything_id, integer_id): Increment by one.
30391 (new_var_info, get_call_vi, lookup_call_clobber_vi,
30392 get_call_clobber_vi): Adjust.
30393 (solution_set_expand): Simplify and speedup.
30394 (solution_set_add): Inline into ...
30395 (set_union_with_increment): ... this. Adjust accordingly.
30396 (do_sd_constraint): Likewise.
30397 (do_ds_constraint): Likewise.
30398 (do_complex_constraint): Simplify.
30399 (build_pred_graph): Adjust.
30400 (solve_graph): Likewise. Simplify and speedup.
30401 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
30402 get_constraint_for_component_ref, get_constraint_for_1,
30403 first_vi_for_offset, first_or_preceding_vi_for_offset,
30404 create_function_info_for, create_variable_info_for_1,
30405 create_variable_info_for, intra_create_variable_infos): Adjust.
30406 (init_base_vars): Push NULL for ID zero.
30407 (compute_points_to_sets): Adjust.
30409 2013-03-20 Richard Biener <rguenther@suse.de>
30411 * cfgloop.c (verify_loop_structure): Streamline and avoid
30412 ICEing on corrupt loop tree.
30413 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
30416 2013-03-20 Richard Biener <rguenther@suse.de>
30418 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
30419 check whether an SSA update is needed.
30421 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
30423 * config/mips/constraints.md (T): Rename to...
30427 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
30428 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
30430 2013-03-19 Ian Bolton <ian.bolton@arm.com>
30432 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
30433 (*subsi3_carryin_uxtw): Likewise.
30435 2013-03-19 Ian Bolton <ian.bolton@arm.com>
30437 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
30438 (*rorsi3_insn_uxtw): Likewise.
30440 2013-03-19 Ian Bolton <ian.bolton@arm.com>
30442 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
30443 (*extrsi5_insn_uxtw): Likewise.
30445 2013-03-19 Richard Biener <rguenther@suse.de>
30447 PR tree-optimization/56273
30448 * passes.c (init_optimization_passes): Move second VRP after DOM.
30450 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
30452 * config/i386/i386.md (*movti_internal): Merge from
30453 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
30454 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
30455 nox64 isa attributes.
30457 2013-03-18 Richard Biener <rguenther@suse.de>
30459 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
30461 (merge_node_constraints): Likewise.
30462 (build_succ_graph): Likewise.
30463 (valid_graph_edge): Inline into single caller.
30464 (unify_nodes): Likewise. Use bitmap_set_bit return value
30466 (scc_visit): Fix formatting and variable use.
30467 (do_sd_constraint): Use gcc_checking_assert.
30468 (do_ds_constraint): Likewise.
30469 (do_complex_constraint): Likewise.
30470 (condense_visit): Likewise. Cleanup.
30471 (dump_pred_graph): New function.
30472 (perform_var_substitution): Dump the pred-graph before
30473 variable substitution.
30474 (find_equivalent_node): Use gcc_checking_assert.
30475 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
30477 2013-03-18 Richard Biener <rguenther@suse.de>
30479 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
30480 Remove cond_expr_stmt_list argument and do not gimplify the
30482 (vect_loop_versioning): Adjust.
30483 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
30484 Cleanup to use less temporaries.
30485 (vect_create_data_ref_ptr): Cleanup.
30487 2013-03-18 Jakub Jelinek <jakub@redhat.com>
30489 PR tree-optimization/56635
30490 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
30491 require types_compatible_p types.
30493 2013-03-18 Nick Clifton <nickc@redhat.com>
30495 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
30496 spurious backslash.
30498 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
30499 Add missing line to comment describing function.
30501 2013-03-18 Richard Biener <rguenther@suse.de>
30503 PR tree-optimization/56210
30504 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
30505 Handle string / character search functions.
30506 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
30508 2013-03-18 Richard Biener <rguenther@suse.de>
30510 PR middle-end/56483
30511 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
30512 and implement properly.
30513 * gimple.h (gimple_cond_single_var_p): Remove.
30515 2013-03-18 Richard Biener <rguenther@suse.de>
30517 * tree-data-ref.h (find_data_references_in_loop): Declare.
30518 * tree-data-ref.c (get_references_in_stmt): Use a stack
30519 vector pre-allocated in the callers.
30520 (find_data_references_in_stmt): Adjust.
30521 (graphite_find_data_references_in_stmt): Likewise.
30522 (create_rdg_vertices): Likewise.
30523 (find_data_references_in_loop): Export.
30524 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
30525 Compute dependences here...
30526 (vect_analyze_data_refs): ...not here. When we encounter
30527 a non-vectorizable data reference in basic-block vectorization
30528 truncate the data reference vector. Do not bother to
30529 fixup data-dependence information for gather loads.
30530 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
30531 of data references, as reported.
30533 2013-03-18 Richard Biener <rguenther@suse.de>
30535 PR tree-optimization/3713
30536 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
30537 has_constants and expr.
30538 (stmt_has_constants): Properly valueize SSA names when deciding
30539 whether the stmt has constants.
30541 2013-03-18 Richard Biener <rguenther@suse.de>
30543 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
30544 whole function when there is nothing to do.
30545 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
30546 * tree-vectorizer.c (vectorize_loops): Update virtual and
30547 loop-closed SSA once.
30548 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
30550 2013-03-18 Richard Biener <rguenther@suse.de>
30552 PR middle-end/56113
30553 * domwalk.c (bb_postorder): New global static.
30554 (cmp_bb_postorder): New function.
30555 (walk_dominator_tree): Replace scheme imposing an order for
30556 visiting dominator sons by one sorting them at the time they
30557 are pushed on the stack.
30559 2013-03-18 Richard Biener <rguenther@suse.de>
30561 PR tree-optimization/39326
30562 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
30563 (struct mem_ref): Replace mem member with ao_ref typed member.
30564 (MEM_ANALYZABLE): Adjust.
30565 (memref_eq): Likewise.
30566 (mem_ref_alloc): Likewise.
30567 (gather_mem_refs_stmt): Likewise.
30568 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
30569 (execute_sm_if_changed_flag_set): Adjust.
30570 (execute_sm): Likewise.
30571 (ref_always_accessed_p): Likewise.
30572 (refs_independent_p): Likewise.
30573 (can_sm_ref_p): Likewise.
30575 2013-03-18 Jakub Jelinek <jakub@redhat.com>
30578 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
30579 return 1 even for !unsignedp.
30581 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
30583 * config/i386/i386.md (isa): Add x64 and nox64.
30584 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
30585 (*pushtf): Enable *roF alternative for x64 isa only.
30586 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
30587 mode attribute of integer alternatives to DImode for TARGET_64BIT.
30588 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
30589 (*movtf_internal): Merge from *movtf_internal_rex64 and
30590 *movtf_internal_sse. Use x64 and nox64 isa attributes.
30591 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
30592 nox64 isa attributes.
30593 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
30594 nox64 isa attributes.
30595 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
30597 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
30599 * config/alpha/alpha.c (TARGET_LRA_P): New define.
30601 2013-03-17 Jakub Jelinek <jakub@redhat.com>
30604 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
30605 class names. Remove trailing comma after "ALL_REGS".
30607 2013-03-16 Jan Hubicka <jh@suse.cz>
30609 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
30610 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
30611 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
30612 of cgraph_get_create_node.
30613 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
30615 2013-03-16 Jason Merrill <jason@redhat.com>
30618 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
30619 with DW_AT_default_value.
30621 2013-03-16 Jakub Jelinek <jakub@redhat.com>
30623 * BASE-VER: Set to 4.9.0.
30625 2013-03-14 Andi Kleen <ak@linux.intel.com>
30628 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
30629 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
30630 Document _x* TSX intrinsics.
30632 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
30633 David Holsgrove <david.holsgrove@xilinx.com>
30635 * configure.ac: Add MicroBlaze TLS support detection.
30636 * configure: Regenerate.
30637 * config/microblaze/microblaze-protos.h
30638 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
30639 symbol_mentioned_p, label_mentioned_p): Add prototypes.
30640 * config/microblaze/microblaze.c (microblaze_address_type): Add
30641 ADDRESS_TLS and tls_reloc address types.
30642 (microblaze_address_info): Add tls_reloc.
30643 (TARGET_HAVE_TLS): Define.
30644 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
30645 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
30646 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
30647 load_tls_operand, microblaze_call_tls_get_addr,
30648 microblaze_legitimize_tls_address): New functions.
30649 (microblaze_classify_unspec): Handle UNSPEC_TLS.
30650 (get_base_reg): Use microblaze_tls_symbol_p.
30651 (microblaze_classify_address): Handle TLS.
30652 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
30653 label_mentioned_p and microblaze_tls_referenced_p.
30654 (microblaze_legitimize_address): Handle TLS.
30655 (microblaze_address_insns): Handle ADDRESS_TLS.
30656 (pic_address_needs_scratch): Handle TLS.
30657 (print_operand_address): Handle TLS.
30658 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
30659 (microblaze_expand_move): Handle TLS.
30660 (microblaze_legitimate_constant_p): Check
30661 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
30662 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
30663 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
30664 (PIC_OFFSET_TABLE_REGNUM): Set.
30665 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
30666 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
30667 (addsi3, movsi_internal2, movdf_internal): Update constraints
30668 * config/microblaze/predicates.md (arith_plus_operand): Define
30669 (move_operand): Redefine as move_src_operand,
30670 check microblaze_tls_referenced_p.
30672 2013-03-14 Ian Bolton <ian.bolton@arm.com>
30674 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
30675 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
30677 2013-03-14 Ian Bolton <ian.bolton@arm.com>
30679 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
30682 2013-03-14 Jakub Jelinek <jakub@redhat.com>
30684 PR tree-optimization/53265
30685 * common.opt (Waggressive-loop-optimizations): New option.
30686 * tree-ssa-loop-niter.c: Include tree-pass.h.
30687 (do_warn_aggressive_loop_optimizations): New function.
30688 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
30689 if number_of_latch_executions returned constant.
30690 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
30691 early. If number_of_latch_executions returned constant, set
30692 nb_iterations_upper_bound back to it.
30693 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
30695 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
30696 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
30698 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
30699 (MULTILIB_OSDIRNAMES): Set.
30700 * genmultilib: If defaultosdirname doesn't start with :: , set
30701 defaultosdirname2 instead, clear it and emit two . multilib_raw
30702 entries instead of just one.
30704 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
30706 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
30707 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
30708 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
30709 (SUBTARGET_OVERRIDE_OPTIONS): New.
30711 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
30714 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
30715 (musermode): Convert to Var(TARGET_USERMODE).
30716 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
30717 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
30718 * config/sh/sh.c (sh_option_override): Use
30719 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
30720 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
30722 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
30724 (udivsi3_i4_single, divsi3_i4_single): Use
30725 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
30727 2013-03-13 Dave Korn <dave.korn.cygwin@gmail.com>
30729 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
30732 2013-03-13 Richard Biener <rguenther@suse.de>
30734 PR tree-optimization/56608
30735 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
30736 calls when vectorizing basic-blocks.
30738 2013-03-13 Jakub Jelinek <jakub@redhat.com>
30741 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
30744 2013-03-12 Jakub Jelinek <jakub@redhat.com>
30746 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
30748 2013-03-11 Jan Hubicka <jh@suse.cz>
30751 * lto-streamer-out.c (output_symbol_p): Skip references from
30752 constructors of external variables.
30754 2013-03-11 Jan Hubicka <jh@suse.cz>
30756 PR middle-end/56571
30757 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
30759 * emit-rtl.c (verify_rtx_sharing): Likewise.
30760 (copy_insn_1): Likewise.
30761 * rtl.c (copy_rtx): Likewise.
30763 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
30766 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
30767 output_operand_lossage message.
30769 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
30772 * arm.c (shift_op): Validate RTL pattern on the fly.
30773 (arm_print_operand, case 'S'): Don't use shift_operator to validate
30776 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30779 * config/pa/pa.md (call_value): Check for calls to powf and direct to
30780 new call patterns that clobber %fr12.
30781 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
30782 split and postreload patterns.
30783 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
30784 registers %fr12 and %fr12R as call used.
30786 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
30788 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
30789 (canon_address, record_store, replace_read, check_mem_read_rtx,
30790 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
30791 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
30792 rest_of_handle_dse): Likewise.
30794 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
30796 PR middle-end/56524
30797 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
30799 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
30800 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
30801 (save_optabs_if_changed): Replace with...
30802 (init_tree_optimization_optabs): ...this.
30803 * optabs.c (save_optabs_if_changed): Rename to...
30804 (init_tree_optimization_optabs): ...this. Take the optimization node
30805 as argument. Do nothing if the base optabs are already correct.
30806 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
30807 to recompute optabs.
30808 * function.h (function): Remove optabs field.
30809 * function.c (invoke_set_current_function_hook): Call
30810 init_tree_optimization_optabs. Use the result to initialize
30813 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
30815 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
30816 if GTMA_HAS_NO_INSTRUMENTATION.
30817 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
30818 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
30819 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
30820 * gimple-pretty-print.c (dump_gimple_transaction): Handle
30821 GTMA_HAS_NO_INSTRUMENTATION.
30823 2013-03-08 Jakub Jelinek <jakub@redhat.com>
30825 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
30828 2013-03-08 Marek Polacek <polacek@redhat.com>
30829 Jakub Jelinek <jakub@redhat.com>
30831 PR tree-optimization/56478
30832 * predict.c (is_comparison_with_loop_invariant_p): Change the
30833 type of loop_step to tree.
30834 (predict_loops): Adjust.
30835 (predict_iv_comparison): Perform the computations on double_ints.
30837 2013-03-08 Richard Biener <rguenther@suse.de>
30839 PR tree-optimization/56570
30840 * tree-cfg.c (verify_expr_location_1): Verify locations for
30842 * tree-sra.c (create_access_replacement): Strip locations
30843 from DECL_DEBUG_EXPRs.
30845 2013-03-08 Richard Biener <rguenther@suse.de>
30847 * tree-inline.c (expand_call_inline): Do not associate
30848 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
30849 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
30851 2013-03-08 Richard Biener <rguenther@suse.de>
30853 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
30854 or block changes with -Og. Fix for location / block encoding
30855 changes and PHI arguments with locations.
30857 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
30859 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
30861 (struct output_info): Likewise.
30862 (register_overhead): Remove bad gcc_assert.
30863 (bitmap_find_bit): If there is only a single bitmap element, do not
30864 count a miss as a search.
30865 (print_statistics): Update for counter type changes.
30866 (dump_bitmap_statistics): Likewise. Print headers such that they
30867 are properly lined up with the printed counters.
30869 2013-03-07 Jakub Jelinek <jakub@redhat.com>
30871 PR tree-optimization/56559
30872 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
30873 check that it has only a single use.
30875 2013-03-07 Richard Biener <rguenther@suse.de>
30877 * doc/invoke.texi (fwhole-program): Discourage use in combination
30880 2013-03-06 Jakub Jelinek <jakub@redhat.com>
30882 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
30884 PR tree-optimization/56539
30885 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
30886 instead of GSI_CONTINUE_LINKING as last argument to
30887 force_gimple_operand_gsi. Adjust function comment.
30889 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
30892 PR middle-end/56548
30893 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
30894 promoted mode, convert the result back to the original mode.
30896 2013-03-06 Richard Biener <rguenther@suse.de>
30898 PR middle-end/56294
30899 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
30900 (insert_updated_phi_nodes_compare_uids): New function.
30901 (update_ssa): Sort symbols_to_rename after UID before
30902 traversing it to insert PHI nodes.
30904 2013-03-06 Richard Biener <rguenther@suse.de>
30906 PR middle-end/50494
30907 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
30908 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
30911 2013-02-13 Richard Biener <rguenther@suse.de>
30914 * varasm.c (output_constant_def_1): Get the decl representing
30915 the constant as argument.
30916 (output_constant_def): Wrap output_constant_def_1.
30917 (make_decl_rtl): Use output_constant_def_1 with the decl
30918 representing the constant.
30919 (build_constant_desc): Optionally re-use a decl already
30920 representing the constant.
30921 (tree_output_constant_def): Adjust.
30923 2013-03-06 Joey Ye <joey.ye@arm.com>
30926 * gcc.c (convert_white_space): New function.
30927 (main): Handles white space in function name.
30929 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
30932 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
30933 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
30934 to SH_DIV_CALL_TABLE for TARGET_SH2.
30935 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
30937 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
30938 call-table options.
30940 2013-03-05 Sterling Augustine <saugustine@google.com>
30941 Cary Coutant <ccoutant@google.com>
30944 * dwarf2out.c (resolve_addr): Don't call
30945 remove_loc_list_addr_table_entries a second time for the same
30948 2013-03-05 Jakub Jelinek <jakub@redhat.com>
30951 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
30952 (avoid_complex_debug_insns): New function.
30953 (expand_debug_locations): Call it.
30955 PR rtl-optimization/56484
30956 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
30957 lifetimes of hard registers on small register class machines.
30959 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
30961 * config/microblaze/microblaze-protos.h: Rename
30962 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
30963 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
30965 (microblaze_fast_interrupt_function_p): New function.
30966 (microblaze_is_interrupt_handler): Rename to
30967 microblaze_is_interrupt_variant and add fast_interrupt check.
30968 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
30969 (save_restore_insns): Likewise.
30970 (compute_frame_size): Likewise.
30971 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
30972 (microblaze_globalize_label): Likewise.
30973 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
30974 * config/microblaze/microblaze.md: Use wrapper
30975 microblaze_is_interrupt_variant.
30977 2013-03-05 Kai Tietz <ktietz@redhat.com>
30979 * sdbout.c (sdbout_one_type): Switch to current function's section
30980 supporting cold/hot.
30982 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
30984 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
30987 2013-03-05 Jakub Jelinek <jakub@redhat.com>
30989 PR middle-end/56461
30990 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
30991 if VALGRIND_GET_VBITS is defined, temporarily make object
30992 memory all defined, and restore previous valgrind addressability
30993 and definability afterwards. Free this_object at the end.
30995 PR middle-end/56461
30996 * lra.c (lra): Call lra_clear_live_ranges if live_p,
30997 right before calling lra_create_live_ranges, also call it
30998 when clearing live_p. Only call lra_clear_live_ranges
30999 at the end if live_p.
31001 PR middle-end/56461
31002 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
31004 2013-03-05 Richard Biener <rguenther@suse.de>
31006 PR tree-optimization/56521
31007 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
31010 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
31013 * except.h (remove_unreachable_eh_regions): New prototype.
31014 * except.c (remove_eh_handler_splicer): New function, split out
31015 of remove_eh_handler.
31016 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
31017 warning about running it on many EH regions one at a time.
31018 (remove_unreachable_eh_regions_worker): New function, walk the
31019 EH tree in depth-first order and remove non-marked regions.
31020 (remove_unreachable_eh_regions): New function.
31021 * tree-eh.c (mark_reachable_handlers): New function, split out
31022 from remove_unreachable_handlers.
31023 (remove_unreachable_handlers): Use mark_reachable_handlers and
31024 remove_unreachable_eh_regions.
31025 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
31026 and remove_unreachable_eh_regions.
31028 2013-03-05 Richard Biener <rguenther@suse.de>
31030 PR middle-end/56525
31031 * loop-init.c (fix_loop_structure): Remove loops in two stages,
31032 not freeing them until the end.
31034 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31036 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
31038 2013-03-05 Richard Biener <rguenther@suse.de>
31040 PR tree-optimization/56270
31041 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
31042 of loads after scheduling an SLP instance.
31044 2013-03-05 Jakub Jelinek <jakub@redhat.com>
31046 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
31048 (check_gcc_parallelize): Run guality.exp as a separate job from
31049 vect.exp with unsorted.exp and $(dg_target_exps) separately from
31050 struct-layout-1.exp with stackalign.exp.
31052 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
31054 PR middle-end/56461
31055 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
31056 load_index sbitmap even if some bit in it isn't set.
31058 PR middle-end/56461
31059 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
31060 (discover_iteration_bound_by_body_walk): Change queues to
31061 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
31062 spelling in comment. Call safe_push on queues[bound_index] directly.
31063 Release queues[queue_index] in every iteration unconditionally.
31064 Release bounds vector.
31066 PR middle-end/56461
31067 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
31068 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
31069 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
31072 2013-03-05 Richard Biener <rguenther@suse.de>
31075 * tree-inline.c (remap_blocks_to_null): New function.
31076 (expand_call_inline): When expanding a call stmt without
31077 an associated block inline remap all callee blocks to NULL.
31079 2013-03-05 Jakub Jelinek <jakub@redhat.com>
31081 PR rtl-optimization/56494
31082 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
31083 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
31084 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
31086 PR middle-end/56461
31087 * sel-sched-ir.c (free_sched_pools): Release
31088 succs_info_pool.stack[succs_info_pool.max_top] vectors too
31089 if succs_info_pool.max_top isn't -1.
31092 * opts.c (opts_obstack, opts_concat): Moved to...
31093 * opts-common.c (opts_obstack, opts_concat): ... here.
31095 2013-03-04 Jakub Jelinek <jakub@redhat.com>
31097 PR middle-end/56461
31098 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
31100 2013-03-04 Martin Jambor <mjambor@suse.cz>
31102 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
31103 all appropriate places.
31105 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
31107 PR tree-optimization/56424
31108 * ipa-split.c (split_function): Do not set the RSO flag if result is
31109 not by reference and its type is a register type.
31111 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
31113 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
31114 (microblaze_legitimate_pic_operand): Likewise
31115 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
31116 new function microblaze_legitimate_pic_operand
31117 * config/microblaze/microblaze-protos.h
31118 (microblaze_legitimate_pic_operand): Declare.
31120 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
31122 * config/microblaze/predicates.md (call_insn_simple_operand):
31123 New predicate for supported rtx code types.
31124 * config/microblaze/microblaze.md (call_internal1): Use
31125 call_insn_simple_operand predicate.
31127 2013-03-04 Jakub Jelinek <jakub@redhat.com>
31129 PR middle-end/56461
31130 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
31131 partitions.ordered_remove.
31133 PR middle-end/56461
31134 * tree-vect-stmts.c (vectorizable_conversion): Don't call
31135 vec_oprnds0.create (1) for modifier == NONE.
31137 PR middle-end/56461
31138 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
31139 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
31140 vec_oprnds1 right before pushing anything to it for
31143 PR middle-end/56461
31144 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
31145 set nbbs to 0 instead of having separate code path.
31146 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
31147 instead of false as last argument if returning NULL.
31149 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
31151 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
31152 the attribute is now called "target" instead of "option".
31153 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
31154 * doc/tm.texi.in (Target Attributes): Likewise document the correct
31155 attribute/pragma name for TARGET_OPTION_VALID_P and
31156 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
31157 * doc/tm.texi: Regenerated.
31159 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
31161 * config/microblaze/microblaze.c:
31162 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
31163 * config/microblaze/microblaze.h: Add -mxl-reorder to
31165 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
31166 instructions emitted if TARGET_REORDER.
31167 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
31168 or 0 for -m/-mno case, but initialises as 2 to detect default use case
31171 2013-03-01 Xinliang David Li <davidxl@google.com>
31173 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
31176 2013-03-01 Jakub Jelinek <jakub@redhat.com>
31178 PR middle-end/56461
31179 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
31180 vector even when returning true. Fix up function comment formatting.
31182 PR middle-end/56461
31183 * ira-build.c (ira_loop_nodes_count): New variable.
31184 (create_loop_tree_nodes): Initialize it.
31185 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
31187 PR middle-end/56461
31188 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
31189 method on dr_chain and result_chain.
31190 * tree-vect-stmts.c (vectorizable_store): Only call
31191 result_chain.create if j == 0.
31193 PR middle-end/56461
31194 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
31195 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
31196 before overwriting it.
31198 2013-03-01 Tobias Burnus <burnus@net-b.de>
31200 * doc/extended.texi (C Extensions): Change order in @menu
31202 (Other MIPS Built-in Functions): Move last MIPS entry before
31203 "picoChip Built-in Functions".
31204 (SH Built-in Functions): Move after RX Built-in Functions.
31205 * doc/gcc.texi (Introduction): Change order in @menu
31207 * doc/md.texi (Constraints): Ditto.
31208 * gty.texi (Type Information): Ditto.
31209 (User-provided marking routines for template types): Make
31211 * doc/invoke.texi (AArch64 Options): Move before
31212 "Adapteva Epiphany Options".
31214 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
31215 Jakub Jelinek <jakub@redhat.com>
31218 * asan.c (gate_asan): Lookup no_sanitize_address instead of
31219 no_address_safety_analysis attribute.
31220 * doc/extend.texi (no_address_safety_attribute): Rename to
31221 no_sanitize_address attribute, mention no_address_safety_analysis
31222 attribute as deprecated alias.
31224 2013-02-28 Jakub Jelinek <jakub@redhat.com>
31226 PR middle-end/56461
31227 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
31228 type to vec<vec<tree> > *.
31229 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
31230 to be vec<tree> instead of vec<tree> *, set vec_defs
31231 to vNULL and call vec_defs.create (number_of_vects), adjust other
31233 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
31234 vectorizable_condition): Adjust vect_get_slp_defs callers.
31236 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
31238 * config/aarch64/aarch64.c
31239 (aarch64_float_const_representable): Remove unused variable.
31241 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
31243 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
31245 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
31247 * config/aarch64/aarch64-builtins.c
31248 (aarch64_init_simd_builtins): Make static.
31250 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
31252 * config/aarch64/aarch64.c
31253 (aarch64_simd_make_constant): Make static.
31255 2013-02-28 Martin Jambor <mjambor@suse.cz>
31257 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
31258 with no initialization to the RHS of debug statements.
31260 2013-02-28 Martin Jambor <mjambor@suse.cz>
31262 PR tree-optimization/56294
31263 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
31265 (get_access_replacement): Do not call create_access_replacement.
31266 Assert a replacement exists.
31267 (get_repl_default_def_ssa_name): Create the replacement declaration
31270 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31272 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
31273 final_end_function.
31275 2013-02-28 Marek Polacek <polacek@redhat.com>
31277 PR rtl-optimization/56466
31278 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
31279 if we're changing a loop.
31280 (peel_loops_completely): Likewise.
31282 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
31285 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
31287 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
31290 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
31291 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
31292 INTX_FTYPE_FX, FX_FTYPE_INTX.
31293 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
31295 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
31297 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
31298 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
31299 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
31300 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
31301 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
31302 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
31303 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
31304 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
31305 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
31306 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
31307 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
31308 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
31309 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
31310 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
31311 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
31312 (avrxmega6): Increase max flash segments from 5 to 6.
31313 * config/avr/t-multilib: Regenerate.
31314 * config/avr/avr-tables.opt: Regenerate.
31315 * doc/avr-mmcu.texi: Regenerate.
31317 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
31319 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
31320 (avr_device_to_arch): Rename to avr_device_to_ld.
31321 (avr_device_to_as): New prototype.
31322 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
31323 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
31324 * config/avr/driver-avr.c (avr_device_to_as): New.
31325 (avr_device_to_arch): Rename to avr_device_to_ld.
31327 2013-02-27 Jakub Jelinek <jakub@redhat.com>
31329 PR middle-end/56461
31330 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
31331 method on dr_chain and result_chain.
31333 PR middle-end/56461
31334 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
31335 pointer_set_destroy on not_executed_last_iteration.
31337 PR middle-end/56461
31338 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
31340 PR middle-end/56461
31341 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
31342 FOR_EACH_DEFINED_FUNCTION when freeing state.
31344 PR middle-end/56461
31345 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
31347 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
31350 PR middle-end/56461
31351 * ipa-cp.c (decide_whether_version_node): Call vec_free on
31352 known_aggs[i].items and release known_aggs vector.
31354 PR middle-end/56461
31355 * ipa-reference.c (propagate): Free node_info even for alias nodes.
31357 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
31359 * config/microblaze/microblaze.c (microblaze_emit_compare):
31360 Use xor for EQ/NE comparisions.
31361 * config/microblaze/microblaze.md (cstoresf4): Add constraints
31362 (cbranchsf4): Adjust operator to comparison_operator.
31364 2013-02-27 Jakub Jelinek <jakub@redhat.com>
31366 PR middle-end/56461
31367 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
31369 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
31370 vec_safe_push, always update *slot.
31371 (redirect_edge_var_map_clear): Use vec_free.
31372 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
31373 (free_var_map_entry): Use vec_free.
31374 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
31375 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
31377 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
31379 PR middle-end/45472
31380 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
31381 when the may_trap_p bit of the exprs being merged differs.
31382 Reorder tests for speculativeness in the logical and operator.
31384 2013-02-27 Jakub Jelinek <jakub@redhat.com>
31386 * incpath.c (add_standard_paths): Use reconcat instead of concat
31387 where appropriate and avoid leaking memory.
31389 * opts.h: Include obstack.h.
31390 (opts_concat): New prototype.
31391 (opts_obstack): New declaration.
31392 * opts.c (opts_concat): New function.
31393 (opts_obstack): New variable.
31394 (init_options_struct): Call gcc_init_obstack on opts_obstack.
31395 (finish_options): Use opts_concat instead of concat
31396 and XOBNEWVEC instead of XNEWVEC.
31397 * opts-common.c (generate_canonical_option, decode_cmdline_option,
31398 generate_option): Likewise.
31399 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
31400 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
31403 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
31404 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
31406 2013-02-26 Jakub Jelinek <jakub@redhat.com>
31408 PR middle-end/56461
31409 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
31411 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
31413 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
31414 (arm_block_move_unaligned_straight): Likewise.
31415 (arm_adjust_block_mem): Likewise.
31417 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
31420 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
31421 temp, cond and label.
31422 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
31425 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
31426 * config/c6x/c6x.h (dbx_register_map): Update declaration.
31429 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
31430 of prologue/epilogue functions.
31433 * config/tilegx/tilegx.c (tilegx_expand_prologue):
31434 Remove unused variable cfa_offset.
31435 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
31438 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
31439 type promotion to unsigned.
31442 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
31443 for HOST_WIDE_INT of 32 bit / same size as int.
31444 (arm_block_move_unaligned_straight): Likewise.
31445 (arm_adjust_block_mem): Likewise.
31448 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
31451 2013-02-26 Marek Polacek <polacek@redhat.com>
31453 PR tree-optimization/56426
31454 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
31456 2013-02-26 Richard Biener <rguenther@suse.de>
31459 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
31460 unused variable loops.
31462 2013-02-26 Jakub Jelinek <jakub@redhat.com>
31464 PR tree-optimization/56448
31465 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
31466 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
31467 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
31468 later operands of the references, or even first operand for
31469 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
31471 PR tree-optimization/56443
31472 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
31473 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
31474 to type_for_mode langhook.
31476 2013-02-25 Matt Turner <mattst88@gmail.com>
31478 * doc/invoke.texi: Document r4700.
31480 2013-02-25 Richard Biener <rguenther@suse.de>
31482 PR tree-optimization/56175
31483 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
31485 (simplify_bitwise_binary): ... here. Also guard the conversion
31486 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
31488 2013-02-25 Catherine Moore <clm@codesourcery.com>
31491 2013-02-24 Catherine Moore <clm@codesourcery.com>
31492 Maciej W. Rozycki <macro@codesourcery.com>
31493 Tom de Vries <tom@codesourcery.com>
31494 Nathan Sidwell <nathan@codesourcery.com>
31495 Iain Sandoe <iain@codesourcery.com>
31496 Nathan Froyd <froydnj@codesourcery.com>
31497 Chao-ying Fu <fu@mips.com>
31499 * doc/extend.texi: (micromips, nomicromips, nocompression):
31500 Document new function attributes.
31501 * doc/invoke.texi (minterlink-compressed, mmicromips,
31502 m14k, m14ke, m14kec): Document new options.
31503 (minterlink-mips16): Update documentation.
31504 * doc/md.texi (ZC, ZD): Document new constraints.
31505 * configure.ac (gcc_cv_as_micromips): Check if linker
31506 supports the .set micromips directive.
31507 * configure: Regenerate.
31508 * config.in: Regenerate.
31509 * config/mips/mips-tables.opt: Regenerate.
31510 * config/mips/micromips.md: New file.
31511 * constraints.md (ZC, AD): New constraints.
31512 * config/mips/predicates.md (movep_src_register): New predicate.
31513 (movep_src_operand): New predicate.
31514 (non_volatile_mem_operand): New predicate.
31515 * config/mips/mips.md (multimem): New type.
31516 (length): Differentiate between 17-bit and 18-bit branch offsets.
31517 (MOVEP1, MOVEP2): New mode iterator.
31518 (mov_<load>l): Use ZC constraint.
31519 (mov_<load>r): Likewise.
31520 (mov_<store>l): Likewise.
31521 (mov_<store>r): Likewise.
31522 (*branch_equality<mode>_inverted): Add microMIPS support.
31523 (*branch_equality<mode>): Likewise.
31524 (*jump_absolute): Likewise.
31525 (indirect_jump_<mode>): Likewise.
31526 (tablejump_<mode>): Likewise.
31527 (<optab>_internal): Likewise.
31528 (sibcall_internal): Likewise.
31529 (sibcall_value_internal): Likewise.
31530 (prefetch): Use constraint ZD.
31531 * config/mips/mips.opt (minterlink-compressed): New option.
31532 (minterlink-mips16): Now an alias for minterlink-compressed.
31533 (mmicromips): New option.
31534 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
31535 (compare_and_swap_12): Likewise.
31536 (sync_add<mode>): Likewise.
31537 (sync_<optab>_12): Likewise.
31538 (sync_old_<optab>_12): Likewise.
31539 (sync_new_<optab>_12): Likewise.
31540 (sync_nand_12): Likewise.
31541 (sync_old_nand_12): Likewise.
31542 (sync_new_nand_12): Likewise.
31543 (sync_sub<mode>): Likewise.
31544 (sync_old_add<mode>): Likewise.
31545 (sync_old_sub<mode>): Likewise.
31546 (sync_new_add<mode>): Likewise.
31547 (sync_new_sub<mode>): Likewise.
31548 (sync_<optab><mode>): Likewise.
31549 (sync_old_<optab><mode>): Likewise.
31550 (sync_new_<optab><mode>): Likewise.
31551 (sync_nand<mode>): Likewise.
31552 (sync_old_nand<mode>): Likewise.
31553 (sync_new_nand<mode>): Likewise.
31554 (sync_lock_test_and_set<mode>): Likewise.
31555 (test_and_set_12): Likewise.
31556 (atomic_compare_and_swap<mode>): Likewise.
31557 (atomic_exchange<mode>_llsc): Likewise.
31558 (atomic_fetch_add<mode>_llsc): Likewise.
31559 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
31560 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
31561 (umips_save_restore_pattern_p): Likewise.
31562 (umips_load_store_pair_p): Likewise.
31563 (umips_output_load_store_pair): Likewise.
31564 (umips_movep_target_p): Likewise.
31565 (umips_12bit_offset_address_p): Likewise.
31566 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
31567 (mips_base_mips16): Rename this...
31568 (mips_base_compression_flags): ...to this. Update all uses.
31569 (mips_attribute_table): Add micromips, nomicromips and nocompression.
31570 (mips_mips16_decl_p): Delete.
31571 (mips_nomips16_decl_p): Delete.
31572 (mips_get_compress_on_flags): New function.
31573 (mips_get_compress_off_flags): New function.
31574 (mips_get_compress_mode): New function.
31575 (mips_get_compress_on_name): New function.
31576 (mips_get_compress_off_name): New function.
31577 (mips_insert_attributes): Support multiple compression types.
31578 (mips_merge_decl_attributes): Likewise.
31579 (umips_12bit_offset_address_p): New function.
31580 (mips_start_function_definition): Emit .set micromips directive.
31581 (mips_call_may_need_jalx_p): New function.
31582 (mips_function_ok_for_sibcall): Add microMIPS support.
31583 (mips_print_operand_punctuation): Support short delay slots and
31585 (umips_swm_mask, umips_swm_encoding): New.
31586 (umips_build_save_restore): New function.
31587 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
31588 (was_mips16_p): Remove.
31589 (old_compression_mode): New.
31590 (mips_set_compression_mode): New function.
31591 (mips_set_current_function): Add microMIPS support.
31592 (mips_option_override): Likewise.
31593 (umips_save_restore_pattern_p): New function.
31594 (umips_output_save_restore): New function.
31595 (umips_load_store_pair_p_1): New function.
31596 (umips_load_store_pair_p): New function.
31597 (umips_output_load_store_pair_1): New function.
31598 (umips_output_load_store_pair): New function.
31599 (umips_movep_target_p) New function.
31600 (mips_prepare_pch_save): Add microMIPS support.
31601 * config/mips/mips.h (TARGET_COMPRESSION): New.
31602 (TARGET_CPU_CPP_BUILTINS): Update macro
31603 to use new compression flags and to support microMIPS.
31604 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
31605 (MIPS_ARCH_FLOAT_SPEC): Likewise.
31606 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
31607 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
31608 (ASM_SPEC): Support mmicromips and mno-micromips.
31609 (M16STORE_REG_P): New macro.
31610 (MIPS_CALL): Support TARGET_MICROMIPS.
31611 (MICROMIPS_J): New macro.
31612 (mips_base_mips16): Rename this...
31613 (mips_base_compression_flags): ...to this.
31614 (UMIPS_12BIT_OFFSET_P): New macro.
31615 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
31616 (MULTILIB_DIRNAMES): Likewise.
31618 2013-02-25 Tom de Vries <tom@codesourcery.com>
31620 PR rtl-optimization/56131
31621 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
31622 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
31623 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
31625 2013-02-25 Tobias Burnus <burnus@net-b.de>
31627 * doc/invoke.texi (-fsanitize=): Move from optimization
31628 to debugging options.
31630 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
31632 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
31634 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
31635 Alexander Monakov <amonakov@ispras.ru>
31637 PR middle-end/56077
31638 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
31639 flush pending lists also on non-jumps. Adjust comment.
31641 2013-02-24 Catherine Moore <clm@codesourcery.com>
31642 Maciej W. Rozycki <macro@codesourcery.com>
31643 Tom de Vries <tom@codesourcery.com>
31644 Nathan Sidwell <nathan@codesourcery.com>
31645 Iain Sandoe <iain@codesourcery.com>
31646 Nathan Froyd <froydnj@codesourcery.com>
31647 Chao-ying Fu <fu@mips.com>
31649 * doc/extend.texi: (micromips, nomicromips, nocompression):
31650 Document new function attributes.
31651 * doc/invoke.texi (minterlink-compressed, mmicromips,
31652 m14k, m14ke, m14kec): Document new options.
31653 (minterlink-mips16): Update documentation.
31654 * doc/md.texi (ZC, ZD): Document new constraints.
31655 * configure.ac (gcc_cv_as_micromips): Check if linker
31656 supports the .set micromips directive.
31657 * configure: Regenerate.
31658 * config.in: Regenerate.
31659 * config/mips/mips-tables.opt: Regenerate.
31660 * config/mips/micromips.md: New file.
31661 * constraints.md (ZC, AD): New constraints.
31662 * config/mips/predicates.md (movep_src_register): New predicate.
31663 (movep_src_operand): New predicate.
31664 (non_volatile_mem_operand): New predicate.
31665 * config/mips/mips.md (multimem): New type.
31666 (length): Differentiate between 17-bit and 18-bit branch offsets.
31667 (MOVEP1, MOVEP2): New mode iterator.
31668 (mov_<load>l): Use ZC constraint.
31669 (mov_<load>r): Likewise.
31670 (mov_<store>l): Likewise.
31671 (mov_<store>r): Likewise.
31672 (*branch_equality<mode>_inverted): Add microMIPS support.
31673 (*branch_equality<mode>): Likewise.
31674 (*jump_absolute): Likewise.
31675 (indirect_jump_<mode>): Likewise.
31676 (tablejump_<mode>): Likewise.
31677 (<optab>_internal): Likewise.
31678 (sibcall_internal): Likewise.
31679 (sibcall_value_internal): Likewise.
31680 (prefetch): Use constraint ZD.
31681 * config/mips/mips.opt (minterlink-compressed): New option.
31682 (minterlink-mips16): Now an alias for minterlink-compressed.
31683 (mmicromips): New option.
31684 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
31685 (compare_and_swap_12): Likewise.
31686 (sync_add<mode>): Likewise.
31687 (sync_<optab>_12): Likewise.
31688 (sync_old_<optab>_12): Likewise.
31689 (sync_new_<optab>_12): Likewise.
31690 (sync_nand_12): Likewise.
31691 (sync_old_nand_12): Likewise.
31692 (sync_new_nand_12): Likewise.
31693 (sync_sub<mode>): Likewise.
31694 (sync_old_add<mode>): Likewise.
31695 (sync_old_sub<mode>): Likewise.
31696 (sync_new_add<mode>): Likewise.
31697 (sync_new_sub<mode>): Likewise.
31698 (sync_<optab><mode>): Likewise.
31699 (sync_old_<optab><mode>): Likewise.
31700 (sync_new_<optab><mode>): Likewise.
31701 (sync_nand<mode>): Likewise.
31702 (sync_old_nand<mode>): Likewise.
31703 (sync_new_nand<mode>): Likewise.
31704 (sync_lock_test_and_set<mode>): Likewise.
31705 (test_and_set_12): Likewise.
31706 (atomic_compare_and_swap<mode>): Likewise.
31707 (atomic_exchange<mode>_llsc): Likewise.
31708 (atomic_fetch_add<mode>_llsc): Likewise.
31709 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
31710 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
31711 (umips_save_restore_pattern_p): Likewise.
31712 (umips_load_store_pair_p): Likewise.
31713 (umips_output_load_store_pair): Likewise.
31714 (umips_movep_target_p): Likewise.
31715 (umips_12bit_offset_address_p): Likewise.
31716 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
31717 (mips_base_mips16): Rename this...
31718 (mips_base_compression_flags): ...to this. Update all uses.
31719 (mips_attribute_table): Add micromips, nomicromips and nocompression.
31720 (mips_mips16_decl_p): Delete.
31721 (mips_nomips16_decl_p): Delete.
31722 (mips_get_compress_on_flags): New function.
31723 (mips_get_compress_off_flags): New function.
31724 (mips_get_compress_mode): New function.
31725 (mips_get_compress_on_name): New function.
31726 (mips_get_compress_off_name): New function.
31727 (mips_insert_attributes): Support multiple compression types.
31728 (mips_merge_decl_attributes): Likewise.
31729 (umips_12bit_offset_address_p): New function.
31730 (mips_start_function_definition): Emit .set micromips directive.
31731 (mips_call_may_need_jalx_p): New function.
31732 (mips_function_ok_for_sibcall): Add microMIPS support.
31733 (mips_print_operand_punctuation): Support short delay slots and
31735 (umips_swm_mask, umips_swm_encoding): New.
31736 (umips_build_save_restore): New function.
31737 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
31738 (was_mips16_p): Remove.
31739 (old_compression_mode): New.
31740 (mips_set_compression_mode): New function.
31741 (mips_set_current_function): Add microMIPS support.
31742 (mips_option_override): Likewise.
31743 (umips_save_restore_pattern_p): New function.
31744 (umips_output_save_restore): New function.
31745 (umips_load_store_pair_p_1): New function.
31746 (umips_load_store_pair_p): New function.
31747 (umips_output_load_store_pair_1): New function.
31748 (umips_output_load_store_pair): New function.
31749 (umips_movep_target_p) New function.
31750 (mips_prepare_pch_save): Add microMIPS support.
31751 * config/mips/mips.h (TARGET_COMPRESSION): New.
31752 (TARGET_CPU_CPP_BUILTINS): Update macro
31753 to use new compression flags and to support microMIPS.
31754 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
31755 (MIPS_ARCH_FLOAT_SPEC): Likewise.
31756 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
31757 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
31758 (ASM_SPEC): Support mmicromips and mno-micromips.
31759 (M16STORE_REG_P): New macro.
31760 (MIPS_CALL): Support TARGET_MICROMIPS.
31761 (MICROMIPS_J): New macro.
31762 (mips_base_mips16): Rename this...
31763 (mips_base_compression_flags): ...to this.
31764 (UMIPS_12BIT_OFFSET_P): New macro.
31765 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
31766 (MULTILIB_DIRNAMES): Likewise.
31768 2013-02-24 Jakub Jelinek <jakub@redhat.com>
31771 * target-globals.c (save_target_globals): For init_reg_sets and
31772 target_reinit remporarily set this_fn_optabs to this_target_optabs.
31774 2013-02-22 James Greenhalgh <james.greenhalgh@arm.com>
31776 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
31777 * config/aarch64/t-aarch64
31778 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
31780 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
31782 PR inline-asm/56148
31783 * lra-constraints.c (process_alt_operands): Reload operand
31784 conflicting with earlier clobber only if no more other conflicting
31787 2013-02-22 Jakub Jelinek <jakub@redhat.com>
31790 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
31791 if not linking a shared library.
31793 2013-02-22 Seth LaForge <sethml@google.com>
31795 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
31797 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
31799 * config/arm/arm.md (split for extendsidi): Update condition.
31800 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
31801 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
31802 (qhs_zextenddi_cstr): Likewise.
31804 2013-02-21 Jakub Jelinek <jakub@redhat.com>
31806 PR middle-end/56420
31807 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
31808 avoid signed wrapping.
31809 (expand_mult): Handle properly multiplication by
31810 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
31811 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
31812 in the compiler if coeff is HOST_WIDE_INT_MIN.
31813 (expand_divmod): Don't make ext_op1 static, change it's type to
31814 uhwi. Avoid undefined behavior in -INTVAL (op1).
31816 PR rtl-optimization/50339
31817 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
31819 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
31820 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
31821 into splitting_ashiftrt field.
31822 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
31824 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
31827 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
31829 PR middle-end/56108
31830 * trans-mem.c (execute_tm_mark): Do not expand transactions that
31831 are sure to go irrevocable.
31833 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
31835 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
31836 scalars are valid operands.
31838 2013-02-21 Martin Jambor <mjambor@suse.cz>
31840 PR tree-optimization/56310
31841 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
31842 only matching indices and non-negative final offsets.
31843 (intersect_aggregates_with_edge): Pass src_idx to
31844 agg_replacements_to_vector. Pass src_idx insstead of index to
31845 intersect_with_agg_replacements.
31847 2013-02-21 Martin Jambor <mjambor@suse.cz>
31849 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
31850 instead of hard-wired defaults.
31852 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
31854 * doc/invoke.texi (MIPS Options): Update documentation of the
31855 floating-point multiply-accumulate instruction restrictions.
31857 2013-02-21 Kostya Serebryany <kcc@google.com>
31859 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
31860 asan_shadow_offset on x86_64 linux.
31862 2013-02-21 Richard Biener <rguenther@suse.de>
31864 PR tree-optimization/56415
31866 2013-02-11 Richard Biener <rguenther@suse.de>
31868 PR tree-optimization/56273
31869 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
31872 2013-02-21 Jakub Jelinek <jakub@redhat.com>
31875 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
31878 PR inline-asm/56405
31879 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
31880 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
31882 2013-02-20 Jan Hubicka <jh@suse.cz>
31884 PR tree-optimization/56265
31885 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
31886 when target is referenced for first time.
31888 2013-02-20 Richard Biener <rguenther@suse.de>
31890 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
31891 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
31892 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
31893 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
31894 not return anything.
31895 (rename_ssa_copies): Do not remove unused locals.
31896 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
31897 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
31898 * passes.c (execute_function_todo): Do not schedule unused locals
31899 removal if cleanup_tree_cfg did something.
31900 * tree-ssa-live.c (remove_unused_locals): Dump statistics
31901 about the number of removed locals.
31903 2013-02-20 Richard Biener <rguenther@suse.de>
31905 PR tree-optimization/56398
31906 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
31908 2013-02-20 Martin Jambor <mjambor@suse.cz>
31910 PR tree-optimization/55334
31911 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
31912 restricted pointers to arrays.
31914 2013-02-20 Richard Biener <rguenther@suse.de>
31915 Jakub Jelinek <jakub@redhat.com>
31917 PR tree-optimization/56396
31918 * tree-ssa-ccp.c (n_const_val): New static variable.
31919 (get_value): Return NULL for SSA names we don't have a lattice
31921 (ccp_initialize): Initialize n_const_val.
31922 * tree-ssa-copy.c (n_copy_of): New static variable.
31923 (init_copy_prop): Initialize n_copy_of.
31924 (get_value): Return NULL_TREE for SSA names we don't have a
31927 2013-02-20 Martin Jambor <mjambor@suse.cz>
31929 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
31931 2013-02-20 Richard Biener <rguenther@suse.de>
31933 * genpreds.c (write_lookup_constraint): Do not compare first
31934 letter of the constraint again.
31936 2013-02-20 Richard Biener <rguenther@suse.de>
31938 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
31940 (get_use_iv_cost): Terminate hashtable walk when coming across
31943 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
31945 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
31946 reassociation for avx2 targets.
31948 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
31950 * config/microblaze/microblaze.c: microblaze_has_clz = 0
31951 Add version check for v8.10.a to enable microblaze_has_clz
31952 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
31953 version and TARGET_PATTERN_COMPARE check
31954 * config/microblaze/microblaze.md: New clzsi2 instruction
31956 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
31958 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
31959 function before branching.
31961 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
31963 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
31965 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
31967 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
31969 PR middle-end/55889
31970 * sel-sched.c: Include ira.h.
31971 (implicit_clobber_conflict_p): New function.
31972 (moveup_expr): Use it.
31973 * Makefile.in (sel-sched.o): Depend on ira.h.
31975 2013-02-19 Richard Biener <rguenther@suse.de>
31977 PR tree-optimization/56384
31978 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
31979 (vn_hash_type): Split out from ...
31980 (vn_hash_constant_with_type): ... here.
31981 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
31982 (vn_phi_eq): Compare types from vn_phi_s structure.
31983 (vn_phi_lookup): Populate vn_phi_s type.
31984 (vn_phi_insert): Likewise.
31986 2013-02-19 Jakub Jelinek <jakub@redhat.com>
31988 PR tree-optimization/56350
31989 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
31990 if haven't found reduction or nested cycle operand, rather than
31991 asserting we must find it.
31993 PR tree-optimization/56381
31994 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
31997 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
31998 Jakub Jelinek <jakub@redhat.com>
32001 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
32002 (swap_optab_enable): Same.
32003 (init_all_optabs): Use argument instead of global.
32004 * tree.h (struct tree_optimization_option): New field target_optabs.
32005 * expr.h (init_all_optabs): Add argument to prototype.
32006 (TREE_OPTIMIZATION_OPTABS): New.
32007 (save_optabs_if_changed): Protoize.
32008 * optabs.h: Declare this_fn_optabs.
32009 * optabs.c (save_optabs_if_changed): New.
32010 Declare this_fn_optabs.
32011 (init_optabs): Add argument to init_all_optabs() call.
32012 * function.c (invoke_set_current_function_hook): Handle per
32014 * function.h (struct function): New field optabs.
32015 * config/mips/mips.c (mips_set_mips16_mode): Handle when
32016 optimization_current_node has changed.
32017 * target-globals.h (save_target_globals_default_opts): Protoize.
32018 * target-globals.c (save_target_globals_default_opts): New.
32020 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32023 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
32024 registers %fr12 and %fr12R as call used.
32027 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
32028 and HImode, require all displacements to be an integer multiple of
32030 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
32031 only allow QImode and HImode when reload is in progress and strict is
32032 true. Likewise for symbolic addresses. Use base14_operand to check
32033 displacements in REG+BASE addresses.
32035 2013-02-18 Richard Biener <rguenther@suse.de>
32037 PR tree-optimization/56366
32038 * tree-vect-loop.c (get_initial_def_for_induction): Properly
32039 handle sign-conversion of outer-loop initial induction value.
32041 2013-02-18 Richard Biener <rguenther@suse.de>
32043 PR middle-end/56349
32044 * cfghooks.c (merge_blocks): If we merge a latch into another
32045 block adjust references to it.
32046 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
32047 (verify_loop_structure): Verify that a recorded latch is in fact
32050 2013-02-18 Richard Biener <rguenther@suse.de>
32052 PR tree-optimization/56321
32053 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
32054 order SSA name release and virtual operand unlinking.
32056 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
32058 * config/microblaze/microblaze.md (save_stack_block): Define.
32059 (restore_stack_block): Likewise.
32061 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
32063 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
32064 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
32065 * config/microblaze/microblaze.c (microblaze_option_override):
32066 Bail out early for PIC modes when target does not support PIC.
32068 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
32070 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
32071 Replace with a microblaze version.
32072 (microblaze_trampoline_init): Adapt for microblaze.
32073 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
32076 2013-02-16 Jakub Jelinek <jakub@redhat.com>
32077 Dodji Seketeli <dodji@redhat.com>
32080 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
32081 (instrument_mem_region_access): Do not forget to always put
32082 instrumentation of the of 'base' and 'base + len' in a "if (len !=
32083 0) statement, even for cases where either 'base' or 'base + len'
32084 are not instrumented -- because they have been previously
32085 instrumented. Simplify the logic by putting all the statements
32086 instrument 'base + len' inside a sequence, and then insert that
32087 sequence right before the current insertion point. Then, to
32088 instrument 'base + len', just get an iterator on that statement.
32089 And do not forget to update the pointer to iterator the function
32090 received as argument.
32092 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
32094 PR rtl-optimization/56348
32095 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
32097 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
32099 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
32100 (clean_graph_dump_file): Pass base to start_graph_dump.
32102 2013-02-14 Richard Henderson <rth@redhat.com>
32105 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
32107 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
32109 * collect2-aix.h: Define F_LOADONLY.
32111 2013-02-14 Richard Biener <rguenther@suse.de>
32114 * varasm.c (output_constant_def_1): Get the decl representing
32115 the constant as argument.
32116 (output_constant_def): Wrap output_constant_def_1.
32117 (make_decl_rtl): Use output_constant_def_1 with the decl
32118 representing the constant.
32119 (build_constant_desc): Optionally re-use a decl already
32120 representing the constant.
32121 (tree_output_constant_def): Adjust.
32123 2013-02-14 Dodji Seketeli <dodji@redhat.com>
32126 * asan.c (instrument_builtin_call): Really put the length of the
32127 second source argument into src1_len.
32129 2013-02-13 Jakub Jelinek <jakub@redhat.com>
32131 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
32132 argument. If it is false, don't create edge from then_bb to
32134 (insert_if_then_before_iter): Pass true to it.
32135 (build_check_stmt): Pass false to it.
32136 (transform_statements): Flush hash table only on extended basic
32137 block boundaries, rather than at the beginning of every bb.
32138 Don't flush hash table on nonfreeing_call_p calls.
32139 * tree-flow.h (nonfreeing_call_p): New prototype.
32140 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
32142 2013-02-13 David S. Miller <davem@davemloft.net>
32144 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
32146 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
32149 * ira.c (max_regno_before_ira): Move from ...
32151 (fix_reg_equiv_init): Use max_regno_before_ira instead of
32154 2013-02-13 Jakub Jelinek <jakub@redhat.com>
32156 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
32158 2013-02-13 Richard Biener <rguenther@suse.de>
32161 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
32162 globals in MEM_REFs.
32164 2013-02-13 Richard Biener <rguenther@suse.de>
32166 * loop-init.c (loop_optimizer_init): Clear loop state when
32167 re-initializing preserved loops.
32168 * loop-unswitch.c (unswitch_single_loop): Return whether
32169 we unswitched the loop. Do not verify loop state here.
32170 (unswitch_loops): When we unswitched a loop discover new loops.
32172 2013-02-13 Kostya Serebryany <kcc@google.com>
32174 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
32176 * sanitizer.def: Rename __asan_init to __asan_init_v1.
32178 2013-02-12 Dodji Seketeli <dodji@redhat.com>
32180 Avoid instrumenting duplicated memory access in the same basic block
32181 * Makefile.in (asan.o): Add new dependency on hash-table.h
32182 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
32183 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
32184 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
32185 (free_mem_ref_resources, has_mem_ref_been_instrumented)
32186 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
32187 (get_mem_ref_of_assignment): New functions.
32188 (get_mem_refs_of_builtin_call): Extract from
32189 instrument_builtin_call and tweak a little bit to make it fit with
32191 (instrument_builtin_call): Use the new
32192 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
32193 of is_gimple_builtin_call.
32194 (instrument_derefs, instrument_mem_region_access): Insert the
32195 instrumented memory reference into the hash table.
32196 (maybe_instrument_assignment): Renamed instrument_assignment into
32197 this, and change it to advance the iterator when instrumentation
32198 actually happened and return true in that case. This makes it
32199 homogeneous with maybe_instrument_assignment, and thus give a
32200 chance to callers to be more 'regular'.
32201 (transform_statements): Clear the memory reference hash table
32202 whenever we enter a new BB, when we cross a function call, or when
32203 we are done transforming statements. Use
32204 maybe_instrument_assignment instead of instrumentation. No more
32205 need to special case maybe_instrument_assignment and advance the
32206 iterator after calling it; it's now handled just like
32207 maybe_instrument_call. Update comment.
32209 2013-02-13 Richard Biener <rguenther@suse.de>
32211 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
32212 Fix loop discovery code.
32214 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
32216 PR inline-asm/56148
32217 * lra-constraints.c (process_alt_operands): Match early clobber
32218 operand with itself. Check conflicts with earlyclobber only if
32219 the operand is not reloaded. Prefer to reload conflicting operand
32220 if earlyclobber and matching operands are the same.
32222 2013-02-12 Richard Biener <rguenther@suse.de>
32225 * lto-streamer-out.c (write_symbol): Do not output symbols
32226 for hard register variables.
32228 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
32231 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
32232 (umulsidi3_insn, mulsidi3_insn): New insns.
32234 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
32236 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
32237 (struct tune_params): Add vec_costs field.
32238 * config/arm/arm.c (arm_builtin_vectorization_cost)
32239 (arm_add_stmt_cost): New functions.
32240 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
32241 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
32242 (arm_default_vec_cost): New struct of type cpu_vec_costs.
32243 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
32244 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
32245 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
32246 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
32248 2013-02-12 Richard Biener <rguenther@suse.de>
32251 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
32252 decls again if possible.
32254 2013-02-12 Richard Biener <rguenther@suse.de>
32256 PR middle-end/56288
32257 * tree-ssa.c (verify_ssa_name): Fix check, move
32258 SSA_NAME_IN_FREE_LIST check up.
32260 2013-02-12 Jakub Jelinek <jakub@redhat.com>
32261 Steven Bosscher <steven@gcc.gnu.org>
32263 PR rtl-optimization/56151
32264 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
32265 equal to op0 or op1, and last_insn pattern is CODE operation
32266 with MEM dest and one of the operands matches that MEM.
32268 2013-02-11 Sriraman Tallam <tmsriram@google.com>
32270 * doc/extend.texi: Document Function Multiversioning and "default"
32271 parameter string to target attribute.
32272 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
32273 target attribute parameter is "default".
32274 (ix86_compare_version_priority): Remove checks for target attribute.
32275 (ix86_mangle_function_version_assembler_name): Change error to sorry.
32276 Remove check for target attribute equal to NULL. Add assert.
32277 (ix86_generate_version_dispatcher_body): Change error to sorry.
32279 2013-02-11 Iain Sandoe <iain@codesourcery.com>
32280 Jack Howarth <howarth@bromo.med.uc.edu>
32281 Patrick Marlier <patrick.marlier@gmail.com>
32284 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
32285 define ENDFILE_SPEC as TM_DESTRUCTOR.
32286 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
32288 2013-02-11 Alexander Potapenko <glider@google.com>
32289 Jack Howarth <howarth@bromo.med.uc.edu>
32290 Jakub Jelinek <jakub@redhat.com>
32293 * config/darwin.c (cdtor_record): Rename ctor_record.
32294 (sort_cdtor_records): Rename sort_ctor_records.
32295 (finalize_dtors): New routine to sort destructors by
32296 priority before use in assemble_integer.
32297 (machopic_asm_out_destructor): Use finalize_dtors if needed.
32299 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
32301 PR rtl-optimization/56275
32302 * simplify-rtx.c (avoid_constant_pool_reference): Check that
32303 offset is non-negative and less than cmode size before
32304 calling simplify_subreg.
32306 2013-02-11 Richard Biener <rguenther@suse.de>
32308 PR tree-optimization/56264
32309 * cfgloop.h (fix_loop_structure): Adjust prototype.
32310 * loop-init.c (fix_loop_structure): Return the number of
32311 newly discovered loops.
32312 * tree-cfgcleanup.c (repair_loop_structures): When new loops
32313 are discovered, do a full loop-closed SSA rewrite.
32315 2013-02-11 Richard Biener <rguenther@suse.de>
32317 PR tree-optimization/56273
32318 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
32320 (check_array_ref): Fix missing newline in dumps.
32321 (search_for_addr_array): Likewise.
32323 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
32325 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
32327 2013-02-09 Jakub Jelinek <jakub@redhat.com>
32330 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
32332 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
32334 PR rtl-optimization/56246
32335 * lra-constraints.c (simplify_operand_subreg): Try to reuse
32337 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
32338 constraints are satisfied.
32340 2013-02-08 Jeff Law <law@redhat.com>
32343 * emit-rtl.c (reg_is_parm_p): New function.
32344 * regs.h (reg_is_parm_p): New prototype.
32345 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
32346 callee-clobbered registers.
32348 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
32351 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
32352 If there is no implicit builtin declaration, just return NULL.
32354 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
32356 * config/i386/sse.md (FMAMODEM): New mode iterator.
32357 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
32358 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
32360 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
32362 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
32363 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
32364 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
32366 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
32368 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
32369 (microblaze*-*-elf): Likewise.
32370 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
32372 * config/microblaze/microblaze-c.c: Add builtin defines for
32373 _LITTLE_ENDIAN and _BIG_ENDIAN.
32374 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
32375 add to TARGET_DEFAULT flags.
32376 Expand ASM_SPEC and LINK_SPEC.
32377 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
32378 * config/microblaze/microblaze.md: Update extendsidi2 and
32379 movdi_internal instructions to use low-order / high-order reg
32381 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
32382 options and inversemask / mask of LITTLE_ENDIAN.
32383 * config/microblaze/t-microblaze: Expand multilib options to
32384 include mlittle-endian (le) and update exceptions patterns.
32386 2013-02-08 Jakub Jelinek <jakub@redhat.com>
32388 PR rtl-optimization/56195
32389 * lra-constraints.c (get_reload_reg): Don't reuse regs
32390 if they have smaller mode than requested, if they have
32391 wider mode than requested, try to return a SUBREG.
32393 PR tree-optimization/56250
32394 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
32395 if type is unsigned and code isn't MULT_EXPR.
32397 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
32399 PR tree-optimization/56064
32400 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
32401 bits according to mode.
32402 * fixed-value.h (fixed_from_double_int)
32403 (const_fixed_from_double_int): Adjust comments.
32405 2013-02-08 Richard Biener <rguenther@suse.de>
32408 * lto-streamer.h (struct data_in): Remove current_file, current_line
32409 and current_col members.
32410 * lto-streamer-out.c (lto_output_location): Stream changed bits
32411 en-block for efficiency.
32412 * lto-streamer-in.c (clear_line_info): Remove.
32413 (lto_input_location): Cache current file, line and column
32414 globally via local statics. Read changed bits en-block.
32415 (input_function): Do not call clear_line_info.
32416 (lto_read_body): Likewise.
32417 (lto_input_toplevel_asms): Likewise.
32419 2013-02-08 Michael Matz <matz@suse.de>
32421 PR tree-optimization/52448
32422 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
32423 (nt_call_phase): New static.
32424 (add_or_mark_expr): Only mark accesses with newer phase than any
32426 (nonfreeing_call_p): New.
32427 (nt_init_block): Update nt_call_phase, mark blocks as visited.
32428 (nt_fini_block): Keep blocks marked as visited.
32429 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
32431 2013-02-08 Richard Biener <rguenther@suse.de>
32433 * ira.c (ira): Free broken dominator information.
32435 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
32437 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
32439 2013-02-08 Marek Polacek <polacek@redhat.com>
32441 * cfgloop.c (verify_loop_structure): Add more checking of headers.
32443 2013-02-08 Richard Biener <rguenther@suse.de>
32445 PR middle-end/56181
32446 * cfgloop.h (flow_loops_find): Adjust.
32447 (bb_loop_header_p): Declare.
32448 * cfgloop.c (bb_loop_header_p): New function split out from ...
32449 (flow_loops_find): ... here. Adjust function signature,
32450 support incremental loop structure update.
32451 (verify_loop_structure): Cleanup. Verify a loop is a loop.
32452 * cfgloopmanip.c (fix_loop_structure): Move ...
32453 * loop-init.c (fix_loop_structure): ... here.
32454 (apply_loop_flags): Split out from ...
32455 (loop_optimizer_init): ... here.
32456 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
32457 in incremental mode, only remove dead loops here.
32459 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
32462 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
32463 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
32464 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
32465 (*round<mode>3.libgcc): New insns for fixed-modes.
32466 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
32467 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
32468 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
32469 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
32470 implementations. Define to __builtin_avr_absFX,
32471 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
32472 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
32473 __builtin_avr_countlsFX, respectively.
32474 * config/avr/avr-c.c (target.h): Include it.
32475 (enum avr_builtin_id): New enum.
32476 (avr_resolve_overloaded_builtin): New static function.
32477 (avr_register_target_pragmas): Use it to set
32478 targetm.resolve_overloaded_builtin.
32479 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
32480 tree nodes used by DEF_BUILTIN.
32481 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
32482 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
32483 <AVR_BUILTIN_xxBITS>: Same.
32485 2013-02-08 Richard Biener <rguenther@suse.de>
32487 * cfgloop.c (verify_loop_structure): Properly handle
32488 a loop exiting to another loop header.
32489 * ira-int.h (ira_loops): Remove.
32490 * ira.c (ira_loops): Remove.
32491 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
32492 (do_reload): Use loop_optimizer_finalize.
32493 * ira-build.c (create_loop_tree_nodes): Use get_loops and
32494 number_of_loops to access the loop tree.
32495 (more_one_region_p): Likewise.
32496 (finish_loop_tree_nodes): Likewise.
32497 (rebuild_regno_allocno_maps): Likewise.
32498 (mark_loops_for_removal): Likewise.
32499 (mark_all_loops_for_removal): Likewise.
32500 (remove_unnecessary_regions): Likewise.
32501 (ira_build): Likewise.
32502 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
32504 2013-02-08 Richard Biener <rguenther@suse.de>
32506 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
32507 * ipa-pure-const.c (analyze_function): Avoid calling
32508 mark_irreducible_loops twice.
32509 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
32511 2013-02-07 David S. Miller <davem@davemloft.net>
32513 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
32515 * var-tracking.c (vt_add_function_parameter): Test the presence of
32516 HAVE_window_save properly and do not remap argument registers when
32517 we have a leaf function.
32519 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
32522 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
32524 * config/i386/i386.c (ix86_print_operand): Ditto.
32526 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
32528 * lra-constraints.c (process_alt_operands): Fix recently added comment.
32530 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
32532 PR rtl-optimization/56225
32533 * lra-constraints.c (process_alt_operands): Check that reload hard
32534 reg can hold value for strict_low_part.
32536 2013-02-07 Jakub Jelinek <jakub@redhat.com>
32539 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
32540 dwarf2out_end_function.
32541 (in_first_function_p, maybe_at_text_label_p,
32542 first_loclabel_num_not_at_text_label): New variables.
32543 (dwarf2out_var_location): In the first function find out
32544 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
32545 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
32548 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
32550 PR rtl-optimization/56178
32551 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
32552 SUBREG of a register. Tidy up related block of code.
32553 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
32554 note if the source is a register or a SUBREG of a register.
32556 2013-02-07 Jakub Jelinek <jakub@redhat.com>
32559 * config/rs6000/rs6000.md (ptrm): New mode attr.
32560 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
32561 call_value_indirect_aix<pttrsize>,
32562 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
32565 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
32567 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
32568 if -bnortl. Convert to strcmp and strncmp.
32570 2013-02-07 Alan Modra <amodra@gmail.com>
32573 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
32574 addresses won't wrap when offsetting.
32575 (rs6000_secondary_reload): Provide secondary reloads needed for
32576 wrapping LO_SUM addresses.
32578 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
32580 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
32581 MACH, just __MACH__.
32583 2013-02-06 Richard Biener <rguenther@suse.de>
32585 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
32586 instead of calling fix_loop_structure.
32588 2013-02-06 Jakub Jelinek <jakub@redhat.com>
32590 PR middle-end/56217
32591 * omp-low.c (use_pointer_for_field): Return false if
32592 lower_send_shared_vars doesn't generate any copy-out code.
32594 2013-02-06 Tom de Vries <tom@codesourcery.com>
32596 PR rtl-optimization/56131
32597 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
32598 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
32599 of the label is NULL. Add comment.
32601 2013-02-05 Jakub Jelinek <jakub@redhat.com>
32603 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
32606 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
32607 (STATIC_LIBTSAN_LIBS): Likewise.
32608 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
32609 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
32610 is defined, don't add anything else beyond that.
32611 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
32612 (LINK_COMMAND_SPEC): Use them.
32614 PR tree-optimization/56205
32615 * tree-stdarg.c (check_all_va_list_escapes): Return true if
32616 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
32617 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
32619 2013-02-05 Richard Biener <rguenther@suse.de>
32621 PR tree-optimization/53342
32622 PR tree-optimization/53185
32623 * tree-vectorizer.h (vect_check_strided_load): Remove.
32624 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
32625 not disallow peeling for vectorized strided loads.
32626 (vect_check_strided_load): Make static and simplify.
32627 (vect_analyze_data_refs): Adjust.
32628 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
32629 correctly when vectorizing strided loads.
32631 2013-02-05 Richard Biener <rguenther@suse.de>
32633 * doc/install.texi: Refer to ISL, not PPL.
32635 2013-02-05 Jan Hubicka <jh@suse.cz>
32637 PR tree-optimization/55789
32638 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
32640 2013-02-05 Jan Hubicka <jh@suse.cz>
32642 PR tree-optimization/55789
32643 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
32644 the dead call anyway.
32646 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
32649 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
32651 2013-02-04 Alexander Potapenko <glider@google.com>
32652 Jack Howarth <howarth@bromo.med.uc.edu>
32653 Jakub Jelinek <jakub@redhat.com>
32656 * config/darwin.c (sort_ctor_records): Stabilized qsort
32657 on constructor priority by using original position.
32658 (finalize_ctors): New routine to sort constructors by
32659 priority before use in assemble_integer.
32660 (machopic_asm_out_constructor): Use finalize_ctors if needed.
32662 2013-02-04 Jakub Jelinek <jakub@redhat.com>
32665 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
32666 about visibility on artificial decls.
32667 * config/sol2.c (solaris_assemble_visibility): Likewise.
32669 2013-02-04 Kai Tietz <ktietz@redhat.com>
32672 * config/i386/i386.c (function_value_ms_64): Add additional valtype
32673 argument and improve checking of return-argument types for 16-byte
32675 (ix86_function_value_1): Add additional valtype argument on call
32676 of function_value_64.
32677 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
32678 handling infunction_value_64 function.
32680 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
32682 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
32684 2013-02-04 Richard Biener <rguenther@suse.de>
32686 PR tree-optimization/56188
32687 * tree-ssa-structalias.c (label_visit): Consider case with
32688 initially non-empty points-to set.
32689 (perform_var_substitution): Dump node mapping and clean up.
32691 2013-02-04 Richard Guenther <rguenther@suse.de>
32694 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
32695 node prevail as last resort.
32696 (lto_symtab_merge_decls): Remove guard on LTRANS here.
32697 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
32699 2013-02-04 Richard Biener <rguenther@suse.de>
32701 PR tree-optimization/56113
32702 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
32704 (equiv_class_lookup_or_add): ... this.
32705 (label_visit): Adjust and fix error in previous patch.
32706 (perform_var_substitution): Adjust.
32708 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
32710 * config/sh/divtab.c: Fix formatting and comments throughout the file.
32711 * config/sh/sh4-300.md: Likewise.
32712 * config/sh/sh4a.md: Likewise.
32713 * config/sh/constraints.md: Likewise.
32714 * config/sh/sh.md: Likewise.
32715 * config/sh/netbsd-elf.h: Likewise.
32716 * config/sh/predicates.md: Likewise.
32717 * config/sh/sh-protos.h: Likewise.
32718 * config/sh/ushmedia.h: Likewise.
32719 * config/sh/linux.h: Likewise.
32720 * config/sh/sh.c: Likewise.
32721 * config/sh/superh.h: Likewise.
32722 * config/sh/elf.h: Likewise.
32723 * config/sh/sh4.md: Likewise.
32724 * config/sh/sh.h: Likewise.
32726 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32728 * config/pa/constraints.md: Adjust unused letters. Change "T"
32729 constraint to match_test floating_point_store_memory_operand().
32730 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
32731 (base14_operand): New.
32732 (floating_point_store_memory_operand): New.
32733 (integer_store_memory_operand): Revise to use base14_operand and
32734 reg_plus_base_memory_operand.
32735 (move_dest_operand): Allow symbolic_memory_operands.
32736 (symbolic_memory_operand): Check for LO_SOM.
32737 (symbolic_operand): Change default case to break.
32738 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
32739 CONST_DOUBLE values to be reloaded by putting them into memory when
32740 the destination is a floating point register.
32741 (movdf): Remove code to handle CONST_DOUBLE.
32743 (reload_indf_r1): New.
32744 (reload_insf_r1): New.
32745 Consistently use "Q" and "T" constraints with integer and floating
32746 point move instructions, respectively.
32747 (movdi): Remove FAIL.
32748 Change predicate for source operand unamed DImode move from
32749 general_operand to move_src_operand.
32750 (umulsidi3): Change predicate for destination operand to
32752 Likewise for similar unamed patterns.
32753 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
32754 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
32755 (hppa_legitimize_address): Simplify mask calculation.
32756 (pa_emit_move_sequence): Revised handling of secondary reloads from
32757 REG+D addresses for floating point loads and stores. Directly handle
32758 loading CONST0_RTX (mode) to a floating point register.
32759 (pa_secondary_reload): Handle reloading DF and SFmode constant values
32760 to floating point registers. Don't restrict secondary reloads to
32761 floating point registers to integer modes. Revise some comments and
32763 (TARGET_LEGITIMATE_ADDRESS_P): Define.
32764 (pa_legitimate_address_p): New.
32765 (pa_legitimize_reload_address): New.
32766 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
32767 (STRICT_REG_OK_FOR_BASE_P): New.
32768 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
32769 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
32771 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
32772 Andrew Dixie <andrewd@gentrack.com>
32774 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
32777 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
32779 * expmed.c (extract_bit_field_1): Pass the full width of the
32780 structure to get_best_reg_extraction_insn.
32782 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
32785 * configure.ac (use_cxa_atexit): Add AIX.
32786 * configure: Regenerate.
32788 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
32790 2013-02-01 Jakub Jelinek <jakub@redhat.com>
32793 * final.c (need_profile_function): New variable.
32794 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
32795 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
32796 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
32797 notes, targetm.asm_out.function_prologue doesn't emit anything,
32798 HAVE_prologue and profiler should be emitted before prologue,
32799 set need_profile_function instead of emitting it.
32800 (final_scan_insn): If need_profile_function, emit
32801 profile_function on the first NOTE_INSN_BASIC_BLOCK or
32802 NOTE_INSN_FUNCTION_BEG note.
32804 2013-02-01 Richard Henderson <rth@redhat.com>
32806 * config/rs6000/rs6000.md (smulditi3): New.
32809 * config/alpha/alpha.md (umulditi3): New.
32811 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
32813 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
32814 (ASM_OUTPUT_ALIGNED_LOCAL): New.
32816 2013-02-01 Richard Biener <rguenther@suse.de>
32818 PR tree-optimization/56113
32819 * tree-ssa-structalias.c (label_visit): Reduce work for
32820 single-predecessor nodes.
32822 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
32824 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
32825 range isn't testing for zero.
32827 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
32829 PR middle-end/56113
32830 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
32832 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
32833 Nick Clifton <nickc@redhat.com>
32835 * config/v850/constraints.md (Q): Define as a memory constraint.
32836 * config/v850/predicates.md (label_ref_operand): New predicate.
32837 (e3v5_shift_operand): New predicate.
32838 (ior_operator): New predicate.
32839 * config/v850/t-v850: Add e3v5 multilib.
32840 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
32841 (v850_gen_movdi): Prototype.
32842 * config/v850/v850.c: Add support for e3v5 architecture.
32843 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
32845 (construct_save_jarl): Add e3v5 long JARL support.
32846 (v850_adjust_insn_length): New function. Adjust length of call
32847 insns when using e3v5 instructions.
32848 (v850_gen_movdi): New function: Generate instructions to move a
32850 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
32851 (CPP_SPEC): Define __v850e3v5__ as appropriate.
32852 (TARGET_USE_FPU): Enable for e3v5.
32853 (CONST_OK_FOR_W): New macro.
32854 (ADJUST_INSN_LENGTH): Define.
32855 * config/v850/v850.md (UNSPEC_LOOP): Define.
32856 (attr cpu): Add v850e3v5.
32857 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
32858 (movdi): New pattern.
32859 (movdi_internal): New pattern.
32860 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
32861 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
32862 (cstoresf4): Likewise.
32863 (cstoredf4): Likewise.
32864 (insv): New pattern.
32865 (rotlso3_a): New pattern.
32866 (rotlsi3_b): New pattern
32867 (rotlsi3_v850e3v5): New pattern.
32868 (doloop_begin): New pattern.
32869 (fix_loop_counter): New pattern.
32870 (doloop_end): New pattern.
32871 (branch_normal): Add e3v5 long branch support.
32872 (branch_invert): Likewise.
32873 (branch_z_normal): Likewise.
32874 (branch_z_invert): Likewise.
32875 (branch_nz_normal): Likewise.
32876 (branch_nz_invert): Likewise.
32877 (call_internal_short): Add e3v5 register-indirect JARL support.
32878 (call_internal_long): Likewise.
32879 (call_value_internal_short): Likewise.
32880 (call_value_internal_long): Likewise.
32881 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
32882 (mloop): New option.
32883 * config.gcc: Add support for configuring v840e3v5 target.
32884 * doc/invoke.texi: Document new v850 specific command line options.
32886 2013-01-31 Paul Koning <ni1d@arrl.net>
32890 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
32891 children if parent is a class.
32892 (prune_unused_types_prune): Don't add DW_AT_declaration.
32894 2013-01-31 Richard Biener <rguenther@suse.de>
32896 PR tree-optimization/56157
32897 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
32898 match up operand with SLP child.
32900 2013-01-31 Jason Merrill <jason@redhat.com>
32903 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
32904 parameters the first time.
32905 (gen_scheduled_generic_parms_dies): Check completeness here.
32907 2013-01-31 Richard Biener <rguenther@suse.de>
32909 PR middle-end/53073
32910 * common.opt (faggressive-loop-optimizations): New flag,
32911 enabled by default.
32912 * doc/invoke.texi (faggressive-loop-optimizations): Document.
32913 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
32914 infer_loop_bounds_from_undefined by it.
32916 2013-01-31 Richard Biener <rguenther@suse.de>
32918 PR tree-optimization/56150
32919 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
32920 visit virtual operands.
32921 (find_uses_to_rename_bb): Likewise.
32923 2013-01-31 Richard Biener <rguenther@suse.de>
32925 PR tree-optimization/56150
32926 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
32927 mixed store non-store stmts.
32929 2013-01-30 Jakub Jelinek <jakub@redhat.com>
32932 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
32933 LIBASAN_EARLY_SPEC is defined.
32934 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
32935 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
32937 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
32940 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
32941 invalid args instead of ICEing on it.
32942 (ix86_valid_target_attribute_tree): Return error_mark_node if
32943 ix86_valid_target_attribute_inner_p failed.
32944 (ix86_valid_target_attribute_p): Return false only if
32945 ix86_valid_target_attribute_tree returned error_mark_node. Allow
32946 target("default") attribute.
32947 (sorted_attr_string): Change argument from const char * to tree,
32948 merge in all target attribute arguments rather than just one.
32949 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
32950 instead of free. Avoid using strcat.
32951 (ix86_mangle_function_version_assembler_name): Mangle
32952 target("default") as if no target attribute is present. Adjust
32953 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
32954 instead of xmalloc and XDELETEVEC instead of free.
32955 (ix86_function_versions): Don't return true if one of the decls
32956 doesn't have target attribute. If they don't and one of the decls
32957 is DECL_FUNCTION_VERSIONED, report an error. Adjust
32958 sorted_attr_string caller. Use XDELETEVEC instead of free.
32959 (ix86_supports_function_versions): Remove.
32960 (make_name): Fix up formatting.
32961 (make_dispatcher_decl): Remove resolver_name and its initialization.
32962 Avoid leaking memory.
32963 (is_function_default_version): Return true if there is
32964 target("default") attribute rather than no target attribute at all.
32965 (make_resolver_func): Avoid leaking memory.
32966 (ix86_generate_version_dispatcher_body): Likewise.
32967 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
32968 * target.def (supports_function_versions): Remove.
32969 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
32970 * doc/tm.texi: Regenerated.
32972 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
32974 PR rtl-optimization/56144
32975 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
32976 for values with side effects.
32978 2013-01-30 Richard Biener <rguenther@suse.de>
32980 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
32981 (sparseset_pop): Likewise.
32982 * cfganal.c (compute_idf): Likewise. Increase work-stack size
32983 to be able to use quick_push in the worker loop.
32985 2013-01-30 Marek Polacek <polacek@redhat.com>
32987 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
32989 2013-01-30 Richard Biener <rguenther@suse.de>
32992 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
32994 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
32996 PR tree-optimization/56064
32997 * fixed-value.c (fixed_from_double_int): New function.
32998 * fixed-value.h (fixed_from_double_int): New prototype.
32999 (const_fixed_from_double_int): New static inline function.
33000 * fold-const.c (native_interpret_fixed): New static function.
33001 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
33002 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
33003 (native_encode_fixed): New static function.
33004 (native_encode_expr) <FIXED_CST>: Use it.
33005 (native_interpret_int): Move double_int worker code to...
33006 * double-int.c (double_int::from_buffer): ...this new static method.
33007 * double-int.h (double_int::from_buffer): Prototype it.
33009 2013-01-30 Richard Biener <rguenther@suse.de>
33011 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
33012 New pointer-map and obstack.
33013 (init_alias_vars): Allocate pointer-map and obstack.
33014 (delete_points_to_sets): Free them.
33015 (find_what_var_points_to): Cache result.
33016 (find_what_p_points_to): Adjust for changed interface of
33017 find_what_var_points_to.
33018 (compute_points_to_sets): Likewise.
33019 (ipa_pta_execute): Likewise.
33021 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33023 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
33024 * configure: Regenerate.
33025 * config.in: Regenerate.
33026 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
33027 #nobits/#progbits if supported.
33029 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
33032 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
33033 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
33034 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
33036 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
33038 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
33039 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
33041 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
33043 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
33044 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
33046 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
33048 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
33050 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
33051 * config/arm/cortex-a7.md: New bypasses using
33052 arm_mac_accumulator_is_result.
33054 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
33056 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
33057 (cortex_a7_neon_mla): Likewise.
33058 (cortex_a7_fpfmad): New reservation.
33059 (cortex_a7_fpmacs): Use ffmas and update required units.
33060 (cortex_a7_fpmuld): Update required units and latency.
33061 (cortex_a7_fpmacd): Likewise.
33062 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
33063 (cortex_a7_neon). Likewise.
33064 (bypass) Update participating units.
33066 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
33068 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
33069 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
33071 * config/arm/vfp11.md (vfp_farith): Use ffmas.
33072 (vfp_fmul): Use ffmad.
33073 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
33074 (cortex_r4_fmacd): Use ffmad.
33075 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
33076 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
33077 (cortex_a9_fmacd): Use ffmad.
33078 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
33079 (cortex_a8_vfp_macd): Use ffmad.
33080 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
33081 (cortex_a5_fpmacd): Use ffmad.
33082 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
33083 (cortex_a15_vfp_macd): Use ffmad.
33084 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
33086 2013-01-29 Jason Merrill <jason@redhat.com>
33089 * varasm.c (default_assemble_visibility): Don't warn about
33090 visibility on artificial decls.
33092 2013-01-29 Richard Biener <rguenther@suse.de>
33094 PR tree-optimization/56113
33095 * tree-ssa-structalias.c (equiv_class_lookup): Also return
33097 (label_visit): Free duplicate bitmaps and record the leader instead.
33098 (perform_var_substitution): Adjust.
33100 2013-01-29 Richard Biener <rguenther@suse.de>
33102 PR tree-optimization/55270
33103 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
33104 the CFG, schedule loops for fixup.
33106 2013-01-29 Nick Clifton <nickc@redhat.com>
33108 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
33111 2013-01-28 Leif Ekblad <leif@rdos.net>
33113 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
33114 * config/i386/i386.h (TARGET_RDOS): New macro.
33115 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
33116 * config/i386/i386.c (ix86_option_override_internal): For 64bit
33117 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
33118 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
33119 DEFAULT_LARGE_SECTION_THRESHOLD.
33120 * config/i386/i386.md (R14_REG, R15_REG): New constants.
33121 * config/i386/rdos.h: New file.
33122 * config/i386/rdos64.h: New file.
33124 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
33127 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
33130 2013-01-28 Jakub Jelinek <jakub@redhat.com>
33132 PR rtl-optimization/56117
33133 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
33134 call cselib_lookup_from_insn on the MEM before calling
33135 add_insn_mem_dependence.
33137 2013-01-28 Richard Biener <rguenther@suse.de>
33139 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
33140 to a stmt that didn't have one.
33141 (copy_phis_for_bb): Likewise for PHI arguments.
33142 (copy_debug_stmt): Likewise for debug stmts.
33144 2013-01-28 Richard Biener <rguenther@suse.de>
33146 PR tree-optimization/56034
33147 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
33148 (partition_builtin_p): Adjust.
33149 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
33150 it is the last partition.
33151 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
33152 up the vertex for the definition.
33153 (classify_partition): Classify whether a partition is a
33154 PKIND_REDUCTION, thus has uses outside of the loop.
33155 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
33156 Merge all PKIND_REDUCTION partitions into the last partition.
33157 (tree_loop_distribution): Seed partitions from reductions as well.
33159 2013-01-28 Jakub Jelinek <jakub@redhat.com>
33161 PR tree-optimization/56125
33162 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
33163 pow(x,c) into sqrt(x) * powi(x, n/2) or
33164 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
33165 optimizing for size.
33166 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
33167 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
33170 PR tree-optimization/56094
33171 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
33172 to UNKNOWN_LOCATION while gimplifying expr.
33174 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
33177 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
33178 operand 0 in movabs insn template for -masm=intel asm alternative.
33179 (*movabs<mode>_2): Ditto for operand 1.
33181 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
33184 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
33187 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
33189 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
33192 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
33194 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
33195 Undef to avoid warning.
33197 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
33199 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
33200 * configure: Regenerate.
33202 2013-01-25 Jakub Jelinek <jakub@redhat.com>
33204 PR tree-optimization/56098
33205 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
33206 for stmts with volatile ops.
33207 (cond_store_replacement): Don't optimize if assign has volatile ops.
33208 (cond_if_else_store_replacement_1): Don't optimize if either
33209 then_assign or else_assign have volatile ops.
33210 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
33213 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
33215 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
33217 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
33219 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
33220 missing ':' in asm example.
33222 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
33224 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
33225 entries into lane and laneq entries.
33226 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
33227 Remove AdvSIMD scalar modes.
33228 (aarch64_sq<r>dmulh_laneq<mode>): New.
33229 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
33231 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
33232 builtin implementations to relfect changes in RTL in aarch64-simd.md.
33233 * config/aarch64/iterators.md (VCOND): New.
33236 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
33239 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
33240 Add NULL LIBNAME argument to existing definitions.
33241 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
33242 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
33243 * config/avr/avr.c (DEF_BUILTIN): Same.
33244 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
33245 (avr_expand_builtin): Expand to a vanilla call if a libgcc
33246 implementation is available (DECL_ASSEMBLER_NAME is set).
33247 (avr_fold_absfx): New static function.
33248 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
33249 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
33250 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
33251 AVR_BUILTIN_ABSLLK.
33252 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
33253 (abshk, absk, abslk, absllk): Provide as static inline functions.
33255 2013-01-25 Marek Polacek <polacek@redhat.com>
33257 PR tree-optimization/56035
33258 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
33260 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
33262 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
33263 (*movtf_internal_rex64): Add (!o,C) alternative
33264 (*movxf_internal_rex64): Ditto.
33265 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
33267 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
33269 * doc/invoke.texi: fix typo.
33270 * doc/objc.texi: fix typo.
33272 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
33274 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
33275 for the first two alternatives.
33277 2013-01-24 Diego Novillo <dnovillo@google.com>
33279 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
33280 (ggc-zone.o): Remove.
33281 * configure.ac: Remove option --with-gc.
33282 * configure: Re-generate.
33283 * doc/install.texi: Remove documentation for --with-gc.
33284 * gengtype.c (write_enum_defn): Remove. Update all users.
33285 (write_Types_process_field): Remove generation of gt_e_* argument.
33286 (output_type_enum): Remove. Update all users.
33287 (write_enum_defn): Remove. Update all users.
33288 (enum alloc_zone): Remove. Update all users.
33289 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
33290 * ggc-common.c (ggc_splay_alloc): Remove first argument.
33291 Update all callers.
33292 (struct ptr_data): Remove field TYPE. Update all users.
33293 (gt_pch_note_object): Remove argument TYPE. Update all users.
33294 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
33296 * ggc-none.c (ggc_alloc_typed_stat): Remove.
33297 (struct alloc_zone): Remove.
33298 (ggc_internal_alloc_zone_stat): Remove.
33299 (ggc_internal_cleared_alloc_zone_stat): Remove.
33300 * ggc-page.c (ggc_alloc_typed_stat): Remove.
33301 (ggc_pch_count_object): Remove last argument. Update all users.
33302 (ggc_pch_alloc_object): Remove last argument. Update all users.
33303 (struct alloc_zone): Remove.
33304 * ggc-zone.c: Remove.
33305 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
33306 (struct alloc_zone): Remove.
33307 (ggc_alloc_typed_stat): Remove.
33308 (ggc_alloc_typed): Remove.
33309 (ggc_splay_alloc): Remove first argument.
33310 (rtl_zone): Remove. Update all users.
33311 (tree_zone): Remove. Update all users.
33312 (tree_id_zone): Remove. Update all users.
33313 (ggc_internal_zone_alloc_stat): Remove. Update all users.
33314 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
33315 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
33316 * tree-ssanames.c: Remove references to zone allocator in comments.
33318 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
33320 * config/avr/avr.c (avr_out_fract): Make register numbers that
33321 might be outside of source operand signed.
33323 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
33325 * config/i386/constraints.md (Yf): New constraint.
33326 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
33327 of f constraint to conditionaly disable x87 register preferences.
33328 (*movdf_internal): Ditto.
33329 (*movsf_internal): Ditto.
33331 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
33333 PR inline-asm/55934
33334 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
33335 that have operands with impossible constraints.
33336 Add a FIXME for a speed-up opportunity.
33337 * lra-constraints.c (process_alt_operands): Verify that a class
33338 selected from constraints on asms is valid for the operand mode.
33339 (curr_insn_transform): Remove incorrect comment.
33341 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
33343 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
33344 TOC operand is a valid symbol ref in the constant pool.
33346 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
33348 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
33350 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
33353 * config/avr/stdfix.h: New file.
33354 * t-avr (stdfix-gcc.h): New rule to build it.
33355 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
33357 2013-01-23 Kostya Serebryany <kcc@google.com>
33359 * config/darwin.h: remove dependency on
33360 CoreFoundation (asan on Mac OS).
33362 2013-01-23 Jakub Jelinek <jakub@redhat.com>
33365 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
33366 instead of cmpdi_operand for first comparison operand.
33367 Don't assert that comparison operands aren't both constants.
33369 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
33371 * doc/install.texi (Downloading the Source): Update references to
33372 downloading separate components.
33374 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
33376 * doc/extend.texi (__int128): Improve grammar.
33378 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
33381 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
33382 alternative to (o,r).
33383 (*movdi_internal_rex64): Remove (!o,n) alternative.
33384 (DImode immediate->memory splitter): Remove.
33385 (DImode immediate->memory peephole2): Remove.
33386 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
33387 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
33388 alternative to (!o,*r).
33389 (*movtf_internal_sse): New pattern.
33390 (*movxf_internal_rex64): New pattern.
33391 (*movxf_internal): Disable for TARGET_64BIT.
33392 (*movdf_internal_rex64): Remove (!o,F) alternative.
33394 2013-01-22 Jakub Jelinek <jakub@redhat.com>
33396 PR middle-end/56074
33397 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
33398 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
33399 * tree-vect-loop-manip.c (find_loop_location): Also ignore
33400 stmt locations where LOCATION_LOCUS of the stmt location is
33401 UNKNOWN_LOCATION or BUILTINS_LOCATION.
33404 * config/i386/i386.md (UNSPEC_STOS): New.
33405 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
33406 *strsetqi_1): Add UNSPEC_STOS.
33408 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
33411 * doc/invoke.texi: Remove left over -Wsynth example.
33413 2013-01-21 Jakub Jelinek <jakub@redhat.com>
33415 PR tree-optimization/56051
33416 * fold-const.c (fold_binary_loc): Don't fold
33417 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
33418 a narrowing conversion, or widening conversion from signed
33421 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
33423 PR rtl-optimization/56023
33424 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
33425 dependent on debug instruction.
33427 2013-01-21 Martin Jambor <mjambor@suse.cz>
33429 PR middle-end/56022
33430 * function.c (allocate_struct_function): Call
33431 invoke_set_current_function_hook earlier.
33433 2013-01-21 Jakub Jelinek <jakub@redhat.com>
33435 * reload1.c (init_reload): Only initialize reload_obstack
33436 during the first call.
33438 2013-01-21 Marek Polacek <polacek@redhat.com>
33440 * cfgloop.c (verify_loop_structure): Fix up grammar.
33442 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
33444 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
33445 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
33447 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33450 * config/arm/marvell-pj4.md: Update copyright year.
33451 Fix up use of alu to alu_reg and simple_alu_imm.
33453 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
33455 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
33457 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
33460 * lra-constraints.c (curr_insn_transform): Don't reuse original
33461 insn for secondary memory move when memory mode should be different.
33463 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33465 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
33466 atomic_storedi_1): New patterns.
33468 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
33470 btver2 pipeline descriptions.
33471 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
33473 * config/i386/i386.md (btver2_decode): New type attributes.
33474 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
33476 * config/i386/btver2.md: New file describing btver2 pipelines.
33478 2013-01-19 Andrew Pinski <apinski@cavium.com>
33480 PR tree-optimization/52631
33481 * tree-ssa-sccvn (visit_use): Before looking up the original
33482 statement, try looking up the simplified expression.
33484 2013-01-19 Anthony Green <green@moxielogic.com>
33486 * config/moxie/moxie.c (moxie_expand_prologue): Set
33487 current_function_static_stack_size.
33489 2013-01-18 Jakub Jelinek <jakub@redhat.com>
33491 PR tree-optimization/56029
33492 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
33493 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
33495 2013-01-18 Sharad Singhai <singhai@google.com>
33497 PR tree-optimization/55995
33498 * dumpfile.c (dump_loc): Print location only if available.
33499 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
33501 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
33504 * lra-constraints.c (curr_insn_transform): Reuse original insn for
33505 secondary memory move.
33506 (inherit_reload_reg): Use rclass instead of cl for
33507 check_secondary_memory_needed_p.
33509 2013-01-18 Jakub Jelinek <jakub@redhat.com>
33511 PR middle-end/56015
33512 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
33513 the case where writing real complex part of target modifies op1.
33515 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
33517 * config/aarch64/aarch64-simd.md
33518 (aarch64_vcond_internal<mode>): Handle unordered cases.
33519 * config/aarch64/iterators.md (v_cmp_result): New.
33521 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
33522 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33524 * config/arm/marvell-pj4.md: New file.
33525 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
33526 * config/arm/arm.md (generic_sched): Add marvell_pj4.
33527 (generic_vfp): Likewise.
33528 * config/arm/arm-cores.def: Add marvell-pj4.
33529 * config/arm/arm-tune.md: Regenerate.
33530 * config/arm/arm-tables.opt: Regenerate.
33531 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
33532 * doc/invoke.texi: Document marvell-pj4.
33534 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
33536 * config/aarch64/arm_neon.h: Map scalar types to standard types.
33538 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
33543 * var-tracking.c (negative_power_of_two_p): New.
33544 (global_get_addr_cache, local_get_addr_cache): New.
33545 (get_addr_from_global_cache, get_addr_from_local_cache): New.
33546 (vt_canonicalize_addr): Rewrite using the above. Adjust the
33548 (vt_stack_offset_p): Remove.
33549 (vt_canon_true_dep): Always canonicalize loc's address.
33550 (clobber_overlapping_mems): Make sure we have a MEM.
33551 (local_get_addr_clear_given_value): New.
33552 (val_reset): Clear local cached entries.
33553 (compute_bb_dataflow): Create and release the local cache.
33554 Disable duplicate MEMs clobbering.
33555 (emit_notes_in_bb): Clobber MEMs likewise.
33556 (vt_emit_notes): Create and release the local cache.
33557 (vt_initialize, vt_finalize): Create and release the global
33558 cache, respectively.
33559 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
33561 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
33563 PR libmudflap/53359
33564 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
33565 not found in the symtab.
33567 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
33570 PR rtl-optimization/55547
33571 PR rtl-optimization/53827
33574 * alias.c (offset_overlap_p): New, factored out of...
33575 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
33576 the conservative special case for symbolic constants. Don't
33577 adjust zero sizes on alignment.
33579 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
33581 PR rtl-optimization/52573
33582 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
33583 REG_UNUSED for the same register.
33585 2013-01-17 Richard Biener <rguenther@suse.de>
33586 Marek Polacek <polacek@redhat.com>
33588 PR rtl-optimization/55833
33589 * loop-unswitch.c (unswitch_loops): Move loop verification...
33590 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
33591 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
33592 Set it to true when we're removing a loop from hierarchy tree in
33593 an irreducible region.
33594 (fix_bb_placements): Adjust caller.
33595 (fix_loop_placements): Likewise.
33597 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
33599 * config/avr/builtins.def (DEF_BUILTIN): Factor out
33600 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
33601 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
33602 Remove ID. Adjust comments.
33603 * config/avr/avr-c.c (avr_builtin_name): Remove.
33604 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
33605 * config/avr/avr.c (avr_tolower): New static function.
33606 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
33607 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
33608 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
33611 2013-01-17 Jan Hubicka <jh@suse.cz>
33613 PR tree-optimization/55273
33614 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
33616 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
33619 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
33620 store through atomic_store<mode>_1.
33621 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
33623 2013-01-17 Martin Jambor <mjambor@suse.cz>
33625 PR tree-optimizations/55264
33626 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
33627 for virtual methods.
33628 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
33629 virtual methods before inlining is over.
33630 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
33632 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
33635 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
33637 PR rtl-optimization/56005
33638 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
33639 pending reads for prefetch.
33641 2013-01-16 Ian Bolton <ian.bolton@arm.com>
33643 * config/aarch64/aarch64.md
33644 (*cstoresi_neg_uxtw): New pattern.
33645 (*cmovsi_insn_uxtw): New pattern.
33646 (*<optab>si3_uxtw): New pattern.
33647 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
33648 (*<optab>si3_insn_uxtw): New pattern.
33649 (*bswapsi2_uxtw): New pattern.
33651 2013-01-16 Richard Biener <rguenther@suse.de>
33653 * tree-inline.c (tree_function_versioning): Remove set but
33654 never used variable.
33656 2013-01-16 Richard Biener <rguenther@suse.de>
33658 PR tree-optimization/55964
33659 * tree-flow.h (rename_variables_in_loop): Remove.
33660 (rename_variables_in_bb): Likewise.
33661 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
33662 (copy_loop_before): Adjust and delete update-ssa status.
33663 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
33664 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
33665 (rename_variables_in_loop): Remove.
33666 (slpeel_update_phis_for_duplicate_loop): Likewise.
33667 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
33668 use available cfg machinery instead of duplicating it.
33669 Update PHI nodes and perform poor-mans SSA update here.
33670 (slpeel_tree_peel_loop_to_edge): Adjust.
33672 2013-01-16 Richard Biener <rguenther@suse.de>
33674 PR tree-optimization/54767
33675 PR tree-optimization/53465
33676 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
33677 (vrp_visit_phi_node): For PHI arguments coming via backedges
33678 drop all symbolical range information.
33679 (execute_vrp): Compute backedges.
33681 2013-01-16 Richard Biener <rguenther@suse.de>
33683 * doc/install.texi: Update CLooG and ISL requirements to
33686 2013-01-16 Christian Bruel <christian.bruel@st.com>
33689 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
33690 (broken_move): Handle UNSPECV_SP_SWITCH_B.
33691 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
33693 2013-01-16 DJ Delorie <dj@redhat.com>
33695 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
33696 (UNSPECV_SP_SWITCH_E): New.
33697 (sp_switch_1): Change to an unspec.
33698 (sp_switch_2): Change to an unspec. Don't use post-inc when we
33701 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
33703 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
33704 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
33705 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
33706 (expand_mem_thread_fence): Ditto.
33707 (expand_mem_signal_fence): Ditto.
33708 (expand_atomic_load): Ditto.
33709 (expand_atomic_store): Ditto.
33711 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
33713 PR rtl-optimization/55547
33714 PR rtl-optimization/53827
33717 * alias.c (memrefs_conflict_p): Set sizes to negative after
33720 2013-01-15 Jakub Jelinek <jakub@redhat.com>
33723 * function.c (thread_prologue_and_epilogue_insns): Always
33724 add crtl->drap_reg to set_up_by_prologue.set, even if
33725 stack_realign_drap is false.
33727 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
33729 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
33730 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
33731 *call): Fix indention.
33733 2013-01-15 Tom de Vries <tom@codesourcery.com>
33736 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
33739 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
33741 PR rtl-optimization/55153
33742 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
33744 2013-01-15 Martin Jambor <mjambor@suse.cz>
33746 PR tree-optimization/55920
33747 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
33748 accesses as grp_to_be_debug_replaced.
33750 2013-01-15 Jakub Jelinek <jakub@redhat.com>
33752 PR tree-optimization/55920
33753 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
33754 there is non-useless type conversion needed from debug rhs to lhs,
33755 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
33757 2013-01-15 Joseph Myers <joseph@codesourcery.com>
33758 Mikael Pettersson <mikpe@it.uu.se>
33761 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
33763 (ASM_OUTPUT_CASE_LABEL): Remove.
33764 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
33765 * final.c (shorten_branches): Update alignment of labels before
33766 jump tables if CASE_VECTOR_SHORTEN_MODE.
33768 2013-01-15 Richard Biener <rguenther@suse.de>
33771 * system.h: Do not include gmp.h for building host tools.
33773 2013-01-15 Richard Biener <rguenther@suse.de>
33775 PR middle-end/55882
33776 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
33777 account for bitpos when computing alignment.
33779 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
33781 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
33782 (ix86_target_macros_internal): Likewise.
33784 * config/i386/i386.c (m_CORE2I7): Removed.
33785 (m_CORE_HASWELL): New macro.
33786 (m_CORE_ALL): Likewise.
33787 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
33788 (initial_ix86_arch_features): Likewise.
33789 (processor_target_table): Initializations for Core avx2.
33790 (cpu_names): New names "core-avx2".
33791 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
33792 PROCESSOR_CORE_HASWELL.
33793 (ix86_issue_rate): New case.
33794 (ia32_multipass_dfa_lookahead): Likewise.
33795 (ix86_sched_init_global): Likewise.
33797 * config/i386/i386.h (TARGET_HASWELL): New macro.
33798 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
33799 (processor_type): New PROCESSOR_HASWELL.
33801 2013-01-15 Jakub Jelinek <jakub@redhat.com>
33803 PR tree-optimization/55955
33804 * tree-vect-loop.c (vectorizable_reduction): Give up early on
33805 *SHIFT_EXPR and *ROTATE_EXPR codes.
33807 PR tree-optimization/48766
33808 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
33809 -ftrapv disable -fwrapv.
33811 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
33814 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
33815 etc. to 1 and not to __flash.
33816 Use LL suffix for __INT24_MAX__ with -mint8.
33817 Use ULL suffix for __UINT24_MAX__ with -mint8.
33819 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
33821 * config/avr/avr-arch.h
33822 (struct base_arch_s): Use typedef avr_arch_t instead.
33823 (struct arch_info_s): Use typedef avr_arch_info_t instead.
33824 (struct mcu_type_s): Use typedef avr_mcu_t instead.
33825 * config/avr/avr.c: Same.
33826 * config/avr/avr-devices.c: Same.
33827 * config/avr/driver-avr.c: Same.
33828 * config/avr/gen-avr-mmcu-texi.c: Same.
33829 * config/avr/avr-mcus.def: Adjust comment.
33831 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
33833 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
33834 * config/aarch64/iterators.md (VALLDI): New.
33836 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
33837 Andi Kleen <ak@linux.intel.com>
33840 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
33841 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
33844 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
33846 * config/avr/avr-stdint.h: Remove trailing blanks.
33847 * config/avr/avr-log.h: Same.
33848 * config/avr/avr-arch.h: Same.
33849 * config/avr/avr-devices.c: Same.
33850 * config/avr/avr-dimode.md: Same.
33851 * config/avr/predicates.md: Same.
33852 * config/avr/avr-c.c: Same. And fix typo.
33854 * config/avr/avr-protos.h: Same. And:
33855 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
33856 (init_cumulative_args): Rename to avr_init_cumulative_args.
33857 (expand_prologue): Rename to avr_expand_prologue.
33858 (expand_epilogue): Rename to avr_expand_epilogue.
33859 (adjust_insn_length): Rename to avr_adjust_insn_length.
33860 (notice_update_cc): Rename to avr_notice_update_cc.
33861 (final_prescan_insn): Rename to avr_final_prescan_insn.
33862 * config/avr/avr.c: Same.
33863 * config/avr/avr.h: Same.
33864 * config/avr/avr.md: Remove trailing blanks.
33865 (prologue): Use avr_expand_prologue.
33866 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
33868 2013-01-14 Richard Biener <rguenther@suse.de>
33870 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
33871 verify_location, collect_subblocks): New functions.
33872 (verify_gimple_in_cfg): Verify that locations only reference
33873 BLOCKs in the functions BLOCK tree.
33875 2013-01-14 Richard Biener <rguenther@suse.de>
33877 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
33879 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
33881 (insert_out_of_ssa_copy_on_edge): Likewise.
33882 (rewrite_close_phi_out_of_ssa): Likewise.
33883 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
33885 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
33886 propagated constants.
33887 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
33890 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
33892 * config/avr/avr-modes.def: Add GPL copyright notice.
33894 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
33896 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
33897 MEMMODEL_MASK to determine memory model.
33898 (atomic_store<mode>): Ditto from operands[2].
33899 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
33901 2013-01-13 Jakub Jelinek <jakub@redhat.com>
33904 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
33905 (fold_gimple_assign): Don't call unshare_expr here.
33906 (fold_ctor_reference): Call unshare_expr.
33908 2013-01-13 Terry Guo <terry.guo@arm.com>
33910 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
33911 * doc/fragments.texi: Document MULTILIB_REUSE.
33912 * gcc.c (multilib_reuse): New internal spec.
33913 (set_multilib_dir): Also search multilib from multilib_reuse.
33914 * genmultilib (tmpmultilib3): Refactor code.
33915 (tmpmultilib4): Ditto.
33916 (multilib_reuse): New multilib argument.
33918 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
33920 * Makefile.in: Update copyright.
33922 2013-01-12 Tom de Vries <tom@codesourcery.com>
33924 PR middle-end/55890
33925 * calls.c (expand_call): Check if arg_nr is valid.
33927 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
33929 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
33930 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
33931 documentation. Add missing '__' in front of
33932 __builtin_ia32_packssdw256.
33934 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33937 * config/s390/s390.c (s390_preferred_reload_class): Do not return
33938 NO_REGS for larl operands.
33939 (s390_reload_larl_operand): Use s390_load_address instead of
33942 2013-01-11 Richard Biener <rguenther@suse.de>
33944 * tree-cfg.c (verify_node_sharing_1): Split out from ...
33945 (verify_node_sharing): ... here.
33946 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
33948 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
33950 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
33951 Substitute TREECHECKING.
33952 * configure: Regenerate.
33953 * Makefile.in (TREECHECKING): New.
33955 2013-01-11 Richard Guenther <rguenther@suse.de>
33957 PR tree-optimization/44061
33958 * tree-vrp.c (extract_range_basic): Compute zero as
33959 value-range for __builtin_constant_p of function parameters.
33961 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
33963 Update copyright years.
33965 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
33967 PR rtl-optimization/55672
33968 * lra-eliminations.c (mark_not_eliminable): Permit addition with
33969 const to be eliminable.
33971 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
33973 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
33974 * configure: Regenerate.
33976 2013-01-10 Richard Biener <rguenther@suse.de>
33978 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
33980 2013-01-10 Richard Biener <rguenther@suse.de>
33983 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
33984 locations for virtual PHI arguments.
33985 (rewrite_update_phi_arguments): Likewise.
33987 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
33989 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
33992 2013-01-10 Jakub Jelinek <jakub@redhat.com>
33994 PR tree-optimization/55921
33995 * tree-complex.c (expand_complex_asm): New function.
33996 (expand_complex_operations_1): Call it for GIMPLE_ASM.
33998 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34001 * config/s390/s390.c (s390_symref_operand_p)
34002 (s390_loadrelative_operand_p): Merge the two functions.
34003 (s390_check_qrst_address, print_operand_address): Add parameters
34004 to s390_loadrelative_operand_p invokation.
34005 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
34006 (s390_reload_larl_operand, s390_secondary_reload): Use
34007 s390_loadrelative_operand_p instead of s390_symref_operand_p.
34008 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
34010 2013-01-09 Mike Stump <mikestump@comcast.net>
34012 * dse.c (record_store): Remove unnecessary assert.
34014 2013-01-09 Jan Hubicka <jh@suse.cz>
34016 PR tree-optimization/55569
34017 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
34018 * cfgloop.h (scale_loop_profile): Likewise.
34020 2013-01-09 Jan Hubicka <jh@suse.cz>
34023 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
34025 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
34027 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
34029 PR middle-end/55114
34030 * expr.h (maybe_emit_group_store): Declare.
34031 * expr.c (maybe_emit_group_store): New function.
34032 * builtins.c (expand_builtin_int_roundingfn): Call it.
34033 (expand_builtin_int_roundingfn_2): Likewise.
34035 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
34037 PR rtl-optimization/55829
34038 * lra-constraints.c (match_reload): Add code for absent output.
34039 (curr_insn_transform): Add code for reloads of matched inputs
34042 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
34044 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
34045 attribute of movddup insn to DF.
34046 (*vec_interleave_lowv2df): Ditto.
34047 (vec_dupv2df): Ditto.
34049 2013-01-09 Jan Hubicka <jh@suse.cz>
34051 PR tree-optimiation/55875
34052 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
34053 EVERY_ITERATION parameter.
34054 (number_of_iterations_exit): Check if exit is executed every iteration.
34055 (idx_infer_loop_bounds): Similarly here.
34056 (n_of_executions_at_most): Simplify
34057 to only test for cases where statement is dominated by the
34058 particular bound; handle correctly the "postdominance" test.
34059 (scev_probably_wraps_p): Use max loop iterations info
34060 as a global bound first.
34062 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
34063 Nick Clifton <nickc@redhat.com>
34065 * config/v850/v850.md (cbranchsf4): New pattern.
34066 (cstoresf4): New pattern.
34067 (cbranchdf4): New pattern.
34068 (cstoredf4): New pattern.
34069 (movsicc): Disallow floating point comparisons.
34070 (cmpsf_le_insn): Fix order of operators.
34071 (cmpsf_lt_insn): Likewise.
34072 (cmpsf_eq_insn): Likewise.
34073 (cmpdf_le_insn): Likewise.
34074 (cmpdf_lt_insn): Likewise.
34075 (cmpdf_eq_insn): Likewise.
34076 (cmpsf_ge_insn): Use LE comparison.
34077 (cmpdf_ge_insn): Likewise.
34078 (cmpsf_gt_insn): Use LT comparison.
34079 (cmpdf_gt_insn): Likewise.
34080 (cmpsf_ne_insn): Delete pattern.
34081 (cmpdf_ne_insn): Delete pattern.
34082 * config/v850/v850.c (v850_gen_float_compare): Use
34083 gen_cmpdf_eq_insn for NE comparison.
34084 (v850_float_z_comparison_operator)
34085 (v850_float_nz_comparison_operator): Move from here ...
34086 * config/v850/predicates.md: ... to here. Move GT and GE
34087 comparisons into v850_float_z_comparison_operator.
34088 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
34090 (v850_float_nz_comparison_operator): Likewise.
34092 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34094 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
34095 with calls to gen_insvsi/gen_insvdi.
34097 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
34099 * config/i386/i386.c (initial_ix86_tune_features): Set up
34100 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
34102 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
34103 Jakub Jelinek <jakub@redhat.com>
34105 PR tree-optimization/48189
34106 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
34107 If nitercst is 0, don't predict the exit edge.
34109 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
34111 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
34112 in asm_fprintf with reg_names.
34113 (aarch64_print_operand_address): Likewise.
34114 (aarch64_return_addr): Likewise.
34115 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
34117 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34119 * config/pa/pa.h (VAL_U6_BITS_P): Define.
34120 (INT_U6_BITS): Likewise.
34121 * config/pa/predicates.md (uint6_operand): New predicate.
34122 (shift5_operand, shift6_operand): Likewise.
34123 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
34125 (lshrdi3): Use shift6_operand.
34126 (shrpsi4, shrpdi4): New insn patterns.
34127 (extzv): Delete expander.
34128 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
34129 predicates in unamed zero extract patterns. Tighten common constraint.
34130 (extv): Delete expander.
34131 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
34132 predicates in unamed sign extract patterns. Tighten common constraint.
34133 (insv): Delete expander.
34134 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
34135 predicates in unamed insert patterns. Tighten common constraint.
34136 Change uint32_operand predicate to uint6_operand predicate in unamed
34137 DImode pattern to insert constant values of type 1...1xxxx.
34139 2013-01-04 Jan Hubicka <jh@suse.cz>
34141 PR tree-optimization/55823
34142 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
34145 2013-01-08 Jakub Jelinek <jakub@redhat.com>
34146 Uros Bizjak <ubizjak@gmail.com>
34148 PR rtl-optimization/55845
34149 * df-problems.c (can_move_insns_across): Stop scanning at
34150 volatile_insn_p source instruction or give up if
34151 across_from .. across_to range contains any volatile_insn_p
34154 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
34156 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
34157 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
34159 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
34160 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
34162 2013-01-08 Jakub Jelinek <jakub@redhat.com>
34165 * asan.c (asan_clear_shadow): New function.
34166 (asan_emit_stack_protection): Use it.
34168 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
34170 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
34171 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
34172 with tab instead of space.
34174 2013-01-08 Nick Clifton <nickc@redhat.com>
34176 * config/rl78/rl78.c (rl78_expand_prologue): Always select
34177 register bank 0 at the start of an interrupt handler.
34178 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
34181 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
34183 * config/aarch64/aarch64-simd.md
34184 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
34185 (aarch64_simd_bsl): Likewise.
34186 (aarch64_vcond_internal<mode>): Likewise.
34187 (vcond<mode><mode>): Likewise.
34188 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
34189 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
34191 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
34193 * config/aarch64/aarch64-builtins.c
34194 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
34196 2013-01-08 Martin Jambor <mjambor@suse.cz>
34199 * tree-sra.c (analyze_access_subtree): Return true also after
34200 potentially creating a debug-only replacement.
34202 2013-01-08 Jakub Jelinek <jakub@redhat.com>
34204 PR middle-end/55890
34205 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
34207 PR tree-optimization/54120
34208 * tree-vrp.c (range_fits_type_p): Don't allow
34209 src_precision < precision from signed vr to unsigned_p
34210 if vr->min or vr->max is negative.
34211 (simplify_float_conversion_using_ranges): Test can_float_p
34212 against CODE_FOR_nothing.
34214 2013-01-08 Jakub Jelinek <jakub@redhat.com>
34215 Richard Biener <rguenther@suse.de>
34217 PR middle-end/55851
34218 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
34219 types instead of just INTEGER_TYPE types.
34221 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
34223 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
34226 2013-01-07 Steve Ellcey <sellcey@mips.com>
34229 * config/mips/mips.opt: Change mad to mmad to match documentation.
34231 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
34234 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
34235 .progmemx.data now.
34237 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
34240 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
34241 (avr_addrspace_t): Add .section_name field.
34242 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
34244 (avr_addrspace): Same. Initialize .section_name. Remove last
34245 NULL entry. Put __memx into .progmemx.data.
34246 (progmem_section_prefix): Remove.
34247 (avr_asm_init_sections): No need to initialize progmem_section.
34248 (avr_asm_named_section): Use avr_addrspace[].section_name to get
34249 section name prefix.
34250 (avr_asm_select_section): Ditto. And use get_unnamed_section to
34251 retrieve the progmem section.
34252 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
34253 boundary to run over avr_addrspace[].
34254 (avr_register_target_pragmas): Ditto.
34256 2013-01-06 Jakub Jelinek <jakub@redhat.com>
34258 * varasm.c (output_constant_def_contents): For asan_protect_global
34259 protected strings, adjust DECL_ALIGN if needed, before testing for
34261 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
34262 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
34264 (output_object_block): For asan protected decls, emit asan padding
34265 after their contents.
34266 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
34267 (asan_finish_file): Test it here instead.
34269 2013-01-07 Nick Clifton <nickc@redhat.com>
34270 Matthias Klose <doko@debian.org>
34271 Doug Kwan <dougkwan@google.com>
34272 H.J. Lu <hongjiu.lu@intel.com>
34275 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
34277 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
34279 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
34281 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
34283 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
34285 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
34288 * doc/install.texi (Cross-Compiler-Specific Options): Document
34291 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
34293 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
34294 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
34295 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
34296 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
34297 vqmovun_high_s64): Fix source operand number and update copyright.
34299 2013-01-07 Richard Biener <rguenther@suse.de>
34301 PR middle-end/55890
34302 * gimple.h (gimple_call_builtin_p): New overload.
34303 * gimple.c (validate_call): New function.
34304 (gimple_call_builtin_p): Likewise.
34305 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
34306 Use gimple_call_builtin_p.
34307 (find_func_clobbers): Likewise.
34308 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
34309 (strlen_optimize_stmt): Likewise.
34311 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
34313 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
34314 (vld1q_dup_*): Likewise.
34315 (vld1_*): Likewise.
34316 (vld1q_*): Likewise.
34317 (vld1_lane_*): Likewise.
34318 (vld1q_lane_*): Likewise.
34320 2013-01-07 Richard Biener <rguenther@suse.de>
34322 * lto-streamer.h (LTO_minor_version): Bump to 2.
34324 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
34326 * config/aarch64/aarch64-protos.h
34327 (aarch64_const_double_zero_rtx_p): Rename to...
34328 (aarch64_float_const_zero_rtx_p): ...this.
34329 (aarch64_float_const_representable_p): New.
34330 (aarch64_output_simd_mov_immediate): Likewise.
34331 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
34332 move immediate case.
34333 * config/aarch64/aarch64.c
34334 (aarch64_const_double_zero_rtx_p): Rename to...
34335 (aarch64_float_const_zero_rtx_p): ...this.
34336 (aarch64_print_operand): Allow printing of new constants.
34337 (aarch64_valid_floating_const): New.
34338 (aarch64_legitimate_constant_p): Check for valid floating-point
34340 (aarch64_simd_valid_immediate): Likewise.
34341 (aarch64_vect_float_const_representable_p): New.
34342 (aarch64_float_const_representable_p): Likewise.
34343 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
34344 (aarch64_output_simd_mov_immediate): New.
34345 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
34346 (*movdf_aarch64): Likewise.
34347 * config/aarch64/constraints.md (Ufc): New.
34348 (Y): call aarch64_float_const_zero_rtx.
34349 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
34351 2013-01-07 Richard Biener <rguenther@suse.de>
34353 PR tree-optimization/55888
34354 PR tree-optimization/55862
34355 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
34356 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
34357 not if it is contained therein.
34359 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
34361 * config/avr/t-avr: Typo.
34363 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
34366 * config/avr/t-avr: Don't automatically rebuild
34367 $(srcdir)/config/avr/t-multilib
34368 $(srcdir)/config/avr/avr-tables.opt
34369 $(srcdir)/doc/avr-mmcu.texi
34370 (avr-mcus): New phony target to build them on request.
34371 (s-avr-mlib, s-avr-mmcu-texi): Remove.
34372 * avr/avr-mcus.def: Adjust comments.
34374 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
34376 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
34378 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
34380 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
34382 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
34384 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
34386 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
34388 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
34389 to generate profiling.
34390 * config/rs6000/aix64.h (LIB_SPEC): Same.
34392 2013-01-04 Andrew Pinski <apinski@cavium.com>
34394 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
34396 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
34398 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
34400 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
34402 (ix86_expand_move): Ditto.
34403 (ix86_zero_extend_to_Pmode): Ditto.
34404 (ix86_expand_call): Ditto.
34405 (ix86_expand_special_args_builtin): Ditto.
34406 (ix86_expand_builtin): Ditto.
34408 2013-01-04 Richard Biener <rguenther@suse.de>
34410 PR tree-optimization/55862
34411 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
34412 translating them through PHI nodes.
34414 2013-01-04 Martin Jambor <mjambor@suse.cz>
34416 PR tree-optimization/55755
34417 * tree-sra.c (sra_modify_assign): Do not check that an access has no
34418 children when trying to avoid producing a VIEW_CONVERT_EXPR.
34420 2013-01-04 Marek Polacek <polacek@redhat.com>
34422 PR middle-end/55859
34423 * opts.c (default_options_optimization): Clarify error message.
34425 2013-01-04 Richard Biener <rguenther@suse.de>
34427 PR middle-end/55863
34428 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
34431 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34434 * config/pa/pa.md (movsi): Revert previous change.
34435 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
34438 2013-01-03 Richard Henderson <rth@redhat.com>
34440 * config/i386/i386.c (ix86_expand_move): Always assign to op1
34441 after eliminating TLS symbols.
34443 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
34446 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
34447 * graphite-poly.c (debug_gmp_value): Likewise.
34449 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
34452 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
34453 selected code model, define __code_mode_small__, __code_model_medium__,
34454 __code_model_large__, __code_model_32__ or __code_model_kernel__.
34455 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
34456 xchg temporary register with %k. Declare temporary register as
34458 [__x86_64__]: For medium and large code models, preserve %rbx register.
34460 2013-01-03 Richard Biener <rguenther@suse.de>
34462 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
34463 (dump_subscript): Adjust.
34464 (finalize_ddr_dependent): Do not dump redundant info.
34465 (analyze_siv_subscript): Adjust.
34466 (subscript_dependence_tester): Likewise.
34467 (compute_affine_dependence): Likewise.
34469 2013-01-03 Richard Biener <rguenther@suse.de>
34472 2013-01-03 Richard Biener <rguenther@suse.de>
34474 PR tree-optimization/55857
34475 * tree-vect-stmts.c (vectorizable_load): Do not setup
34476 re-alignment for invariant loads.
34478 2013-01-02 Richard Biener <rguenther@suse.de>
34480 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
34481 invariant load do not generate a vector load from the scalar location.
34483 2013-01-03 Richard Biener <rguenther@suse.de>
34485 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
34486 for not vectorizing.
34487 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
34488 not build INDIRECT_REFs, call get_name once only.
34489 (vect_create_data_ref_ptr): Likewise. Dump base object kind
34490 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
34492 2013-01-03 Richard Biener <rguenther@suse.de>
34494 PR tree-optimization/55857
34495 * tree-vect-stmts.c (vectorizable_load): Do not setup
34496 re-alignment for invariant loads.
34498 2013-01-03 Richard Biener <rguenther@suse.de>
34501 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
34502 prefer a built-in decl.
34504 2013-01-03 Jakub Jelinek <jakub@redhat.com>
34506 * gcc.c (process_command): Update copyright notice dates.
34507 * gcov.c (print_version): Likewise.
34508 * gcov-dump.c (print_version): Likewise.
34510 PR rtl-optimization/55838
34511 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
34512 iv0.step, iv1.step and step.
34514 2013-01-03 Jakub Jelinek <jakub@redhat.com>
34515 Marc Glisse <marc.glisse@inria.fr>
34517 PR tree-optimization/55832
34518 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
34519 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
34520 integer_{one,zero}_node.
34522 2013-01-03 Jakub Jelinek <jakub@redhat.com>
34525 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
34526 * var-tracking.c (reverse_op): Don't add reverse ops to
34527 VALUEs that have already
34528 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
34530 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
34532 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
34534 2013-01-02 Teresa Johnson <tejohnson@google.com>
34536 * dumpfile.c (dump_loc): Print filename with location.
34537 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
34538 new location_t parameter to emit complete unroll message with
34539 new dump framework.
34540 (canonicalize_loop_induction_variables): Compute loops location
34541 and pass to try_unroll_loop_completely.
34542 * loop-unroll.c (report_unroll_peel): New function.
34543 (peel_loops_completely): Use new dump format with location
34544 for main dumpfile message, and invoke report_unroll_peel on success.
34545 (decide_unrolling_and_peeling): Ditto.
34546 (decide_peel_once_rolling): Remove old dumpfile message subsumed
34547 by report_unroll_peel.
34548 (decide_peel_completely): Ditto.
34549 (decide_unroll_constant_iterations): Ditto.
34550 (decide_unroll_runtime_iterations): Ditto.
34551 (decide_peel_simple): Ditto.
34552 (decide_unroll_stupid): Ditto.
34553 * cfgloop.c (get_loop_location): New function.
34554 * cfgloop.h (get_loop_location): Declare.
34556 2013-01-02 Sriraman Tallam <tmsriram@google.com>
34558 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
34561 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34563 PR middle-end/55198
34564 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
34565 BLKmode objects when EXPAND_MEMORY is specified.
34567 2013-01-02 Sriraman Tallam <tmsriram@google.com>
34569 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
34571 (fold_builtin_cpu): Do not share cpu model decls across statements.
34573 2013-01-02 Jason Merrill <jason@redhat.com>
34576 * tree.c (build_array_type_1): Revert earlier change.
34578 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
34580 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
34582 * config/aarch64/aarch64-tune.md: Re-generate.
34584 2013-01-02 Richard Biener <rguenther@suse.de>
34586 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
34587 invariant load do not generate a vector load from the scalar location.
34589 2013-01-02 Richard Biener <rguenther@suse.de>
34592 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
34593 * configure: Regenerate.
34595 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
34597 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
34598 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
34599 (expand_builtin_int_roundingfn_2): Keep the original target around
34600 for the fallback case.
34602 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
34604 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
34605 to be clear for sign changes.
34607 2013-01-01 Jan Hubicka <jh@suse.cz>
34609 * ipa-inline-analysis.c: Fix formatting.
34611 2013-01-01 Jakub Jelinek <jakub@redhat.com>
34613 PR tree-optimization/55831
34614 * tree-vect-loop.c (get_initial_def_for_induction): Use
34615 gsi_after_labels instead of gsi_start_bb.
34617 Copyright (C) 2013 Free Software Foundation, Inc.
34619 Copying and distribution of this file, with or without modification,
34620 are permitted in any medium without royalty provided the copyright
34621 notice and this notice are preserved.