1 2013-11-19 David Malcolm <dmalcolm@redhat.com>
3 * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
5 (build_pretty_printer): Register the vec<>* prettyprinter.
7 2013-11-19 David Malcolm <dmalcolm@redhat.com>
9 * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
10 (GdbSubprinter.handles_type): New.
11 (GdbSubprinterTypeList): New subclass of GdbSubprinter.
12 (GdbSubprinterRegex): New subclass of GdbSubprinter.
13 (GdbPrettyPrinters.add_printer): Remove in favor of...
14 (GdbPrettyPrinters.add_printer_for_types): ...this new method
16 (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
17 (GdbPrettyPrinters.__call__): Update search for subprinter
18 to use handles_type method.
19 (build_pretty_printer): Update registration of subprinters to
20 use the new API above, supporting multiple spelling of each type,
21 and allowing for future regex-based subprinters.
23 2013-11-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
26 V16QI vector splat case for little endian.
28 2013-11-19 Jeff Law <law@redhat.com>
30 * tree-ssa-threadedge.c (thread_across_edge): After threading
31 through a joiner, allow threading a normal block requiring
34 * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
35 jump threading requests that would muck up the loop structures.
37 * tree-ssa-threadupdate.c: Fix trailing whitespace.
38 * tree-ssa-threadupdate.h: Likewise.
40 2013-11-19 Mike Stump <mikestump@comcast.net>
42 * gdbinit.in: Add pmz to print out mpz values.
44 2013-11-20 Jan Hubicka <jh@suse.cz>
46 * common.opt (ffat-lto-objects): Disable by default.
47 * doc/invoke.texi (fat-lto-objects): Update documentation.
48 * opts.c: Enable fat-lto-objects on lto plugin disable setups.
50 2013-11-19 Martin Jambor <mjambor@suse.cz>
52 PR rtl-optimization/59099
53 * ira.c (find_moveable_pseudos): Put back various analyses from ira()
55 (ira): Move init_reg_equiv and call to
56 split_live_ranges_for_shrink_wrap up, remove analyses around call
57 to find_moveable_pseudos.
59 2013-11-20 Alan Modra <amodra@gmail.com>
61 * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
62 * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
63 to strict alignment on older processors when little-endian.
64 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
67 2013-11-19 Teresa Johnson <tejohnson@google.com>
69 * common/config/i386/i386-common.c: Enable
70 -freorder-blocks-and-partition at -O2 and up for x86.
71 * doc/invoke.texi: Update -freorder-blocks-and-partition default.
72 * opts.c (finish_options): Only warn if -freorder-blocks-and-
73 partition was set on command line.
75 2013-11-19 Sriraman Tallam <tmsriram@google.com>
77 * final.c (final_scan_insn): Emit a label for the split
78 cold function part. Label name is formed by suffixing
79 the original function name with "cold".
81 2013-11-19 David Malcolm <dmalcolm@redhat.com>
83 * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
84 (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
85 (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
86 (EXIT_BLOCK_PTR_FOR_FN): ...this.
87 (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
89 (EXIT_BLOCK_PTR): Likewise.
90 (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
91 (FOR_ALL_BB_FN): Update for renaming of
92 "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
94 * cfg.c (init_flow): Likewise.
95 (check_bb_profile): Likewise.
96 * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
97 * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
98 * cfghooks.c (account_profile_record): Likewise.
99 * cfgloop.c (init_loops_structure): Likewise.
100 * cgraphbuild.c (record_eh_tables): Likewise.
101 (compute_call_stmt_bb_frequency): Likewise.
102 * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
103 * lto-streamer-in.c (input_cfg): Likewise.
104 * predict.c (maybe_hot_frequency_p): Likewise.
105 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
106 * tree-inline.c (initialize_cfun): Likewise.
107 (copy_cfg_body): Likewise.
108 (copy_body): Likewise.
109 (tree_function_versioning): Likewise.
111 * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
112 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
113 (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
114 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
115 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
116 (connect_traces): Likewise.
117 (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
118 (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
119 (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
121 (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
123 (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
124 (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
125 (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
126 (rotate_loop): Likewise.
127 * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
128 * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
130 (alloc_aux_for_edges): Likewise.
131 (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
132 (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
134 (compact_blocks): Likewise.
135 (clear_edges): Likewise.
136 * cfganal.c (single_pred_before_succ_order): Remove usage of
137 ENTRY_BLOCK_PTR macro.
138 (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
139 (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
140 (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
141 (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
142 (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
144 (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR
146 (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
148 (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR
150 (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
151 (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
152 (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
153 (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
154 (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
156 (print_edge_list): Likewise.
157 (create_edge_list): Likewise.
158 (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
159 (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
161 * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
163 (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
164 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
165 * cfgcleanup.c (delete_unreachable_blocks): Likewise.
166 (try_optimize_cfg): Likewise.
167 (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
168 (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
169 (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
170 (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
171 (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
172 (try_forward_edges): Likewise.
173 (try_simplify_condjump): Likewise.
174 * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
175 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
176 (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
177 (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
179 (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
180 (expand_gimple_tailcall): Likewise.
181 * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
182 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
183 (tidy_fallthru_edges): Likewise.
184 (verify_flow_info): Likewise.
185 * cfgloop.c (flow_bb_inside_loop_p): Likewise.
186 (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
187 (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR
189 (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
190 (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
191 (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
192 (get_loop_body_in_dom_order): Likewise.
193 (get_loop_body): Likewise.
194 * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
195 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
196 * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
198 (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
199 (fix_bb_placement): Likewise.
200 * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
201 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
202 (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
203 (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
205 (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
206 (cfg_layout_can_merge_blocks_p): Remove uses of macros:
207 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
208 (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
210 (fixup_fallthru_exit_predecessor): Remove uses of macros:
211 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
212 (fixup_reorder_chain): Likewise.
213 (relink_block_chain): Likewise.
214 (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
215 (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
216 (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
217 (force_one_exit_fallthru): Likewise.
218 (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
220 (rtl_verify_edges): Likewise.
221 (commit_edge_insertions): Likewise.
222 (commit_one_edge_insertion): Likewise.
223 (rtl_split_edge): Likewise.
224 (force_nonfallthru_and_redirect): Likewise.
225 (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
226 (skip_insns_after_block): Likewise.
227 (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
229 (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
230 (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
232 (contains_no_active_insn_p): Likewise.
233 (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
234 (entry_of_function): Likewise.
235 (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
236 (fixup_new_cold_bb): Likewise.
237 (patch_jump_insn): Likewise.
238 (try_redirect_by_replacing_jump): Likewise.
239 (block_label): Likewise.
240 (could_fall_through): Likewise.
241 (can_fallthru): Likewise.
242 * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
243 ENTRY_BLOCK_PTR macro.
244 (rebuild_cgraph_edges): Likewise.
245 * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
246 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
247 (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
248 * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
249 (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
250 (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
251 (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
252 (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
254 (reg_nonzero_bits_for_combine): Likewise.
255 (set_nonzero_bits_and_sign_copies): Likewise.
256 (combine_instructions): Likewise.
257 * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
259 (bypass_conditional_jumps): Likewise.
260 (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
261 (find_implicit_sets): Likewise.
262 (cprop_jump): Likewise.
263 * cse.c (cse_cc_succs): Likewise.
264 (cse_find_path): Likewise.
265 * df-problems.c (df_lr_confluence_0): Likewise.
266 * df-scan.c (df_entry_block_defs_collect): Remove usage of
267 ENTRY_BLOCK_PTR macro.
268 (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
269 * dominance.c (iterate_fix_dominators): Remove usage of
270 ENTRY_BLOCK_PTR macro.
271 (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
272 (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR
274 (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
276 (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
278 (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
280 * domwalk.c (cmp_bb_postorder): Likewise.
281 * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
282 * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
284 (sjlj_emit_function_enter): Likewise.
285 * final.c (compute_alignments): Likewise.
286 * function.c (thread_prologue_and_epilogue_insns): Remove uses of
287 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
288 (reposition_prologue_and_epilogue_notes): Remove usage of
289 EXIT_BLOCK_PTR macro.
290 (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
292 (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
293 (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
294 * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
295 (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
296 (compute_code_hoist_vbeinout): Likewise.
297 (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
298 (pre_expr_reaches_here_p_work): Likewise.
299 * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
300 (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
302 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
303 ENTRY_BLOCK_PTR macro.
304 * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
306 * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
307 ENTRY_BLOCK_PTR macro.
308 * graphite-scop-detection.c (build_scops): Likewise.
309 (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
310 (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
311 * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
313 (unlink_bb_notes): Likewise.
314 (create_check_block_twin): Likewise.
315 (init_before_recovery): Likewise.
316 (sched_extend_bb): Likewise.
317 (priority): Likewise.
318 * hw-doloop.c (reorder_loops): Likewise.
319 (discover_loop): Likewise.
320 * ifcvt.c (dead_or_predicable): Remove uses of macros:
321 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
322 (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
323 (block_has_only_trap): Likewise.
324 (cond_exec_find_if_block): Likewise.
325 (merge_if_block): Likewise.
326 * ipa-inline-analysis.c (param_change_prob): Remove usage of
327 ENTRY_BLOCK_PTR macro.
328 (record_modified): Likewise.
329 * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
330 EXIT_BLOCK_PTR macro.
331 (local_pure_const): Likewise.
332 * ipa-split.c (split_function): Remove uses of macros:
333 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
334 (find_split_points): Likewise.
335 (consider_split): Likewise.
336 (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
337 (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
338 * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
339 * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR
341 * ira-emit.c (entered_from_non_parent_p): Remove usage of
342 ENTRY_BLOCK_PTR macro.
343 (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
344 * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
345 * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
346 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
347 * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
349 (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
351 (compute_farthest): Likewise.
352 (compute_available): Likewise.
353 (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
354 (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
356 (compute_earliest): Likewise.
357 (compute_antinout_edge): Likewise.
358 * loop-iv.c (simplify_using_initial_values): Remove usage of
359 ENTRY_BLOCK_PTR macro.
360 * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
362 * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
364 * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
366 * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
367 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
368 * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
370 * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
372 * lto-streamer-out.c (output_cfg): Likewise.
373 * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
375 (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
376 * mode-switching.c (optimize_mode_switching): Likewise.
377 (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
378 * modulo-sched.c (rest_of_handle_sms): Likewise.
379 (canon_loop): Likewise.
380 * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR
382 * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
383 of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
384 * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
386 (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
387 (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
388 (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
389 (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
390 (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
391 (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
392 (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
393 (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
394 (gimple_predict_edge): Likewise.
395 (probably_never_executed): Likewise.
396 * profile.c (find_spanning_tree): Remove uses of macros:
397 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
398 (branch_prob): Likewise.
399 (compute_branch_probabilities): Likewise.
400 (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
401 (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
402 (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
403 (set_bb_counts): Likewise.
404 (correct_negative_edge_counts): Likewise.
405 (get_exec_counts): Likewise.
406 (instrument_values): Likewise.
407 (instrument_edges): Likewise.
408 * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
410 (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
411 (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
412 (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
413 (reg_to_stack): Likewise.
414 * regs.h (REG_N_SETS): Likewise.
415 * reload.c (find_dummy_reload): Likewise.
416 (combine_reloads): Likewise.
417 (push_reload): Likewise.
418 * reload1.c (has_nonexceptional_receiver): Remove usage of
419 EXIT_BLOCK_PTR macro.
420 * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
422 (find_basic_block): Likewise.
423 * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
424 (schedule_ebbs): Likewise.
425 * sched-int.h (sel_sched_p): Likewise.
426 * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
428 (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
429 (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
431 (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
432 (extend_rgns): Likewise.
433 (find_single_block_region): Likewise.
434 * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
435 ENTRY_BLOCK_PTR macro.
436 (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
437 (sel_create_recovery_block): Likewise.
438 (bb_ends_ebb_p): Likewise.
439 (sel_bb_end): Likewise.
440 (sel_bb_head): Likewise.
441 (free_lv_sets): Likewise.
442 (init_lv_sets): Likewise.
443 (tidy_control_flow): Likewise.
444 (maybe_tidy_empty_bb): Likewise.
445 * sel-sched-ir.h (_succ_iter_cond): Likewise.
446 (_succ_iter_start): Likewise.
447 (sel_bb_empty_or_nop_p): Likewise.
448 (get_loop_exit_edges_unique_dests): Likewise.
449 (inner_loop_header_p): Likewise.
450 * sel-sched.c (create_block_for_bookkeeping): Likewise.
451 (find_block_for_bookkeeping): Likewise.
452 * store-motion.c (remove_reachable_equiv_notes): Likewise.
453 (insert_store): Likewise.
454 * trans-mem.c (ipa_tm_transform_clone): Remove usage of
455 ENTRY_BLOCK_PTR macro.
456 (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
457 (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
458 (gate_tm_init): Likewise.
459 (tm_region_init): Likewise.
460 * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
461 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
462 (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
463 (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
465 (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
466 (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
468 (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
470 (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
472 (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
474 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
475 (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
476 (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
477 (build_gimple_cfg): Likewise.
478 (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
479 (gimple_can_merge_blocks_p): Likewise.
480 * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
481 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
482 * tree-complex.c (update_parameter_components): Remove usage of
483 ENTRY_BLOCK_PTR macro.
484 * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
485 EXIT_BLOCK_PTR macro.
486 * tree-inline.c (tree_function_versioning): Remove uses of macros:
487 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
488 (delete_unreachable_blocks_update_callgraph): Likewise.
489 (initialize_cfun): Likewise.
490 (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
491 (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
492 (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
493 * tree-into-ssa.c (update_ssa): Likewise.
494 (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
495 (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
496 (rewrite_into_ssa): Likewise.
497 (rewrite_debug_stmt_uses): Likewise.
498 * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
499 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
500 * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
501 ENTRY_BLOCK_PTR macro.
502 * tree-scalar-evolution.h (block_before_loop): Likewise.
503 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
504 (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
506 (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
508 (propagate_dereference_distances): Remove uses of macros:
509 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
510 (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
512 * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
513 (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
514 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
515 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
516 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
517 (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
518 (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
519 (mark_control_dependent_edges_necessary): Remove uses of macros:
520 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
521 * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
522 ENTRY_BLOCK_PTR macro.
523 (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
524 * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
525 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
526 (calculate_live_on_exit): Likewise.
527 (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
528 (loe_visit_block): Likewise.
529 * tree-ssa-live.h (live_on_exit): Remove uses of macros:
530 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
531 (live_on_entry): Likewise.
532 * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
533 EXIT_BLOCK_PTR macro.
534 * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
535 ENTRY_BLOCK_PTR macro.
536 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
537 (bound_difference): Likewise.
538 * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
539 of EXIT_BLOCK_PTR macro.
540 * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
541 of ENTRY_BLOCK_PTR macro.
542 * tree-ssa-math-opts.c (register_division_in): Likewise.
543 * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
544 * tree-ssa-pre.c (compute_avail): Likewise.
545 (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
546 (insert): Remove usage of ENTRY_BLOCK_PTR macro.
547 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
548 (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
549 (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
551 (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
552 * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
553 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
554 (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
555 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
556 (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
557 * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
558 (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
559 (find_pdom): Likewise.
560 (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
561 * tree-stdarg.c (reachable_at_most_once): Likewise.
562 * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
563 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
564 (eliminate_tail_call): Likewise.
565 * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
567 (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
568 * var-tracking.c (vt_initialize): Remove uses of macros:
569 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
570 (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
571 (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
572 (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
574 * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
576 * config/bfin/bfin.c (hwloop_optimize): Likewise.
577 * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
578 of EXIT_BLOCK_PTR macro.
579 * config/arm/arm.c (require_pic_register): Remove usage of
580 ENTRY_BLOCK_PTR macro.
581 (arm_r3_live_at_start_p): Likewise.
582 (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
583 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
584 * config/frv/frv.c (frv_optimize_membar_global): Likewise.
585 * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
586 ENTRY_BLOCK_PTR macro.
587 * config/i386/i386.c (ix86_count_insn): Likewise.
588 (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
589 (ix86_pad_short_function): Likewise.
590 (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
591 (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
592 (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
593 (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
594 (ix86_expand_epilogue): Likewise.
595 * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
596 (ia64_expand_prologue): Likewise.
598 2013-11-19 Catherine Moore <clm@codesourcery.com>
600 * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
601 * config/mips/mips.opt (mfix-rm7000): New option.
602 * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
603 * config/mips/mips.c (mips_reorg_process_insns): Disable
604 noreorder for TARGET_FIX_RM7000.
606 2013-11-19 Oleg Endo <olegendo@gcc.gnu.org>
608 * config/sh/sh-c.c: Fix typo in include of file attribs.h.
610 2013-11-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
612 * config/arm/arm.c (arm_new_rtx_costs):
613 Handle narrow mode add-shifts properly.
614 * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
615 * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
618 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
620 * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
622 2013-11-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
624 * config/rs6000/vector.md ("mov<mode>"): Do not call
625 rs6000_emit_le_vsx_move to move into or out of GPRs.
626 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
627 source and destination are not GPR hard regs.
629 2013-11-19 David Malcolm <dmalcolm@redhat.com>
631 * basic-block.h (n_edges_for_function): Rename macro to...
632 (n_edges_for_fn): ...this.
633 (n_edges): Eliminate macro as work towards making uses of
636 * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
639 * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
640 (clear_edges): Likewise.
641 (free_edge): Likewise.
642 * cfghooks.c (dump_flow_info): Likewise.
643 * cprop.c (is_too_expensive): Likewise.
644 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
645 * gcse.c (is_too_expensive): Likewise.
646 (prune_insertions_deletions): Likewise.
647 * mcf.c (create_fixup_graph): Likewise.
648 * sched-rgn.c (haifa_find_rgns): Likewise.
649 * tree-cfg.c (gimple_dump_cfg): Likewise.
650 * var-tracking.c (variable_tracking_main_1): Likewise.
652 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
654 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
657 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
659 * config/aarch64/aarch64.md
660 (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw):
663 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
665 * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
667 2013-11-19 Joseph Myers <joseph@codesourcery.com>
669 * varasm.c (align_variable): Give error instead of warning for
670 unsupported alignment.
671 (assemble_noswitch_variable): Likewise.
673 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
675 * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
678 2013-11-19 Peter Bergner <bergner@vnet.ibm.com>
680 * loop-doloop.c (doloop_optimize_loops): Remove unused
681 loop iterator argument from FOR_EACH_LOOP.
683 2013-11-19 David Malcolm <dmalcolm@redhat.com>
685 Convert gimple types from a union to C++ inheritance.
686 * Makefile.in (GIMPLE_H): Add dep on is-a.h.
687 * coretypes.h (union gimple_statement_d): Remove declaration.
688 (gimple): Convert from being a "union gimple_statement_d *"
689 to a "struct gimple_statement_base *".
690 (const_gimple): Likewise (with "const").
691 * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace
693 (ggc_alloc_cleared_gimple_statement_stat): ...this.
694 * gimple-pretty-print.c (debug): Change parameter from a
695 "gimple_statement_d &" to a "gimple_statement_base &".
696 (debug): Change parameter from a "gimple_statement_d *" to
697 a "gimple_statement_base *".
698 * gimple-pretty-print.h (debug): Update declarations as above.
699 * gimple.c (gimple_alloc_stat): Update for renaming of
700 ggc_alloc_cleared_gimple_statement_d_stat to
701 ggc_alloc_cleared_gimple_statement_stat.
702 * gimple.h: Include "is-a.h" for use by is_a_helper
703 specializations in followup autogenerated patch.
704 (struct gimple statement_base): Make this type usable as a base
705 class by adding "desc", "tag" and "variable_size" to GTY, thus
706 using opting-in to gengtype's support for simple inheritance.
707 (gimple_statement_with_ops_base): Convert to a subclass of
708 gimple_statement_base, dropping initial "gsbase" field. Note
709 that this type is abstract, with no GSS_ value, and thus no GTY
711 (gimple_statement_with_ops): Convert to a subclass of
712 gimple_statement_with_ops_base, dropping initial "opbase" field.
713 Add tag value to GTY marking. Update marking of op field to
714 reflect how num_ops field is accessed via inheritance.
715 (gimple_statement_with_memory_ops_base): Convert to a subclass of
716 gimple_statement_with_ops_base, dropping initial "opbase" field.
717 Add tag value to GTY marking.
718 (gimple_statement_with_memory_ops): Convert to a subclass of
719 public gimple_statement_with_memory_ops_base, dropping initial
720 "membase" field. Add tag value to GTY marking. Update marking
721 of op field to reflect how num_ops field is accessed via
723 (gimple_statement_call): Analogous changes that also update the
724 marking of the "u" union.
725 (gimple_statement_omp): Convert to a subclass of
726 gimple_statement_base, dropping initial "gsbase" field, adding
727 tag value to GTY marking.
728 (gimple_statement_bind): Likewise.
729 (gimple_statement_catch): Likewise.
730 (gimple_statement_eh_filter): Likewise.
731 (gimple_statement_eh_else): Likewise.
732 (gimple_statement_eh_mnt): Likewise.
733 (gimple_statement_phi): Likewise.
734 (gimple_statement_eh_ctrl): Likewise.
735 (gimple_statement_try): Likewise.
736 (gimple_statement_wce): Likewise.
737 (gimple_statement_asm): Convert to a subclass of
738 gimple_statement_with_memory_ops_base, dropping initial
739 "membase" field, adding tag value to GTY marking, and updating
741 (gimple_statement_omp_critical): Convert to a subclass of
742 gimple_statement_omp, dropping initial "omp" field, adding tag
743 value to GTY marking.
744 (gimple_statement_omp_for): Likewise.
745 (gimple_statement_omp_parallel): Likewise.
746 (gimple_statement_omp_task): Convert to a subclass of
747 gimple_statement_omp_parallel, dropping initial "par" field,
748 adding tag value to GTY marking.
749 (gimple_statement_omp_sections): Convert to a subclass of
750 gimple_statement_omp, dropping initial "omp" field, adding
751 tag value to GTY marking.
752 (gimple_statement_omp_continue): Convert to a subclass of
753 gimple_statement_base, dropping initial "gsbase" field, adding
754 tag value to GTY marking.
755 (gimple_statement_omp_single): Convert to a subclass of
756 gimple_statement_omp, dropping initial "omp" field, adding
757 tag value to GTY marking.
758 (gimple_statement_omp_atomic_load): Convert to a subclass of
759 gimple_statement_base, dropping initial "gsbase" field, adding
760 tag value to GTY marking.
761 (gimple_statement_omp_atomic_store): Convert to a subclass of
762 gimple_statement_base, dropping initial "gsbase" field, adding
763 tag value to GTY marking.
764 (gimple_statement_transaction): Convert to a subclass of
765 gimple_statement_with_memory_ops_base, dropping initial "gsbase"
766 field, adding tag value to GTY marking.
767 (union gimple_statement_d): Remove.
768 * system.h (CONST_CAST_GIMPLE): Update to use
769 "struct gimple_statement_base *" rather than
770 "union gimple_statement_d *".
771 * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
772 gimple_statement_d to gimple_statement_base.
774 * gimple.h (gimple_use_ops): Port from union to usage of
776 (gimple_set_use_ops): Port from union to usage of as_a.
777 (gimple_set_vuse): Likewise.
778 (gimple_set_vdef): Likewise.
779 (gimple_call_internal_fn): Port from union to a static_cast,
780 given that the type has already been asserted.
781 (gimple_omp_body_ptr): Port from unchecked union usage to
783 (gimple_omp_set_body): Likewise.
785 * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
786 gimple types to a true class hierarchy.
787 (update_call_edge_frequencies): Likewise.
788 (gsi_insert_seq_nodes_before): Likewise.
789 (gsi_insert_seq_nodes_after): Likewise.
790 (gsi_split_seq_after): Likewise.
791 (gsi_set_stmt): Likewise.
792 (gsi_split_seq_before): Likewise.
793 (gsi_remove): Likewise.
794 * gimple-iterator.h (gsi_one_before_end_p): Likewise.
795 (gsi_next): Likewise.
796 (gsi_prev): Likewise.
797 * gimple-pretty-print.c (dump_gimple_debug): Likewise.
798 * gimple-ssa.h (gimple_vuse_op): Likewise.
799 (gimple_vdef_op): Likewise.
800 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
801 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
802 * gimple.c (gimple_set_code): Likewise.
803 (gimple_alloc_stat): Likewise.
804 (gimple_set_subcode): Likewise.
805 (gimple_build_call_internal_1): Likewise.
806 (gimple_check_failed): Likewise.
807 (gimple_call_flags): Likewise.
808 (gimple_set_bb): Likewise.
809 * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
810 (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
811 (is_a_helper <gimple_statement_call> (gimple)): Likewise.
812 (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
813 (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
814 (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
815 (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
816 (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
817 (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
818 (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
819 (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
820 (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
821 (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
822 (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
823 (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
824 (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
825 (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
826 (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
827 (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
828 (is_a_helper <gimple_statement_try> (gimple)): Likewise.
829 (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
830 (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
831 (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
832 (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
833 (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
834 (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
836 (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
838 (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
840 (is_a_helper <const gimple_statement_omp_atomic_store>
841 (const_gimple)): Likewise.
842 (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
844 (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
846 (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
848 (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
850 (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
852 (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
854 (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
856 (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
857 (is_a_helper <const gimple_statement_transaction> (const_gimple)):
859 (gimple_seq_last): Update for conversion of gimple types to a true
861 (gimple_seq_set_last): Likewise.
862 (gimple_code): Likewise.
863 (gimple_bb): Likewise.
864 (gimple_block): Likewise.
865 (gimple_set_block): Likewise.
866 (gimple_location): Likewise.
867 (gimple_location_ptr): Likewise.
868 (gimple_set_location): Likewise.
869 (gimple_no_warning_p): Likewise.
870 (gimple_set_no_warning): Likewise.
871 (gimple_set_visited): Likewise.
872 (gimple_visited_p): Likewise.
873 (gimple_set_plf): Likewise.
874 (gimple_plf): Likewise.
875 (gimple_set_uid): Likewise.
876 (gimple_uid): Likewise.
877 (gimple_init_singleton): Likewise.
878 (gimple_modified_p): Likewise.
879 (gimple_set_modified): Likewise.
880 (gimple_expr_code): Likewise.
881 (gimple_has_volatile_ops): Likewise.
882 (gimple_set_has_volatile_ops): Likewise.
883 (gimple_omp_subcode): Likewise.
884 (gimple_omp_set_subcode): Likewise.
885 (gimple_omp_return_set_nowait): Likewise.
886 (gimple_omp_section_set_last): Likewise.
887 (gimple_omp_parallel_set_combined_p): Likewise.
888 (gimple_omp_atomic_set_need_value): Likewise.
889 (gimple_omp_atomic_set_seq_cst): Likewise.
890 (gimple_num_ops): Likewise.
891 (gimple_set_num_ops): Likewise.
892 (gimple_assign_nontemporal_move_p): Likewise.
893 (gimple_assign_set_nontemporal_move): Likewise.
894 (gimple_assign_rhs_code): Likewise.
895 (gimple_assign_set_rhs_code): Likewise.
896 (gimple_call_internal_p): Likewise.
897 (gimple_call_with_bounds_p): Likewise.
898 (gimple_call_set_with_bounds): Likewise.
899 (gimple_call_set_tail): Likewise.
900 (gimple_call_tail_p): Likewise.
901 (gimple_call_set_return_slot_opt): Likewise.
902 (gimple_call_return_slot_opt_p): Likewise.
903 (gimple_call_set_from_thunk): Likewise.
904 (gimple_call_from_thunk_p): Likewise.
905 (gimple_call_set_va_arg_pack): Likewise.
906 (gimple_call_va_arg_pack_p): Likewise.
907 (gimple_call_set_nothrow): Likewise.
908 (gimple_call_set_alloca_for_var): Likewise.
909 (gimple_call_alloca_for_var_p): Likewise.
910 (gimple_call_copy_flags): Likewise.
911 (gimple_cond_code): Likewise.
912 (gimple_cond_set_code): Likewise.
913 (gimple_cond_make_false): Likewise.
914 (gimple_cond_make_true): Likewise.
915 (gimple_asm_volatile_p): Likewise.
916 (gimple_asm_set_volatile): Likewise.
917 (gimple_asm_set_input): Likewise.
918 (gimple_asm_input_p): Likewise.
919 (gimple_try_kind): Likewise.
920 (gimple_try_set_kind): Likewise.
921 (gimple_try_catch_is_cleanup): Likewise.
922 (gimple_try_set_catch_is_cleanup): Likewise.
923 (gimple_wce_cleanup_eh_only): Likewise.
924 (gimple_wce_set_cleanup_eh_only): Likewise.
925 (gimple_debug_bind_p): Likewise.
926 (gimple_debug_source_bind_p): Likewise.
927 (gimple_omp_for_set_kind): Likewise.
928 (gimple_omp_for_set_combined_p): Likewise.
929 (gimple_omp_for_set_combined_into_p): Likewise.
930 (gimple_omp_target_set_kind): Likewise.
931 (gimple_transaction_subcode): Likewise.
932 (gimple_transaction_set_subcode): Likewise.
933 (gimple_predict_predictor): Likewise.
934 (gimple_predict_set_predictor): Likewise.
935 (gimple_predict_outcome): Likewise.
936 (gimple_predict_set_outcome): Likewise.
937 (gimple_transaction_set_label): Likewise.
938 (gimple_transaction_set_body): Likewise.
939 (gimple_transaction_label_ptr): Likewise.
940 (gimple_transaction_label): Likewise.
941 (gimple_transaction_body_ptr): Likewise.
942 (gimple_omp_continue_set_control_use): Likewise.
943 (gimple_omp_continue_control_use_ptr): Likewise.
944 (gimple_omp_continue_control_use): Likewise.
945 (gimple_omp_continue_set_control_def): Likewise.
946 (gimple_omp_continue_control_def_ptr): Likewise.
947 (gimple_omp_continue_control_def): Likewise.
948 (gimple_omp_atomic_load_rhs_ptr): Likewise.
949 (gimple_omp_atomic_load_rhs): Likewise.
950 (gimple_omp_atomic_load_set_rhs): Likewise.
951 (gimple_omp_atomic_load_lhs_ptr): Likewise.
952 (gimple_omp_atomic_load_lhs): Likewise.
953 (gimple_omp_atomic_load_set_lhs): Likewise.
954 (gimple_omp_atomic_store_val_ptr): Likewise.
955 (gimple_omp_atomic_store_val): Likewise.
956 (gimple_omp_atomic_store_set_val): Likewise.
957 (gimple_omp_for_cond): Likewise.
958 (gimple_omp_for_set_cond): Likewise.
959 (gimple_omp_sections_set_control): Likewise.
960 (gimple_omp_sections_control_ptr): Likewise.
961 (gimple_omp_sections_control): Likewise.
962 (gimple_omp_sections_set_clauses): Likewise.
963 (gimple_omp_sections_clauses_ptr): Likewise.
964 (gimple_omp_sections_clauses): Likewise.
965 (gimple_omp_teams_set_clauses): Likewise.
966 (gimple_omp_teams_clauses_ptr): Likewise.
967 (gimple_omp_teams_clauses): Likewise.
968 (gimple_omp_target_set_data_arg): Likewise.
969 (gimple_omp_target_data_arg_ptr): Likewise.
970 (gimple_omp_target_data_arg): Likewise.
971 (gimple_omp_target_set_child_fn): Likewise.
972 (gimple_omp_target_child_fn_ptr): Likewise.
973 (gimple_omp_target_child_fn): Likewise.
974 (gimple_omp_target_set_clauses): Likewise.
975 (gimple_omp_target_clauses_ptr): Likewise.
976 (gimple_omp_target_clauses): Likewise.
977 (gimple_omp_single_set_clauses): Likewise.
978 (gimple_omp_single_clauses_ptr): Likewise.
979 (gimple_omp_single_clauses): Likewise.
980 (gimple_omp_task_set_arg_align): Likewise.
981 (gimple_omp_task_arg_align_ptr): Likewise.
982 (gimple_omp_task_arg_align): Likewise.
983 (gimple_omp_task_set_arg_size): Likewise.
984 (gimple_omp_task_arg_size_ptr): Likewise.
985 (gimple_omp_task_arg_size): Likewise.
986 (gimple_omp_task_set_copy_fn): Likewise.
987 (gimple_omp_task_copy_fn_ptr): Likewise.
988 (gimple_omp_task_copy_fn): Likewise.
989 (gimple_omp_task_set_data_arg): Likewise.
990 (gimple_omp_task_data_arg_ptr): Likewise.
991 (gimple_omp_task_data_arg): Likewise.
992 (gimple_omp_task_set_child_fn): Likewise.
993 (gimple_omp_task_child_fn_ptr): Likewise.
994 (gimple_omp_task_child_fn): Likewise.
995 (gimple_omp_task_set_clauses): Likewise.
996 (gimple_omp_task_clauses_ptr): Likewise.
997 (gimple_omp_task_clauses): Likewise.
998 (gimple_omp_parallel_set_data_arg): Likewise.
999 (gimple_omp_parallel_data_arg_ptr): Likewise.
1000 (gimple_omp_parallel_data_arg): Likewise.
1001 (gimple_omp_parallel_set_child_fn): Likewise.
1002 (gimple_omp_parallel_child_fn_ptr): Likewise.
1003 (gimple_omp_parallel_child_fn): Likewise.
1004 (gimple_omp_parallel_set_clauses): Likewise.
1005 (gimple_omp_parallel_clauses_ptr): Likewise.
1006 (gimple_omp_parallel_clauses): Likewise.
1007 (gimple_omp_for_set_pre_body): Likewise.
1008 (gimple_omp_for_pre_body_ptr): Likewise.
1009 (gimple_omp_for_set_incr): Likewise.
1010 (gimple_omp_for_incr_ptr): Likewise.
1011 (gimple_omp_for_incr): Likewise.
1012 (gimple_omp_for_set_final): Likewise.
1013 (gimple_omp_for_final_ptr): Likewise.
1014 (gimple_omp_for_final): Likewise.
1015 (gimple_omp_for_set_initial): Likewise.
1016 (gimple_omp_for_initial_ptr): Likewise.
1017 (gimple_omp_for_initial): Likewise.
1018 (gimple_omp_for_set_index): Likewise.
1019 (gimple_omp_for_index_ptr): Likewise.
1020 (gimple_omp_for_index): Likewise.
1021 (gimple_omp_for_collapse): Likewise.
1022 (gimple_omp_for_set_clauses): Likewise.
1023 (gimple_omp_for_clauses_ptr): Likewise.
1024 (gimple_omp_for_clauses): Likewise.
1025 (gimple_omp_critical_set_name): Likewise.
1026 (gimple_omp_critical_name_ptr): Likewise.
1027 (gimple_omp_critical_name): Likewise.
1028 (gimple_eh_dispatch_set_region): Likewise.
1029 (gimple_eh_dispatch_region): Likewise.
1030 (gimple_resx_set_region): Likewise.
1031 (gimple_resx_region): Likewise.
1032 (gimple_phi_set_arg): Likewise.
1033 (gimple_phi_arg): Likewise.
1034 (gimple_phi_set_result): Likewise.
1035 (gimple_phi_result_ptr): Likewise.
1036 (gimple_phi_result): Likewise.
1037 (gimple_phi_num_args): Likewise.
1038 (gimple_phi_capacity): Likewise.
1039 (gimple_wce_set_cleanup): Likewise.
1040 (gimple_wce_cleanup_ptr): Likewise.
1041 (gimple_try_set_cleanup): Likewise.
1042 (gimple_try_set_eval): Likewise.
1043 (gimple_try_cleanup_ptr): Likewise.
1044 (gimple_try_eval_ptr): Likewise.
1045 (gimple_eh_else_set_e_body): Likewise.
1046 (gimple_eh_else_set_n_body): Likewise.
1047 (gimple_eh_else_e_body_ptr): Likewise.
1048 (gimple_eh_else_n_body_ptr): Likewise.
1049 (gimple_eh_must_not_throw_set_fndecl): Likewise.
1050 (gimple_eh_must_not_throw_fndecl): Likewise.
1051 (gimple_eh_filter_set_failure): Likewise.
1052 (gimple_eh_filter_set_types): Likewise.
1053 (gimple_eh_filter_failure_ptr): Likewise.
1054 (gimple_eh_filter_types_ptr): Likewise.
1055 (gimple_eh_filter_types): Likewise.
1056 (gimple_catch_set_handler): Likewise.
1057 (gimple_catch_set_types): Likewise.
1058 (gimple_catch_handler_ptr): Likewise.
1059 (gimple_catch_types_ptr): Likewise.
1060 (gimple_catch_types): Likewise.
1061 (gimple_asm_string): Likewise.
1062 (gimple_asm_set_label_op): Likewise.
1063 (gimple_asm_label_op): Likewise.
1064 (gimple_asm_set_clobber_op): Likewise.
1065 (gimple_asm_clobber_op): Likewise.
1066 (gimple_asm_set_output_op): Likewise.
1067 (gimple_asm_output_op_ptr): Likewise.
1068 (gimple_asm_output_op): Likewise.
1069 (gimple_asm_set_input_op): Likewise.
1070 (gimple_asm_input_op_ptr): Likewise.
1071 (gimple_asm_input_op): Likewise.
1072 (gimple_asm_nlabels): Likewise.
1073 (gimple_asm_nclobbers): Likewise.
1074 (gimple_asm_noutputs): Likewise.
1075 (gimple_asm_ninputs): Likewise.
1076 (gimple_bind_set_block): Likewise.
1077 (gimple_bind_block): Likewise.
1078 (gimple_bind_add_seq): Likewise.
1079 (gimple_bind_add_stmt): Likewise.
1080 (gimple_bind_set_body): Likewise.
1081 (gimple_bind_body_ptr): Likewise.
1082 (gimple_bind_append_vars): Likewise.
1083 (gimple_bind_set_vars): Likewise.
1084 (gimple_bind_vars): Likewise.
1085 (gimple_call_clobber_set): Likewise.
1086 (gimple_call_use_set): Likewise.
1087 (gimple_call_set_internal_fn): Likewise.
1088 (gimple_call_set_fntype): Likewise.
1089 (gimple_call_fntype): Likewise.
1090 (gimple_omp_return_lhs_ptr): Likewise.
1091 (gimple_omp_return_lhs): Likewise.
1092 (gimple_omp_return_set_lhs): Likewise.
1093 (gimple_omp_taskreg_set_data_arg): Likewise.
1094 (gimple_omp_taskreg_data_arg_ptr): Likewise.
1095 (gimple_omp_taskreg_data_arg): Likewise.
1096 (gimple_omp_taskreg_set_child_fn): Likewise.
1097 (gimple_omp_taskreg_child_fn_ptr): Likewise.
1098 (gimple_omp_taskreg_child_fn): Likewise.
1099 (gimple_omp_taskreg_set_clauses): Likewise.
1100 (gimple_omp_taskreg_clauses_ptr): Likewise.
1101 (gimple_omp_taskreg_clauses): Likewise.
1102 (gimple_vuse): Likewise.
1103 (gimple_vdef): Likewise.
1104 (gimple_vuse_ptr): Likewise.
1105 (gimple_vdef_ptr): Likewise.
1106 * tree-inline.c (copy_debug_stmt): Likewise.
1107 * tree-phinodes.c (make_phi_node): Likewise.
1109 * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
1110 (is_a_helper <gimple_statement_with_ops>::test): New.
1111 (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
1112 (is_a_helper <gimple_statement_with_memory_ops>::test): New.
1114 * gimple-streamer-in.c (input_gimple_stmt): Port from union
1115 access to use of as_a.
1116 * gimple.c (gimple_build_asm_1): Likewise.
1117 (gimple_build_try): Likewise. Also, return a specific subclass
1118 rather than just gimple.
1119 (gimple_build_resx): Port from union access to use of as_a.
1120 (gimple_build_eh_dispatch): Likewise.
1121 (gimple_build_omp_for): Likewise. Also, convert allocation of iter
1122 now that gengtype no longer provides a typed allocator function.
1123 (gimple_copy): Likewise.
1124 * gimple.h (gimple_build_try): Return a specific subclass rather
1126 * gimplify.c (gimplify_cleanup_point_expr): Replace union access
1127 with subclass access by making use of new return type of
1129 * tree-phinodes.c: (allocate_phi_node): Return a
1130 "gimple_statement_phi *" rather than just a gimple.
1131 (resize_phi_node): Likewise.
1132 (make_phi_node): Replace union access with subclass access by
1133 making use of new return type of allocate_phi_node.
1134 (reserve_phi_args_for_new_edge): Replace union access with as_a.
1135 (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
1137 (remove_phi_args): Update for change to remove_phi_arg_num.
1139 * gdbhooks.py (GimplePrinter.to_string): Update lookup of
1140 code field to reflect inheritance, rather than embedding of
1141 the base gimple type.
1143 2013-11-19 Richard Biener <rguenther@suse.de>
1145 * cfgloop.h (struct loop_iterator): C++-ify, add constructor
1146 and destructor and make fel_next a member function.
1147 (fel_next): Transform into ...
1148 (loop_iterator::next): ... this.
1149 (fel_init): Transform into ...
1150 (loop_iterator::loop_iterator): ... this.
1151 (loop_iterator::~loop_iterator): New.
1152 (FOR_EACH_LOOP): Remove loop-iterator argument.
1153 (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
1154 * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
1155 graphite-clast-to-gimple.c, graphite-scop-detection.c,
1156 graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
1157 loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
1158 modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
1159 tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
1160 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
1161 tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
1162 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
1163 tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
1164 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
1165 uses of FOR_EACH_LOOP and remove loop_iterator variables. Replace
1166 FOR_EACH_LOOP_BREAK with break.
1168 2013-11-19 Richard Biener <rguenther@suse.de>
1170 PR tree-optimization/59164
1171 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
1173 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust
1174 check whether we can create an epilogue loop to reflect the
1175 cases where we create one.
1177 2013-11-19 Andrew MacLeod <amacleod@redhat.com>
1179 * graphite-sese-to-poly.c: Include expr.h.
1181 2013-11-19 Richard Biener <rguenther@suse.de>
1184 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
1185 loads into stmts that may clobber it.
1187 2013-11-19 Bernd Schmidt <bernds@codesourcery.com>
1189 * cgraphunit.c (symtab_terminator): New variable.
1190 (queued_nodes): Renamed from first. Use symtab_terminator as
1192 (analyze_functions): Adjust accordingly.
1193 (cgraph_process_new_functions): Return void.
1194 * cgraph.h (cgraph_process_new_functions): Adjust declaration.
1196 2013-11-19 Marek Polacek <polacek@redhat.com>
1198 * opts.c (common_handle_option): Add -fsanitize=null option.
1199 Turn off -fdelete-null-pointer-checks option when doing the
1200 NULL pointer checking.
1201 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
1202 * tree-pass.h (make_pass_ubsan): Declare.
1203 (make_pass_sanopt): Declare.
1204 * timevar.def (TV_TREE_UBSAN): New timevar.
1205 * passes.def: Add pass_sanopt and pass_ubsan.
1206 * ubsan.h (ubsan_null_ckind): New enum.
1207 (ubsan_mismatch_data): New struct.
1208 (ubsan_expand_null_ifn): Declare.
1209 (ubsan_create_data): Adjust declaration.
1210 (ubsan_type_descriptor): Likewise.
1211 * asan.c: Include "ubsan.h".
1212 (pass_data_sanopt): New pass.
1213 (execute_sanopt): New function.
1214 (gate_sanopt): Likewise.
1215 (make_pass_sanopt): Likewise.
1216 (class pass_sanopt): New class.
1217 * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
1218 gimple-iterator.h and cfgloop.h.
1219 (PROB_VERY_UNLIKELY): Define.
1220 (tree_type_map_hash): New function.
1221 (ubsan_type_descriptor): Add new parameter.
1222 Improve type name generation.
1223 (ubsan_create_data): Add new parameter. Add pointer data into
1225 (ubsan_expand_null_ifn): New function.
1226 (instrument_member_call): Likewise.
1227 (instrument_mem_ref): Likewise.
1228 (instrument_null): Likewise.
1229 (ubsan_pass): Likewise.
1230 (gate_ubsan): Likewise.
1231 (make_pass_ubsan): Likewise.
1232 (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
1233 (class pass_ubsan): New class.
1234 (pass_data_ubsan): New pass.
1235 * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
1236 * internal-fn.c (expand_UBSAN_NULL): New function.
1237 * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
1238 even when !flag_toplevel_reorder.
1239 * internal-fn.def (UBSAN_NULL): New.
1241 2013-11-19 Jan Hubicka <jh@suse.cz>
1243 * cgraph.c (cgraph_create_indirect_edge): Use get_polymorphic_call_info.
1244 * cgraph.h (cgraph_indirect_call_info): Add outer_type, maybe_in_construction
1245 and maybe_derived_type.
1246 * ipa-utils.h (ipa_polymorphic_call_context): New structure.
1247 (ipa_dummy_polymorphic_call_context): New global var.
1248 (possible_polymorphic_call_targets): Add context paramter.
1249 (dump_possible_polymorphic_call_targets): Likewise; update
1251 (possible_polymorphic_call_target_p): Likewise.
1252 (get_polymorphic_call_info): New function.
1253 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
1254 (add_type_duplicate): Remove forgotten debug output.
1255 (method_class_type): Add sanity check.
1256 (maybe_record_node): Add FINALP parameter.
1257 (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
1258 by info by get_binfo_at_offset.
1259 (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET parameters;
1260 pass them to record-binfo.
1261 (polymorphic_call_target_d): Add context and FINAL.
1262 (polymorphic_call_target_hasher::hash): Hash context.
1263 (polymorphic_call_target_hasher::equal): Compare context.
1264 (free_polymorphic_call_targets_hash):
1265 (get_class_context): New function.
1266 (contains_type_p): New function.
1267 (get_polymorphic_call_info): New function.
1268 (walk_bases): New function.
1269 (possible_polymorphic_call_targets): Add context parameter; honnor it.
1270 (dump_possible_polymorphic_call_targets): Dump context.
1271 (possible_polymorphic_call_target_p): Add context.
1272 (update_type_inheritance_graph): Update comment.s
1273 (ipa_set_jf_known_type): Assert that compoentn type is known.
1274 (ipa_note_param_call): Do not tamper with offsets.
1275 (ipa_analyze_indirect_call_uses): When offset is being changed; clear
1277 (update_indirect_edges_after_inlining): Likewise.
1278 (ipa_write_indirect_edge_info): Stream new fields.
1279 (ipa_read_indirect_edge_info): Stream in new fields.
1281 2013-11-19 Jan Hubicka <jh@suse.cz>
1283 * tree-pretty-print.c (dump_generic_node): Print class type of
1286 2013-11-19 Joey Ye <joey.ye@arm.com>
1288 * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
1289 * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
1291 * config/arm/arm.c (arm_option_override): By default disable
1292 -marm-pic-data-is-text-relative.
1293 (legitimize_pic_address): Use arm_pic_data_is_text_relative.
1294 (arm_assemble_integer): Likewise.
1295 * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
1296 New macro to initialize -marm-pic-data-is-text-relative.
1298 2013-11-19 Bin Cheng <bin.cheng@arm.com>
1300 * tree-ssa-loop-ivopts.c (enum ainc_type): New.
1301 (address_cost_data): New field.
1302 (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
1303 Use ainc_costs for auto-increment rtx patterns.
1306 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
1308 * config/aarch64/aarch64.md: Remove v8type from all insns.
1310 2013-11-19 Richard Biener <rguenther@suse.de>
1312 PR tree-optimization/57517
1313 * tree-predcom.c (combinable_refs_p): Verify the combination
1314 is always executed when the refs are.
1316 2013-11-19 Jeff Law <law@redhat.com>
1318 * tree-ssa-threadupdate.c: Include ssa-iterators.h
1319 (copy_phi_arg_into_existing_phi): New function.
1320 (any_remaining_duplicated_blocks): Likewise.
1321 (ssa_fix_duplicate_block_edges): Handle multiple duplicated
1322 blocks on a jump threading path.
1324 * tree-ssa-threadupdate.c (thread_through_loop_header): Do not
1325 thread through a joiner which has the latch edge.
1327 2013-11-19 Jan Hubicka <jh@suse.cz>
1329 * md.texi (setmem): Document new parameter.
1330 * optabs.c (maybe_gen_insn): Support 9 operands.
1331 * builtins.c (determine_block_size): Add probable_max_size;
1332 support anti-ranges.
1333 (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
1335 * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
1336 emit_block_move, clear_storage_hints, set_storage_via_setmem):
1338 * expr.h (emit_block_move_hints, clear_storage_hints,
1339 set_storage_via_setmem): Update prototype.
1340 * i386.md (setmem, movmem patterns): Add 9th operand.
1341 * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
1342 * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
1343 argument; pass it to decide_alg.
1345 2013-11-19 David Malcolm <dmalcolm@redhat.com>
1347 * basic-block.h (n_basic_blocks_for_function): Rename macro to...
1348 (n_basic_blocks_for_fn): ...this.
1350 (n_basic_blocks): Eliminate macro as work towards making uses of
1353 * cfgloop.c (init_loops_structure): Update for renaming of
1354 "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
1355 * graph.c (draw_cfg_nodes_no_loops): Likewise.
1356 * ipa-utils.c (ipa_merge_profiles): Likewise.
1357 * lto-streamer-in.c (make_new_block): Likewise.
1358 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
1359 (dump_function_to_file): Likewise.
1361 * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
1362 macro with "n_basic_blocks_for_fn (cfun)".
1363 * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
1364 (duplicate_computed_gotos): Likewise.
1365 (reorder_basic_blocks): Likewise.
1366 * bt-load.c (augment_live_range): Likewise.
1367 * cfg.c (expunge_block): Likewise.
1368 (compact_blocks): Likewise.
1369 * cfganal.c (single_pred_before_succ_order): Likewise.
1370 (compute_idf): Likewise.
1371 (flow_dfs_compute_reverse_init): Likewise.
1372 (pre_and_rev_post_order_compute): Likewise.
1373 (pre_and_rev_post_order_compute_fn): Likewise.
1374 (inverted_post_order_compute): Likewise.
1375 (post_order_compute): Likewise.
1376 (print_edge_list): Likewise.
1377 (find_unreachable_blocks): Likewise.
1378 (mark_dfs_back_edges): Likewise.
1379 * cfgcleanup.c (try_optimize_cfg): Likewise.
1380 (try_forward_edges): Likewise.
1381 * cfghooks.c (dump_flow_info): Likewise.
1382 * cfgloop.c (verify_loop_structure): Likewise.
1383 (get_loop_body): Likewise.
1384 (flow_loops_find): Likewise.
1385 * cfgloopmanip.c (add_loop): Likewise.
1386 (remove_path): Likewise.
1387 (find_path): Likewise.
1388 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
1389 (rtl_verify_bb_layout): Likewise.
1390 (entry_of_function): Likewise.
1391 (rtl_create_basic_block): Likewise.
1392 * coverage.c (coverage_compute_cfg_checksum): Likewise.
1393 * cprop.c (one_cprop_pass): Likewise.
1394 (is_too_expensive): Likewise.
1395 * df-core.c (df_compute_cfg_image): Likewise.
1396 (df_compact_blocks): Likewise.
1397 (df_worklist_dataflow_doublequeue): Likewise.
1398 * dominance.c (calculate_dominance_info): Likewise.
1399 (calc_dfs_tree): Likewise.
1400 (calc_dfs_tree_nonrec): Likewise.
1401 (init_dom_info): Likewise.
1402 * domwalk.c (cmp_bb_postorder): Likewise.
1403 * function.c (thread_prologue_and_epilogue_insns): Likewise.
1404 (generate_setjmp_warnings): Likewise.
1405 * fwprop.c (build_single_def_use_links): Likewise.
1406 * gcse.c (is_too_expensive): Likewise.
1407 (one_code_hoisting_pass): Likewise.
1408 (one_pre_gcse_pass): Likewise.
1409 * graphite.c (graphite_initialize): Likewise.
1410 * haifa-sched.c (haifa_sched_init): Likewise.
1411 * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
1412 * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
1413 * ira-build.c (ira_build): Likewise.
1414 * lcm.c (compute_nearerout): Likewise.
1415 (compute_available): Likewise.
1416 (compute_laterin): Likewise.
1417 (compute_antinout_edge): Likewise.
1418 * lra-lives.c (lra_create_live_ranges): Likewise.
1419 * lra.c (has_nonexceptional_receiver): Likewise.
1420 * mcf.c (create_fixup_graph): Likewise.
1421 * profile.c (branch_prob): Likewise.
1422 * reg-stack.c (convert_regs_2): Likewise.
1423 * regrename.c (regrename_analyze): Likewise.
1424 * reload1.c (has_nonexceptional_receiver): Likewise.
1425 * reorg.c (dbr_schedule): Likewise.
1426 * sched-deps.c (sched_deps_init): Likewise.
1427 * sched-ebb.c (schedule_ebbs): Likewise.
1428 * sched-rgn.c (extend_regions): Likewise.
1429 (schedule_insns): Likewise.
1430 (sched_rgn_init): Likewise.
1431 (extend_rgns): Likewise.
1432 (haifa_find_rgns): Likewise.
1433 * sel-sched-ir.c (recompute_rev_top_order): Likewise.
1434 (sel_recompute_toporder): Likewise.
1435 * sel-sched.c (run_selective_scheduling): Likewise.
1436 * store-motion.c (one_store_motion_pass): Likewise.
1437 (remove_reachable_equiv_notes): Likewise.
1438 * tracer.c (tracer): Likewise.
1439 (tail_duplicate): Likewise.
1440 * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
1441 (dump_cfg_stats): Likewise.
1442 (gimple_dump_cfg): Likewise.
1443 (create_bb): Likewise.
1444 (build_gimple_cfg): Likewise.
1445 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
1446 * tree-inline.c (optimize_inline_calls): Likewise.
1447 (fold_marked_statements): Likewise.
1448 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
1449 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
1450 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
1451 * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
1452 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
1453 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
1454 * tree-ssa-pre.c (do_pre): Likewise.
1455 (init_pre): Likewise.
1456 (compute_avail): Likewise.
1457 * tree-ssa-reassoc.c (init_reassoc): Likewise.
1458 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
1459 * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
1460 (init_worklist): Likewise.
1461 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
1462 * var-tracking.c (variable_tracking_main_1): Likewise.
1463 (vt_find_locations): Likewise.
1464 (vt_stack_adjustments): Likewise.
1465 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
1466 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
1468 2013-11-18 Jan Hubicka <jh@suse.cz>
1470 * profile.c (compute_branch_probabilities): Do not sanity check run_max.
1472 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
1474 * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
1476 * fold-const.c (fold_single_bit_test_into_sign_test)
1477 (fold_binary_loc): Change GET_MODE_BITSIZE to
1480 2013-11-18 Teresa Johnson <tejohnson@google.com>
1482 * gcc/cfgrtl.c (cfg_layout_initialize): Assert if we
1483 try to go into cfglayout after bb reordering.
1484 * gcc/passes.def: Move compgotos before bb reordering
1485 since it goes into cfglayout.
1487 2013-11-18 Bernd Schmidt <bernds@codesourcery.com>
1489 * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
1490 * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
1492 (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
1493 make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
1494 pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
1495 * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
1496 * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
1497 Remove all_lto_gen_passes.
1498 * passes.c (pass_manager::dump_passes): Remove its use.
1499 (pass_manager::register_pass): Likewise.
1500 (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
1501 (pass_manager::pass_manager): Don't initialize or use it.
1502 (write_lto): New static function.
1503 (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
1504 instead of using all_lto_gen_passes.
1505 * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
1506 pass_ipa_lto_finish_out): Delete.
1507 * tree-pass.h (make_pass_ipa_lto_gimple_out,
1508 make_pass_ipa_lto_finish_out): Don't declare.
1510 2013-11-18 Jeff Law <law@redhat.com>
1512 * tree-ssa-threadupdate.c (redirection_data): Record two
1513 duplicated blocks instead of just one.
1514 (local_info): Explain why we don't create a template for the
1515 second duplicated block in a thread path.
1516 (create_block_for_threading): Accept argument indicating array
1517 index into redirection_data to store its result.
1518 (lookup_redirection_data): Initialize both duplicate blocks.
1519 (ssa_create_duplicates): If a jump threading path needs multiple
1520 blocks duplicated, then duplicate them.
1521 (ssa_fix_duplicate_block_edges): Corresponding changes.
1522 (ssa_fixup_template_block, thread_single_edge): Likewise.
1525 2013-11-18 Marek Polacek <polacek@redhat.com>
1527 * doc/invoke.texi: Extend -fsanitize=undefined documentation.
1529 2013-11-18 Andrew Pinski <apinski@cavium.com>
1530 Steve Ellcey <sellcey@mips.com>
1533 * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
1534 type restriction from equality_operator on conditonal move.
1535 (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
1536 (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
1538 2013-11-18 Jeff Law <law@redhat.com>
1540 * tree-ssa-threadupdate.c: Fix file block comment.
1541 Fix minor indention issue.
1543 2013-11-18 Uros Bizjak <ubizjak@gmail.com>
1545 * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
1546 ix86_address_subreg_operand. Move subreg checks to
1547 ix86_validate_address_register. Move address override check to
1548 ix86_legitimate_address_p.
1549 (ix86_validate_address_register): New function.
1550 (ix86_legitimate_address_p): Call ix86_validate_address_register
1551 to validate base and index registers. Add address override check
1552 from ix86_decompose_address.
1553 (ix86_decompose_address): Remove.
1555 2013-11-18 Richard Biener <rguenther@suse.de>
1557 PR tree-optimization/59125
1558 PR tree-optimization/54570
1559 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
1560 is not complete do not treat component-references with offset zero
1561 but different fields as equal.
1562 * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
1563 (compute_object_sizes): Apply TLC. Propagate the constant
1564 results into all uses and fold their stmts.
1565 * passes.def (pass_all_optimizations): Move pass_object_sizes
1566 after the first pass_forwprop and before pass_fre.
1568 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1570 * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
1571 * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
1572 (tree_ctz): Remove cast to unsigned type.
1573 * builtins.c (fold_builtin_memory_op): Likewise.
1574 * dwarf2out.c (descr_info_loc): Likewise.
1575 * godump.c (go_output_typedef): Likewise.
1576 * omp-low.c (expand_omp_simd): Likewise.
1577 * stor-layout.c (excess_unit_span): Likewise.
1578 * tree-object-size.c (addr_object_size): Likewise.
1579 * tree-sra.c (analyze_all_variable_accesses): Likewise.
1580 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
1581 (simplify_rotate): Likewise.
1582 * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
1583 (handle_pointer_plus): Likewise.
1584 * tree-switch-conversion.c (check_range): Likewise.
1585 * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
1586 * tsan.c (instrument_builtin_call): Likewise.
1587 * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
1588 * trans-mem.c (tm_log_add): Likewise.
1589 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
1590 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
1591 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
1592 * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
1594 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1596 * tree.h (host_integerp, tree_low_cst): Delete.
1597 * tree.c (host_integerp, tree_low_cst): Delete.
1599 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1601 * expr.h: Update comments to refer to tree_to_[su]hwi rather
1603 * fold-const.c (fold_binary_loc): Likewise.
1604 * expr.c (store_constructor): Use tree_to_uhwi rather than
1606 * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
1607 * stmt.c (emit_case_dispatch_table): Likewise.
1608 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
1610 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1612 * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
1613 config/aarch64/aarch64.c, config/alpha/predicates.md,
1614 config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
1615 config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
1616 config/mep/mep-pragma.c, config/mips/mips.c,
1617 config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
1618 dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
1619 function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
1620 predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
1621 tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
1622 tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
1623 tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
1624 tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
1625 tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
1626 Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
1628 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1630 * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
1631 config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
1632 config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
1633 coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
1634 fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
1635 predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
1636 tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
1637 tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
1638 tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
1639 tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
1640 Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
1642 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1644 * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
1645 * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
1647 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1649 * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
1652 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1654 * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
1655 config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
1656 gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
1657 tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
1658 tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
1659 tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
1660 tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
1661 config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
1662 config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
1663 config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
1664 gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
1665 tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
1666 tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
1667 tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
1668 tree_fits_uhwi_p throughout.
1670 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1672 * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
1673 config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
1674 config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
1675 expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
1676 gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
1677 omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
1678 stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
1679 tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
1680 tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
1681 tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
1682 tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
1683 tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
1684 varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
1687 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1689 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
1690 * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
1692 2013-11-18 Kirill Yukhin <kirill.yukhin@intel.com>
1694 * gcc/config/ia64/ia64.c (ia64_split_tmode_move): Mark load with
1695 `dead' flag if it kills address, not its post-increment.
1697 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
1699 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
1700 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
1701 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
1702 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
1703 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
1704 (gimple_call_with_bounds_p): New.
1705 (gimple_call_set_with_bounds): New.
1706 (gimple_call_num_nobnd_args): Remove.
1707 (gimple_call_nobnd_arg): Remove.
1708 * tree.h (CALL_WITH_BOUNDS_P): New.
1709 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
1711 2013-11-18 Trevor Saunders <tsaunders@mozilla.com>
1713 * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
1714 (symtab_node_name): Rename to symtab_node::name.
1715 (cgraph_node_asm_name): Remove.
1716 (varpool_node_asm_name): Remove.
1717 * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
1718 ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
1719 ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
1720 ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
1721 tree-ssa-structalias.c value-prof.c varpool.c Adjust.
1723 2013-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1725 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
1726 * config/arm/arm.c (arm_cortex_a53_tune): New.
1727 * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
1729 2013-11-12 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1731 * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
1732 (case ${target}): Add bdver4.
1733 * config/i386/bdver3.md: Add bdver4.
1734 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
1735 -march=native recognize bdver4 processors.
1736 * config/i386/i386-c.c (ix86_target_macros_internal): Add
1737 bdver4 def_and_undef
1738 * config/i386/i386.c (struct processor_costs bdver4_cost): New.
1739 (m_BDVER4): New definition.
1740 (m_AMD_MULTIPLE): Includes m_BDVER4.
1741 (processor_target_table): Add bdver4 entry.
1742 (static const char *const cpu_names): Add bdver4 entry.
1743 (software_prefetching_beneficial_p): Add bdver3.
1744 (ix86_option_override_internal): Add bdver4 instruction sets.
1745 (ix86_issue_rate): Add bdver4.
1746 (ix86_adjust_cost): Add bdver4.
1747 (ia32_multipass_dfa_lookahead): Add bdver4.
1748 (enum processor_model): Add M_AMDFAM15H_BDVER4.
1749 (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
1750 (has_dispatch): Add bdver4.
1751 * config/i386/i386.h (TARGET_BDVER4): New definition.
1752 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
1753 (enum processor_type): Add PROCESSOR_BDVER4.
1754 * config/i386/i386.md (define_attr "cpu"): Add bdver4.
1755 * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
1756 * gcc/doc/extend.texi: Add details about bdver4.
1757 * gcc/doc/invoke.texi: Add details about bdver4. Add
1758 fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
1760 2013-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1762 * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
1763 sdmode_stack_slot also in little-endian mode.
1765 2013-11-17 Jan Hubicka <jh@suse.cz>
1767 * doc/md.texi (setmem, movstr): Update documentation.
1768 * builtins.c (determine_block_size): New function.
1769 (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
1770 (expand_builtin_memset_args): Use it and pass it to
1771 set_storage_via_setmem.
1772 * expr.c (emit_block_move_via_movmem): Add min_size/max_size
1773 parameters; update call to expander.
1774 (emit_block_move_hints): Add min_size/max_size parameters.
1775 (clear_storage_hints): Likewise.
1776 (set_storage_via_setmem): Likewise.
1777 (clear_storage): Update.
1778 * expr.h (emit_block_move_hints, clear_storage_hints,
1779 set_storage_via_setmem): Update prototypes.
1780 * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
1781 (ix86_expand_movmem, ix86_expand_setmem): Remove.
1782 (ix86_expand_movmem, ix86_expand_setmem): Remove.
1783 * i386.md (movmem, setmem): Pass parameters.
1785 2013-11-17 Uros Bizjak <ubizjak@gmail.com>
1788 * config/i386/i386.c (ix86_address_subreg_operand): Do not
1789 reject non-integer subregs.
1790 (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
1791 Move check for invalid x32 constant addresses ...
1792 (ix86_legitimate_address_p): ... here.
1794 2011-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1796 * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
1797 parameter and use it in REG_FRAME_RELATED_EXPR note.
1798 (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
1800 (rs6000_emit_prologue): Likewise, but for little endian VSX
1801 stores, pass the source register of the store instead.
1803 2013-11-17 Andrew MacLeod <amacleod@redhat.com>
1805 * gimple.h: Reorder prototypes to match .c declaration order, and
1806 remove protyotypes for functions not in gimple.c.
1807 (LABEL): Move to tree-into-ssa.c.
1808 * gimple.c: Remove unused prototypes.
1809 (get_base_address): Move to tree.c.
1810 * tree.c (get_base_address): Relocate from gimple.c.
1811 * builtins.h (validate_gimple_arglist): Add prototype.
1812 * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
1813 * cfgexpand.h: New File.
1814 (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
1815 * tree.h (build_addr): Move to tree-nested.h.
1816 * tree-nested.h: New File.
1817 (build_addr, lower_nested_functions, insert_field_into_struct): Add
1819 * tree-inline.h (estimated_stack_frame_size): Remove prototype.
1820 * ipa-inline-analysis.c: Include cfgexpand.h.
1821 * cgraphunit.c: Include tree-nested.h.
1822 * omp-low.c: Likewise.
1823 * tree-parloops.c: Likewise.
1824 * gimple-low.h: Likewise.
1825 * tree-profile.h: Likewise.
1826 * expr.c: Include cfgexpand.h.
1827 * tree-affine.c: Likewise.
1828 * tree-ssa.c: Likewise.
1829 * tree-ssa-loop-im.c: Include trans-mem.h.
1830 * tree-ssa-tail-merge.c: Likewise.
1831 * value-prof.c: Include builtins.h and tree-nested.h.
1832 * tree-into-ssa.c (LABEL): Define here.
1834 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
1836 * config/arc/arc.c (arc_predicate_delay_insns): New function.
1837 (pass_data_arc_predicate_delay_insns): New pass_data instance.
1838 (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
1839 (make_pass_arc_predicate_delay_insns): New function.
1840 (arc_init): Register pass_arc_predicate_delay_insns if
1841 flag_delayed_branch is active.
1843 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
1845 * config/arc/constraints.md (Rcq): Simplify register number test.
1847 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
1849 * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
1851 2013-11-15 Kaz Kojima <kkojima@gcc.gnu.org>
1853 * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
1856 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
1858 * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
1859 * gimple-pretty-print.c (dump_omp_for): Add case for
1860 GF_OMP_FOR_KIND_CILKSIMD.
1861 * gimple.h (enum gf_mask): Restructure entries to add
1862 GF_OMP_FOR_KIND_CILKSIMD.
1863 * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
1864 (gimplify_omp_for): Handle CILK_SIMD.
1865 (gimplify_expr): Add ccase for CILK_SIMD.
1866 * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
1867 (build_outer_var_ref): Same.
1868 (check_omp_nesting_restrictions): Same.
1869 (lower_rec_input_clauses): Same.
1870 (lower_lastprivate_clauses): Same.
1871 (expand_omp_for): Same.
1872 (execute_expand_omp): Check flag_enable_cilkplus.
1873 (execute_lower_omp): Same.
1874 (diagnose_sb_0): Handle CILK_SIMD.
1875 (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
1876 (setjmp_or_longjmp_p): New.
1877 (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
1878 * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
1879 * tree.def: Add tree code for CILK_SIMD.
1881 2013-11-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1883 * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
1885 (altivec_vperm_<mode>): Revert earlier little endian change.
1886 (*altivec_vperm_<mode>_internal): Remove.
1887 (altivec_vperm_<mode>_uns): Revert earlier little endian change.
1888 (*altivec_vperm_<mode>_uns_internal): Remove.
1889 * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
1891 2013-11-15 Jeff Law <law@redhat.com>
1893 * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
1894 has_abnormal_or_outgoing_edge. Check for EH edges as well.
1895 * gimple-ssa-isolate-paths.c
1896 (find_implicit_erroneous_behaviour): Corresponding changes.
1897 Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
1898 (find_explicit_erroneous_behaviour): Likewise.
1900 2013-11-15 Jeff Law <law@redhat.com>
1902 * ifcvt.c (find_cond_trap): Properly handle case where
1905 2013-11-15 Andreas Schwab <schwab@linux-m68k.org>
1907 * configure: Regenerate.
1909 2013-11-15 James Greenhalgh <james.greenhalgh@arm.com>
1911 * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
1912 * config/aarch64/aarch64.md: Likewise, correct "type" attribute
1913 where it is incorrect or missing.
1915 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
1917 * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
1919 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
1920 Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
1922 * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
1923 pair with a TREE_CODE test and TREE_INT_CST_LOW.
1924 * tree-vect-generic.c (expand_vector_divmod): Likewise.
1926 2013-11-15 Richard Biener <rguenther@suse.de>
1928 PR tree-optimization/50262
1929 * tree-ssa-alias.h (struct pt_solution): Split
1930 vars_contains_global into vars_contains_nonlocal,
1931 vars_contains_escaped and vars_contains_escaped_heap.
1932 * tree-ssa-structalias.c (label_visit): Expand comment.
1933 (handle_lhs_call): Adjust comment.
1934 (set_uids_in_ptset): Set the new flags appropriately.
1935 (pt_solution_set): Adjust.
1936 (pt_solution_set_var): Likewise.
1937 (pt_solution_ior_into): Likewise.
1938 (pt_solution_includes_global): Likewise.
1939 (pt_solutions_intersect_1): Optimize escaped handling.
1940 (compute_points_to_sets): Remove heap variable globalization.
1941 (ipa_escaped_pt): Adjust initializer.
1942 (pass_data_ipa_pta): Do not run TODO_update_ssa.
1943 * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
1944 * tree-ssa-alias.c (dump_points_to_solution): Likewise.
1946 2013-11-15 Richard Biener <rguenther@suse.de>
1948 * tree-loop-distribution.c (tree_loop_distribution): Make sure
1949 to distribute all stores.
1951 2013-11-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1953 * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
1955 2013-11-15 Joseph Myers <joseph@codesourcery.com>
1957 * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
1958 * configure.ac: Determine target_header_dir earlier.
1959 (--with-glibc-version): New configure option.
1960 Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
1961 gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
1962 * configure: Regenerate.
1963 * doc/install.texi (--enable-gnu-unique-object): Don't refer to
1964 native toolchains for default.
1965 (--with-glibc-version): Document.
1967 2013-11-15 Eric Botcazou <ebotcazou@adacore.com>
1969 * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
1971 2013-11-15 Uros Bizjak <ubizjak@gmail.com>
1973 * lto-streamer-in.c (input function): Call cgraph_create_node if
1974 cgraph_get_node failed.
1976 2013-11-14 Olivier Hainque <hainque@adacore.com>
1978 * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
1979 defer allocation of DECL_IGNORED_P variables at toplevel unless really
1980 small. Factorize size threshold computation from the existing one.
1981 (expand_used_vars): Refine comment.
1983 2013-11-14 Cong Hou <congh@google.com>
1985 * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
1986 address field as it can be obtained from dr. Rename the struct.
1987 * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
1988 steps of data references during sort.
1989 (vect_prune_runtime_alias_test_list): Adjust with the change to
1990 struct dr_with_seg_len.
1991 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
1992 Adjust with the change to struct dr_with_seg_len.
1994 2013-11-14 Jeff Law <law@redhat.com>
1997 * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
1998 * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
1999 * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
2000 (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
2001 edges, then ignore it. If the statement exhibiting erroneous
2002 behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
2003 then we can not optimize.
2004 (find_explicit_erroneous_behaviour): Likewise.
2006 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
2008 * gimplify-me.h: New file. Add prototypes.
2009 * gimplify.h: Don't include gimple.h.
2010 (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
2011 Relocate from gimple.h.
2012 * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
2013 is_gimple_sizepos): Move to gimplify.h.
2014 (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
2015 (enum gsi_iterator_update): Move to gimple-iterator.h.
2016 * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
2017 * gimplify-me.c: New File.
2018 (force_gimple_operand_1, force_gimple_operand,
2019 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
2020 gimple_regimplify_operands): Relocate from gimplify.c.
2021 * gimplify.c (force_gimple_operand_1, force_gimple_operand,
2022 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
2023 gimple_regimplify_operands): Move to gimplify-me.c.
2024 (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
2026 * Makefile.in (OBJS): Add gimplify-me.o
2027 * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
2029 * cfgloopmanip.c: Likewise.
2030 * cgraphunit.c: Likewise.
2031 * cilk-common.c: Likewise.
2032 * fold-const.c: Likewise.
2033 * function.c: Likewise.
2034 * gimple-expr.c: Likewise.
2035 * gimple-fold.c: Likewise.
2036 * gimple-ssa-strength-reduction.c: Likewise.
2037 * gimple.c: Likewise.
2038 * graphite-clast-to-gimple.c: Likewise.
2039 * graphite-sese-to-poly.c: Likewise.
2040 * ipa-prop.c: Likewise.
2041 * ipa-split.c: Likewise.
2043 * langhooks.c: Likewise.
2044 * omp-low.c: Likewise.
2046 * stor-layout.c: Likewise.
2047 * targhooks.c: Likewise.
2048 * trans-mem.c: Likewise.
2049 * tree-affine.c: Likewise.
2050 * tree-cfg.c: Likewise.
2051 * tree-cfgcleanup.c: Likewise.
2052 * tree-complex.c: Likewise.
2053 * tree-if-conv.c: Likewise.
2054 * tree-inline.c: Likewise.
2055 * tree-loop-distribution.c: Likewise.
2056 * tree-nested.c: Likewise.
2057 * tree-parloops.c: Likewise.
2058 * tree-predcom.c: Likewise.
2059 * tree-profile.c: Likewise.
2060 * tree-scalar-evolution.c: Likewise.
2061 * tree-sra.c: Likewise.
2062 * tree-ssa-address.c: Likewise.
2063 * tree-ssa-ccp.c: Likewise.
2064 * tree-ssa-dce.c: Likewise.
2065 * tree-ssa-forwprop.c: Likewise.
2066 * tree-ssa-ifcombine.c: Likewise.
2067 * tree-ssa-loop-im.c: Likewise.
2068 * tree-ssa-loop-ivopts.c: Likewise.
2069 * tree-ssa-loop-manip.c: Likewise.
2070 * tree-ssa-loop-niter.c: Likewise.
2071 * tree-ssa-loop-prefetch.c: Likewise.
2072 * tree-ssa-loop-unswitch.c: Likewise.
2073 * tree-ssa-math-opts.c: Likewise.
2074 * tree-ssa-phiopt.c: Likewise.
2075 * tree-ssa-phiprop.c: Likewise.
2076 * tree-ssa-pre.c: Likewise.
2077 * tree-ssa-propagate.c: Likewise.
2078 * tree-ssa-reassoc.c: Likewise.
2079 * tree-ssa-sccvn.c: Likewise.
2080 * tree-ssa-strlen.c: Likewise.
2081 * tree-ssa.c: Likewise.
2082 * tree-switch-conversion.c: Likewise.
2083 * tree-tailcall.c: Likewise.
2084 * tree-vect-data-refs.c: Likewise.
2085 * tree-vect-generic.c: Likewise.
2086 * tree-vect-loop-manip.c: Likewise.
2087 * tree-vect-loop.c: Likewise.
2088 * tree-vect-patterns.c: Likewise.
2089 * tree-vect-stmts.c: Likewise.
2092 * value-prof.c: Likewise.
2093 * config/aarch64/aarch64.c: Likewise.
2094 * config/alpha/alpha.c: Likewise.
2095 * config/darwin.c: Likewise.
2096 * config/i386/i386.c: Likewise.
2097 * config/ia64/ia64.c: Likewise.
2098 * config/mep/mep.c: Likewise.
2099 * config/mips/mips.c: Likewise.
2100 * config/rs6000/rs6000.c: Likewise.
2101 * config/s390/s390.c: Likewise.
2102 * config/sh/sh.c: Likewise.
2103 * config/sparc/sparc.c: Likewise.
2104 * config/spu/spu.c: Likewise.
2105 * config/stormy16/stormy16.c: Likewise.
2106 * config/tilegx/tilegx.c: Likewise.
2107 * config/tilepro/tilepro.c: Likewise.
2108 * config/xtensa/xtensa.c: Likewise.
2110 2013-11-14 Diego Novillo <dnovillo@google.com>
2112 * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
2114 2013-11-14 Diego Novillo <dnovillo@google.com>
2116 * tree.h: Include fold-const.h.
2117 (aggregate_value_p): Moved to function.h.
2118 (alloca_call_p): Moved to calls.h.
2119 (allocate_struct_function): Moved to function.h.
2120 (apply_tm_attr): Moved to attribs.h.
2121 (array_at_struct_end_p): Moved to expr.h.
2122 (array_ref_element_size): Moved to tree-dfa.h.
2123 (array_ref_low_bound): Moved to tree-dfa.h.
2124 (array_ref_up_bound): Moved to tree.h.
2125 (assemble_alias): Moved to cgraph.h.
2126 (bit_from_pos): Moved to stor-layout.h.
2127 (build_addr): Moved to tree-nested.h.
2128 (build_duplicate_type): Moved to tree-inline.h.
2129 (build_fold_addr_expr): Moved to fold-const.h.
2130 (build_fold_addr_expr_with_type): Moved to fold-const.h.
2131 (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
2132 (build_fold_indirect_ref): Moved to fold-const.h.
2133 (build_fold_indirect_ref_loc): Moved to fold-const.h.
2134 (build_personality_function): Moved to tree.h.
2135 (build_range_check): Moved to fold-const.h.
2136 (build_simple_mem_ref): Moved to fold-const.h.
2137 (build_simple_mem_ref_loc): Moved to fold-const.h.
2138 (build_tm_abort_call): Moved to trans-mem.h.
2139 (byte_from_pos): Moved to stor-layout.h.
2140 (call_expr_flags): Moved to calls.h.
2141 (can_move_by_pieces): Moved to expr.h.
2142 (categorize_ctor_elements): Moved to expr.h.
2143 (change_decl_assembler_name): Moved to gcc-symtab.h.
2144 (combine_comparisons): Moved to fold-const.h.
2145 (complete_ctor_at_level_p): Moved to tree.h.
2146 (component_ref_field_offset): Moved to tree-dfa.h.
2147 (compute_builtin_object_size): Moved to tree-object-size.h.
2148 (compute_record_mode): Moved to stor-layout.h.
2149 (constant_boolean_node): Moved to fold-const.h.
2150 (constructor_static_from_elts_p): Moved to varasm.h.
2151 (cxx11_attribute_p): Moved to attribs.h.
2152 (debug_body): Moved to print-tree.h.
2153 (debug_find_tree): Moved to tree-inline.h.
2154 (debug_fold_checksum): Moved to fold-const.h.
2155 (debug_head): Moved to print-tree.h.
2156 (debug_head): Moved to print-tree.h.
2157 (debug_raw): Moved to print-tree.h.
2158 (debug_tree): Moved to print-tree.h.
2159 (debug_vec_tree): Moved to print-tree.h.
2160 (debug_verbose): Moved to print-tree.h.
2161 (debug_verbose): Moved to print-tree.h.
2162 (decl_attributes): Moved to attribs.h.
2163 (decl_binds_to_current_def_p): Moved to varasm.h.
2164 (decl_default_tls_model): Moved to varasm.h.
2165 (decl_replaceable_p): Moved to varasm.h.
2166 (div_if_zero_remainder): Moved to fold-const.h.
2167 (double_int mem_ref_offset): Moved to fold-const.h.
2168 (dump_addr): Moved to print-tree.h.
2169 (element_precision): Moved to machmode.h.
2170 (expand_dummy_function_end): Moved to function.h.
2171 (expand_function_end): Moved to function.h.
2172 (expand_function_start): Moved to function.h.
2173 (expand_label): Moved to stmt.h.
2174 (expr_first): Moved to tree-iterator.h.
2175 (expr_last): Moved to tree-iterator.h.
2176 (finalize_size_functions): Moved to stor-layout.h.
2177 (finish_builtin_struct): Moved to stor-layout.h.
2178 (finish_record_layout): Moved to stor-layout.h.
2179 (fixup_signed_type): Moved to stor-layout.h.
2180 (fixup_unsigned_type): Moved to stor-layout.h.
2181 (flags_from_decl_or_type): Moved to calls.h.
2182 (fold): Moved to fold-const.h.
2183 (fold_abs_const): Moved to fold-const.h.
2184 (fold_binary): Moved to fold-const.h.
2185 (fold_binary_loc): Moved to fold-const.h.
2186 (fold_binary_to_constant): Moved to fold-const.h.
2187 (fold_build1): Moved to fold-const.h.
2188 (fold_build1_initializer_loc): Moved to fold-const.h.
2189 (fold_build1_loc): Moved to fold-const.h.
2190 (fold_build1_stat_loc): Moved to fold-const.h.
2191 (fold_build2): Moved to fold-const.h.
2192 (fold_build2_initializer_loc): Moved to fold-const.h.
2193 (fold_build2_loc): Moved to fold-const.h.
2194 (fold_build2_stat_loc): Moved to fold-const.h.
2195 (fold_build3): Moved to fold-const.h.
2196 (fold_build3_loc): Moved to fold-const.h.
2197 (fold_build3_stat_loc): Moved to fold-const.h.
2198 (fold_build_call_array): Moved to fold-const.h.
2199 (fold_build_call_array_initializer): Moved to fold-const.h.
2200 (fold_build_call_array_initializer_loc): Moved to fold-const.h.
2201 (fold_build_call_array_loc): Moved to fold-const.h.
2202 (fold_build_cleanup_point_expr): Moved to fold-const.h.
2203 (fold_convert): Moved to fold-const.h.
2204 (fold_convert_loc): Moved to fold-const.h.
2205 (fold_convertible_p): Moved to fold-const.h.
2206 (fold_defer_overflow_warnings): Moved to fold-const.h.
2207 (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
2208 (fold_fma): Moved to fold-const.h.
2209 (fold_ignored_result): Moved to fold-const.h.
2210 (fold_indirect_ref): Moved to fold-const.h.
2211 (fold_indirect_ref_1): Moved to fold-const.h.
2212 (fold_indirect_ref_loc): Moved to fold-const.h.
2213 (fold_read_from_constant_string): Moved to fold-const.h.
2214 (fold_real_zero_addition_p): Moved to fold-const.h.
2215 (fold_single_bit_test): Moved to fold-const.h.
2216 (fold_strip_sign_ops): Moved to fold-const.h.
2217 (fold_ternary): Moved to fold-const.h.
2218 (fold_ternary_loc): Moved to fold-const.h.
2219 (fold_unary): Moved to tree-data-ref.h.
2220 (fold_unary_ignore_overflow): Moved to fold-const.h.
2221 (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
2222 (fold_unary_loc): Moved to fold-const.h.
2223 (fold_unary_to_constant): Moved to fold-const.h.
2224 (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
2225 (fold_undefer_overflow_warnings): Moved to fold-const.h.
2226 (folding_initializer): Moved to fold-const.h.
2227 (free_temp_slots): Moved to function.h.
2228 (generate_setjmp_warnings): Moved to function.h.
2229 (get_attribute_name): Moved to attribs.h.
2230 (get_identifier): Moved to stringpool.h.
2231 (get_identifier_with_length): Moved to stringpool.h.
2232 (get_inner_reference): Moved to tree.h.
2233 (gimple_alloca_call_p): Moved to calls.h.
2234 (gimplify_parameters): Moved to function.h.
2235 (highest_pow2_factor): Moved to expr.h.
2236 (indent_to): Moved to print-tree.h.
2237 (init_attributes): Moved to attribs.h.
2238 (init_dummy_function_start): Moved to function.h.
2239 (init_function_start): Moved to function.h.
2240 (init_inline_once): Moved to tree-inline.h.
2241 (init_object_sizes): Moved to tree-object-size.h.
2242 (init_temp_slots): Moved to function.h.
2243 (init_tree_optimization_optabs): Moved to optabs.h.
2244 (initialize_sizetypes): Moved to stor-layout.h.
2245 (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
2246 (initializer_constant_valid_p): Moved to varasm.h.
2247 (int_const_binop): Moved to fold-const.h.
2248 (internal_reference_types): Moved to stor-layout.h.
2249 (invert_tree_comparison): Moved to fold-const.h.
2250 (invert_truthvalue): Moved to fold-const.h.
2251 (invert_truthvalue_loc): Moved to fold-const.h.
2252 (is_tm_ending_fndecl): Moved to trans-mem.h.
2253 (is_tm_may_cancel_outer): Moved to trans-mem.h.
2254 (is_tm_pure): Moved to trans-mem.h.
2255 (is_tm_safe): Moved to trans-mem.h.
2256 (layout_decl): Moved to stor-layout.h.
2257 (layout_type): Moved to stor-layout.h.
2258 (lookup_attribute_spec): Moved to attribs.h.
2259 (make_accum_type): Moved to stor-layout.h.
2260 (make_decl_one_only): Moved to varasm.h.
2261 (make_decl_rtl): Moved to tree.h.
2262 (make_decl_rtl_for_debug): Moved to varasm.h.
2263 (make_fract_type): Moved to stor-layout.h.
2264 (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
2265 (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
2266 (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
2267 (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
2268 (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
2269 (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
2270 (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
2271 (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
2272 (make_range): Moved to fold-const.h.
2273 (make_range_step): Moved to fold-const.h.
2274 (make_sat_signed_accum_type): Moved to stor-layout.h.
2275 (make_sat_signed_fract_type): Moved to stor-layout.h.
2276 (make_sat_unsigned_accum_type): Moved to stor-layout.h.
2277 (make_sat_unsigned_fract_type): Moved to stor-layout.h.
2278 (make_signed_accum_type): Moved to stor-layout.h.
2279 (make_signed_fract_type): Moved to stor-layout.h.
2280 (make_signed_type): Moved to stor-layout.h.
2281 (make_unsigned_accum_type): Moved to stor-layout.h.
2282 (make_unsigned_fract_type): Moved to stor-layout.h.
2283 (make_unsigned_type): Moved to stor-layout.h.
2284 (mark_decl_referenced): Moved to varasm.h.
2285 (mark_referenced): Moved to varasm.h.
2286 (may_negate_without_overflow_p): Moved to fold-const.h.
2287 (maybe_get_identifier): Moved to stringpool.h.
2288 (merge_ranges): Moved to fold-const.h.
2289 (merge_weak): Moved to varasm.h.
2290 (mode_for_size_tree): Moved to stor-layout.h.
2291 (multiple_of_p): Moved to fold-const.h.
2292 (must_pass_in_stack_var_size): Moved to calls.h.
2293 (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
2294 (native_encode_expr): Moved to fold-const.h.
2295 (native_interpret_expr): Moved to fold-const.h.
2296 (non_lvalue): Moved to fold-const.h.
2297 (non_lvalue_loc): Moved to fold-const.h.
2298 (normalize_offset): Moved to stor-layout.h.
2299 (normalize_rli): Moved to stor-layout.h.
2300 (notice_global_symbol): Moved to varasm.h.
2301 (omit_one_operand): Moved to fold-const.h.
2302 (omit_one_operand_loc): Moved to fold-const.h.
2303 (omit_two_operands): Moved to fold-const.h.
2304 (omit_two_operands_loc): Moved to fold-const.h.
2305 (operand_equal_p): Moved to tree-data-ref.h.
2306 (parse_input_constraint): Moved to stmt.h.
2307 (parse_output_constraint): Moved to stmt.h.
2308 (place_field): Moved to stor-layout.h.
2309 (pop_function_context): Moved to function.h.
2310 (pop_temp_slots): Moved to function.h.
2311 (pos_from_bit): Moved to stor-layout.h.
2312 (preserve_temp_slots): Moved to function.h.
2313 (print_node): Moved to print-tree.h.
2314 (print_node_brief): Moved to print-tree.h.
2315 (print_rtl): Moved to rtl.h.
2316 (process_pending_assemble_externals): Moved to varasm.h.
2317 (ptr_difference_const): Moved to fold-const.h.
2318 (push_function_context): Moved to function.h.
2319 (push_struct_function): Moved to function.h.
2320 (push_temp_slots): Moved to function.h.
2321 (record_tm_replacement): Moved to trans-mem.h.
2322 (relayout_decl): Moved to stor-layout.h.
2323 (resolve_asm_operand_names): Moved to stmt.h.
2324 (resolve_unique_section): Moved to varasm.h.
2325 (rli_size_so_far): Moved to stor-layout.h.
2326 (rli_size_unit_so_far): Moved to stor-layout.h.
2327 (round_down): Moved to fold-const.h.
2328 (round_down_loc): Moved to fold-const.h.
2329 (round_up): Moved to fold-const.h.
2330 (round_up_loc): Moved to fold-const.h.
2331 (set_decl_incoming_rtl): Moved to emit-rtl.h.
2332 (set_decl_rtl): Moved to tree.h.
2333 (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
2334 (set_user_assembler_name): Moved to varasm.h.
2335 (setjmp_call_p): Moved to calls.h.
2336 (size_binop): Moved to fold-const.h.
2337 (size_binop_loc): Moved to fold-const.h.
2338 (size_diffop): Moved to fold-const.h.
2339 (size_diffop_loc): Moved to fold-const.h.
2340 (size_int_kind): Moved to fold-const.h.
2341 (stack_protect_epilogue): Moved to function.h.
2342 (start_record_layout): Moved to stor-layout.h.
2343 (supports_one_only): Moved to varasm.h.
2344 (swap_tree_comparison): Moved to fold-const.h.
2345 (tm_malloc_replacement): Moved to trans-mem.h.
2346 (tree build_fold_addr_expr_loc): Moved to fold-const.h.
2347 (tree build_invariant_address): Moved to fold-const.h.
2348 (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
2349 (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
2350 (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
2351 (tree_expr_nonnegative_p): Moved to fold-const.h.
2352 (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
2353 (tree_output_constant_def): Moved to varasm.h.
2354 (tree_overlaps_hard_reg_set): Moved to stmt.h.
2355 (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
2356 (tree_single_nonzero_warnv_p): Moved to fold-const.h.
2357 (tree_swap_operands_p): Moved to fold-const.h.
2358 (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
2359 (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
2360 (update_alignment_for_field): Moved to stor-layout.h.
2361 (use_register_for_decl): Moved to function.h.
2362 (variable_size): Moved to rtl.h.
2363 (vector_type_mode): Moved to stor-layout.h.
2364 * cgraph.h: Corresponding changes.
2365 * emit-rtl.h: Corresponding changes.
2366 * expr.h: Corresponding changes.
2367 * function.h: Corresponding changes.
2368 * optabs.h: Corresponding changes.
2369 * trans-mem.h: Corresponding changes.
2370 Protect against multiple inclusion.
2371 * tree-inline.h: Corresponding changes.
2372 * tree-iterator.h: Corresponding changes.
2373 * tree-dfa.h: Include expr.h.
2374 * tree-ssanames.h: Include stringpool.h.
2375 * attribs.h: New file.
2376 * calls.h: New file.
2377 * fold-const.h: New file.
2378 * gcc-symtab.h: New file.
2379 * print-rtl.h: New file.
2380 * print-tree.h: New file.
2382 * stor-layout.h: New file.
2383 * strinpool.h: New file.
2384 * tree-nested.h: New file
2385 * tree-object-size.h: New file.
2386 * varasm.h: New file.
2388 2013-11-14 Diego Novillo <dnovillo@google.com>
2390 * alias.c: Include varasm.h.
2392 * asan.c: Include calls.h.
2393 Include stor-layout.h.
2395 * attribs.c: Include stringpool.h.
2397 Include stor-layout.h.
2398 * builtins.c: Include stringpool.h.
2399 Include stor-layout.h.
2402 Include tree-object-size.h.
2403 * calls.c: Include stor-layout.h.
2405 Include stringpool.h.
2407 * cfgexpand.c: Include stringpool.h.
2409 Include stor-layout.h.
2411 Include print-tree.h.
2412 * cgraph.c: Include varasm.h.
2414 Include print-tree.h.
2415 * cgraphclones.c: Include stringpool.h.
2418 Move inclusion of rtl.h earlier in the file.
2419 * cgraphunit.c: Include varasm.h.
2420 Include stor-layout.h.
2421 Include stringpool.h.
2422 * cilk-common.c: Include stringpool.h.
2423 Include stor-layout.h.
2424 * combine.c: Include stor-layout.h.
2425 * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
2426 Include stringpool.h.
2428 * config/aarch64/aarch64.c: Include stringpool.h.
2429 Include stor-layout.h.
2432 * config/alpha/alpha.c: Include stor-layout.h.
2435 * config/arc/arc.c: Include varasm.h.
2436 Include stor-layout.h.
2437 Include stringpool.h.
2439 * config/arm/arm.c: Include stringpool.h.
2440 Include stor-layout.h.
2443 * config/avr/avr-c.c: Include stor-layout.h.
2444 * config/avr/avr-log.c: Include print-tree.h.
2445 * config/avr/avr.c: Include print-tree.h.
2447 Include stor-layout.h.
2448 Include stringpool.h.
2449 * config/bfin/bfin.c: Include varasm.h.
2451 * config/c6x/c6x.c: Include stor-layout.h.
2454 Include stringpool.h.
2455 * config/cr16/cr16.c: Include stor-layout.h.
2457 * config/cris/cris.c: Include varasm.h.
2458 Include stor-layout.h.
2461 * config/darwin.c: Include stringpool.h.
2463 Include stor-layout.h.
2464 * config/epiphany/epiphany.c: Include stor-layout.h.
2467 Include stringpool.h.
2468 * config/fr30/fr30.c: Include stor-layout.h.
2470 * config/frv/frv.c: Include varasm.h.
2471 Include stor-layout.h.
2472 Include stringpool.h.
2473 * config/h8300/h8300.c: Include stor-layout.h.
2476 Include stringpool.h.
2477 * config/i386/i386.c: Include stringpool.h.
2480 Include stor-layout.h.
2482 * config/i386/winnt-cxx.c: Include stringpool.h.
2484 * config/i386/winnt.c: Include stringpool.h.
2486 * config/ia64/ia64-c.c: Include stringpool.h.
2487 * config/ia64/ia64.c: Include stringpool.h.
2488 Include stor-layout.h.
2491 * config/iq2000/iq2000.c: Include stor-layout.h.
2494 * config/lm32/lm32.c: Include calls.h.
2495 * config/m32c/m32c.c: Include stor-layout.h.
2498 * config/m32r/m32r.c: Include stor-layout.h.
2500 Include stringpool.h.
2502 * config/m68k/m68k.c: Include calls.h.
2503 Include stor-layout.h.
2505 * config/mcore/mcore.c: Include stor-layout.h.
2507 Include stringpool.h.
2509 * config/mep/mep.c: Include varasm.h.
2511 Include stringpool.h.
2512 Include stor-layout.h.
2513 * config/microblaze/microblaze.c: Include varasm.h.
2514 Include stor-layout.h.
2516 * config/mips/mips.c: Include varasm.h.
2517 Include stringpool.h.
2518 Include stor-layout.h.
2520 * config/mmix/mmix.c: Include varasm.h.
2521 Include stor-layout.h.
2523 * config/mn10300/mn10300.c: Include stor-layout.h.
2526 * config/moxie/moxie.c: Include stor-layout.h.
2529 * config/msp430/msp430.c: Include stor-layout.h.
2531 * config/nds32/nds32.c: Include stor-layout.h.
2534 * config/pa/pa.c: Include stor-layout.h.
2535 Include stringpool.h.
2538 * config/pdp11/pdp11.c: Include stor-layout.h.
2541 * config/picochip/picochip.c: Include calls.h.
2542 Include stor-layout.h.
2543 Include stringpool.h.
2545 * config/rl78/rl78.c: Include varasm.h.
2546 Include stor-layout.h.
2548 * config/rs6000/rs6000-c.c: Include stor-layout.h.
2549 Include stringpool.h.
2550 * config/rs6000/rs6000.c: Include stringpool.h.
2551 Include stor-layout.h.
2553 Include print-tree.h.
2555 * config/rx/rx.c: Include varasm.h.
2556 Include stor-layout.h.
2558 * config/s390/s390.c: Include print-tree.h.
2559 Include stringpool.h.
2560 Include stor-layout.h.
2563 * config/score/score.c: Include stringpool.h.
2566 Include stor-layout.h.
2567 * config/sh/sh-c.c: Include stringpool.h.
2568 Include attribs.h.h.
2569 * config/sh/sh.c: Include stringpool.h.
2570 Include stor-layout.h.
2573 * config/sol2-c.c: Include stringpool.h.
2575 * config/sol2-cxx.c: Include stringpool.h.
2576 * config/sol2.c: Include stringpool.h.
2578 * config/sparc/sparc.c: Include stringpool.h.
2579 Include stor-layout.h.
2582 * config/spu/spu-c.c: Include stringpool.h.
2583 * config/spu/spu.c: Include stringpool.h.
2584 Include stor-layout.h.
2587 * config/stormy16/stormy16.c: Include stringpool.h.
2588 Include stor-layout.h.
2591 * config/tilegx/tilegx.c: Include stringpool.h.
2592 Include stor-layout.h.
2595 * config/tilepro/tilepro.c: Include stringpool.h.
2596 Include stor-layout.h.
2599 * config/v850/v850-c.c: Include stringpool.h.
2601 * config/v850/v850.c: Include stringpool.h.
2602 Include stor-layout.h.
2605 * config/vax/vax.c: Include calls.h.
2607 * config/vms/vms.c: Include stringpool.h.
2608 * config/vxworks.c: Include stringpool.h.
2609 * config/xtensa/xtensa.c: Include stringpool.h.
2610 Include stor-layout.h.
2613 * convert.c: Include stor-layout.h.
2614 * coverage.c: Include stringpool.h.
2615 Include stor-layout.h.
2616 * dbxout.c: Include varasm.h.
2617 Include stor-layout.h.
2618 * dojump.c: Include stor-layout.h.
2619 * dse.c: Include stor-layout.h.
2620 * dwarf2asm.c: Include stringpool.h.
2622 * dwarf2cfi.c: Include stor-layout.h.
2623 * dwarf2out.c: Include rtl.h.
2624 Include stringpool.h.
2625 Include stor-layout.h.
2629 Move inclusion of rtl.h earlier in the file.
2630 * emit-rtl.c: Include varasm.h.
2631 * except.c: Include stringpool.h.
2632 Include stor-layout.h.
2633 * explow.c: Include stor-layout.h.
2634 * expmed.c: Include stor-layout.h.
2635 * expr.c: Include stringpool.h.
2636 Include stor-layout.h.
2639 * final.c: Include varasm.h.
2640 * fold-const.c: Include stor-layout.h.
2642 Include tree-iterator.h.
2643 * function.c: Include stor-layout.h.
2645 Include stringpool.h.
2646 * genattrtab.c (write_header): Emit includes for varasm.h,
2647 stor-layout.h and calls.h.
2648 * genautomata.c (main): Likewise.
2649 * genemit.c: Likewise.
2650 * genopinit.c: Likewise.
2651 * genoutput.c (output_prologue): Likewise.
2652 * genpeep.c: Likewise.
2653 * genpreds.c (write_insn_preds_c): Likewise.
2654 * gengtype.c (open_base_files): Add stringpool.h.
2655 * gimple-expr.c: Include stringpool.h.
2656 Include stor-layout.h.
2657 * gimple-fold.c: Include stringpool.h.
2660 Include stor-layout.h.
2661 * gimple-low.c: Include tree-nested.h.
2663 * gimple-pretty-print.c: Include stringpool.h.
2664 * gimple-ssa-strength-reduction.c: Include stor-layout.h.
2666 * gimple-walk.c: Include stmt.h.
2667 * gimple.c: Include calls.h.
2669 Include stor-layout.h.
2670 * gimplify.c: Include stringpool.h.
2673 Include stor-layout.h.
2675 Include print-tree.h.
2677 * gimplify-me.c: Include stmt.h
2678 Include stor-layout.h
2679 * internal-fn.c: Include stor-layout.h.
2680 * ipa-devirt.c: Include print-tree.h.
2682 * ipa-inline-analysis.c: Include stor-layout.h.
2683 Include stringpool.h.
2684 Include print-tree.h.
2685 * ipa-inline.c: Include trans-mem.h.
2687 * ipa-prop.c: Include expr.h.
2688 Include stor-layout.h.
2689 Include print-tree.h.
2690 * ipa-pure-const.c: Include print-tree.h.
2692 * ipa-reference.c: Include calls.h.
2693 * ipa-split.c: Include stringpool.h.
2696 * ipa.c: Include calls.h.
2697 Include stringpool.h.
2698 * langhooks.c: Include stringpool.h.
2700 * lto-cgraph.c: Include stringpool.h.
2701 * lto-streamer-in.c: Include stringpool.h.
2702 * lto-streamer-out.c: Include stor-layout.h.
2703 Include stringpool.h.
2704 * omp-low.c: Include stringpool.h.
2705 Include stor-layout.h.
2707 * optabs.c: Include stor-layout.h.
2708 Include stringpool.h.
2710 * passes.c: Include varasm.h.
2711 * predict.c: Include calls.h.
2712 * print-rtl.c: Include print-tree.h.
2713 * print-tree.c: Include varasm.h.
2714 Include print-rtl.h.
2715 Include stor-layout.h.
2716 * realmpfr.c: Include stor-layout.h.
2717 * reg-stack.c: Include varasm.h.
2718 * sdbout.c: Include varasm.h.
2719 Include stor-layout.h.
2720 * simplify-rtx.c: Include varasm.h.
2721 * stmt.c: Include varasm.h.
2722 Include stor-layout.h.
2723 * stor-layout.c: Include stor-layout.h.
2724 Include stringpool.h.
2726 Include print-tree.h.
2727 * symtab.c: Include rtl.h.
2728 Include print-tree.h.
2732 * targhooks.c: Include stor-layout.h.
2734 * toplev.c: Include varasm.h.
2735 Include tree-inline.h.
2736 * trans-mem.c: Include calls.h.
2740 * tree-affine.c: Include expr.h.
2741 * tree-browser.c: Include print-tree.h.
2742 * tree-call-cdce.c: Include stor-layout.h.
2743 * tree-cfg.c: Include trans-mem.h.
2744 Include stor-layout.h.
2745 Include print-tree.h.
2746 * tree-complex.c: Include stor-layout.h.
2747 * tree-data-ref.c: Include expr.h.
2748 * tree-dfa.c: Include stor-layout.h.
2749 * tree-eh.c: Include expr.h.
2751 * tree-emutls.c: Include stor-layout.h.
2753 * tree-if-conv.c: Include stor-layout.h.
2754 * tree-inline.c: Include stor-layout.h.
2756 * tree-loop-distribution.c: Include stor-layout.h.
2757 * tree-nested.c: Include stringpool.h.
2758 Include stor-layout.h.
2759 * tree-object-size.c: Include tree-object-size.h.
2760 * tree-outof-ssa.c: Include stor-layout.h.
2761 * tree-parloops.c: Include stor-layout.h.
2762 Include tree-nested.h.
2763 * tree-pretty-print.c: Include stor-layout.h.
2765 * tree-profile.c: Include varasm.h.
2766 Include tree-nested.h.
2767 * tree-scalar-evolution.c: Include expr.h.
2768 * tree-sra.c: Include stor-layout.h.
2769 * tree-ssa-address.c: Include stor-layout.h.
2770 * tree-ssa-ccp.c: Include stor-layout.h.
2771 * tree-ssa-dce.c: Include calls.h.
2772 * tree-ssa-dom.c: Include stor-layout.h.
2773 * tree-ssa-forwprop.c: Include stor-layout.h.
2774 * tree-ssa-ifcombine.c: Include stor-layout.h.
2775 * tree-ssa-loop-ivopts.c: Include stor-layout.h.
2776 * tree-ssa-loop-niter.c: Include calls.h.
2778 * tree-ssa-loop-prefetch.c: Include stor-layout.h.
2779 * tree-ssa-math-opts.c: Include stor-layout.h.
2780 * tree-ssa-operands.c: Include stmt.h.
2781 Include print-tree.h.
2782 * tree-ssa-phiopt.c: Include stor-layout.h.
2783 * tree-ssa-reassoc.c: Include stor-layout.h.
2784 * tree-ssa-sccvn.c: Include stor-layout.h.
2785 * tree-ssa-sink.c: Include stor-layout.h.
2786 * tree-ssa-strlen.c: Include stor-layout.h.
2787 * tree-ssa-structalias.c: Include stor-layout.h.
2789 * tree-ssa-tail-merge.c: Include stor-layout.h.
2790 Include trans-mem.h.
2791 * tree-ssa-uncprop.c: Include stor-layout.h.
2792 * tree-ssa.c: Include stor-layout.h.
2793 * tree-ssanames.c: Include stor-layout.h.
2794 * tree-streamer-in.c: Include stringpool.h.
2795 * tree-streamer-out.c: Include stor-layout.h.
2796 * tree-switch-conversion.c: Include varasm.h.
2797 Include stor-layout.h.
2798 * tree-tailcall.c: Include stor-layout.h.
2799 * tree-vect-data-refs.c: Include stor-layout.h.
2800 * tree-vect-generic.c: Include stor-layout.h.
2801 * tree-vect-loop.c: Include stor-layout.h.
2802 * tree-vect-patterns.c: Include stor-layout.h.
2803 * tree-vect-slp.c: Include stor-layout.h.
2804 * tree-vect-stmts.c: Include stor-layout.h.
2805 * tree-vectorizer.c: Include stor-layout.h.
2806 * tree-vrp.c: Include stor-layout.h.
2808 * tree.c: Include stor-layout.h.
2812 * tsan.c: Include expr.h.
2813 * ubsan.c: Include stor-layout.h.
2814 Include stringpool.h.
2815 * value-prof.c: Include tree-nested.h.
2817 * var-tracking.c: Include varasm.h.
2818 Include stor-layout.h.
2819 * varasm.c: Include stor-layout.h.
2820 Include stringpool.h.
2821 Include gcc-symtab.h.
2823 * varpool.c: Include varasm.h.
2824 * vmsdbgout.c: Include varasm.h.
2825 * xcoffout.c: Include varasm.h.
2827 2013-11-14 Joern Rennecke <joern.rennecke@embecosm.com>
2829 * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
2832 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2834 * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
2836 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2837 Alan Modra <amodra@gmail.com>
2839 * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
2840 (RS6000_SAVE_TOC): Remove.
2841 (RS6000_TOC_SAVE_SLOT): New macro.
2842 * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
2843 (rs6000_parm_start): Use it.
2844 (rs6000_function_arg_advance_1): Likewise.
2845 (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
2846 (rs6000_emit_epilogue): Likewise.
2847 (rs6000_call_aix): Likewise.
2848 (rs6000_output_function_prologue): Do not save/restore r11
2849 around calling _mcount for ABI_ELFv2.
2851 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2852 Alan Modra <amodra@gmail.com>
2854 * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
2856 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
2857 (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
2858 * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
2859 (rs6000_function_parms_need_stack): Likewise.
2860 (rs6000_reg_parm_stack_space): Likewise.
2861 (rs6000_function_arg): Do not replace BLKmode by Pmode when
2862 returning a register argument.
2864 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2865 Michael Gschwind <mkg@us.ibm.com>
2867 * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
2868 (ALTIVEC_ARG_MAX_RETURN): Likewise.
2869 (FUNCTION_VALUE_REGNO_P): Use them.
2870 * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
2871 (rs6000_return_in_msb): New function.
2872 (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
2873 Handle aggregates of up to 16 bytes for ELFv2.
2874 (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
2876 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2877 Michael Gschwind <mkg@us.ibm.com>
2879 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
2880 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
2881 (rs6000_discover_homogeneous_aggregate): Likewise.
2882 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
2883 (rs6000_function_arg_advance_1): Likewise.
2884 (rs6000_function_arg): Likewise.
2885 (rs6000_arg_partial_bytes): Likewise.
2886 (rs6000_psave_function_arg): Handle BLKmode arguments.
2888 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2889 Michael Gschwind <mkg@us.ibm.com>
2891 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
2892 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
2893 (rs6000_discover_homogeneous_aggregate): Likewise.
2894 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
2895 (rs6000_function_arg_advance_1): Likewise.
2896 (rs6000_function_arg): Likewise.
2897 (rs6000_arg_partial_bytes): Likewise.
2898 (rs6000_psave_function_arg): Handle BLKmode arguments.
2900 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2902 * config/rs6000/rs6000.c (machine_function): New member
2904 (rs6000_emit_prologue): Set r2_setup_needed if necessary.
2905 (rs6000_output_mi_thunk): Set r2_setup_needed.
2906 (rs6000_output_function_prologue): Output global entry point
2907 prologue and local entry point marker if needed for ABI_ELFv2.
2908 Output -mprofile-kernel code here.
2909 (output_function_profiler): Do not output -mprofile-kernel
2910 code here; moved to rs6000_output_function_prologue.
2911 (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
2913 (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
2914 (rs6000_output_function_entry): Likewise.
2915 (rs6000_assemble_integer): Likewise.
2916 (rs6000_elf_encode_section_info): Likewise.
2917 (rs6000_elf_declare_function_name): Do not create dot symbols
2918 or .opd section for ABI_ELFv2.
2920 (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
2921 (rs6000_trampoline_init): Likewise.
2922 (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
2924 (rs6000_call_aix): Handle ELFv2 indirect calls. Do not check
2925 for function descriptors in ABI_ELFv2.
2927 * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
2928 on ABI_AIX only, not ABI_ELFv2.
2929 ("*call_value_indirect_aix<mode>"): Likewise.
2930 ("*call_indirect_elfv2<mode>"): New pattern.
2931 ("*call_value_indirect_elfv2<mode>"): Likewise.
2933 * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
2934 check for function descriptors in ABI_ELFv2.
2935 ("current_file_function_operand"): Likewise.
2937 * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
2939 (FUNC_NAME): Define ELFv2 variant.
2940 (JUMP_TARGET): Likewise.
2941 (FUNC_START): Likewise.
2942 (HIDDEN_FUNC): Likewise.
2943 (FUNC_END): Likeiwse.
2945 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2947 * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
2948 and --with-abi=elfv2.
2949 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
2950 * config/rs6000/rs6000.opt (mabi=elfv1): New option.
2951 (mabi=elfv2): Likewise.
2952 * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
2953 * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
2955 (ELFv2_ABI_CHECK): New macro.
2956 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
2957 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
2958 (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
2959 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
2960 _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
2962 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
2963 (debug_stack_info): Likewise.
2964 (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
2965 (rs6000_legitimize_tls_address): Likewise.
2966 (rs6000_conditional_register_usage): Likewise.
2967 (rs6000_emit_move): Likewise.
2968 (init_cumulative_args): Likewise.
2969 (rs6000_function_arg_advance_1): Likewise.
2970 (rs6000_function_arg): Likewise.
2971 (rs6000_arg_partial_bytes): Likewise.
2972 (rs6000_output_function_entry): Likewise.
2973 (rs6000_assemble_integer): Likewise.
2974 (rs6000_savres_strategy): Likewise.
2975 (rs6000_stack_info): Likewise.
2976 (rs6000_function_ok_for_sibcall): Likewise.
2977 (rs6000_emit_load_toc_table): Likewise.
2978 (rs6000_savres_routine_name): Likewise.
2979 (ptr_regno_for_savres): Likewise.
2980 (rs6000_emit_prologue): Likewise.
2981 (rs6000_emit_epilogue): Likewise.
2982 (rs6000_output_function_epilogue): Likewise.
2983 (output_profile_hook): Likewise.
2984 (output_function_profiler): Likewise.
2985 (rs6000_trampoline_size): Likewise.
2986 (rs6000_trampoline_init): Likewise.
2987 (rs6000_elf_output_toc_section_asm_op): Likewise.
2988 (rs6000_elf_encode_section_info): Likewise.
2989 (rs6000_elf_reloc_rw_mask): Likewise.
2990 (rs6000_elf_declare_function_name): Likewise.
2991 (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
2992 except that rs6000_compat_align_parm is always assumed false.
2993 (rs6000_gimplify_va_arg): Likewise.
2994 (rs6000_call_aix): Update comment.
2995 (rs6000_sibcall_aix): Likewise.
2996 * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
2997 Treat ABI_ELFv2 the same as ABI_AIX.
2998 ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
2999 ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
3000 ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
3001 ("load_toc_aix_si"): Likewise.
3002 ("load_toc_aix_di"): Likewise.
3004 ("call_value"): Likewise.
3005 ("*call_local_aix<mode>"): Likewise.
3006 ("*call_value_local_aix<mode>"): Likewise.
3007 ("*call_nonlocal_aix<mode>"): Likewise.
3008 ("*call_value_nonlocal_aix<mode>"): Likewise.
3009 ("*call_indirect_aix<mode>"): Likewise.
3010 ("*call_value_indirect_aix<mode>"): Likewise.
3011 ("sibcall"): Likewise.
3012 ("sibcall_value"): Likewise.
3013 ("*sibcall_aix<mode>"): Likewise.
3014 ("*sibcall_value_aix<mode>"): Likewise.
3015 * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
3016 ("current_file_function_operand"): Likewise.
3018 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3020 * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
3021 by making use of the fact that for vector / floating point arguments
3022 passed both in VRs/FPRs and in the fixed parameter area, the partial
3023 bytes mechanism is in fact not used.
3025 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3027 * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
3028 (rs6000_finish_function_arg): Likewise.
3029 (rs6000_function_arg): Use rs6000_psave_function_arg and
3030 rs6000_finish_function_arg to handle both vector and floating
3031 point arguments that are also passed in GPRs / the stack.
3033 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3035 * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
3036 (USE_ALTIVEC_FOR_ARG_P): Likewise.
3037 (rs6000_darwin64_record_arg_advance_recurse): Update uses.
3038 (rs6000_function_arg_advance_1):Likewise.
3039 (rs6000_darwin64_record_arg_recurse): Likewise.
3040 (rs6000_function_arg): Likewise.
3041 (rs6000_arg_partial_bytes): Likewise.
3043 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3045 * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
3046 "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
3047 (rs6000_savres_strategy): Likewise.
3048 (rs6000_return_addr): Likewise.
3049 (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
3050 testing for ABI_V4 (since ABI_DARWIN is impossible here).
3051 (rs6000_emit_prologue): Likewise.
3052 (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
3053 (rs6000_elf_declare_function_name): Remove duplicated test.
3054 * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
3055 for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
3056 ("load_toc_v4_PIC_1_normal"): Likewise.
3057 ("load_toc_v4_PIC_1_476"): Likewise.
3058 ("load_toc_v4_PIC_1b"): Likewise.
3059 ("load_toc_v4_PIC_1b_normal"): Likewise.
3060 ("load_toc_v4_PIC_1b_476"): Likewise.
3061 ("load_toc_v4_PIC_2"): Likewise.
3062 ("load_toc_v4_PIC_3b"): Likewise.
3063 ("load_toc_v4_PIC_3c"): Likewise.
3064 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
3065 (RS6000_SAVE_AREA): Likewise.
3066 (FP_ARG_MAX_REG): Likewise.
3067 (RETURN_ADDRESS_OFFSET): Likewise.
3068 * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
3070 (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
3071 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
3073 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3075 * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
3076 (rs6000_call_aix): ... this. Handle both direct and indirect calls.
3077 Create call insn directly instead of via various gen_... routines.
3078 Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
3079 (rs6000_sibcall_aix): New function.
3080 * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
3081 (TOC_SAVE_OFFSET_64BIT): Likewise.
3082 (AIX_FUNC_DESC_TOC_32BIT): Likewise.
3083 (AIX_FUNC_DESC_TOC_64BIT): Likewise.
3084 (AIX_FUNC_DESC_SC_32BIT): Likewise.
3085 (AIX_FUNC_DESC_SC_64BIT): Likewise.
3086 ("call" expander): Call rs6000_call_aix.
3087 ("call_value" expander): Likewise.
3088 ("call_indirect_aix<ptrsize>"): Replace this pattern ...
3089 ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
3090 ("*call_indirect_aix<mode>"): ... by this insn pattern.
3091 ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
3092 ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
3093 ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
3094 ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
3095 ("*call_nonlocal_aix<mode>"): ... this pattern.
3096 ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
3097 ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
3098 ("*call_local_aix<mode>"): New insn pattern.
3099 ("*call_value_local_aix<mode>"): Likewise.
3100 ("sibcall" expander): Call rs6000_sibcall_aix.
3101 ("sibcall_value" expander): Likewise. Move earlier in file.
3102 ("*sibcall_nonlocal_aix<mode>"): Replace by ...
3103 ("*sibcall_aix<mode>"): ... this pattern.
3104 ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
3105 ("*sibcall_value_aix<mode>"): ... this pattern.
3106 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
3107 (rs6000_call_aix): Add prototype.
3108 (rs6000_sibcall_aix): Likewise.
3110 2013-11-14 Jakub Jelinek <jakub@redhat.com>
3113 * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
3114 isn't confused by the artificial decl.
3116 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3118 * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
3119 RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
3120 Instead, add USEs of all modified call-saved CR fields to the
3121 insn storing the result to the stack slot, and provide an
3122 appropriate REG_FRAME_RELATED_EXPR for that insn.
3123 * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
3124 * config/rs6000/predicates.md ("crsave_operation"): New predicate.
3126 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3127 Alan Modra <amodra@gmail.com>
3129 * function.c (assign_parms): Use all.reg_parm_stack_space instead
3130 of re-evaluating REG_PARM_STACK_SPACE target macro.
3131 (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE. Use it
3132 instead of evaluating target macro REG_PARM_STACK_SPACE every time.
3133 (assign_parm_find_entry_rtl): Update call.
3134 * calls.c (initialize_argument_information): Update call.
3135 (emit_library_call_value_1): Likewise.
3136 * expr.h (locate_and_pad_parm): Update prototype.
3138 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3140 * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
3143 2013-11-14 DJ Delorie <dj@redhat.com>
3145 * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
3148 2013-11-14 Jeff Law <law@redhat.com>
3150 * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
3151 EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
3153 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
3155 * doc/invoke.texi: Update documentation for AArch64's -mcpu
3158 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
3160 * config/aarch64/aarch64-cores.def (example-1): Remove.
3161 (example-2): Likewise.
3162 * config/aarch64/aarch64-tune.md: Regenerate.
3163 * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
3164 (generic_sched): Remove "large", "small".
3165 * config/aarch64/large.md: Delete.
3166 * config/aarch64/small.md: Delete.
3168 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
3170 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
3171 * config/aarch64/aarch64-tune.md: Regenerate.
3172 * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
3173 (generic_sched): "no" if we are tuning for cortexa15.
3174 * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
3177 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
3179 * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
3180 * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
3181 * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
3182 (all_cores): Use cortexa53 when tuning for "generic".
3183 (aarch64_override_options): Fix comment.
3184 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
3185 * config/aarch64/aarch64-generic.md: Delete.
3187 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
3189 * config/aarch64/aarch64.c (all_architectures): Remove "generic".
3191 2013-11-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3193 * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
3194 (generic_rtx_cost_table): Remove.
3195 (aarch64_rtx_costs): Use fields from cpu_cost_table.
3196 * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
3198 (cpu_rtx_cost_table): Remove.
3200 2013-11-14 Julian Brown <julian@codesourcery.com>
3201 Joey Ye <joey.ye@arm.com>
3203 * config/arm/arm.c (arm_cortex_m_branch_cost): New.
3204 (arm_v7m_tune): New.
3205 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
3206 arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
3207 arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
3208 * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
3210 2013-11-14 Kirill Yukhin <kirill.yukhin@intel.com>
3213 * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
3216 2013-11-14 Jakub Jelinek <jakub@redhat.com>
3217 Uros Bizjak <ubizjak@gmail.com>
3220 * config/i386/i386.md (*anddi_2): Only allow CCZmode if
3221 operands[2] satisfies_constraint_Z that might have bit 31 set.
3223 2013-11-13 Jeff Law <law@redhat.com>
3225 PR tree-optimization/59102
3226 * gimple-ssa-isolate-paths.c
3227 (insert_trap_and_remove_trailing_statments): Ensure STMT is a
3228 gimple assignment before looking at gimple_assign_lhs.
3230 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
3232 * ira.c: Add comment about threads at the top of file.
3234 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
3236 * ira-color.c (coalesce_allocnos): Don't allocate and free
3239 2013-11-14 Tom de Vries <tom@codesourcery.com>
3241 * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
3242 equality for GIMPLE_ASSIGN.
3244 2013-11-14 Tom de Vries <tom@codesourcery.com>
3246 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
3248 (gimple_equal_p): ... here.
3250 2013-11-14 Tom de Vries <tom@codesourcery.com>
3252 * trans-mem.c (is_tm_ending): New function.
3253 * gimple.h (is_tm_ending): Declare.
3254 * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
3256 (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
3258 2013-11-14 Tom de Vries <tom@codesourcery.com>
3260 * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
3262 2013-11-13 Andrew MacLeod <amacleod@redhat.com>
3264 * gimple-walk.h: New File. Relocate prototypes from gimple.h.
3265 (struct walk_stmt_info): Relocate here from gimple.h.
3266 * gimple-iterator.h: New File. Relocate prototypes from gimple.h.
3267 (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
3268 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
3269 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
3270 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
3271 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
3272 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
3273 * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
3274 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
3275 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
3276 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
3277 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
3278 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
3279 (struct walk_stmt_info): Move to gimple-walk.h.
3280 (gimple_seq_set_location): Move to gimple.c
3281 * gimple-walk.c: New File.
3282 (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
3283 walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
3284 walk_stmt_load_store_ops): Relocate here from gimple.c.
3285 * gimple-iterator.c: Include gimple-iterator.h.
3286 * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
3287 walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
3288 walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
3290 (gimple_seq_set_location): Relocate from gimple.h.
3291 * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
3292 * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
3293 * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
3294 * Makefile.in (OBJS): Add gimple-walk.o
3295 * asan.c: Update Include list as required for gimple-iterator.h and
3297 * cfgexpand.c: Likewise.
3298 * cfgloop.c: Likewise.
3299 * cfgloopmanip.c: Likewise.
3300 * cgraph.c: Likewise.
3301 * cgraphbuild.c: Likewise.
3302 * cgraphunit.c: Likewise.
3303 * gimple-fold.c: Likewise.
3304 * gimple-low.c: Likewise.
3305 * gimple-pretty-print.c: Likewise.
3306 * gimple-ssa-isolate-paths.c: Likewise.
3307 * gimple-ssa-strength-reduction.c: Likewise.
3308 * gimple-streamer-in.c: Likewise.
3309 * gimple-streamer-out.c: Likewise.
3310 * gimplify.c: Likewise.
3311 * graphite-blocking.c: Likewise.
3312 * graphite-clast-to-gimple.c: Likewise.
3313 * graphite-dependences.c: Likewise.
3314 * graphite-interchange.c: Likewise.
3315 * graphite-optimize-isl.c: Likewise.
3316 * graphite-poly.c: Likewise.
3317 * graphite-scop-detection.c: Likewise.
3318 * graphite-sese-to-poly.c: Likewise.
3319 * graphite.c: Likewise.
3320 * ipa-inline-analysis.c: Likewise.
3321 * ipa-profile.c: Likewise.
3322 * ipa-prop.c: Likewise.
3323 * ipa-pure-const.c: Likewise.
3324 * ipa-split.c: Likewise.
3325 * lto-streamer-in.c: Likewise.
3326 * lto-streamer-out.c: Likewise.
3327 * omp-low.c: Likewise.
3328 * predict.c: Likewise.
3329 * profile.c: Likewise.
3331 * tracer.c: Likewise.
3332 * trans-mem.c: Likewise.
3333 * tree-call-cdce.c: Likewise.
3334 * tree-cfg.c: Likewise.
3335 * tree-cfgcleanup.c: Likewise.
3336 * tree-complex.c: Likewise.
3337 * tree-data-ref.c: Likewise.
3338 * tree-dfa.c: Likewise.
3339 * tree-eh.c: Likewise.
3340 * tree-emutls.c: Likewise.
3341 * tree-if-conv.c: Likewise.
3342 * tree-inline.c: Likewise.
3343 * tree-into-ssa.c: Likewise.
3344 * tree-loop-distribution.c: Likewise.
3345 * tree-nested.c: Likewise.
3346 * tree-nrv.c: Likewise.
3347 * tree-object-size.c: Likewise.
3348 * tree-outof-ssa.c: Likewise.
3349 * tree-parloops.c: Likewise.
3350 * tree-predcom.c: Likewise.
3351 * tree-profile.c: Likewise.
3352 * tree-scalar-evolution.c: Likewise.
3353 * tree-sra.c: Likewise.
3354 * tree-ssa-ccp.c: Likewise.
3355 * tree-ssa-coalesce.c: Likewise.
3356 * tree-ssa-copy.c: Likewise.
3357 * tree-ssa-copyrename.c: Likewise.
3358 * tree-ssa-dce.c: Likewise.
3359 * tree-ssa-dom.c: Likewise.
3360 * tree-ssa-dse.c: Likewise.
3361 * tree-ssa-forwprop.c: Likewise.
3362 * tree-ssa-ifcombine.c: Likewise.
3363 * tree-ssa-live.c: Likewise.
3364 * tree-ssa-loop-ch.c: Likewise.
3365 * tree-ssa-loop-im.c: Likewise.
3366 * tree-ssa-loop-ivcanon.c: Likewise.
3367 * tree-ssa-loop-ivopts.c: Likewise.
3368 * tree-ssa-loop-manip.c: Likewise.
3369 * tree-ssa-loop-niter.c: Likewise.
3370 * tree-ssa-loop-prefetch.c: Likewise.
3371 * tree-ssa-loop.c: Likewise.
3372 * tree-ssa-math-opts.c: Likewise.
3373 * tree-ssa-phiopt.c: Likewise.
3374 * tree-ssa-phiprop.c: Likewise.
3375 * tree-ssa-pre.c: Likewise.
3376 * tree-ssa-propagate.c: Likewise.
3377 * tree-ssa-reassoc.c: Likewise.
3378 * tree-ssa-sink.c: Likewise.
3379 * tree-ssa-strlen.c: Likewise.
3380 * tree-ssa-structalias.c: Likewise.
3381 * tree-ssa-tail-merge.c: Likewise.
3382 * tree-ssa-ter.c: Likewise.
3383 * tree-ssa-threadedge.c: Likewise.
3384 * tree-ssa-threadupdate.c: Likewise.
3385 * tree-ssa-uncprop.c: Likewise.
3386 * tree-ssa-uninit.c: Likewise.
3387 * tree-ssa.c: Likewise.
3388 * tree-stdarg.c: Likewise.
3389 * tree-switch-conversion.c: Likewise.
3390 * tree-tailcall.c: Likewise.
3391 * tree-vect-data-refs.c: Likewise.
3392 * tree-vect-generic.c: Likewise.
3393 * tree-vect-loop-manip.c: Likewise.
3394 * tree-vect-loop.c: Likewise.
3395 * tree-vect-patterns.c: Likewise.
3396 * tree-vect-slp.c: Likewise.
3397 * tree-vect-stmts.c: Likewise.
3398 * tree-vectorizer.c: Likewise.
3399 * tree-vrp.c: Likewise.
3402 * value-prof.c: Likewise.
3403 * vtable-verify.c: Likewise.
3405 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
3407 * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
3410 2013-11-13 Jeff Law <law@redhat.com>
3412 * PR middle-end/59119
3413 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
3414 function, extracted from gimple_ssa_isolate_erroneous_paths.
3415 (find_explicit_erroneous_behaviour): Similarly.
3416 (insert_trap_and_remove_trailing_statements): Remove statements
3419 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
3421 * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
3422 Make that check explicit. BB_HEAD cannot be NULL, remove check for it.
3423 * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
3424 looking at INSN_CODE.
3425 * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
3426 active_insn_p object, respect basic block boundaries.
3427 * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
3428 follows immediately after the jump table data label.
3429 * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
3430 * config/sh/sh.c (barrier_align): Likewise. Rearrange code such
3431 that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
3433 2013-11-13 Teresa Johnson <tejohnson@google.com>
3436 * predict.c (drop_profile): Error is currently too strict.
3437 (handle_missing_profiles): Pass call_count to drop_profile.
3439 2013-11-13 Teresa Johnson <tejohnson@google.com>
3442 * ipa-inline.c (edge_badness): Fix overflow.
3444 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
3446 PR rtl-optimization/59036
3447 * ira-color.c (struct allocno_color_data): Add new members
3448 first_thread_allocno, next_thread_allocno, thread_freq.
3449 (sorted_copies): New static var.
3450 (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
3451 (allocno_thread_conflict_p, merge_threads)
3452 (form_threads_from_copies, form_threads_from_bucket)
3453 (form_threads_from_colorable_allocno, init_allocno_threads): New
3455 (bucket_allocno_compare_func): Add comparison by thread frequency
3457 (add_allocno_to_ordered_bucket): Rename to
3458 add_allocno_to_ordered_colorable_bucket. Remove parameter.
3459 (push_only_colorable): Call form_threads_from_bucket.
3460 (color_pass): Call init_allocno_threads. Use
3461 consideration_allocno_bitmap instead of coloring_allocno_bitmap
3462 for nuillify allocno color data.
3463 (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
3464 (coalesce_allocnos): Use static sorted copies.
3466 2013-11-13 Jakub Jelinek <jakub@redhat.com>
3468 * passes.c (execute_todo): Don't call do_per_function if
3470 (execute_one_ipa_transform_pass, execute_one_pass): Don't call
3471 execute_function_dump if dump_file is NULL.
3473 2013-11-13 Martin Jambor <mjambor@suse.cz>
3475 * cgraph.c (cgraph_get_create_node): Do what
3476 cgraph_get_create_real_symbol_node used to do.
3477 (cgraph_get_create_real_symbol_node): Removed. Changed all users to
3478 call cgraph_get_create_node.
3479 * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
3480 * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
3481 cgraph_get_create_node. Assert we get a node.
3483 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
3485 * config/aarch64/aarch64-simd.md (vec_extract): New.
3487 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
3489 * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
3492 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
3494 * cfgexpand.c (expand_used_vars): Allocate space for partitions based
3495 on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
3496 or if optimization is enabled.
3497 * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
3498 require that all the names based on a PARM_DECL or a RESULT_DECL that
3499 isn't ignored for debug info be coalesced.
3501 2013-11-13 Jan-Benedict Glaw <jbglaw@lug-owl.de>
3503 * config/c6x/c6x.c: Include "gimple-expr.h".
3505 2013-11-13 Richard Biener <rguenther@suse.de>
3507 * gimple-streamer-out.c (output_gimple_stmt): Also wrap
3508 decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
3509 * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
3510 dealing with type mismatches inside component reference chains.
3512 2013-11-13 Marc Glisse <marc.glisse@inria.fr>
3514 PR tree-optimization/59077
3515 * ipa-pure-const.c (better_state): Update *state.
3517 2013-11-13 Christophe Lyon <christophe.lyon@linaro.org>
3519 * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
3520 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
3521 Update offset calculations.
3523 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
3526 * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
3527 for fields. Do not add the attribute if the size is negative.
3529 2013-11-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3531 * config/arm/arm.c: Include aarch-cost-tables.h.
3532 (generic_extra_costs): Move from here...
3533 * config/arm/aarch-cost-tables.h: ... To here. New file.
3535 2013-11-13 Alexander Ivchenko <alexander.ivchenko@intel.com>
3536 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3537 Sergey Lega <sergey.s.lega@intel.com>
3538 Anna Tikhonova <anna.tikhonova@intel.com>
3539 Ilya Tocar <ilya.tocar@intel.com>
3540 Andrey Turetskiy <andrey.turetskiy@intel.com>
3541 Ilya Verbin <ilya.verbin@intel.com>
3542 Kirill Yukhin <kirill.yukhin@intel.com>
3543 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3545 * config/i386/i386.c (ix86_print_operand): Support z-masking.
3546 * config/i386/predicate.md (const_0_to_4_operand): New.
3547 (const_0_to_5_operand): Ditto.
3548 * config/i386/sse.md (UNSPEC_COMPRESS): New.
3549 (UNSPEC_COMPRESS_STORE): Ditto.
3550 (UNSPEC_EXPAND): Ditto.
3551 (UNSPEC_EMBEDDED_ROUNDING): Ditto.
3552 (define_mode_attr ssescalarsize): Ditto.
3553 (avx512f_load<mode>_mask): Ditto.
3554 (avx512f_store<mode>_mask): Ditto.
3555 (avx512f_storedqu<mode>_mask): Ditto.
3556 (avx512f_vmcmp<mode>3_mask): Ditto.
3557 (avx512f_fmadd_<mode>_mask): Ditto.
3558 (avx512f_fmadd_<mode>_mask3): Ditto.
3559 (avx512f_fmsub_<mode>_mask): Ditto.
3560 (avx512f_fmsub_<mode>_mask3): Ditto.
3561 (avx512f_fnmadd_<mode>_mask): Ditto.
3562 (avx512f_fnmadd_<mode>_mask3): Ditto.
3563 (avx512f_fnmsub_<mode>_mask): Ditto.
3564 (avx512f_fnmsub_<mode>_mask3): Ditto.
3565 (avx512f_fmaddsub_<mode>_mask): Ditto.
3566 (avx512f_fmaddsub_<mode>_mask3): Ditto.
3567 (avx512f_fmsubadd_<mode>_mask): Ditto.
3568 (avx512f_fmsubadd_<mode>_mask3): Ditto.
3569 (vec_unpacku_float_lo_v16si): Ditto.
3570 (avx512f_vextract<shuffletype>32x4_mask): Ditto.
3571 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
3572 (avx512f_vextract<shuffletype>64x4_mask): Ditto.
3573 (vec_extract_lo_<mode>_maskm): Ditto.
3574 (vec_extract_hi_<mode>_maskm): Ditto.
3575 (avx512f_vternlog<mode>_mask): Ditto.
3576 (avx512f_shufps512_mask): Ditto.
3577 (avx512f_fixupimm<mode>_mask): Ditto.
3578 (avx512f_shufpd512_mask): Ditto.
3579 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
3580 (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
3581 (*avx512f_<code>v8div16qi2_store_mask): Ditto.
3582 (ashr<mode>3<mask_name>): Ditto.
3583 (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
3584 (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
3585 (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
3586 (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
3587 (avx512f_pshufdv3_mask): Ditto.
3588 (avx512f_perm<mode>_mask): Ditto.
3589 (avx512f_vpermi2var<mode>3_mask): Ditto.
3590 (avx512f_vpermt2var<mode>3_mask): Ditto.
3591 (avx512f_compress<mode>_mask): Ditto.
3592 (avx512f_compressstore<mode>_mask): Ditto.
3593 (avx512f_expand<mode>_mask): Ditto.
3594 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
3596 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
3597 (<plusminus_insn><mode>3<mask_name>): Ditto.
3598 (*<plusminus_insn><mode>3<mask_name>): Ditto.
3599 (mul<mode>3<mask_name>): Ditto.
3600 (*mul<mode>3<mask_name>): Ditto.
3601 (<sse>_div<mode>3<mask_name>): Ditto.
3602 (<mask_codefor>rcp14<mode><mask_name>): Ditto.
3603 (<sse>_sqrt<mode>2<mask_name>): Ditto.
3604 (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
3605 (<code><mode>3<mask_name>/smaxmin): Ditto.
3606 (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
3607 (*<code><mode>3<mask_name>/smaxmin): Ditto.
3608 (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
3609 (ufloatv16siv16sf2<mask_name>): Ditto.
3610 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
3611 (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
3612 (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
3613 (float<si2dfmodelower><mode>2<mask_name>): Ditto.
3614 (ufloatv8siv8df<mask_name>): Ditto.
3615 (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
3616 (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
3617 (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
3618 (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
3619 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
3620 (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
3621 (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
3622 (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
3623 (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
3624 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
3625 (vec_extract_lo_<mode><mask_name>): Ditto.
3626 (vec_extract_hi_<mode><mask_name>): Ditto.
3627 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
3628 (avx512f_movddup512<mask_name>): Ditto.
3629 (avx512f_unpcklpd512<mask_name>): Ditto.
3630 (*avx512f_unpcklpd512<mask_name>): Ditto.
3631 (*avx512f_vmscalef<mode>): Ditto.
3632 (avx512f_scalef<mode><mask_name>): Ditto.
3633 (avx512f_getexp<mode><mask_name>): Ditto.
3634 (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
3635 (avx512f_rndscale<mode><mask_name>): Ditto.
3636 (avx512f_shufps512_1<mask_name>): Ditto.
3637 (avx512f_shufpd512_1<mask_name>): Ditto.
3638 (<plusminus_insn><mode>3<mask_name>): Ditto.
3639 (*<plusminus_insn><mode>3<mask_name>): Ditto.
3640 (vec_widen_umult_even_v16si<mask_name>): Ditto.
3641 (*vec_widen_umult_even_v16si<mask_name>): Ditto.
3642 (vec_widen_smult_even_v16si<mask_name>): Ditto.
3643 (*vec_widen_smult_even_v16si<mask_name>): Ditto.
3644 (mul<mode>3<mask_name>): Ditto.
3645 (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
3646 (<shift_insn><mode>3<mask_name>): Ditto.
3647 (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
3648 (avx512f_<rotate><mode><mask_name>): Ditto.
3649 (<code><mode>3<mask_name>/maxmin): Ditto.
3650 (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
3651 (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
3652 (*andnot<mode>3<mask_name>): Ditto.
3653 (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
3654 (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
3655 (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
3656 (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
3657 (vec_set_lo_<mode><mask_name>): Ditto.
3658 (vec_set_hi_<mode><mask_name>): Ditto.
3659 (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
3660 (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
3661 (avx512f_pshufd_1<mask_name>): Ditto.
3662 (<mask_codefor>abs<mode>2<mask_name>): Ditto.
3663 (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
3664 (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
3665 (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
3666 (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
3667 (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
3668 (avx512er_exp2<mode><mask_name>): Ditto.
3669 (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
3670 (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
3671 (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
3672 (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
3673 (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
3674 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
3675 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
3676 (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
3677 (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
3678 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
3679 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
3680 (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
3681 (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
3682 (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
3683 (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
3684 (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
3685 (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
3686 (avx512f_getmant<mode><mask_name>): Ditto.
3687 (clz<mode>2<mask_name>): Ditto.
3688 (<mask_codefor>conflict<mode><mask_name>): Ditto.
3689 (*srcp14<mode>): Remove visibility.
3690 (*rsqrt14<mode>): Ditto.
3691 (*fma_fmsub_<mode>): Ditto.
3692 (*fma_fnmadd_<mode>): Ditto.
3693 (*avx512f_rndscale<mode>): Ditto.
3694 * config/i386/subst.md: New file.
3696 2013-11-13 Joseph Myers <joseph@codesourcery.com>
3698 * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
3699 * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
3700 (atomic_load_explicit, atomic_exchange_explicit)
3701 (atomic_compare_exchange_strong_explicit)
3702 (atomic_compare_exchange_weak_explicit): Use __auto_type to
3703 declare variable initialized with PTR argument.
3705 2013-11-12 Jeff Law <law@redhat.com>
3707 * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
3708 backedge_seen_p. Set, use and pass it to children appropriately.
3709 (thread_through_normal_block): Similarly.
3710 (thread_across_edge): Similarly.
3712 * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
3713 memory references as volatile.
3714 (insert_trap_and_remove_trailing_statements): Fix comment.
3716 2013-11-12 Vladimir Makarov <vmakarov@redhat.com>
3719 * ira-costs.c (record_operand_costs): Check operands number for
3722 2013-11-12 Michael Meissner <meissner@linux.vnet.ibm.com>
3725 * config/rs6000/rs6000.md (movdi_internal32): Eliminate
3726 constraints that would allow DImode into the traditional Altivec
3727 registers, but cause undesirable code generation when loading 0 as
3729 (movdi_internal64): Likewise.
3730 (cmp<mode>_fpr): Do not use %x for CR register output.
3731 (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
3732 -mallow-upper-sf debug switches are used.
3734 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
3736 * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
3737 create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
3738 Relocate prototypes from gimple.h.
3739 * gimplify.h: New File. Relocate some prototypes from gimple.h here.
3740 (gimple_predicate, enum fallback, enum gimplify_status): Relocate
3742 * gimple.h: Move some prototypes to gimplify.h.
3743 (gimple_predicate, enum fallback, enum gimplify_status): Move to
3745 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
3746 Relocate from gimpify.c.
3747 * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
3748 create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
3749 is_gimple_reg_rhs) Relocate from gimplify.c.
3750 * gimplify.c (mark_addressable): Move to gimple-expr.c.
3751 (gimple_seq_add_stmt_without_update): Move to gimple.c.
3752 (remove_suffix, tmp_var_id_num, create_tmp_var_name,
3753 create_tmp_var_raw, create_tmp_var, create_tmp_reg,
3754 is_gimple_reg_rhs): Move to gimple-expr.c.
3755 (should_carry_location_p): Move to gimple.c.
3756 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
3758 (annotate_one_with_location, annotate_all_with_location_after,
3759 annotate_all_with_location): Move to gimple.c.
3760 (compare_case_labels, sort_case_labels,
3761 preprocess_case_label_vec_for_gimple): Move to gimple.c.
3762 (rhs_predicate_for): Make static.
3763 (gimplify_assign): Relocate from gimple.c.
3764 * gimple.c (gimplify_assign): Move to gimplify.c.
3765 (gimple_seq_add_stmt_without_update, should_carry_location_p,
3766 annotate_one_with_location, annotate_all_with_location_after,
3767 annotate_all_with_location, compare_case_labels, sort_case_labels,
3768 preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
3769 * tree.h (unshare_expr, unshare_expr_without_location,
3770 mark_addressable): Move prototypes to gimplify.h.
3771 * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
3773 * asan.c: Include gimplify.h rather than gimple.h.
3774 * cfgloopmanip.c: Likewise.
3775 * cgraphunit.c: Likewise.
3776 * cilk-common.c: Likewise.
3777 * dwarf2out.c: Dont include gimple.h.
3778 * fold-const.c: Include gimplify.h rather than gimple.h.
3779 * function.c: Likewise.
3780 * gimple-fold.c: Likewise.
3781 * gimple-ssa-strength-reduction.c: Likewise.
3782 * graphite-clast-to-gimple.c: Likewise.
3783 * graphite-sese-to-poly.c: Likewise.
3784 * ipa-prop.c: Likewise.
3785 * ipa-split.c: Likewise.
3787 * langhooks.c: Dont include gimple.h.
3788 * loop-init.c: Include gimplify.h rather than gimple.h.
3789 * omp-low.c: Likewise.
3791 * stor-layout.c: Likewise.
3792 * targhooks.c: Likewise.
3793 * trans-mem.c: Likewise.
3794 * tree-affine.c: Likewise.
3795 * tree-cfg.c: Likewise.
3796 * tree-cfgcleanup.c: Likewise.
3797 * tree-complex.c: Likewise.
3798 * tree-if-conv.c: Likewise.
3799 * tree-inline.c: Likewise.
3800 * tree-iterator.c: Likewise.
3801 * tree-loop-distribution.c: Likewise.
3802 * tree-nested.c: Likewise.
3803 * tree-parloops.c: Likewise.
3804 * tree-predcom.c: Likewise.
3805 * tree-profile.c: Likewise.
3806 * tree-scalar-evolution.c: Likewise.
3807 * tree-sra.c: Likewise.
3808 * tree-ssa-address.c: Likewise.
3809 * tree-ssa-ccp.c: Likewise.
3810 * tree-ssa-dce.c: Likewise.
3811 * tree-ssa-forwprop.c: Likewise.
3812 * tree-ssa-ifcombine.c: Likewise.
3813 * tree-ssa-loop-im.c: Likewise.
3814 * tree-ssa-loop-ivopts.c: Likewise.
3815 * tree-ssa-loop-manip.c: Likewise.
3816 * tree-ssa-loop-niter.c: Likewise.
3817 * tree-ssa-loop-prefetch.c: Likewise.
3818 * tree-ssa-loop-unswitch.c: Likewise.
3819 * tree-ssa-math-opts.c: Likewise.
3820 * tree-ssa-phiopt.c: Likewise.
3821 * tree-ssa-phiprop.c: Likewise.
3822 * tree-ssa-pre.c: Likewise.
3823 * tree-ssa-propagate.c: Likewise.
3824 * tree-ssa-reassoc.c: Likewise.
3825 * tree-ssa-sccvn.c: Likewise.
3826 * tree-ssa-strlen.c: Likewise.
3827 * tree-ssa.c: Likewise.
3828 * tree-switch-conversio: Likewise.n.c
3829 * tree-tailcall.c: Likewise.
3830 * tree-vect-data-refs.c: Likewise.
3831 * tree-vect-generic.c: Likewise.
3832 * tree-vect-loop-manip.c: Likewise.
3833 * tree-vect-loop.c: Likewise.
3834 * tree-vect-patterns.c: Likewise.
3835 * tree-vect-stmts.c: Likewise.
3837 * value-prof.c: Likewise.
3838 * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
3839 * config/alpha/alpha.c: Likewise.
3840 * config/darwin.c: Likewise.
3841 * config/i386/i386.c: Likewise.
3842 * config/ia64/ia64.c: Likewise.
3843 * config/mep/mep.c: Likewise.
3844 * config/mips/mips.c: Likewise.
3845 * config/rs6000/rs6000.c: Likewise.
3846 * config/s390/s390.c: Likewise.
3847 * config/sh/sh.c: Likewise.
3848 * config/sparc/sparc.c: Likewise.
3849 * config/spu/spu.c: Likewise.
3850 * config/stormy16/stormy16.c: Likewise.
3851 * config/tilegx/tilegx.c: Likewise.
3852 * config/tilepro/tilepro.c: Likewise.
3853 * config/xtensa/xtensa.c: Likewise.
3855 2013-11-12 Adam Butcher <adam@jessamine.co.uk>
3857 * tree.c (grow_tree_vec_stat): New function ...
3858 * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
3859 and macro front-end.
3861 2013-11-12 Marek Polacek <polacek@redhat.com>
3863 * final.c (update_alignments): Initialize label to NULL_RTX.
3865 2013-11-12 Jeff Law <law@redhat.com>
3867 * gimple-ssa-isolate-paths.c (check_loadstore): New function.
3868 (insert_trap_and_remove_trailing_statements): New argument OP which
3869 is the NULL pointer. Emit the trap after the load/store through
3870 the NULL pointer. Simplify the RHS of a store through a NULL pointer
3871 when trivial to do so.
3872 (isolate_path): Corresponding changes.
3873 (gimple_ssa_isolate_erroneous_path): Likewise.
3875 2013-11-12 Teresa Johnson <tejohnson@google.com>
3876 Jan Hubicka <jh@suse.cz>
3878 * predict.c (drop_profile): New function.
3879 (handle_missing_profiles): Ditto.
3880 (counts_to_freqs): Don't overwrite estimated frequencies
3881 when function has no profile counts.
3882 * predict.h (handle_missing_profiles): Declare.
3883 * tree-inline.c (freqs_to_counts): New function.
3884 (copy_cfg_body): Invoke freqs_to_counts as needed.
3885 * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
3887 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
3890 * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
3892 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
3894 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
3897 * config/i386/i386.c (ix86_option_override_internal): Check
3898 X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
3899 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
3900 MASK_AVX256_SPLIT_UNALIGNED_LOAD and
3901 MASK_AVX256_SPLIT_UNALIGNED_STORE.
3903 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
3904 Clear m_COREI7_AVX and update comments.
3905 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
3907 2013-11-12 Martin Jambor <mjambor@suse.cz>
3909 PR rtl-optimization/10474
3910 * ira.c (interesting_dest_for_shprep): New function.
3911 (split_live_ranges_for_shrink_wrap): Likewise.
3912 (find_moveable_pseudos): Move calculation of dominance info,
3913 df_analysios and the final anlyses to...
3914 (ira): ...here, call split_live_ranges_for_shrink_wrap.
3916 2013-11-12 Bin Cheng <bin.cheng@arm.com>
3918 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
3919 Handle type conversion.
3921 2013-11-11 Martin Liska <marxin.liska@gmail.com>
3922 Jan Hubicka <jh@suse.cz>
3924 * cgraph.c (dump_cgraph_node): Profile dump added.
3925 * cgraph.h (struct cgraph_node): New time profile variable added.
3926 * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
3927 * gcov-io.h (gcov_type): New profiler type introduced.
3928 * ipa-profile.c (lto_output_node): Streaming for time profile added.
3929 (input_node): Time profiler is read from LTO stream.
3930 * predict.c (maybe_hot_count_p): Hot prediction changed.
3931 * profile.c (instrument_values): New case for time profiler added.
3932 (compute_value_histograms): Read of time profile.
3933 * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
3934 * tree-profile.c (init_ic_make_global_vars): Time profiler
3936 (gimple_init_edge_profiler): TP function instrumentation.
3937 (gimple_gen_time_profiler): New.
3938 * value-prof.c (gimple_add_histogram_value): Support for time profiler
3940 (dump_histogram_value): TP type added to dumps.
3941 (visit_hist): More sensitive check that takes TP into account.
3942 (gimple_find_values_to_profile): TP instrumentation.
3943 * value-prof.h (hist_type): New histogram type added.
3944 (struct histogram_value_t): Pointer to struct function added.
3945 * libgcc/Makefile.in: New GCOV merge function for TP added.
3946 * libgcov.c: function_counter variable introduced.
3947 (_gcov_merge_time_profile): New.
3948 (_gcov_time_profiler): New.
3950 2013-11-11 Marc Glisse <marc.glisse@inria.fr>
3951 Jeff Law <law@redhat.com>
3953 * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
3954 ao_ref_init_from_ptr_and_size for builtins.
3956 2013-11-11 Uros Bizjak <ubizjak@gmail.com>
3957 H.J. Lu <hongjiu.lu@intel.com>
3960 * config/i386/x86-tune.def
3961 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
3962 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
3963 * config/i386/i386.h
3964 (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
3965 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES. Update for renamed
3966 X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
3967 * config/i386/i386.c (ix86_expand_set_or_movmem): Use
3968 TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
3969 misaligned_prologue_used. Check that
3970 desired_aling <= epilogue_size_needed.
3972 2013-11-11 Cong Hou <congh@google.com>
3974 PR tree-optimization/59050
3975 * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
3977 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
3980 * expmed.c (emit_store_flag): Fail for const-const comparison.
3982 2013-11-11 Tristan Gingold <gingold@adacore.com>
3983 Eric Botcazou <ebotcazou@adacore.com>
3985 * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
3986 * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
3987 * tree.def (CONSTRUCTOR): Likewise.
3988 * doc/generic.texi (CONSTRUCTOR): Likewise. Update description.
3989 * gimplify.c (gimplify_init_constructor): Do not clear the object when
3990 the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
3992 2013-11-11 Basile Starynkevitch <basile@starynkevitch.net>
3994 * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
3997 2013-11-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3999 * config/arm/arm.c (arm_new_rtx_costs): Return after handling
4002 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
4004 * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
4006 2013-11-08 Jeff Law <law@redhat.com>
4008 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
4009 threading paths first, then perform PHI node checks if applicable.
4011 2013-11-10 Karlson2k <k2k@narod.ru>
4012 Kai Tietz <ktietz@redhat.com>
4015 * configure.ac: Adding for exported symbols check
4016 and for rdynamic-check executable-extension.
4017 * configure: Regenerated.
4019 2013-11-10 Uros Bizjak <ubizjak@gmail.com>
4021 * mode-switching.c (optimize_mode_switching): Mark block as
4022 nontransparent, if last_mode at block exit is different from no_mode.
4024 2013-11-09 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4026 * function.c (NAME__MAIN): Move to...
4027 * cfgexpand.c (NAME__MAIN): ...here.
4029 2013-11-09 Richard Sandiford <rdsandiford@googlemail.com>
4031 * target.def (can_use_doloop_p): New hook.
4032 * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
4033 * doc/tm.texi: Regenerate.
4034 * doc/md.texi (doloop_begin, doloop_end): Update documentation.
4035 * hooks.h (hook_bool_dint_dint_uint_true): Declare.
4036 * hooks.c (hook_bool_dint_dint_uint_true): New function.
4037 * targhooks.h (can_use_doloop_if_innermost): Declare.
4038 * targhooks.c (can_use_doloop_if_innermost): New function.
4039 * target.h: Include double-int.h.
4040 * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
4041 Remove iteration count, maximum iteration count, loop depth and
4042 enter-at-top inputs from doloop_begin and doloop_end.
4043 * config/arc/arc.md (doloop_begin, doloop_end): Update for new
4045 * config/arc/arc.c (arc_can_use_doloop_p): New function.
4046 (TARGET_CAN_USE_DOLOOP_P): Define.
4047 * config/arm/thumb2.md (doloop_end): Update for new interface.
4048 * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
4049 * config/bfin/bfin.md (doloop_end): Update for new interface.
4050 * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
4051 (TARGET_CAN_USE_DOLOOP_P): Define.
4052 * config/c6x/c6x.md (doloop_end): Update for new interface.
4053 * config/ia64/ia64.md (doloop_end): Update for new interface.
4054 * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
4055 * config/mep/mep.md (doloop_begin, doloop_end): Update for new
4057 * config/mep/mep.c (mep_emit_doloop): Likewise.
4058 (TARGET_CAN_USE_DOLOOP_P): Define.
4059 * config/rs6000/rs6000.md (doloop_end): Update for new interface.
4060 * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
4061 * config/s390/s390.md (doloop_end): Update for new interface.
4062 * config/sh/sh.md (doloop_end): Likewise.
4063 * config/spu/spu.md (doloop_end): Likewise.
4064 * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
4065 * config/tilegx/tilegx.md (doloop_end): Update for new interface.
4066 * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
4067 * config/tilepro/tilepro.md (doloop_end): Update for new interface.
4068 * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
4069 * config/v850/v850.md (doloop_begin, doloop_end): Update for new
4071 * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
4073 2013-11-08 H.J. Lu <hongjiu.lu@intel.com>
4076 * doc/extend.texi: Move Cilk Plus Builtins node before Other
4079 2013-11-08 Andrew MacLeod <amacleod@redhat.com>
4080 Joseph Myers <joseph@codesourcery.com>
4082 * ginclude/stdatomic.h: New file.
4083 * Makefile.in (USER_H): Add stdatomic.h.
4085 2013-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4087 * config/arm/arm.c (arm_new_rtx_costs): Break after handling
4090 2013-11-08 Jeff Law <law@redhat.com>
4092 * tree-ssa-threadupdate.h (delete_thread_path): Declare.
4093 * tree-ssa-threadupdate.c (delete_thread_path): New function.
4094 (ssa_redirect_edges, thread_block_1): Use it.
4095 (thread_through_loop_header, mark_threaded_blocks): Likewise.
4096 (thread_through_all_blocks, register_jump_thread): Likewise.
4097 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
4099 2013-11-08 James Greenhalgh <james.greenhalgh@arm.com>
4101 * config/arm/aarch-common.c
4102 (search_term): New typedef.
4103 (shift_rtx_costs): New array.
4104 (arm_rtx_shift_left_p): New.
4105 (arm_find_sub_rtx_with_search_term): Likewise.
4106 (arm_find_sub_rtx_with_code): Likewise.
4107 (arm_early_load_addr_dep): Add sanity checking.
4108 (arm_no_early_alu_shift_dep): Likewise.
4109 (arm_no_early_alu_shift_value_dep): Likewise.
4110 (arm_no_early_mul_dep): Likewise.
4111 (arm_no_early_store_addr_dep): Likewise.
4113 2013-11-08 Richard Biener <rguenther@suse.de>
4115 PR tree-optimization/59047
4116 * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
4118 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
4120 * common.opt (fcheck-pointer-bounds): Move to ...
4121 * c-family/c.opt: ... here.
4122 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
4123 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
4124 * langhooks.h (lang_hooks): Remove chkp_supported field.
4125 * toplev.c (process_options): Remove chkp_supported check.
4127 2013-11-08 Richard Biener <rguenther@suse.de>
4129 PR tree-optimization/59038
4130 PR tree-optimization/58955
4131 * tree-loop-distribution.c (pg_add_dependence_edges): Revert
4132 previous change. Handle known dependences correctly.
4134 2013-11-08 Tom de Vries <tom@codesourcery.com>
4136 * config/rs6000/t-xilinx: Remove duplicate contents.
4138 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
4139 Joseph Myers <joseph@codesourcery.com>
4141 * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
4142 (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
4143 TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
4144 (struct tree_base): Add atomic_flag field.
4145 * tree.h (TYPE_ATOMIC): New accessor macro.
4146 (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
4147 (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
4148 (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
4149 (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
4150 * tree.c (set_type_quals): Set TYPE_ATOMIC.
4151 (find_atomic_core_type): New function.
4152 (build_qualified_type): Adjust alignment for qualified types.
4153 (build_atomic_base): New function
4154 (build_common_tree_nodes): Build atomicQI_type_node,
4155 atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
4157 * print-tree.c (print_node): Print atomic qualifier.
4158 * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
4159 * target.def (atomic_assign_expand_fenv): New hook.
4160 * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
4161 * doc/tm.texi: Regenerate.
4162 * targhooks.c (default_atomic_assign_expand_fenv): New function.
4163 * targhooks.h (default_atomic_assign_expand_fenv): Declare.
4164 * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
4165 * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
4167 * config/i386/i386.c (enum ix86_builtins): Add
4168 IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
4169 IX86_BUILTIN_FNCLEX.
4170 (bdesc_special_args): Add __builtin_ia32_fnstenv,
4171 __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
4172 (ix86_expand_builtin): Handle the new built-in functions.
4173 (ix86_atomic_assign_expand_fenv): New function.
4174 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
4175 * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
4176 (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
4177 (fnstenv, fldenv, fnstsw, fnclex): New insns.
4179 2013-11-07 Steve Ellcey <sellcey@mips.com>
4181 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
4182 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
4183 (MULTILIB_DIRNAMES): Add fp64 directory.
4184 (MULTILIB_EXCEPTIONS): Add new exclusions.
4186 2013-11-07 Aldy Hernandez <aldyh@redhat.com>
4188 * gimplify.c (gimple_regimplify_operands): Do not set
4190 * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
4191 (rewrite_close_phi_out_of_ssa): Same.
4192 (rewrite_phi_out_of_ssa): Same.
4193 (rewrite_degenerate_phi): Same.
4194 (handle_scalar_deps_crossing_scop_limits): Same.
4195 * tree-if-conv.c (predicate_scalar_phi): Same.
4196 * tree-parloops.c (create_loads_for_reductions): Same.
4197 (create_final_loads_for_reduction): Same.
4198 (create_loads_and_stores_for_name): Same.
4199 (transform_to_exit_first_loop): Same.
4200 (create_parallel_loop): Same.
4201 * tree-ssa-loop-im.c
4202 (move_computations_dom_walker::before_dom_children): Same.
4203 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
4204 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
4205 * tree-ssa-propagate.c (substitute_and_fold): Same.
4206 * tree-vect-loop.c (vect_finalize_reduction): Same.
4207 * tree-vect-stmts.c (vectorizable_call): Same.
4209 2013-11-07 Mike Stump <mikestump@comcast.net>
4211 * config/pdp11/pdp11.c: Include dbxout.h.
4212 * config/picochip/picochip.c: Likewise.
4214 2013-11-07 Cong Hou <congh@google.com>
4216 PR tree-optimization/56764
4217 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
4218 Combine alias checks if it is possible to amortize the runtime
4219 overhead. Return the number of alias checks after merging.
4220 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
4221 Use the function vect_create_cond_for_alias_checks () to check
4222 the number of alias checks.
4224 2013-11-07 Jeff Law <law@redhat.com>
4226 * varpool.c (ctor_for_folding): Fix typo in comment.
4228 2013-11-07 Joern Rennecke <joern.rennecke@embecosm.com>
4230 * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
4231 reg_a := reg_b + reg_a ==> reg_a := reg_a + reg_b
4233 2013-11-07 Jeff Law <law@redhat.com>
4235 * doc/invoke.texi (-fisolate-erroneous-paths): Document.
4237 * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
4238 No longer check if we have __builtin_trap, assume it's available.
4240 2013-11-07 Diego Novillo <dnovillo@google.com>
4242 * attribs.c (lookup_scoped_attribute_spec): Make static.
4243 (get_attribute_namespace): Likewise.
4244 * builtins.c (more_const_call_expr_args_p): Move from tree.h.
4245 (validate_arglist): Move earlier in the file. Make static.
4246 (expand_stack_restore): Move from stmt.c
4247 (expand_stack_save): Move from stmt.c
4248 (rewrite_call_expr_array): Move earlier in the file.
4249 (rewrite_call_expr_valist): Likewise.
4250 * cfgexpand.c: Include hard-reg-set.h before tree.h
4253 (expand_asm_loc): Move from stmt.c.
4254 (n_occurrences): Move from stmt.c.
4255 (check_operand_nalternatives): Move from stmt.c.
4256 (tree_conflicts_with_clobbers_p): Move from stmt.c.
4257 (expand_asm_operands): Move from stmt.c
4258 (expand_asm_stmt): Move from stmt.c
4259 (expand_computed_goto): Move from stmt.c
4260 (expand_goto): Move from stmt.c
4261 (expand_null_return_1): Move from stmt.c
4262 (expand_null_return): Move from stmt.c
4263 (expand_value_return): Move from stmt.c
4264 (expand_return): Move from stmt.c
4265 (expand_main_function): Move from function.c
4266 (stack_protect_prologue): Move from function.c
4267 * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
4268 (build_function_decl_skip_args): Move from tree.c.
4269 * explow.c (tree_expr_size): Move from tree.c.
4270 * expr.c (addr_expr_of_non_mem_decl_p): Remove.
4271 (fields_length): Move from tree.c.
4272 * fold-const.c (size_low_cst): Move from tree.c.
4273 (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
4274 (tree_expr_nonzero_p): Make static. Move earlier in the file.
4275 (fold_build3_initializer_loc): Remove.
4276 (tree_invalid_nonnegative_warnv_p): Make static.
4277 * function.c (expand_main_function): Move to cfgexpand.c.
4278 (stack_protect_prologue): Move to cfgexpand.c.
4279 (set_insn_locations): Move earlier in the file.
4280 * gimple-fold.c: Include langhooks.h.
4281 (truth_type_for): Move from tree.c.
4282 * print-tree.c (print_vec_tree): Remove.
4283 * stmt.c (expand_computed_goto): Move to cfgexpand.c.
4284 (expand_goto): Move to cfgexpand.c.
4285 (n_occurrences): Move to cfgexpand.c.
4286 (expand_asm_loc): Move to cfgexpand.c
4287 (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
4288 (expand_asm_operands): Move to cfgexpand.c.
4289 (expand_asm_stmt): Move to cfgexpand.c.
4290 (check_operand_nalternatives): Move to cfgexpand.c
4291 (expand_null_return): Move to cfgexpand.c.
4292 (expand_value_return): Move to cfgexpand.c.
4293 (expand_null_return_1): Move to cfgexpand.c.
4294 (expand_return): Move to cfgexpand.c.
4295 (expand_stack_save): Move to builtins.c.
4296 (expand_stack_restore): Move to builtins.c
4297 * symtab.c: Include output.h.
4298 (decl_assembler_name_hash): Move from tree.c.
4299 (decl_assembler_name_equal): Move from tree.c.
4300 * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
4301 * tree-eh.c (in_array_bounds_p): Move from tree.c.
4302 (range_in_array_bounds_p): Move from tree.c.
4303 * tree-object-size.c (fini_object_sizes): Make static.
4304 * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
4305 * tree-vrp.c (ssa_name_nonnegative_p): Remove.
4306 * tree.c (decl_assembler_name_equal): Move to symtab.c.
4307 (tree_expr_size): Move to explow.c.
4308 (decl_assembler_name_hash): Move to symtab.c.
4309 (real_twop): Remove.
4310 (tree_expr_size): Move to explow.c.
4311 (stabilize_reference_1): Move earlier in the file. Make static.
4312 (omp_remove_redundant_declare_simd_attrs): Remove.
4313 (simple_cst_list_equal): Move earlier in the file. Make static.
4314 (size_low_cst): Move to fold-const.c.
4315 (build_type_no_quals): Remove.
4316 (build_function_type_skip_args): Move to cgraphclones.c.
4317 (build_function_decl_skip_args): Move to cgraphclones.c.
4318 (in_array_bounds_p): Move to tree-eh.c.
4319 (range_in_array_bounds_p): Move to tree-eh.c.
4320 (truth_type_for): Move to gimple-fold.c.
4321 (list_equal_p): Remove.
4322 * tree.h (decl_assembler_name_equal): Remove.
4323 (decl_assembler_name_hash): Remove.
4324 (truth_type_for): Remove.
4325 (build_type_no_quals): Remove.
4326 (build_function_decl_skip_args): Remove.
4327 (in_array_bounds_p): Remove.
4328 (range_in_array_bounds_p): Remove.
4329 (size_low_cst): Remove.
4330 (omp_remove_redundant_declare_simd_attrs): Remove.
4331 (tree_expr_size): Remove.
4332 (fields_length): Remove.
4333 (stabilize_reference_1): Remove.
4334 (expand_goto): Remove.
4335 (expand_stack_save): Remove.
4336 (expand_stack_restore): Remove.
4337 (expand_return): Remove.
4338 (fold_build3_initializer_loc): Remove.
4339 (tree_expr_nonzero_p): Remove.
4340 (tree_invalid_nonnegative_warnv_p): Remove.
4341 (tree_expr_nonzero_warnv_p): Remove.
4342 (fold_builtin_snprintf_chk): Remove.
4343 (validate_arglist): Remove.
4344 (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
4345 (simple_cst_list_equal): Remove.
4346 (real_twop): Remove.
4347 (expand_main_function): Remove.
4348 (stack_protect_prologue): Remove.
4349 (print_vec_tree): Remove.
4350 (lookup_scoped_attribute_spec): Remove.
4351 (get_attribute_namespace): Remove.
4352 (expand_computed_goto): Remove.
4353 (expand_asm_stmt): Remove.
4354 (list_equal_p): Remove.
4355 (ssa_name_nonnegative_p): Remove.
4356 (fini_object_sizes): Remove.
4357 (addr_expr_of_non_mem_decl_p): Remove.
4358 (is_tm_safe_or_pure): Move to trans-mem.c.
4359 (more_const_call_expr_args_p): Remove.
4360 (save_vtable_map_decl): Remove.
4362 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
4364 * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
4365 linker plugins, too.
4367 * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
4368 link to libgomp and its dependencies.
4369 * config/ia64/hpux.h (LIB_SPEC): Likewise.
4370 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
4371 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
4372 * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
4374 2013-11-07 Jakub Jelinek <jakub@redhat.com>
4376 * tree-ssa-loop-niter.c: Include tree-ssanames.h.
4377 (determine_value_range): Add loop argument. Use get_range_info to
4379 (bound_difference): Adjust caller.
4381 2013-11-07 Richard Biener <rguenther@suse.de>
4382 Jakub Jelinek <jakub@redhat.com>
4384 * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
4385 latches from header PHI arguments from the latch edge.
4387 2013-11-07 Paolo Carlini <paolo.carlini@oracle.com>
4390 * varasm.c (output_constant): Handle NULLPTR_TYPE.
4392 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
4394 * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
4395 misaligned_prologue_used when it has been set.
4397 2013-11-07 Yury Gribov <y.gribov@samsung.com>
4398 Jakub Jelinek <jakub@redhat.com>
4401 * asan.c (get_mem_refs_of_builtin_call): Allow
4402 integer literals as addresses in instrumented builtins.
4404 2013-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4406 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
4407 Explain why plus_constant is not used.
4409 2013-11-07 Richard Biener <rguenther@suse.de>
4411 * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
4412 (canonicalize_value): ... this. Also handle stripping of
4414 (get_value, set_lattice_value, get_value_for_expr): Adjust.
4415 * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
4416 * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
4418 2013-11-07 Richard Biener <rguenther@suse.de>
4420 * tree-dfa.c (get_ref_base_and_extent): Fix casting.
4422 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
4425 * config/i386/i386.md (push peepholer/splitter): Use Pmode
4426 with stack_pointer_rtx.
4428 2013-11-07 Bin Cheng <bin.cheng@arm.com>
4430 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
4431 using operand_equal_p.
4433 2013-11-07 Bin Cheng <bin.cheng@arm.com>
4435 * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
4436 * tree-affine.c (get_inner_reference_aff): Return base.
4437 * tree-affine.h (get_inner_reference_aff): Change prototype.
4439 2013-11-06 Tobias Burnus <burnus@net-b.de>
4441 * doc/invoke.texi (Wdate-time): Fix typo.
4443 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
4445 * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
4446 cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
4447 fp_arith_reg_operand instead of arith_reg_operand.
4449 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
4451 * config/sh/sh.md (adddi3): Remove empty constraints.
4452 Remove can_create_pseudo_p and arith_reg_operand check.
4453 (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
4454 Split before reload.
4456 2013-11-06 Jeff Law <law@redhat.com>
4457 Tom Tromey <tromey@redhat.com>
4459 * gdbinit.in: Disable strict type checking.
4461 2013-11-06 Vladimir Makarov <vmakarov@redhat.com>
4463 * tree-pass.h (make_pass_live_range_shrinkage): New external.
4464 * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
4465 * sched-rgn.c (gate_handle_live_range_shrinkage): New.
4466 (rest_of_handle_live_range_shrinkage): Ditto
4467 (class pass_live_range_shrinkage): Ditto.
4468 (pass_data_live_range_shrinkage): Ditto.
4469 (make_pass_live_range_shrinkage): Ditto.
4470 * sched-int.h (initialize_live_range_shrinkage): New prototype.
4471 (finish_live_range_shrinkage): Ditto.
4472 * sched-deps.c (create_insn_reg_set): Make void return value.
4473 * passes.def: Add pass_live_range_shrinkage.
4474 * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
4475 * haifa-sched.c (live_range_shrinkage_p): New.
4476 (initialize_live_range_shrinkage, finish_live_range_shrinkage):
4478 (rank_for_schedule): Add code for pressure relief through live
4480 (schedule_insn): Print more debug info.
4481 (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
4482 through live range shrinkage.
4483 * doc/invoke.texi (-flive-range-shrinkage): New.
4484 * common.opt (flive-range-shrinkage): New.
4486 2013-11-06 Uros Bizjak <ubizjak@gmail.com>
4489 * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
4490 AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
4491 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
4492 RTXes that return in AVX256 register.
4494 2013-11-06 Richard Biener <rguenther@suse.de>
4496 PR tree-optimization/58653
4497 * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
4498 (prepare_initializers_chain): Adjust.
4500 2013-11-06 Andrew MacLeod <amacleod@redhat.com>
4502 * gimple.h (block_in_transaction): Move to basic-block.h and rename.
4503 (gimple_in_transaction): Use bb_in_transaction.
4504 * basic-block.h (bb_in_transaction): Relocate here and rename.
4505 * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
4507 2013-11-06 Richard Biener <rguenther@suse.de>
4509 * tree.c (drop_tree_overflow): New function.
4510 * tree.h (drop_tree_overflow): Declare.
4511 * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
4512 * tree-vrp.c (range_int_cst_singleton_p): Use
4513 is_overflow_infinity instead of testing TREE_OVERFLOW.
4514 (extract_range_from_assert): Likewise.
4515 (zero_nonzero_bits_from_vr): Likewise.
4516 (extract_range_basic): Likewise.
4517 (register_new_assert_for): Use drop_tree_overflow.
4518 (vrp_visit_phi_node): Likewise.
4520 2013-11-06 Eric Botcazou <ebotcazou@adacore.com>
4522 * config/i386/i386.c (ix86_expand_prologue): Optimize stack
4523 checking for leaf functions without dynamic stack allocation.
4524 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
4525 (ia64_expand_prologue): Likewise.
4526 * config/mips/mips.c (mips_expand_prologue): Likewise.
4527 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
4528 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
4529 (sparc_flat_expand_prologue): Likewise.
4531 2013-11-06 James Greenhalgh <james.greenhalgh@arm.com>
4533 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
4534 (__ST3_LANE_FUNC): Likewise.
4535 (__ST4_LANE_FUNC): Likewise.
4537 2013-11-06 Nick Clifton <nickc@redhat.com>
4539 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
4540 name returned by msp430_mcu_name.
4541 (LIB_SPEC): If a -T option has not been specified then set a
4542 default, mcu-specific, linker script.
4543 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
4544 * config/msp430/msp430.c (msp430x_names): Likewise.
4545 Alpha sort the names for ease of comparison.
4546 (msp430_mcu_name): New function: Returns a string suitable for
4547 use as a C preprocessor symbol based upon the name of the MCU
4549 (msp430_option_override): Accept msp430x and msp430xv2 as generic
4551 * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
4553 * gcc.c (do_spec_1): Do not insert a space after a %* substitution
4554 unless it is the last part of a spec substring.
4555 * doc/invoke.texi (Spec Files): Document space insertion
4558 2013-11-06 Christian Bruel <christian.bruel@st.com>
4560 * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
4561 Factorize probabilities, Use adjust_address instead of
4562 adjust_automodify_address when possible. Enable for optimize.
4563 (sh_expand_strlen): New function.
4564 * config/sh/sh-protos.h (sh_expand_strlen): Declare.
4565 * config/sh/sh.md (strlensi): New pattern.
4566 (UNSPEC_BUILTIN_STRLEN): Define.
4568 2013-11-06 Jakub Jelinek <jakub@redhat.com>
4571 * expr.c (get_bit_range): Handle *offset == NULL_TREE.
4572 (expand_assignment): If *bitpos is negative, set *offset
4573 and adjust *bitpos, so that it is not negative.
4575 2013-11-06 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
4577 * config/i386/bdver3.md : Added two additional decoder units
4578 to support issue rate of 4 and remodeled vector unit.
4579 * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
4580 architectures is set to 4.
4581 * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
4582 lookahead is set to 4 for BD architectures.
4584 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4586 * config/rs6000/rs6000.c (rs6000_option_override_internal):
4587 Remove restriction against use of VSX instructions when generating
4588 code for little endian mode.
4590 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4592 * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
4593 for both big and little endian.
4594 (mulv8hi3): Swap input operands for merge high and merge low
4595 instructions for little endian.
4597 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4599 * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
4600 define_insn to define_expand that uses even patterns for big
4601 endian and odd patterns for little endian.
4602 (vec_widen_smult_even_v16qi): Likewise.
4603 (vec_widen_umult_even_v8hi): Likewise.
4604 (vec_widen_smult_even_v8hi): Likewise.
4605 (vec_widen_umult_odd_v16qi): Likewise.
4606 (vec_widen_smult_odd_v16qi): Likewise.
4607 (vec_widen_umult_odd_v8hi): Likewise.
4608 (vec_widen_smult_odd_v8hi): Likewise.
4609 (altivec_vmuleub): New define_insn.
4610 (altivec_vmuloub): Likewise.
4611 (altivec_vmulesb): Likewise.
4612 (altivec_vmulosb): Likewise.
4613 (altivec_vmuleuh): Likewise.
4614 (altivec_vmulouh): Likewise.
4615 (altivec_vmulesh): Likewise.
4616 (altivec_vmulosh): Likewise.
4618 2013-11-05 Mike Stump <mikestump@comcast.net>
4620 * Makefile.in (mostlyclean): Remove c-family objects.
4622 2013-11-05 Ian Lance Taylor <iant@google.com>
4624 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
4625 If possible, add .cfi directives to record change to bx.
4626 * config/i386/i386.c (ix86_emit_cfi): New function.
4627 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
4629 2013-11-05 Steven Bosscher <steven@gcc.gnu.org>
4631 * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
4632 immediately after a label for a tablejump pattern.
4634 * config/arm/arm.c (is_jump_table): Remove.
4635 (create_fix_barrier): Use tablejump_p instead.
4636 (arm_reorg): Likewise.
4637 (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
4638 (thumb2_output_casesi): Likewise.
4639 * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
4640 * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
4641 casesi_shift_media, casesi_load_media): Likewise.
4642 * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
4643 * config/microblaze/microblaze.md: Likewise.
4645 2013-11-05 Tobias Burnus <burnus@net-b.de>
4647 * doc/invoke.texi (-Wdate-time): Document.
4649 2013-11-05 Richard Sandiford <rdsandiford@googlemail.com>
4651 * double-int.c (lshift_double, rshift_double): Remove
4652 SHIFT_COUNT_TRUNCATED handling.
4654 2013-11-05 Jeff Law <law@redhat.com>
4656 * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
4657 * common.opt (-fisolate-erroneous-paths): Add option and documentation.
4658 * gimple-ssa-isolate-paths.c: New file.
4659 * gimple.c (check_loadstore): New function.
4660 (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
4661 Verify OP is in the argument list and the argument corresponding
4662 to OP is a pointer type. Use operand_equal_p rather than
4663 pointer equality when testing if OP is on the nonnull list.
4664 Use check_loadstore rather than count_ptr_derefs. Handle
4665 GIMPLE_RETURN statements.
4666 * tree-vrp.c (infer_nonnull_range): Remove.
4667 * gimple.h (infer_nonnull_range): Declare.
4668 * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
4669 * passes.def: Add pass_isolate_erroneous_paths.
4670 * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
4671 * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
4672 * tree-ssa.c (struct count_ptr_d): Remove.
4673 (count_ptr_derefs, count_uses_and_derefs): Remove.
4674 * tree-ssa.h (count_uses_and_derefs): Remove.
4676 2013-11-05 Jakub Jelinek <jakub@redhat.com>
4678 PR rtl-optimization/58997
4679 * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
4680 get_iv_value to be in iv->mode rather than iv->extend_mode.
4681 (iv_extend): Likewise. Otherwise, if iv->extend != extend,
4682 use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
4683 * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
4686 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
4688 * gimple.h: Move some prototypes to gimple-expr.h and add to include
4690 (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
4691 Move to gimple-expr.h.
4692 * gimple-expr.h: New file. Relocate some prototypes from gimple.h.
4693 (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
4694 is_gimple_id, virtual_operand_p, is_gimple_addressable,
4695 is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
4697 * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
4698 gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
4699 is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
4700 is_gimple_address, is_gimple_invariant_address,
4701 is_gimple_ip_invariant_address, is_gimple_min_invariant,
4702 is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
4703 virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
4704 is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
4705 gimple_decl_printable_name, useless_type_conversion_p,
4706 types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
4708 * gimple-expr.c: New File.
4709 (useless_type_conversion_p, gimple_set_body, gimple_body,
4710 gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
4711 gimple_can_coalesce_p, extract_ops_from_tree_1,
4712 gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
4713 is_gimple_address, is_gimple_invariant_address,
4714 is_gimple_ip_invariant_address, is_gimple_min_invariant,
4715 is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
4716 is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
4717 is_gimple_mem_ref_addr): Relocate here.
4718 * Makefile.in (OBJS): Add gimple-expr.o.
4720 2013-11-05 David Malcolm <dmalcolm@redhat.com>
4722 * gengtype-parse.c (struct_field_seq): Support empty structs.
4724 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
4726 * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
4728 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
4730 * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
4732 * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
4734 (LONG_DOUBLE_TYPE_SIZE): New define.
4735 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
4737 2013-11-05 Paolo Carlini <paolo.carlini@oracle.com>
4740 * doc/extend.texi [visibility ("visibility_type")]: Add example
4741 about visibility attribute on namespace declaration.
4743 2013-11-05 Richard Biener <rguenther@suse.de>
4746 * passes.def (all_passes): Start with pass_fixup_cfg again.
4748 2013-11-05 Richard Biener <rguenther@suse.de>
4750 PR tree-optimization/58955
4751 * tree-loop-distribution.c (pg_add_dependence_edges): Fix
4754 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4756 * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
4758 (vec_pack_ufix_trunc_v2df): Likewise.
4760 2013-11-05 H.J. Lu <hongjiu.lu@intel.com>
4763 * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
4764 pattern, instead of word_mode.
4766 * expr.c (emit_block_move_via_movmem): Don't use mode wider than
4768 (set_storage_via_setmem): Likewise.
4770 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
4772 * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
4773 gimple.h and the rest of the condition in eliminate_build.
4774 (eliminate_build): Call new routine.
4775 * gimple.h (phi_ssa_name_p): Delete.
4777 2013-11-05 Trevor Saunders <tsaunders@mozilla.com>
4779 * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
4780 case of no prefix and reserving zero slots, because when that's the
4781 case we'll never get here.
4782 * vec.h (va_heap::reserve): Don't try and handle
4783 vec_prefix::calculate_allocation returning zero because that should
4786 2013-11-05 Richard Biener <rguenther@suse.de>
4789 * tree-dfa.c (get_ref_base_and_extent): Merge common code
4790 in MEM_REF and TARGET_MEM_REF handling. Make sure to
4791 process trailing array detection before diving into the
4792 view-converted object (and possibly apply some extra offset).
4794 2013-11-05 Joseph Myers <joseph@codesourcery.com>
4796 * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
4798 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
4800 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
4802 PR tree-optimization/58958
4803 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
4804 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
4806 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
4808 * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
4809 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
4811 2013-11-05 Jakub Jelinek <jakub@redhat.com>
4813 PR tree-optimization/58984
4814 * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
4815 set *SIZE_P if non-NULL on success.
4816 (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
4818 (ipcp_transform_function): Likewise. Punt if size of access
4819 is different from TYPE_SIZE on v->value's type.
4821 2013-11-05 Tobias Burnus <burnus@net-b.de>
4823 * doc/invoke.texi (-fopenmp-simd): Document new option.
4824 * gimplify.c (gimplify_body): Accept -fopenmp-simd.
4825 * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
4826 * tree.c (attribute_value_equal): Ditto.
4828 2013-11-04 Wei Mi <wmi@google.com>
4830 * sched-rgn.c (add_branch_dependences): Keep insns in
4831 a SCHED_GROUP at the end of BB to remain their location.
4833 2013-11-04 Wei Mi <wmi@google.com>
4835 * config/i386/i386.c (memory_address_length): Extract a part
4836 of code to rip_relative_addr_p.
4837 (rip_relative_addr_p): New Function.
4838 (ix86_macro_fusion_p): Ditto.
4839 (ix86_macro_fusion_pair_p): Ditto.
4840 * config/i386/i386.h: Add new tune features about macro-fusion.
4841 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
4842 * doc/tm.texi: Generated.
4843 * doc/tm.texi.in: Ditto.
4844 * haifa-sched.c (try_group_insn): New Function.
4845 (group_insns_for_macro_fusion): Ditto.
4846 (sched_init): Call group_insns_for_macro_fusion.
4847 * target.def: Add two hooks: macro_fusion_p and
4848 macro_fusion_pair_p.
4850 2013-11-04 Kostya Serebryany <kcc@google.com>
4852 Update to match the changed asan API.
4853 * asan.c (asan_function_start): New function.
4854 (asan_emit_stack_protection): Update the string stored in the
4855 stack red zone to match new API. Store the PC of the current
4856 function in the red zone.
4857 (asan_global_struct): Update the __asan_global definition to match
4859 (asan_add_global): Ditto.
4860 * asan.h (asan_function_start): New prototype.
4861 * final.c (final_start_function): Call asan_function_start.
4862 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
4865 2013-11-04 Wei Mi <wmi@google.com>
4867 * config/i386/i386-c.c (ix86_target_macros_internal): Separate
4868 PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
4869 * config/i386/i386.c (ix86_option_override_internal): Ditto.
4870 (ix86_issue_rate): Ditto.
4871 (ix86_adjust_cost): Ditto.
4872 (ia32_multipass_dfa_lookahead): Ditto.
4873 (ix86_sched_init_global): Ditto.
4874 (get_builtin_code_for_version): Ditto.
4875 * config/i386/i386.h (enum target_cpu_default): Ditto.
4876 (enum processor_type): Ditto.
4877 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
4879 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
4881 PR rtl-optimization/58967
4882 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
4883 !lra_in_progress for mode sizes bigger word.
4885 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4887 * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
4888 arguments to merge instruction for little endian.
4889 (vec_widen_umult_lo_v16qi): Likewise.
4890 (vec_widen_smult_hi_v16qi): Likewise.
4891 (vec_widen_smult_lo_v16qi): Likewise.
4892 (vec_widen_umult_hi_v8hi): Likewise.
4893 (vec_widen_umult_lo_v8hi): Likewise.
4894 (vec_widen_smult_hi_v8hi): Likewise.
4895 (vec_widen_smult_lo_v8hi): Likewise.
4897 2013-11-04 Ian Lance Taylor <iant@google.com>
4899 * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
4900 * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
4901 builtins that take pointers.
4902 * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
4903 * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
4904 (run_gcc): Pass -fnon-call-exceptions.
4906 2013-11-04 Jakub Jelinek <jakub@redhat.com>
4908 * optabs.c (expand_vec_perm): Revert one incorrect line from
4911 PR tree-optimization/58978
4912 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
4913 use_stmt by single_imm_use directly. Only call single_imm_use
4916 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
4918 PR rtl-optimization/58968
4919 * lra-spills.c (return_regno_p): New function.
4920 (lra_final_code_change): Use it.
4922 2013-11-04 Joseph Myers <joseph@codesourcery.com>
4924 * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
4925 * target.def (float_exceptions_rounding_supported_p): New hook.
4926 * targhooks.c (default_float_exceptions_rounding_supported_p): New
4928 * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
4929 * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
4931 * doc/tm.texi: Regenerate.
4932 * config.gcc (powerpc*-*-linux*): Set extra_objs.
4933 * config/rs6000/rs6000-linux.c: New file.
4934 * config/rs6000/rs6000-protos.h
4935 (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
4936 * config/rs6000/linux.h
4937 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
4938 * config/rs6000/linux64.h
4939 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
4940 * config/rs6000/t-linux (rs6000-linux.o): New rule.
4941 * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
4943 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4945 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
4946 Replace the define_insn_and_split with a define_insn and two
4947 define_splits, with the split after reload re-permuting the source
4948 register to its original value.
4949 (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
4950 (*vsx_le_perm_store_v8hi): Likewise.
4951 (*vsx_le_perm_store_v16qi): Likewise.
4953 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4955 * config/rs6000/vector.md (vec_pack_trunc_v2df): Adjust for
4958 2013-11-04 Jakub Jelinek <jakub@redhat.com>
4960 PR tree-optimization/58946
4961 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
4962 bbs with bbinfo[idx].op != NULL before all blocks with
4963 bbinfo[idx].op == NULL.
4965 2013-11-04 Richard Sandiford <rdsandiford@googlemail.com>
4967 * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
4968 (avr_dump_double_int_hex): Likewise.
4969 (avr_log_vadump): Remove %D and %X handling.
4970 * config/avr/avr.c (avr_double_int_push_digit): Delete.
4971 (avr_map_op_t): Change map from double_int to unsigned int.
4972 (avr_map_op): Update accordingly.
4973 (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
4974 (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
4975 unsigned ints rather than double_ints.
4977 2013-11-03 Marek Polacek <polacek@redhat.com>
4979 Implement -fsanitize=vla-bound.
4980 * opts.c (common_handle_option): Handle vla-bound.
4981 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
4982 * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
4983 * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
4985 2013-11-02 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
4987 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
4990 2013-11-02 Uros Bizjak <ubizjak@gmail.com>
4992 * config/i386/constraints.md (Ts, Tv): New address constrains.
4993 * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
4994 constraint for address_no_seg_operand.
4995 * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
4996 (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
4997 (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
4998 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
4999 (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
5000 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
5001 (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
5002 (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
5003 constraint for vsib_address_operand.
5005 2013-11-02 Steven Bosscher <steven@gcc.gnu.org>
5007 * gcse.c (pre_delete): Remove references to regmove from comments.
5008 * recog.c: (validate_replace_rtx_1): Likewise.
5009 * config/rl78/rl78.c: Likewise.
5010 * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
5011 * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
5012 * common/config/mmix/mmix-common.c: Likewise.
5014 2013-11-01 Trevor Saunders <tsaunders@mozilla.com>
5016 * function.c (reorder_blocks): Convert block_stack to a stack_vec.
5017 * gimplify.c (gimplify_compound_lval): Likewise.
5018 * graphite-clast-to-gimple.c (gloog): Likewise.
5019 * graphite-dependences.c (loop_is_parallel_p): Likewise.
5020 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
5021 (limit_scop); Likewise.
5022 (build_scops): Likewise.
5023 (dot_scop): Likewise.
5024 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
5025 (build_scop_drs): Likewise.
5026 (insert_stmts): Likewise.
5027 (insert_out_of_ssa_copy): Likewise.
5028 (remove_phi): Likewise.
5029 (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
5030 * hw-doloop.c (discover_loop): Likewise.
5031 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
5032 * tree-dfa.c (dump_enumerated_decls): Likewise.
5033 * tree-if-conv.c (if_convertable_loop_p): Likewise.
5034 * tree-inline.c (tree_function_versioning): Likewise.
5035 * tree-loop-distribution.c (build_rdg): Likewise.
5036 (rdg_flag_vertex_and_dependent): Likewise.
5037 (distribute_loop): Likewise.
5038 * tree-parloops.c (loop_parallel_p): Likewise.
5039 (eliminate_local_variables): Likewise.
5040 (separate_decls_in_region): Likewise.
5041 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
5042 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
5043 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
5044 * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
5045 * tree-vect-patterns.c (vect_pattern_recog): Likewise.
5046 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
5047 (vectorizable_condition): Likewise.
5049 2013-11-01 Uros Bizjak <ubizjak@gmail.com>
5051 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
5052 * configure: Regenerate.
5053 * config/i386/i386.md (*movdi_internal): Change
5054 HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
5055 (*movdf_internal): Ditto.
5056 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
5057 * config/i386/sse.md (vec_concatv2di): Output interunit movq
5058 for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
5060 2013-10-31 Robert Suchanek <Robert.Suchanek@imgtec.com>
5062 * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
5065 2013-10-31 David Malcolm <dmalcolm@redhat.com>
5067 Automated part of renaming of symtab_node_base to symtab_node.
5069 Patch autogenerated by rename_symtab.py from
5070 https://github.com/davidmalcolm/gcc-refactoring-scripts
5071 revision 58bb219cc090b2f4516a9297d868c245495ee622
5072 with ChangeLog entry fixed up by hand.
5074 * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
5076 (cgraph_node_for_asm): Likewise.
5077 * cgraph.h (symtab_node_base): Likewise.
5078 (cgraph_node): Likewise.
5079 (varpool_node): Likewise.
5080 (is_a_helper <cgraph_node>::test): Likewise.
5081 (is_a_helper <varpool_node>::test): Likewise.
5082 (symtab_nodes): Likewise.
5083 (symtab_register_node): Likewise.
5084 (symtab_unregister_node): Likewise.
5085 (symtab_remove_node): Likewise.
5086 (symtab_get_node): Likewise.
5087 (symtab_node_for_asm): Likewise.
5088 (symtab_node_asm_name): Likewise.
5089 (symtab_node_name): Likewise.
5090 (symtab_insert_node_to_hashtable): Likewise.
5091 (symtab_add_to_same_comdat_group): Likewise.
5092 (symtab_dissolve_same_comdat_group_list): Likewise.
5093 (dump_symtab_node): Likewise.
5094 (debug_symtab_node): Likewise.
5095 (dump_symtab_base): Likewise.
5096 (verify_symtab_node): Likewise.
5097 (verify_symtab_base): Likewise.
5098 (symtab_used_from_object_file_p): Likewise.
5099 (symtab_alias_ultimate_target): Likewise.
5100 (symtab_resolve_alias): Likewise.
5101 (fixup_same_cpp_alias_visibility): Likewise.
5102 (symtab_for_node_and_aliases): Likewise.
5103 (symtab_nonoverwritable_alias): Likewise.
5104 (availability symtab_node_availability): Likewise.
5105 (symtab_semantically_equivalent_p): Likewise.
5106 (fixup_same_cpp_alias_visibility): Likewise.
5107 (symtab_prevail_in_asm_name_hash): Likewise.
5109 (varpool): Likewise.
5110 (varpool_first_variable): Likewise.
5111 (varpool_next_variable): Likewise.
5112 (varpool_first_static_initializer): Likewise.
5113 (varpool_next_static_initializer): Likewise.
5114 (varpool_first_defined_variable): Likewise.
5115 (varpool_next_defined_variable): Likewise.
5116 (cgraph_first_defined_function): Likewise.
5117 (cgraph_next_defined_function): Likewise.
5118 (cgraph_first_function): Likewise.
5119 (cgraph_next_function): Likewise.
5120 (cgraph_first_function_with_gimple_body): Likewise.
5121 (cgraph_next_function_with_gimple_body): Likewise.
5122 (symtab_alias_target): Likewise.
5123 (symtab_real_symbol_p): Likewise.
5124 (symtab_can_be_discarded): Likewise.
5125 * cgraphbuild.c (mark_address): Likewise.
5126 (mark_load): Likewise.
5127 (mark_store): Likewise.
5128 * cgraphunit.c (decide_is_symbol_needed): Likewise.
5130 (enqueue_node): Likewise.
5131 (referred_to_p): Likewise.
5132 (cgraph_process_same_body_aliases): Likewise.
5133 (analyze_functions): Likewise.
5134 (handle_alias_pairs): Likewise.
5135 (output_weakrefs): Likewise.
5136 (compile): Likewise.
5137 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
5138 * ipa-inline-analysis.c (inline_write_summary): Likewise.
5139 * ipa-prop.c (remove_described_reference): Likewise.
5140 (try_decrement_rdesc_refcount): Likewise.
5141 (ipa_edge_duplication_hook): Likewise.
5142 * ipa-ref.c (ipa_record_reference): Likewise.
5143 (ipa_maybe_record_reference): Likewise.
5144 (ipa_clone_ref): Likewise.
5145 (ipa_clone_references): Likewise.
5146 (ipa_clone_referring): Likewise.
5147 (ipa_find_reference): Likewise.
5148 (ipa_remove_stmt_references): Likewise.
5149 (ipa_clear_stmts_in_references): Likewise.
5150 * ipa-ref.h (symtab_node_base): Likewise.
5151 (ipa_ref): Likewise.
5152 (ipa_record_reference): Likewise.
5153 (ipa_maybe_record_reference): Likewise.
5154 (ipa_clone_references): Likewise.
5155 (ipa_clone_referring): Likewise.
5156 (ipa_clone_ref): Likewise.
5157 (ipa_find_reference): Likewise.
5158 (ipa_remove_stmt_references): Likewise.
5159 (ipa_clear_stmts_in_references): Likewise.
5160 * ipa-reference.c (ipa_reference_write_optimization_summary):
5162 * ipa.c (enqueue_node): Likewise.
5163 (process_references): Likewise.
5164 (walk_polymorphic_call_targets): Likewise.
5165 (symtab_remove_unreachable_nodes): Likewise.
5166 (address_taken_from_non_vtable_p): Likewise.
5167 (comdat_can_be_unshared_p_1): Likewise.
5168 (comdat_can_be_unshared_p): Likewise.
5169 (can_replace_by_local_alias): Likewise.
5170 (function_and_variable_visibility): Likewise.
5171 * is-a.h: Likewise (within example in comment).
5172 * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
5173 (lto_symtab_encoder_encode): Likewise.
5174 (lto_symtab_encoder_delete_node): Likewise.
5175 (lto_symtab_encoder_in_partition_p): Likewise.
5176 (lto_set_symtab_encoder_in_partition): Likewise.
5177 (output_refs): Likewise.
5178 (compute_ltrans_boundary): Likewise.
5179 (output_symtab): Likewise.
5180 (input_node): Likewise.
5181 (input_ref): Likewise.
5182 (input_edge): Likewise.
5183 (input_cgraph_1): Likewise.
5184 (input_refs): Likewise.
5185 (output_cgraph_opt_summary): Likewise.
5186 (input_node_opt_summary): Likewise.
5187 (input_cgraph_opt_section): Likewise.
5188 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
5190 * lto-streamer-out.c (lto_output): Likewise.
5191 (output_symbol_p): Likewise.
5192 (produce_symtab): Likewise.
5193 * lto-streamer.h (lto_encoder_entry): Likewise.
5194 (lto_free_function_in_decl_state_for_node): Likewise.
5195 (lto_symtab_encoder_encode): Likewise.
5196 (lto_symtab_encoder_delete_node): Likewise.
5197 (lto_symtab_encoder_in_partition_p): Likewise.
5198 (lto_set_symtab_encoder_in_partition): Likewise.
5199 (lto_symtab_encoder_lookup): Likewise.
5200 (lsei_node): Likewise.
5201 (lto_symtab_encoder_deref): Likewise.
5202 * symtab.c (symtab_hash): Likewise.
5203 (assembler_name_hash): Likewise.
5204 (symtab_nodes): Likewise.
5205 (hash_node): Likewise.
5206 (eq_node): Likewise.
5207 (hash_node_by_assembler_name): Likewise.
5208 (eq_assembler_name): Likewise.
5209 (insert_to_assembler_name_hash): Likewise.
5210 (unlink_from_assembler_name_hash): Likewise.
5211 (symtab_prevail_in_asm_name_hash): Likewise.
5212 (symtab_register_node): Likewise.
5213 (symtab_insert_node_to_hashtable): Likewise.
5214 (symtab_unregister_node): Likewise.
5215 (symtab_get_node): Likewise.
5216 (symtab_remove_node): Likewise.
5217 (symtab_initialize_asm_name_hash): Likewise.
5218 (symtab_node_for_asm): Likewise.
5219 (symtab_add_to_same_comdat_group): Likewise.
5220 (symtab_dissolve_same_comdat_group_list): Likewise.
5221 (symtab_node_asm_name): Likewise.
5222 (symtab_node_name): Likewise.
5223 (dump_symtab_base): Likewise.
5224 (dump_symtab_node): Likewise.
5225 (dump_symtab): Likewise.
5226 (debug_symtab_node): Likewise.
5227 (verify_symtab_base): Likewise.
5228 (verify_symtab_node): Likewise.
5229 (verify_symtab): Likewise.
5230 (symtab_used_from_object_file_p): Likewise.
5231 (symtab_node_availability): Likewise.
5232 (symtab_alias_ultimate_target): Likewise.
5233 (fixup_same_cpp_alias_visibility): Likewise.
5234 (symtab_resolve_alias): Likewise.
5235 (symtab_for_node_and_aliases): Likewise.
5236 (symtab_for_node_and_aliases): Likewise.
5237 (symtab_nonoverwritable_alias_1): Likewise.
5238 (symtab_nonoverwritable_alias): Likewise.
5239 (symtab_semantically_equivalent_p): Likewise.
5240 * value-prof.c (init_node_map): Likewise.
5241 * varasm.c (find_decl): Likewise.
5242 * varpool.c (varpool_node_for_asm): Likewise.
5243 (varpool_remove_unreferenced_decls): Likewise.
5245 2013-10-31 David Malcolm <dmalcolm@redhat.com>
5247 Manual part of renaming of symtab_node_base to symtab_node.
5249 * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
5250 clashes with the preferred name for the base class.
5251 (const_symtab_node): Remove redundant typedef.
5253 2013-10-31 Jakub Jelinek <jakub@redhat.com>
5255 * optabs.c (expand_vec_perm): Avoid vector mode punning
5256 SUBREGs in SET_DEST.
5257 * expmed.c (store_bit_field_1): Likewise.
5258 * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
5259 vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
5260 vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
5261 * config/i386/i386.c (ix86_expand_vector_move_misalign,
5262 ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
5263 ix86_expand_sse_unpack, ix86_expand_args_builtin,
5264 ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
5265 emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
5266 expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
5267 expand_vec_perm_vpshufb2_vpermq,
5268 expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
5269 expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
5270 ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
5271 (expand_vec_perm_palignr): Likewise. Modify a copy of *d rather
5274 2013-10-31 Uros Bizjak <ubizjak@gmail.com>
5276 * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
5277 Use gcc_unreachable for unhandled modes. Do not check results of
5278 expand_simple_binop. If not expanded to target, move the result.
5280 2013-10-31 Chung-Ju Wu <jasonwucj@gmail.com>
5281 Shiva Chen <shiva0217@gmail.com>
5283 * config.gcc (nds32*-*-*): Add nds32 target.
5284 * config/nds32/nds32.c: New file.
5285 * config/nds32/nds32.h: New file.
5286 * config/nds32/nds32.md: New file.
5287 * config/nds32/constants.md: New file.
5288 * config/nds32/constraints.md: New file.
5289 * config/nds32/iterators.md: New file.
5290 * config/nds32/nds32-doubleword.md: New file.
5291 * config/nds32/nds32-intrinsic.md: New file.
5292 * config/nds32/nds32_intrinsic.h: New file.
5293 * config/nds32/nds32-modes.def: New file.
5294 * config/nds32/nds32-multiple.md: New file.
5295 * config/nds32/nds32.opt: New file.
5296 * config/nds32/nds32-opts.h: New file.
5297 * config/nds32/nds32-protos.h: New file.
5298 * config/nds32/nds32-peephole2.md: New file.
5299 * config/nds32/pipelines.md: New file.
5300 * config/nds32/predicates.md: New file.
5301 * config/nds32/t-mlibs: New file.
5302 * common/config/nds32: New directory and files.
5304 * doc/invoke.texi (NDS32 options): Document nds32 specific options.
5305 * doc/md.texi (NDS32 family): Document nds32 specific constraints.
5306 * doc/install.texi (Cross-Compiler-Specific Options): Document
5307 --with-nds32-lib for nds32 target.
5308 * doc/extend.texi (Function Attributes, Target Builtins): Document
5309 nds32 specific attributes.
5311 2013-10-31 Vladimir Makarov <vmakarov@redhat.com>
5313 * lra-constraints (process_alt_operands): Use the result
5314 elimination register for operand when matching constraints.
5316 2013-10-31 Jakub Jelinek <jakub@redhat.com>
5318 * tree-vrp.c (maybe_set_nonzero_bits): New function.
5319 (remove_range_assertions): Call it.
5321 * tree.c (tree_ctz): New function.
5322 * tree.h (tree_ctz): New prototype.
5323 * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
5324 first argument from tree to const_tree.
5325 * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
5326 * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
5327 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
5329 * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
5330 * tree-vect-loop.c (vect_analyze_loop_operations,
5331 vect_transform_loop): Don't force scalar loop for bound just because
5332 number of iterations is unknown, only do it if it is not known to be
5333 a multiple of vectorization_factor.
5334 * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
5336 * gimple-pretty-print.c (dump_ssaname_info): Print newline also
5337 in case of VR_VARYING. Print get_nonzero_bits if not all ones.
5338 * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
5339 (set_nonzero_bits, get_nonzero_bits): New prototypes.
5340 * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
5341 a default def isn't partially constant.
5342 (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
5343 is known to be partially zero.
5344 (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
5345 to see if a default def isn't partially constant.
5346 * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
5347 creation of a range, if VR_RANGE, try to improve nonzero_bits from
5349 (set_nonzero_bits, get_nonzero_bits): New functions.
5351 * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
5352 * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
5353 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
5354 (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
5355 uses but in the condition and ASSERT_EXPR and the other successor of
5356 the predecessor bb is __builtin_unreachable (), set_range_info of the
5357 ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
5359 2013-10-31 Martin Jambor <mjambor@suse.cz>
5361 PR rtl-optimization/58934
5363 2013-10-30 Martin Jambor <mjambor@suse.cz>
5364 PR rtl-optimization/10474
5365 * ira.c (find_moveable_pseudos): Do not calculate dominance info
5367 (interesting_dest_for_shprep): New function.
5368 (split_live_ranges_for_shrink_wrap): Likewise.
5369 (ira): Calculate dominance info and df analysis. Call
5370 split_live_ranges_for_shrink_wrap.
5372 2013-10-31 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
5373 Yury Gribov <y.gribov@samsung.com>
5376 * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
5377 shadow pointer to avoid clobbering the main one.
5379 2013-10-31 Zhenqiang Chen <zhenqiang.chen@linaro.org>
5381 * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
5383 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
5386 * ira-color.c (update_costs_from_copies): Add new parameter. Use
5387 it for calling update_costs_from_allocno.
5388 (assign_hard_reg): Call restore_costs_from_copies only for
5389 !retry_p. Pass new argument to update_costs_from_copies.
5390 (color_pass): Pass new argument to update_costs_from_copies.
5391 (ira_mark_allocation_change): Ditto.
5393 2013-10-30 Sharad Singhai <singhai@google.com>
5396 * opts.c (common_handle_option): Remove deprecated option
5397 -ftree-vectorizer-verbose.
5398 * doc/invoke.texi (Debugging Options): Ditto.
5399 * opts-global.c (handle_common_deferred_options): Ditto.
5400 (dump_remap_tree_vectorizer_verbose): Delete.
5401 * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
5403 2013-10-30 DJ Delorie <dj@redhat.com>
5405 * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
5406 that take no arguments.
5408 2013-10-30 Joern Rennecke <joern.rennecke@embecosm.com>
5411 * reload1.c (update_eliminables_and_spill): New function, broken
5413 (reload): Use it. Check for frame size change after frame size
5414 alignment, and call update_eliminables_and_spill first if continue-ing.
5416 2013-10-30 Cong Hou <congh@google.com>
5419 * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
5420 * config/i386/i386.c (ix86_expand_sse2_abs): New function.
5421 * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
5423 2013-10-18 Mikael Pettersson <mikpelinux@gmail.com>
5425 PR rtl-optimization/58369
5426 * reload1.c (compute_reload_subreg_offset): New function.
5427 (choose_reload_regs): Use it to pass endian-correct
5428 offset to subreg_regno_offset.
5430 2013-10-30 Tobias Burnus <burnus@net-b.de>
5433 * tree-cfg.c (replace_loop_annotate): Replace warning by
5436 2013-10-30 Jason Merrill <jason@redhat.com>
5438 * configure.ac (loose_warn): Add -Wno-format if
5439 --disable-build-format-warnings.
5441 2013-10-30 David Malcolm <dmalcolm@redhat.com>
5443 * cgraphunit.c (analyze_functions): Split symtab_node declarations
5444 onto multiple lines to make things easier for rename_symtab.py.
5446 * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
5447 (symtab_semantically_equivalent_p): Likewise.
5449 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
5452 * lra.c (check_rtl): Remove address check before LRA work.
5454 2013-10-30 Marc Glisse <marc.glisse@inria.fr>
5456 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
5457 POINTER_PLUS_EXPR in the defining statement.
5459 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
5461 * regmove.c: Remove.
5462 * tree-pass.h (make_pass_regmove): Remove.
5463 * timevar.def (TV_REGMOVE): Remove.
5464 * passes.def (pass_regmove): Remove.
5465 * opts.c (default_options_table): Remove entry for regmove.
5466 * doc/passes.texi: Remove regmove pass description.
5467 * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
5469 (-fdump-rtl-regmove): Ditto.
5470 * common.opt (foptimize-register-move, fregmove): Ignore.
5471 * Makefile.in (OBJS): Remove regmove.o.
5472 * regmove.c: Remove.
5473 * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
5475 (struct ira_allocno) New member allocno_prefs.
5476 (ALLOCNO_PREFS): New macro.
5477 (ira_prefs, ira_prefs_num): New external vars.
5478 (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
5479 (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
5480 (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
5482 (ira_add_allocno_copy_to_list): Remove prototype.
5483 (ira_swap_allocno_copy_ends_if_necessary): Ditto.
5484 (ira_pref_iterator): New type.
5485 (ira_pref_iter_init, ira_pref_iter_cond): New functions.
5486 (FOR_EACH_PREF): New macro.
5487 * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
5488 (ira_get_dup_out_num): Ditto. Rename from get_dup_num. Modify the
5490 (ira_setup_alts): New function.
5491 (decrease_live_ranges_number): New function.
5492 (ira): Call the above function.
5493 * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
5494 (ira_create_allocno): Initialize allocno prefs.
5495 (pref_pool, pref_vec): New static vars.
5496 (initiate_prefs, find_allocno_pref, ira_create_pref): New
5498 (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
5499 (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
5500 (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
5501 (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
5502 (ira_add_allocno_copy_to_list): Make static. Rename to
5503 add_allocno_copy_to_list.
5504 (ira_swap_allocno_copy_ends_if_necessary): Make static. Rename to
5505 swap_allocno_copy_ends_if_necessary.
5506 (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
5507 ira_remove_allocno_prefs.
5508 (ira_flattening): Ditto.
5509 (ira_build): Call initiate_prefs, print_prefs.
5510 (ira_destroy): Call finish_prefs.
5511 * ira-color.c (struct update_cost_record): New.
5512 (struct allocno_color_data): Add new member update_cost_records.
5513 (update_cost_record_pool): New static var.
5514 (init_update_cost_records, get_update_cost_record): New functions.
5515 (free_update_cost_record_list, finish_update_cost_records): Ditto.
5516 (struct update_cost_queue_elem): Add member from.
5517 (initiate_cost_update): Call init_update_cost_records.
5518 (finish_cost_update): Call finish_update_cost_records.
5519 (queue_update_cost, get_next_update_cost): Add new param from.
5520 (Update_allocno_cost, update_costs_from_allocno): New functions.
5521 (update_costs_from_prefs): Ditto.
5522 (update_copy_costs): Rename to update_costs_from_copies.
5523 (restore_costs_from_copies): New function.
5524 (update_conflict_hard_regno_costs): Don't go back.
5525 (assign_hard_reg): Call restore_costs_from_copies. Add printing
5527 (pop_allocnos): Add priniting more debug info.
5528 (color_allocnos): Remove prefs for conflicting hard regs.
5529 Call update_costs_from_prefs.
5530 * ira-conflicts.c (commutative_constraint_p): Move to ira.c
5531 (get_dup_num): Rename, modify, and move to ira.c
5532 (process_regs_for_copy): Add prefs.
5533 (add_insn_allocno_copies): Put src as first arg of
5534 process_regs_for_copy. Remove dead code. Call ira_setup_alts.
5535 * ira-costs.c (record_reg_classes): Modify and move code into
5536 record_operands_costs.
5537 (find_costs_and_classes): Create prefs for the hard reg of small
5539 (process_bb_node_for_hard_reg_moves): Add prefs.
5541 2013-10-30 Richard Biener <rguenther@suse.de>
5544 * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
5545 * cfganal.c (pre_and_rev_post_order_compute_fn): New function
5547 (pre_and_rev_post_order_compute): ... which now wraps it.
5548 * graph.c (draw_cfg_nodes_no_loops): Use
5549 pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
5552 2013-10-30 Christian Bruel <christian.bruel@st.com>
5554 * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
5555 (sh_expand_cmpstr): Handle known align and schedule improvements.
5556 * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
5557 * config/sh/sh.md (cmpstrnsi): New pattern.
5559 2013-10-30 Martin Jambor <mjambor@suse.cz>
5561 PR rtl-optimization/10474
5562 * ira.c (find_moveable_pseudos): Do not calculate dominance info
5564 (interesting_dest_for_shprep): New function.
5565 (split_live_ranges_for_shrink_wrap): Likewise.
5566 (ira): Calculate dominance info and df analysis. Call
5567 split_live_ranges_for_shrink_wrap.
5569 2013-10-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5572 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
5574 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
5576 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
5577 * tree.h (POINTER_BOUNDS_P): New.
5578 (BOUNDED_TYPE_P): New.
5580 (pointer_bounds_type_node): New.
5581 * tree.c (build_common_tree_nodes): Initialize
5582 pointer_bounds_type_node.
5583 * gimple.h (gimple_call_get_nobnd_arg_index): New.
5584 (gimple_call_num_nobnd_args): New.
5585 (gimple_call_nobnd_arg): New.
5586 (gimple_return_retbnd): New.
5587 (gimple_return_set_retbnd): New
5588 * gimple.c (gimple_build_return): Increase number of ops
5589 for return statement.
5590 (gimple_call_get_nobnd_arg_index): New.
5591 * gimple-pretty-print.c (dump_gimple_return): Print second op.
5593 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
5595 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
5596 with "chkp ctor" and "bnd_legacy" attributes.
5597 * gimplify.c (gimplify_init_constructor): Avoid infinite
5598 loop during gimplification of bounds initializer.
5600 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
5602 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
5603 (handle_bnd_legacy): New.
5604 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
5605 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
5608 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
5610 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
5611 (BT_FN_PTR_CONST_PTR): New.
5612 (BT_FN_CONST_PTR_CONST_PTR): New.
5613 (BT_FN_PTR_CONST_PTR_SIZE): New.
5614 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
5615 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
5616 (BT_FN_VOID_CONST_PTR_SIZE): New.
5617 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
5618 * chkp-builtins.def: New.
5619 * builtins.def: include chkp-builtins.def.
5620 (DEF_CHKP_BUILTIN): New.
5621 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
5622 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
5623 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
5624 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
5625 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
5626 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
5627 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
5628 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
5629 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
5630 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
5631 * common.opt (fcheck-pointer-bounds): New.
5632 * toplev.c (process_options): Check Pointer Bounds Checker is
5634 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
5636 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
5638 * target.def (builtin_chkp_function): New.
5639 (chkp_bound_type): New.
5640 (chkp_bound_mode): New.
5641 (fn_abi_va_list_bounds_size): New.
5642 (load_bounds_for_arg): New.
5643 (store_bounds_for_arg): New.
5644 * targhooks.h (default_load_bounds_for_arg): New.
5645 (default_store_bounds_for_arg): New.
5646 (default_fn_abi_va_list_bounds_size): New.
5647 (default_chkp_bound_type): New.
5648 (default_chkp_bound_mode): New.
5649 (default_builtin_chkp_function): New.
5650 * targhooks.c (default_load_bounds_for_arg): New.
5651 (default_store_bounds_for_arg): New.
5652 (default_fn_abi_va_list_bounds_size): New.
5653 (default_chkp_bound_type): New.
5654 (default_chkp_bound_mode); New.
5655 (default_builtin_chkp_function): New.
5656 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
5657 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
5658 (TARGET_STORE_BOUNDS_FOR_ARG): New.
5659 (TARGET_BUILTIN_CHKP_FUNCTION): New.
5660 (TARGET_CHKP_BOUND_TYPE): New.
5661 (TARGET_CHKP_BOUND_MODE): New.
5662 * doc/tm.texi: Regenerated.
5663 * langhooks.h (lang_hooks): Add chkp_supported field.
5664 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
5665 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
5667 2013-10-29 Andrew Pinski <apinski@cavium.com>
5669 * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
5670 (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
5671 fails, combining the branches anyways.
5672 (tree_ssa_ifcombine): Inverse the order of the basic block walk,
5673 increases the number of combinings.
5674 * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
5676 2013-10-29 Mike Stump <mikestump@comcast.net>
5678 * machmode.def (PARTIAL_INT_MODE): Add precision and name.
5679 * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
5680 (make_vector_mode): Increase namebuf to 16.
5681 (emit_insn_modes_h): When processing BImode, don't
5682 also match partial int modes.
5683 (emit_class_narrowest_mode): Likewise.
5685 * config/bfin/bfin-modes.def: Add precision to PDI.
5686 * config/m32c/m32c-modes.def: Add precision to PSI.
5687 * config/msp430/msp430-modes.def: Add precision to PSI.
5688 * config/rs6000/rs6000-modes.def: Add precision to PTI.
5689 * config/sh/sh-modes.def: Add precision to PSI and PDI.
5691 2013-10-29 Oleg Endo <olegendo@gcc.gnu.org>
5694 * config/sh/sh.md (*addc): Rename existing variations to ...
5695 (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
5696 (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
5697 *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
5698 * config/sh/sh.c (addsubcosts): Handle some addc special cases.
5700 2013-10-29 Teresa Johnson <tejohnson@google.com>
5703 * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
5704 insanities when updating probabilities.
5706 2013-10-29 David Malcolm <dmalcolm@redhat.com>
5708 * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
5709 prettyprinter for cgraph_node to reflect the conversion of the
5710 symtable types to a C++ class hierarchy: it now *is* a
5711 symtab_node_base, rather than having one (named "symbol").
5713 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
5715 * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
5716 __cilkrts_pop_frame. If matched, then return true for built-in
5718 (expand_builtin): Added BUILT_IN_CILK_DETACH and
5719 BUILT_IN_CILK_POP_FRAME case.
5720 * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
5721 (lhs_cilk_detect_spawn): Likewise.
5722 (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
5723 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
5724 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
5725 (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
5726 (LANG_HOOKS_CILKPLUS): Likewise.
5727 * tree.h (CILK_SPAWN_FN): Likewise.
5728 * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
5729 * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
5730 (OBJS): Added cilk-common.o.
5731 (BUILTINS_DEF): Added cilk-builtins.def.
5732 * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
5733 (lhd_cilk_detect_spawn): Likewise.
5734 * langhooks.h (lang_hooks_for_cilkplus): New struct.
5735 (struct lang_hooks): Added new field called "cilkplus."
5736 * cilk-common.c: New file.
5738 * cilk-builtins.def: Likewise.
5739 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
5740 "__cilk" macro and set it to 200.
5741 * function.h (struct function::cilk_frame_decl): New field.
5742 (struct function::is_cilk_function): Likewise.
5743 (struct function::calls_cilk_spawn): Likewise.
5744 * gimplify.c (gimplify_call_expr): Added a check if the function call
5745 being gimplified is a spawn detach point. If so, then add pop_frame
5746 and detach function calls.
5747 (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
5748 for gimplifying _Cilk_spawn and _Cilk_sync statements.
5749 (gimplify_return_expr): Added a check for _Cilk_spawn usage in
5750 function. If so, added a _Cilk_sync and gimplified it.
5751 (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
5752 INIT_EXPRs. If so, then call gimplify_cilk_spawn.
5753 * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
5755 (can_inline_edge_p): Prevent inling of spawnee function.
5756 * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
5757 for functions that use Cilk keywords.
5758 * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
5759 * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
5760 CILK_SYNC_STMT cases.
5761 * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
5763 * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
5764 (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
5765 * passes.texi (Cilk Keywords): New section that describes the compiler
5766 code changes for handling Cilk Keywords.
5768 2013-10-29 David Malcolm <dmalcolm@redhat.com>
5770 Patch autogenerated by refactor_symtab.py from
5771 https://github.com/davidmalcolm/gcc-refactoring-scripts
5772 revision 58bb219cc090b2f4516a9297d868c245495ee622
5774 * asan.c (asan_finish_file): Update for conversion of symtab types to
5775 a true class hierarchy.
5776 * cfgexpand.c (estimated_stack_frame_size): Likewise.
5777 * cgraph.c (cgraph_get_body): Likewise.
5778 (cgraph_get_create_real_symbol_node): Likewise.
5779 (verify_cgraph_node): Likewise.
5780 (verify_edge_corresponds_to_fndecl): Likewise.
5781 (verify_edge_count_and_frequency): Likewise.
5782 (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
5783 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
5784 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
5785 (cgraph_node_cannot_return): Likewise.
5786 (cgraph_set_pure_flag_1): Likewise.
5787 (cgraph_set_const_flag_1): Likewise.
5788 (cgraph_set_nothrow_flag_1): Likewise.
5789 (cgraph_make_node_local_1): Likewise.
5790 (cgraph_for_node_and_aliases): Likewise.
5791 (cgraph_for_node_thunks_and_aliases): Likewise.
5792 (cgraph_node_can_be_local_p): Likewise.
5793 (cgraph_node_cannot_be_local_p_1): Likewise.
5794 (cgraph_function_body_availability): Likewise.
5795 (dump_cgraph_node): Likewise.
5796 (cgraph_rtl_info): Likewise.
5797 (cgraph_mark_address_taken_node): Likewise.
5798 (cgraph_remove_node): Likewise.
5799 (cgraph_release_function_body): Likewise.
5800 (cgraph_update_edges_for_call_stmt_node): Likewise.
5801 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
5802 (cgraph_make_edge_direct): Likewise.
5803 (cgraph_resolve_speculation): Likewise.
5804 (cgraph_speculative_call_info): Likewise.
5805 (cgraph_turn_edge_to_speculative): Likewise.
5806 (cgraph_create_edge_1): Likewise.
5807 (cgraph_set_call_stmt): Likewise.
5808 (cgraph_node_for_asm): Likewise.
5809 (cgraph_add_thunk): Likewise.
5810 (cgraph_same_body_alias): Likewise.
5811 (cgraph_create_function_alias): Likewise.
5812 (cgraph_create_node): Likewise.
5813 (cgraph_create_empty_node): Likewise.
5814 (record_function_versions): Likewise.
5815 (used_from_object_file_p): Likewise.
5816 * cgraph.h (symtab_can_be_discarded): Likewise.
5817 (symtab_real_symbol_p): Likewise.
5818 (cgraph_mark_force_output_node): Likewise.
5819 (cgraph_edge_recursive_p): Likewise.
5820 (symtab_alias_target): Likewise.
5821 (varpool_all_refs_explicit_p): Likewise.
5822 (varpool_can_remove_if_no_refs): Likewise.
5823 (cgraph_only_called_directly_or_aliased_p): Likewise.
5824 (cgraph_next_function_with_gimple_body): Likewise.
5825 (cgraph_first_function_with_gimple_body): Likewise.
5826 (cgraph_function_with_gimple_body_p): Likewise.
5827 (cgraph_next_function): Likewise.
5828 (cgraph_first_function): Likewise.
5829 (cgraph_next_defined_function): Likewise.
5830 (cgraph_first_defined_function): Likewise.
5831 (varpool_next_defined_variable): Likewise.
5832 (varpool_first_defined_variable): Likewise.
5833 (varpool_next_static_initializer): Likewise.
5834 (varpool_first_static_initializer): Likewise.
5835 (varpool_next_variable): Likewise.
5836 (varpool_first_variable): Likewise.
5837 (varpool_node_name): Likewise.
5838 (varpool): Likewise.
5840 (is_a_helper <varpool_node>::test): Likewise.
5841 (is_a_helper <cgraph_node>::test): Likewise.
5842 (varpool_variable_node): Likewise.
5843 (cgraph_function_or_thunk_node): Likewise.
5844 (varpool_alias_target): Likewise.
5845 (cgraph_alias_target): Likewise.
5846 (cgraph_node_name): Likewise.
5847 (varpool_node_asm_name): Likewise.
5848 (cgraph_node_asm_name): Likewise.
5849 * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
5850 (cgraph_rebuild_references): Likewise.
5851 (rebuild_cgraph_edges): Likewise.
5852 (record_eh_tables): Likewise.
5853 (build_cgraph_edges): Likewise.
5854 (mark_store): Likewise.
5855 (mark_load): Likewise.
5856 (mark_address): Likewise.
5857 (record_type_list): Likewise.
5858 (record_reference): Likewise.
5859 * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
5860 (cgraph_materialize_clone): Likewise.
5861 (cgraph_function_versioning): Likewise.
5862 (cgraph_copy_node_for_versioning): Likewise.
5863 (update_call_expr): Likewise.
5864 (cgraph_find_replacement_node): Likewise.
5865 (cgraph_create_virtual_clone): Likewise.
5866 (cgraph_clone_node): Likewise.
5867 * cgraphunit.c (compile): Likewise.
5868 (output_weakrefs): Likewise.
5869 (output_in_order): Likewise.
5870 (expand_function): Likewise.
5871 (assemble_thunks_and_aliases): Likewise.
5872 (expand_thunk): Likewise.
5873 (mark_functions_to_output): Likewise.
5874 (handle_alias_pairs): Likewise.
5875 (analyze_functions): Likewise.
5876 (walk_polymorphic_call_targets): Likewise.
5877 (varpool_finalize_decl): Likewise.
5878 (process_function_and_variable_attributes): Likewise.
5879 (cgraph_process_same_body_aliases): Likewise.
5880 (analyze_function): Likewise.
5881 (cgraph_add_new_function): Likewise.
5882 (cgraph_finalize_function): Likewise.
5883 (referred_to_p): Likewise.
5884 (cgraph_reset_node): Likewise.
5885 (cgraph_process_new_functions): Likewise.
5886 (enqueue_node): Likewise.
5887 (decide_is_symbol_needed): Likewise.
5888 * coverage.c (coverage_compute_profile_id): Likewise.
5889 * dbxout.c (dbxout_expand_expr): Likewise.
5890 * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
5891 (reference_to_unused): Likewise.
5892 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
5893 * gimplify.c (unvisit_body): Likewise.
5894 (unshare_body): Likewise.
5895 * ipa-cp.c (ipcp_generate_summary): Likewise.
5896 (ipcp_decision_stage): Likewise.
5897 (identify_dead_nodes): Likewise.
5898 (decide_whether_version_node): Likewise.
5899 (decide_about_value): Likewise.
5900 (perhaps_add_new_callers): Likewise.
5901 (create_specialized_node): Likewise.
5902 (update_profiling_info): Likewise.
5903 (ipcp_propagate_stage): Likewise.
5904 (estimate_local_effects): Likewise.
5905 (good_cloning_opportunity_p): Likewise.
5906 (devirtualization_time_bonus): Likewise.
5907 (propagate_constants_accross_call): Likewise.
5908 (initialize_node_lattices): Likewise.
5909 (ipcp_cloning_candidate_p): Likewise.
5910 (determine_versionability): Likewise.
5911 (print_all_lattices): Likewise.
5912 (print_lattice): Likewise.
5913 (ipcp_discover_new_direct_edges): Likewise.
5914 * ipa-devirt.c (ipa_devirt): Likewise.
5915 (likely_target_p): Likewise.
5916 (update_type_inheritance_graph): Likewise.
5917 (possible_polymorphic_call_target_p): Likewise.
5918 (dump_possible_polymorphic_call_targets): Likewise.
5919 (devirt_variable_node_removal_hook): Likewise.
5920 (record_binfo): Likewise.
5921 (maybe_record_node): Likewise.
5922 (build_type_inheritance_graph): Likewise.
5923 * ipa-inline-analysis.c (inline_write_summary): Likewise.
5924 (inline_generate_summary): Likewise.
5925 (inline_analyze_function): Likewise.
5926 (do_estimate_growth): Likewise.
5927 (simple_edge_hints): Likewise.
5928 (estimate_node_size_and_time): Likewise.
5929 (estimate_edge_devirt_benefit): Likewise.
5930 (compute_inline_parameters): Likewise.
5931 (estimate_function_body_sizes): Likewise.
5932 (compute_bb_predicates): Likewise.
5933 (initialize_inline_failed): Likewise.
5934 (dump_inline_summary): Likewise.
5935 (dump_inline_edge_summary): Likewise.
5936 * ipa-inline-transform.c (inline_transform): Likewise.
5937 (preserve_function_body_p): Likewise.
5938 (save_inline_function_body): Likewise.
5939 (inline_call): Likewise.
5940 (clone_inlined_nodes): Likewise.
5941 (can_remove_node_now_p): Likewise.
5942 (can_remove_node_now_p_1): Likewise.
5943 * ipa-inline.c (early_inliner): Likewise.
5944 (early_inline_small_functions): Likewise.
5945 (inline_always_inline_functions): Likewise.
5946 (ipa_inline): Likewise.
5947 (flatten_function): Likewise.
5948 (inline_small_functions): Likewise.
5949 (speculation_useful_p): Likewise.
5950 (recursive_inlining): Likewise.
5951 (update_caller_keys): Likewise.
5952 (reset_edge_caches): Likewise.
5953 (update_edge_key): Likewise.
5954 (edge_badness): Likewise.
5955 (relative_time_benefit): Likewise.
5956 (want_inline_self_recursive_call_p): Likewise.
5957 (want_inline_small_function_p): Likewise.
5958 (want_early_inline_function_p): Likewise.
5959 (num_calls): Likewise.
5960 (can_early_inline_edge_p): Likewise.
5961 (can_inline_edge_p): Likewise.
5962 (report_inline_failed_reason): Likewise.
5963 * ipa-profile.c (ipa_profile): Likewise.
5964 (ipa_propagate_frequency): Likewise.
5965 (ipa_propagate_frequency_1): Likewise.
5966 (ipa_profile_generate_summary): Likewise.
5967 * ipa-prop.c (ipcp_transform_function): Likewise.
5968 (read_replacements_section): Likewise.
5969 (ipa_prop_read_section): Likewise.
5970 (ipa_modify_call_arguments): Likewise.
5971 (ipa_print_node_params): Likewise.
5972 (propagate_controlled_uses): Likewise.
5973 (update_indirect_edges_after_inlining): Likewise.
5974 (remove_described_reference): Likewise.
5975 (ipa_make_edge_direct_to_target): Likewise.
5976 (ipa_analyze_node): Likewise.
5977 (ipa_analyze_params_uses): Likewise.
5978 (ipa_compute_jump_functions): Likewise.
5979 (ipa_get_callee_param_type): Likewise.
5980 (ipa_print_node_jump_functions): Likewise.
5981 (ipa_initialize_node_params): Likewise.
5982 (ipa_populate_param_decls): Likewise.
5983 (ipa_func_spec_opts_forbid_analysis_p): Likewise.
5984 (write_agg_replacement_chain): Likewise.
5985 (ipa_write_node_info): Likewise.
5986 (ipa_edge_duplication_hook): Likewise.
5987 (try_decrement_rdesc_refcount): Likewise.
5988 * ipa-pure-const.c (propagate_nothrow): Likewise.
5989 (propagate_pure_const): Likewise.
5990 (pure_const_read_summary): Likewise.
5991 (pure_const_write_summary): Likewise.
5992 (analyze_function): Likewise.
5993 * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
5994 (ipa_ref_referring_ref_list): Likewise.
5995 * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
5996 (ipa_remove_stmt_references): Likewise.
5997 (ipa_find_reference): Likewise.
5998 (ipa_dump_referring): Likewise.
5999 (ipa_dump_references): Likewise.
6000 (ipa_record_reference): Likewise.
6001 * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
6002 (ipa_reference_write_optimization_summary): Likewise.
6003 (write_node_summary_p): Likewise.
6004 (propagate): Likewise.
6005 (read_write_all_from_decl): Likewise.
6006 (generate_summary): Likewise.
6007 (analyze_function): Likewise.
6008 (propagate_bits): Likewise.
6009 (ipa_reference_get_not_written_global): Likewise.
6010 (ipa_reference_get_not_read_global): Likewise.
6011 * ipa-split.c (execute_split_functions): Likewise.
6012 (split_function): Likewise.
6013 * ipa-utils.c (ipa_merge_profiles): Likewise.
6014 (dump_cgraph_node_set): Likewise.
6015 (ipa_reverse_postorder): Likewise.
6016 (ipa_edge_within_scc): Likewise.
6017 (ipa_get_nodes_in_cycle): Likewise.
6018 (ipa_free_postorder_info): Likewise.
6019 (ipa_reduced_postorder): Likewise.
6020 (searchc): Likewise.
6021 (recursive_call_p): Likewise.
6022 * ipa.c (ipa_cdtor_merge): Likewise.
6023 (record_cdtor_fn): Likewise.
6024 (function_and_variable_visibility): Likewise.
6025 (varpool_externally_visible_p): Likewise.
6026 (cgraph_externally_visible_p): Likewise.
6027 (comdat_can_be_unshared_p): Likewise.
6028 (comdat_can_be_unshared_p_1): Likewise.
6029 (address_taken_from_non_vtable_p): Likewise.
6030 (ipa_discover_readonly_nonaddressable_vars): Likewise.
6031 (symtab_remove_unreachable_nodes): Likewise.
6032 (walk_polymorphic_call_targets): Likewise.
6033 (process_references): Likewise.
6034 (enqueue_node): Likewise.
6035 (has_addr_references_p): Likewise.
6036 (cgraph_non_local_node_p_1): Likewise.
6037 * is-a.h (varpool_analyze_node): Likewise.
6038 * lto-cgraph.c (input_symtab): Likewise.
6039 (merge_profile_summaries): Likewise.
6040 (input_cgraph_1): Likewise.
6041 (input_edge): Likewise.
6042 (input_varpool_node): Likewise.
6043 (input_node): Likewise.
6044 (input_overwrite_node): Likewise.
6045 (compute_ltrans_boundary): Likewise.
6046 (output_refs): Likewise.
6047 (lto_output_varpool_node): Likewise.
6048 (lto_output_node): Likewise.
6049 (reachable_from_other_partition_p): Likewise.
6050 (referenced_from_other_partition_p): Likewise.
6051 (lto_output_edge): Likewise.
6052 (output_node_opt_summary): Likewise.
6053 (add_node_to): Likewise.
6054 (reachable_from_this_partition_p): Likewise.
6055 (lto_set_symtab_encoder_in_partition): Likewise.
6056 (lto_symtab_encoder_in_partition_p): Likewise.
6057 (lto_set_symtab_encoder_encode_initializer): Likewise.
6058 (lto_symtab_encoder_encode_initializer_p): Likewise.
6059 (lto_set_symtab_encoder_encode_body): Likewise.
6060 (lto_symtab_encoder_encode_body_p): Likewise.
6061 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
6063 * lto-streamer-in.c (lto_read_body): Likewise.
6064 (fixup_call_stmt_edges): Likewise.
6065 (fixup_call_stmt_edges_1): Likewise.
6066 * lto-streamer-out.c (produce_symtab): Likewise.
6067 (output_symbol_p): Likewise.
6068 (write_symbol): Likewise.
6069 (lto_output): Likewise.
6070 (copy_function): Likewise.
6071 (output_function): Likewise.
6072 * passes.c (function_called_by_processed_nodes_p): Likewise.
6073 (ipa_write_optimization_summaries): Likewise.
6074 (ipa_write_summaries): Likewise.
6075 (do_per_function_toporder): Likewise.
6076 (do_per_function): Likewise.
6077 (dump_passes): Likewise.
6078 * symtab.c (symtab_semantically_equivalent_p): Likewise.
6079 (symtab_nonoverwritable_alias): Likewise.
6080 (symtab_nonoverwritable_alias_1): Likewise.
6081 (symtab_for_node_and_aliases): Likewise.
6082 (symtab_resolve_alias): Likewise.
6083 (fixup_same_cpp_alias_visibility): Likewise.
6084 (symtab_alias_ultimate_target): Likewise.
6085 (symtab_used_from_object_file_p): Likewise.
6086 (verify_symtab_base): Likewise.
6087 (dump_symtab_base): Likewise.
6088 (symtab_node_name): Likewise.
6089 (symtab_node_asm_name): Likewise.
6090 (symtab_dissolve_same_comdat_group_list): Likewise.
6091 (symtab_add_to_same_comdat_group): Likewise.
6092 (symtab_unregister_node): Likewise.
6093 (symtab_insert_node_to_hashtable): Likewise.
6094 (symtab_register_node): Likewise.
6095 (unlink_from_assembler_name_hash): Likewise.
6096 (insert_to_assembler_name_hash): Likewise.
6097 (eq_assembler_name): Likewise.
6098 (hash_node_by_assembler_name): Likewise.
6099 (eq_node): Likewise.
6100 (hash_node): Likewise.
6101 * toplev.c (wrapup_global_declaration_2): Likewise.
6102 * trans-mem.c (ipa_tm_execute): Likewise.
6103 (ipa_tm_transform_clone): Likewise.
6104 (ipa_tm_transform_transaction): Likewise.
6105 (ipa_tm_transform_calls_redirect): Likewise.
6106 (ipa_tm_insert_gettmclone_call): Likewise.
6107 (ipa_tm_insert_irr_call): Likewise.
6108 (ipa_tm_create_version): Likewise.
6109 (ipa_tm_create_version_alias): Likewise.
6110 (ipa_tm_mark_forced_by_abi_node): Likewise.
6111 (ipa_tm_mark_force_output_node): Likewise.
6112 (ipa_tm_diagnose_tm_safe): Likewise.
6113 (ipa_tm_mayenterirr_function): Likewise.
6114 (ipa_tm_scan_irr_function): Likewise.
6115 (ipa_tm_note_irrevocable): Likewise.
6116 (ipa_tm_scan_calls_clone): Likewise.
6117 (get_cg_data): Likewise.
6118 * tree-eh.c (tree_could_trap_p): Likewise.
6119 * tree-emutls.c (ipa_lower_emutls): Likewise.
6120 (create_emultls_var): Likewise.
6121 (lower_emutls_function_body): Likewise.
6122 (gen_emutls_addr): Likewise.
6123 (emutls_decl): Likewise.
6124 (new_emutls_decl): Likewise.
6125 * tree-inline.c (tree_function_versioning): Likewise.
6126 (optimize_inline_calls): Likewise.
6127 (expand_call_inline): Likewise.
6128 (estimate_num_insns): Likewise.
6129 (copy_bb): Likewise.
6130 (delete_unreachable_blocks_update_callgraph): Likewise.
6131 * tree-nested.c (gimplify_all_functions): Likewise.
6132 (create_nesting_tree): Likewise.
6133 (check_for_nested_with_variably_modified): Likewise.
6134 * tree-pretty-print.c (dump_function_header): Likewise.
6135 * tree-profile.c (tree_profiling): Likewise.
6136 * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
6137 (modify_function): Likewise.
6138 (convert_callers): Likewise.
6139 (convert_callers_for_node): Likewise.
6140 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
6141 (associate_varinfo_to_alias): Likewise.
6142 (create_variable_info_for): Likewise.
6143 (get_constraint_for_ssa_var): Likewise.
6144 * tree-vectorizer.c (increase_alignment): Likewise.
6145 * tree.c (find_decls_types_in_var): Likewise.
6146 (find_decls_types_in_node): Likewise.
6147 (free_lang_data_in_decl): Likewise.
6148 * value-prof.c (gimple_ic_transform): Likewise.
6149 (gimple_ic): Likewise.
6150 (check_ic_target): Likewise.
6151 (init_node_map): Likewise.
6152 * varasm.c (decl_binds_to_current_def_p): Likewise.
6153 (default_binds_local_p_1): Likewise.
6154 (dump_tm_clone_pairs): Likewise.
6155 (assemble_alias): Likewise.
6156 (find_decl): Likewise.
6157 (mark_decl_referenced): Likewise.
6158 * varpool.c (varpool_for_node_and_aliases): Likewise.
6159 (varpool_extra_name_alias): Likewise.
6160 (varpool_create_variable_alias): Likewise.
6161 (add_new_static_var): Likewise.
6162 (varpool_finalize_named_section_flags): Likewise.
6163 (varpool_remove_unreferenced_decls): Likewise.
6164 (enqueue_node): Likewise.
6165 (varpool_assemble_decl): Likewise.
6166 (assemble_aliases): Likewise.
6167 (varpool_analyze_node): Likewise.
6168 (cgraph_variable_initializer_availability): Likewise.
6169 (varpool_add_new_variable): Likewise.
6170 (ctor_for_folding): Likewise.
6171 (dump_varpool_node): Likewise.
6172 (varpool_remove_initializer): Likewise.
6173 (varpool_remove_node): Likewise.
6174 (varpool_node_for_decl): Likewise.
6175 (varpool_create_empty_node): Likewise.
6176 * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
6177 (ix86_get_function_versions_dispatcher): Likewise.
6179 2013-10-29 David Malcolm <dmalcolm@redhat.com>
6181 * cgraph.h (symtab_node_base): Convert to a class;
6182 add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
6183 chain_next/prev from symtab_node_def.
6184 (cgraph_node): Inherit from symtab_node; add GTY option
6185 tag ("SYMTAB_FUNCTION").
6186 (varpool_node): Inherit from symtab_node; add GTY option
6187 tag ("SYMTAB_VARIABLE").
6188 (symtab_node_def): Remove.
6189 (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
6190 (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
6191 (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
6192 (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
6194 * ipa-ref.h (symtab_node_def): Drop.
6195 (symtab_node): Change underlying type from symtab_node_def to
6197 (const_symtab_node): Likwise.
6199 * is-a.h: Update examples in comment.
6201 * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
6202 (assembler_name_hash): Likewise.
6204 2013-10-29 Martin Liska <marxin.liska@gmail.com>
6206 * doc/tree-ssa.texi (gimple_phi_result): Document.
6207 (gimple_phi_num_args, gimple_phi_arg): Likewise.
6208 (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
6209 (PHI_RESULT, PHI_NUM_ARGS): Remove.
6210 (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
6212 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
6214 * expr.h: Revert change and include tree-core.h.
6215 * rtl.h: Revert change and don't include tree-core.h.
6217 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
6219 * config/darwin.c: Include gimple.h.
6220 * config/i386/winnt.c: Likewise.
6222 2013-10-29 Marc Glisse <marc.glisse@inria.fr>
6224 PR tree-optimization/19831
6225 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
6227 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
6229 * tree-outof-ssa.h: Remove include files.
6230 * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
6232 * tree-ssa-coalesce.c: Likewise.
6233 * cfgexpand.c: Likewise.
6234 * tree-ssa-ter.c: Likewise.
6235 * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
6236 * lto-streamer.h: Likewise.
6237 * cgraphbuild.c: Add gimple.h to include list.
6238 * data-streamer-in.c: Likewise.
6239 * ipa-cp.c: Likewise.
6240 * tree-streamer.c: Likewise.
6241 * lto-compress.c: Likewise.
6242 * ipa-reference.c: Likewise.
6243 * data-streamer-out.c: Likewise.
6244 * lto-cgraph.c: Likewise.
6245 * cgraphclones.c: Likewise.
6246 * ipa-utils.c: Likewise.
6247 * data-streamer.c: Likewise.
6248 * ipa-split.c: Likewise.
6249 * lto-section-in.c: Likewise.
6250 * tree-streamer-out.c: Likewise.
6251 * ipa-prop.c: Likewise.
6252 * tree-streamer-in.c: Likewise.
6253 * symtab.c: Likewise.
6254 * opts-global.c: Likewise.
6255 * lto-opts.c: Likewise.
6256 * lto-section-out.c: Likewise.
6257 * lto-streamer.c: Likewise.
6258 * rtl.h: Add tree-core.h to include list.
6259 * expr.h: Remove tree-core.h from include list.
6260 * gimple.h: Likewise.
6261 * ipa-utils.h: Likewise.
6262 * streamer-hooks.h: Likewise.
6263 * streamer-hooks.c: Include input.h.
6265 2013-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6267 * config/arm/arm.c (cortexa7_extra_costs): New table.
6268 (arm_cortex_a7_tune): New.
6269 * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
6271 2013-10-29 Eric Botcazou <ebotcazou@adacore.com>
6273 * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
6275 2013-10-29 David Malcolm <dmalcolm@redhat.com>
6277 * doc/gty.texi ("Inheritance and GTY"): Make it clear that
6278 to use autogenerated markers for a class-hierarchy, every class
6279 must have a GTY marker.
6280 * gengtype.h (struct type): Add linked list of subclasses to
6281 the "s" member of the union.
6282 (add_subclass): New decl.
6283 * gengtype-state.c (read_state_struct_type): Set up subclass
6285 * gengtype.c (get_ultimate_base_class): New.
6286 (add_subclass): New.
6287 (new_structure): Set up subclass linked list.
6288 (set_gc_used_type): Propagate usage information to subclasses.
6289 (output_mangled_typename): Use get_ultimate_base_class.
6290 (walk_subclasses): Use the subclass linked list, avoiding an
6291 O(N^2) when writing out all types.
6292 (walk_type): Issue an error if the base class is missing a tag,
6293 rather than generating bogus C code. Add a gcc_unreachable
6294 default case, in case people omit tags from concrete subclasses,
6295 or get the values wrong.
6296 (write_func_for_structure): Issue an error for subclasses for
6297 which the base doesn't have a "desc", since otherwise the
6298 autogenerated routines for the base would silently fail to visit
6299 any subclass fields.
6300 (write_root): Use get_ultimate_base_class, tweaking constness of
6301 tp to match that function's signature.
6303 2013-10-29 David Malcolm <dmalcolm@redhat.com>
6305 * doc/gty.texi (GTY Options): Add note about inheritance to
6306 description of desc and tag.
6307 (Inheritance and GTY): New.
6309 2013-10-29 David Malcolm <dmalcolm@redhat.com>
6311 * gengtype-parse.c (opts_have): Drop "static" so that
6312 we can use this from gengtype.c.
6313 * gengtype.c (set_gc_used_type): Mark any base class as used;
6314 update field traversal to visit inherited fields.
6315 (output_mangled_typename): Convert references to classes within
6316 an inheritance hierarchy to reference the ultimate base class,
6317 since only it will have gt_ functions.
6318 (get_string_option): New.
6319 (walk_subclasses): New.
6320 (walk_type): Treat GTY structs that have a "desc" as being the
6321 root of an inheritance hierarchy. Generate a switch on it
6322 within the marking function which walks all subclasses, adding
6323 cases for them via walk_subclasses. For subclasses, visit all
6324 fields of the type (including inherited ones).
6325 (write_func_for_structure): Don't write fns for subclasses, only
6326 for the ultimate base class within an inheritance hierarchy.
6327 Subclasses-marking will be handled by the base class marking functions.
6328 (write_types): Likewise.
6329 (write_local_func_for_structure): Likewise.
6330 (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
6331 a "tag" option (and are thus concrete subclasses).
6332 (write_root): Use the marker function for the ultimate base class.
6333 * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
6334 (opts_have): Add declaration.
6336 2013-10-28 Vladimir Makarov <vmakarov@redhat.com>
6338 * lra-spills.c (lra_final_code_change): Remove useless move insns
6339 originated from moves of pseudos.
6341 2013-10-28 Jeff Law <law@redhat.com>
6343 * lower-subreg.c (resolve_simple_move): Fix comment typo.
6345 2013-10-28 Trevor Saunders <tsaunders@mozilla.com>
6347 * df-scan.c (df_collection_rec): Adjust.
6348 (copy_defs): New constant.
6349 (copy_uses): Likewise.
6350 (copy_eq_uses): Likewise.
6351 (copy_mw): Likewise.
6352 (copy_all): Likewise.
6353 (df_insn_rescan): Adjust.
6354 (df_notes_rescan): Likewise.
6355 (df_swap_refs): Likewise.
6356 (df_sort_and_compress_refs): Likewise.
6357 (df_sort_and_compress_mws): Likewise.
6358 (df_install_refs): Likewise.
6359 (df_install_mws): Likewise.
6360 (df_refs_add_to_chains): Add flags parameter controlling which vectors
6362 (df_bb_refs_record): Adjust.
6363 (df_record_entry_block_defs): Likewise.
6364 (df_record_exit_block_defs): Likewise.
6365 (df_refs_verify): Likewise.
6366 (df_mws_verify): Likewise.
6367 (df_insn_refs_verify): Likewise.
6368 (df_bb_verify): Likewise.
6369 * ipa-pure-const.c (finish_state): Remove.
6370 (propagate): Adjust.
6371 * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
6372 tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
6373 var-tracking.c: Adjust.
6374 * vec.c (stack_vecs): Remove.
6375 (register_stack_vec): Likewise.
6376 (stack_vec_register_index): Likewise.
6377 (unregister_stack_vec): Likewise.
6378 * vec.h (struct va_stack): Remove.
6379 (struct vec<T, A, vl_ptr>): Specialize as
6380 struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
6381 allocation strategy compatable with the vl_ptr layout.
6382 (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
6383 specialization anyway.
6384 (class stack_vec): New class.
6385 (vec_stack_alloc): Remove.
6386 (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
6388 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
6389 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6390 Sergey Lega <sergey.s.lega@intel.com>
6391 Anna Tikhonova <anna.tikhonova@intel.com>
6392 Ilya Tocar <ilya.tocar@intel.com>
6393 Andrey Turetskiy <andrey.turetskiy@intel.com>
6394 Ilya Verbin <ilya.verbin@intel.com>
6395 Kirill Yukhin <kirill.yukhin@intel.com>
6396 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6398 * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
6399 (*prefetch_avx512pf_<mode>): New.
6400 * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
6401 (avx512f_maskcmp<mode>3): Ditto.
6402 (vashrv16si3): Ditto.
6404 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
6405 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6406 Sergey Lega <sergey.s.lega@intel.com>
6407 Anna Tikhonova <anna.tikhonova@intel.com>
6408 Ilya Tocar <ilya.tocar@intel.com>
6409 Andrey Turetskiy <andrey.turetskiy@intel.com>
6410 Ilya Verbin <ilya.verbin@intel.com>
6411 Kirill Yukhin <kirill.yukhin@intel.com>
6412 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6414 * config/i386/i386.md (any_truncate): New.
6415 (trunsuffix): Ditto.
6416 * config/i386/predicates.md (const_8_to_9_operand): New.
6417 (const_10_to_11_operand): Ditto.
6418 (const_12_to_13_operand): Ditto.
6419 (const_14_to_15_operand): Ditto.
6420 (const_16_to_19_operand): Ditto.
6421 (const_20_to_23_operand): Ditto.
6422 (const_24_to_27_operand): Ditto.
6423 (const_28_to_31_operand): Ditto.
6424 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
6425 (cvtusi2<ssescalarmodesuffix>32): New.
6426 (cvtusi2<ssescalarmodesuffix>64): Ditto.
6427 (ufloatv16siv16sf2): Ditto.
6428 (avx512f_fix_notruncv16sfv16si): Ditto.
6429 (avx512f_ufix_notruncv16sfv16si): Ditto.
6430 (avx512f_vcvtss2usi): Ditto.
6431 (avx512f_vcvtss2usiq): Ditto.
6432 (avx512f_vcvttss2usi): Ditto.
6433 (avx512f_vcvttss2usiq): Ditto.
6434 (avx512f_vcvtsd2usi): Ditto.
6435 (avx512f_vcvtsd2usiq): Ditto.
6436 (avx512f_vcvttsd2usi): Ditto.
6437 (avx512f_vcvttsd2usiq): Ditto.
6438 (ufloatv8siv8df): Ditto.
6439 (avx512f_cvtdq2pd512_2): Ditto.
6440 (avx512f_cvtpd2dq512): Ditto.
6441 (avx512f_ufix_notruncv8dfv8si): Ditto.
6442 (avx512f_cvtpd2ps512): Ditto.
6443 (vec_unpacks_lo_v16sf): Ditto.
6444 (vec_unpacks_hi_v16sf): Ditto.
6445 (vec_unpacks_float_hi_v16si): Ditto.
6446 (vec_unpacks_float_lo_v16si): Ditto.
6447 (avx512f_unpckhps512): Ditto.
6448 (avx512f_unpcklps512): Ditto.
6449 (avx512f_movshdup512): Ditto.
6450 (avx512f_movsldup512): Ditto.
6451 (vec_extract_lo_v32hi): Ditto.
6452 (vec_extract_hi_v32hi): Ditto.
6453 (vec_extract_lo_v64qi): Ditto.
6454 (vec_extract_hi_v64qi): Ditto.
6455 (avx512f_unpckhpd512): Ditto.
6456 (avx512f_movddup512): Ditto.
6457 (avx512f_unpcklpd512): Ditto.
6458 (*avx512f_unpcklpd512): Ditto.
6459 (avx512f_shufps512_1): Ditto.
6460 (avx512f_shufpd512_1): Ditto.
6461 (avx512f_interleave_highv8di): Ditto.
6462 (avx512f_interleave_lowv8di): Ditto.
6463 (PMOV_DST_MODE): Ditto.
6464 (pmov_src_mode): Ditto.
6465 (pmov_src_lower): Ditto.
6467 (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
6468 (*avx512f_<code>v8div16qi2): Ditto.
6469 (*avx512f_<code>v8div16qi2_store): Ditto.
6470 (vec_widen_umult_even_v16si): Ditto.
6471 (*vec_widen_umult_even_v16si): Ditto.
6472 (vec_widen_smult_even_v16si): Ditto.
6473 (*vec_widen_smult_even_v16si): Ditto.
6474 (avx512f_interleave_highv16si): Ditto.
6475 (avx512f_interleave_lowv16si): Ditto.
6476 (avx512f_<code>v16qiv16si2): Ditto.
6477 (avx512f_<code>v16hiv16si2): Ditto.
6478 (avx512f_<code>v8qiv8di2): Ditto.
6479 (avx512f_<code>v8hiv8di2): Ditto.
6480 (avx512f_<code>v8siv8di2): Ditto.
6481 (avx512cd_maskb_vec_dupv8di): Ditto.
6482 (avx512cd_maskw_vec_dupv16si): Ditto.
6483 (avx512f_vcvtph2ps512): Ditto.
6484 (avx512f_vcvtps2ph512): Ditto.
6485 (VEC_EXTRACT_MODE): Extened with wider modes.
6486 (VEC_PERM_AVX2): Ditto.
6487 (VEC_PERM_CONST): Ditto.
6489 2013-10-28 Joern Rennecke <joern.rennecke@embecosm.com>
6491 * config/arc/arc.c (arc_ccfsm_post_advance):
6492 Add comment about TYPE_RETURN.
6494 2013-10-28 Bin Cheng <bin.cheng@arm.com>
6496 * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
6497 Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
6498 (strip_offset): Convert offset to unsigned number.
6500 2013-10-27 Tom de Vries <tom@codesourcery.com>
6502 * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
6503 Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
6505 2013-10-27 Oleg Endo <olegendo@gcc.gnu.org>
6507 * config/sh/sh.c (MSW, LSW): Move and rename macros to...
6508 * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
6509 (TARGET_BIG_ENDIAN): New macro.
6510 * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
6511 Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
6512 * config/sh/sh.c: Likewise.
6513 * config/sh/sh.h: Likewise.
6515 2013-10-27 Hans-Peter Nilsson <hp@axis.com>
6517 * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
6518 removed PRED_MUDFLAP with PRED_NORETURN. Correct file-path in comment.
6520 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
6522 * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
6524 (cmpstr_t, cmpstrsi): Fix formatting.
6526 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
6529 * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
6530 addressing, do not use general_operand for memory operands.
6532 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
6535 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
6536 * lra-spills.c (lra_final_code_change): Remove useless move insns.
6538 2013-10-26 Jeff Law <law@redhat.com>
6540 * predict.c (PRED_MUDFLAP): Remove.
6541 * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
6543 * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
6544 (OBJS): Remove tree-nomudflap.o
6545 (GTFILES): Remove tree-mudflap.c
6546 * builtins.c (expand_builtin_alloc): Remove mudflap support.
6547 * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
6548 (mfwrap_spec, mflib_spec): Likewise.
6549 (cpp_unique_options, cc1_options, static_specs): Likewise.
6550 * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
6551 * passes.def: Likewise.
6552 * toplev.c (compile_file, process_options): Likewise.
6553 * tree-inline.c (copy_tree_r): Likewise.
6554 * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
6555 * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
6556 (build_constant_desc, output_constant_def_contents): Likewise.
6557 (categorize_decl_for_section): Likewise.
6558 * tree-mudflap.c: Removed.
6559 * tree-mudflap.h: Removed.
6560 * tree-nomudflap.c: Removed.
6561 * bfin/uclinux.h (MFWRAP_SPEC): Remove.
6562 * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
6563 * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
6564 * config/sol2.h (MFLIB_SPEC): Likewise.
6565 * doc/install.texi: Remove mudflap references.
6566 * doc/passes.texi: Similarly.
6567 * doc/sourcebuild.texi: Similarly.
6568 * doc/invoke.texi: Remove mudlfap related options.
6570 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
6572 PR rtl-optimization/58759
6573 * lra-constraints.c (lra_constraints): Remove wrong condition to
6574 remove insn setting up an equivalent pseudo.
6576 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
6578 * config/rs6000/rs6000-protos.h
6579 (rs6000_secondary_memory_needed_mode): New prototype.
6580 * config/rs6000/rs6000.c: Include ira.h.
6581 (TARGET_LRA_P): Redefine.
6582 (rs6000_legitimate_offset_address_p): Call
6583 legitimate_constant_pool_address_p in strict mode for LRA.
6584 (rs6000_legitimate_address_p): Ditto.
6585 (legitimate_lo_sum_address_p): Add code for LRA. Use lra_in_progress.
6586 (rs6000_emit_move): Add LRA version of code to generate load/store
6588 (rs6000_secondary_memory_needed_mode): New.
6589 (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
6590 (rs6000_secondary_reload_class): Return NO_REGS for LRA for
6591 constants, memory, and FP registers.
6592 (rs6000_lra_p): New.
6593 * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
6594 * config/rs6000/rs6000.opt (mlra): New option.
6595 * lra-spills.c (lra_final_code_change): Remove useless move insns.
6597 2013-10-25 Yufeng Zhang <yufeng.zhang@arm.com>
6599 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
6600 has_single_use () and not do the conversion if has_single_use ()
6601 returns false for the multiplication result.
6603 2013-10-25 David Malcolm <dmalcolm@redhat.com>
6605 * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
6606 to "NODE", since this works on a "tree", not an
6608 (CONSTANT_CLASS_P): Likewise.
6611 (INDIRECT_REF_P): Likewise.
6612 (REFERENCE_CLASS_P): Likewise.
6613 (COMPARISON_CLASS_P): Likewise.
6614 (UNARY_CLASS_P): Likewise.
6615 (BINARY_CLASS_P): Likewise.
6616 (STATEMENT_CLASS_P): Likewise.
6617 (VL_EXP_CLASS_P): Likewise.
6618 (EXPRESSION_CLASS_P): Likewise.
6619 (IS_TYPE_OR_DECL_P): Likewise.
6621 2013-10-25 Marc Glisse <marc.glisse@inria.fr>
6623 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
6624 ADDR_EXPR in the defining statement.
6626 2013-10-25 Richard Biener <rguenther@suse.de>
6628 PR tree-optimization/58626
6629 * tree-loop-distribution.c (enum rdg_dep_type): Remove
6630 anti_dd, output_dd and input_dd.
6631 (struct rdg_edge): Remove level and relation members.
6632 (RDGE_LEVEL, RDGE_RELATION): Remove.
6633 (dot_rdg_1): Adjust.
6634 (create_rdg_edge_for_ddr): Remove.
6635 (create_rdg_edges_for_scalar): Adjust.
6636 (create_edge_for_control_dependence): Likewise.
6637 (create_rdg_edges): Split into ...
6638 (create_rdg_flow_edges): ... this
6639 (create_rdg_cd_edges): ... and this.
6641 (build_rdg): Likewise, do not compute data dependences or
6643 (pg_add_dependence_edges): New function.
6645 (distribute_loop): First apply all non-dependence based
6646 partition mergings. Then compute dependences between partitions
6647 and merge and order partitions according to them.
6649 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
6651 PR rtl-optimization/58831
6652 * alias.c (init_alias_analysis): At the beginning of each iteration,
6653 set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
6655 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
6657 * recog.c (search_ofs): New static variable moved from...
6658 (peep2_find_free_register): ...here.
6659 (peephole2_optimize): Initialize it.
6661 2013-10-25 Tobias Burnus <burnus@net-b.de>
6663 * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
6665 2013-10-25 Uros Bizjak <ubizjak@gmail.com>
6667 * config/i386/i386.h (TARGET_MPX): New define.
6668 (TARGET_MPX_P): Ditto.
6670 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
6672 * config/i386/constraints.md (B): New.
6675 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
6676 * config/i386/i386-modes.def (BND32): New.
6678 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
6679 * config/i386/i386.c (isa_opts): Add mmpx.
6680 (regclass_map): Add bound registers.
6681 (dbx_register_map): Likewise.
6682 (dbx64_register_map): Likewise.
6683 (svr4_dbx_register_map): Likewise.
6685 (ix86_option_override_internal): Support MPX ISA.
6686 (ix86_conditional_register_usage): Support bound registers.
6687 (print_reg): Likewise.
6688 (ix86_code_end): Add MPX bnd prefix.
6689 (output_set_got): Likewise.
6690 (ix86_output_call_insn): Likewise.
6691 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
6692 (ix86_print_operand_punct_valid_p): Likewise.
6693 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
6695 (ix86_class_likely_spilled_p): Add bound regs support.
6696 (ix86_hard_regno_mode_ok): Likewise.
6697 (x86_order_regs_for_local_alloc): Likewise.
6698 (ix86_bnd_prefixed_insn_p): New.
6699 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
6700 (FIXED_REGISTERS): Add bound registers.
6701 (CALL_USED_REGISTERS): Likewise.
6702 (REG_ALLOC_ORDER): Likewise.
6703 (HARD_REGNO_NREGS): Likewise.
6705 (VALID_BND_REG_MODE): New.
6706 (FIRST_BND_REG): New.
6707 (LAST_BND_REG): New.
6708 (reg_class): Add BND_REGS.
6709 (REG_CLASS_NAMES): Likewise.
6710 (REG_CLASS_CONTENTS): Likewise.
6712 (ANY_BND_REG_P): New.
6714 (HI_REGISTER_NAMES): Add bound registers.
6715 * config/i386/i386.md (UNSPEC_BNDMK): New.
6716 (UNSPEC_BNDMK_ADDR): New.
6717 (UNSPEC_BNDSTX): New.
6718 (UNSPEC_BNDLDX): New.
6719 (UNSPEC_BNDLDX_ADDR): New.
6720 (UNSPEC_BNDCL): New.
6721 (UNSPEC_BNDCU): New.
6722 (UNSPEC_BNDCN): New.
6723 (UNSPEC_MPX_FENCE): New.
6726 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
6727 (length_immediate): Likewise.
6728 (prefix_0f): Likewise.
6730 (prefix_rep): Check for bnd prefix.
6731 (length_nobnd): New.
6732 (length): Use length_nobnd if specified.
6737 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
6740 (simple_return_internal): Likewise.
6741 (simple_return_pop_internal): Likewise.
6742 (*indirect_jump): Add MPX bnd prefix.
6743 (*tablejump_1): Likewise.
6744 (simple_return_internal_long): Likewise.
6745 (simple_return_indirect_internal): Likewise.
6749 (*mov<mode>_internal_mpx): New.
6750 (<mode>_<bndcheck>): New.
6751 (*<mode>_<bndcheck>): New.
6756 * config/i386/predicates.md (lea_address_operand): Rename to...
6757 (address_no_seg_operand): ... this.
6758 (address_mpx_no_base_operand): New.
6759 (address_mpx_no_index_operand): New.
6760 (bnd_mem_operator): New.
6761 * config/i386/i386.opt (mmpx): New.
6762 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
6763 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
6765 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
6767 * mode-classes.def (MODE_POINTER_BOUNDS): New.
6768 * tree.def (POINTER_BOUNDS_TYPE): New.
6769 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
6770 (POINTER_BOUNDS_MODE): New.
6771 (make_pointer_bounds_mode): New.
6772 * machmode.h (POINTER_BOUNDS_MODE_P): New.
6773 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
6774 (layout_type): Support POINTER_BOUNDS_TYPE.
6775 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
6776 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
6777 (type_contains_placeholder_1): Likewise.
6778 * tree.h (POINTER_BOUNDS_TYPE_P): New.
6779 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
6780 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
6782 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
6784 * expr.c (expand_expr_real_1): Use mode of memory reference rather than
6785 mode of address computation when calling memory_address_addr_space.
6787 2013-08-24 Richard Henderson <rth@twiddle.net>
6790 * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
6791 instead of create_convert_operand_to.
6792 (maybe_emit_sync_lock_test_and_set): Likewise.
6793 (expand_atomic_compare_and_swap): Likewise.
6794 (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
6796 2013-08-24 Sriraman Tallam <tmsriram@google.com>
6798 * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
6799 Change param_is to use the struct and not the pointer to the struct.
6801 2013-10-24 Andrew MacLeod <amacleod@redhat.com>
6803 * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
6804 * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
6805 Move to targhooks.c.
6806 (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
6807 * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
6808 Relocate from gimplify.c.
6809 * targhooks.h: Add 2 prototypes.
6810 * tree.h: Delete 2 prototypes.
6812 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
6814 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
6815 [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
6817 2013-10-24 Cong Hou <congh@google.com>
6819 * convert.c (convert_to_real): Guard those unsafe math function
6820 convertions with flag_unsafe_math_optimizations. Handle sqrt()
6823 2013-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
6826 * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
6828 (cgraph_create_edge): Use the new argument.
6829 (cgraph_create_indirect_edge): Likewise.
6831 2013-10-24 Joern Rennecke <joern.rennecke@embecosm.com>
6833 * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
6835 (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
6836 changes statep->state.
6838 2013-10-24 Tobias Burnus <burnus@net-b.de>
6841 * tree-cfg.c (replace_loop_annotate): New function.
6842 (execute_build_cfg): Call it.
6843 * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
6844 * internal-fn.c (expand_ANNOTATE): New function.
6845 * internal-fn.def (ANNOTATE): Define as new internal function.
6846 * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
6847 * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
6848 * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
6849 * doc/extend.texi (Pragmas): Document #pragma ivdep.
6850 * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
6852 2013-10-17 Ian Bolton <ian.bolton@arm.com>
6853 Marcus Shawcroft <marcus.shawcroft@arm.com>
6855 * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
6856 Special case reload SP+C into none GENERAL_REGS.
6858 2013-10-24 Michael Matz <matz@suse.de>
6860 * gengtype.c (is_file_equal): Check that files will be same length.
6862 2013-10-25 Christian Bruel <christian.bruel@st.com>
6864 * config.gcc (sh-*): Add sh-mem.o to extra_obj.
6865 * config/sh/t-sh (sh-mem.o): New rule.
6866 * config/sh/sh-mem.cc (expand_block_move): Moved here.
6867 (sh_expand_cmpstr): New function.
6868 * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
6869 * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
6870 * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
6871 (rotlhi3_8): Rename.
6873 2013-10-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6875 * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
6876 * Makefile.in (CXXDEPMODE): Assign and change users.
6877 (CCDEPMODE): Delete.
6878 * configure: Regenerate.
6880 2013-10-23 David Malcolm <dmalcolm@redhat.com>
6882 * gengtype-parse.c (require_without_advance): New.
6883 (type): For GTY-marked types that are not GTY((user)), parse any
6884 base classes, requiring them to be single-inheritance, and not
6885 be templates. For non-GTY-marked types and GTY((user)),
6886 continue to skip over any C++ inheritance specification.
6887 * gengtype-state.c (state_writer::write_state_struct_type):
6888 Write base class of type (if any).
6889 (read_state_struct_type): Read base class of type (if any).
6890 * gengtype.c (new_structure): Add a "base_class" parameter.
6891 (create_optional_field_): Update for new parameter to new_structure.
6892 (adjust_field_rtx_def): Likewise.
6893 (adjust_field_tree_exp): Likewise.
6894 * gengtype.h (struct type): Add "base_class" field to the s
6896 (new_structure): Add "base" parameter.
6898 2013-10-23 Sriraman Tallam <tmsriram@google.com>
6901 * config/i386/i386.c (ix86_option_override_internal):
6902 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
6903 (ix86_valid_target_attribute_tree):
6904 Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
6905 Change TARGET_SSE to TARGET_SSE_P (opts->...)
6907 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
6909 * tree-ssa-loop.h: Remove include files.
6910 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
6911 * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
6912 * graphite-clast-to-gimple.c: Likewise.
6913 * graphite-scop-detection.c: Likewise.
6914 * graphite-sese-to-poly.c: Likewise.
6915 * ipa-inline-analysis.c: Likewise.
6916 * ipa-pure-const.c: Likewise.
6917 * loop-init.c: Likewise.
6918 * passes.c: Likewise.
6919 * predict.c: Likewise.
6920 * tree-cfg.c: Likewise.
6921 * tree-cfgcleanup.c: Likewise.
6922 * tree-chrec.c: Likewise.
6923 * tree-data-ref.c: Likewise.
6924 * tree-loop-distribution.c: Likewise.
6925 * tree-parloops.c: Likewise.
6926 * tree-predcom.c: Likewise.
6927 * tree-scalar-evolution.c: Likewise.
6928 * tree-ssa-address.c: Likewise.
6929 * tree-ssa.c: Likewise.
6930 * tree-ssa-dce.c: Likewise.
6931 * tree-ssa-loop.c: Likewise.
6932 * tree-ssa-loop-im.c: Likewise.
6933 * tree-ssa-loop-ivcanon.c: Likewise.
6934 * tree-ssa-loop-ivopts.c: Likewise.
6935 * tree-ssa-loop-manip.c: Likewise.
6936 * tree-ssa-loop-niter.c: Likewise.
6937 * tree-ssa-loop-prefetch.c: Likewise.
6938 * tree-ssa-loop-unswitch.c: Likewise.
6939 * tree-ssa-reassoc.c: Likewise.
6940 * tree-vect-data-refs.c: Likewise.
6941 * tree-vect-loop.c: Likewise.
6942 * tree-vect-loop-manip.c: Likewise.
6943 * tree-vectorizer.c: Likewise.
6944 * tree-vect-stmts.c: Likewise.
6945 * tree-vrp.c: Likewise.
6947 2013-10-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6949 * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
6951 2013-10-23 Jakub Jelinek <jakub@redhat.com>
6953 PR tree-optimization/58775
6954 PR tree-optimization/58791
6955 * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
6956 (insert_stmt_after): Rewritten, don't move the stmt, but really
6958 (get_stmt_uid_with_default): Remove.
6959 (build_and_add_sum): Use insert_stmt_after and
6960 reassoc_stmt_dominates_stmt_p. Fix up uid if bb contains only labels.
6961 (update_range_test): Set uid on stmts added by
6962 force_gimple_operand_gsi. Don't immediately modify statements
6963 in inter-bb optimization, just update oe->op values.
6964 (optimize_range_tests): Return bool whether any changed have been made.
6965 (update_ops): New function.
6966 (struct inter_bb_range_test_entry): New type.
6967 (maybe_optimize_range_tests): Perform statement changes here.
6968 (not_dominated_by, appears_later_in_bb, get_def_stmt,
6969 ensure_ops_are_available): Remove.
6970 (find_insert_point): Rewritten.
6971 (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
6972 return LHS of the (new resp. old) stmt. Don't call
6973 ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
6974 instead of last, move new stmt at the right place.
6975 (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
6976 (negate_value): Likewise. Set uids.
6977 (break_up_subtract_bb): Initialize uids.
6978 (reassociate_bb): Adjust rewrite_expr_tree caller.
6979 (do_reassoc): Don't call renumber_gimple_stmt_uids.
6981 2013-10-23 David Edelsohn <dje.gcc@gmail.com>
6984 * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
6985 TARGET_32BIT final condition.
6986 (mulsi3_internal2 and splitter): Same.
6988 2013-10-23 Jeff Law <law@redhat.com>
6990 * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
6991 through joiner blocks with abnormal outgoing edges.
6993 * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
6994 Add parameter JOINERS, to allow/disallow threading through joiner
6996 (thread_block): New. Call thread_block_1.
6997 (mark_threaded_blocks): Remove code to filter out certain cases
6998 of threading through joiner blocks.
6999 (thread_through_all_blocks): Document how we can have a dangling
7000 edge AUX field and clear it.
7002 2013-10-23 Ian Lance Taylor <iant@google.com>
7004 * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
7005 (C++ Dialect Options): Likewise.
7006 (Optimize Options): Likewise.
7008 2013-10-23 Tom de Vries <tom@codesourcery.com>
7010 PR tree-optimization/58805
7011 * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
7013 2013-10-23 Jakub Jelinek <jakub@redhat.com>
7015 * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
7016 sequence based on get_range_info returned range.
7018 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
7020 * tree-ssa.h: Remove all #include's
7021 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
7022 * alias.c: Move required includes from tree-ssa.h.
7024 * builtins.c: Likewise.
7025 * calls.c: Likewise.
7026 * cfgexpand.c: Likewise.
7027 * cfghooks.c: Likewise.
7028 * cfgloop.c: Likewise.
7029 * cfgloopmanip.c: Likewise.
7030 * cgraph.c: Likewise.
7031 * cgraphbuild.c: Likewise.
7032 * cgraphclones.c: Likewise.
7033 * cgraphunit.c: Likewise.
7035 * except.c: Likewise.
7037 * final.c: Likewise.
7038 * fold-const.c: Likewise.
7039 * ggc-page.c: Likewise.
7040 * gimple-builder.c: Likewise.
7041 * gimple-fold.c: Likewise.
7042 * gimple-iterator.c: Likewise.
7043 * gimple-low.c: Likewise.
7044 * gimple-pretty-print.c: Likewise.
7045 * gimple-ssa-strength-reduction.c: Likewise.
7046 * gimple-streamer-in.c: Likewise.
7047 * gimple-streamer-out.c: Likewise.
7048 * gimplify.c: Likewise.
7049 * graphite-blocking.c: Likewise.
7050 * graphite-clast-to-gimple.c: Likewise.
7051 * graphite-dependences.c: Likewise.
7052 * graphite-interchange.c: Likewise.
7053 * graphite-optimize-isl.c: Likewise.
7054 * graphite-poly.c: Likewise.
7055 * graphite-scop-detection.c: Likewise.
7056 * graphite-sese-to-poly.c: Likewise.
7057 * graphite.c: Likewise.
7058 * ipa-cp.c: Likewise.
7059 * ipa-inline-analysis.c: Likewise.
7060 * ipa-inline-transform.c: Likewise.
7061 * ipa-inline.c: Likewise.
7062 * ipa-prop.c: Likewise.
7063 * ipa-pure-const.c: Likewise.
7064 * ipa-reference.c: Likewise.
7065 * ipa-split.c: Likewise.
7066 * ipa-utils.c: Likewise.
7067 * loop-init.c: Likewise.
7068 * lto-cgraph.c: Likewise.
7069 * lto-section-in.c: Likewise.
7070 * lto-section-out.c: Likewise.
7071 * lto-streamer-in.c: Likewise.
7072 * lto-streamer-out.c: Likewise.
7073 * lto-streamer.c: Likewise.
7074 * omp-low.c: Likewise.
7075 * passes.c: Likewise.
7076 * predict.c: Likewise.
7077 * print-tree.c: Likewise.
7078 * profile.c: Likewise.
7080 * targhooks.c: Likewise.
7081 * tracer.c: Likewise.
7082 * trans-mem.c: Likewise.
7083 * tree-call-cdce.c: Likewise.
7084 * tree-cfg.c: Likewise.
7085 * tree-cfgcleanup.c: Likewise.
7086 * tree-chrec.c: Likewise.
7087 * tree-complex.c: Likewise.
7088 * tree-data-ref.c: Likewise.
7089 * tree-dfa.c: Likewise.
7090 * tree-eh.c: Likewise.
7091 * tree-emutls.c: Likewise.
7092 * tree-if-conv.c: Likewise.
7093 * tree-inline.c: Likewise.
7094 * tree-into-ssa.c: Likewise.
7095 * tree-loop-distribution.c: Likewise.
7096 * tree-mudflap.c: Likewise.
7097 * tree-nested.c: Likewise.
7098 * tree-nrv.c: Likewise.
7099 * tree-object-size.c: Likewise.
7100 * tree-outof-ssa.c: Likewise.
7101 * tree-parloops.c: Likewise.
7102 * tree-phinodes.c: Likewise.
7103 * tree-predcom.c: Likewise.
7104 * tree-pretty-print.c: Likewise.
7105 * tree-profile.c: Likewise.
7106 * tree-scalar-evolution.c: Likewise.
7107 * tree-sra.c: Likewise.
7108 * tree-ssa-address.c: Likewise.
7109 * tree-ssa-alias.c: Likewise.
7110 * tree-ssa-ccp.c: Likewise.
7111 * tree-ssa-coalesce.c: Likewise.
7112 * tree-ssa-copy.c: Likewise.
7113 * tree-ssa-copyrename.c: Likewise.
7114 * tree-ssa-dce.c: Likewise.
7115 * tree-ssa-dom.c: Likewise.
7116 * tree-ssa-dse.c: Likewise.
7117 * tree-ssa-forwprop.c: Likewise.
7118 * tree-ssa-ifcombine.c: Likewise.
7119 * tree-ssa-live.c: Likewise.
7120 * tree-ssa-loop-ch.c: Likewise.
7121 * tree-ssa-loop-im.c: Likewise.
7122 * tree-ssa-loop-ivcanon.c: Likewise.
7123 * tree-ssa-loop-ivopts.c: Likewise.
7124 * tree-ssa-loop-manip.c: Likewise.
7125 * tree-ssa-loop-niter.c: Likewise.
7126 * tree-ssa-loop-prefetch.c: Likewise.
7127 * tree-ssa-loop-unswitch.c: Likewise.
7128 * tree-ssa-loop.c: Likewise.
7129 * tree-ssa-math-opts.c: Likewise.
7130 * tree-ssa-operands.c: Likewise.
7131 * tree-ssa-phiopt.c: Likewise.
7132 * tree-ssa-phiprop.c: Likewise.
7133 * tree-ssa-pre.c: Likewise.
7134 * tree-ssa-propagate.c: Likewise.
7135 * tree-ssa-reassoc.c: Likewise.
7136 * tree-ssa-sccvn.c: Likewise.
7137 * tree-ssa-sink.c: Likewise.
7138 * tree-ssa-strlen.c: Likewise.
7139 * tree-ssa-structalias.c: Likewise.
7140 * tree-ssa-tail-merge.c: Likewise.
7141 * tree-ssa-ter.c: Likewise.
7142 * tree-ssa-threadedge.c: Likewise.
7143 * tree-ssa-threadupdate.c: Likewise.
7144 * tree-ssa-uncprop.c: Likewise.
7145 * tree-ssa-uninit.c: Likewise.
7146 * tree-ssa.c: Likewise.
7147 * tree-ssanames.c: Likewise.
7148 * tree-stdarg.c: Likewise.
7149 * tree-streamer-in.c: Likewise.
7150 * tree-switch-conversion.c: Likewise.
7151 * tree-tailcall.c: Likewise.
7152 * tree-vect-data-refs.c: Likewise.
7153 * tree-vect-generic.c: Likewise.
7154 * tree-vect-loop-manip.c: Likewise.
7155 * tree-vect-loop.c: Likewise.
7156 * tree-vect-patterns.c: Likewise.
7157 * tree-vect-slp.c: Likewise.
7158 * tree-vect-stmts.c: Likewise.
7159 * tree-vectorizer.c: Likewise.
7160 * tree-vrp.c: Likewise.
7163 * value-prof.c: Likewise.
7164 * var-tracking.c: Likewise.
7165 * varpool.c: Likewise.
7166 * vtable-verify.c: Likewise.
7168 2013-10-23 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7170 * config/tilegx/tilegx.c: Include "tree.h".
7172 2013-10-23 Jakub Jelinek <jakub@redhat.com>
7174 * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
7175 the info, not after it.
7176 (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
7177 dump_ssaname_info call.
7178 (pp_gimple_stmt_1): Adjust caller.
7179 (dump_phi_nodes): Likewise. Don't print "# " here.
7181 2013-10-22 Jan Hubicka <jh@suse.cz>
7183 * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
7185 * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
7186 * i386.c (expand_small_movmem_or_setmem): New function.
7187 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
7189 (alg_usable_p): Add support for value ranges; cleanup.
7190 (ix86_expand_set_or_movmem): Add support for misaligned moves.
7192 2013-10-22 Sterling Augustine <saugustine@google.com>
7194 * doc/invoke.texi: Document -ggnu-pubnames.
7195 * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
7197 * dwarf2out.c: Include gdb/gdb-index.h.
7198 (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
7199 debug_generate_pub_sections.
7200 (is_java, output_pubtables, output_pubname): New functions.
7201 (include_pubname_in_output): Handle debug_generate_pub_sections at
7203 (size_of_pubnames): Use new local space_for_flags based on
7204 debug_generate_pub_sections.
7205 (output_pubnames): Unify pubnames and pubtypes output logic.
7206 Genericize comments. Call output_pubname.
7207 (dwarf2out_finish): Move logic to output_pubnames and call it.
7209 2013-10-22 Uros Bizjak <ubizjak@gmail.com>
7212 * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
7213 Remove CCCmode handling.
7214 <case LTU>: Return 'c' suffix for CCCmode.
7215 <case GEU>: Return 'nc' suffix for CCCmode.
7216 (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
7217 * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
7218 (*sub<mode>3_cc_overflow): Ditto.
7219 (*subsi3_zext_cc_overflow): Ditto.
7221 2013-10-22 Steve Ellcey <sellcey@mips.com>
7223 * config/mips/mips.c (mips_rtx_costs): Fix cost estimate for nor
7224 (AND (NOT OP1) (NOT OP2)).
7226 2013-10-22 Bill Schmidt <wschmidt@vnet.ibm.com>
7228 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
7229 meaning of merge-high and merge-low masks for little endian; avoid
7230 use of vector-pack masks for little endian for mismatched modes.
7232 2013-10-22 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7234 * config/tilepro/tilepro.c: Include "tree.h".
7236 2013-10-22 Andreas Schwab <schwab@suse.de>
7238 * config/m68k/m68k.c (notice_update_cc): Handle register conflict
7241 2013-10-22 Paolo Carlini <paolo.carlini@oracle.com>
7243 * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
7244 [Ed Smith-Rowland]): New entries.
7245 ([Stephen M. Webb]): Update.
7247 2013-10-22 Andrew MacLeod <amacleod@redhat.com>
7249 * tree-ssa-ter.h: Remove duplicate copy of file contents.
7251 2013-10-21 Marek Polacek <polacek@redhat.com>
7254 * fold-const.c (fold_range_test): Return 0 if the type is not
7257 2013-10-21 Richard Sandiford <rdsandiford@googlemail.com>
7259 * system.h: Move hwint.h include further down.
7260 * hwint.h (sext_hwi, zext_hwi): Define unconditionally. Add
7261 gcc_checking_asserts.
7262 * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
7264 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
7266 Fix volatile issues in optimize_bit_field_compare.
7267 * fold-const.c (optimize_bit_field_compare): Bail out if
7268 lvolatilep or rvolatilep.
7270 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
7272 Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
7273 and get_inner_reference returning different pmode for non-volatile
7274 bit-field members dependent on flag_strict_volatile_bitfields.
7275 * stor-layout.c (layout_decl): Remove special handling of
7276 flag_strict_volatile_bitfields.
7277 * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
7278 if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
7280 2013-10-21 Paulo Matos <pmatos@broadcom.com>
7282 * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
7285 2013-10-21 Jeff Law <law@redhat.com>
7287 * tree-ssa-threadedge.c (thread_through_normal_block): New
7288 argument VISITED. Remove VISISTED as a local variable. When we
7289 have a threadable jump, verify the destination of the jump has not
7291 (thread_across_edge): Allocate VISITED bitmap once at function
7292 scope and use it throughout. Make sure to set appropriate bits in
7293 VISITED for E (start of jump thread path).
7294 * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
7295 through a joiner if any edge on the path has a recorded jump thread.
7297 2013-10-21 Ian Lance Taylor <iant@google.com>
7299 * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
7300 don't imply that attributes can solve all problems.
7301 (Directory Options): Fix typo.
7303 2013-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7305 * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
7306 extend and extend_add.
7308 2013-10-21 Richard Biener <rguenther@suse.de>
7310 PR tree-optimization/58794
7311 * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
7312 of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
7314 2013-10-21 Richard Biener <rguenther@suse.de>
7317 * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
7318 to (T) X for sign-changing conversions (or no conversion).
7320 2013-10-20 Uros Bizjak <ubizjak@gmail.com>
7322 * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
7324 2013-10-20 Jan Hubicka <jh@suse.cz>
7326 * config/i386/i386-tune.def: Add comment; organize into categories
7328 2013-10-21 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
7330 * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
7331 argument. Update function comment.
7332 (expand_set_or_movmem_via_rep): New function combining
7333 expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
7334 (expand_movmem_via_rep_mov): Remove.
7335 expand_setmem_via_rep_stos): Remove.
7336 (expand_movmem_epilogue): Update calls correspondingly.
7337 (expand_setmem_epilogue_via_loop): Likewise.
7339 (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
7340 (expand_set_or_movmem_prologue): New function combining
7341 expand_movmem_prologue and expand_setmem_prologue.
7342 (expand_movmem_prologue): Remove.
7343 (expand_setmem_prologue): Remove.
7344 (expand_set_or_movmem_constant_prologue): New function combining
7345 expand_constant_movmem_prologue and expand_constant_setmem_prologue.
7346 (expand_constant_movmem_prologue): Remove.
7347 (expand_constant_setmem_prologue): Remove.
7348 (promote_duplicated_reg): Allow vector-const0 value.
7349 (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
7350 and ix86_expand_setmem.
7351 (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
7352 (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
7354 2013-10-21 Diego Novillo <dnovillo@google.com>
7356 * asan.c: Include tree.h
7357 * bb-reorder.c: Likewise.
7358 * cfgcleanup.c: Likewise.
7359 * cfgloopmanip.c: Likewise.
7360 * data-streamer-in.c: Likewise.
7361 * data-streamer-out.c: Likewise.
7362 * data-streamer.c: Likewise.
7363 * dwarf2cfi.c: Likewise.
7364 * graphite-blocking.c: Likewise.
7365 * graphite-clast-to-gimple.c: Likewise.
7366 * graphite-dependences.c: Likewise.
7367 * graphite-interchange.c: Likewise.
7368 * graphite-optimize-isl.c: Likewise.
7369 * graphite-poly.c: Likewise.
7370 * graphite-scop-detection.c: Likewise.
7371 * graphite-sese-to-poly.c: Likewise.
7372 * graphite.c: Likewise.
7373 * ipa-devirt.c: Likewise.
7374 * ipa-profile.c: Likewise.
7377 * loop-init.c: Likewise.
7378 * loop-unroll.c: Likewise.
7379 * lower-subreg.c: Likewise.
7380 * lto/lto-object.c: Likewise.
7381 * recog.c: Likewise.
7382 * reginfo.c: Likewise.
7383 * tree-loop-distribution.c: Likewise.
7384 * tree-parloops.c: Likewise.
7385 * tree-ssa-strlen.c: Likewise.
7386 * tree-streamer.c: Likewise.
7387 * value-prof.c: Likewise.
7388 * target-globals.c: Likewise.
7389 * expr.h: Include tree-core.h instead of tree.h.
7390 * gimple.h: Likewise.
7391 * ipa-prop.h: Likewise.
7392 * ipa-utils.h: Likewise.
7393 * lto-streamer.h: Likewise.
7394 * streamer-hooks.h: Likewise.
7395 * ipa-reference.h: Include cgraph.h instead of tree.h.
7396 * cgraph.h: Include basic-block.h instead of tree.h.
7397 * tree-streamer.h: Do not include tree.h.
7398 * genattrtab.c (write_header): Generate inclusion of tree.h.
7399 * genautomata.c (main): Likewise.
7400 * genemit.c: Likewise.
7401 * genopinit.c: Likewise.
7402 * genoutput.c (output_prologue): Likewise.
7403 * genpeep.c: Likewise.
7405 2013-10-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7407 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
7409 (vec_unpacku_hi_v8hi): Likewise.
7410 (vec_unpacku_lo_v16qi): Likewise.
7411 (vec_unpacku_lo_v8hi): Likewise.
7413 2013-10-20 Jan Hubicka <jh@suse.cz>
7415 * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
7416 X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
7417 (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
7419 2013-10-20 Richard Sandiford <rdsandiford@googlemail.com>
7421 * config/mips/mips.h (ISA_HAS_WSBH): Define.
7422 * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
7424 (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
7426 2013-10-19 John David Anglin <danglin@gcc.gnu.org>
7429 * system.h: Undef m_slot.
7431 2013-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7433 * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
7434 all elements for both endian flavors.
7436 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
7439 * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
7440 ST1_REG and XMM1_REG for 32bit and 64bit targets. Also add DI_REG
7441 and SI_REG for 64bit SYSV ABI targets.
7443 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
7445 * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
7446 to multi_reg_return. Clarify that we are skipping USEs of multiple
7447 return registers. Use bool type where appropriate.
7449 2013-10-18 Jan Hubicka <jh@suse.cz>
7451 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
7453 * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
7454 (X86_TUNE_PUSH_MEMORY): Likewise.
7455 (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
7456 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
7457 (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
7459 * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
7460 x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
7462 (ix86_option_override_internal): Update to use tune features instead
7465 2013-10-18 Cong Hou <congh@google.com>
7467 PR tree-optimization/58508
7468 * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
7469 statement that contains data refs with zero-step.
7471 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
7473 * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
7474 sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
7475 * gimple-low.c (gimple_check_call_arg,
7476 gimple_check_call_matching_types): Move to cgraph.c.
7477 * gimple-low.h: Remove prototype.
7478 * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
7479 Relocate from gimple-low.c.
7480 * cgraph.h: Add prototype. Don't include basic-block.h.
7481 * gimplify.c: Add gimple-low to include list.
7482 * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
7483 * tree-eh.c: Add gimple-low to include list.
7484 * tree-nested.c: Likewise.
7485 * cfgexpand.c: Add tree-ssa-address.h to include list.
7487 * gimple-fold.c: Likewise.
7488 * gimple-ssa-strength-reduction.c: Likewise.
7489 * trans-mem.c: Likewise.
7490 * tree-mudflap.c: Likewise.
7491 * tree-ssa-loop-ivopts.c: Likewise.
7492 * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
7493 (degenerate_phi_result): Move to tree-phinodes.c.
7494 * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
7495 * tree-ssa-threadedge.c: Likewise.
7496 * tree-vrp.c: Likewise.
7497 * tree-phinodes.c (degenerate_phi_result): Relocate here.
7498 * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
7499 * tree-phinodes.h (degenerate_phi_result): Add prototype.
7500 * tree-ssa-copy.c: Include tree-ssa-dom.h.
7501 * tree-ssa-forwprop.c: Likewise.
7502 * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
7503 pass_data_cleanup_cfg_post_optimizing,
7504 make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
7505 * tree-optimize.c: Delete File.
7506 * graphite.c: Include tree-cfgcleanup.h.
7507 * passes.c: Likewise.
7508 * tree-cfg.c: Likewise.
7509 * tree-profile.c: Likewise.
7510 * tree-ssa-dse.c: Likewise.
7511 * tree-ssa-loop-ivcanon.c: Likewise.
7512 * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
7513 * tree-outof-ssa.c: Include sbitmap.h.
7514 * tree-ssa-live.c: Likewise.
7515 * tree-ssa-propagate.c: Likewise.
7516 * tree-ssa-structalias.c: Likewise.
7517 * tree-stdarg.c: Likewise.
7518 * Makefile.in (OBJS): Delete tree-optimize.o.
7519 * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
7520 * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
7521 * varasm.c: Include basic-block.h.
7522 * cfgloop.h: Include function.h instead of basic-block.h
7523 (bb_loop_depth): Move to cfgloop.c.
7524 * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
7526 2013-10-18 Teresa Johnson <tejohnson@google.com>
7528 * predict.c (probably_never_executed): Compare frequency-based
7529 count to number of training runs.
7530 * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
7532 2013-10-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7534 * config/arm/arm.c (cortexa9_extra_costs): New table.
7535 (arm_cortex_a9_tune): Use cortexa9_extra_costs.
7537 2013-10-18 Jeff Law <law@redhat.com>
7539 * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
7541 * tree-ssa-threadupdate.c: Include "dbgcnt.h".
7542 (register_jump_thread): Add "registered_jump_thread" debug
7544 * dbgcnt.def (registered_jump_thread): New debug counter.
7546 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
7548 * config/rs6000/rs6000.c: Include cgraph.h.
7550 2013-10-18 Teresa Johnson <tejohnson@google.com>
7552 * tree-ssa-tail-merge.c (replace_block_by): Update edge
7553 weights during merging.
7555 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
7557 * tree-cfg.h: Rename from tree-flow.h. Remove #includes.
7558 * tree-ssa.h: Relocate required #includes from tree-cfg.h.
7559 * tree-ssa-operands.h: Remove prototype.
7560 * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
7561 * gimple.c (virtual_operand_p): Relocate from gimple.c.
7562 * gimple.h: Add prototype.
7563 * gimple-ssa.h: Include tree-ssa-operands.h.
7564 * tree-dump.c: Add tree-cfg.h to include list.
7565 * tree-ssa-alias.c: Add ipa-reference.h to include list.
7566 * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
7567 * config/i386/i386.c: Don't include tree-flow.h.
7568 * config/rs6000/rs6000.c: Likewise.
7570 2013-10-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7572 * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
7574 2013-10-18 Richard Biener <rguenther@suse.de>
7576 * stor-layout.c (layout_type): Do not change TYPE_PRECISION
7577 or TYPE_UNSIGNED of integral types.
7578 (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
7579 NULL_TREE for zero-precision integral types.
7581 2013-10-18 James Greenhalgh <james.greenhalgh@arm.com>
7583 * config/aarch64/arm_neon.h
7584 (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
7586 2013-10-17 Sriraman Tallam <tmsriram@google.com>
7589 * opth-gen.awk: Define target_flags_explicit.
7591 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
7593 * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
7594 fields to the reg_addr array that describes the valid addressing
7595 mode for any register, general purpose registers, floating point
7596 registers, and Altivec registers.
7597 (FIRST_RELOAD_REG_CLASS): Likewise.
7598 (LAST_RELOAD_REG_CLASS): Likewise.
7599 (struct reload_reg_map_type): Likewise.
7600 (reload_reg_map_type): Likewise.
7601 (RELOAD_REG_VALID): Likewise.
7602 (RELOAD_REG_MULTIPLE): Likewise.
7603 (RELOAD_REG_INDEXED): Likewise.
7604 (RELOAD_REG_OFFSET): Likewise.
7605 (RELOAD_REG_PRE_INCDEC): Likewise.
7606 (RELOAD_REG_PRE_MODIFY): Likewise.
7607 (reg_addr): Likewise.
7608 (mode_supports_pre_incdec_p): New helper functions to say whether
7609 a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
7610 (mode_supports_pre_modify_p): Likewise.
7611 (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
7612 print the valid address mode bits for each mode.
7613 (rs6000_debug_print_mode): Likewise.
7614 (rs6000_debug_reg_global): Likewise.
7615 (rs6000_setup_reg_addr_masks): New function to set up the address
7616 mask bits for each type.
7617 (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
7618 Call rs6000_setup_reg_addr_masks to set up the address mask bits.
7619 (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
7620 mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
7621 PRE_MODIFY are supported.
7622 (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
7623 registers, instead of {src,dest}_av_p.
7624 (rs6000_print_options_internal): Tweak the debug output slightly.
7626 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
7628 * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
7631 2013-10-17 Andrew MacLeod <amacleod@redhat.com>
7633 * tree-flow.h (struct omp_region): Move to omp-low.c.
7634 Remove omp_ prototypes and variables.
7635 * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
7636 (copy_var_decl): Relocate prototype from tree-flow.h.
7637 * gimple.c (copy_var_decl): Relocate from omp-low.c.
7638 * tree.h: Move prototype to omp-low.h.
7639 * omp-low.h: New File. Relocate prototypes here.
7640 * omp-low.c (struct omp_region): Make local here.
7641 (root_omp_region): Make static.
7642 (copy_var_decl) Move to gimple.c.
7643 (new_omp_region): Make static.
7644 (make_gimple_omp_edges): New. Refactored from tree-cfg.c make_edges.
7645 * tree-cfg.c: Include omp-low.h.
7646 (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
7647 * gimplify.c: Include omp-low.h.
7648 * tree-parloops.c: Likewise.
7650 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
7652 * config/i386/i386.c (ix86_fixup_binary_operands): When both source
7653 operands are in memory, prefer to force non-matched operand 1 to
7656 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
7659 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
7660 restrict TImode addresses to single indirect registers if both
7661 -mquad-memory and -mvsx-timode are used.
7662 (rs6000_output_move_128bit): Use quad_load_store_p to determine if
7663 we should emit load/store quad. Remove using %y for quad memory
7666 * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
7667 constraints to allow load/store quad on machines where TImode is
7668 not allowed in VSX registers. Use 'n' instead of 'F' constraint
7669 for TImode to load integer constants.
7671 2013-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7673 * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
7675 2013-10-17 Marcus Shawcroft <marcus.shawcroft@arm.com>
7677 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
7678 handling of STACK_REG.
7680 2013-10-17 Richard Biener <rguenther@suse.de>
7682 PR tree-optimization/58143
7683 * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
7685 (rewrite_to_defined_overflow): Likewise.
7686 (move_computations_dom_walker::before_dom): Rewrite stmts
7687 with undefined signed overflow that are not always executed
7688 into unsigned arithmetic.
7690 2013-10-16 Michael Meissner <meissner@linux.vnet.ibm.com>
7693 * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
7694 explicit isa flag to be an options variable, instead of using
7695 global_options_set. Remove define from rs6000.h.
7696 * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
7698 * config/rs6000/rs6000.c (rs6000_option_override_internal):
7699 Initialize rs6000_isa_flags_explicit.
7700 (rs6000_function_specific_save): Add gcc_options* parameter, so
7701 that the powerpc builds after the 2013-10-15 changes.
7702 (rs6000_function_specific_restore): Likewise.
7704 2013-10-16 DJ Delorie <dj@redhat.com>
7706 * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
7707 op is a REG before checking REGNO.
7708 (rl78_alloc_physical_registers): Verify pattern is a SET before
7711 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7713 * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
7715 (vec_unpacks_lo_v4sf): Likewise.
7716 (vec_unpacks_float_hi_v4si): Likewise.
7717 (vec_unpacks_float_lo_v4si): Likewise.
7718 (vec_unpacku_float_hi_v4si): Likewise.
7719 (vec_unpacku_float_lo_v4si): Likewise.
7721 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7723 * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
7724 (vsx_concat_v2sf): Likewise.
7726 2013-10-16 James Greenhalgh <james.greenhalgh@arm.com>
7728 * config/aarch64/aarch64.md
7729 (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
7731 2013-10-16 Andrew MacLeod <amacleod@redhat.com>
7733 PR tree-optimization/58697
7734 * cfgloop.c (get_estimated_loop_iterations_int): Rename from
7735 estimated_loop_iterations_int.
7736 (max_stmt_executions_int): Call get_max_loop_iterations_int.
7737 (get_max_loop_iterations_int): New. HWINT version of
7738 get_max_loop_iterations.
7739 * cfgloop.h: Add prototypes.
7740 * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
7741 * loop-unroll.c (decide_peel_once_rolling): Call
7742 get_estimated_loop_iterations_int.
7743 * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
7744 * tree-ssa-loop-niter.h: Tweak prototypes.
7746 2013-10-16 David Malcolm <dmalcolm@redhat.com>
7748 * gengtype-parse.c (struct_field_seq): Ignore access-control
7749 keywords ("public:" etc).
7751 2013-10-16 Marcus Shawcroft <marcus.shawcroft@arm.com>
7753 * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
7754 FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
7756 2013-10-16 Yvan Roux <yvan.roux@linaro.org>
7758 * config/arm/arm.opt (mlra): New option.
7759 * config/arm/arm.c (arm_lra_p): New function.
7760 (TARGET_LRA_P): Define.
7762 2013-10-16 Paulo Matos <pmatos@broadcom.com>
7764 * tree-core.h (tree_code_name): Remove.
7765 * tree.h (get_tree_code_name): New prototype.
7766 * tree.c (tree_code_name): Make static.
7767 (get_tree_code_name): New function.
7768 (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
7769 tree_class_check_failed, tree_range_check_failed,
7770 tree_not_class_check_failed, omp_clause_check_failed,
7771 tree_contains_struct_check_failed, tree_operand_check_failed): Use new
7772 wrapper get_tree_code_name instead of calling tree_code_name directly.
7773 * tree-vrp.c (dump_asserts_for): Likewise.
7774 * tree-dump.c (dequeue_and_dump): Likewise.
7775 * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
7776 * tree-pretty-print.h (pp_unsupported_tree): Likewise.
7777 * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
7778 * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
7779 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
7780 dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
7781 dump_gimple_omp_for): Likewise.
7782 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
7783 * tree-ssa-pre.c (print_pre_expr): Likewise.
7784 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
7785 * print-tree.c (print_node_brief, print_node): Likewise.
7786 * gimple.c (gimple_check_failed): Likewise.
7787 * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
7788 * config/frv/frv.c (frv_init_cumulative_args): Likewise.
7789 * config/mep/mep.c (mep_validate_vliw): Likewise.
7790 * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
7791 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
7793 2013-10-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7795 * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
7798 2013-10-16 Hans-Peter Nilsson <hp@axis.com>
7800 * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
7801 (MULTILIB_MATCHES): Add multilib for -march=v8.
7803 2013-10-15 Sriraman Tallam <tmsriram@google.com>
7806 * optc-save-gen.awk: Add extra parameter to the save and restore
7808 * opth-gen.awk: Generate new TARGET_* macros to accept a parameter.
7809 * tree.c (build_optimization_node): New parameter. Add extra parameter
7810 to call to cl_optimization_save.
7811 (build_target_option_node): New parameter. Add extra parameter
7812 to call to cl_target_option_save.
7813 * tree.h (build_optimization_node): New parameter.
7814 (build_target_option_node): New parameter.
7815 * c-family/c-common.c (handle_optimize_attribute): Fix calls to
7816 build_optimization_node and build_target_option_node.
7817 * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
7818 (handle_pragma_push_options): Ditto.
7819 * toplev.c (process_options): Ditto.
7820 * opts.c (init_options_struct): Check for opts_set non-null.
7821 * target.def (target_option.save): New parameter.
7822 (target_option.restore): New parameter.
7823 * tm.texi: Generate.
7824 * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
7825 (ix86_pragma_target_parse): Ditto.
7826 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
7828 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
7829 to build_optimization_node and build_target_option_node.
7830 (rs6000_valid_attribute_p): Ditto.
7831 (rs6000_pragma_target_parse): Ditto.
7832 * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
7834 * config/i386/i386.h:
7835 TARGET_64BIT_P: New Macro
7836 TARGET_MMX_P: New Macro.
7837 TARGET_3DNOW_P: New Macro.
7838 TARGET_3DNOW_A_P: New Macro.
7839 TARGET_SSE_P: New Macro.
7840 TARGET_SSE2_P: New Macro.
7841 TARGET_SSE3_P: New Macro.
7842 TARGET_SSSE3_P: New Macro.
7843 TARGET_SSE4_1_P: New Macro.
7844 TARGET_SSE4_2_P: New Macro.
7845 TARGET_AVX_P: New Macro.
7846 TARGET_AVX2_P: New Macro.
7847 TARGET_AVX512F_P: New Macro.
7848 TARGET_AVX512PF_P: New Macro.
7849 TARGET_AVX512ER_P: New Macro.
7850 TARGET_AVX512CD_P: New Macro.
7851 TARGET_FMA_P: New Macro.
7852 TARGET_SSE4A_P: New Macro.
7853 TARGET_FMA4_P: New Macro.
7854 TARGET_XOP_P: New Macro.
7855 TARGET_LWP_P: New Macro.
7856 TARGET_ABM_P: New Macro.
7857 TARGET_BMI_P: New Macro.
7858 TARGET_BMI2_P: New Macro.
7859 TARGET_LZCNT_P: New Macro.
7860 TARGET_TBM_P: New Macro.
7861 TARGET_POPCNT_P: New Macro.
7862 TARGET_SAHF_P: New Macro.
7863 TARGET_MOVBE_P: New Macro.
7864 TARGET_CRC32_P: New Macro.
7865 TARGET_AES_P: New Macro.
7866 TARGET_PCLMUL_P: New Macro.
7867 TARGET_CMPXCHG16B_P: New Macro.
7868 TARGET_FSGSBASE_P: New Macro.
7869 TARGET_RDRND_P: New Macro.
7870 TARGET_F16C_P: New Macro.
7871 TARGET_RTM_P: New Macro.
7872 TARGET_HLE_P: New Macro.
7873 TARGET_RDSEED_P: New Macro.
7874 TARGET_PRFCHW_P: New Macro.
7875 TARGET_ADX_P: New Macro.
7876 TARGET_FXSR_P: New Macro.
7877 TARGET_XSAVE_P: New Macro.
7878 TARGET_XSAVEOPT_P: New Macro.
7879 TARGET_LP64_P: New Macro.
7880 TARGET_X32_P: New Macro.
7881 TARGET_FPMATH_DEFAULT_P: New Macro.
7882 TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
7883 * config/i386/i386.c (ix86_option_override_internal): New parameters.
7885 Change ix86_tune_string to access opts->x_ix86_tune_string.
7886 Change ix86_isa_flags to access opts->x_ix86_isa_flags.
7887 Change ix86_arch_string to access opts->x_ix86_arch_string.
7888 Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
7889 Change ix86_pmode to access opts->x_ix86_pmode.
7890 Change ix86_abi to access opts->x_ix86_abi.
7891 Change ix86_cmodel to access opts->x_ix86_cmodel.
7892 Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
7893 Change ix86_isa_flags_explicit to access
7894 opts->x_ix86_isa_flags_explicit.
7895 Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
7896 Change ix86_regparm to access opts->x_ix86_regparm.
7897 Change ix86_branch_cost to access opts->x_ix86_branch_cost.
7898 Change ix86_preferred_stack_boundary_arg to access
7899 opts->x_ix86_preferred_stack_boundary_arg.
7900 Change ix86_force_align_arg_pointer to access
7901 opts->x_ix86_force_align_arg_pointer.
7902 Change ix86_incoming_stack_boundar_arg to access
7903 opts->x_ix86_incoming_stack_boundar_arg.
7904 Change ix86_fpmath to access opts->x_ix86_fpmath.
7905 Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
7906 Change ix86_recip_name to access opts->x_ix86_recip_name.
7907 Change ix86_stack_protector_guard to access
7908 opts->x_ix86_stack_protector_guard.
7909 Change ix86_tune_memcpy_strategy to access
7910 opts->x_ix86_tune_memcpy_strategy.
7911 Change ix86_tune_memset_strategy to access
7912 opts->x_ix86_tune_memset_strategy.
7913 Change global_options to access opts.
7914 Change global_options_set to access opts_set.
7915 Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
7916 Change TARGET_MMX to TARGET_MMX_P (opts->...).
7917 Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
7918 Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
7919 Change TARGET_SSE to TARGET_SSE_P (opts->...).
7920 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
7921 Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
7922 Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
7923 Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
7924 Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
7925 Change TARGET_AVX to TARGET_AVX_P (opts->...).
7926 Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
7927 Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
7928 Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
7929 Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
7930 Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
7931 Change TARGET_FMA to TARGET_FMA_P (opts->...).
7932 Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
7933 Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
7934 Change TARGET_XOP to TARGET_XOP_P (opts->...).
7935 Change TARGET_LWP to TARGET_LWP_P (opts->...).
7936 Change TARGET_ABM to TARGET_ABM_P (opts->...).
7937 Change TARGET_BMI to TARGET_BMI_P (opts->...).
7938 Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
7939 Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
7940 Change TARGET_TBM to TARGET_TBM_P (opts->...).
7941 Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
7942 Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
7943 Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
7944 Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
7945 Change TARGET_AES to TARGET_AES_P (opts->...).
7946 Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
7947 Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
7948 Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
7949 Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
7950 Change TARGET_F16C to TARGET_F16C_P (opts->...).
7951 Change TARGET_RTM to TARGET_RTM_P (opts->...).
7952 Change TARGET_HLE to TARGET_HLE_P (opts->...).
7953 Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
7954 Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
7955 Change TARGET_ADX to TARGET_ADX_P (opts->...).
7956 Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
7957 Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
7958 Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
7959 Change TARGET_LP64 to TARGET_LP64_P (opts->...).
7960 Change TARGET_X32 to TARGET_X32_P (opts->...).
7961 Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
7962 Change TARGET_FLOAT_RETURNS_IN_80387 to
7963 TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
7964 (ix86_function_specific_save): New parameter. Use opts-> fields
7965 to replace global fields.
7966 (ix86_function_specific_restore): Ditto.
7967 (ix86_valid_target_attribute_inner_p): New parameters.
7969 Fix call to ix86_handle_option and set_option.
7970 (ix86_valid_target_attribute_tree): New parameters.
7971 Change global_options to access opts.
7972 Change global_options_set to access opts_set.
7973 Fix call to ix86_valid_target_attribute_inner_p.
7974 Change ix86_tune_string to access opts->x_ix86_tune_string.
7975 Change ix86_arch_string to access opts->x_ix86_arch_string.
7976 Change ix86_fpmath to access opts->x_ix86_fpmath
7977 Fix call to ix86_option_override_internal.
7978 Fix call to ix86_add_new_builtins.
7979 Fix calls to build_optimization_node and build_target_option_node.
7980 (ix86_valid_target_attribute_p): Remove access to global_options.
7981 Use new gcc_options structure func_options.
7982 Fix call to ix86_valid_target_attribute_tree.
7983 Fix call to build_optimization_node.
7984 (get_builtin_code_for_version): Fix call to
7985 ix86_valid_target_attribute_tree.
7987 2013-10-15 David Malcolm <dmalcolm@redhat.com>
7989 * Makefile.in (PICFLAG): New.
7990 (enable_host_shared): New.
7991 (INTERNAL_CFLAGS): Use PICFLAG.
7992 (LIBIBERTY): Use pic build of libiberty.a if configured with
7993 --enable-host-shared.
7994 * configure.ac: Add --enable-host-shared, setting up new
7996 * configure: Regenerate.
7997 * doc/install.texi (--enable-shared): Add note contrasting it with ...
7998 (--enable-host-shared): New option.
8000 2013-10-15 Richard Biener <rguenther@suse.de>
8002 * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
8003 for built-in functions.
8005 2013-10-15 Zhenqiang Chen <zhenqiang.chen@arm.com>
8007 * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
8008 (optimize_range_tests_1): New function,
8009 extracted from optimize_range_tests.
8010 (optimize_range_tests_xor): Similarly.
8011 (optimize_range_tests_diff): New function.
8012 (optimize_range_tests): Use optimize_range_tests_1.
8014 2013-10-15 Cong Hou <congh@google.com>
8016 * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
8017 requirement of the reduction pattern so that one operand of the
8018 reduction operation can come from outside of the loop.
8020 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
8022 * config/arm/neon-schedgen.ml: Remove.
8023 * config/arm/cortex-a9-neon.md: Remove comment regarding
8026 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
8028 * config/arm/types: Remove old neon types.
8030 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
8032 * config/arm/cortex-a7.md
8033 (cortex_a7_neon_type): New.
8034 (cortex_a7_neon_mul): Update for new types.
8035 (cortex_a7_neon_mla): Likewise.
8036 (cortex_a7_neon): Likewise.
8038 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
8040 * config/arm/cortex-a15-neon.md
8041 (cortex_a15_neon_type): New,
8043 (cortex_a15_neon_int_1): Remove.
8044 (cortex_a15_neon_int_2): Likewise.
8045 (cortex_a15_neon_int_3): Likewise.
8046 (cortex_a15_neon_int_4): Likewise.
8047 (cortex_a15_neon_int_5): Likewise.
8048 (cortex_a15_neon_vqneg_vqabs): Likewise.
8049 (cortex_a15_neon_vmov): Likewise.
8050 (cortex_a15_neon_vaba): Likewise.
8051 (cortex_a15_neon_vaba_qqq): Likewise.
8052 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
8053 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
8054 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
8056 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
8057 (cortex_a15_neon_mla_qqq_8_16): Likewise.
8058 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
8059 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
8060 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
8061 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
8062 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
8063 (cortex_a15_neon_shift_1): Likewise.
8064 (cortex_a15_neon_shift_2): Likewise.
8065 (cortex_a15_neon_shift_3): Likewise.
8066 (cortex_a15_neon_vshl_ddd): Likewise.
8067 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
8068 (cortex_a15_neon_vsra_vrsra): Likewise.
8069 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
8070 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
8071 (cortex_a15_neon_bp_3cycle): Likewise.
8072 (cortex_a15_neon_ldm_2): Likewise.
8073 (cortex_a15_neon_stm_2): Likewise.
8074 (cortex_a15_neon_mcr): Likewise.
8075 (cortex_a15_neon_mrc): Likewise.
8076 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
8077 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
8078 (cortex_a15_neon_fp_vmul_ddd): Likewise.
8079 (cortex_a15_neon_fp_vmul_qqd): Likewise.
8080 (cortex_a15_neon_fp_vmla_ddd): Likewise.
8081 (cortex_a15_neon_fp_vmla_qqq): Likewise.
8082 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
8083 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
8084 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
8085 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
8086 (cortex_a15_neon_bp_simple): Likewise.
8087 (cortex_a15_neon_bp_2cycle): Likewise.
8088 (cortex_a15_neon_bp_3cycle): Likewise.
8089 (cortex_a15_neon_vld1_1_2_regs): Likewise.
8090 (cortex_a15_neon_vld1_3_4_regs): Likewise.
8091 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
8092 (cortex_a15_neon_vld2_4_regs): Likewise.
8093 (cortex_a15_neon_vld3_vld4): Likewise.
8094 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
8095 (cortex_a15_neon_vst1_3_4_regs): Likewise.
8096 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
8097 (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
8098 (cortex_a15_neon_vst3_vst4): Rename to...
8099 (cortex_a15_neon_vst4): This, update for new attributes.
8100 (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
8101 (cortex_a15_neon_vld3_vld4_lane): Likewise.
8102 (cortex_a15_neon_vst1_vst2_lane): Likewise.
8103 (cortex_a15_neon_vst3_vst4_lane): Likewise.
8104 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
8105 (cortex_a15_neon_ldm_2): Likewise.
8106 (cortex_a15_neon_stm_2): Likewise.
8107 (cortex_a15_neon_mcr): Likewise.
8108 (cortex_a15_neon_mcr_2_mcrr): Likewise.
8109 (cortex_a15_neon_mrc): Likewise.
8110 (cortex_a15_neon_mrrc): Likewise.
8112 (cortex_a15_neon_abd): New.
8113 (cortex_a15_neon_abd_q): Likewise.
8114 (cortex_a15_neon_aba): Likewise.
8115 (cortex_a15_neon_aba_q): Likewise.
8116 (cortex_a15_neon_acc): Likewise.
8117 (cortex_a15_neon_acc_q): Likewise.
8118 (cortex_a15_neon_arith_basic): Likewise.
8119 (cortex_a15_neon_arith_complex): Likewise.
8120 (cortex_a15_neon_multiply): Likewise.
8121 (cortex_a15_neon_multiply_q): Likewise.
8122 (cortex_a15_neon_mla): Likewise.
8123 (cortex_a15_neon_mla_q): Likewise.
8124 (cortex_a15_neon_sat_mla_long): Likewise.
8125 (cortex_a15_neon_shift_acc): Likewise.
8126 (cortex_a15_neon_shift_imm_basic): Likewise.
8127 (cortex_a15_neon_shift_imm_complex): Likewise.
8128 (cortex_a15_neon_shift_reg_basic): Likewise.
8129 (cortex_a15_neon_shift_reg_basic_q): Likewise.
8130 (cortex_a15_neon_shift_reg_complex): Likewise.
8131 (cortex_a15_neon_shift_reg_complex_q): Likewise.
8132 (cortex_a15_neon_fp_negabs): Likewise
8133 (cortex_a15_neon_fp_arith): Likewise
8134 (cortex_a15_neon_fp_arith_q): Likewise
8135 (cortex_a15_neon_fp_cvt_int): Likewise
8136 (cortex_a15_neon_fp_cvt_int_q): Likewise
8137 (cortex_a15_neon_fp_cvt_16): Likewise
8138 (cortex_a15_neon_fp_mul): Likewise
8139 (cortex_a15_neon_fp_mul_q): Likewise
8140 (cortex_a15_neon_fp_mla): Likewise
8141 (cortex_a15_neon_fp_mla_q): Likewise
8142 (cortex_a15_neon_fp_recps_rsqrte): Likewise.
8143 (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
8144 (cortex_a15_neon_bitops): Likewise.
8145 (cortex_a15_neon_bitops_q): Likewise.
8146 (cortex_a15_neon_from_gp): Likewise.
8147 (cortex_a15_neon_from_gp_q): Likewise.
8148 (cortex_a15_neon_tbl3_tbl4): Likewise.
8149 (cortex_a15_neon_zip_q): Likewise.
8150 (cortex_a15_neon_to_gp): Likewise.
8151 (cortex_a15_neon_load_a): Likewise.
8152 (cortex_a15_neon_load_b): Likewise.
8153 (cortex_a15_neon_load_c): Likewise.
8154 (cortex_a15_neon_load_d): Likewise.
8155 (cortex_a15_neon_load_e): Likewise.
8156 (cortex_a15_neon_load_f): Likewise.
8157 (cortex_a15_neon_store_a): Likewise.
8158 (cortex_a15_neon_store_b): Likewise.
8159 (cortex_a15_neon_store_c): Likewise.
8160 (cortex_a15_neon_store_d): Likewise.
8161 (cortex_a15_neon_store_e): Likewise.
8162 (cortex_a15_neon_store_f): Likewise.
8163 (cortex_a15_neon_store_g): Likewise.
8164 (cortex_a15_neon_store_h): Likewise.
8165 (cortex_a15_vfp_to_from_gp): Likewise.
8167 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
8169 * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
8171 (cortex_a9_neon_vshl_ddd): Remove.
8172 (cortex_a9_neon_vst3_vst4): Likewise.
8173 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
8175 (cortex_a9_neon_bit_ops_q): New.
8177 (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
8178 (cortex_a9_neon_int_2): Likewise.
8179 (cortex_a9_neon_int_3): Likewise.
8180 (cortex_a9_neon_int_4): Likewise.
8181 (cortex_a9_neon_int_5): Likewise.
8182 (cortex_a9_neon_vqneg_vqabs): Likewise.
8183 (cortex_a9_neon_vmov): Likewise.
8184 (cortex_a9_neon_vaba): Likewise.
8185 (cortex_a9_neon_vaba_qqq): Likewise.
8186 (cortex_a9_neon_shift_1): Likewise.
8187 (cortex_a9_neon_shift_2): Likewise.
8188 (cortex_a9_neon_shift_3): Likewise.
8189 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
8190 (cortex_a9_neon_vsra_vrsra): Likewise.
8191 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
8192 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
8193 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
8195 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
8196 (cortex_a9_neon_mla_qqq_8_16): Likewise.
8197 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
8199 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
8200 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
8201 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
8202 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
8203 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
8204 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
8205 (cortex_a9_neon_fp_vsum): Likewise.
8206 (cortex_a9_neon_fp_vmul_ddd): Likewise.
8207 (cortex_a9_neon_fp_vmul_qqd): Likewise.
8208 (cortex_a9_neon_fp_vmla_ddd): Likewise.
8209 (cortex_a9_neon_fp_vmla_qqq): Likewise.
8210 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
8211 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
8212 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
8213 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
8214 (cortex_a9_neon_bp_simple): Likewise.
8215 (cortex_a9_neon_bp_2cycle): Likewise.
8216 (cortex_a9_neon_bp_3cycle): Likewise.
8217 (cortex_a9_neon_ldr): Likewise.
8218 (cortex_a9_neon_str): Likewise.
8219 (cortex_a9_neon_vld1_1_2_regs): Likewise.
8220 (cortex_a9_neon_vld1_3_4_regs): Likewise.
8221 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
8222 (cortex_a9_neon_vld2_4_regs): Likewise.
8223 (cortex_a9_neon_vld3_vld4): Likewise.
8224 (cortex_a9_neon_vld1_vld2_lane): Likewise.
8225 (cortex_a9_neon_vld3_vld4_lane): Likewise.
8226 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
8227 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
8228 (cortex_a9_neon_vst1_3_4_regs): Likewise.
8229 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
8230 (cortex_a9_neon_vst1_vst2_lane): Likewise.
8231 (cortex_a9_neon_vst3_vst4_lane): Likewise.
8232 (cortex_a9_neon_mcr): Likewise.
8233 (cortex_a9_neon_mcr_2_mcrr): Likewise.
8234 (cortex_a9_neon_mrc): Likewise.
8235 (cortex_a9_neon_mrrc): Likewise.
8237 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
8239 * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
8241 (cortex_a8_neon_vshl_ddd): Remove.
8242 (cortex_a8_neon_vst3_vst4): Likewise.
8243 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
8245 (cortex_a8_neon_bit_ops_q): New.
8247 (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
8248 (cortex_a8_neon_int_2): Likewise..
8249 (cortex_a8_neon_int_3): Likewise.
8250 (cortex_a8_neon_int_5): Likewise.
8251 (cortex_a8_neon_vqneg_vqabs): Likewise.
8252 (cortex_a8_neon_int_4): Likewise.
8253 (cortex_a8_neon_vaba): Likewise.
8254 (cortex_a8_neon_vaba_qqq): Likewise.
8255 (cortex_a8_neon_shift_1): Likewise.
8256 (cortex_a8_neon_shift_2): Likewise.
8257 (cortex_a8_neon_shift_3): Likewise.
8258 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
8259 (cortex_a8_neon_vsra_vrsra): Likewise.
8260 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
8261 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
8262 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
8264 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
8265 (cortex_a8_neon_mla_qqq_8_16): Likewise.
8266 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
8268 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
8269 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
8270 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
8271 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
8272 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
8273 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
8274 (cortex_a8_neon_fp_vsum): Likewise.
8275 (cortex_a8_neon_fp_vmul_ddd): Likewise.
8276 (cortex_a8_neon_fp_vmul_qqd): Likewise.
8277 (cortex_a8_neon_fp_vmla_ddd): Likewise.
8278 (cortex_a8_neon_fp_vmla_qqq): Likewise.
8279 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
8280 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
8281 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
8282 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
8283 (cortex_a8_neon_bp_simple): Likewise.
8284 (cortex_a8_neon_bp_2cycle): Likewise.
8285 (cortex_a8_neon_bp_3cycle): Likewise.
8286 (cortex_a8_neon_ldr): Likewise.
8287 (cortex_a8_neon_str): Likewise.
8288 (cortex_a8_neon_vld1_1_2_regs): Likewise.
8289 (cortex_a8_neon_vld1_3_4_regs): Likewise.
8290 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
8291 (cortex_a8_neon_vld2_4_regs): Likewise.
8292 (cortex_a8_neon_vld3_vld4): Likewise.
8293 (cortex_a8_neon_vld1_vld2_lane): Likewise.
8294 (cortex_a8_neon_vld3_vld4_lane): Likewise.
8295 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
8296 (cortex_a8_neon_vst1_3_4_regs): Likewise.
8297 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
8298 (cortex_a8_neon_vst1_vst2_lane): Likewise.
8299 (cortex_a8_neon_vst3_vst4_lane): Likewise.
8300 (cortex_a8_neon_mcr): Likewise.
8301 (cortex_a8_neon_mcr_2_mcrr): Likewise.
8302 (cortex_a8_neon_mrc): Likewise.
8303 (cortex_a8_neon_mrrc): Likewise.
8305 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
8307 * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
8309 * config/aarch64/aarch64-simd.md (neon_type): Remove.
8310 (aarch64_simd_dup<mode>): Add "type" attribute.
8311 (aarch64_dup_lane<mode>): Likewise.
8312 (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
8313 (*aarch64_simd_mov<mode>): Likewise.
8314 (aarch64_simd_mov_from_<mode>low): Likewise.
8315 (aarch64_simd_mov_from_<mode>high): Likewise.
8316 (orn<mode>3): Likewise.
8317 (bic<mode>3): Likewise.
8318 (add<mode>3): Likewise.
8319 (sub<mode>3): Likewise.
8320 (mul<mode>3): Likewise.
8321 (*aarch64_mul3_elt<mode>): Likewise.
8322 (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
8323 (*aarch64_mul3_elt_to_128df): Likewise.
8324 (*aarch64_mul3_elt_to_64v2df): Likewise.
8325 (neg<mode>2): Likewise.
8326 (abs<mode>2): Likewise.
8327 (abd<mode>_3): Likewise.
8328 (aba<mode>_3): Likewise.
8329 (fabd<mode>_3): Likewise.
8330 (*fabd_scalar<mode>3): Likewise.
8331 (and<mode>3): Likewise.
8332 (ior<mode>3): Likewise.
8333 (xor<mode>3): Likewise.
8334 (one_cmpl<mode>2): Likewise.
8335 (aarch64_simd_vec_set<mode>): Likewise.
8336 (aarch64_simd_lshr<mode>): Likewise.
8337 (aarch64_simd_ashr<mode>): Likewise.
8338 (aarch64_simd_imm_shl<mode>): Likewise.
8339 (aarch64_simd_reg_sshl<mode): Likewise.
8340 (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
8341 (aarch64_simd_reg_shl<mode>_signed): Likewise.
8342 (aarch64_simd_vec_setv2di): Likewise.
8343 (aarch64_simd_vec_set<mode>): Likewise.
8344 (aarch64_mla<mode>): Likewise.
8345 (*aarch64_mla_elt<mode>): Likewise.
8346 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
8347 (aarch64_mls<mode>): Likewise.
8348 (*aarch64_mls_elt<mode>): Likewise.
8349 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
8350 (<su><maxmin><mode>3): Likewise.
8351 (move_lo_quad_<mode>): Likewise.
8352 (aarch64_simd_move_hi_quad_<mode>): Likewise.
8353 (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
8354 (vec_pack_trunc_<mode>): Likewise.
8355 (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
8356 (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
8357 (*aarch64_<su>mlal_lo<mode>): Likewise.
8358 (*aarch64_<su>mlal_hi<mode>): Likewise.
8359 (*aarch64_<su>mlsl_lo<mode>): Likewise.
8360 (*aarch64_<su>mlsl_hi<mode>): Likewise.
8361 (*aarch64_<su>mlal<mode>): Likewise.
8362 (*aarch64_<su>mlsl<mode>): Likewise.
8363 (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
8364 (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
8365 (add<mode>3): Likewise.
8366 (sub<mode>3): Likewise.
8367 (mul<mode>3): Likewise.
8368 (div<mode>3): Likewise.
8369 (neg<mode>2): Likewise.
8370 (abs<mode>2): Likewise.
8371 (fma<mode>4): Likewise.
8372 (*aarch64_fma4_elt<mode>): Likewise.
8373 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
8374 (*aarch64_fma4_elt_to_128df): Likewise.
8375 (*aarch64_fma4_elt_to_64v2df): Likewise.
8376 (fnma<mode>4): Likewise.
8377 (*aarch64_fnma4_elt<mode>): Likewise.
8378 (*aarch64_fnma4_elt_<vswap_width_name><mode>
8379 (*aarch64_fnma4_elt_to_128df): Likewise.
8380 (*aarch64_fnma4_elt_to_64v2df): Likewise.
8381 (<frint_pattern><mode>2): Likewise.
8382 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
8383 (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
8384 (vec_unpacks_lo_v4sf): Likewise.
8385 (aarch64_float_extend_lo_v2df): Likewise.
8386 (vec_unpacks_hi_v4sf): Likewise.
8387 (aarch64_float_truncate_lo_v2sf): Likewise.
8388 (aarch64_float_truncate_hi_v4sf): Likewise.
8389 (aarch64_vmls<mode>): Likewise.
8390 (<su><maxmin><mode>3): Likewise.
8391 (<maxmin_uns><mode>3): Likewise.
8392 (reduc_<sur>plus_<mode>): Likewise.
8393 (reduc_<sur>plus_v2di): Likewise.
8394 (reduc_<sur>plus_v2si): Likewise.
8395 (reduc_<sur>plus_<mode>): Likewise.
8396 (aarch64_addpv4sf): Likewise.
8397 (clz<mode>2): Likewise.
8398 (reduc_<maxmin_uns>_<mode>): Likewise.
8399 (reduc_<maxmin_uns>_v2di): Likewise.
8400 (reduc_<maxmin_uns>_v2si): Likewise.
8401 (reduc_<maxmin_uns>_<mode>): Likewise.
8402 (reduc_<maxmin_uns>_v4sf): Likewise.
8403 (aarch64_simd_bsl<mode>_internal): Likewise.
8404 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
8405 (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
8406 (aarch64_get_lane<mode>): Likewise.
8407 (*aarch64_combinez<mode>): Likewise.
8408 (aarch64_combine<mode>): Likewise.
8409 (aarch64_simd_combine<mode>): Likewise.
8410 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
8411 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
8412 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
8413 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
8414 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
8415 (aarch64_<sur>h<addsub><mode>): Likewise.
8416 (aarch64_<sur><addsub>hn<mode>): Likewise.
8417 (aarch64_<sur><addsub>hn2<mode>): Likewise.
8418 (aarch64_pmul<mode>): Likewise.
8419 (aarch64_<su_optab><optab><mode>): Likewise.
8420 (aarch64_<sur>qadd<mode>): Likewise.
8421 (aarch64_sqmovun<mode>): Likewise.
8422 (aarch64_<sur>qmovn<mode>): Likewise.
8423 (aarch64_s<optab><mode>): Likewise.
8424 (aarch64_sq<r>dmulh<mode>): Likewise.
8425 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
8426 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
8427 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
8428 (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
8429 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
8430 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
8431 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
8432 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
8433 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
8434 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
8435 (aarch64_sqdmull<mode>): Likewise.
8436 (aarch64_sqdmull_lane<mode>_internal): Likewise.
8437 (aarch64_sqdmull_n<mode>): Likewise.
8438 (aarch64_sqdmull2<mode>_internal): Likewise.
8439 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
8440 (aarch64_sqdmull2_n<mode>_internal): Likewise.
8441 (aarch64_<sur>shl<mode>): Likewise.
8442 (aarch64_<sur>q<r>shl<mode>
8443 (aarch64_<sur>shll_n<mode>): Likewise.
8444 (aarch64_<sur>shll2_n<mode>): Likewise.
8445 (aarch64_<sur>shr_n<mode>): Likewise.
8446 (aarch64_<sur>sra_n<mode>): Likewise.
8447 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
8448 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
8449 (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
8450 (aarch64_cm<optab><mode>): Likewise.
8451 (aarch64_cm<optab>di): Likewise.
8452 (aarch64_cm<optab><mode>): Likewise.
8453 (aarch64_cm<optab>di): Likewise.
8454 (aarch64_cmtst<mode>): Likewise.
8455 (aarch64_cmtstdi): Likewise.
8456 (aarch64_cm<optab><mode>): Likewise.
8457 (*aarch64_fac<optab><mode>): Likewise.
8458 (aarch64_addp<mode>): Likewise.
8459 (aarch64_addpdi): Likewise.
8460 (sqrt<mode>2): Likewise.
8461 (vec_load_lanesoi<mode>): Likewise.
8462 (vec_store_lanesoi<mode>): Likewise.
8463 (vec_load_lanesci<mode>): Likewise.
8464 (vec_store_lanesci<mode>): Likewise.
8465 (vec_load_lanesxi<mode>): Likewise.
8466 (vec_store_lanesxi<mode>): Likewise.
8467 (*aarch64_mov<mode>): Likewise.
8468 (aarch64_ld2<mode>_dreg): Likewise.
8469 (aarch64_ld2<mode>_dreg): Likewise.
8470 (aarch64_ld3<mode>_dreg): Likewise.
8471 (aarch64_ld3<mode>_dreg): Likewise.
8472 (aarch64_ld4<mode>_dreg): Likewise.
8473 (aarch64_ld4<mode>_dreg): Likewise.
8474 (aarch64_tbl1<mode>): Likewise.
8475 (aarch64_tbl2v16qi): Likewise.
8476 (aarch64_combinev16qi): Likewise.
8477 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
8478 (aarch64_st2<mode>_dreg): Likewise.
8479 (aarch64_st2<mode>_dreg): Likewise.
8480 (aarch64_st3<mode>_dreg): Likewise.
8481 (aarch64_st3<mode>_dreg): Likewise.
8482 (aarch64_st4<mode>_dreg): Likewise.
8483 (aarch64_st4<mode>_dreg): Likewise.
8484 (*aarch64_simd_ld1r<mode>): Likewise.
8485 (aarch64_frecpe<mode>): Likewise.
8486 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
8487 (aarch64_frecps<mode>): Likewise.
8489 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
8491 * config/arm/iterators.md (V_elem_ch): New.
8493 (VQH_type): Likewise.
8494 * config/arm/arm.md (is_neon_type): New.
8495 (conds): Use is_neon_type.
8496 (anddi3_insn): Update type attribute.
8497 (xordi3_insn): Likewise.
8498 (one_cmpldi2): Likewise.
8499 * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
8500 * config/arm/neon.md (neon_mov): Update type attribute.
8501 (*movmisalign<mode>_neon_store): Likewise.
8502 (*movmisalign<mode>_neon_load): Likewise.
8503 (vec_set<mode>_internal): Likewise.
8504 (vec_set<mode>_internal): Likewise.
8505 (vec_setv2di_internal): Likewise.
8506 (vec_extract<mode>): Likewise.
8507 (vec_extract<mode>): Likewise.
8508 (vec_extractv2di): Likewise.
8509 (*add<mode>3_neon): Likewise.
8510 (adddi3_neon): Likewise.
8511 (*sub<mode>3_neon): Likewise.
8512 (subdi3_neon): Likewise.
8513 (fma<VCVTF:mode>4): Likewise.
8514 (fma<VCVTF:mode>4_intrinsic): Likewise.
8515 (*fmsub<VCVTF:mode>4): Likewise.
8516 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
8517 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
8518 (ior<mode>3): Likewise.
8519 (and<mode>3): Likewise.
8520 (orn<mode>3_neon): Likewise.
8521 (orndi3_neon): Likewise.
8522 (bic<mode>3_neon): Likewise.
8523 (bicdi3_neon): Likewise.
8524 (xor<mode>3): Likewise.
8525 (one_cmpl<mode>2): Likewise.
8526 (abs<mode>2): Likewise.
8527 (neg<mode>2): Likewise.
8528 (negdi2_neon): Likewise.
8529 (*umin<mode>3_neon): Likewise.
8530 (*umax<mode>3_neon): Likewise.
8531 (*smin<mode>3_neon): Likewise.
8532 (*smax<mode>3_neon): Likewise.
8533 (vashl<mode>3): Likewise.
8534 (vashr<mode>3_imm): Likewise.
8535 (vlshr<mode>3_imm): Likewise.
8536 (ashl<mode>3_signed): Likewise.
8537 (ashl<mode>3_unsigned): Likewise.
8538 (neon_load_count): Likewise.
8539 (ashldi3_neon_noclobber): Likewise.
8540 (ashldi3_neon): Likewise.
8541 (signed_shift_di3_neon): Likewise.
8542 (unsigned_shift_di3_neon): Likewise.
8543 (ashrdi3_neon_imm_noclobber): Likewise.
8544 (lshrdi3_neon_imm_noclobber): Likewise.
8545 (<shift>di3_neon): Likewise.
8546 (widen_ssum<mode>3): Likewise.
8547 (widen_usum<mode>3): Likewise.
8548 (quad_halves_<code>v4si): Likewise.
8549 (quad_halves_<code>v4sf): Likewise.
8550 (quad_halves_<code>v8hi): Likewise.
8551 (quad_halves_<code>v16qi): Likewise.
8552 (reduc_splus_v2di): Likewise.
8553 (neon_vpadd_internal<mode>): Likewise.
8554 (neon_vpsmin<mode>): Likewise.
8555 (neon_vpsmax<mode>): Likewise.
8556 (neon_vpumin<mode>): Likewise.
8557 (neon_vpumax<mode>): Likewise.
8558 (*ss_add<mode>_neon): Likewise.
8559 (*us_add<mode>_neon): Likewise.
8560 (*ss_sub<mode>_neon): Likewise.
8561 (*us_sub<mode>_neon): Likewise.
8562 (neon_vadd<mode>_unspec): Likewise.
8563 (neon_vaddl<mode>): Likewise.
8564 (neon_vaddw<mode>): Likewise.
8565 (neon_vhadd<mode>): Likewise.
8566 (neon_vqadd<mode>): Likewise.
8567 (neon_vaddhn<mode>): Likewise.
8568 (neon_vmul<mode>): Likewise.
8569 (neon_vfms<VCVTF:mode>): Likewise.
8570 (neon_vmlal<mode>): Likewise.
8571 (neon_vmls<mode>): Likewise.
8572 (neon_vmlsl<mode>): Likewise.
8573 (neon_vqdmulh<mode>): Likewise.
8574 (neon_vqdmlal<mode>): Likewise.
8575 (neon_vqdmlsl<mode>): Likewise.
8576 (neon_vmull<mode>): Likewise.
8577 (neon_vqdmull<mode>): Likewise.
8578 (neon_vsub<mode>_unspec): Likewise.
8579 (neon_vsubl<mode>): Likewise.
8580 (neon_vsubw<mode>): Likewise.
8581 (neon_vqsub<mode>): Likewise.
8582 (neon_vhsub<mode>): Likewise.
8583 (neon_vsubhn<mode>): Likewise.
8584 (neon_vceq<mode>): Likewise.
8585 (neon_vcge<mode>): Likewise.
8586 (neon_vcgeu<mode>): Likewise.
8587 (neon_vcgt<mode>): Likewise.
8588 (neon_vcgtu<mode>): Likewise.
8589 (neon_vcle<mode>): Likewise.
8590 (neon_vclt<mode>): Likewise.
8591 (neon_vcage<mode>): Likewise.
8592 (neon_vcagt<mode>): Likewise.
8593 (neon_vtst<mode>): Likewise.
8594 (neon_vabd<mode>): Likewise.
8595 (neon_vabdl<mode>): Likewise.
8596 (neon_vaba<mode>): Likewise.
8597 (neon_vabal<mode>): Likewise.
8598 (neon_vmax<mode>): Likewise.
8599 (neon_vmin<mode>): Likewise.
8600 (neon_vpaddl<mode>): Likewise.
8601 (neon_vpadal<mode>): Likewise.
8602 (neon_vpmax<mode>): Likewise.
8603 (neon_vpmin<mode>): Likewise.
8604 (neon_vrecps<mode>): Likewise.
8605 (neon_vrsqrts<mode>): Likewise.
8606 (neon_vqabs<mode>): Likewise.
8607 (neon_vqneg<mode>): Likewise.
8608 (neon_vcls<mode>): Likewise.
8609 (clz<mode>2): Likewise.
8610 (popcount<mode>2): Likewise.
8611 (neon_vrecpe<mode>): Likewise.
8612 (neon_vrsqrte<mode>): Likewise.
8613 (neon_vget_lane<mode>_sext_internal): Likewise.
8614 (neon_vget_lane<mode>_zext_internal): Likewise.
8615 (neon_vdup_n<mode>): Likewise.
8616 (neon_vdup_n<mode>): Likewise.
8617 (neon_vdup_nv2di): Likewise.
8618 (neon_vdup_lane<mode>_interal): Likewise.
8619 (*neon_vswp<mode>): Likewise.
8620 (neon_vcombine<mode>): Likewise.
8621 (float<mode><V_cvtto>2): Likewise.
8622 (floatuns<mode><V_cvtto>2): Likewise.
8623 (fix_trunc<mode><V_cvtto>2): Likewise.
8624 (fixuns_trunc<mode><V_cvtto>2
8625 (neon_vcvt<mode>): Likewise.
8626 (neon_vcvt<mode>): Likewise.
8627 (neon_vcvtv4sfv4hf): Likewise.
8628 (neon_vcvtv4hfv4sf): Likewise.
8629 (neon_vcvt_n<mode>): Likewise.
8630 (neon_vcvt_n<mode>): Likewise.
8631 (neon_vmovn<mode>): Likewise.
8632 (neon_vqmovn<mode>): Likewise.
8633 (neon_vqmovun<mode>): Likewise.
8634 (neon_vmovl<mode>): Likewise.
8635 (neon_vmul_lane<mode>): Likewise.
8636 (neon_vmul_lane<mode>): Likewise.
8637 (neon_vmull_lane<mode>): Likewise.
8638 (neon_vqdmull_lane<mode>): Likewise.
8639 (neon_vqdmulh_lane<mode>): Likewise.
8640 (neon_vqdmulh_lane<mode>): Likewise.
8641 (neon_vmla_lane<mode>): Likewise.
8642 (neon_vmla_lane<mode>): Likewise.
8643 (neon_vmlal_lane<mode>): Likewise.
8644 (neon_vqdmlal_lane<mode>): Likewise.
8645 (neon_vmls_lane<mode>): Likewise.
8646 (neon_vmls_lane<mode>): Likewise.
8647 (neon_vmlsl_lane<mode>): Likewise.
8648 (neon_vqdmlsl_lane<mode>): Likewise.
8649 (neon_vext<mode>): Likewise.
8650 (neon_vrev64<mode>): Likewise.
8651 (neon_vrev32<mode>): Likewise.
8652 (neon_vrev16<mode>): Likewise.
8653 (neon_vbsl<mode>_internal): Likewise.
8654 (neon_vshl<mode>): Likewise.
8655 (neon_vqshl<mode>): Likewise.
8656 (neon_vshr_n<mode>): Likewise.
8657 (neon_vshrn_n<mode>): Likewise.
8658 (neon_vqshrn_n<mode>): Likewise.
8659 (neon_vqshrun_n<mode>): Likewise.
8660 (neon_vshl_n<mode>): Likewise.
8661 (neon_vqshl_n<mode>): Likewise.
8662 (neon_vqshlu_n<mode>): Likewise.
8663 (neon_vshll_n<mode>): Likewise.
8664 (neon_vsra_n<mode>): Likewise.
8665 (neon_vsri_n<mode>): Likewise.
8666 (neon_vsli_n<mode>): Likewise.
8667 (neon_vtbl1v8qi): Likewise.
8668 (neon_vtbl2v8qi): Likewise.
8669 (neon_vtbl3v8qi): Likewise.
8670 (neon_vtbl4v8qi): Likewise.
8671 (neon_vtbl1v16qi): Likewise.
8672 (neon_vtbl2v16qi): Likewise.
8673 (neon_vcombinev16qi): Likewise.
8674 (neon_vtbx1v8qi): Likewise.
8675 (neon_vtbx2v8qi): Likewise.
8676 (neon_vtbx3v8qi): Likewise.
8677 (neon_vtbx4v8qi): Likewise.
8678 (*neon_vtrn<mode>_insn): Likewise.
8679 (*neon_vzip<mode>_insn): Likewise.
8680 (*neon_vuzp<mode>_insn): Likewise.
8681 (neon_vld1<mode>): Likewise.
8682 (neon_vld1_lane<mode>): Likewise.
8683 (neon_vld1_lane<mode>): Likewise.
8684 (neon_vld1_dup<mode>): Likewise.
8685 (neon_vld1_dup<mode>): Likewise.
8686 (neon_vld1_dupv2di): Likewise.
8687 (neon_vst1<mode>): Likewise.
8688 (neon_vst1_lane<mode>): Likewise.
8689 (neon_vst1_lane<mode>): Likewise.
8690 (neon_vld2<mode>): Likewise.
8691 (neon_vld2<mode>): Likewise.
8692 (neon_vld2_lane<mode>): Likewise.
8693 (neon_vld2_lane<mode>): Likewise.
8694 (neon_vld2_dup<mode>): Likewise.
8695 (neon_vst2<mode>): Likewise.
8696 (neon_vst2<mode>): Likewise.
8697 (neon_vst2_lane<mode>): Likewise.
8698 (neon_vst2_lane<mode>): Likewise.
8699 (neon_vld3<mode>): Likewise.
8700 (neon_vld3qa<mode>): Likewise.
8701 (neon_vld3qb<mode>): Likewise.
8702 (neon_vld3_lane<mode>): Likewise.
8703 (neon_vld3_lane<mode>): Likewise.
8704 (neon_vld3_dup<mode>): Likewise.
8705 (neon_vst3<mode>): Likewise.
8706 (neon_vst3qa<mode>): Likewise.
8707 (neon_vst3qb<mode>): Likewise.
8708 (neon_vst3_lane<mode>): Likewise.
8709 (neon_vst3_lane<mode>): Likewise.
8710 (neon_vld4<mode>): Likewise.
8711 (neon_vld4qa<mode>): Likewise.
8712 (neon_vld4qb<mode>): Likewise.
8713 (neon_vld4_lane<mode>): Likewise.
8714 (neon_vld4_lane<mode>): Likewise.
8715 (neon_vld4_dup<mode>): Likewise.
8716 (neon_vst4<mode>): Likewise.
8717 (neon_vst4qa<mode>): Likewise.
8718 (neon_vst4qb<mode>): Likewise.
8719 (neon_vst4_lane<mode>): Likewise.
8720 (neon_vst4_lane<mode>): Likewise.
8721 (neon_vec_unpack<US>_lo_<mode>): Likewise.
8722 (neon_vec_unpack<US>_hi_<mode>): Likewise.
8723 (neon_vec_<US>mult_lo_<mode>): Likewise.
8724 (neon_vec_<US>mult_hi_<mode>): Likewise.
8725 (neon_vec_<US>shiftl_<mode>): Likewise.
8726 (neon_unpack<US>_<mode>): Likewise.
8727 (neon_vec_<US>mult_<mode>): Likewise.
8728 (vec_pack_trunc_<mode>): Likewise.
8729 (neon_vec_pack_trunc_<mode>): Likewise.
8730 (neon_vabd<mode>_2): Likewise.
8731 (neon_vabd<mode>_3): Likewise.
8733 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
8735 * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
8736 (load_pair): Update type attribute.
8737 (store_pair): Update type attribute.
8738 * config/aarch64/iterators.md (q): New.
8740 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
8742 * config/arm/types.md: Add new types for Neon insns.
8744 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
8745 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8746 Sergey Lega <sergey.s.lega@intel.com>
8747 Anna Tikhonova <anna.tikhonova@intel.com>
8748 Ilya Tocar <ilya.tocar@intel.com>
8749 Andrey Turetskiy <andrey.turetskiy@intel.com>
8750 Ilya Verbin <ilya.verbin@intel.com>
8751 Kirill Yukhin <kirill.yukhin@intel.com>
8752 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8754 * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
8755 UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
8756 UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
8758 (srcp14<mode>): Ditto.
8759 (rsqrt14<mode>): Ditto.
8760 (rsqrt14<mode>): Ditto.
8761 (avx512f_vmscalef<mode>): Ditto.
8762 (avx512f_scalef<mode>): Ditto.
8763 (avx512f_getexp<mode>): Ditto.
8764 (avx512f_sgetexp<mode>): Ditto.
8765 (avx512f_fixupimm<mode>): Ditto.
8766 (avx512f_sfixupimm<mode>): Ditto.
8767 (avx512f_rndscale<mode>): Ditto.
8768 (*avx512er_exp2<mode>): Ditto.
8769 (*avx512er_rcp28<mode>): Ditto.
8770 (avx512er_rsqrt28<mode>): Ditto.
8771 (avx512f_getmant<mode>): Ditto.
8772 (avx512f_getmant<mode>): Ditto.
8773 (avx512f_rndscale<mode>): Fix formatting.
8775 2013-10-15 Martin Jambor <mjambor@suse.cz>
8777 * ipa-utils.h (ipa_edge_within_scc): Declare.
8778 * ipa-cp.c (edge_within_scc): Moved...
8779 * ipa-utils.c (ipa_edge_within_scc): ...here. Updated all callers.
8781 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
8782 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8783 Sergey Lega <sergey.s.lega@intel.com>
8784 Anna Tikhonova <anna.tikhonova@intel.com>
8785 Ilya Tocar <ilya.tocar@intel.com>
8786 Andrey Turetskiy <andrey.turetskiy@intel.com>
8787 Ilya Verbin <ilya.verbin@intel.com>
8788 Kirill Yukhin <kirill.yukhin@intel.com>
8789 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8791 * config/i386/predicates.md (const_8_to_15_operand): New.
8792 (const_16_to_31_operand): Ditto.
8793 * config/i386/sse.md (V8FI): New.
8795 (reduc_splus_v8df): Ditto.
8796 (reduc_splus_v16sf): Ditto.
8797 (avx512f_vextract<shuffletype>32x4_1): Ditto.
8798 (vec_extract_hi_<mode>): Ditto.
8799 (avx512f_vinsert<shuffletype>32x4_1): Ditto.
8800 (vec_set_lo_<mode>): Ditto.
8801 (vec_set_hi_<mode>): Ditto.
8802 (avx512f_shuf_<shuffletype>64x2_1): Ditto.
8803 (avx512f_shuf_<shuffletype>32x4_1): Ditto.
8804 (avx512f_pshufd_1): Ditto.
8805 (avx512f_broadcast<mode>): Ditto.
8806 (avx512f_broadcast<mode>): Ditto.
8807 (define_split): Split vec_extract_lo into move.
8808 (ssequartermode): Ditto.
8809 (ssedoublemode): Extened with wider modes.
8810 (vec_extract_lo_<mode>): Ditto.
8812 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
8813 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8814 Sergey Lega <sergey.s.lega@intel.com>
8815 Anna Tikhonova <anna.tikhonova@intel.com>
8816 Ilya Tocar <ilya.tocar@intel.com>
8817 Andrey Turetskiy <andrey.turetskiy@intel.com>
8818 Ilya Verbin <ilya.verbin@intel.com>
8819 Kirill Yukhin <kirill.yukhin@intel.com>
8820 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8822 * config/i386/predicates.md (register_or_constm1_operand): New.
8823 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
8824 UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
8825 UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
8826 UNSPEC_SCATTER_PREFETCH
8828 (avx512f_ucmp<mode>3): Ditto.
8829 (avx512f_vternlog<mode>): Ditto.
8830 (avx512f_align<mode>): Ditto.
8831 (<shift_insn><mode>3): Ditto.
8832 (avx512f_<rotate>v<mode>): Ditto.
8833 (avx512f_<rotate><mode>): Ditto.
8834 (avx512f_eq<mode>3): Ditto.
8835 (avx512f_eq<mode>3_1): Ditto.
8836 (avx512f_gt<mode>3): Ditto.
8837 (avx512f_testm<mode>3): Ditto.
8838 (avx512f_testnm<mode>3): Ditto.
8839 (avx512pf_gatherpf<mode>): Ditto.
8840 (*avx512pf_gatherpf<mode>_mask): Ditto.
8841 (*avx512pf_gatherpf<mode>): Ditto.
8842 (avx512pf_scatterpf<mode>): Ditto.
8843 (*avx512pf_scatterpf<mode>_mask): Ditto.
8844 (*avx512pf_scatterpf<mode>): Ditto.
8845 (avx512f_vec_dup_gpr<mode>): Ditto.
8846 (clz<mode>2): Ditto.
8847 (conflict<mode>): Ditto.
8848 (REDUC_SMINMAX_MODE): Extened with wider modes.
8849 (reduc_<code>_<mode>): Ditto.
8850 (vlshr<mode>3): Ditto.
8851 (vashl<mode>3): Ditto.
8853 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
8854 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8855 Sergey Lega <sergey.s.lega@intel.com>
8856 Anna Tikhonova <anna.tikhonova@intel.com>
8857 Ilya Tocar <ilya.tocar@intel.com>
8858 Andrey Turetskiy <andrey.turetskiy@intel.com>
8859 Ilya Verbin <ilya.verbin@intel.com>
8860 Kirill Yukhin <kirill.yukhin@intel.com>
8861 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8863 * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
8866 (avx512fmaskmode): Ditto.
8867 (bcstscalarsuff): Ditto.
8868 (avx512f_blendm<mode>): Ditto.
8869 (cmp_imm_predicate): Ditto.
8870 (avx512f_cmp<mode>3): Ditto.
8871 (avx512f_vec_dup<mode>): Ditto.
8872 (avx512f_vec_dup_mem<mode>): Ditto.
8873 (avx512f_vpermi2var<mode>3): Ditto.
8874 (avx512f_vpermt2var<mode>3): Ditto.
8875 (vec_init<mode>): Ditto.
8876 (avx512f_gathersi<mode>): Ditto.
8877 (*avx512f_gathersi<mode>): Ditto.
8878 (*avx512f_gathersi<mode>_2): Ditto.
8879 (avx512f_gatherdi<mode>): Ditto.
8880 (*avx512f_gatherdi<mode>): Ditto.
8881 (*avx512f_gatherdi<mode>_2): Ditto.
8882 (avx512f_scattersi<mode>): Ditto.
8883 (*avx512f_scattersi<mode>): Ditto.
8884 (avx512f_scatterdi<mode>): Ditto.
8885 (*avx512f_scatterdi<mode>): Ditto.
8886 (sseintprefix): Extened with wider modes.
8887 (VEC_GATHER_IDXSI): Ditto.
8888 (VEC_GATHER_IDXDI): Ditto.
8889 (VEC_GATHER_SRCDI): Ditto.
8891 2013-10-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8892 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8894 * config/arm/t-aprofile: New file.
8895 * config.gcc: Handle --with-multilib-list option.
8897 2013-10-15 Bernd Schmidt <bernds@codesourcery.com>
8899 * reload1.c (reloads_unique_chain_p): Ensure that r1 is
8902 2013-10-15 Richard Biener <rguenther@suse.de>
8904 * tree-loop-distribution.c (build_empty_rdg): Inline into
8906 (rdg_flag_vertex): Inline into single user.
8907 (rdg_flag_vertex_and_dependent): Likewise.
8908 (build_rdg_partition_for_vertex): Remove processed bitmap.
8909 (rdg_build_partitions): Simplify.
8911 2013-10-15 Richard Biener <rguenther@suse.de>
8913 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
8914 Restructure forwarding through conversions and copies to
8915 avoid performing copy-propagation the wrong way. Adjust
8916 recursion invocations.
8917 (forward_propagate_addr_expr): Add argument stating if we
8918 are recursing from a single-use.
8919 (ssa_forward_propagate_and_combine): Adjust.
8921 2013-10-14 David Malcolm <dmalcolm@redhat.com>
8923 * dumpfile.h (gcc::dump_manager): New class, to hold state
8924 relating to dumpfile management.
8925 (get_dump_file_name): Remove in favor of method of dump_manager.
8926 (dump_initialized_p): Likewise.
8927 (dump_start): Likewise.
8928 (dump_finish): Likewise.
8929 (dump_switch_p): Likewise.
8930 (dump_register): Likewise.
8931 (get_dump_file_info): Likewise.
8932 * context.c (gcc::context::context): Construct the dump_manager
8934 * context.h (gcc::context::get_dumps): New.
8935 (gcc::context::m_dumps): New.
8936 * coverage.c (coverage_init): Port to dump_manager API.
8937 * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
8938 (extra_dump_files_in_use): Likewise.
8939 (extra_dump_files_alloced): Likewise.
8940 (gcc::dump_manager::dump_manager): New.
8941 (dump_register): Convert to...
8942 (gcc::dump_manager::dump_register): ...method, replacing
8943 function-static next_dump with m_next_dump field.
8944 (get_dump_file_info): Convert to...
8945 (gcc::dump_manager::get_dump_file_info): ...method.
8946 (get_dump_file_name): Convert to...
8947 (gcc::dump_manager::get_dump_file_name): ...method.
8948 (dump_start): Convert to...
8949 (gcc::dump_manager::dump_start): ...method.
8950 (dump_finish): Convert to...
8951 (gcc::dump_manager::dump_finish): ...method.
8952 (dump_begin): Replace body with...
8953 (gcc::dump_manager::dump_begin): ...new method.
8954 (dump_phase_enabled_p): Convert to...
8955 (gcc::dump_manager::dump_phase_enabled_p): ...method.
8956 (dump_phase_enabled_p): Convert to...
8957 (gcc::dump_manager::dump_phase_enabled_p): ...method.
8958 (dump_initialized_p): Convert to...
8959 (gcc::dump_manager::dump_initialized_p): ...method.
8960 (dump_flag_name): Replace body with...
8961 (gcc::dump_manager::dump_flag_name): ...new method.
8962 (dump_enable_all): Convert to...
8963 (gcc::dump_manager::dump_enable_all): ...new method.
8964 (opt_info_enable_passes): Convert to...
8965 (gcc::dump_manager::opt_info_enable_passes): ...new method.
8966 (dump_switch_p_1): Convert to...
8967 (gcc::dump_manager::dump_switch_p_1): ...new method.
8968 (dump_switch_p): Convert to...
8969 (gcc::dump_manager::dump_switch_p): ...new method.
8970 (opt_info_switch_p): Port to dump_manager API.
8971 (enable_rtl_dump_file): Likewise.
8972 * opts-global.c (handle_common_deferred_options): Port to new
8974 * passes.c (pass_manager::finish_optimization_passes): Likewise.
8975 (pass_manager::register_one_dump_file): Likewise.
8976 (pass_manager::register_pass): Likewise.
8977 (pass_init_dump_file): Likewise.
8978 (pass_fini_dump_file): Likewise.
8979 * statistics.c (statistics_early_init): Likewise.
8981 2013-10-14 Richard Biener <rguenther@suse.de>
8983 * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
8984 iterative_hash_canonical_type, gimple_canonical_type_hash,
8985 gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
8986 gimple_register_canonical_type, print_gimple_types_stats,
8987 free_gimple_type_tables): Move to lto/lto.c
8988 (gt-gimple.h): Do not include.
8989 * gimple.h (gimple_register_canonical_type,
8990 print_gimple_types_stats, free_gimple_type_tables): Remove.
8991 * Makefile.in (GTFILES): Remove gimple.c.
8993 2013-10-14 Travis Snoozy <quandary@remstate.com>
8996 * config/msp430/msp430.c (msp430_option_override): Correct thinko
8997 scanning for msp430x targets.
8999 2013-10-14 Eric Botcazou <ebotcazou@adacore.com>
9002 * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
9003 (registers_ok_for_ldd_peep): Move around.
9004 * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
9005 * config/sparc/sparc.md (widening peepholes): Use it.
9007 2013-10-14 Richard Biener <rguenther@suse.de>
9011 * gimple.c (iterative_hash_canonical_type): Make sure to
9012 record the hash into the correct hashtable slot.
9014 2013-10-13 Eric Botcazou <ebotcazou@adacore.com>
9016 PR rtl-optimization/58662
9017 * combine.c (try_combine): Take into account death nodes on I2 when
9018 splitting a PARALLEL of two independent SETs. Fix dump message.
9020 2013-10-12 Oleg Endo <olegendo@gcc.gnu.org>
9023 * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
9024 * config.gcc (SH extra_objs): Add sh_ifcvt.o.
9025 * config/sh/t-sh (sh_treg_combine.o): New entry.
9026 * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
9027 implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
9028 (register_sh_passes): New function. Register sh_treg_combine pass.
9029 (sh_option_override): Invoke it.
9030 (sh_canonicalize_comparison): Handle op0_preserve_value.
9031 * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
9032 opportunities. Canonicalize branch condition.
9033 (nott): Allow only if pseudos can be created for non-SH2A.
9035 2013-10-12 H.J. Lu <hongjiu.lu@intel.com>
9038 * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
9039 (ix86_expand_movmem): Replace copy_addr_to_reg with
9040 ix86_copy_addr_to_reg.
9041 (ix86_expand_setmem): Likewise.
9043 2013-10-12 Alexander Monakov <amonakov@ispras.ru>
9045 * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
9046 provided by ix86_fp_compare_mode instead of CCFPUmode.
9048 2013-10-12 James Greenhalgh <james.greenhalgh@arm.com>
9050 * config/aarch64/arm_neon.h
9051 (vtbx<1,3>_<psu>8): Fix register constriants.
9053 2013-10-11 Jeff Law <law@redhat.com>
9055 PR tree-optimization/58640
9056 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
9057 threading paths that cross over two loop entry points.
9059 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9061 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
9062 handle vector float as well.
9063 (*vsx_le_perm_load_v4si): Likewise.
9064 (*vsx_le_perm_store_v2di): Likewise.
9065 (*vsx_le_perm_store_v4si): Likewise.
9067 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9069 * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
9070 directly to circumvent subtract from splat{31} workaround.
9071 * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
9073 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
9074 * config/rs6000/altivec.md (define_c_enum "unspec"): Add
9075 UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
9076 (altivec_vperm_<mode>): Convert to define_insn_and_split to
9077 separate big and little endian logic.
9078 (*altivec_vperm_<mode>_internal): New define_insn.
9079 (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
9080 separate big and little endian logic.
9081 (*altivec_vperm_<mode>_uns_internal): New define_insn.
9082 (vec_permv16qi): Add little endian logic.
9084 2013-10-11 Marc Glisse <marc.glisse@inria.fr>
9086 * doc/extend.texi (returns_nonnull): Remove arguments.
9088 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9089 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9090 Sergey Lega <sergey.s.lega@intel.com>
9091 Anna Tikhonova <anna.tikhonova@intel.com>
9092 Ilya Tocar <ilya.tocar@intel.com>
9093 Andrey Turetskiy <andrey.turetskiy@intel.com>
9094 Ilya Verbin <ilya.verbin@intel.com>
9095 Kirill Yukhin <kirill.yukhin@intel.com>
9096 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9098 * config/i386/sse.md (VI48F_256_512): New.
9099 (avx2_permvar<mode>): Change to ...
9100 (<avx2_avx512f>_permvar<mode>): This.
9102 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9103 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9104 Sergey Lega <sergey.s.lega@intel.com>
9105 Anna Tikhonova <anna.tikhonova@intel.com>
9106 Ilya Tocar <ilya.tocar@intel.com>
9107 Andrey Turetskiy <andrey.turetskiy@intel.com>
9108 Ilya Verbin <ilya.verbin@intel.com>
9109 Kirill Yukhin <kirill.yukhin@intel.com>
9110 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9112 * config/i386/i386.c (bdesc_args): Change corresponding pattern for
9113 __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
9114 * config/i386/sse.md (VI4_AVX): New.
9115 (sf2simodelower): Ditto.
9116 (sse2_cvtps2dq): Change to ...
9117 (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
9119 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9120 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9121 Sergey Lega <sergey.s.lega@intel.com>
9122 Anna Tikhonova <anna.tikhonova@intel.com>
9123 Ilya Tocar <ilya.tocar@intel.com>
9124 Andrey Turetskiy <andrey.turetskiy@intel.com>
9125 Ilya Verbin <ilya.verbin@intel.com>
9126 Kirill Yukhin <kirill.yukhin@intel.com>
9127 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9129 * config/i386/sse.md (V_512): New.
9131 (vcond<V_512:mode><VF_512:mode>): Ditto.
9132 (vcond<V_512:mode><VI_512:mode>): Ditto.
9133 (vcondu<V_512:mode><VI_512:mode>): Ditto.
9135 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9136 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9137 Sergey Lega <sergey.s.lega@intel.com>
9138 Anna Tikhonova <anna.tikhonova@intel.com>
9139 Ilya Tocar <ilya.tocar@intel.com>
9140 Andrey Turetskiy <andrey.turetskiy@intel.com>
9141 Ilya Verbin <ilya.verbin@intel.com>
9142 Kirill Yukhin <kirill.yukhin@intel.com>
9143 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9145 * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
9146 * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
9148 (fma<mode>4): Removed condition.
9149 (fms<mode>4): Ditto.
9150 (fnma<mode>4): Ditto.
9151 (fnms<mode>4): Ditto.
9152 (fma4i_fmadd_<mode>): Ditto.
9153 (*fma_fmadd_<mode>): Ditto.
9154 (*fma_fmsub_<mode>): Ditto.
9155 (*fma_fnmadd_<mode>): Ditto.
9156 (*fma_fnmsub_<mode>): Ditto.
9157 (fmaddsub_<mode>): Allow for TARGET_AVX512F.
9158 (*fma_fmaddsub_<mode>): Ditto.
9159 (*fma_fmsubadd_<mode>): Ditto.
9160 (*fmai_fmadd_<mode>): Ditto.
9161 (*fmai_fmsub_<mode>): Ditto.
9162 (*fmai_fnmadd_<mode>): Ditto.
9163 (*fmai_fnmsub_<mode>): Ditto.
9165 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9166 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9167 Sergey Lega <sergey.s.lega@intel.com>
9168 Anna Tikhonova <anna.tikhonova@intel.com>
9169 Ilya Tocar <ilya.tocar@intel.com>
9170 Andrey Turetskiy <andrey.turetskiy@intel.com>
9171 Ilya Verbin <ilya.verbin@intel.com>
9172 Kirill Yukhin <kirill.yukhin@intel.com>
9173 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9175 * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
9176 (VI124_256): Changed to ...
9177 (VI124_256_48_512): This.
9178 (ssepackmode): Extended with wider modes.
9179 (<code><mode>3): Changed iterator.
9180 (*avx2_<code><mode>3): Ditto.
9181 (vec_pack_trunc_<mode>): Ditto.
9183 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9184 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9185 Sergey Lega <sergey.s.lega@intel.com>
9186 Anna Tikhonova <anna.tikhonova@intel.com>
9187 Ilya Tocar <ilya.tocar@intel.com>
9188 Andrey Turetskiy <andrey.turetskiy@intel.com>
9189 Ilya Verbin <ilya.verbin@intel.com>
9190 Kirill Yukhin <kirill.yukhin@intel.com>
9191 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9193 * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
9194 (VI8F_256_512): Ditto.
9195 (abs<mode>2): Changed iterator.
9196 (avx2_perm<mode>): Changed to ...
9197 (<avx2_avx512f>_perm<mode>): This.
9198 (avx2_perm<mode>_1): Changed to ...
9199 (<avx2_avx512f>_perm<mode>_1): This.
9201 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9202 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9203 Sergey Lega <sergey.s.lega@intel.com>
9204 Anna Tikhonova <anna.tikhonova@intel.com>
9205 Ilya Tocar <ilya.tocar@intel.com>
9206 Andrey Turetskiy <andrey.turetskiy@intel.com>
9207 Ilya Verbin <ilya.verbin@intel.com>
9208 Kirill Yukhin <kirill.yukhin@intel.com>
9209 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9211 * config/i386/sse.md (VI48_AVX512F): New.
9212 (VI48_AVX2): Changed to ...
9213 (VI48_AVX2_48_AVX512F): This.
9214 (avx2_ashrv<mode>): Changed to ...
9215 (<avx2_avx512f>_ashrv<mode>): This.
9216 (avx2_<shift_insn>v<mode>): Changed to ...
9217 (<avx2_avx512f>_<shift_insn>v<mode>): This.
9219 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9220 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9221 Sergey Lega <sergey.s.lega@intel.com>
9222 Anna Tikhonova <anna.tikhonova@intel.com>
9223 Ilya Tocar <ilya.tocar@intel.com>
9224 Andrey Turetskiy <andrey.turetskiy@intel.com>
9225 Ilya Verbin <ilya.verbin@intel.com>
9226 Kirill Yukhin <kirill.yukhin@intel.com>
9227 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9229 * config/i386/sse.md (VI4_AVX512F): New.
9230 (VI8_AVX2_AVX512F): Ditto.
9231 (mul<mode>3): Extended with wider modes.
9232 (*<sse4_1_avx2>_mul<mode>3): Ditto.
9233 (mul<mode>3): Ditto.
9234 (vec_widen_<s>mult_odd_<mode>): Ditto.
9236 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9237 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9238 Sergey Lega <sergey.s.lega@intel.com>
9239 Anna Tikhonova <anna.tikhonova@intel.com>
9240 Ilya Tocar <ilya.tocar@intel.com>
9241 Andrey Turetskiy <andrey.turetskiy@intel.com>
9242 Ilya Verbin <ilya.verbin@intel.com>
9243 Kirill Yukhin <kirill.yukhin@intel.com>
9244 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9246 * config/i386/sse.md (VI2_AVX512F): New.
9247 (VI124_AVX512F): Ditto.
9248 (sseunpackmode): Extended with wider modes.
9249 (sseunpackfltmode): Ditto.
9250 (vec_unpacks_float_hi_<mode>): Ditto.
9251 (vec_unpacks_float_lo_<mode>): Ditto.
9252 (vec_unpacku_float_hi_<mode>): Ditto.
9253 (vec_unpacku_float_lo_<mode>): Ditto.
9254 (vec_unpacks_lo_<mode>): Ditto.
9255 (vec_unpacks_hi_<mode>): Ditto.
9256 (vec_unpacku_lo_<mode>): Ditto.
9257 (vec_unpacku_hi_<mode>): Ditto.
9259 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9260 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9261 Sergey Lega <sergey.s.lega@intel.com>
9262 Anna Tikhonova <anna.tikhonova@intel.com>
9263 Ilya Tocar <ilya.tocar@intel.com>
9264 Andrey Turetskiy <andrey.turetskiy@intel.com>
9265 Ilya Verbin <ilya.verbin@intel.com>
9266 Kirill Yukhin <kirill.yukhin@intel.com>
9267 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9269 * config/i386/i386.md (multdiv): New.
9270 (multdiv_mnemonic): Ditto.
9271 * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
9272 (<sse>_vm<multdiv_mnemonic><mode>3): This.
9273 (<sse>_vmdiv<mode>3): Removed.
9275 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9276 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9277 Sergey Lega <sergey.s.lega@intel.com>
9278 Anna Tikhonova <anna.tikhonova@intel.com>
9279 Ilya Tocar <ilya.tocar@intel.com>
9280 Andrey Turetskiy <andrey.turetskiy@intel.com>
9281 Ilya Verbin <ilya.verbin@intel.com>
9282 Kirill Yukhin <kirill.yukhin@intel.com>
9283 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9285 * config/i386/sse.md (V): Extended with wider modes.
9287 (ssehalfvecmode): Ditto.
9289 (ssepackfltmode): Ditto.
9290 (avx_vec_concat<mode>): Ditto.
9291 (V_256_512): New iterator.
9292 (VF2_512_256): Ditto.
9293 (si2dfmode): New attribute.
9294 (si2dfmodelower): Ditto.
9296 (concat_tg_mode): Ditto.
9297 (floatv4siv4df2): Changed to ...
9298 (float<si2dfmodelower><mode>2): This.
9299 (avx_cvtps2pd256): Changed to ...
9300 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
9301 (vec_pack_trunc_v4df): Changed to ...
9302 (vec_pack_trunc_<mode>): This.
9303 (avx_vpermil<mode>): Changed to ...
9304 (<sse2_avx_avx512f>_vpermil<mode>): This.
9305 (<fixsuffix>fix_truncv8dfv8si2): New.
9306 (vec_pack_sfix_trunc_v8df): Ditto.
9307 (avx512f_rndscale<mode>): Ditto.
9308 (avx512f_roundpd512): Ditto.
9309 (vec_pack_ufix_trunc_<mode>): Updated iterator.
9311 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9312 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9313 Sergey Lega <sergey.s.lega@intel.com>
9314 Anna Tikhonova <anna.tikhonova@intel.com>
9315 Ilya Tocar <ilya.tocar@intel.com>
9316 Andrey Turetskiy <andrey.turetskiy@intel.com>
9317 Ilya Verbin <ilya.verbin@intel.com>
9318 Kirill Yukhin <kirill.yukhin@intel.com>
9319 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9321 * config/i386/i386.md (any_fix): New iterator.
9322 (fixsuffix): New attribute.
9323 * config/i386/sse.md (VF1): Extened with wider modes.
9327 (sseintvecmodelower): Ditto.
9328 (ssescalarmode): Ditto.
9329 (ssescalarnum): Ditto.
9331 (ssexmmmode): Ditto.
9332 (<fixsuffix>fix_truncv16sfv16si2): Ditto.
9333 (<sse>_rcp<mode>2): Change iterator.
9334 (rsqrt<mode>2): Ditto.
9335 (<sse>_rsqrt<mode>2): Ditto.
9336 (avx2_vec_dup<mode>): Ditto.
9337 (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
9338 (round<mode>2_sfix): Ditto.
9339 (avx2_pbroadcast<mode>): Ditto.
9340 (*andnot<mode>3): Handle XI mode.
9341 (*<code><mode>3): Ditto.
9342 (AVXTOSSEMODE): Removed.
9343 (avx_vpermil<mode>): Changed to ...
9344 (<sse2_avx_avx512f>_vpermil<mode>): This.
9346 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9347 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9348 Sergey Lega <sergey.s.lega@intel.com>
9349 Anna Tikhonova <anna.tikhonova@intel.com>
9350 Ilya Tocar <ilya.tocar@intel.com>
9351 Andrey Turetskiy <andrey.turetskiy@intel.com>
9352 Ilya Verbin <ilya.verbin@intel.com>
9353 Kirill Yukhin <kirill.yukhin@intel.com>
9354 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9356 * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
9357 (<sse>_comi): Ditto.
9358 (<sse>_ucomi): Ditto.
9359 (sse_cvtss2siq_2): Ditto.
9360 (sse2_cvtsd2si): Ditto.
9361 (sse2_cvtsd2siq): Ditto.
9362 (sse2_cvttsd2si): Ditto.
9363 (sse2_cvttsd2siq): Ditto.
9364 (<shift_insn><mode>3): Ditto.
9365 (sse2_cvtsi2sdq): Update constraint and prefix.
9366 (sse_cvtsi2ss): Update prefix.
9367 (sse_cvtsi2ssq): Ditto.
9369 2013-10-11 Jakub Jelinek <jakub@redhat.com>
9371 * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
9372 ignore internal calls.
9374 2013-10-11 Richard Biener <rguenther@suse.de>
9376 * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
9377 and (ab) for SSA_NAMEs. Mark INTEGER_CSTs with (OVF) if
9378 TREE_OVERFLOW is set.
9380 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
9382 * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
9384 * gimple.c: GIMPLE statements have subcodes, not sub-codes.
9385 * gimple.h: Likewise.
9387 * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
9389 * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
9392 * doc/gimple.texi (is_gimple_omp): Move into the correct section.
9394 * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
9395 * configure: Regenerate.
9397 2013-10-11 Jakub Jelinek <jakub@redhat.com>
9399 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
9400 and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
9401 formatting fixes, use pp_colon instead of pp_character (..., ':'),
9402 similarly pp_right_paren.
9403 (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
9404 OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
9405 allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
9406 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
9408 (omp_declare_simd_clauses_equal,
9409 omp_remove_redundant_declare_simd_attrs): New functions.
9410 (attribute_value_equal): Use omp_declare_simd_clauses_equal.
9411 (walk_tree_1): Handle new OpenMP 4.0 clauses.
9412 * tree.h (OMP_LOOP_CHECK): Define.
9413 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
9414 OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
9415 (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
9416 OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
9417 OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
9418 OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
9419 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
9420 OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
9421 OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
9422 OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
9423 OMP_CLAUSE_SIMDLEN_EXPR): Define.
9424 (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
9425 (omp_remove_redundant_declare_simd_attrs): New prototype.
9426 * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
9427 GIMPLE_OMP_TEAMS): New codes.
9428 (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
9429 * omp-low.c (struct omp_context): Add cancel_label and cancellable
9431 (target_nesting_level): New variable.
9432 (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
9433 OMP_CLAUSE_DIST_SCHEDULE. Don't fallback to library implementation
9434 for collapse > 1 static schedule unless ordered.
9435 (get_ws_args_for): Add par_stmt argument. Handle combined loops.
9436 (determine_parallel_type): Adjust get_ws_args_for caller.
9437 (install_var_field): Handle mask & 4 for double indirection.
9438 (scan_sharing_clauses): Ignore shared clause on teams construct.
9439 Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
9440 (create_omp_child_function): If inside target or declare target
9441 constructs, set "omp declare target" attribute on the child function.
9442 (find_combined_for): New function.
9443 (scan_omp_parallel): Handle combined loops.
9444 (scan_omp_target, scan_omp_teams): New functions.
9445 (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
9446 restrictions and set ctx->cancellable for cancellable constructs.
9447 (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
9448 selected builtin calls. Handle GIMPLE_OMP_TASKGROUP,
9449 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
9450 (build_omp_barrier): Add lhs argument, return gimple rather than tree.
9451 (omp_clause_aligned_alignment): New function.
9452 (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
9453 (lower_rec_input_clauses): Add FD argument. Ignore shared clauses
9454 on teams constructs. Handle user defined reductions and new
9456 (lower_reduction_clauses): Don't set placeholder to address of ref
9457 if it has already the right type.
9458 (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
9459 (expand_parallel_call): Use the new non-_start suffixed builtins,
9460 handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
9461 and GOMP_parallel_end after the call.
9462 (expand_task_call): Handle OMP_CLAUSE_DEPEND.
9463 (expand_omp_for_init_counts): Handle combined loops.
9464 (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
9466 (expand_omp_for_generic): Likewise. Use GOMP_loop_end_cancel at the
9467 end of cancellable loops.
9468 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
9469 Likewise. Handle collapse > 1 loops.
9470 (expand_omp_simd): Handle combined loops.
9471 (expand_omp_for): Add inner_stmt argument, adjust callers of
9472 expand_omp_for* functions, use expand_omp_for_static*chunk even
9473 for collapse > 1 unless ordered.
9474 (expand_omp_sections): Use GOMP_sections_end_cancel at the end
9475 of cancellable sections.
9476 (expand_omp_single): Remove need_barrier variable, just rely on
9477 gimple_omp_return_nowait_p. Adjust build_omp_barrier caller.
9478 (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
9479 (expand_omp_atomic_load, expand_omp_atomic_store,
9480 expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
9481 (expand_omp_target): New function.
9482 (expand_omp): Handle combined loops. Handle GIMPLE_OMP_TASKGROUP,
9483 GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
9484 (build_omp_regions_1): Immediately close region for
9485 GF_OMP_TARGET_KIND_UPDATE.
9486 (maybe_add_implicit_barrier_cancel): New function.
9487 (lower_omp_sections): Adjust lower_rec_input_clauses caller. Handle
9489 (lower_omp_single): Likewise. Add clobber after the barrier.
9490 (lower_omp_taskgroup): New function.
9491 (lower_omp_for): Handle combined loops. Adjust
9492 lower_rec_input_clauses caller. Handle cancellation.
9493 (lower_depend_clauses): New function.
9494 (lower_omp_taskreg): Lower depend clauses. Adjust
9495 lower_rec_input_clauses caller. Add clobber after the call. Handle
9497 (lower_omp_target, lower_omp_teams): New functions.
9498 (lower_omp_1): Handle cancellation. Handle GIMPLE_OMP_TASKGROUP,
9499 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
9500 and GOMP_cancellation_point calls.
9501 (lower_omp): Fold stmts inside of target region.
9502 (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
9503 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
9504 * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
9505 (BT_FN_VOID_OMPFN_PTR_UINT,
9506 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
9507 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
9508 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
9509 (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
9510 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
9511 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
9512 BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
9513 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
9514 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
9515 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
9516 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
9517 call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
9518 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
9519 BUILT_IN_GOMP_SECTIONS_END_CANCEL. Don't handle
9520 BUILT_IN_GOMP_PARALLEL_END.
9521 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
9522 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
9523 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
9524 GF_OMP_FOR_KIND_DISTRIBUTE.
9525 (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
9526 (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
9527 (dump_gimple_omp_return): Print lhs if it has any.
9528 (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
9529 gimple_omp_atomic_seq_cst_p.
9530 (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
9531 and GIMPLE_OMP_TEAMS.
9532 * langhooks.c (lhd_omp_mappable_type): New function.
9533 * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
9534 * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
9536 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
9537 GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
9538 (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
9539 (struct gimplify_omp_ctx): Add combined_loop field.
9540 (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
9541 on stmts inside of target region.
9542 (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
9543 (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
9544 ORT_TARGET and ORT_TARGET_DATA.
9545 (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
9547 (omp_notice_threadprivate_variable): Complain about threadprivate
9548 variables in target region.
9549 (omp_notice_variable): Complain about vars with non-mappable type
9550 in target region. Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
9551 (omp_check_private): Ignore ORT_TARGET* regions.
9552 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
9553 gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
9554 (find_combined_omp_for): New function.
9555 (gimplify_omp_for): Handle gimplification of combined loops.
9556 (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
9558 (gimplify_omp_target_update): New function.
9559 (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
9560 (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
9561 OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
9562 (gimplify_body): If fndecl has "omp declare target" attribute, add
9563 implicit ORT_TARGET context around it.
9564 * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
9565 OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
9566 * tree-nested.c (convert_nonlocal_reference_stmt,
9567 convert_local_reference_stmt, convert_gimple_call): Handle
9568 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
9569 * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
9570 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
9571 instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
9572 (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
9573 BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
9574 BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
9575 BUILT_IN_GOMP_LOOP_END_CANCEL,
9576 BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
9577 BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
9578 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
9579 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
9580 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
9581 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
9582 BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
9583 BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
9584 (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
9585 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
9586 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
9587 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
9588 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
9589 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
9590 * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
9591 Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
9592 * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
9593 gimple_build_omp_teams): New functions.
9594 (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
9595 GIMPLE_OMP_TASKGROUP. Walk optional lhs on GIMPLE_OMP_RETURN.
9596 (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
9597 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
9598 * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
9599 GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
9600 GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
9601 GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
9602 GF_OMP_ATOMIC_SEQ_CST): New.
9603 (gimple_build_omp_taskgroup, gimple_build_omp_target,
9604 gimple_build_omp_teams): New prototypes.
9605 (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
9606 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
9607 (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
9608 GIMPLE_OMP_SINGLE as end of range.
9609 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
9610 gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
9611 gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
9612 gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
9613 gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
9614 gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
9615 gimple_omp_target_kind, gimple_omp_target_set_kind,
9616 gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
9617 gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
9618 gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
9619 gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
9620 gimple_omp_teams_set_clauses): New inlines.
9621 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
9622 and GIMPLE_OMP_TASKGROUP.
9623 * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
9624 (enum omp_clause_depend_kind, enum omp_clause_map_kind,
9625 enum omp_clause_proc_bind_kind): New.
9626 (union omp_clause_subcode): Add depend_kind, map_kind and
9627 proc_bind_kind fields.
9628 * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
9629 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
9630 * langhooks-def.h (lhd_omp_mappable_type): New prototype.
9631 (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
9632 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
9634 2013-10-10 Teresa Johnson <tejohnson@google.com>
9636 * predict.c (tree_estimate_probability): Add new parameter
9637 for estimate_bb_frequencies.
9638 (estimate_bb_frequencies): Add new parameter to force estimation.
9639 (rebuild_frequencies): When max frequency in function is small,
9640 recompute counts from frequencies.
9641 * predict.h (estimate_bb_frequencies): New parameter.
9643 2013-10-10 David Malcolm <dmalcolm@redhat.com>
9645 * ipa-inline.c (ipa_inline): Fix leak of "order" when
9646 optimizations are disabled.
9648 2013-10-10 David Malcolm <dmalcolm@redhat.com>
9650 * coverage.c (coverage_finish): Fix leak of da_file_name.
9652 2013-10-10 Jan Hubicka <jh@suse.cz>
9654 * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
9655 for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
9658 2013-10-10 Jakub Jelinek <jakub@redhat.com>
9661 * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
9662 if any labels are in FALLTHRU_BB, use a special label emitted
9663 immediately after the asm goto insn rather than label_rtx
9665 (expand_asm_stmt): Adjust caller.
9666 * cfgrtl.c (commit_one_edge_insertion): Force splitting of
9667 edge if the last insn in predecessor is a jump with single successor,
9668 but it isn't simplejump_p.
9670 2013-10-10 Richard Biener <rguenther@suse.de>
9672 PR tree-optimization/58656
9673 * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
9675 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
9677 * gimplify.c: Include expr.h and tm_p.h for targets with special
9678 va-arg padding requirements.
9680 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
9682 * tree-flow.h: Move some prototypes to gimple.h.
9683 (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
9684 * gimple.h: Relocate some prototypes from tree-flow.h
9685 * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
9687 * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
9688 (build_va_arg_indirect_ref): Relocate and make static.
9689 (std_gimplify_va_arg_expr): Relocate here.
9690 * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
9691 * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
9693 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9695 * doc/md.texi: Document the mnemonic attribute.
9697 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9700 * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
9701 (set_attr_alternative x ...) when searching for user defined
9704 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
9706 * config/aplha/alpha.c: Add gimple-ssa.h to include list.
9708 2013-10-09 Easwaran Raman <eraman@google.com>
9710 * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
9711 * cfgexpand.c (defer_stack_allocation): ...use here
9712 * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
9714 2013-10-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
9716 * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
9717 (operand_equal_for_value_replacement): New function, extracted from
9718 value_replacement and enhanced to catch more cases.
9719 (value_replacement): Use operand_equal_for_value_replacement.
9721 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
9723 * loop-doloop.c (doloop_modify, doloop_optimize): Use
9724 get_max_loop_iterations.
9726 2013-10-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9728 * config/arm/aarch-common.c (arm_early_load_addr_dep):
9729 Place comment above function.
9731 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
9733 * tree-flow.h: Remove all remaining prototypes, enums and structs that
9734 are not related to tree-cfg.c.
9735 * tree-ssa-address.h: New file. Relocate prototypes.
9736 * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
9737 (addr_for_mem_ref): New. Combine call to get_address_description and
9738 return addr_for_mem_ref.
9739 * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
9740 * tree-ssa-live.h: Adjust prototypes.
9741 * passes.c: Include tree-ssa-live.h.
9742 * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
9743 * graphite.c (graphite_transform_loops): Make static.
9744 (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
9745 make_pass_graphite, pass_data_graphite_transforms,
9746 make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
9747 * ipa-pure-const.c (warn_function_noreturn): Make static.
9748 (execute_warn_function_noreturn, gate_warn_function_noreturn,
9749 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
9750 Relocate from tree-cfg.c
9751 * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
9753 (execute_warn_function_noreturn, gate_warn_function_noreturn,
9754 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
9755 Move to ipa-pure-const.c.
9756 (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
9757 Relocate from tree-optimize.c.
9758 * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
9759 make_pass_fixup_cfg): Move to tree-cfg.c.
9760 * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
9761 Relocate some prototypes.
9762 * tree-data-ref.h (tree_check_data_deps) Add prototype.
9763 * tree-dump.c (dump_function_to_file): Remove prototype.
9764 Add tree-flow.h to the include file.
9765 * tree-dump.h: Remove prototype.
9766 * tree-parloops.h: New File. Add prototypes.
9767 * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
9768 pass_data_parallelize_loops, make_pass_parallelize_loops): Relocate
9769 from tree-ssa-loop.c.
9770 * tree-predcom.c (run_tree_predictive_commoning,
9771 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
9772 Relocate here from tree-ssa-loop.c.
9773 * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
9774 ssa_name_values.release ().
9775 * tree-ssa-threadedge.h: New File. Relocate prototypes here.
9776 (ssa_name_values): Relocate from tree-flow.h.
9777 * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
9778 * tree-ssa-loop.c (run_tree_predictive_commoning,
9779 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
9780 graphite_transforms, gate_graphite_transforms, pass_data_graphite,
9781 make_pass_graphite, pass_data_graphite_transforms,
9782 make_pass_graphite_transforms, gate_tree_parallelize_loops,
9783 tree_parallelize_loops, pass_data_parallelize_loops,
9784 make_pass_parallelize_loops): Move to other files.
9785 * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
9787 * tree.h: Remove prototypes from tree-address.c.
9789 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
9791 * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
9792 (struct int_tree_map): Move to tree-hasher.h
9793 (SCALE, LABEL, PERCENT): Move to gimple.h
9794 * tree-flow-inline.h: Delete. Move functions to other files.
9795 (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
9796 * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
9797 (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
9798 * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
9799 inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
9800 (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
9801 * tree-hasher.h: Don't include tree-flow.h.
9802 (struct int_tree_map): Relocate from tree-flow.h.
9803 * tree-sra.c (contains_view_convert_expr_p): Relocate from
9804 tree-flow-inline.h and make static.
9805 * tree-ssa-alias.h (ranges_overlap_p): Relocate from
9807 * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
9808 tree-flow-inline.h and make static.
9809 * tree.h (is_global_var, may_be_aliased): Relocate from
9811 * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
9812 * value-prof.c: No longer include tree-flow-inline.h.
9813 * tree-switch-conversion.c: No longer include tree-flow-inline.h.
9815 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
9817 * tree-flow.h: Move some protoypes. Include new tree-ssa-loop.h.
9818 (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
9819 (enum move_pos): Move to tree-ssa-loop-im.h
9820 * cfgloop.h: Move some prototypes.
9821 (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
9822 * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
9823 * tree-ssa-loop.h: New File. Include other tree-ssa-loop-*.h files.
9824 (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
9825 (loop_containing_stmt): Relocate from tree-flow-inline.h.
9826 * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
9827 * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
9828 (enum move_pos): Relocate here.
9829 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
9831 (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
9832 (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
9833 make_pass_lim): Relocate here from tree-ssa-loop.c.
9834 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
9836 (loop_edge_to_cancel, unloop_loops): Make static.
9837 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
9838 make_pass_iv_canon): Relocate from tree-ssa-loop.c.
9839 (tree_complete_unroll, gate_tree_complete_unroll,
9840 pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
9841 (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
9842 pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
9843 * tree-ssa-loop-ivopts.c: Remove local prototypes.
9844 (stmt_invariant_in_loop_p): Remove unused function.
9845 * tree-ssa-loop-ivopts.h: New file. Add prototypes.
9846 * tree-ssa-loop-manip.h: New file. Add prototypes.
9847 * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
9848 (gcov_type_to_double_int): Move to cfgloop.h.
9849 (double_int_cmp, bound_index,
9850 estimate_numbers_of_iterations_loop): Make static.
9851 (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
9852 (max_loop_iterations): Factor out get_max_loop_iterations.
9853 (estimated_loop_iterations_int, max_stmt_executions_int): Move to
9855 * tree-ssa-loop-niter.h: New file. Add prototypes.
9856 * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
9857 gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
9858 make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
9859 * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
9860 gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
9861 make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
9862 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
9863 pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
9864 (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
9865 pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
9866 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
9867 make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
9868 pass_data_complete_unroll, make_pass_complete_unroll,
9869 tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
9870 pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
9871 tree-ssa-loop-ivcanon.c.
9872 (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
9873 pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
9874 tree-ssa-loop-prefetch.c.
9875 (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
9877 (get_lsm_tmp_name): Relocate and add suffix parameter.
9878 (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
9879 * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
9880 * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
9881 max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
9882 (get_estimated_loop_iterations): Factor out accessor from
9883 estimated_loop_iterations in tree-ssa-loop-niter.c.
9884 (get_max_loop_iterations): Factor out accessor from
9885 _max_loop_iterations in tree-ssa-niter.c.
9886 * loop-unroll.c (decide_unroll_constant_iterations,
9887 decide_unroll_runtime_iterations, decide_peel_simple,
9888 decide_unroll_stupid): Use new get_* accessors.
9890 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
9892 PR tree-optimization/20318
9893 * doc/extend.texi (returns_nonnull): New function attribute.
9894 * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
9896 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
9897 (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
9899 2013-10-09 Eric Botcazou <ebotcazou@adacore.com>
9902 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
9903 false if both components are bitfields.
9905 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
9907 * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
9908 (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
9909 (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
9910 * config/aarch64/aarch64.h
9911 (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
9912 * config/aarch64/aarch64-simd-builtins.def
9913 (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
9915 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
9917 * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
9919 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
9921 * config/aarch64/arm_neon.h (vdiv_f64): Added.
9923 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
9925 * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
9926 (vneg_f64): New intrinsic.
9927 (vneg_s8): Asm replaced with C.
9928 (vneg_s16): Likewise.
9929 (vneg_s32): Likewise.
9930 (vneg_s64): New intrinsic.
9931 (vnegq_f32): Asm replaced with C.
9932 (vnegq_f64): Likewise.
9933 (vnegq_s8): Likewise.
9934 (vnegq_s16): Likewise.
9935 (vnegq_s32): Likewise.
9936 (vnegq_s64): Likewise.
9938 2013-10-09 Renlin Li <Renlin.Li@arm.com>
9940 * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
9942 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9944 * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
9945 packed stack special handling.
9946 (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
9947 back to fixed stack slots for FPRs saved due to stdarg.
9949 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9951 * config/s390/s390.c (s390_frame_info): Restructure function.
9953 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9955 * config/s390/s390.c (struct s390_frame_layout): New field
9957 (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
9958 (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
9959 regs_ever_clobbered to char*.
9960 (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
9961 of cfun->has_nonlocal_label. Ignore frame related restore INSNs.
9962 (s390_register_info): Enable FPR save slots. Move/Copy some
9963 functionality into ...
9964 (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
9965 (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
9967 (s390_frame_info): Do gpr slot allocation here now. stdarg does
9968 not imply a stack frame.
9969 (s390_init_frame_layout): Remove variable clobbered_regs.
9970 (s390_update_register_info): Remove function.
9971 (s390_hard_regno_rename_ok): Call-saved regs without a save slot
9972 cannot be used for register renaming.
9973 (s390_hard_regno_scratch_ok): New function.
9974 (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
9975 (s390_initial_elimination_offset): Change offset calculation of
9976 the return address pointer.
9977 (save_gprs): Deal with only r6 being saved from the call-saved regs.
9978 (restore_gprs): Set frame related flag.
9979 (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
9980 (s390_emit_prologue): Call s390_register_info instead of
9981 s390_update_frame_layout. Call s390_save_gprs_to_fprs.
9982 (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
9983 (s390_optimize_prologue): Call s390_optimize_register_info.
9984 Try to remove also FPR slot save/restore INSNs. Remove frame
9985 related flags from restore INSNs.
9987 2013-10-08 DJ Delorie <dj@redhat.com>
9989 * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
9992 * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
9993 avoid conflict with the MI use of %c.
9994 * config/rl78/rl78-real.md: change %c to %C throughout.
9995 * config/rl78/rl78-virt.md: Likewise.
9997 2013-10-08 Jan Hubicka <jh@suse.cz>
9999 * config/i386/i386.c (ix86_option_override_internal): Switch
10000 to SSE math for -ffast-math when target ISA supports SSE2.
10002 2013-10-08 Andrew MacLeod <amacleod@redhat.com>
10004 * tree-flow.h: Remove some prototypes.
10005 * tree.h: Remove some protypes, add a couple.
10006 * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
10007 using_eh_for_cleanups_p): Add interface routines for front ends.
10008 * tree-eh.h: New file. Add protoptyes.
10009 * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
10010 (add_stmt_to_eh_lp_fn): Make static.
10011 (lower_try_finally): Use new using_eh_for_cleanups_p.
10012 * emit-rtl.c: Include tree-eh.h.
10013 * gimple.h: Include tree-eh.h.
10015 2013-10-08 Marc Glisse <marc.glisse@inria.fr>
10017 PR tree-optimization/58480
10018 * tree-vrp.c (infer_nonnull_range): New function.
10019 (infer_value_range): Call infer_nonnull_range.
10021 2013-10-08 Dehao Chen <dehao@google.com>
10023 PR tree-optimization/58619
10024 * tree-inline.c (copy_phis_for_bb): Combine location data
10027 2013-10-08 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10030 * config/arm/arm.c (arm_emit_ldrd_pop): Attach
10031 RTX_FRAME_RELATED_P on INSN.
10033 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10035 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
10036 (altivec_expand_vec_perm_const): Call it.
10038 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10040 * config/rs6000/vector.md (mov<mode>): Emit permuted move
10041 sequences for LE VSX loads and stores at expand time.
10042 * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
10044 * config/rs6000/rs6000.c (rs6000_const_vec): New.
10045 (rs6000_gen_le_vsx_permute): New.
10046 (rs6000_gen_le_vsx_load): New.
10047 (rs6000_gen_le_vsx_store): New.
10048 (rs6000_gen_le_vsx_move): New.
10049 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
10050 (*vsx_le_perm_load_v4si): New.
10051 (*vsx_le_perm_load_v8hi): New.
10052 (*vsx_le_perm_load_v16qi): New.
10053 (*vsx_le_perm_store_v2di): New.
10054 (*vsx_le_perm_store_v4si): New.
10055 (*vsx_le_perm_store_v8hi): New.
10056 (*vsx_le_perm_store_v16qi): New.
10057 (*vsx_xxpermdi2_le_<mode>): New.
10058 (*vsx_xxpermdi4_le_<mode>): New.
10059 (*vsx_xxpermdi8_le_V8HI): New.
10060 (*vsx_xxpermdi16_le_V16QI): New.
10061 (*vsx_lxvd2x2_le_<mode>): New.
10062 (*vsx_lxvd2x4_le_<mode>): New.
10063 (*vsx_lxvd2x8_le_V8HI): New.
10064 (*vsx_lxvd2x16_le_V16QI): New.
10065 (*vsx_stxvd2x2_le_<mode>): New.
10066 (*vsx_stxvd2x4_le_<mode>): New.
10067 (*vsx_stxvd2x8_le_V8HI): New.
10068 (*vsx_stxvd2x16_le_V16QI): New.
10070 2013-10-07 Renlin Li <Renlin.Li@arm.com>
10072 * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
10074 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10076 * config/s390/s390.c (s390_register_info): Make the call-saved FPR
10077 loop to work also for 31bit ABI.
10078 Save the stack pointer for frame_size > 0.
10080 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10082 * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
10083 ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
10084 constraint letters from expanders.
10085 ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
10086 retry count to general_operand.
10087 ("tabort"): Give operand 0 a mode.
10088 ("tabort_1"): Add mode and constraint letter for operand 0.
10089 * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
10091 2013-10-04 Jeff Law <law@redhat.com>
10093 * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
10095 * tree-ssa-threadedge.c (thread_through_normal_block): Broken
10097 (thread_across_edge): Here. Call it.
10099 2013-10-04 Cary Coutant <ccoutant@google.com>
10101 * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
10102 discarding a location list expression (or a piece of one).
10104 2013-10-03 Jan Hubicka <jh@suse.cz>
10106 * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
10107 rate of 2. Core2, Corei7 and Haswell has issue rate of 4.
10108 (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
10110 2013-10-03 Jan Hubicka <jh@suse.cz>
10112 * config/i386/i386.c (ix86_option_override_internal): Do not enable
10113 accumulate-outgoing-args when producing unwind info.
10115 2013-10-03 Wei Mi <wmi@google.com>
10117 * lra-constraints.c (insert_move_for_subreg): New function
10118 extracted from simplify_operand_subreg.
10119 (simplify_operand_subreg): Add reload for paradoxical subreg.
10121 2013-10-03 Rong Xu <xur@google.com>
10123 * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
10124 the candidate of builtin_expect such that we should fix the
10125 size/time estimation.
10126 (estimate_function_body_sizes): Do the acutally size/time fix-up
10127 for builtin_expect.
10129 2013-10-03 Rong Xu <xur@google.com>
10131 * predict.c (tree_predict_by_opcode): Get the probability
10132 for builtin_expect from param builtin_expect_probability.
10133 * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
10134 * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
10135 * doc/invoke.texi: Add documentation for builtin-expect-probability.
10137 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
10140 * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
10141 * calls.c (alloca_call_p): Use get_callee_fndecl.
10142 * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
10143 * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
10145 (vrp_visit_stmt): Remove duplicated code.
10147 2013-10-03 Michael Meissner <meissner@linux.vnet.ibm.com>
10149 * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
10150 ceildf2, btruncdf2, instead of vsx_* name.
10152 * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
10153 iterators to only do V2DF and V4SF here. Move the DF code to
10154 rs6000.md where it is combined with SF mode. Replace <VSv> with
10155 just 'v' since only vector operations are handled with these insns
10156 after moving the DF support to rs6000.md.
10157 (vsx_sub<mode>3): Likewise.
10158 (vsx_mul<mode>3): Likewise.
10159 (vsx_div<mode>3): Likewise.
10160 (vsx_fre<mode>2): Likewise.
10161 (vsx_neg<mode>2): Likewise.
10162 (vsx_abs<mode>2): Likewise.
10163 (vsx_nabs<mode>2): Likewise.
10164 (vsx_smax<mode>3): Likewise.
10165 (vsx_smin<mode>3): Likewise.
10166 (vsx_sqrt<mode>2): Likewise.
10167 (vsx_rsqrte<mode>2): Likewise.
10168 (vsx_fms<mode>4): Likewise.
10169 (vsx_nfma<mode>4): Likewise.
10170 (vsx_copysign<mode>3): Likewise.
10171 (vsx_btrunc<mode>2): Likewise.
10172 (vsx_floor<mode>2): Likewise.
10173 (vsx_ceil<mode>2): Likewise.
10174 (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
10175 (vsx_sminsf3): Likewise.
10176 (vsx_fmadf4): Likewise.
10177 (vsx_fmsdf4): Likewise.
10178 (vsx_nfmadf4): Likewise.
10179 (vsx_nfmsdf4): Likewise.
10180 (vsx_cmpdf_internal1): Likewise.
10182 * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
10183 simpler to select whether a target has SPE or traditional floating
10184 point support in iterators.
10185 (TARGET_DF_SPE): Likewise.
10186 (TARGET_SF_FPR): Likewise.
10187 (TARGET_DF_FPR): Likewise.
10188 (TARGET_SF_INSN): Macros to say whether floating point support
10189 exists for a given operation for expanders.
10190 (TARGET_DF_INSN): Likewise.
10192 * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
10193 combining of SF/DF mode operations, using both traditional and VSX
10201 (abs<mode>2): Combine SF/DF modes using traditional floating point
10202 instructions. Add support for using the upper DF registers with
10203 VSX support, and SF registers with power8-vector support. Update
10204 expanders for operations supported by both the SPE and traditional
10205 floating point units.
10206 (abs<mode>2_fpr): Likewise.
10207 (nabs<mode>2): Likewise.
10208 (nabs<mode>2_fpr): Likewise.
10209 (neg<mode>2): Likewise.
10210 (neg<mode>2_fpr): Likewise.
10211 (add<mode>3): Likewise.
10212 (add<mode>3_fpr): Likewise.
10213 (sub<mode>3): Likewise.
10214 (sub<mode>3_fpr): Likewise.
10215 (mul<mode>3): Likewise.
10216 (mul<mode>3_fpr): Likewise.
10217 (div<mode>3): Likewise.
10218 (div<mode>3_fpr): Likewise.
10219 (sqrt<mode>3): Likewise.
10220 (sqrt<mode>3_fpr): Likewise.
10221 (fre<Fs>): Likewise.
10222 (rsqrt<mode>2): Likewise.
10223 (cmp<mode>_fpr): Likewise.
10224 (smax<mode>3): Likewise.
10225 (smin<mode>3): Likewise.
10226 (smax<mode>3_vsx): Likewise.
10227 (smin<mode>3_vsx): Likewise.
10228 (negsf2): Delete SF operations that are merged with DF.
10229 (abssf2): Likewise.
10230 (addsf3): Likewise.
10231 (subsf3): Likewise.
10232 (mulsf3): Likewise.
10233 (divsf3): Likewise.
10235 (fmasf4_fpr): Likewise.
10236 (fmssf4_fpr): Likewise.
10237 (nfmasf4_fpr): Likewise.
10238 (nfmssf4_fpr): Likewise.
10239 (sqrtsf2): Likewise.
10240 (rsqrtsf_internal1): Likewise.
10241 (smaxsf3): Likewise.
10242 (sminsf3): Likewise.
10243 (cmpsf_internal1): Likewise.
10244 (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
10245 (negdf2): Delete DF operations that are merged with SF.
10246 (absdf2): Likewise.
10247 (nabsdf2): Likewise.
10248 (adddf3): Likewise.
10249 (subdf3): Likewise.
10250 (muldf3): Likewise.
10251 (divdf3): Likewise.
10253 (rsqrtdf_internal1): Likewise.
10254 (fmadf4_fpr): Likewise.
10255 (fmsdf4_fpr): Likewise.
10256 (nfmadf4_fpr): Likewise.
10257 (nfmsdf4_fpr): Likewise.
10258 (sqrtdf2): Likewise.
10259 (smaxdf3): Likewise.
10260 (smindf3): Likewise.
10261 (cmpdf_internal1): Likewise.
10262 (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
10263 (btrunc<mode>2): Delete separate expander, and combine with the
10264 insn and add VSX instruction support. Use TARGET_<MODE>_FPR.
10265 (btrunc<mode>2_fpr): Likewise.
10266 (ceil<mode>2): Likewise.
10267 (ceil<mode>2_fpr): Likewise.
10268 (floor<mode>2): Likewise.
10269 (floor<mode>2_fpr): Likewise.
10270 (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
10271 Add support for using the upper registers with VSX and
10272 power8-vector. Move insns to be closer to the define_expands. On
10273 VSX systems, prefer the traditional form of FMA over the VSX
10274 version, since the traditional form allows the target not to
10275 overlap with the inputs.
10276 (fms<mode>4_fpr): Likewise.
10277 (nfma<mode>4_fpr): Likewise.
10278 (nfms<mode>4_fpr): Likewise.
10280 2013-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10281 Richard Earnshaw <richard.earnshaw@arm.com>
10283 * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
10284 (struct mult_cost_table): Likewise.
10285 (struct mem_cost_table): Likewise.
10286 (struct fp_cost_table): Likewise.
10287 (struct vector_cost_table): Likewise.
10288 (cpu_cost_table): Likewise.
10289 * config/arm/arm.opt (mold-rts-costs): New option.
10290 (mnew-generic-costs): Likewise.
10291 * config/arm/arm.c (generic_extra_costs): New table.
10292 (cortexa15_extra_costs): Likewise.
10293 (arm_slowmul_tune): Use NULL as new costs.
10294 (arm_fastmul_tune): Likewise.
10295 (arm_strongarm_tune): Likewise.
10296 (arm_xscale_tune): Likewise.
10297 (arm_9e_tune): Likewise.
10298 (arm_v6t2_tune): Likewise.
10299 (arm_cortex_a5_tune): Likewise.
10300 (arm_cortex_a9_tune): Likewise.
10301 (arm_v6m_tune): Likewise.
10302 (arm_fa726te_tune): Likewise.
10303 (arm_cortex_a15_tune): Use cortex15_extra_costs.
10304 (arm_cortex_tune): Use generict_extra_costs.
10305 (shifter_op_p): New function.
10306 (arm_unspec_cost): Likewise.
10307 (LIBCALL_COST): Define.
10308 (arm_new_rtx_costs): New function.
10309 (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
10310 table is available. Use old costs otherwise unless mnew-generic-costs
10312 * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
10313 (cpu_cost_table): Declare.
10315 2013-10-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
10318 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
10319 (*subs_mul_imm_<mode>)
10320 (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
10321 (*sub_<shift>_<mode>)
10322 (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
10323 Remove k constraint.
10325 2013-10-03 Ian Bolton <ian.bolton@arm.com>
10327 * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
10329 * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
10331 2013-10-02 Teresa Johnson <tejohnson@google.com>
10333 * predict.c (probably_never_executed): New function.
10334 (probably_never_executed_bb_p): Invoke probably_never_executed.
10335 (probably_never_executed_edge_p): Ditto.
10336 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
10337 Treat profile insanities conservatively.
10339 2013-10-02 John David Anglin <danglin@gcc.gnu.org>
10341 * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
10343 2013-10-02 Vladimir Makarov <vmakarov@redhat.com>
10345 * lra-constraints.c (process_alt_operand): Calculate scratch_p and
10346 use it. Use smaller increase for scratch. Don't increase reject
10347 for early clobber scratch.
10348 * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
10349 setting eliminated regs except setting fp from hfp.
10350 (lra_eliminate): Check lra_insn_recog_data on NULL.
10352 2013-10-02 Michael Meissner <meissner@linux.vnet.ibm.com>
10355 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
10356 setting -mvsx-timode by default until the underlying problem is fixed.
10357 (RS6000_CPU, power7 defaults): Likewise.
10359 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
10361 * config/x-linux (host-linux.o): Remove header dependencies.
10362 Use $(COMPILE) and $(POSTCOMPILE).
10363 * config/t-linux-android (linux-android.o): Ditto.
10365 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
10367 * Makefile.in (expmed.o-warn): Remove.
10369 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
10371 * graphite-scop-detection.c: Include tree-ssa-propagate,h.
10372 * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
10374 2013-10-02 Teresa Johnson <tejohnson@google.com>
10376 * dojump.c (do_jump_1): Divide probability between
10377 both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
10379 2013-10-02 Tom Tromey <tromey@redhat.com>
10381 * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
10383 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
10385 * tree-flow.h: Remove some prototypes.
10386 * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
10387 mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
10388 * tree-into-ssa.c (mark_virtual_operand_for_renaming,
10389 mark_virtual_phi_result_for_renaming): Relocate here.
10390 * tree-into-ssa.h: Add prototypes.
10391 * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
10392 single_pred_before_succ_order.
10393 (blocks_in_phiopt_order): Rename and move to cfganal.c.
10394 (nonfreeing_call_p) Move to gimple.c.
10395 * cfganal.c (single_pred_before_succ_order): Move and renamed from
10397 * basic-block.h (single_pred_before_succ_order): Add prototype.
10398 * gimple.c (nonfreeing_call_p): Relocate here.
10399 * gimple.h: Add prototype.
10400 * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
10401 * tree-ssa-dom.h: New file. Relocate prototypes here.
10402 * tree-ssa.h: Include tree-ssa-dom.h.
10404 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
10406 * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
10407 Use $(COMPILE) and $(POSTCOMPILE).
10409 * config/alpha/x-alpha (driver-alpha.o): Ditto.
10411 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
10413 * tree-flow.h: Remove some prototypes.
10414 * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
10415 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
10416 * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
10417 propagate_tree_value*): Move from here to...
10418 * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
10419 propagate_tree_value*): Relocate here.
10420 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
10421 * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
10422 * gimple-fold.c: Remove gimple-fold.h from include list.
10423 * tree-vrp.c: Remove gimple-fold.h from include list.
10424 * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
10425 * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
10426 * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
10427 * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
10428 * sese.c: Add tree-ssa-propagate.h to include list.
10430 2013-10-02 Richard Biener <rguenther@suse.de>
10432 * tree-loop-distribution.c: Include tree-vectorizer.h for
10433 find_loop_location.
10434 (enum partition_kind): Remove PKIND_REDUCTION.
10435 (struct partition_s): Remove has_writes member, add reduction_p member.
10436 (partition_alloc): Adjust.
10437 (partition_builtin_p): Likewise.
10438 (partition_has_writes): Remove.
10439 (partition_reduction_p): New function.
10440 (partition_merge_into): Likewise.
10441 (generate_code_for_partition): Commonize builtin partition
10443 (rdg_cannot_recompute_vertex_p): Remove.
10444 (already_processed_vertex_p): Likewise.
10445 (rdg_flag_vertex): Do not set has_writes.
10446 (classify_partition): Adjust.
10447 (rdg_build_partitions): Do not set has_writes, treat all
10448 partitions as useful.
10449 (distribute_loop): Record number of library calls generated. Adjust.
10450 (tree_loop_distribution): Report number of loops and library
10451 calls generated as opt-info.
10453 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
10455 * tree-flow.h: Include new .h files. Move prototypes.
10456 * tree-cfgcleanup.h: New file. Add prototypes from tree-flow.h.
10457 * tree-dfa.h: New File. Add prototypes from tree-flow.h.
10458 (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
10459 * tree-pretty-print.h: Add prototypes from tree-flow.h.
10460 * tree-into-ssa.h: New File. Add prototypes from tree-flow.h.
10461 ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
10462 * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
10463 * tree.h (get_ref_base_and_extent): Move prototype out.
10464 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
10466 * gimple-low.h: New File. Add prototypes from tree-flow.h.
10467 * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
10468 * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
10469 * tree-scalar-evolution.c: Include tree.h.
10470 * sese.c: Include tree.h.
10471 * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
10472 * dwarf2out.c: Include tree-dfa.h.
10473 * tree-chrec.c: Include tree.h.
10474 * tree-data-ref.c: Include tree.h.
10476 2013-10-02 Yufeng Zhang <yufeng.zhang@arm.com>
10478 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
10481 2013-10-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10483 * config/t-sol2 (sol2-c.o): Remove header dependencies.
10484 Use $(COMPILE) and $(POSTCOMPILE).
10485 (sol2-cxx.o): Likewise.
10486 (sol2-stubs.o): Likewise.
10487 (sol2.o): Likewise.
10488 * config/x-solaris (host-solaris.o): Likewise.
10490 * config/sparc/t-sparc (sparc.o): Remove.
10491 (sparc-c.o): Remove header dependencies.
10492 Use $(COMPILE) and $(POSTCOMPILE).
10493 * config/sparc/x-sparc: Likewise.
10495 2013-10-02 Joern Rennecke <joern.rennecke@embecosm.com>
10497 * config/arc/arc-opts.h: Add 2013 to Copyright years.
10498 * config/arc/arc700.md: Likewise.
10499 * config/arc/arc-modes.def: Likewise.
10500 * config/arc/arc-simd.h: Likewise.
10501 * config/arc/t-arc-uClibc: Likewise.
10502 * config/arc/t-arc-newlib: Likewise.
10504 2013-10-02 Renlin Li <renlin.li@arm.com>
10506 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
10508 (aarch64_expand_epilogue): Likewise.
10510 2013-10-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10511 Yufeng Zhang <yufeng.zhang@arm.com>
10513 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
10515 (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
10516 'base_in' represent a conversion and legal_cast_p_1 holds; set
10517 'base_in' with the returned value from get_unwidened.
10519 2013-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10521 * config/arm/arm.c (arm_legitimize_reload_address): Explain why
10522 plus_constant is not used.
10524 2013-10-01 Wei Mi <wmi@google.com>
10526 * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
10527 * config/i386/i386.md: Add define_peephole2 to
10528 break partial reg stall for cvtss2sd/cvtsd2ss.
10530 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
10532 * config/arc/arc.c (pass_arc_ifcvt::clone):
10533 Update for ctxt_ -> m_ctxt change.
10535 2013-10-01 Jeff Law <law@redhat.com>
10537 * tree-ssa-threadupdate.c (struct redirection_data): Delete
10538 outgoing_edge and intermediate_edge fields. Instead store the path.
10539 (redirection_data::hash): Hash on the last edge's destination index.
10540 (redirection_data::equal): Check the entire thread path.
10541 (lookup_redirectio_data): Corresponding changes.
10542 (create_edge_and_update_destination_phis): Likewise.
10543 (thread_single_edge): Likewise.
10545 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
10546 Diego Novillo <dnovillo@google.com>
10548 * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
10549 (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
10550 (vld32wh_insn, vld32wl_insn): Delete commented-out old
10551 versions of these patterns.
10553 * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
10554 (__builtin_arc_aligned): Likewise.
10556 * config/arc/arc.md: Expand adc_0 comment stating the intended
10557 purpose and why it isn't ready.
10558 Replace commented out call_value_via_label_mixed with a
10559 plain comment about bl_s.
10561 * config/arc/arc.c (stdio.h): Don't include directly.
10562 (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
10563 Remove if (1) condition.
10564 (arc_encode_section_info): Fix comment.
10566 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
10568 * config/arc/arc.c (arc_conditional_register_usage):
10569 Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
10570 Also set reg_alloc_order for DMA config regs.
10572 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
10573 Jeremy Bennett <jeremy.bennett@embecosm.com>
10575 * doc/install.texi (--with-cpu): Mention ARC.
10576 (arc-*-elf32): New paragraph.
10577 (arc-linux-uclibc): Likewise.
10578 * doc/md.texi (Machine Constraints): Add ARC part.
10579 * doc/invoke.texi: (menu): Add ARC Options.
10580 (Machine Dependent Options) <ARC Options>: Add synopsis.
10581 (node ARC Options): Add.
10582 * doc/extend.texi (long_call / short_call attribute): Add ARC.
10583 (ARC Built-in Functions): New section defining
10584 generic ARC built-in functions.
10585 (ARC SIMD Built-in Functions): New section defining SIMD specific
10586 built-in functions.
10587 (Declaring Attributes of Functions): Extended
10588 description of short_call and long_call attributes for ARC and
10589 added index entries.
10591 2013-10-01 Saurabh Verma <saurabh.verma@codito.com>
10592 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
10593 Joern Rennecke <joern.rennecke@embecosm.com>
10594 Muhammad Khurram Riaz <khurram.riaz@arc.com>
10595 Brendan Kehoe <brendan@zen.org>
10596 Michael Eager <eager@eagercon.com>
10597 Simon Cook <simon.cook@embecosm.com>
10598 Jeremy Bennett <jeremy.bennett@embecosm.com>
10600 * config/arc, common/config/arc: New directories.
10602 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
10603 Brendan Kehoe <brendan@zen.org>
10604 Simon Cook <simon.cook@embecosm.com>
10606 * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
10608 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
10610 * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
10611 * tree-ssa-coalesce.h: New. Move prototype to here.
10612 * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
10613 * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
10614 (gimple_can_coalesce_p): Move to...
10615 * gimple.c (gimple_can_coalesce_p): Here.
10617 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
10619 * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
10620 (dump_decl_set): Move to gimple.c.
10621 * gimple.h: Don't include tree-ssa-operands.h.
10622 (dump_decl_set): Add prototype.
10623 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
10624 Move to gimple-ssa.h.
10625 (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
10626 gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
10627 gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
10628 gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
10629 * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
10631 (dump_decl_set): Relocate here.
10632 * gimple-ssa.h: New file.
10633 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
10634 Relocate from gimple.h.
10635 * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
10636 * tree-ssa-operands.c (swap_ssa_operands): Rename from
10637 swap_tree_operands and remove non-ssa path.
10638 (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
10639 * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
10641 * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
10642 vect_is_simple_reduction_1): Use swap_ssa_operands.
10643 * tree-flow.h: Move various prototypes to tree-phinodes.h.
10644 (enum need_phi_state): Move to tree-into-ssa.c.
10645 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
10646 BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
10647 (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
10648 * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
10649 link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
10650 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
10651 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
10652 num_imm_uses): Move to ssa-iterators.h.
10653 (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
10654 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
10656 (op_iter_done, op_iter_next_def, op_iter_next_tree,
10657 clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
10658 op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
10659 single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
10660 num_ssa_operands, delink_stmt_imm_use, single_phi_def,
10661 op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
10662 end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
10663 first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
10664 end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
10665 (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
10666 gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
10667 gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
10668 phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
10669 (set_phi_nodes): Move to tree-phinodes.h.
10670 * tree-ssa-operands.h (enum ssa_op_iter_type,
10671 struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
10672 ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
10673 (dump_decl_set): Remove prototype.
10674 (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
10675 * tree-phinodes.h: New file. Move some prototypes from tree-flow.h.
10676 (set_phi_nodes): Relocate from tree-flow-inline.h.
10677 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
10679 * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
10680 include list. Temporarily add gimple.h to include list.
10681 * ssa-iterators.h: New file.
10682 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
10683 BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
10684 (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
10685 FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
10686 Relocate from tree-ssa-operands.h.
10687 (delink_imm_use, link_imm_use_to_list, link_imm_use,
10688 set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
10689 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
10690 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
10691 num_imm_uses, get_use_from_ptr, get_def_from_ptr,
10692 phi_arg_index_from_use, op_iter_done, op_iter_next_def,
10693 op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
10694 op_iter_init_use, op_iter_init_def, op_iter_init_tree,
10695 single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
10696 zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
10697 single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
10698 end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
10699 link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
10700 first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
10701 Relocate from tree-flow-inline.h.
10702 * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
10704 2013-10-01 Vidya Praveen <vidyapraveen@arm.com>
10707 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
10708 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
10709 Insert '\t' to output template.
10710 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
10711 (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
10712 gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
10713 (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
10715 2013-10-01 Uros Bizjak <ubizjak@gmail.com>
10717 * doc/install.texi (Host/target specific installation notes for GCC):
10718 Put @anchor before @heading.
10719 * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
10720 Use @email for email addresses.
10722 2013-10-01 Jeff Law <law@redhat.com>
10724 * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
10725 a vec. Only delete the path if we create one without successfully
10726 registering a jump thread.
10727 * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
10729 * tree-ssa-threadupdate.c (threaded_edges): Remove. No longer used
10730 (paths): New vector of jump threading paths.
10731 (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
10732 (THREAD_PATH): New accessor macro for the entire thread path.
10733 (lookup_redirection_data): Get intermediate and final outgoing edge
10734 from the thread path.
10735 (create_edge_and_update_destination_phis): Copy the threading path.
10736 (ssa_fix_duplicate_block_edges): Get edges and block types from the
10737 jump threading path.
10738 (ssa_redirect_edges): Get edges and block types from the jump threading
10739 path. Free the path vector.
10740 (thread_block): Get edges from the jump threading path. Look at the
10741 entire path to see if we thread to a loop exit. If we cancel a jump
10742 thread request, then free the path vector.
10743 (thread_single_edge): Get edges and block types from the jump threading
10744 path. Free the path vector.
10745 (thread_through_loop_header): Get edges and block types from the jump
10746 threading path. Free the path vector.
10747 (mark_threaded_blocks): Iterate over the vector of paths and store
10748 the path on the appropriate edge. Get edges and block types from the
10749 jump threading path.
10750 (mark_threaded_blocks): Get edges and block types from the jump
10751 threading path. Free the path vector.
10752 (thread_through_all_blocks): Use the vector of paths rather than
10753 a vector of 3-edge sets.
10754 (register_jump_thread): Accept pointer to a path vector rather
10755 than the path vector itself. Store the path vector for later use.
10758 2013-10-01 Jakub Jelinek <jakub@redhat.com>
10759 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10762 * config/s390/s390.c (s390_split_branches): Modify check for table
10764 (s390_chunkify_start): Rearrange table jump insn check in order to
10765 deal with compare and branch insns correctly.
10767 2013-10-01 Kugan Vivekanandarajah <kuganv@linaro.org>
10771 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
10772 * config/arm/arm.md (arm_ashldi3_1bit): define_insn into
10773 define_insn_and_split.
10774 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
10775 (shiftsi3_compare): New pattern.
10776 (rrx): New pattern.
10777 * config/arm/unspecs.md (UNSPEC_RRX): New.
10779 2013-10-01 Alan Modra <amodra@gmail.com>
10781 * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
10782 casing inout operands.
10784 2013-10-01 Richard Biener <rguenther@suse.de>
10786 PR tree-optimization/58553
10787 * tree-loop-distribution.c (struct partition_s): Add niter member.
10788 (classify_partition): Populate niter member for the partition
10789 and properly identify whether the relevant store happens before
10790 or after the loop exit.
10791 (generate_memset_builtin): Use niter member from the partition.
10792 (generate_memcpy_builtin): Likewise.
10794 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
10796 * vec.h (vec_prefix, vec): Prefix member names with "m_".
10797 * vec.c (vec_prefix::calculate_allocation): Update accordingly.
10799 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
10801 * basic-block.h (edge_list): Prefix member names with "m_".
10802 * context.h (context): Likewise.
10803 * domwalk.h (dom_walker): Likewise.
10804 * gengtype-state.c (s_expr_writer, state_writer): Likewise.
10805 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
10806 * hash-table.h (hash_table): Likewise.
10807 * machmode.h (bit_field_mode_iterator): Likewise.
10808 * pass_manager.h (pass_list): Likewise.
10809 * tree-into-ssa.c (mark_def_dom_walker): Likewise.
10810 * tree-pass.h (pass_data): Likewise.
10811 * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
10812 * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
10813 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
10814 * asan.c (pass_data_asan): Update accordingly.
10815 * cfganal.c (control_dependences::find_control_dependence): Likewise.
10816 (control_dependences::control_dependences): Likewise.
10817 (control_dependences::~control_dependences): Likewise.
10818 (control_dependences::~control_dependences): Likewise.
10819 (control_dependences::get_edges_dependent_on): Likewise.
10820 * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
10821 (pass_data_remove_cgraph_callee_edges::clone): Likewise.
10822 * context.c (gcc::context::context): Likewise.
10823 * cprop.c (pass_rtl_cprop::clone): Likewise.
10824 * domwalk.c (dom_walker::walk): Likewise.
10825 * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
10826 * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
10827 * mode-switching.c (pass_mode_switching::clone): Likewise.
10828 * passes.c (opt_pass::opt_pass): Likewise.
10829 (pass_manager::pass_manager): Likewise.
10830 * predict.c (pass_strip_predict_hints::clone): Likewise.
10831 * recog.c (pass_data pass_data_peephole2::clone): Likewise.
10832 (pass_split_all_insns::clone): Likewise.
10833 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
10835 (bit_field_mode_iterator::next_mode): Likewise.
10836 (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
10837 * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
10838 * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
10839 * tree-complex.c (pass_lower_complex::clone): Likewise.
10840 * tree-eh.c (pass_cleanup_eh::clone): Likewise.
10841 * tree-object-size.c (pass_object_sizes::clone): Likewise.
10842 * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
10843 * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
10844 (pass_fold_builtins::clone): Likewise.
10845 * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
10846 * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
10847 * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
10848 (pass_cd_dce::clone): Likewise.
10849 * tree-ssa-dom.c (pass_dominator::clone): Likewise.
10850 (pass_phi_only_cprop::clone): Likewise.
10851 * tree-ssa-dse.c (pass_dse::clone): Likewise.
10852 * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
10853 * tree-ssa-loop.c (pass_lim::clone): Likewise.
10854 * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
10855 * tree-ssa-pre.c (pass_fre::clone): Likewise.
10856 * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
10857 * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
10858 * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
10859 * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
10860 * tree-vrp.c (pass_vrp::clone): Likewise.
10861 * tsan.c (pass_tsan::clone): Likewise.
10863 2013-09-30 Jakub Jelinek <jakub@redhat.com>
10865 PR middle-end/58564
10866 * fold-const.c (tree_unary_nonnegative_warnv_p): Use
10867 INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
10869 PR middle-end/58564
10870 * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
10871 optimization, punt if sign_bit_p looked through any zero extension.
10873 2013-09-30 Teresa Johnson <tejohnson@google.com>
10875 * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
10876 Update redirected out edge count in joiner case.
10877 (ssa_redirect_edges): Common the joiner and non-joiner cases
10878 so that joiner case gets profile updates.
10880 2013-09-30 Richard Biener <rguenther@suse.de>
10882 PR tree-optimization/58554
10883 * tree-loop-distribution.c (classify_partition): Require
10884 unconditionally executed stores for memcpy and memset recognition.
10885 (tree_loop_distribution): Calculate dominance info.
10887 2013-09-30 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
10889 * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
10890 (NO_PROFILE_COUNTERS): Likewise.
10891 (PROFILE_HOOK): Likewise.
10892 (FUNCTION_PROFILER): Likewise.
10893 * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
10895 2013-09-30 Iain Sandoe <iain@codesourcery.com>
10897 * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
10898 calls and defines in TARGET_MACHO conditional.
10899 (load_macho_picbase_di): Likewise.
10900 (reload_macho_picbase): Likewise.
10901 (reload_macho_picbase_si): Likewise.
10902 (reload_macho_picbase_di): Likewise.
10903 (nonlocal_goto_receiver): Likewise.
10905 2013-09-30 Nick Clifton <nickc@redhat.com>
10907 * config/msp430/msp430.c (msp430x_names): New array. Lists MCUs
10908 that use the MSP430X ISA.
10909 (msp430_option_override): Scan -mmcu command line option for any
10910 MCU name that supports the MSP430X ISA.
10911 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
10912 -mmcu options which enable the MSP430X ISA.
10914 2013-09-30 Richard Biener <rguenther@suse.de>
10916 PR middle-end/58532
10917 * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
10918 before looking for setjmp-like calls.
10920 2013-09-29 Iain Sandoe <iain@codesourcery.com>
10923 * config/darwin-protos.h (machopic_get_function_picbase): New.
10924 * config/darwin.c (machopic_get_function_picbase): New.
10925 * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
10926 label for a new func. (load_macho_picbase_di): Likewise.
10927 (reload_macho_picbase): New expand.
10928 (reload_macho_picbase_si): New insn.
10929 (reload_macho_picbase_di): New insn.
10930 (nonlocal_goto_receiver): New define and split.
10931 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
10932 (unspecv enum): Add UNSPECV_NLGR.
10934 2013-09-29 Iain Sandoe <iain@codesourcery.com>
10936 * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
10937 that altivec registers are correctly sized on Darwin.
10939 2013-09-29 Iain Sandoe <iain@codesourcery.com>
10941 * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
10942 darwin-driver.o): Use COMPILE and POSTCOMPILE.
10943 * config/x-darwin (host-darwin.o): Likewise.
10944 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
10945 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
10946 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
10948 2013-09-29 Uros Bizjak <ubizjak@gmail.com>
10950 * doc/invoke.texi: Fix usage of @tie{} command.
10952 2013-09-29 Eric Botcazou <ebotcazou@adacore.com>
10954 * config/sparc/sync.md: Add peephole for consecutive memory barriers.
10956 2013-09-28 Jan Hubicka <jh@suse.cz>
10958 * config/i386/x86-tune.def: Add documentation for each of the options;
10961 2013-09-28 Jan Hubicka <jh@suse.cz>
10963 * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
10965 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
10966 (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
10967 (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
10968 (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
10969 (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
10971 2013-09-28 Richard Sandiford <rdsandiford@googlemail.com>
10973 * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
10974 bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
10975 cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
10976 cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
10977 combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
10978 cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
10979 df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
10980 dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
10981 errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
10982 fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
10983 gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
10984 genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
10985 genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
10986 genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
10987 gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
10988 gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
10989 gimple.h, godump.c, graphite-clast-to-gimple.c,
10990 graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
10991 graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
10992 hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
10993 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
10994 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
10995 ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
10996 loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
10997 lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
10998 mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
10999 pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
11000 predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
11001 profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
11002 regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
11003 reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
11004 sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
11005 statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
11006 system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
11007 tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
11008 tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
11009 tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
11010 tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
11011 tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
11012 tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
11013 tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
11014 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
11015 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
11016 tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
11017 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
11018 tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
11019 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
11020 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
11021 tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
11022 tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
11023 tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
11024 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
11025 tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
11026 tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
11027 varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
11028 whitespace before "(".
11030 2013-09-28 Sandra Loosemore <sandra@codesourcery.com>
11032 * expr.h (extract_bit_field): Remove packedp parameter.
11033 * expmed.c (extract_fixed_bit_field): Remove packedp parameter
11034 from forward declaration.
11035 (store_split_bit_field): Remove packedp arg from calls to
11036 extract_fixed_bit_field.
11037 (extract_bit_field_1): Remove packedp parameter and packedp
11038 argument from recursive calls and calls to extract_fixed_bit_field.
11039 (extract_bit_field): Remove packedp parameter and corresponding
11040 arg to extract_bit_field_1.
11041 (extract_fixed_bit_field): Remove packedp parameter. Remove code
11043 (extract_split_bit_field): Remove packedp arg from call to
11044 extract_fixed_bit_field.
11045 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
11046 (copy_blkmode_from_reg): Likewise.
11047 (copy_blkmode_to_reg): Likewise.
11048 (read_complex_part): Likewise.
11049 (store_field): Likewise.
11050 (expand_expr_real_1): Likewise.
11051 * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
11052 to extract_bit_field.
11053 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
11054 call to extract_bit_field.
11055 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
11056 call to extract_bit_field.
11057 * doc/invoke.texi (Code Gen Options): Remove mention of warnings
11058 and special packedp behavior from -fstrict-volatile-bitfields
11061 2013-09-27 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11063 * lra-eliminations.c (init_elim_table): Guard value_p.
11065 2013-09-27 Michael Meissner <meissner@linux.vnet.ibm.com>
11067 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
11068 DFmode, DImode, and SFmode in the upper VSX registers based on the
11069 -mupper-regs-{df,sf} flags. Fix wu constraint to be ALTIVEC_REGS
11070 if -mpower8-vector. Combine -mvsx-timode handling with the rest
11071 of the VSX register handling.
11073 * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
11074 (f32_sv): Likewise.
11075 (zero_extendsidi2_lfiwzx): Add support for loading into the
11076 Altivec registers with -mpower8-vector. Use wu/wv constraints to
11077 only do VSX memory options on Altivec registers.
11078 (extendsidi2_lfiwax): Likewise.
11079 (extendsfdf2_fpr): Likewise.
11080 (mov<mode>_hardfloat, SF/SD modes): Likewise.
11081 (mov<mode>_hardfloat32, DF/DD modes): Likewise.
11082 (mov<mode>_hardfloat64, DF/DD modes): Likewise.
11083 (movdi_internal64): Likewise.
11085 2013-09-27 Xinliang David Li <davidxl@google.com>
11087 * opts.c (finish_options): Adjust parameters
11088 according to vect cost model.
11089 (common_handle_option): Set dynamic vect cost
11091 targhooks.c (default_add_stmt_cost): Compute stmt cost
11093 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
11094 Use helper function.
11095 * tree-vectorizer.h (unlimited_cost_model): New function.
11096 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
11097 * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
11099 (vect_enhance_data_refs_alignment): Ditto.
11100 * flag-types.h: New enum.
11101 * common/config/i386/i386-common.c (ix86_option_init_struct):
11102 No need to initialize vect_cost_model flag.
11103 * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
11106 2013-09-27 Diego Novillo <dnovillo@google.com>
11108 * gimple.h (enum ssa_mode): Remove.
11110 2013-09-27 Paulo Matos <pmatos@broadcom.com>
11112 * cfgloop.h (number_of_loops): Fix typo in check for null.
11114 2013-09-27 Jakub Jelinek <jakub@redhat.com>
11116 PR middle-end/58551
11117 * tree-cfg.c (move_sese_region_to_fn): Also move loops that
11118 are children of outermost saved_cfun's loop, and set it up to
11119 be moved to dest_cfun's outermost loop. Fix up num_nodes adjustments
11120 if loop != loop0 and SESE region contains bbs that belong to loop0.
11122 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
11124 * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
11125 (binary_scale_code_p, get_base_term, get_index_term): New functions.
11126 (set_address_segment, set_address_base, set_address_index)
11127 (set_address_disp): Accept the argument unconditionally.
11128 (baseness): Remove must_be_base_p and must_be_index_p checks.
11129 (decompose_normal_address): Classify as much as possible in the
11132 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
11134 * cse.c (count_reg_usage): Handle INT_LIST.
11135 * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
11136 * reginfo.c (reg_scan_mark_refs): Likewise.
11137 * reload1.c (eliminate_regs_1): Likewise.
11139 2013-09-27 Iain Sandoe <iain@codesourcery.com>
11141 PR middle-end/58547
11142 * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
11145 2013-09-27 Richard Biener <rguenther@suse.de>
11147 PR tree-optimization/58459
11148 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
11149 restriction not propagating into loops.
11151 2013-09-26 Florian Weimer <fw@deneb.enyo.de>
11153 * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
11154 * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
11155 * doc/tree-ssa.texi (Walking use-def chains): Delete.
11157 2013-09-26 Richard Biener <rguenther@suse.de>
11159 * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
11161 2013-09-26 Richard Biener <rguenther@suse.de>
11163 * alias.h (component_uses_parent_alias_set): Rename to ...
11164 (component_uses_parent_alias_set_from): ... this.
11165 * alias.c (component_uses_parent_alias_set): Rename to ...
11166 (component_uses_parent_alias_set_from): ... this and return
11167 the desired parent.
11168 (reference_alias_ptr_type_1): Use the result from
11169 component_uses_parent_alias_set_from instead of stripping
11170 components one at a time.
11171 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
11173 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
11175 * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
11176 Move prototypes to...
11177 * tree-ssa-ter.h: New File. Move prototypes here.
11178 * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
11179 * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
11180 * tree-outof-ssa.c (ssa_is_replaceable_p): New. Refactor common bits
11181 from is_replaceable_p.
11182 * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
11183 (ter_is_replaceable_p): New. Use new refactored ssa_is_replaceable_p.
11184 (process_replaceable): Use ter_is_replaceable_p.
11185 (find_replaceable_in_bb): Use ter_is_replaceable_p.
11186 * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c. Use
11187 newly refactored ssa_is_replaceable_p.
11188 * cfgexpand.c: Include tree-outof-ssa.h.
11189 * ssaexpand.h: Delete.
11191 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
11193 * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
11194 (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
11196 (create_gimple_tmp): Delete.
11197 (get_expr_type, build_assign, build_type_cast): Move to...
11198 * gimple-builder.c: New File.
11199 (get_expr_type): Relocate from gimple.c.
11200 (build_assign, build_type_cast): Change to only create ssanames.
11201 * gimple.h: Move prototypes to...
11202 * gimple-builder.h: New File. Here.
11203 * tree-ssa.h: And here.
11204 * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
11205 count_uses_and_derefs): Relocate from gimple.c.
11206 (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
11207 * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
11208 * tree-ssa-math-opts (execute_cse_reciprocals): Use
11209 gimple_replace_ssa_lhs.
11210 * asan.c: Include gimple-builder.h.
11211 * Makefile.in: Add gimple-builder.o.
11213 2013-09-26 Richard Biener <rguenther@suse.de>
11215 * tree-ssa-live.c (var_map_base_init): Handle SSA names with
11216 DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
11217 (loe_visit_block): Use gcc_checking_assert.
11218 * tree-ssa-coalesce.c (create_outofssa_var_map): Use
11219 gimple_assign_ssa_name_copy_p.
11220 (gimple_can_coalesce_p): Adjust according to the var_map_base_init
11223 2013-09-26 David Edelsohn <dje.gcc@gmail.com>
11225 * config/rs6000/t-rs6000 (rs6000.o): Remove.
11226 (rs6000-c.o): Use COMPILE and POSTCOMPILE.
11228 2013-09-26 Richard Biener <rguenther@suse.de>
11230 PR tree-optimization/58539
11231 * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
11232 the fact that debug statements are not taking part in loop-closed
11235 2013-09-26 Nick Clifton <nickc@redhat.com>
11237 * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
11238 time warning message.
11239 (msp430_print_operand_raw): Delete unused letter parameter.
11240 (TARGET_PRINT_OPERAND_ADDRESS): Define.
11241 (msp430_print_operand_address): New function.
11242 (msp430_print_operand): Move address printing code from here to
11244 * config/msp430/msp430.md (movsipsi2): Add comment in generated
11246 (zero_extendpsisi2): Likewise.
11247 (extendpsisi2): New pattern.
11248 (andneghi3): New pattern.
11250 2013-09-26 Yvan Roux <yvan.roux@linaro.org>
11252 * config/aarch64/aarch64.opt (mlra): New option.
11253 * config/aarch64/aarch64.c (aarch64_lra_p): New function.
11254 (TARGET_LRA_P): Define.
11256 2013-09-26 Eric Botcazou <ebotcazou@adacore.com>
11258 * expr.c (expand_assignment): Remove obsolete comment.
11260 2013-09-25 Jeff Law <law@redhat.com>
11262 * tree-flow.h (thread_through_all_blocks): Prototype moved into
11263 tree-ssa-threadupdate.h.
11264 (register_jump_thread): Similarly.
11265 * tree-ssa-threadupdate.h: New header file.
11266 * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
11267 * tree-vrp.c: Likewise.
11268 * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
11269 (thread_around_empty_blocks): Change type of path vector argument to
11270 an edge,type pair from just an edge. Initialize both elements when
11271 appending to a jump threading path. Tweak references to elements
11273 (thread_across_edge): Similarly. Release memory for the elements
11275 * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
11276 (dump_jump_thread_path): New function broken out from
11277 register_jump_thread.
11278 (register_jump_thread): Use dump_jump_thread_path. Change type of
11279 path vector entries. Search the path for NULL edges and dump
11280 the path if one is found. Tweak the conversion of path to 3-edge
11281 form to use the block copy type information embedded in the path.
11283 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
11285 * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
11287 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
11288 Vladimir Makarov <vmakarov@redhat.com>
11290 * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
11291 from the least significant bit.
11292 (strip_address_mutations): Add bitfield operations handling.
11293 (must_be_index_p): Add shifting and rotate operations handling.
11294 (set_address_base): Use must_be_base_p predicate.
11295 (set_address_index): Use must_be_index_p predicate.
11297 2013-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
11298 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11299 Sergey Lega <sergey.s.lega@intel.com>
11300 Anna Tikhonova <anna.tikhonova@intel.com>
11301 Ilya Tocar <ilya.tocar@intel.com>
11302 Andrey Turetskiy <andrey.turetskiy@intel.com>
11303 Ilya Verbin <ilya.verbin@intel.com>
11304 Kirill Yukhin <kirill.yukhin@intel.com>
11305 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11307 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
11309 (ix86_expand_vector_move_misalign): Support new unaligned load and
11310 stores and use new names.
11311 (CODE_FOR_sse2_storedqu): Rename to ...
11312 (CODE_FOR_sse2_storedquv16qi): ... this.
11313 (CODE_FOR_sse2_loaddqu): Rename to ...
11314 (CODE_FOR_sse2_loaddquv16qi): ... this.
11315 (CODE_FOR_avx_loaddqu256): Rename to ...
11316 (CODE_FOR_avx_loaddquv32qi): ... this.
11317 (CODE_FOR_avx_storedqu256): Rename to ...
11318 (CODE_FOR_avx_storedquv32qi): ... this.
11319 * config/i386/i386.md (fpint_logic): New.
11320 * config/i386/sse.md (VMOVE): Extend for AVX512.
11324 (VI_UNALIGNED_LOADSTORE): Ditto.
11325 (sse2_avx_avx512f): Ditto.
11326 (sse2_avx2): Extend for AVX512.
11327 (sse4_1_avx2): Ditto.
11328 (avx2_avx512f): New.
11329 (sse): Extend for AVX512.
11332 (avxsizesuffix): Ditto.
11333 (sseintvecmode): Ditto.
11334 (ssePSmode): Ditto.
11335 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
11336 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
11337 (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
11338 (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
11339 (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
11340 (<sse2_avx_avx512f>_storedqu<mode): ... this.
11341 (<sse>_movnt<mode>): Replace constraint "x" with "v".
11342 (STORENT_MODE): Extend for AVX512.
11343 (*absneg<mode>2): Replace constraint "x" with "v".
11344 (*mul<mode>3): Ditto.
11345 (*ieee_smin<mode>3): Ditto.
11346 (*ieee_smax<mode>3): Ditto.
11347 (avx_cmp<mode>3): Replace VF with VF_128_256.
11348 (*<sse>_maskcmp<mode>3_comm): Ditto.
11349 (<sse>_maskcmp<mode>3): Ditto.
11350 (<sse>_andnot<mode>3): Extend for AVX512.
11351 (<code><mode>3, anylogic): Replace VF with VF_128_256.
11352 (<code><mode>3, fpint_logic): New.
11353 (*<code><mode>3): Extend for AVX512.
11354 (avx512flogicsuff): New.
11355 (avx512f_<logic><mode>): Ditto.
11356 (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
11358 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
11359 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
11360 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
11361 (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
11362 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
11363 (xop_vpermil2<mode>3): Ditto.
11364 (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
11365 (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
11366 (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
11367 (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
11369 2013-09-25 Tom Tromey <tromey@redhat.com>
11371 * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
11372 (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
11373 (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
11374 (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
11375 (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
11376 (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
11377 (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
11378 (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
11379 (GRAPHITE_HTAB_H): Remove.
11381 2013-09-25 Tom Tromey <tromey@redhat.com>
11383 * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
11385 2013-09-25 Tom Tromey <tromey@redhat.com>
11387 * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
11389 2013-09-25 Tom Tromey <tromey@redhat.com>
11391 * config/i386/t-i386 (i386.o): Remove.
11392 (i386-c.o): Use COMPILE and POSTCOMPILE.
11394 2013-09-25 Tom Tromey <tromey@redhat.com>
11396 * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
11398 2013-09-25 Tom Tromey <tromey@redhat.com>
11400 * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
11401 (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
11402 (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
11403 (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
11404 (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
11405 (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
11406 (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
11407 (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
11408 (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
11409 (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
11410 (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
11411 (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
11412 (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
11413 (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
11414 (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
11415 (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
11416 (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
11417 (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
11418 (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
11419 (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
11420 (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
11421 (tree-ssa-pre.o, tree-ssa-sccvn.o)
11422 (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
11423 (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
11424 (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
11425 (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
11426 (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
11427 (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
11428 (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
11429 (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
11430 (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
11431 (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
11432 (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
11433 (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
11434 (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
11435 (graphite-clast-to-gimple.o, graphite-dependences.o)
11436 (graphite-interchange.o, graphite-poly.o)
11437 (graphite-scop-detection.o, graphite-sese-to-poly.o)
11438 (graphite-optimize-isl.o, tree-vect-loop.o)
11439 (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
11440 (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
11441 (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
11442 (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
11443 (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
11444 (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
11445 (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
11446 (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
11447 (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
11448 (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
11449 (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
11450 (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
11451 (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
11452 (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
11453 (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
11454 (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
11455 (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
11456 (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
11457 (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
11458 (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
11459 (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
11460 (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
11461 (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
11462 (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
11463 (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
11464 (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
11465 (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
11466 (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
11467 (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
11468 (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
11469 (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
11470 (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
11471 (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
11472 (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
11473 (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
11474 (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
11475 (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
11476 (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
11477 (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
11478 (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
11479 (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
11480 (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
11481 (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
11482 (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
11483 (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
11484 (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
11485 (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
11486 (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
11487 (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
11488 (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
11489 (gcov-dump.o): Remove.
11490 (default-c.o): Use COMPILE and POSTCOMPILE.
11491 (CFLAGS-gcc.o): New variable.
11492 ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
11494 2013-09-25 Tom Tromey <tromey@redhat.com>
11496 * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
11497 (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
11498 (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
11499 (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
11500 (c-family/c-pragma.o, c-family/c-pretty-print.o)
11501 (c-family/c-semantics.o, c-family/c-ada-spec.o)
11502 (c-family/array-notation-common.o, c-family/stub-objc.o)
11503 (c-family/c-ubsan.o): Remove.
11505 2013-09-25 Tom Tromey <tromey@redhat.com>
11507 * Makefile.in (C_TREE_H): Reference c/c-tree.h.
11509 2013-09-25 Tom Tromey <tromey@redhat.com>
11511 * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
11512 to add -DENABLE_SHARED_LIBGCC.
11513 (gcc.o): Don't use subshell.
11515 2013-09-25 Tom Tromey <tromey@redhat.com>
11517 * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
11518 * configure.ac: Don't invoke AM_PROG_CC_C_O.
11519 (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
11520 * configure, config.in: Rebuild.
11522 2013-09-25 Tom Tromey <tromey@redhat.com>
11524 * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
11525 (COMPILE, POSTCOMPILE): New variables.
11526 (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
11527 (DEPFILES): New variable.
11528 Include ".Po" files.
11529 * configure.ac: Add checks for dependency checking.
11530 * configure, aclocal.m4: Regenerate.
11532 2013-09-25 Tom Tromey <tromey@redhat.com>
11534 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
11535 ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
11537 2013-09-25 Tom Tromey <tromey@redhat.com>
11539 * Makefile.in (generated_files): Add options.h,
11540 target-hooks-def.h, insn-opinit.h,
11541 common/common-target-hooks-def.h, pass-instances.def,
11542 c-family/c-target-hooks-def.h.
11544 2013-09-25 Jeff Law <law@redhat.com>
11546 * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
11547 than foo[foo.length () - 1] to access last member in a vec.
11548 * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
11550 2013-09-25 Richard Biener <rguenther@suse.de>
11552 PR middle-end/58521
11553 * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
11555 2013-09-25 Jan Hubicka <jh@suse.cz>
11557 * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
11560 2013-09-25 Marek Polacek <polacek@redhat.com>
11563 * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
11564 when determining the type name.
11566 2013-09-24 Oleg Endo <olegendo@gcc.gnu.org>
11568 * config/sh/sh.md: Fix formatting.
11570 2013-09-24 Xinliang David Li <davidxl@google.com>
11572 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
11573 max peel iterations parameter.
11574 * param.def: New parameter.
11575 * doc/invoke.texi: Document New parameter.
11577 2013-09-24 Christophe Lyon <christophe.lyon@linaro.org>
11579 * gimple-pretty-print.c: Various whitespace tweaks.
11580 * tree-core.h: Likewise.
11581 * tree-pretty-print.c: Likewise.
11582 * tree-ssa-alias.c: Likewise.
11583 * tree-ssa-copy.c: Likewise.
11584 * tree-ssanames.c: Likewise.
11585 * tree-ssanames.h: Likewise.
11586 * tree-vrp.c: Likewise.
11588 2013-09-24 Alan Modra <amodra@gmail.com>
11590 PR middle-end/57134
11591 PR middle-end/57586
11592 * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
11593 for output operands that disallow regs. Don't use EXPAND_WRITE on
11596 2013-09-24 Richard Biener <rguenther@suse.de>
11598 PR middle-end/58513
11599 * tree.c (reference_alias_ptr_type): Move ...
11600 * alias.c (reference_alias_ptr_type): ... here and implement
11601 in terms of the new reference_alias_ptr_type_1.
11602 (ref_all_alias_ptr_type_p): New helper.
11603 (get_deref_alias_set_1): Drop flag_strict_aliasing here,
11604 use ref_all_alias_ptr_type_p.
11605 (get_deref_alias_set): Add flag_strict_aliasing check here.
11606 (reference_alias_ptr_type_1): New function, split out from ...
11607 (get_alias_set): ... here.
11608 (alias_ptr_types_compatible_p): New function.
11609 * alias.h (reference_alias_ptr_type): Declare.
11610 (alias_ptr_types_compatible_p): Likewise.
11611 * tree.h (reference_alias_ptr_type): Remove.
11612 * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
11613 to compare MEM_REF alias types.
11615 2013-09-24 Richard Biener <rguenther@suse.de>
11617 * tree-vrp.c (vrp_finalize): Check for SSA name presence.
11619 2013-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
11621 * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
11622 reload helper function arrays into a single array reg_addr.
11623 (reload_fpr_gpr): Likewise.
11624 (reload_gpr_vsx): Likewise.
11625 (reload_vsx_gpr): Likewise.
11626 (struct rs6000_reg_addr): Likewise.
11627 (reg_addr): Likewise.
11628 (rs6000_debug_reg_global): Change rs6000_vector_reload,
11629 reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
11630 (rs6000_init_hard_regno_mode_ok): Likewise.
11631 (rs6000_secondary_reload_direct_move): Likewise.
11632 (rs6000_secondary_reload): Likewise.
11634 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
11635 constraints: wu, ww, and wy. Repurpose wv constraint added during
11636 power8 changes. Put wg constraint in alphabetical order.
11638 * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
11639 for future work to add ISA 2.07 VSX single precision support.
11640 (-mvsx-scalar-double): Change default from -1 to 1, update
11641 documentation comment.
11642 (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
11643 (-mupper-regs-df): New debug switch to control whether DF values
11644 can go in the traditional Altivec registers.
11645 (-mupper-regs-sf): New debug switch to control whether SF values
11646 can go in the traditional Altivec registers.
11648 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
11649 and wy constraints.
11650 (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
11651 loop variables. Rename -mvsx-scalar-memory to -mupper-regs-df.
11652 Add new constraints, wu/ww/wy. Repurpose wv constraint.
11653 (rs6000_debug_legitimate_address_p): Print if we are running
11654 before, during, or after reload.
11655 (rs6000_secondary_reload): Add a comment.
11656 (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
11658 * config/rs6000/constraints.md (wa constraint): Sort w<x>
11659 constraints. Update documentation string.
11660 (wd constraint): Likewise.
11661 (wf constraint): Likewise.
11662 (wg constraint): Likewise.
11663 (wn constraint): Likewise.
11664 (ws constraint): Likewise.
11665 (wt constraint): Likewise.
11666 (wx constraint): Likewise.
11667 (wz constraint): Likewise.
11668 (wu constraint): New constraint for ISA 2.07 SFmode scalar
11670 (ww constraint): Likewise.
11671 (wy constraint): Likewise.
11672 (wv constraint): Repurpose ISA 2.07 constraint that we did not use
11673 in the previous submissions.
11674 * doc/md.texi (PowerPC and IBM RS6000): Likewise.
11676 2013-09-23 Richard Sandiford <rdsandiford@googlemail.com>
11678 * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
11679 (REG_BR_PROB): Say that the probability is stored in an int_list.
11680 * reg-notes.def: Update commentary to mention INT_LIST.
11681 * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
11682 (INT_LIST): New rtx.
11683 * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
11684 * rtlanal.c (int_reg_note_p): New function.
11685 (alloc_reg_note): Assert that the note does not have an int argument.
11686 (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
11687 * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
11688 * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
11689 rather than an INSN_LIST. Handle INT_LIST.
11690 * ifcvt.c (cond_exec_process_insns): Take the probability as an int
11691 rather than an rtx. Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
11692 (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
11693 Manipulate them as ints rather than rtxes.
11694 * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
11695 * regmove.c (copy_src_to_dest): Likewise.
11696 * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
11698 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
11699 into the cases that need it.
11700 * config/arm/arm.c (arm_unwind_emit): Likewise.
11702 * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
11703 * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
11704 * loop-doloop.c (add_test, doloop_modify): Likewise.
11705 * loop-unswitch.c (compare_and_jump_seq): Likewise.
11706 * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
11707 * predict.c (combine_predictions_for_insn): Likewise.
11708 * print-rtl.c (print_rtx): Handle INT_LIST.
11709 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
11710 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
11711 * config/arm/arm.c (emit_unlikely_jump): Likewise.
11712 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
11713 (ix86_split_fp_branch, predict_jump): Likewise.
11714 * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
11715 * config/sh/sh.c (expand_cbranchsi4): Likewise.
11716 * config/spu/spu.c (ea_load_store_inline): Likewise.
11718 * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
11719 value of a REG_BR_PROB note.
11720 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
11721 (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
11722 * emit-rtl.c (try_split): Likewise.
11723 * predict.c (br_prob_note_reliable_p): Likewise.
11724 (invert_br_probabilities, combine_predictions_for_insn): Likewise.
11725 * reorg.c (mostly_true_jump): Likewise.
11726 * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
11727 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
11728 * config/i386/i386.c (ix86_print_operand): Likewise.
11729 * config/ia64/ia64.c (ia64_print_operand): Likewise.
11730 * config/mmix/mmix.c (mmix_print_operand): Likewise.
11731 * config/rs6000/rs6000.c (output_cbranch): Likewise.
11732 * config/s390/s390.c (s390_expand_tbegin): Likewise.
11733 * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
11734 * config/sparc/sparc.c (output_cbranch): Likewise.
11735 * config/spu/spu.c (get_branch_target): Likewise.
11736 * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
11737 * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
11739 2013-09-23 Jan Hubicka <jh@suse.cz>
11741 * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
11743 * ipa-utils.h (possible_polymorphic_call_target_p): New function.
11744 * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
11746 * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
11747 (gimple_fold_call): Dump inconsistent devirtualizations; add
11748 sanity check for type based devirtualizations.
11749 * ipa-prop.c: Include ipa-utils.h
11750 (ipa_intraprocedural_devirtualization): Add sanity check.
11751 (try_make_edge_direct_virtual_call): Likewise.
11753 2013-09-23 Eric Botcazou <ebotcazou@adacore.com>
11755 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
11756 assignment statements.
11758 2013-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
11760 * gimple-pretty-print.c (dump_ssaname_info): New function.
11761 (dump_gimple_phi): Call it.
11762 (pp_gimple_stmt_1): Likewise.
11763 * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
11764 (range_info_def): Declare.
11765 * tree-pretty-print.c (pp_double_int): New function.
11766 (dump_generic_node): Call it.
11767 * tree-pretty-print.h (pp_double_int): Declare.
11768 * tree-ssa-alias.c (dump_alias_info): Check pointer type.
11769 * tree-ssanames.h (range_info_def): New structure.
11770 (value_range_type): Move definition here.
11771 (set_range_info, value_range_type, duplicate_ssa_name_range_info):
11773 * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
11775 (set_range_info): New function.
11776 (get_range_info): Likewise.
11777 (duplicate_ssa_name_range_info): Likewise.
11778 (duplicate_ssa_name_fn): Check pointer type and call
11779 duplicate_ssa_name_range_info.
11780 * tree-ssa-copy.c (fini_copy_prop): Likewise.
11781 * tree-vrp.c (value_range_type): Remove definition, now in
11783 (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
11784 * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
11785 (SSA_NAME_RANGE_INFO): New macro.
11787 2013-09-23 Richard Biener <rguenther@suse.de>
11789 PR tree-optimization/58464
11790 * tree-ssa-pre.c (phi_trans_lookup): Remove.
11791 (phi_trans_add): Change to add conditionally on being not present.
11792 (phi_translate_1): Remove recursion detection here.
11793 (phi_translate): Pre-seed the cache with NULL to catch
11794 recursion here in a more generic way.
11795 (bitmap_find_leader): Adjust comment.
11796 (get_representative_for): Dump value-numbers.
11797 (create_expression_by_pieces): Likewise.
11798 (insert_into_preds_of_block): Likewise.
11800 2013-09-23 Christian Bruel <christian.bruel@st.com>
11803 * config/sh/sh.md (movsf_ie): Allow fpul_operand.
11804 * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
11806 2013-09-23 James Greenhalgh <james.greenhalgh@arm.com>
11809 2013-09-20 Renlin Li <renlin.li@arm.com>
11811 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
11813 (aarch64_expand_epilogue): Likewise.
11814 (aarch64_legitimize_reload_address): Likewise.
11816 2013-09-22 Eric Botcazou <ebotcazou@adacore.com>
11818 * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
11819 NULL_TREE before pushing them onto the vector. Likewise for labels.
11821 2013-09-21 Eric Botcazou <ebotcazou@adacore.com>
11823 * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
11824 comparison operators when -fno-trapping-math is in effect.
11825 * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
11826 comparison operators in TFmode and assert that unsupported operators
11828 (ia64_print_operand): Likewise.
11830 2013-09-21 Jan Hubicka <jh@suse.cz>
11832 * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
11833 (sse_typeless_stores): Enable for core
11834 (sse_load0_by_pxor): Likewise.
11835 (four_jump_limit): Disable for core.
11836 (pad_returns): Likewise.
11837 (avoid_vector_decode): Likewise.
11838 (fuse_cmp_and_branch): Enable for cores.
11839 * i386.c (x86_accumulate_outgoing_args): Disable for cores.
11841 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
11843 PR middle-end/56791
11844 * config/pa/pa.c (pa_option_override): Disable auto increment and
11845 decrement instructions until reload is completed.
11847 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
11848 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
11849 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
11851 2013-09-20 DJ Delorie <dj@redhat.com>
11852 Nick Clifton <nickc@redhat.com>
11854 * config/rl78/rl78.c: Various whitespace and comment tweaks.
11855 (need_to_save): Save bank 0 on interrupts.
11856 (characterize_address): Strip far address wrappers.
11857 (rl78_as_legitimate_address): Likewise.
11858 (transcode_memory_rtx): Likewise.
11859 (rl78_peep_movhi_p): Disable this peephole after devirt.
11860 (rl78_propogate_register_origins): Forget all origins when a
11862 * config/rl78/rl78-virt.md: Various whitespace tweaks.
11863 * config/rl78/rl78-real.md: Various whitespace tweaks. Additional
11865 * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
11866 * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
11867 * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
11869 * config/rl78/constraints.md: Various whitespace and paren tweaks.
11871 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
11873 * config/pa/pa.md: In "scc" insn patterns, change output template to
11874 handle const0_rtx in reg_or_0_operand operands.
11876 2013-09-20 Martin Husemann <martin@NetBSD.org>
11879 * config/vax/vax.c (vax_output_int_move): Use D format specifier.
11880 * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
11882 2013-09-20 Richard Biener <rguenther@suse.de>
11884 PR middle-end/58484
11885 * tree-scalar-evolution.c (struct scev_info_str): Shrink by
11886 remembering SSA name version and block index.
11887 (new_scev_info_str): Adjust.
11888 (hash_scev_info): Likewise. Also hash the block index.
11889 (eq_scev_info): Adjust.
11890 (find_var_scev_info): Likewise.
11891 (struct instantiate_cache_entry): Remove.
11892 (struct instantiate_cache_type): Use a htab to map name, block
11894 (instantiate_cache_type::~instantiate_cache_type): Adjust.
11895 (get_instantiated_value_entry): Likewise.
11896 (hash_idx_scev_info, eq_idx_scev_info): New functions.
11897 (instantiate_scev_name): Adjust.
11899 2013-09-20 Jeff Law <law@redhat.com>
11901 * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
11903 2013-09-20 Yufeng Zhang <yufeng.zhang@arm.com>
11905 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
11906 Call aarch64_simd_expand_args to update op[argc].
11908 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
11910 * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
11913 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
11915 * gengtype.c (file_rules): Added rule for *.cc files.
11916 (get_output_file_with_visibility): Give fatal message when no
11919 2013-09-20 Renlin Li <renlin.li@arm.com>
11921 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
11922 (aarch64_expand_epilogue): Likewise.
11923 (aarch64_legitimize_reload_address): Likewise.
11925 2013-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
11927 PR middle-end/57748
11928 * expr.c (expand_assignment): Remove misalignp code path.
11930 2013-09-20 Marek Polacek <polacek@redhat.com>
11933 * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
11934 TYPE_PRECISION. Add asserts.
11936 2013-09-20 Richard Biener <rguenther@suse.de>
11938 PR tree-optimization/58453
11939 * tree-loop-distribution.c (distribute_loop): Apply the cost
11940 model for -ftree-loop-distribute-patterns, too.
11942 2013-09-20 Richard Biener <rguenther@suse.de>
11944 PR middle-end/58473
11945 * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
11946 make type comparison less strict.
11948 2013-09-20 Alan Modra <amodra@gmail.com>
11950 * configure: Regenerate.
11951 * aclocal.m4: Regenerate.
11953 2013-09-20 Marek Polacek <polacek@redhat.com>
11956 * doc/extend.texi: Document that attribute used is meant to be used
11957 on variables with static storage duration.
11959 2013-09-19 Jakub Jelinek <jakub@redhat.com>
11961 PR tree-optimization/58472
11962 * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
11963 simd_lane_access set inv_p = false.
11964 * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
11965 the simduid magic VAR_DECL.
11967 2013-09-19 Jan Hubicka <jh@suse.cz>
11969 * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
11971 2013-09-17 Jeff Law <law@redhat.com>
11973 * tree-ssa-dom.c (record_temporary_equivalences): New function
11974 split out of dom_opt_dom_walker::after_dom_children.
11975 (dom_opt_dom_walker::thread_across_edge): Move common code
11976 in here from dom_opt_dom_walker::after_dom_children.
11977 (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
11979 2013-09-19 Jan Hubicka <jh@suse.cz>
11981 * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
11982 (TARGET_GENERIC): Use PROCESOR_GENERIC
11983 (enum processor_type): Unify generic32 and 64.
11984 * i386.md (cpu): Likewise.
11985 * x86-tune.def (use_leave): Enable for generic32.
11986 (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
11987 * athlon.md: Change generic64 to generic in all occurences.
11988 * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
11989 (ix86_target_macros_internal): Likewise.
11990 * driver-i386.c (host_detect_local_cpu): Likewise.
11991 * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
11993 (generic_memcpy, generic_memset, generic_cost): This one.
11994 (generic32_memcpy, generic32_memset, generic32_cost): Remove.
11995 (m_GENERIC32, m_GENERIC64): Remove.
11996 (m_GENERIC): Turn into one flag.
11997 (processor_target): Unify generic tunnings.
11998 (ix86_option_override_internal): Replace generic32/64 by generic.
11999 (ix86_issue_rate): Likewise.
12000 (ix86_adjust_cost): Likewise.
12002 2013-09-19 Jan Hubicka <jh@suse.cz>
12004 * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
12005 of speculative flag.
12007 2013-09-19 Jakub Jelinek <jakub@redhat.com>
12009 * omp-low.c (expand_omp_sections): Always pass len - 1 to
12010 GOMP_sections_start, even if !exit_reachable.
12012 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
12014 * lra-constraints.c (need_for_all_save_p): Use macro
12015 HARD_REGNO_CALL_PART_CLOBBERED.
12016 * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
12017 set up pseudo conflict hard regs.
12019 2013-09-18 Michael Meissner <meissner@linux.vnet.ibm.com>
12022 * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
12025 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
12027 PR rtl-optimization/58438
12028 * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
12029 * lra-constraints.c (undo_optional_reloads): Keep optional reloads
12030 from previous subpasses.
12032 2013-09-18 Richard Earnshaw <rearnsha@arm.com>
12034 * arm.c (arm_get_frame_offsets): Validate architecture supports
12035 LDRD/STRD before accepting the tuning preference.
12036 (arm_expand_prologue): Likewise.
12037 (arm_expand_epilogue): Likewise.
12039 2013-09-18 Richard Biener <rguenther@suse.de>
12041 PR tree-optimization/58417
12042 * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
12043 have chrecs with symbols defined in the loop as operands.
12044 (chrec_fold_multiply): Likewise.
12045 * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
12046 parameters before folding binary operations.
12047 (struct instantiate_cache_entry_hasher): Remove.
12048 (struct instantiate_cache_type): Use a pointer-map.
12049 (instantiate_cache_type::instantiate_cache_type): New function.
12050 (instantiate_cache_type::get): Likewise.
12051 (instantiate_cache_type::set): Likewise.
12052 (instantiate_cache_type::~instantiate_cache_type): Adjust.
12053 (get_instantiated_value_entry): Likewise.
12054 (global_cache): New global.
12055 (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
12056 instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
12057 instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
12058 (instantiate_scev_name): Adjust.
12059 (instantiate_scev): Construct global instead of local cache.
12060 (resolve_mixers): Likewise.
12062 2013-09-18 Daniel Morris <danielm@ecoscentric.com>
12063 Paolo Carlini <paolo.carlini@oracle.com>
12066 * doc/implement-cxx.texi: Fix references to the C++ standards.
12068 2013-09-18 Jakub Jelinek <jakub@redhat.com>
12070 * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
12071 * tree-vect-data-refs.c (vect_analyze_data_refs): For
12072 simd_lane_access drs, update also DR_ALIGNED_TO.
12074 2013-09-18 Marek Polacek <polacek@redhat.com>
12077 * doc/extend.texi: Document no_sanitize_undefined attribute.
12078 * builtins.c (fold_builtin_0): Don't sanitize function if it has the
12079 no_sanitize_undefined attribute.
12081 2013-09-18 Nick Clifton <nickc@redhat.com>
12083 * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
12084 (ASM_DECLARE_FUNCTION_NAME): Define.
12086 2013-09-17 Trevor Saunders <tsaunders@mozilla.com>
12088 * compare-elim.c (find_comparison_dom_walker): New class
12089 (find_comparisons_in_bb): Rename to
12090 find_comparison_dom_walker::before_dom_children
12091 (find_comparisons): Adjust
12092 * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
12094 (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
12095 * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
12096 (init_walk_dominator_tree): Remove declaration.
12097 (fini_walk_dominator_tree): Remove declaration.
12098 * fwprop.c (single_def_use_dom_walker): New class
12099 (single_def_use_enter_block): Convert to
12100 single_def_use_dom_walker::before_dom_children.
12101 (single_def_use_leave_block): Convert to
12102 single_def_use_dom_walker::after_dom_children.
12103 (build_single_def_use_links): Adjust.
12104 * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
12106 (find_candidates_in_block): Convert to
12107 find_candidates_dom_walker::before_dom_children.
12108 (execute_strength_reduction): Adjust.
12109 * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
12110 (sese_dom_walker): New class.
12111 (sese_dom_walker::sese_dom_walker): New constructor.
12112 (sese_dom_walker::~sese_dom_walker): New destructor.
12113 (build_sese_conditions_before): Convert to
12114 sese_dom_walker::before_dom_children.
12115 (build_sese_conditions_after): Convert to
12116 sese_dom_walker::after_dom_children.
12117 (build_poly_scop): Adjust
12118 * tree-into-ssa.c (rewrite_dom_walker): New class
12119 (rewrite_enter_block): Convert to
12120 rewrite_dom_walker::before_dom_children.
12121 (rewrite_leave_block): Convert to
12122 rewrite_dom_walker::after_dom_children.
12123 (rewrite_update_dom_walker): New class.
12124 (rewrite_update_enter_block): Convert to
12125 rewrite_update_dom_walker::before_dom_children.
12126 (rewrite_update_leave_block): Convert to
12127 rewrite_update_dom_walker::after_dom_children.
12128 (rewrite_blocks, rewrite_into_ssa): Adjust.
12129 (mark_def_dom_walker): New class.
12130 (mark_def_dom_walker::mark_def_dom_walker): New constructor.
12131 (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
12132 (mark_def_sites_blocks): Convert to
12133 mark_def_dom_walker::before_dom_children.
12134 (mark_def_site_blocks): Remove.
12135 * tree-ssa-dom.c (dom_opt_dom_walker): New class.
12136 (tree_ssa_dominator_optimize): Adjust.
12137 (dom_thread_across_edge): Convert to method
12138 dom_opt_dom_walker::thread_across_edge.
12139 (dom_opt_enter_block): Convert to member function
12140 dom_opt_dom_walker::before_dom_children.
12141 (dom_opt_leave_block): Convert to member function
12142 dom_opt_dom_walker::after_dom_children.
12143 * tree-ssa-dse.c (dse_dom_walker): New class.
12144 (dse_enter_block): Convert to member function
12145 dse_dom_walker::before_dom_children.
12146 (tree_ssa_dse): Adjust.
12147 * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
12148 (determine_invariantness_stmt): Convert to method
12149 invariantness_dom_walker::before_dom_children.
12150 (determine_invariantness): Remove
12151 (move_computations_dom_walker): New class.
12152 (move_computations_stmt): Convert to method
12153 move_computations_dom_walker::before_dom_children.
12154 (move_computations, tree_ssa_lim): Adjust.
12155 * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
12156 (nt_init_block): Convert to method
12157 notrappping_dom_walker::before_dom_children.
12158 (nt_fini_block): Convert to method
12159 method nontrapping_dom_walker::after_dom_children.
12160 (get_non_trapping): Adjust.
12161 * tree-ssa-pre.c (eliminate_dom_walker): New class.
12162 (eliminate_bb): Convert to method
12163 eliminate_dom_walker::before_dom_children.
12164 (eliminate_leave_block): Convert to method
12165 eliminate_dom_walker::after_dom_children.
12166 (eliminate): Adjust.
12167 * tree-ssa-strlen.c (strlen_dom_walker): New class.
12168 (strlen_enter_block): Convert to method
12169 strlen_dom_walker::before_dom_children.
12170 (strlen_leave_block): Convert to method
12171 method strlen_dom_walker::after_dom_children.
12172 (tree_ssa_strlen): Adjust.
12173 * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
12174 (tree_ssa_uncprop): Adjust.
12175 (uncprop_leave_block): Convert to method
12176 uncprop_dom_walker::after_dom_children.
12177 (uncprop_leave_block): Convert to method
12178 uncprop_dom_walker::before_dom_children.
12180 2013-09-18 Bin Cheng <bin.cheng@arm.com>
12182 * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
12183 branch in same basic block. Check both src and dest of the move insn.
12185 2013-09-17 Nick Clifton <nickc@redhat.com>
12187 * config/rl78/rl78-real.md (bf): New pattern.
12189 * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
12190 (rl78_print_operand): Do not put a # before a %B.
12191 * config/rl78/rl78.opt: Tweak doc strings.
12193 2013-09-17 DJ Delorie <dj@redhat.com>
12195 * config/rl78/constraints.md (Wcv): Allow up to $r31.
12196 * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
12197 (rl78_option_override): Likewise, if -mallregs.
12198 (is_virtual_register): Likewise.
12199 * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
12200 (REGNO_OK_FOR_BASE_P): Likewise.
12201 * config/rl78/rl78.opt (-mallregs): New.
12203 2013-09-17 Nick Clifton <nickc@redhat.com>
12205 * config/rl78/rl78.c (need_to_save): Change return type to bool.
12206 For interrupt functions: save all call clobbered registers if the
12207 interrupt handler is not a leaf function.
12208 (rl78_expand_prologue): Always recompute the frame information.
12209 For interrupt functions: only select bank 0 if one of the bank 0
12210 registers is going to be psuhed.
12212 2013-09-17 DJ Delorie <dj@redhat.com>
12214 * config/rl78/constraints.md: For each W* constraint, rename to C*
12215 and create a W* constraint that checks for an optional ES: prefix
12217 * config/rl78/rl78.md (UNS_ES_ADDR): New.
12218 (es_addr): New. Used to wrap far addresses.
12219 * config/rl78/rl78-protos.h (rl78_es_addr): New.
12220 (rl78_es_base): New.
12221 * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
12222 wrapped far addresses.
12223 (rl78_print_operand_1): Unwrap far addresses before processing.
12224 (rl78_lo16): Wrap far addresses in unspecs.
12225 (rl78_es_addr): New.
12226 (rl78_es_base): New.
12227 (insn_ok_now): Check for not-yet-wrapped far addresses.
12228 (transcode_memory_rtx): Properly re-wrap far addresses.
12230 2013-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
12232 * config/sparc/t-rtems: Add leon3 multilibs.
12234 2013-09-17 Cong Hou <congh@google.com>
12236 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
12237 when checking the dot production pattern. The type of rhs operand
12238 of multiply is now checked correctly.
12240 2013-09-17 Jeff Law <law@redhat.com>
12242 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
12243 edge implied equivalences into successor phis.
12244 * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
12245 here from tree-ssa-threadedge.c.
12246 (mark_threaded_blocks): When threading through a joiner, if both
12247 successors of the joiner's clone reach the same block, verify the
12248 PHI arguments are equal. If not, cancel the jump threading request.
12249 * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
12250 tree-ssa-threadupdate.c
12251 (thread_across_edge): Don't check PHI argument equality when
12252 threading through joiner block here.
12254 2013-09-17 Andrew MacLeod <amacleod@redhat.com>
12256 * tree-flow.h (ssa_undefined_value_p): Remove prototype.
12257 * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
12258 (warn_uninit, warn_uninitialized_vars,
12259 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
12260 Move to tree-ssa-uninit.c.
12261 * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
12262 (has_undefined_value_p): New. Pass dependant parts of
12263 ssa_undefined_value_p.
12264 (uninit_undefined_value_p): Use has_undefined_value_p.
12265 (warn_uninit, warn_uninitialized_vars,
12266 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
12267 Move from tree-ssa.c.
12268 * tree-ssa.h: Adjust prototypes.
12270 2013-09-17 Jan Hubicka <jh@suse.cz>
12272 PR middle-end/58332
12273 * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
12274 * ipa-inline.c (can_inline_edge_p): Do not downgrade
12275 FUNCTION_NOT_OPTIMIZED.
12276 * ipa-inline-analysis.c (compute_inline_parameters): Function
12277 not optimized is not inlinable unless it is alwaysinline.
12278 (inline_analyze_function): Force calls in not optimized
12279 function not inlinable.
12281 2013-09-17 Jan Hubicka <jh@suse.cz>
12283 PR middle-end/58329
12284 * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
12286 * ipa.c (function_and_variable_visibility): Likewise.
12287 * ipa-profile.c (ipa_profile): Likewise.
12289 2013-09-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
12292 * cgraph.c (cgraph_function_body_availability): Check for ifunc
12293 attribute, and don't inline the resolver in this case.
12295 2013-09-17 Teresa Johnson <tejohnson@google.com>
12297 * coverage.c (get_coverage_counts): Add missing newline.
12299 2013-09-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12301 PR tree-optimization/58088
12302 * fold-const.c (mask_with_trailing_zeros): New function.
12303 (fold_binary_loc): Make sure we don't recurse infinitely
12304 when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
12305 Use mask_with_trailing_zeros where appropriate.
12307 2013-09-17 Yuri Rumyantsev <ysrumyan@gmail.com>
12309 * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
12310 of 'prev' var to get better distance estimation.
12312 2013-09-17 Eric Botcazou <ebotcazou@adacore.com>
12314 * tree-inline.h (struct copy_body_data): Add transform_parameter.
12315 * tree-inline.c (is_parameter_of): New predicate.
12316 (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
12317 a parameter has been remapped.
12318 (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
12319 (optimize_inline_calls): Initialize transform_parameter.
12320 (copy_gimple_seq_and_replace_locals): Likewise.
12321 (tree_function_versioning): Likewise.
12322 (maybe_inline_call_in_expr): Likewise.
12324 2013-09-17 Nick Clifton <nickc@redhat.com>
12326 * config/msp430/msp430-protos.h: Add prototypes for new functions.
12327 * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
12328 interrupt handlers.
12329 (is_attr_func): New function.
12330 (msp430_is_interrupt_func): New function.
12331 (is_naked_func): New function.
12332 (is_reentrant_func): New function.
12333 (is_critical_func): New function.
12334 (msp430_start_function): Add annotations for function attributes.
12335 (msp430_attr): New function.
12336 (msp430_attribute_table): New.
12337 (msp430_function_section): New function.
12338 (TARGET_ASM_FUNCTION_SECTION): Define.
12339 (msp430_builtin): New enum.
12340 (msp430_init_builtins): New function.
12341 (msp430_builtin_devl): New function.
12342 (msp430_expand_builtin): New function.
12343 (TARGET_INIT_BUILTINS): Define.
12344 (TARGET_EXPAND_BUILTINS): Define.
12345 (TARGET_BUILTIN_DECL): Define.
12346 (msp430_expand_prologue): Add support for naked, interrupt,
12347 critical and reentrant functions.
12348 (msp430_expand_epilogue): Likewise.
12349 (msp430_print_operand): Handle 'O' character.
12350 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
12352 * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
12353 UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
12354 (pushm): Use a 'n' rather than an 'i' constraint.
12355 (msp_return): Add generation of the interrupt return instruction.
12356 (disable_interrupts): New pattern.
12357 (enable_interrupts): New pattern.
12358 (push_intr_state): New pattern.
12359 (pop_intr_state): New pattern.
12360 (bic_SR): New pattern.
12361 (bis_SR): New pattern.
12362 * doc/extend.texi: Document MSP430 function attributes and builtin
12365 2013-09-17 Richard Biener <rguenther@suse.de>
12367 PR tree-optimization/58432
12368 * tree-loop-distribution.c (tree_loop_distribution): Also
12369 scan PHIs for outside loop uses and seed a partition from them.
12371 2013-09-17 Bin Cheng <bin.cheng@arm.com>
12373 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
12374 (restructure_reference): Call backtrace_base_for_ref.
12376 2013-09-17 Alan Modra <amodra@gmail.com>
12379 * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
12382 2013-09-16 DJ Delorie <dj@redhat.com>
12384 * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
12385 vregs location for RL78/G10.
12386 (rl78_expand_prologue): Avoid SEL on G10.
12387 (rl78_expand_epilogue): Likewise.
12388 (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
12389 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
12390 __RL78_G10__ when appropriate.
12391 (ASM_SPEC): Pass -mg10 along to the assembler.
12392 * config/rl78/rl78.md (sel_rb): Disable for G10.
12393 * config/rl78/rl78.opt: Add -mg10 option.
12394 * config/rl78/t-rl78: Add -mg10 multilib.
12396 2013-09-16 Xinliang David Li <davidxl@google.com>
12398 * tree-if-conv.c (main_tree_if_conversion): Check new flag.
12399 * omp-low.c (omp_max_vf): Ditto.
12400 (expand_omp_simd): Ditto.
12401 * tree-vectorizer.c (vectorize_loops): Ditto.
12402 (gate_vect_slp): Ditto.
12403 (gate_increase_alignment): Ditto.
12404 * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
12405 * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
12406 (gate_tree_vectorize): Name change.
12407 (tree_vectorize): Ditto.
12408 (pass_vectorize::gate): Call new function.
12409 (pass_vectorize::execute): Ditto.
12410 * opts.c: O3 default setting change.
12411 (finish_options): Check new flag.
12412 * doc/invoke.texi: Document new flags.
12413 * common.opt: New flags.
12415 2013-09-16 Andreas Schwab <schwab@linux-m68k.org>
12417 * doc/tm.texi.in (Cond Exec Macros): Remove node.
12418 (Condition Code): Don't reference it.
12419 * doc/tm.texi: Regenerate.
12421 2013-09-16 Vladimir Makarov <vmakarov@redhat.com>
12423 PR middle-end/58418
12424 * lra-constraints.c (undo_optional_reloads): Consider all optional
12425 reload even if it did not get a hard reg.
12427 2013-09-16 Teresa Johnson <tejohnson@google.com>
12429 * dumpfile.c (dump_loc): Remove newline emission.
12430 * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
12431 emission to dump_printf_loc calls where missing.
12432 (vect_mark_for_runtime_alias_test): Ditto.
12433 (vect_analyze_data_ref_dependence): Ditto.
12434 (vect_analyze_data_ref_dependences): Ditto.
12435 (vect_slp_analyze_data_ref_dependence): Ditto.
12436 (vect_slp_analyze_data_ref_dependences): Ditto.
12437 (vect_compute_data_ref_alignment): Ditto.
12438 (vect_update_misalignment_for_peel): Ditto.
12439 (vect_verify_datarefs_alignment): Ditto.
12440 (vector_alignment_reachable_p): Ditto.
12441 (vect_get_data_access_cost): Ditto.
12442 (vect_enhance_data_refs_alignment): Ditto.
12443 (vect_find_same_alignment_drs): Ditto.
12444 (vect_analyze_data_refs_alignment): Ditto.
12445 (vect_analyze_group_access): Ditto.
12446 (vect_analyze_data_ref_access): Ditto.
12447 (vect_analyze_data_ref_accesses): Ditto.
12448 (vect_prune_runtime_alias_test_list): Ditto.
12449 (vect_analyze_data_refs): Ditto.
12450 (vect_create_addr_base_for_vector_ref): Ditto.
12451 (vect_create_data_ref_ptr): Ditto.
12452 (vect_grouped_store_supported): Ditto.
12453 (vect_grouped_load_supported): Ditto.
12454 * value-prof.c (check_counter): Ditto.
12455 (check_ic_target): Ditto.
12456 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
12457 (vect_recog_widen_mult_pattern): Ditto.
12458 (vect_recog_widen_sum_pattern): Ditto.
12459 (vect_recog_over_widening_pattern): Ditto.
12460 (vect_recog_widen_shift_pattern): Ditto.
12461 (vect_recog_rotate_pattern): Ditto.
12462 (vect_recog_vector_vector_shift_pattern): Ditto.
12463 (vect_recog_divmod_pattern): Ditto.
12464 (vect_recog_mixed_size_cond_pattern): Ditto.
12465 (vect_recog_bool_pattern): Ditto.
12466 (vect_pattern_recog_1): Ditto.
12467 (vect_pattern_recog): Ditto.
12468 * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
12469 (vect_is_simple_iv_evolution): Ditto.
12470 (vect_analyze_scalar_cycles_1): Ditto.
12471 (vect_get_loop_niters): Ditto.
12472 (vect_analyze_loop_1): Ditto.
12473 (vect_analyze_loop_form): Ditto.
12474 (vect_analyze_loop_operations): Ditto.
12475 (vect_analyze_loop_2): Ditto.
12476 (vect_analyze_loop): Ditto.
12477 (report_vect_op): Ditto.
12478 (vect_is_slp_reduction): Ditto.
12479 (vect_is_simple_reduction_1): Ditto.
12480 (vect_get_known_peeling_cost): Ditto.
12481 (vect_estimate_min_profitable_iters): Ditto.
12482 (vect_model_reduction_cost): Ditto.
12483 (vect_model_induction_cost): Ditto.
12484 (get_initial_def_for_induction): Ditto.
12485 (vect_create_epilog_for_reduction): Ditto.
12486 (vectorizable_reduction): Ditto.
12487 (vectorizable_induction): Ditto.
12488 (vectorizable_live_operation): Ditto.
12489 (vect_loop_kill_debug_uses): Ditto.
12490 (vect_transform_loop): Ditto.
12491 * tree-vect-stmts.c (vect_mark_relevant): Ditto.
12492 (vect_stmt_relevant_p): Ditto.
12493 (process_use): Ditto.
12494 (vect_mark_stmts_to_be_vectorized): Ditto.
12495 (vect_model_simple_cost): Ditto.
12496 (vect_model_promotion_demotion_cost): Ditto.
12497 (vect_model_store_cost): Ditto.
12498 (vect_get_store_cost): Ditto.
12499 (vect_model_load_cost): Ditto.
12500 (vect_get_load_cost): Ditto.
12501 (vect_init_vector_1): Ditto.
12502 (vect_get_vec_def_for_operand): Ditto.
12503 (vect_finish_stmt_generation): Ditto.
12504 (vectorizable_call): Ditto.
12505 (vectorizable_conversion): Ditto.
12506 (vectorizable_assignment): Ditto.
12507 (vectorizable_shift): Ditto.
12508 (vectorizable_operation): Ditto.
12509 (vectorizable_store): Ditto.
12510 (vectorizable_load): Ditto.
12511 (vectorizable_condition): Ditto.
12512 (vect_analyze_stmt): Ditto.
12513 (vect_transform_stmt): Ditto.
12514 (vect_is_simple_use): Ditto.
12515 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
12516 (vect_can_advance_ivs_p): Ditto.
12517 (vect_update_ivs_after_vectorizer): Ditto.
12518 (vect_do_peeling_for_loop_bound): Ditto.
12519 (vect_gen_niters_for_prolog_loop): Ditto.
12520 (vect_update_inits_of_drs): Ditto.
12521 (vect_create_cond_for_alias_checks): Ditto.
12522 * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
12523 (vect_build_slp_tree_1): Ditto.
12524 (vect_supported_load_permutation_p): Ditto.
12525 (vect_analyze_slp_instance): Ditto.
12526 (vect_analyze_slp): Ditto.
12527 (vect_make_slp_decision): Ditto.
12528 (vect_detect_hybrid_slp): Ditto.
12529 (vect_bb_vectorization_profitable_p): Ditto.
12530 (vect_slp_analyze_bb_1): Ditto.
12531 (vect_update_slp_costs_according_to_vf): Ditto.
12532 (vect_get_mask_element): Ditto.
12533 (vect_transform_slp_perm_load): Ditto.
12534 (vect_schedule_slp_instance): Ditto.
12535 (vect_schedule_slp): Ditto.
12536 (vect_slp_transform_bb): Ditto.
12537 * profile.c (read_profile_edge_counts): Ditto.
12538 (compute_branch_probabilities): Ditto.
12539 * coverage.c (get_coverage_counts): Ditto.
12541 2013-09-16 Diego Novillo <dnovillo@google.com>
12543 * tree-core.h: Add missing comment lines from refactoring of tree.h.
12545 2013-09-16 Jan Hubicka <jh@suse.cz>
12547 * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
12548 abstract functions; for static functions check the presence of body.
12550 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
12552 * config/aarch64/aarch64-simd-builtins.def (fma): New.
12553 * config/aarch64/aarch64-simd.md
12554 (aarch64_mla_elt<mode>): New.
12555 (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
12556 (aarch64_mls_elt<mode>): Likewise.
12557 (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
12558 (aarch64_fma4_elt<mode>): Likewise.
12559 (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
12560 (aarch64_fma4_elt_to_128v2df): Likewise.
12561 (aarch64_fma4_elt_to_64df): Likewise.
12562 (fnma<mode>4): Likewise.
12563 (aarch64_fnma4_elt<mode>): Likewise.
12564 (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
12565 (aarch64_fnma4_elt_to_128v2df): Likewise.
12566 (aarch64_fnma4_elt_to_64df): Likewise.
12567 * config/aarch64/iterators.md (VDQSF): New.
12568 * config/aarch64/arm_neon.h
12569 (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
12570 (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
12572 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
12574 * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
12575 (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
12576 (aarch64_mul3_elt_to_128df): Likewise.
12577 (aarch64_mul3_elt_to_64v2df): Likewise.
12578 * config/aarch64/iterators.md (VEL): Also handle DFmode.
12580 (VMUL_CHANGE_NLANES) Likewise.
12583 * config/aarch64/arm_neon.h
12584 (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
12586 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
12588 * config/aarch64/arm_neon.h
12589 (vcvtx_high_f32_f64): Fix parameters.
12591 2013-09-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12592 Uros Bizjak <ubizjak@gmail.com>
12594 * config/alpha.c: Include tree-ssanames.h.
12596 2013-09-16 Richard Biener <rguenther@suse.de>
12598 * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
12599 (dot_rdg_1): Handle control_dd.
12600 (create_edge_for_control_dependence): New function.
12601 (create_rdg_edges): Add control dependences if asked for.
12602 (build_rdg): Likewise.
12603 (generate_loops_for_partition): If there are not necessary
12604 control stmts remove all their dependencies.
12605 (collect_condition_stmts, rdg_flag_loop_exits): Remove.
12606 (distribute_loop): Pass on control dependences.
12607 (tree_loop_distribution): Compute control dependences and remove
12608 restriction on number of loop nodes.
12610 2013-09-16 Jakub Jelinek <jakub@redhat.com>
12612 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
12613 for internal calls.
12615 2013-09-16 Richard Sandiford <rdsandiford@googlemail.com>
12617 * cse.c (try_const_anchors): Punt on CC modes.
12619 2013-09-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12621 * config/vax/constraints.md (T): Add missing CONSTANT_P check.
12623 2013-09-14 John David Anglin <danglin@gcc.gnu.org>
12626 * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
12627 calls to word_mode.
12629 2013-09-14 Iain Sandoe <iain@codesourcery.com>
12632 * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
12634 (darwin_objc1_section): Likewise.
12635 (darwin_file_end): Emit Image Info section when required.
12637 2013-09-14 Jan Hubicka <jh@suse.cz>
12639 * tree-into-ssa.c (gate_into_ssa): New.
12640 (pass_data_build_ssa): Use it.
12641 * cgraph.h (expand_thunk): Update prototype.
12642 * cgraphunit.c (analyze_function): Expand thunks early.
12643 (expand_thunk): Fix DECL_CONTEXT of reust_decl;
12644 build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
12645 set lowered flag; do not add new function.
12646 (assemble_thunks_and_aliases): Update.
12647 * tree-ssa.c (gate_init_datastructures): New gate.
12648 (pass_data_init_datastructures): Use it.
12650 2013-09-14 Iain Sandoe <iain@codesourcery.com>
12653 * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
12654 xmm register set described in the psABI.
12656 2013-09-13 Evgeny Gavrin <e.gavrin@samsung.com>
12658 * dwarf2out.c (should_emit_struct_debug): Add check
12659 for type_decl variable is not NULL.
12661 2013-09-13 Jacek Caban <jacek@codeweavers.com>
12663 * config.gcc: Use new winnt-c.c target hooks
12664 * config/t-winnt: New file
12665 * config/winnt-c.c: New file
12666 * doc/tm.texi.in: Document new hook
12667 * doc/tm.texi: Regenerated
12669 2013-09-13 Jan Hubicka <jh@suse.cz>
12671 PR middle-end/58094
12672 * ipa-inline.c (check_callers): New function.
12673 (check_caller_edge): Remove.
12674 (want_inline_function_to_all_callers_p): Also permit alises that are
12676 (inline_to_all_callers): Terminate the walk when devirtualization
12677 introduce new calls.
12679 2013-09-13 Jan Hubicka <jh@suse.cz>
12681 * ipa-inline-analysis.c (struct growth_data): Add node.
12682 (do_estimate_growth_1): Fix detection of recursion.
12684 2013-09-13 Jakub Jelinek <jakub@redhat.com>
12686 PR tree-optimization/58392
12687 * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
12688 to avoid shadowing of outer loop variable. If
12689 saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
12690 replace_by_duplicate_decl simduid of loops that have it set and
12691 set dest_cfun->has_simduid_loops and/or
12692 dest_cfun->has_force_vect_loops.
12693 * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
12694 instead of maybe_lookup_decl.
12695 * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
12696 Use id->blocks_to_copy instead of blocks_to_copy. Adjust recursive
12697 call. Copy over force_vect and copy and remap simduid. Set
12698 cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
12699 (copy_cfg_body): Remove blocks_to_copy argument. Use
12700 id->blocks_to_copy instead of blocks_to_copy. Adjust copy_loops
12701 caller. Don't set cfun->has_simduid_loops and/or
12702 cfun->has_force_vect_loops here.
12703 (copy_body): Remove blocks_to_copy argument. Adjust copy_cfg_body
12705 (expand_call_inline, tree_function_versioning): Adjust copy_body
12708 2013-09-13 Martin Jambor <mjambor@suse.cz>
12711 * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
12712 the assert if the edge was a speculative one.
12714 2013-09-13 Richard Biener <rguenther@suse.de>
12716 * tree-data-ref.h (known_dependences_p): Move here ...
12717 * tree-loop-distribution.c (known_dependences_p): ... from here.
12718 (dump_rdg_component, debug_rdg_component): Remove.
12719 (dump_rdg): Adjust.
12720 (generate_loops_for_partition): Use gimple_uid instead of
12721 relying on matching stmt visit order.
12722 (rdg_build_partitions): Take starting stmt vector.
12723 (ldist_gen): Merge into ...
12724 (distribute_loop): ... this function. Do not compute starting
12726 * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
12728 2013-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12730 * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
12731 Set type attribute correctly. Set predicable_short_it attribute.
12732 (cmpsi_shiftsi): Remove %? from output template.
12734 2013-09-13 Richard Biener <rguenther@suse.de>
12736 * tree-loop-distribution.c (struct rdg_component,
12737 rdg_defs_used_in_other_loops_p, free_rdg_components,
12738 rdg_build_components): Remove.
12739 (stmts_from_loop): Do not record virtual PHIs.
12740 (generate_loops_for_partition): Skip virtual PHIs.
12741 (build_rdg_partition_for_component): Rename to ...
12742 (build_rdg_partition_for_vertex): ... this and adjust.
12743 (rdg_build_partitions): Take a vector of starting vertices
12744 instead of components. Remove unnecessary leftover handling.
12745 (ldist_gen): Do not build components or record other stores.
12746 (distribute_loop): Do not distribute loops containing stmts
12749 2013-09-13 Christian Bruel <christian.bruel@st.com>
12752 * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
12754 2013-09-13 Kai Tietz <ktietz@redhat.com>
12756 * config.gcc: Separate cases for mingw and cygwin targets,
12757 and add 64-bit cygwin target case.
12759 * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
12760 dll-export inline-functions.
12761 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
12763 2013-09-13 Jeff Law <law@redhat.com>
12765 PR middle-end/58387
12767 2013-09-06 Jeff Law <law@redhat.com>
12769 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
12770 edge implied equivalences into successor phis.
12772 2013-09-12 DJ Delorie <dj@redhat.com>
12774 * config/rl78/rl78-virt.md: Change from | to \; for asm line
12777 2013-09-12 Brooks Moses <bmoses@google.com>
12780 * Makefile.in: Do not install driver binaries in $(target)/bin.
12782 2013-09-12 DJ Delorie <dj@redhat.com>
12784 * config/rl78/rl78.opt (mrelax): New.
12785 * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
12786 * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
12788 * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
12790 (rl78_expand_epilogue): Likewise.
12792 2013-09-12 Vladimir Makarov <vmakarov@redhat.com>
12794 PR middle-end/58335
12795 * lra-eliminations.c (remove_reg_equal_offset_note): New.
12796 (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
12797 pointer elimination with using remove_reg_equal_offset_note.
12799 2013-09-12 DJ Delorie <dj@redhat.com>
12801 * config/msp430/: New port.
12802 * config.gcc (msp430): Added.
12803 * doc/invoke.texi: Document MSP430 options.
12804 * doc/install.texi: Document msp430-elf
12805 * doc/md.texi: Document msp430-elf
12806 * doc/contrib.texi: Document msp430-elf
12808 * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
12811 2013-09-12 Martin Jambor <mjambor@suse.cz>
12814 * ipa-prop.c (remove_described_reference): Give up if the edge in the
12815 reference descriptor is NULL.
12816 (ipa_edge_removal_hook): If owning a reference descriptor, set its
12819 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
12821 * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
12822 (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
12823 num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
12824 * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
12825 make_temp_ssa_name): move to tree-ssanames.h
12826 * tree-ssa-alias.h: Move prototype.
12827 * tree-ssa.h: Include tree-ssanames.h.
12828 * tree-ssanames.c (FREE_SSANAMES): Move to here.
12829 * tree-ssanames.h: New. Move items from tree-flow*.h
12830 * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
12832 2013-09-12 Richard Biener <rguenther@suse.de>
12834 PR tree-optimization/58404
12835 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
12836 propagate non-invariant addresses into dereferences wrapped
12837 in component references.
12839 2013-09-12 Richard Biener <rguenther@suse.de>
12841 PR tree-optimization/58402
12842 * passes.def: Move pass_late_warn_uninitialized later.
12844 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
12846 * tree-ssa.h: New. Move content from tree-flow.h and
12847 tree-flow-inline.h.
12848 * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
12849 Move prototypes belonging to tree-ssa.c.
12850 * tree-flow-inline.h (redirect_edge_var_map_def,
12851 redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
12853 * gimple.h: Adjust prototypes.
12854 * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
12856 * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
12857 * tree.h: Move prototype to tree-ssa.h.
12858 * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
12859 * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
12860 * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
12861 cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
12862 cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
12863 ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
12864 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
12865 gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
12866 graphite-blocking.c, graphite-clast-to-gimple.c,
12867 graphite-dependences.c, graphite-interchange.c,
12868 graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
12869 graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
12870 ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
12871 ipa-reference.c, ipa-split.c, ipa-utils.c,
12872 loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
12873 lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
12874 passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
12875 tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
12876 tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
12877 tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
12878 tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
12879 tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
12880 tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
12881 tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
12882 tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
12883 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
12884 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
12885 tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
12886 value-prof.c, var-tracking.c,
12887 varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
12889 2013-09-12 Richard Biener <rguenther@suse.de>
12891 PR tree-optimization/58396
12892 * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
12893 (build_rdg): Take a loop-nest parameter, fix memleaks.
12894 (distribute_loop): Compute loop-nest here and pass it to build_rdg.
12896 2013-09-12 Yuri Rumyantsev <ysrumyan@gmail.com>
12898 * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
12901 2013-09-12 Cameron McInally <cameron.mcinally@nyu.edu>
12903 * doc/extend.texi: Fix errors in x86 FMA builtin naming.
12904 The FMA instruction names should have a 'v' prefix.
12906 2013-09-12 Richard Biener <rguenther@suse.de>
12908 * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
12909 (dot_rdg): Use popen instead of system in optional code.
12910 (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
12911 (already_processed_vertex_p): Adjust.
12912 (has_anti_or_output_dependence, predecessor_has_mem_write,
12913 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
12914 rdg_flag_uses): Remove.
12915 (rdg_flag_vertex): Simplify.
12916 (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
12918 (build_rdg_partition_for_component): Process the first vertex
12919 of a component only.
12920 (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
12922 2013-09-12 Alan Modra <amodra@gmail.com>
12924 * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
12926 2013-09-11 DJ Delorie <dj@redhat.com>
12927 Nick Clifton <nickc@redhat.com>
12929 * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
12930 (rl78_stack_based_mem): New.
12931 * config/rl78/constraints.md (Iv08): New.
12940 * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
12942 (movsi): Change from expand to insn-and-split.
12943 (ashrsi3): Clobber AX.
12947 * config/rl78/rl78.md (CC_REG): Fix.
12948 (addsi3): Allow memory and immediate operands.
12949 (addsi3_internal): Split into...
12950 (addsi3_internal_virt): ...new, and ...
12951 (addsi3_internal_real): ...new.
12953 (subsi3_internal_virt): New.
12954 (subsi3_internal_real): New.
12955 (mulsi3): Add memory operand.
12956 (mulsi3_rl78): Likewise.
12957 (mulsi3_g13): Likewise.
12958 * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
12959 (cbranchqi4_real): Add more constraint options.
12960 (cbranchhi4_real): Expand pattern.
12961 (cbranchhi4_real_signed): New.
12962 (cbranchhi4_real_inverted): New.
12963 (cbranchsi4_real_lt): New.
12964 (cbranchsi4_real_ge): New.
12965 (cbranchsi4_real_signed): New.
12966 (cbranchsi4_real): New.
12968 * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
12970 (lshrsi3_virt): Likewise.
12971 (ashlsi3_virt): Likewise.
12972 (cbranchqi4_virt_signed): New.
12973 (cbranchhi4_virt_signed): New.
12974 (cbranchsi4_virt): New.
12975 * config/rl78/rl78.c: Whitespace fixes throughout.
12976 (move_elim_pass): New.
12977 (pass_data_rl78_move_elim): New.
12978 (pass_rl78_move_elim): New.
12979 (make_pass_rl78_move_elim): New.
12980 (rl78_devirt_info): Run devirt earlier.
12981 (rl78_move_elim_info): New.
12982 (rl78_asm_file_start): Register it.
12983 (rl78_split_movsi): New.
12984 (rl78_as_legitimate_address): Allow virtual base registers when
12986 (rl78_addr_space_convert): Remove spurious debug stuff.
12987 (rl78_print_operand_1): Add z,s,S,r,E modifiers.
12988 (rl78_print_operand): More cases for not printing '#'.
12989 (rl78_expand_compare): Remove most of the logic.
12990 (content_memory): New.
12991 (clear_content_memory): New.
12992 (get_content_index): New.
12993 (get_content_name): New.
12994 (display_content_memory): New.
12995 (update_content): New.
12996 (record_content): New.
12997 (already_contains): New.
12998 (insn_ok_now): Re-recog insns with virtual registers.
12999 (add_postponed_content_update): New.
13000 (process_postponed_content_update): New.
13001 (gen_and_emit_move): New.
13002 (transcode_memory_rtx): Record new location content.
13003 Use gen_and_emit_move.
13004 (force_into_acc): New.
13005 (move_to_acc): Use gen_and_emit_move.
13006 (move_from_acc): Likewise.
13007 (move_acc_to_reg): Likewise.
13008 (move_to_x): Likewise.
13009 (move_to_hl): Likewise.
13010 (move_to_de): Likewise.
13011 (rl78_alloc_physical_registers_op1): Record location content.
13012 (has_constraint): New.
13013 (rl78_alloc_physical_registers_op2): Record location content.
13014 Optimize use of HL.
13015 (rl78_alloc_physical_registers_ro1): Likewise.
13016 (rl78_alloc_physical_registers_cmp): Likewise.
13017 (rl78_alloc_physical_registers_umul): Likewise.
13018 (rl78_alloc_address_registers_macax): New.
13019 (rl78_alloc_physical_registers): Initialize and set location
13020 content memory as needed.
13021 (rl78_reorg): Make sure split2 is called.
13022 (rl78_rtx_costs): New.
13024 2013-09-11 Richard Sandiford <rdsandiford@googlemail.com>
13026 * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
13027 for (not (neg ...)) and (neg (not ...)) cases.
13029 2013-09-11 Richard Biener <rguenther@suse.de>
13031 PR middle-end/58377
13032 * passes.def: Split critical edges before late uninit warning passes.
13033 * tree-cfg.c (pass_split_crit_edges): Implement clone method.
13035 2013-09-11 Jakub Jelinek <jakub@redhat.com>
13037 PR tree-optimization/58385
13038 * fold-const.c (build_range_check): If both low and high are NULL,
13039 use omit_one_operand_loc to preserve exp side-effects.
13041 2013-09-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13043 * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
13045 2013-09-11 Richard Biener <rguenther@suse.de>
13047 * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
13048 dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
13049 dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
13050 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
13051 stmts_from_loop, known_dependences_p, build_empty_rdg,
13052 build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
13053 * tree-loop-distribution.c: ... here.
13054 * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
13055 RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
13056 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
13057 struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
13058 * tree-loop-distribution.c: ... here.
13059 * tree-loop-distribution.c: Include gimple-pretty-print.h.
13060 (struct partition_s): Add loops member.
13061 (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
13062 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
13063 build_rdg_partition_for_component, rdg_build_partitions): Adjust.
13065 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13066 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13067 Sergey Lega <sergey.s.lega@intel.com>
13068 Anna Tikhonova <anna.tikhonova@intel.com>
13069 Ilya Tocar <ilya.tocar@intel.com>
13070 Andrey Turetskiy <andrey.turetskiy@intel.com>
13071 Ilya Verbin <ilya.verbin@intel.com>
13072 Kirill Yukhin <kirill.yukhin@intel.com>
13073 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13075 * config/i386/constraints.md (k): New.
13077 * config/i386/i386.c (const regclass_map): Add new mask registers.
13078 (dbx_register_map): Ditto.
13079 (dbx64_register_map): Ditto.
13080 (svr4_dbx_register_map): Ditto.
13081 (ix86_conditional_register_usage): Squash mask registers if AVX512F is
13083 (ix86_preferred_reload_class): Disable constants for mask registers.
13084 (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
13085 (ix86_hard_regno_mode_ok): Support new mask registers.
13086 (x86_order_regs_for_local_alloc): Ditto.
13087 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
13088 (FIXED_REGISTERS): Add new mask registers.
13089 (CALL_USED_REGISTERS): Ditto.
13090 (REG_ALLOC_ORDER): Ditto.
13091 (VALID_MASK_REG_MODE): New.
13092 (FIRST_MASK_REG): Ditto.
13093 (LAST_MASK_REG): Ditto.
13094 (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
13095 (MAYBE_MASK_CLASS_P): New.
13096 (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
13097 (REG_CLASS_CONTENTS): Ditto.
13098 (MASK_REGNO_P): New.
13099 (ANY_MASK_REG_P): Ditto.
13100 (HI_REGISTER_NAMES): Add new mask registers.
13101 * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
13102 MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
13104 (attribute "type"): Add mskmov, msklog.
13105 (attribute "length_immediate"): Support them.
13106 (attribute "memory"): Ditto.
13107 (attribute "prefix_0f"): Ditto.
13108 (*movhi_internal): Support new mask registers.
13109 (*movqi_internal): Ditto.
13110 (define_split): Split out clobber pattern is a logic
13111 insn on mask registers.
13112 (*k<logic><mode>): New.
13113 (*andhi_1): Extend to support mask regs.
13114 (*andqi_1): Extend to support mask regs.
13115 (kandn<mode>): New.
13116 (define_split): Split and-not to and and not if operands
13118 (*<code><mode>_1): Separate HI mode to new pattern...
13119 (*<code>hi_1): This.
13120 (*<code>qi_1): Extend to support mask regs.
13121 (kxnor<mode>): New.
13122 (kortestzhi): Ditto.
13123 (kortestchi): Ditto.
13125 (*one_cmpl<mode>2_1): Remove HImode and handle it...
13126 (*one_cmplhi2_1): ...Here, now with mask registers support.
13127 (*one_cmplqi2_1): Support new mask registers.
13128 (HI/QImode arithmetics splitter): Don't split if mask registers
13130 (HI/QImode not splitter): Ditto.
13131 * config/i386/predicated.md (mask_reg_operand): New.
13132 (general_reg_operand): Ditto.
13134 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13136 * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
13137 * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
13139 2013-09-10 Jeff Law <law@redhat.com>
13141 PR tree-optimization/58380
13142 * tree-ssa-threadupdate.c (thread_block): Recognize another case
13143 of threading through a buried loop header.
13145 * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
13146 return value for single successor case.
13148 2013-09-10 Jan Hubicka <jh@suse.cz>
13150 * ipa-devirt.c (ipa_devirt): Enable with LTO.
13152 2013-09-10 Richard Earnshaw <rearnsha@arm.com>
13155 * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
13156 support conditional execution.
13157 (combine_vcvt_f64_<FCVTI32typename>): Likewise.
13159 2013-09-10 Vladimir Makarov <vmakarov@redhat.com>
13161 * lra.c (lra): Clear lra_optional_reload_pseudos before every
13163 * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
13164 Check destination too to check move insn.
13165 (undo_optional_reloads): Add check that the original peudo did not
13166 changed its allocation and the optional reload was inherited on last
13167 inheritance pass. Break loop after deciding to keep optional reload.
13168 (lra_undo_inheritance): Add check that inherited pseudo still in
13171 2013-09-10 James Greenhalgh <james.greenhalgh@arm.com>
13173 * config/aarch64/aarch64.md (generic_sched): New.
13174 * config/aarch64/aarch64-generic.md (load): Make conditional
13175 on generic_sched attribute.
13176 (nonload): Likewise.
13178 2013-09-10 Jan Hubicka <jh@suse.cz>
13180 * lto-cgraph.c: Include ipa-utils.h.
13181 (compute_ltrans_boundary): Also add possible targets into the boundary.
13183 2013-09-10 Jan Hubicka <jh@suse.cz>
13185 * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
13186 VAR_DECL of vtable rather than full expression.
13188 2013-09-10 Jan Hubicka <jh@suse.cz>
13189 Paolo Carlini <paolo.carlini@oracle.com>
13191 * cgraphunit.c (analyze_functions): Save input_location, set it
13192 to UNKNOWN_LOCATION and restore it at the end.
13194 2013-09-10 Martin Jambor <mjambor@suse.cz>
13196 * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
13197 represented by a thunk.
13199 2013-09-10 Jeff Law <law@redhat.com>
13201 PR tree-optimization/58343
13202 * tree-ssa-threadupdate.c (thread_block): Identify and disable
13203 jump threading requests through loop headers buried in the middle
13204 of a jump threading path.
13206 * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
13207 in return value/type.
13209 2013-09-10 Jakub Jelinek <jakub@redhat.com>
13211 PR rtl-optimization/58365
13212 * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
13213 resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
13216 2013-09-10 Richard Biener <rguenther@suse.de>
13218 * tree-data-ref.h (build_rdg): Drop all parameters but loop.
13219 * tree-data-ref.c (create_rdg_vertices): Collect all data
13220 references, signal failure to the caller, use data-ref API.
13221 (build_rdg): Compute data references only once. Maintain lifetime
13222 of data references and data dependences from within RDG.
13223 (free_rdg): Free dependence relations.
13224 * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
13225 inventing extra dependences.
13226 (distribute_loop): Update for RDG API changes.
13228 2013-09-10 Kai Tietz <ktietz@redhat.com>
13230 * doc/invoke.texi (fms-extensions): Document changed
13231 behavior for ms-abi targets.
13232 * config/i386/i386.c (ix86_option_override_internal):
13233 Set default value of option -fms-extension for ms-abi targets.
13235 2013-09-10 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
13237 * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
13239 2013-09-10 Alan Modra <amodra@gmail.com>
13242 * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
13244 2013-09-10 Alan Modra <amodra@gmail.com>
13246 * config/rs6000/predicates.md (add_cint_operand): New.
13247 (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
13248 * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
13249 using add_cint_operand.
13250 (largetoc_high_plus_aix): Likewise.
13252 2013-09-09 Jakub Jelinek <jakub@redhat.com>
13254 PR tree-optimization/58364
13255 * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
13256 BOOLEAN_TYPE, only invert in_p and continue with arg0 if
13257 the current range can't be an unconditional true or false.
13259 2013-09-09 James Greenhalgh <james.greenhalgh@arm.com>
13261 * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
13263 2013-09-09 Uros Bizjak <ubizjak@gmail.com>
13265 * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
13267 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
13270 * doc/invoke.texi (-Wdelete-incomplete): Document it.
13272 2013-09-09 Ian Bolton <ian.bolton@arm.com>
13274 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
13275 NO_REGS for immediate that can't be moved directly into FP_REGS.
13277 2013-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13279 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
13280 comparison with negated operand.
13281 * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
13284 2013-09-09 Richard Biener <rguenther@suse.de>
13286 PR middle-end/58326
13287 * cfgloopmanip.c (fix_bb_placements): When fixing the placement
13288 of a subloop record all its block as affecting loop-closed SSA form.
13290 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
13292 * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
13293 of an rtx/bitpos pair.
13294 (store_fixed_bit_field): Update accordingly.
13296 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
13298 * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
13300 * builtins.c (expand_errno_check): Likewise.
13301 * dwarf2cfi.c (init_return_column_size): Likewise.
13302 * except.c (sjlj_mark_call_sites): Likewise.
13303 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
13304 * lra-constraints.c (emit_inc): Likewise.
13305 * ree.c (combine_set_extension): Likewise.
13306 * regmove.c (fixup_match_2): Likewise.
13307 * reload1.c (inc_for_reload): Likewise.
13309 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
13311 * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
13312 (force_to_mode, simplify_shift_const_1, simplify_comparison):
13313 Use gen_int_mode with the mode of the associated simplify_* call.
13314 * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
13315 * expmed.c (expand_shift_1): Likewise.
13316 * function.c (instantiate_virtual_regs_in_insn): Likewise.
13317 * loop-iv.c (iv_number_of_iterations): Likewise.
13318 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
13319 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
13321 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
13323 * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
13324 of the associated expand_* call.
13325 (asan_emit_stack_protection): Likewise.
13326 * builtins.c (round_trampoline_addr): Likewise.
13327 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
13328 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
13329 (emit_store_flag): Likewise.
13330 * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
13331 (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
13333 * function.c (instantiate_virtual_regs_in_insn): Likewise.
13334 * ifcvt.c (noce_try_store_flag_constants): Likewise.
13335 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
13336 * modulo-sched.c (generate_prolog_epilog): Likewise.
13337 * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
13338 (expand_ctz, expand_ffs, expand_unop): Likewise.
13340 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
13342 * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
13343 of the associated gen_rtx_* call.
13344 * caller-save.c (init_caller_save): Likewise.
13345 * combine.c (find_split_point, make_extraction): Likewise.
13346 (make_compound_operation): Likewise.
13347 * dwarf2out.c (mem_loc_descriptor): Likewise.
13348 * explow.c (plus_constant, probe_stack_range): Likewise.
13349 * expmed.c (expand_mult_const): Likewise.
13350 * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
13351 * reload1.c (init_reload): Likewise.
13352 * valtrack.c (cleanup_auto_inc_dec): Likewise.
13353 * var-tracking.c (adjust_mems): Likewise.
13354 * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
13355 rather than gen_rtx_fmt_ee.
13357 2013-09-09 Jan Hubicka <jh@suse.cz>
13359 PR middle-end/58294
13360 * value-prof.c (gimple_ic): Copy also abnormal edges.
13362 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
13364 * asan.c (asan_shadow_cst): Use gen_int_mode.
13366 2013-09-08 Jan Hubicka <jh@suse.cz>
13368 * ipa-profile.c: Add toplevel comment.
13369 (ipa_propagate_frequency_1): Be more conservative when profile is read.
13370 (contains_hot_call_p): New function.
13371 (ipa_propagate_frequency): Set frequencies based on counts when
13373 * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
13374 profile; do not tamper with profile after inlining if it is read.
13376 2013-09-08 Jan Hubicka <jh@suse.cz>
13378 * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
13381 2013-09-08 Jan Hubicka <jh@suse.cz>
13383 * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
13384 summary generation.
13386 2013-09-08 Jeff Law <law@redhat.com>
13389 * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
13392 2013-09-08 Andi Kleen <ak@linux.intel.com>
13394 * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
13396 2013-09-08 Jan Hubicka <jh@suse.cz>
13398 * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
13400 2013-09-08 Richard Sandiford <rdsandiford@googlemail.com>
13402 * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
13403 for non-debug insns.
13404 * lra.c (new_insn_reg): Take the containing insn as a parameter.
13405 Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
13406 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
13409 2013-09-08 Jan Hubicka <jh@suse.cz>
13411 * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
13412 targets and devirtualize to BUILT_IN_UNREACHABLE.
13413 * timevar.def (TV_IPA_UNREACHABLE): New timevar.
13414 * ipa.c (walk_polymorphic_call_targets): New function.
13415 (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
13416 functions; use the new timevar.
13417 * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
13418 was removed from the program.
13419 (record_binfo): If BINFO corresponds to an anonymous namespace, we may
13420 not consider it in the walk when its vtable is dead.
13421 (possible_polymorphic_call_targets_1): Pass anonymous flag to
13423 (devirt_variable_node_removal_hook): New function.
13424 (possible_polymorphic_call_targets): Also register
13425 devirt_variable_node_removal_hook.
13426 (ipa_devirt): Do not do non-speculative devirtualization.
13427 (gate_ipa_devirt): One execute if devirtualizing speculatively.
13429 2013-09-08 Jan Hubicka <jh@suse.cz>
13431 * cgraph.h (varpool_node_hook, varpool_node_hook_list,
13432 varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
13433 varpool_remove_variable_insertion_hook): Declare.
13434 * varpool.c (varpool_node_hook_list): New structure.
13435 (first_varpool_node_removal_hook,
13436 first_varpool_variable_insertion_hook): New variables.
13437 (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
13438 varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
13439 varpool_remove_variable_insertion_hook,
13440 varpool_call_variable_insertion_hooks): New functions.
13441 (varpool_remove_node): Use it.
13443 2013-09-08 Paolo Carlini <paolo.carlini@oracle.com>
13446 * diagnostic.c (diagnostic_build_prefix): When s.file is
13447 "<built-in>" don't output line and column numbers.
13449 2013-09-06 Jan Hubicka <jh@suse.cz>
13451 * cgraphunit.c (expand_thunk): Get body before touching arguments.
13452 * lto-streamer-out.c: Stream thunks, too.
13453 * lto-streamer-in.c (input_function): Pop cfun here
13454 (lto_read_body): Instead of here.
13456 2013-09-06 Caroline Tice <cmtice@google.com>
13458 * doc/install.texi: Add documentation for the --enable-vtable-verify
13459 and the --disable-libvtv configure options.
13461 2013-09-06 Jeff Law <law@redhat.com>
13463 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
13464 edge implied equivalences into successor phis.
13466 2013-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
13468 * resource.c (mark_referenced_resources): Handle COND_EXEC.
13470 2013-09-06 Claudiu Zissulescu <claziss@synopsys.com>
13472 * resource.c (mark_target_live_regs): Compute resources taking
13473 into account if a call is predicated or not.
13475 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
13477 * toplev.c (output_stack_usage): Be prepared for suffixes created by
13478 the compiler in the function names.
13480 2013-09-06 Jan Hubicka <jh@suse.cz>
13482 PR middle-end/58094
13483 * ipa-inline.c (has_caller_p): New function.
13484 (want_inline_function_to_all_callers_p): Use it.
13485 (sum_callers, inline_to_all_callers): Break out from ...
13486 (ipa_inline): ... here.
13488 2013-09-06 Jan Hubicka <jh@suse.cz>
13490 * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
13491 only when AVX is enabled.
13493 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
13495 * config/aarch64/aarch64.md
13496 (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
13497 is fpsimd_<load/store>2.
13498 (load_pair<mode>): Likewise.
13499 (store_pair<mode>): Likewise.
13501 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
13503 * config/arm/types.md (type): Add "mrs" type.
13504 * config/aarch64/aarch64.md
13505 (aarch64_load_tp_hard): Make type "mrs".
13506 * config/arm/arm.md
13507 (load_tp_hard): Make type "mrs".
13508 * config/arm/cortex-a15.md: Update with new attributes.
13509 * config/arm/cortex-a5.md: Update with new attributes.
13510 * config/arm/cortex-a53.md: Update with new attributes.
13511 * config/arm/cortex-a7.md: Update with new attributes.
13512 * config/arm/cortex-a8.md: Update with new attributes.
13513 * config/arm/cortex-a9.md: Update with new attributes.
13514 * config/arm/cortex-m4.md: Update with new attributes.
13515 * config/arm/cortex-r4.md: Update with new attributes.
13516 * config/arm/fa526.md: Update with new attributes.
13517 * config/arm/fa606te.md: Update with new attributes.
13518 * config/arm/fa626te.md: Update with new attributes.
13519 * config/arm/fa726te.md: Update with new attributes.
13521 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
13523 * config/aarch64/aarch64.md
13524 (*movti_aarch64): Use "multiple" for type where v8type is "move2".
13525 (*movtf_aarch64): Likewise.
13526 * config/arm/arm.md
13527 (thumb1_movdi_insn): Use "multiple" for type where more than one
13528 instruction is used for a move.
13529 (*arm32_movhf): Likewise.
13530 (*thumb_movdf_insn): Likewise.
13532 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
13534 * config/arm/types.md (type): Rename fcpys to fmov.
13535 * config/arm/vfp.md
13536 (*arm_movsi_vfp): Rename type fcpys as fmov.
13537 (*thumb2_movsi_vfp): Likewise
13538 (*movhf_vfp_neon): Likewise
13539 (*movhf_vfp): Likewise
13540 (*movsf_vfp): Likewise
13541 (*thumb2_movsf_vfp): Likewise
13542 (*movsfcc_vfp): Likewise
13543 (*thumb2_movsfcc_vfp): Likewise
13544 * config/aarch64/aarch64-simd.md
13545 (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
13546 * config/aarch64/aarch64.md
13547 (*movsi_aarch64): Replace type mov_reg with fmovs.
13548 (*movdi_aarch64): Likewise
13549 (*movsf_aarch64): Likewise
13550 (*movdf_aarch64): Likewise
13552 (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
13553 * config/arm/iwmmxt.md
13554 (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
13555 * config/arm/arm1020e.md: Update with new attributes.
13556 * config/arm/cortex-a15-neon.md: Update with new attributes.
13557 * config/arm/cortex-a5.md: Update with new attributes.
13558 * config/arm/cortex-a53.md: Update with new attributes.
13559 * config/arm/cortex-a7.md: Update with new attributes.
13560 * config/arm/cortex-a8-neon.md: Update with new attributes.
13561 * config/arm/cortex-a9.md: Update with new attributes.
13562 * config/arm/cortex-m4-fpu.md: Update with new attributes.
13563 * config/arm/cortex-r4f.md: Update with new attributes.
13564 * config/arm/marvell-pj4.md: Update with new attributes.
13565 * config/arm/vfp11.md: Update with new attributes.
13567 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
13569 * config/aarch64/aarch64.md
13570 (*madd<mode>): Fix type attribute.
13571 (*maddsi_uxtw): Likewise.
13572 (*msub<mode>): Likewise.
13573 (*msubsi_uxtw): Likewise.
13574 (<su_optab>maddsidi4): Likewise.
13575 (<su_optab>msubsidi4): Likewise.
13577 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
13579 * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
13580 * config/arm/arm.md (core_cycles): Remove fdiv.
13581 * config/arm/vfp.md:
13582 (*sqrtsf2_vfp): Update for attribute changes.
13583 (*sqrtdf2_vfp): Likewise.
13584 * config/aarch64/aarch64.md:
13585 (sqrt<mode>2): Update for attribute changes.
13586 * config/arm/arm1020e.md: Update with new attributes.
13587 * config/arm/cortex-a15-neon.md: Update with new attributes.
13588 * config/arm/cortex-a5.md: Update with new attributes.
13589 * config/arm/cortex-a53.md: Update with new attributes.
13590 * config/arm/cortex-a7.md: Update with new attributes.
13591 * config/arm/cortex-a8-neon.md: Update with new attributes.
13592 * config/arm/cortex-a9.md: Update with new attributes.
13593 * config/arm/cortex-m4-fpu.md: Update with new attributes.
13594 * config/arm/cortex-r4f.md: Update with new attributes.
13595 * config/arm/marvell-pj4.md: Update with new attributes.
13596 * config/arm/vfp11.md: Update with new attributes.
13598 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
13600 * config/arm/types.md
13601 (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
13602 * config/aarch64/aarch64.md
13603 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
13605 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
13606 (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
13607 (float<GPI:mode><GPF:mode>2): Likewise.
13608 * config/arm/vfp.md
13609 (*truncsisf2_vfp): Update with new attributes.
13610 (*truncsidf2_vfp): Likewise.
13611 (fixuns_truncsfsi2): Likewise.
13612 (fixuns_truncdfsi2): Likewise.
13613 (*floatsisf2_vfp): Likewise.
13614 (*floatsidf2_vfp): Likewise.
13615 (floatunssisf2): Likewise.
13616 (floatunssidf2): Likewise.
13617 (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
13618 (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
13619 * config/arm/arm1020e.md: Update with new attributes.
13620 * config/arm/cortex-a15-neon.md: Update with new attributes.
13621 * config/arm/cortex-a5.md: Update with new attributes.
13622 * config/arm/cortex-a53.md: Update with new attributes.
13623 * config/arm/cortex-a7.md: Update with new attributes.
13624 * config/arm/cortex-a8-neon.md: Update with new attributes.
13625 * config/arm/cortex-a9.md: Update with new attributes.
13626 * config/arm/cortex-m4-fpu.md: Update with new attributes.
13627 * config/arm/cortex-r4f.md: Update with new attributes.
13628 * config/arm/marvell-pj4.md: Update with new attributes.
13629 * config/arm/vfp11.md: Update with new attributes.
13631 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
13633 * config/aarch64/arm_neon.h
13634 (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
13635 (vqtbx<1,2,3,4><q>_s8): Likewise.
13637 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
13639 * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
13640 * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
13641 (add<mode>3): Add type attribute.
13642 (add<mode>3): Likewise.
13643 (usadd<mode>3): Likewise.
13644 (ssadd<mode>3): Likewise.
13645 (sub<mode>3): Likewise.
13646 (sub<mode>3): Likewise.
13647 (ussub<mode>3): Likewise.
13648 (sssub<mode>3): Likewise.
13649 (ssmulsa3): Likewise.
13650 (usmulusa3): Likewise.
13651 (arm_usatsihi): Likewise.
13652 * config/arm/vfp.md
13653 (*movdi_vfp): Add types for all instructions.
13654 (*movdi_vfp_cortexa8): Likewise.
13655 (*movhf_vfp_neon): Likewise.
13656 (*movhf_vfp): Likewise.
13657 (*movdf_vfp): Likewise.
13658 (*thumb2_movdf_vfp): Likewise.
13659 (*thumb2_movdfcc_vfp): Likewise.
13660 * config/arm/arm.md: Add type attribute to all insn patterns.
13661 (*thumb1_adddi3): Add type attribute.
13662 (*arm_adddi3): Likewise.
13663 (*adddi_sesidi_di): Likewise.
13664 (*adddi_zesidi_di): Likewise.
13665 (*thumb1_addsi3): Likewise.
13666 (addsi3_compare0): Likewise.
13667 (*addsi3_compare0_scratch): Likewise.
13668 (*compare_negsi_si): Likewise.
13669 (cmpsi2_addneg): Likewise.
13670 (*addsi3_carryin_<optab>): Likewise.
13671 (*addsi3_carryin_alt2_<optab>): Likewise.
13672 (*addsi3_carryin_clobercc_<optab>): Likewise.
13673 (*subsi3_carryin): Likewise.
13674 (*subsi3_carryin_const): Likewise.
13675 (*subsi3_carryin_compare): Likewise.
13676 (*subsi3_carryin_compare_const): Likewise.
13677 (*arm_subdi3): Likewise.
13678 (*thumb_subdi3): Likewise.
13679 (*subdi_di_zesidi): Likewise.
13680 (*subdi_di_sesidi): Likewise.
13681 (*subdi_zesidi_di): Likewise.
13682 (*subdi_sesidi_di): Likewise.
13683 (*subdi_zesidi_ze): Likewise.
13684 (thumb1_subsi3_insn): Likewise.
13685 (*arm_subsi3_insn): Likewise.
13686 (*anddi3_insn): Likewise.
13687 (*anddi_zesidi_di): Likewise.
13688 (*anddi_sesdi_di): Likewise.
13689 (*ne_zeroextracts): Likewise.
13690 (*ne_zeroextracts): Likewise.
13691 (*ite_ne_zeroextr): Likewise.
13692 (*ite_ne_zeroextr): Likewise.
13693 (*anddi_notdi_di): Likewise.
13694 (*anddi_notzesidi): Likewise.
13695 (*anddi_notsesidi): Likewise.
13696 (andsi_notsi_si): Likewise.
13697 (thumb1_bicsi3): Likewise.
13698 (*iordi3_insn): Likewise.
13699 (*iordi_zesidi_di): Likewise.
13700 (*iordi_sesidi_di): Likewise.
13701 (*thumb1_iorsi3_insn): Likewise.
13702 (*xordi3_insn): Likewise.
13703 (*xordi_zesidi_di): Likewise.
13704 (*xordi_sesidi_di): Likewise.
13705 (*arm_xorsi3): Likewise.
13706 (*andsi_iorsi3_no): Likewise.
13707 (*smax_0): Likewise.
13708 (*smax_m1): Likewise.
13709 (*arm_smax_insn): Likewise.
13710 (*smin_0): Likewise.
13711 (*arm_smin_insn): Likewise.
13712 (*arm_umaxsi3): Likewise.
13713 (*arm_uminsi3): Likewise.
13714 (*minmax_arithsi): Likewise.
13715 (*minmax_arithsi_): Likewise.
13716 (*satsi_<SAT:code>): Likewise.
13717 (arm_ashldi3_1bit): Likewise.
13718 (arm_ashrdi3_1bit): Likewise.
13719 (arm_lshrdi3_1bit): Likewise.
13720 (*arm_negdi2): Likewise.
13721 (*thumb1_negdi2): Likewise.
13722 (*arm_negsi2): Likewise.
13723 (*thumb1_negsi2): Likewise.
13724 (*negdi_extendsid): Likewise.
13725 (*negdi_zero_extend): Likewise.
13726 (*arm_abssi2): Likewise.
13727 (*thumb1_abssi2): Likewise.
13728 (*arm_neg_abssi2): Likewise.
13729 (*thumb1_neg_abss): Likewise.
13730 (one_cmpldi2): Likewise.
13731 (extend<mode>di2): Likewise.
13732 (*compareqi_eq0): Likewise.
13733 (*arm_extendhisi2addsi): Likewise.
13734 (*arm_movdi): Likewise.
13735 (*thumb1_movdi_insn): Likewise.
13736 (*arm_movt): Likewise.
13737 (*thumb1_movsi_insn): Likewise.
13738 (pic_add_dot_plus_four): Likewise.
13739 (pic_add_dot_plus_eight): Likewise.
13740 (tls_load_dot_plus_eight): Likewise.
13741 (*thumb1_movhi_insn): Likewise.
13742 (*thumb1_movsf_insn): Likewise.
13743 (*movdf_soft_insn): Likewise.
13744 (*thumb_movdf_insn): Likewise.
13745 (cbranchsi4_insn): Likewise.
13746 (cbranchsi4_scratch): Likewise.
13747 (*negated_cbranchsi4): Likewise.
13748 (*tbit_cbranch): Likewise.
13749 (*tlobits_cbranch): Likewise.
13750 (*tstsi3_cbranch): Likewise.
13751 (*cbranchne_decr1): Likewise.
13752 (*addsi3_cbranch): Likewise.
13753 (*addsi3_cbranch_scratch): Likewise.
13754 (*arm_cmpdi_insn): Likewise.
13755 (*arm_cmpdi_unsig): Likewise.
13756 (*arm_cmpdi_zero): Likewise.
13757 (*thumb_cmpdi_zero): Likewise.
13758 (*deleted_compare): Likewise.
13759 (*mov_scc): Likewise.
13760 (*mov_negscc): Likewise.
13761 (*mov_notscc): Likewise.
13762 (*cstoresi_eq0_thumb1_insn): Likewise.
13763 (cstoresi_nltu_thumb1): Likewise.
13764 (cstoresi_ltu_thu): Likewise.
13765 (thumb1_addsi3_addgeu): Likewise.
13766 (*arm_jump): Likewise.
13767 (*thumb_jump): Likewise.
13768 (*check_arch2): Likewise.
13769 (arm_casesi_internal): Likewise.
13770 (thumb1_casesi_dispatch): Likewise.
13771 (*arm_indirect_jump): Likewise.
13772 (*thumb1_indirect_jump): Likewise.
13774 (*and_scc): Likewise.
13775 (*ior_scc): Likewise.
13776 (*compare_scc): Likewise.
13777 (*cond_move): Likewise.
13778 (*cond_arith): Likewise.
13779 (*cond_sub): Likewise.
13780 (*cmp_ite0): Likewise.
13781 (*cmp_ite1): Likewise.
13782 (*cmp_and): Likewise.
13783 (*cmp_ior): Likewise.
13784 (*ior_scc_scc): Likewise.
13785 (*ior_scc_scc_cmp): Likewise.
13786 (*and_scc_scc): Likewise.
13787 (*and_scc_scc_cmp): Likewise.
13788 (*and_scc_scc_nod): Likewise.
13789 (*negscc): Likewise.
13790 (movcond_addsi): Likewise.
13791 (movcond): Likewise.
13792 (*ifcompare_plus_move): Likewise.
13793 (*if_plus_move): Likewise.
13794 (*ifcompare_move_plus): Likewise.
13795 (*if_move_plus): Likewise.
13796 (*ifcompare_arith_arith): Likewise.
13797 (*if_arith_arith): Likewise.
13798 (*ifcompare_arith_move): Likewise.
13799 (*if_arith_move): Likewise.
13800 (*ifcompare_move_arith): Likewise.
13801 (*if_move_arith): Likewise.
13802 (*ifcompare_move_not): Likewise.
13803 (*if_move_not): Likewise.
13804 (*ifcompare_not_move): Likewise.
13805 (*if_not_move): Likewise.
13806 (*ifcompare_shift_move): Likewise.
13807 (*if_shift_move): Likewise.
13808 (*ifcompare_move_shift): Likewise.
13809 (*if_move_shift): Likewise.
13810 (*ifcompare_shift_shift): Likewise.
13811 (*ifcompare_not_arith): Likewise.
13812 (*ifcompare_arith_not): Likewise.
13813 (*if_arith_not): Likewise.
13814 (*ifcompare_neg_move): Likewise.
13815 (*if_neg_move): Likewise.
13816 (*ifcompare_move_neg): Likewise.
13817 (*if_move_neg): Likewise.
13818 (prologue_thumb1_interwork): Likewise.
13819 (*cond_move_not): Likewise.
13820 (*sign_extract_onebit): Likewise.
13821 (*not_signextract_onebit): Likewise.
13822 (stack_tie): Likewise.
13823 (align_4): Likewise.
13824 (align_8): Likewise.
13825 (consttable_end): Likewise.
13826 (consttable_1): Likewise.
13827 (consttable_2): Likewise.
13828 (consttable_4): Likewise.
13829 (consttable_8): Likewise.
13830 (consttable_16): Likewise.
13831 (*thumb1_tablejump): Likewise.
13832 (prefetch): Likewise.
13833 (force_register_use): Likewise.
13834 (thumb_eh_return): Likewise.
13835 (load_tp_hard): Likewise.
13836 (load_tp_soft): Likewise.
13837 (tlscall): Likewise.
13838 (*arm_movtas_ze): Likewise.
13839 (*arm_rev): Likewise.
13840 (*arm_revsh): Likewise.
13841 (*arm_rev16): Likewise.
13842 * config/arm/thumb2.md
13843 (*thumb2_smaxsi3): Likewise.
13844 (*thumb2_sminsi3): Likewise.
13845 (*thumb32_umaxsi3): Likewise.
13846 (*thumb2_uminsi3): Likewise.
13847 (*thumb2_negdi2): Likewise.
13848 (*thumb2_abssi2): Likewise.
13849 (*thumb2_neg_abss): Likewise.
13850 (*thumb2_movsi_insn): Likewise.
13851 (tls_load_dot_plus_four): Likewise.
13852 (*thumb2_movhi_insn): Likewise.
13853 (*thumb2_mov_scc): Likewise.
13854 (*thumb2_mov_negs): Likewise.
13855 (*thumb2_mov_negs): Likewise.
13856 (*thumb2_mov_nots): Likewise.
13857 (*thumb2_mov_nots): Likewise.
13858 (*thumb2_movsicc_): Likewise.
13859 (*thumb2_movsfcc_soft_insn): Likewise.
13860 (*thumb2_indirect_jump): Likewise.
13861 (*thumb2_and_scc): Likewise.
13862 (*thumb2_ior_scc): Likewise.
13863 (*thumb2_ior_scc_strict_it): Likewise.
13864 (*thumb2_cond_move): Likewise.
13865 (*thumb2_cond_arith): Likewise.
13866 (*thumb2_cond_ari): Likewise.
13867 (*thumb2_cond_sub): Likewise.
13868 (*thumb2_negscc): Likewise.
13869 (*thumb2_movcond): Likewise.
13870 (thumb2_casesi_internal): Likewise.
13871 (thumb2_casesi_internal_pic): Likewise.
13872 (*thumb2_alusi3_short): Likewise.
13873 (*thumb2_mov<mode>_shortim): Likewise.
13874 (*thumb2_addsi_short): Likewise.
13875 (*thumb2_subsi_short): Likewise.
13876 (thumb2_addsi3_compare0): Likewise.
13877 (*thumb2_cbz): Likewise.
13878 (*thumb2_cbnz): Likewise.
13879 (*thumb2_one_cmplsi2_short): Likewise.
13880 (*thumb2_negsi2_short): Likewise.
13881 (*orsi_notsi_si): Likewise.
13882 * config/arm/arm1020e.md: Update with new attributes.
13883 * config/arm/arm1026ejs.md: Update with new attributes.
13884 * config/arm/arm1136jfs.md: Update with new attributes.
13885 * config/arm/arm926ejs.md: Update with new attributes.
13886 * config/arm/cortex-a15.md: Update with new attributes.
13887 * config/arm/cortex-a5.md: Update with new attributes.
13888 * config/arm/cortex-a53.md: Update with new attributes.
13889 * config/arm/cortex-a7.md: Update with new attributes.
13890 * config/arm/cortex-a8.md: Update with new attributes.
13891 * config/arm/cortex-a9.md: Update with new attributes.
13892 * config/arm/cortex-m4.md: Update with new attributes.
13893 * config/arm/cortex-r4.md: Update with new attributes.
13894 * config/arm/fa526.md: Update with new attributes.
13895 * config/arm/fa606te.md: Update with new attributes.
13896 * config/arm/fa626te.md: Update with new attributes.
13897 * config/arm/fa726te.md: Update with new attributes.
13899 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
13901 * config/aarch64/aarch64-simd.md
13902 (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
13903 <vwx> iterator to ensure correct register choice.
13904 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
13905 (aarch64_sqdmull_n<mode>): Likewise.
13906 (aarch64_sqdmull2_n<mode>_internal): Likewise.
13907 * config/aarch64/arm_neon.h
13908 (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
13909 (vml<as><q>_n_<su>16): Likewise.
13910 (vml<as>l_high_lane<q>_<su>16): Likewise.
13911 (vml<as>l_high_n_<su>16): Likewise.
13912 (vml<as>l_lane<q>_<su>16): Likewise.
13913 (vml<as>l_n_<su>16): Likewise.
13914 (vmul<q>_lane<q>_<su>16): Likewise.
13915 (vmul<q>_n_<su>16): Likewise.
13916 (vmull_lane<q>_<su>16): Likewise.
13917 (vmull_n_<su>16): Likewise.
13918 (vmull_high_lane<q>_<su>16): Likewise.
13919 (vmull_high_n_<su>16): Likewise.
13920 (vqrdmulh<q>_n_s16): Likewise.
13922 2013-09-06 Tejas Belagod <tejas.belagod@arm.com>
13924 * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
13925 have the correct lane parameter.
13927 2013-09-06 Richard Biener <rguenther@suse.de>
13929 * cfganal.c (control_dependences::~control_dependences):
13930 Properly free all of the vector.
13932 2013-09-06 Kirill Yukhin <kirill.yukhin@intel.com>
13935 * config/i386/i386.c (ix86_conditional_register_usage):
13936 Proper initialize extended SSE registers.
13938 2013-09-06 Jan Hubicka <jh@suse.cz>
13940 PR tree-optimization/58311
13941 * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
13943 2013-09-06 Jan Hubicka <jh@suse.cz>
13945 * Makefile.in (tree-sra.o): Update dependencies.
13946 * tree-sra.c: Include ipa-utils.h
13947 (scan_function): Use recursive_call_p.
13948 (has_caller_p): New function.
13949 (cgraph_for_node_and_aliases): Count also callers of aliases.
13951 2013-09-06 Jan Hubicka <jh@suse.cz>
13953 PR middle-end/58094
13954 * cgraph.h (symtab_semantically_equivalent_p): Declare.
13955 * tree-tailcall.c: Include ipa-utils.h.
13956 (find_tail_calls): Use it.
13957 * ipa-pure-const.c (check_call): Likewise.
13958 * ipa-utils.c (recursive_call_p): New function.
13959 * ipa-utils.h (recursive_call_p): Dclare.
13960 * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
13961 (symtab_semantically_equivalent_p): New function.
13962 * Makefile.in (tree-tailcall.o): Update dependencies.
13964 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
13966 * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
13967 non-inlinable part.
13969 2013-09-06 Richard Biener <rguenther@suse.de>
13971 * lto-streamer.h (lto_global_var_decls): Remove.
13972 * Makefile.in (OBJS): Remove lto-symtab.o.
13973 (lto-symtab.o): Remove.
13974 (GTFILES): Remove lto-symtab.c
13975 * lto-symtab.c: Move to lto/
13977 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13979 * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
13980 (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
13981 (UNSPEC_FPINT_RINT): New constant definitions.
13982 (FPINT, fpint_name, fpint_roundingmode): New integer iterator
13983 definition with 2 attributes.
13984 ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
13985 ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
13988 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13990 * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
13991 ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
13992 Set the mnemonic attribute to "bcr_flush". Set the "z196prop"
13993 attribute to "z196_alone".
13994 * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
13997 2013-09-06 Richard Biener <rguenther@suse.de>
13999 * basic-block.h (class control_dependences): New.
14000 * tree-ssa-dce.c (control_dependence_map): Remove.
14002 (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
14003 (set_control_dependence_map_bit, clear_control_dependence_bitmap,
14004 find_pdom, find_control_dependence, find_all_control_dependences):
14006 (mark_control_dependent_edges_necessary,
14007 find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
14008 tree_dce_done, perform_tree_ssa_dce): Adjust.
14009 * cfganal.c (set_control_dependence_map_bit,
14010 clear_control_dependence_bitmap, find_pdom, find_control_dependence,
14011 find_all_control_dependences): Move from tree-ssa-dce.c and
14012 implement as methods of control_dependences class.
14013 (control_dependences::control_dependences): New.
14014 (control_dependences::~control_dependences): Likewise.
14015 (control_dependences::get_edges_dependent_on): Likewise.
14016 (control_dependences::get_edge): Likewise.
14018 2013-09-04 Jan Hubicka <jh@suse.cz>
14020 * tree.c (types_same_for_odr): Drop overactive check.
14021 * ipa-devirt.c (hash_type_name): Likewise.
14023 2013-09-04 Jan Hubicka <jh@suse.cz>
14025 * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
14026 (analyze_functions): ... here.
14028 2013-09-04 Jan Hubicka <jh@suse.cz>
14030 PR middle-end/58201
14031 * cgraphunit.c (analyze_functions): Clear AUX fields
14032 after processing; initialize assembler name has.
14034 2013-09-05 Jeff Law <law@redhat.com>
14036 * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
14037 from thread_around_empty_block. Record threading path into PATH.
14038 Recurse if threading through the initial block is successful.
14039 (thread_across_edge): Corresponding changes to slightly simplify.
14041 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
14043 * config/aarch64/aarch64.md
14044 (type): Remove frecpe, frecps, frecpx.
14045 (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
14046 fix to be a TARGET_SIMD instruction.
14047 (aarch64_frecps): Remove.
14048 * config/aarch64/aarch64-simd.md
14049 (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
14050 (aarch64_frecps<mode>): Handle all float/vector of float modes.
14052 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
14053 Sofiane Naci <sofiane.naci@arm.com>
14055 * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
14056 into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
14057 Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
14058 "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
14059 "logic_reg", "logics_reg", "rev". Expand "arlo_shift" into
14060 "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
14061 "logics_shift_imm". Expand "arlo_shift_reg" into "alu_shift_reg",
14062 "alus_shift_reg", "logic_shift_reg", "logics_shift_reg". Expand "clz"
14063 into "clz, "rbit". Rename "shift" to "shift_imm".
14064 * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
14065 changes. Update for attribute changes all occurrences of arlo_* and
14067 * config/arm/arm-fixed.md: Update for attribute changes
14068 all occurrences of arlo_* types.
14069 * config/arm/thumb2.md: Update for attribute changes all occurrences
14071 * config/arm/arm.c (xscale_sched_adjust_cost): (rtx insn, rtx
14072 (cortexa7_older_only): Likewise.
14073 (cortexa7_younger): Likewise.
14074 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
14075 (1020alu_shift_op): Likewise.
14076 (1020alu_shift_reg_op): Likewise.
14077 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
14078 (alu_shift_op): Likewise.
14079 (alu_shift_reg_op): Likewise.
14080 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
14081 (11_alu_shift_op): Likewise.
14082 (11_alu_shift_reg_op): Likewise.
14083 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
14084 (9_alu_shift_reg_op): Likewise.
14085 * config/arm/cortex-a15.md (cortex_a15_alu): Update for
14087 (cortex_a15_alu_shift): Likewise.
14088 (cortex_a15_alu_shift_reg): Likewise.
14089 * config/arm/cortex-a5.md (cortex_a5_alu): Update for
14091 (cortex_a5_alu_shift): Likewise.
14092 * config/arm/cortex-a53.md (cortex_a53_alu): Update for
14094 (cortex_a53_alu_shift): Likewise.
14095 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
14097 (cortex_a7_alu_reg): Likewise.
14098 (cortex_a7_alu_shift): Likewise.
14099 * config/arm/cortex-a8.md (cortex_a8_alu): Update for
14101 (cortex_a8_alu_shift): Likewise.
14102 (cortex_a8_alu_shift_reg): Likewise.
14103 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
14104 (cortex_a9_dp_shift): Likewise.
14105 * config/arm/cortex-m4.md (cortex_m4_alu): Update for
14107 * config/arm/cortex-r4.md
14108 (cortex_r4_alu): Update for attribute changes.
14109 (cortex_r4_mov): Likewise.
14110 (cortex_r4_alu_shift_reg): Likewise.
14111 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
14112 (526_alu_shift_op): Likewise.
14113 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
14114 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
14115 (626te_alu_shift_op): Likewise.
14116 * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
14117 (726te_alu_shift_op): Likewise.
14118 (726te_alu_shift_reg_op): Likewise.
14119 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
14120 (mp626_alu_shift_op): Likewise.
14121 * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
14122 (pj4_alu_conds): Likewise.
14123 (pj4_shift): Likewise.
14124 (pj4_shift_conds): Likewise.
14125 (pj4_alu_shift): Likewise.
14126 (pj4_alu_shift_conds): Likewise.
14127 * config/aarch64/aarch64.md: Update for attribute change
14128 all occurrences of arlo_* and shift* types.
14130 2013-09-05 Mike Stump <mikestump@comcast.net>
14132 * tree.h: Move documentation for tree_function_decl to tree-core.h
14133 with the declaration.
14135 2013-09-05 Peter Bergner <bergner@vnet.ibm.com>
14138 * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
14139 looking for widest mode.
14141 2013-09-05 Eric Botcazou <ebotcazou@adacore.com>
14143 * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
14145 2013-09-05 Richard Biener <rguenther@suse.de>
14147 PR tree-optimization/58137
14148 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
14149 Do not create vectors of pointers.
14150 * tree-vect-loop.c (get_initial_def_for_induction): Use proper
14151 types for the components of the vector initializer.
14152 * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
14153 allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
14155 2013-09-05 Martin Jambor <mjambor@suse.cz>
14157 * ipa-prop.c (remove_described_reference): Accept missing references,
14158 return false if that hppens, otherwise return true.
14159 (cgraph_node_for_jfunc): New function.
14160 (try_decrement_rdesc_refcount): Likewise.
14161 (try_make_edge_direct_simple_call): Use them.
14162 (ipa_edge_removal_hook): Remove references from rdescs.
14163 (ipa_edge_duplication_hook): Clone rdescs and their references
14164 when the new edge has the same caller as the old one.
14165 * cgraph.c (cgraph_resolve_speculation): Remove speculative
14166 reference before removing any edges.
14168 2013-09-05 Richard Earnshaw <rearnsha@arm.com>
14170 * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
14172 * thumb2.md (thumb2_storewb_parisi): New pattern.
14174 2013-09-05 Yufeng Zhang <yufeng.zhang@arm.com>
14176 * config/aarch64/aarch64-option-extensions.def: Add
14177 AARCH64_OPT_EXTENSION of 'crc'.
14178 * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
14179 (AARCH64_ISA_CRC): Ditto.
14180 * doc/invoke.texi (-march and -mcpu feature modifiers): Add
14181 description of the CRC extension.
14183 2013-09-05 Alexander Ivchenko <alexander.ivchenko@intel.com>
14185 * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
14186 * config/rs6000/linux.h: Ditto.
14187 * alpha/linux.h: Ditto.
14188 * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
14189 no_c99_libc_has_function.
14190 * config/c6x/uclinux-elf.h: Ditto.
14191 * config/lm32/uclinux-elf.h: Ditto.
14192 * config/m68k/uclinux.h: Ditto.
14193 * config/moxie/uclinux.h: Ditto.
14194 * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
14195 (crisv32-*-linux*, cris-*-linux*): Ditto.
14196 * config/bfin/bfin.c: Include "tm_p.h".
14198 2013-09-05 Richard Biener <rguenther@suse.de>
14200 * tree-vect-loop.c (vect_analyze_loop_operations): Properly
14201 check for a definition without a basic-block.
14203 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
14204 Sofiane Naci <sofiane.naci@arm.com>
14206 * config/aarch64/aarch64.md
14207 (*movti_aarch64): Rename r_2_f and f_2_r.
14208 (*movsf_aarch64): Likewise.
14209 (*movdf_aarch64): Likewise.
14210 (*movtf_aarch64): Likewise.
14211 (aarch64_movdi_<mode>low): Likewise.
14212 (aarch64_movdi_<mode>high): Likewise.
14213 (aarch64_mov<mode>high_di): Likewise.
14214 (aarch64_mov<mode>low_di): Likewise.
14215 (aarch64_movtilow_tilow): Likewise.
14216 * config/arm/arm.md (attribute "neon_type"): Delete. Move attribute
14217 values to config/arm/types.md
14218 (attribute "conds"): Update for attribute change.
14219 (anddi3_insn): Likewise.
14220 (iordi3_insn): Likewise.
14221 (xordi3_insn): Likewise.
14222 (one_cmpldi2): Likewise.
14223 * config/arm/types.md (type): Add Neon types.
14224 * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
14225 use "type" attribute.
14226 (movmisalign<mode>_neon_store): Likewise.
14227 (movmisalign<mode>_neon_load): Likewise.
14228 (vec_set<mode>_internal): Likewise.
14229 (vec_setv2di_internal): Likewise.
14230 (vec_extract<mode>): Likewise.
14231 (vec_extractv2di): Likewise.
14232 (add<mode>3_neon): Likewise.
14233 (adddi3_neon): Likewise.
14234 (sub<mode>3_neon): Likewise.
14235 (subdi3_neon): Likewise.
14236 (mul<mode>3_neon): Likewise.
14237 (mul<mode>3add<mode>_neon): Likewise.
14238 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
14239 (fma<VCVTF:mode>4)): Likewise.
14240 (fma<VCVTF:mode>4_intrinsic): Likewise.
14241 (fmsub<VCVTF:mode>4)): Likewise.
14242 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
14243 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
14244 (ior<mode>3): Likewise.
14245 (and<mode>3): Likewise.
14246 (anddi3_neon): Likewise.
14247 (orn<mode>3_neon): Likewise.
14248 (orndi3_neon): Likewise.
14249 (bic<mode>3_neon): Likewise.
14250 (bicdi3_neon): Likewise.
14251 (xor<mode>3): Likewise.
14252 (one_cmpl<mode>2): Likewise.
14253 (abs<mode>2): Likewise.
14254 (neg<mode>2): Likewise.
14255 (umin<mode>3_neon): Likewise.
14256 (umax<mode>3_neon): Likewise.
14257 (smin<mode>3_neon): Likewise.
14258 (smax<mode>3_neon): Likewise.
14259 (vashl<mode>3): Likewise.
14260 (vashr<mode>3_imm): Likewise.
14261 (vlshr<mode>3_imm): Likewise.
14262 (ashl<mode>3_signed): Likewise.
14263 (ashl<mode>3_unsigned): Likewise.
14264 (neon_load_count): Likewise.
14265 (ashldi3_neon_noclobber): Likewise.
14266 (signed_shift_di3_neon): Likewise.
14267 (unsigned_shift_di3_neon): Likewise.
14268 (ashrdi3_neon_imm_noclobber): Likewise.
14269 (lshrdi3_neon_imm_noclobber): Likewise.
14270 (widen_ssum<mode>3): Likewise.
14271 (widen_usum<mode>3): Likewise.
14272 (quad_halves_<code>v4si): Likewise.
14273 (quad_halves_<code>v4sf): Likewise.
14274 (quad_halves_<code>v8hi): Likewise.
14275 (quad_halves_<code>v16qi): Likewise.
14276 (reduc_splus_v2di): Likewise.
14277 (neon_vpadd_internal<mode>): Likewise.
14278 (neon_vpsmin<mode>): Likewise.
14279 (neon_vpsmax<mode>): Likewise.
14280 (neon_vpumin<mode>): Likewise.
14281 (neon_vpumax<mode>): Likewise.
14282 (ss_add<mode>_neon): Likewise.
14283 (us_add<mode>_neon): Likewise.
14284 (ss_sub<mode>_neon): Likewise.
14285 (us_sub<mode>_neon): Likewise.
14286 (neon_vadd<mode>_unspec): Likewise.
14287 (neon_vaddl<mode>): Likewise.
14288 (neon_vaddw<mode>): Likewise.
14289 (neon_vhadd<mode>): Likewise.
14290 (neon_vqadd<mode>): Likewise.
14291 (neon_vaddhn<mode>): Likewise.
14292 (neon_vmul<mode>): Likewise.
14293 (neon_vmla<mode>): Likewise.
14294 (neon_vmlal<mode>): Likewise.
14295 (neon_vmls<mode>): Likewise.
14296 (neon_vmlsl<mode>): Likewise.
14297 (neon_vqdmulh<mode>): Likewise.
14298 (neon_vqdmlal<mode>): Likewise.
14299 (neon_vqdmlsl<mode>): Likewise.
14300 (neon_vmull<mode>): Likewise.
14301 (neon_vqdmull<mode>): Likewise.
14302 (neon_vsub<mode>_unspec): Likewise.
14303 (neon_vsubl<mode>): Likewise.
14304 (neon_vsubw<mode>): Likewise.
14305 (neon_vqsub<mode>): Likewise.
14306 (neon_vhsub<mode>): Likewise.
14307 (neon_vsubhn<mode>): Likewise.
14308 (neon_vceq<mode>): Likewise.
14309 (neon_vcge<mode>): Likewise.
14310 (neon_vcgeu<mode>): Likewise.
14311 (neon_vcgt<mode>): Likewise.
14312 (neon_vcgtu<mode>): Likewise.
14313 (neon_vcle<mode>): Likewise.
14314 (neon_vclt<mode>): Likewise.
14315 (neon_vcage<mode>): Likewise.
14316 (neon_vcagt<mode>): Likewise.
14317 (neon_vtst<mode>): Likewise.
14318 (neon_vabd<mode>): Likewise.
14319 (neon_vabdl<mode>): Likewise.
14320 (neon_vaba<mode>): Likewise.
14321 (neon_vabal<mode>): Likewise.
14322 (neon_vmax<mode>): Likewise.
14323 (neon_vmin<mode>): Likewise.
14324 (neon_vpaddl<mode>): Likewise.
14325 (neon_vpadal<mode>): Likewise.
14326 (neon_vpmax<mode>): Likewise.
14327 (neon_vpmin<mode>): Likewise.
14328 (neon_vrecps<mode>): Likewise.
14329 (neon_vrsqrts<mode>): Likewise.
14330 (neon_vqabs<mode>): Likewise.
14331 (neon_vqneg<mode>): Likewise.
14332 (neon_vcls<mode>): Likewise.
14333 (clz<mode>2): Likewise.
14334 (popcount<mode>2): Likewise.
14335 (neon_vrecpe): Likewise.
14336 (neon_vrsqrte): Likewise.
14337 (neon_vget_lane<mode>_sext_internal): Likewise.
14338 (neon_vget_lane<mode>_zext_internal): Likewise.
14339 (neon_vdup_n<mode>): Likewise.
14340 (neon_vdup_nv2di): Likewise.
14341 (neon_vdpu_lane<mode>_internal): Likewise.
14342 (neon_vswp<mode>): Likewise.
14343 (float<mode><V_cvtto>2): Likewise.
14344 (floatuns<mode><V_cvtto>2): Likewise.
14345 (fix_trunc<mode><V_cvtto>)2): Likewise
14346 (fixuns_trunc<mode><V_cvtto)2): Likewise.
14347 (neon_vcvt<mode>): Likewise.
14348 (neon_vcvtv4sfv4hf): Likewise.
14349 (neon_vcvtv4hfv4sf): Likewise.
14350 (neon_vcvt_n<mode>): Likewise.
14351 (neon_vmovn<mode>): Likewise.
14352 (neon_vqmovn<mode>): Likewise.
14353 (neon_vqmovun<mode>): Likewise.
14354 (neon_vmovl<mode>): Likewise.
14355 (neon_vmul_lane<mode>): Likewise.
14356 (neon_vmull_lane<mode>): Likewise.
14357 (neon_vqdmull_lane<mode>): Likewise.
14358 (neon_vqdmulh_lane<mode>): Likewise.
14359 (neon_vmla_lane<mode>): Likewise.
14360 (neon_vmlal_lane<mode>): Likewise.
14361 (neon_vqdmlal_lane<mode>): Likewise.
14362 (neon_vmls_lane<mode>): Likewise.
14363 (neon_vmlsl_lane<mode>): Likewise.
14364 (neon_vqdmlsl_lane<mode>): Likewise.
14365 (neon_vext<mode>): Likewise.
14366 (neon_vrev64<mode>): Likewise.
14367 (neon_vrev32<mode>): Likewise.
14368 (neon_vrev16<mode>): Likewise.
14369 (neon_vbsl<mode>_internal): Likewise.
14370 (neon_vshl<mode>): Likewise.
14371 (neon_vqshl<mode>): Likewise.
14372 (neon_vshr_n<mode>): Likewise.
14373 (neon_vshrn_n<mode>): Likewise.
14374 (neon_vqshrn_n<mode>): Likewise.
14375 (neon_vqshrun_n<mode>): Likewise.
14376 (neon_vshl_n<mode>): Likewise.
14377 (neon_vqshl_n<mode>): Likewise.
14378 (neon_vqshlu_n<mode>): Likewise.
14379 (neon_vshll_n<mode>): Likewise.
14380 (neon_vsra_n<mode>): Likewise.
14381 (neon_vsri_n<mode>): Likewise.
14382 (neon_vsli_n<mode>): Likewise.
14383 (neon_vtbl1v8qi): Likewise.
14384 (neon_vtbl2v8qi): Likewise.
14385 (neon_vtbl3v8qi): Likewise.
14386 (neon_vtbl4v8qi): Likewise.
14387 (neon_vtbx1v8qi): Likewise.
14388 (neon_vtbx2v8qi): Likewise.
14389 (neon_vtbx3v8qi): Likewise.
14390 (neon_vtbx4v8qi): Likewise.
14391 (neon_vtrn<mode>_internal): Likewise.
14392 (neon_vzip<mode>_internal): Likewise.
14393 (neon_vuzp<mode>_internal): Likewise.
14394 (neon_vld1<mode>): Likewise.
14395 (neon_vld1_lane<mode>): Likewise.
14396 (neon_vld1_dup<mode>): Likewise.
14397 (neon_vld1_dupv2di): Likewise.
14398 (neon_vst1<mode>): Likewise.
14399 (neon_vst1_lane<mode>): Likewise.
14400 (neon_vld2<mode>): Likewise.
14401 (neon_vld2_lane<mode>): Likewise.
14402 (neon_vld2_dup<mode>): Likewise.
14403 (neon_vst2<mode>): Likewise.
14404 (neon_vst2_lane<mode>): Likewise.
14405 (neon_vld3<mode>): Likewise.
14406 (neon_vld3qa<mode>): Likewise.
14407 (neon_vld3qb<mode>): Likewise.
14408 (neon_vld3_lane<mode>): Likewise.
14409 (neon_vld3_dup<mode>): Likewise.
14410 (neon_vst3<mode>): Likewise.
14411 (neon_vst3qa<mode>): Likewise.
14412 (neon_vst3qb<mode>): Likewise.
14413 (neon_vst3_lane<mode>): Likewise.
14414 (neon_vld4<mode>): Likewise.
14415 (neon_vld4qa<mode>): Likewise.
14416 (neon_vld4qb<mode>): Likewise.
14417 (neon_vld4_lane<mode>): Likewise.
14418 (neon_vld4_dup<mode>): Likewise.
14419 (neon_vst4<mode>): Likewise.
14420 (neon_vst4qa<mode>): Likewise.
14421 (neon_vst4qb<mode>): Likewise.
14422 (neon_vst4_lane<mode>): Likewise.
14423 (neon_vec_unpack<US>_lo_<mode>): Likewise.
14424 (neon_vec_unpack<US>_hi_<mode>): Likewise.
14425 (neon_vec_<US>mult_lo_<mode>): Likewise.
14426 (neon_vec_<US>mult_hi_<mode>): Likewise.
14427 (neon_vec_<US>shiftl_<mode>): Likewise.
14428 (neon_unpack<US>_<mode>): Likewise.
14429 (neon_vec_<US>mult_<mode>): Likewise.
14430 (vec_pack_trunc_<mode>): Likewise.
14431 (neon_vec_pack_trunk_<mode>): Likewise.
14432 (neon_vabd<mode>_2): Likewise.
14433 (neon_vabd<mode>_3): Likewise.
14434 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
14435 (thumb2_movsi_vfp): Likewise.
14436 (movdi_vfp): Likewise.
14437 (movdi_vfp_cortexa8): Likewise.
14438 (movhf_vfp_neon): Likewise.
14439 (movhf_vfp): Likewiwse.
14440 (movsf_vfp): Likewiwse.
14441 (thumb2_movsf_vfp): Likewiwse.
14442 (movdf_vfp): Likewise.
14443 (thumb2_movdf_vfp): Likewise.
14444 (movsfcc_vfp): Likewise.
14445 (thumb2_movsfcc_vfp): Likewise.
14446 (movdfcc_vfp): Likewise.
14447 (thumb2_movdfcc_vfp): Likewise.
14448 * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
14449 * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
14450 (v10_v2c): Likewise.
14451 * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
14453 (cortex_a15_neon_int_2): Likewise.
14454 (cortex_a15_neon_int_3): Likewise.
14455 (cortex_a15_neon_int_4): Likewise.
14456 (cortex_a15_neon_int_5): Likewise.
14457 (cortex_a15_neon_vqneg_vqabs): Likewise.
14458 (cortex_a15_neon_vmov): Likewise.
14459 (cortex_a15_neon_vaba): Likewise.
14460 (cortex_a15_neon_vaba_qqq): Likewise.
14461 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
14462 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
14463 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
14464 scalar_64_32_long_scalar): Likewise.
14465 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
14466 (cortex_a15_neon_mla_qqq_8_16): Likewise.
14467 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
14468 lotype_qdd_64_32_long): Likewise.
14469 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
14470 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
14471 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
14472 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
14473 (cortex_a15_neon_shift_1): Likewise.
14474 (cortex_a15_neon_shift_2): Likewise.
14475 (cortex_a15_neon_shift_3): Likewise.
14476 (cortex_a15_neon_vshl_ddd): Likewise.
14477 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
14478 (cortex_a15_neon_vsra_vrsra): Likewise.
14479 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
14480 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
14481 (cortex_a15_neon_fp_vmul_ddd): Likewise.
14482 (cortex_a15_neon_fp_vmul_qqd): Likewise.
14483 (cortex_a15_neon_fp_vmla_ddd): Likewise.
14484 (cortex_a15_neon_fp_vmla_qqq): Likewise.
14485 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
14486 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
14487 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
14488 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
14489 (cortex_a15_neon_bp_simple): Likewise.
14490 (cortex_a15_neon_bp_2cycle): Likewise.
14491 (cortex_a15_neon_bp_3cycle): Likewise.
14492 (cortex_a15_neon_vld1_1_2_regs): Likewise.
14493 (cortex_a15_neon_vld1_3_4_regs): Likewise.
14494 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
14495 (cortex_a15_neon_vld2_4_regs): Likewise.
14496 (cortex_a15_neon_vld3_vld4): Likewise.
14497 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
14498 (cortex_a15_neon_vst1_3_4_regs): Likewise.
14499 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
14500 (cortex_a15_neon_vst3_vst4): Likewise.
14501 (cortex_a15_neon_vld1_vld2_lane): Likewise.
14502 (cortex_a15_neon_vld3_vld4_lane" 10
14503 (cortex_a15_neon_vst1_vst2_lane): Likewise.
14504 (cortex_a15_neon_vst3_vst4_lane): Likewise.
14505 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
14506 (cortex_a15_neon_ldm_2): Likewise.0
14507 (cortex_a15_neon_stm_2): Likewise.
14508 (cortex_a15_neon_mcr): Likewise.
14509 (cortex_a15_neon_mcr_2_mcrr): Likewise.
14510 (cortex_a15_neon_mrc): Likewise.
14511 (cortex_a15_neon_mrrc): Likewise.
14512 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
14514 (cortex_a15_alu_shift): Likewise.
14515 (cortex_a15_alu_shift_reg): Likewise.
14516 (cortex_a15_mult32): Likewise.
14517 (cortex_a15_mult64): Likewise.
14518 (cortex_a15_block): Likewise.
14519 (cortex_a15_branch): Likewise.
14520 (cortex_a15_load1): Likewise.
14521 (cortex_a15_load3): Likewise.
14522 (cortex_a15_store1): Likewise.
14523 (cortex_a15_store3): Likewise.
14524 (cortex_a15_call): Likewise.
14525 * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
14526 (cortex_a5_f2r): Likewise.
14527 * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
14529 (cortex_a53_f2r): Likewise.
14530 * config/arm/cortex-a7.md
14531 (cortex_a7_branch): Update for attribute change.
14532 (cortex_a7_call): Likewise.
14533 (cortex_a7_alu_imm): Likewise.
14534 (cortex_a7_alu_reg): Likewise.
14535 (cortex_a7_alu_shift): Likewise.
14536 (cortex_a7_mul): Likewise.
14537 (cortex_a7_load1): Likewise.
14538 (cortex_a7_store1): Likewise.
14539 (cortex_a7_load2): Likewise.
14540 (cortex_a7_store2): Likewise.
14541 (cortex_a7_load3): Likewise.
14542 (cortex_a7_store3): Likewise.
14543 (cortex_a7_load4): Likewise.
14544 (cortex_a7_store4): Likewise.
14545 (cortex_a7_fpalu): Likewise.
14546 (cortex_a7_fconst): Likewise.
14547 (cortex_a7_fpmuls): Likewise.
14548 (cortex_a7_neon_mul): Likewise.
14549 (cortex_a7_fpmacs): Likewise.
14550 (cortex_a7_neon_mla: Likewise.
14551 (cortex_a7_fpmuld: Likewise.
14552 (cortex_a7_fpmacd: Likewise.
14553 (cortex_a7_fpfmad: Likewise.
14554 (cortex_a7_fdivs: Likewise.
14555 (cortex_a7_fdivd: Likewise.
14556 (cortex_a7_r2f: Likewise.
14557 (cortex_a7_f2r: Likewise.
14558 (cortex_a7_f_flags: Likewise.
14559 (cortex_a7_f_loads: Likewise.
14560 (cortex_a7_f_loadd: Likewise.
14561 (cortex_a7_f_stores: Likewise.
14562 (cortex_a7_f_stored: Likewise.
14563 (cortex_a7_neon): Likewise.
14564 * config/arm/cortex-a8-neon.md
14565 (cortex_a8_neon_mrc): Update for attribute change.
14566 (cortex_a8_neon_mrrc): Likewise.
14567 (cortex_a8_neon_int_1): Likewise.
14568 (cortex_a8_neon_int_2): Likewise.
14569 (cortex_a8_neon_int_3): Likewise.
14570 (cortex_a8_neon_int_4): Likewise.
14571 (cortex_a8_neon_int_5): Likewise.
14572 (cortex_a8_neon_vqneg_vqabs): Likewise.
14573 (cortex_a8_neon_vmov): Likewise.
14574 (cortex_a8_neon_vaba): Likewise.
14575 (cortex_a8_neon_vaba_qqq): Likewise.
14576 (cortex_a8_neon_vsma): Likewise.
14577 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
14578 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
14579 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
14580 long_scalar): Likewise.
14581 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
14582 (cortex_a8_neon_mla_qqq_8_16): Likewise.
14583 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
14584 long_scalar_qdd_64_32_long): Likewise.
14585 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
14586 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
14587 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
14588 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
14589 (cortex_a8_neon_shift_1): Likewise.
14590 (cortex_a8_neon_shift_2): Likewise.
14591 (cortex_a8_neon_shift_3): Likewise.
14592 (cortex_a8_neon_vshl_ddd): Likewise.
14593 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
14594 (cortex_a8_neon_vsra_vrsra): Likewise.
14595 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
14596 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
14597 (cortex_a8_neon_fp_vsum): Likewise.
14598 (cortex_a8_neon_fp_vmul_ddd): Likewise.
14599 (cortex_a8_neon_fp_vmul_qqd): Likewise.
14600 (cortex_a8_neon_fp_vmla_ddd): Likewise.
14601 (cortex_a8_neon_fp_vmla_qqq): Likewise.
14602 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
14603 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
14604 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
14605 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
14606 (cortex_a8_neon_bp_simple): Likewise.
14607 (cortex_a8_neon_bp_2cycle): Likewise.
14608 (cortex_a8_neon_bp_3cycle): Likewise.
14609 (cortex_a8_neon_ldr): Likewise.
14610 (cortex_a8_neon_str): Likewise.
14611 (cortex_a8_neon_vld1_1_2_regs): Likewise.
14612 (cortex_a8_neon_vld1_3_4_regs): Likewise.
14613 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
14614 (cortex_a8_neon_vld2_4_regs): Likewise.
14615 (cortex_a8_neon_vld3_vld4): Likewise.
14616 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
14617 (cortex_a8_neon_vst1_3_4_regs): Likewise.
14618 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
14619 (cortex_a8_neon_vst3_vst4): Likewise.
14620 (cortex_a8_neon_vld1_vld2_lane): Likewise.
14621 (cortex_a8_neon_vld3_vld4_lane): Likewise.
14622 (cortex_a8_neon_vst1_vst2_lane): Likewise.
14623 (cortex_a8_neon_vst3_vst4_lane): Likewise.
14624 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
14625 (cortex_a8_neon_mcr): Likewise.
14626 (cortex_a8_neon_mcr_2_mcrr): Likewise.
14627 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
14628 * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
14630 (ca9_neon_mrrc): Likewise.
14631 (cortex_a9_neon_int_1): Likewise.
14632 (cortex_a9_neon_int_2): Likewise.
14633 (cortex_a9_neon_int_3): Likewise.
14634 (cortex_a9_neon_int_4): Likewise.
14635 (cortex_a9_neon_int_5): Likewise.
14636 (cortex_a9_neon_vqneg_vqabs): Likewise.
14637 (cortex_a9_neon_vmov): Likewise.
14638 (cortex_a9_neon_vaba): Likewise.
14639 (cortex_a9_neon_vaba_qqq): Likewise.
14640 (cortex_a9_neon_vsma): Likewise.
14641 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
14642 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
14643 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
14644 long_scalar): Likewise.
14645 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
14646 (cortex_a9_neon_mla_qqq_8_16): Likewise.
14647 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
14648 long_scalar_qdd_64_32_long): Likewise.
14649 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
14650 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
14651 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
14652 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
14653 (cortex_a9_neon_shift_1): Likewise.
14654 (cortex_a9_neon_shift_2): Likewise.
14655 (cortex_a9_neon_shift_3): Likewise.
14656 (cortex_a9_neon_vshl_ddd): Likewise.
14657 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
14658 (cortex_a9_neon_vsra_vrsra): Likewise.
14659 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
14660 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
14661 (cortex_a9_neon_fp_vsum): Likewise.
14662 (cortex_a9_neon_fp_vmul_ddd): Likewise.
14663 (cortex_a9_neon_fp_vmul_qqd): Likewise.
14664 (cortex_a9_neon_fp_vmla_ddd): Likewise.
14665 (cortex_a9_neon_fp_vmla_qqq): Likewise.
14666 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
14667 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
14668 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
14669 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
14670 (cortex_a9_neon_bp_simple): Likewise.
14671 (cortex_a9_neon_bp_2cycle): Likewise.
14672 (cortex_a9_neon_bp_3cycle): Likewise.
14673 (cortex_a9_neon_ldr): Likewise.
14674 (cortex_a9_neon_str): Likewise.
14675 (cortex_a9_neon_vld1_1_2_regs): Likewise.
14676 (cortex_a9_neon_vld1_3_4_regs): Likewise.
14677 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
14678 (cortex_a9_neon_vld2_4_regs): Likewise.
14679 (cortex_a9_neon_vld3_vld4): Likewise.
14680 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
14681 (cortex_a9_neon_vst1_3_4_regs): Likewise.
14682 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
14683 (cortex_a9_neon_vst3_vst4): Likewise.
14684 (cortex_a9_neon_vld1_vld2_lane): Likewise.
14685 (cortex_a9_neon_vld3_vld4_lane): Likewise.
14686 (cortex_a9_neon_vst1_vst2_lane): Likewise.
14687 (cortex_a9_neon_vst3_vst4_lane): Likewise.
14688 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
14689 (cortex_a9_neon_mcr): Likewise.
14690 (cortex_a9_neon_mcr_2_mcrr): Likewise.
14691 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
14692 (cortex_a9_fps): Likewise.
14693 * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
14695 (cortex_m4_fmuls): Likewise.
14696 * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
14698 (cortex_r4_mrc): Likewise.
14699 * config/arm/iterators.md: Update comment referring to neon_type.
14700 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
14701 (iwmmxt_movsi_insn): Likewise.
14702 * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
14704 (pj4_core_to_vfp): Likewise.
14705 * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
14707 * config/arm/vfp11.md (vfp_fload): Update for attribute change.
14708 (vfp_fstore): Likewise.
14709 * doc/md.texi: Change references to neon_type to refer to type.
14711 2013-09-04 Dodji Seketeli <dodji@redhat.com>
14713 * tree.h (DECL_BUILT_IN): Fix typo in comment.
14715 2013-09-04 David Edelsohn <dje.gcc@gmail.com>
14717 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
14718 lglobl if not weak.
14720 2013-09-04 Easwaran Raman <eraman@google.com>
14722 PR middle-end/57370
14723 * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
14724 (build_and_add_sum): Use it.
14725 (appears_later_in_bb): Simplify code.
14727 2013-09-04 Teresa Johnson <tejohnson@google.com>
14729 * dumpfile.c (dump_finish): Don't close stderr/stdout.
14731 2013-09-04 James Greenhalgh <james.greenhalgh@arm.com>
14733 * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
14735 2013-09-04 Jan Hubicka <jh@suse.cz>
14737 * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
14738 * ipa-devirt.c: Include diganostic.h
14739 (odr_type_d): Add types and types_set.
14740 (hash_type_name): Work for types with vtables during LTO.
14741 (odr_hasher::remove): Fix comment; destroy types_set.
14742 (add_type_duplicate): New function,
14743 (get_odr_type): Use it.
14744 (dump_type_inheritance_graph): Dump type duplicates.
14745 * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
14747 * tree.c (types_same_for_odr): Give exact answers on types with
14750 2013-09-04 Dodji Seketeli <dodji@redhat.com>
14752 * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
14753 explaining their differences.
14755 2013-09-04 Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
14757 * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
14759 2013-09-03 Jeff Law <law@redhat.com>
14761 * tree-ssa-threadedge.c (thread_across_edge): Record entire path
14762 when not threading through a joiner block. Pass joiner/no joiner
14763 state to register_jump_thread.
14764 * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
14765 state from argument rather than implying on path length.
14766 Dump the entire jump thread path into debugging dump.
14767 * tree-flow.h (register_jump_thread): Update prototype.
14769 2013-08-29 Xinliang David Li <davidxl@google.com>
14771 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
14772 Remove a trivial gcc_assert.
14774 2013-08-29 Xinliang David Li <davidxl@google.com>
14776 * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
14777 * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
14778 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
14779 Delay base decl alignment adjustment.
14780 * tree-vectorizer.c (vect_destroy_datarefs): New function.
14781 * tree-vectorizer.h: New data structure.
14782 (set_dr_misalignment): New function.
14783 (dr_misalignment): Ditto.
14784 * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
14785 (vectorizable_load): Ditto.
14786 (ensure_base_align): New function.
14787 (vectorize_loops): Add dbg_cnt support.
14788 (execute_vect_slp): Ditto.
14789 * dbgcnt.def: New debug counter.
14790 * Makefile: New dependency.
14792 2013-09-03 Meador Inge <meadori@codesourcery.com>
14796 2013-08-30 Meador Inge <meadori@codesourcery.com>
14798 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
14800 2013-09-03 David Edelsohn <dje.gcc@gmail.com>
14802 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
14803 function descriptor.
14805 2013-09-03 Richard Biener <rguenther@suse.de>
14807 * tree-affine.c (add_elt_to_tree): Fix association issue,
14808 avoid useless converts and make sure to always return a
14809 properly typed result.
14811 2013-09-03 Richard Biener <rguenther@suse.de>
14813 PR middle-end/57656
14814 * fold-const.c (negate_expr_p): Fix division case.
14815 (negate_expr): Likewise.
14817 2013-09-03 Richard Biener <rguenther@suse.de>
14820 * tree-streamer-out.c: Include tm.h.
14821 * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
14823 2013-09-03 Jan Hubicka <jh@suse.cz>
14825 * tree-profile.c (tree_profiling): Cleanup CFG when done.
14827 2013-09-03 Alan Modra <amodra@gmail.com>
14829 * config.gcc (powerpc*-*-linux*): Add support for little-endian
14830 multilibs to big-endian target and vice versa.
14831 * config/rs6000/t-linux64: Use := assignment on all vars.
14832 (MULTILIB_EXTRA_OPTS): Remove fPIC.
14833 (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
14834 * config/rs6000/t-linux64le: New file.
14835 * config/rs6000/t-linux64bele: New file.
14836 * config/rs6000/t-linux64lebe: New file.
14838 2013-09-02 Jan Hubicka <jh@suse.cz>
14840 * ipa-inline-transform.c (inline_transform): Do not
14841 optimize_inline_calls when not optimizing.
14843 2013-09-02 Jan Hubicka <jh@suse.cz>
14845 * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
14846 duplicated nodes for assembler names.
14847 * symtab.c (symtab_unregister_node): Do not attempt to unlink
14848 hard registers from assembler name hash.
14850 2013-09-02 Jan Hubicka <jh@suse.cz>
14852 * ipa-split.c (execute_split_functions): Split externally visible
14853 functions called once.
14855 2013-09-02 Martin Jambor <mjambor@suse.cz>
14858 * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
14859 linked list. When finding the correct duplicate, also consider also
14860 the caller in additon to its inlined_to node.
14862 2013-09-02 James Greenhalgh <james.greenhalgh@arm.com>
14864 * config/aarch64/aarch64-simd-builtins.def
14865 (dup_lane_scalar): Remove.
14866 * config/aarch64/aarch64-simd.md
14867 (aarch64_simd_dup): Add 'w->w' alternative.
14868 (aarch64_dup_lane<mode>): Allow for VALL.
14869 (aarch64_dup_lane_scalar<mode>): Remove.
14870 (aarch64_dup_lane_<vswap_width_name><mode>): New.
14871 (aarch64_get_lane_signed<mode>): Add w->w altenative.
14872 (aarch64_get_lane_unsigned<mode>): Likewise.
14873 (aarch64_get_lane<mode>): Likewise.
14874 * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
14875 (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
14876 * config/aarch64/iterators.md (VSWAP_WIDTH): New.
14877 (VCON): Change container of V2SF.
14878 (vswap_width_name): Likewise.
14879 * config/aarch64/arm_neon.h
14880 (__aarch64_vdup_lane_any): New.
14881 (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
14882 (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
14883 (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
14885 2013-09-02 Eric Botcazou <ebotcazou@adacore.com>
14887 PR middle-end/56382
14888 * expr.c (emit_move_complex): Do not move complex FP values as parts if
14889 the source or the destination is a single hard register.
14891 2013-09-02 Richard Biener <rguenther@suse.de>
14893 PR middle-end/57511
14894 * tree-scalar-evolution.c (instantiate_scev_name): Allow
14897 2013-09-02 Richard Biener <rguenther@suse.de>
14899 * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
14900 arithmetic to sizetype.
14902 2013-09-02 Bin Cheng <bin.cheng@arm.com>
14904 * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
14905 Find auto-increment use both before and after candidate.
14907 2013-09-02 Marek Polacek <polacek@redhat.com>
14909 * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
14911 2013-09-01 Jan Hubicka <jh@suse.cz>
14913 * Makefile.in: Add ipa-profile.o
14914 (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
14915 * cgraph.c (struct cgraph_propagate_frequency_data,
14916 cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
14917 ipa-profile.c; replace cgraph_ by ipa_ prefix.
14918 * cgraph.h (cgraph_propagate_frequency): Remove.
14919 * ipa-inline-analysis.c: Include ipa-utils.h;
14920 drop duplicated cfgloop.h.
14921 (inline_update_callee_summaries): Update.
14922 * ipa-profile.c: New file.
14923 * ipa-utils.h (ipa_propagate_frequency): Declare.
14924 * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
14925 data-streamer.h, value-prof.h.
14926 (symtab_remove_unreachable_nodes): Update profile.
14927 (struct histogram_entry, histogram, histogram_pool, histogram_hash,
14928 account_time_size, cmp_counts, dump_histogram,
14929 ipa_profile_generate_summary, ipa_profile_write_summary,
14930 ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
14931 pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
14932 Move to ipa-profile.c.
14934 2013-09-01 John David Anglin <danglin@gcc.gnu.org>
14936 * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
14938 2013-09-01 Jan Hubicka <jh@suse.cz>
14940 * common.opt (fdevirtualize-speculatively): New function.
14941 * invoke.texi (fdevirtualize-speculatively): Document.
14942 * ipa-devirt.c: Include ipa-inline.h
14943 (likely_target_p): New function.
14944 (ipa_devirt): New function.
14945 (gate_ipa_devirt): New function.
14946 (pass_data_ipa_devirt): New static var.
14947 (pass_ipa_devirt): Likewise.
14948 (make_pass_ipa_devirt): New function.
14949 * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
14950 (common_handle_option): Disable devirtualization when
14951 value range profiling is available.
14952 * passes.def (pass_ipa_devirt): Add.
14953 * timever.def (TV_IPA_DEVIRT): New timevar.
14954 * tree-pass.h (make_pass_ipa_devirt):
14956 2013-09-01 Iain Sandoe <iain@codesourcery.com>
14958 * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
14959 include sanitize(undefined).
14961 2013-08-31 Diego Novillo <dnovillo@google.com>
14963 * Makefile.in (TREE_CORE_H): Define.
14965 (GTFILES): Add tree-core.h.
14966 * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
14968 * tree-core.h: New file.
14969 Move all data structures, enum, typedefs, global
14970 declarations and constants from ...
14971 * tree.h: ... here.
14973 2013-08-31 Jan Hubicka <jh@suse.cz>
14975 * bulitins.c (expand_builtin): Do not early exit for gcov
14976 instrumented functions.
14978 2013-08-31 Marek Polacek <polacek@redhat.com>
14980 * ubsan.c: Include tm_p.h.
14982 2013-08-31 Jan Hubicka <jh@suse.cz>
14984 * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
14987 * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
14988 * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
14989 * tree-cfg.c (verify_gimple_label): ... here.
14990 * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
14991 (ipa_merge_profiles): New function.
14992 * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
14993 (lto_input_function_body): Likewise.
14994 * ipa-utils.h (ipa_merge_profiles): Declare.
14995 * lto-streamer.h (lto_input_function_body): Update prototype.
14996 (emit_label_in_global_context_p): Remove.
14997 * lto-symtab.c: Include ipa-utils.h
14998 (lto_cgraph_replace_node): Use ipa_merge_profiles.
15000 2013-08-31 Jan Hubicka <jh@suse.cz>
15002 * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
15004 2013-08-31 Jan Hubicka <jh@suse.cz>
15006 * basic-block.h (apply_scale): Make scale parmeter gcov_type.
15008 2013-08-31 Uros Bizjak <ubizjak@gmail.com>
15010 * config/alpha/alpha.c (alpha_emit_conditional_move): Update
15011 "cmp" RTX before signed_comparison_operator check to account
15012 for "code" changes.
15014 2013-08-30 Jan Hubicka <jh@suse.cz>
15016 * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
15017 (detect_type_change_1): Rename to ...
15018 (detect_type_change): ... this one; early return on non-polymorphic
15020 (detect_type_change_ssa): Add comp_type parameter; update
15021 use of detect_type_change.
15022 (compute_complex_assign_jump_func): Add param_type parameter;
15023 update use of detect_type_change_ssa.
15024 (compute_complex_ancestor_jump_func): Likewise.
15025 (ipa_get_callee_param_type): New function.
15026 (ipa_compute_jump_functions_for_edge): Compute parameter type;
15027 update calls to the jump function computation functions.
15029 2013-08-30 Teresa Johnson <tejohnson@google.com>
15030 Steven Bosscher <steven@gcc.gnu.org>
15032 * cfgrtl.c (fixup_new_cold_bb): New routine.
15033 (commit_edge_insertions): Invoke fixup_partitions.
15034 (find_partition_fixes): New routine.
15035 (fixup_partitions): Ditto.
15036 (verify_hot_cold_block_grouping): Update comments.
15037 (rtl_verify_edges): Invoke find_partition_fixes.
15038 (rtl_verify_bb_pointers): Update comments.
15039 (rtl_verify_bb_layout): Ditto.
15040 * basic-block.h (probably_never_executed_edge_p): Declare.
15041 (fixup_partitions): Ditto.
15042 * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
15043 * bb-reorder.c (sanitize_hot_paths): New function.
15044 (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
15045 sanitize_hot_paths.
15046 * predict.c (probably_never_executed_edge_p): New routine.
15047 * cfg.c (check_bb_profile): Add partition insanity warnings.
15049 2013-08-30 Meador Inge <meadori@codesourcery.com>
15051 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
15053 2013-08-30 Marek Polacek <polacek@redhat.com>
15055 * Makefile.in (ubsan.o): Add.
15056 (c-family/c-ubsan.o): Add.
15057 (builtins.o): Add ubsan.h dependency.
15058 * ubsan.h: New file.
15059 * ubsan.c: New file.
15060 * common.opt: Add -fsanitize=undefined option.
15061 (flag_sanitize): Add variable.
15062 (fsanitize=): Add option. Add Driver.
15063 (fsanitize=thread): Remove option.
15064 (fsanitize=address): Likewise.
15065 (static-libubsan): New option.
15066 * doc/invoke.texi: Document the new flag and -static-libubsan.
15067 * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
15068 (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
15069 * builtin-attrs.def (ATTR_COLD): Define.
15070 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
15071 * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
15072 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
15073 * flag-types.h (sanitize_code): New enum.
15074 * opts.c (common_handle_option): Parse command line arguments
15075 of -fsanitize=. Add -fsanitize=unreachable option.
15076 * varasm.c (get_variable_section): Adjust.
15077 (assemble_noswitch_variable): Likewise.
15078 (assemble_variable): Likewise.
15079 (output_constant_def_contents): Likewise.
15080 (categorize_decl_for_section): Likewise.
15081 (place_block_symbol): Likewise.
15082 (output_object_block): Likewise.
15083 * builtins.def: Likewise.
15084 * toplev.c (compile_file): Likewise.
15085 (process_options): Likewise.
15086 * cppbuiltin.c: Likewise.
15087 * tsan.c (tsan_pass): Likewise.
15088 (tsan_gate): Likewise.
15089 (tsan_gate_O0): Likewise.
15090 * cfgexpand.c (partition_stack_vars): Likewise.
15091 (expand_stack_vars): Likewise.
15092 (defer_stack_allocation): Likewise.
15093 (expand_used_vars): Likewise.
15094 * cfgcleanup.c (old_insns_match_p): Likewise.
15095 * asan.c (asan_finish_file): Likewise.
15096 (asan_instrument): Likewise.
15097 (gate_asan): Likewise.
15098 (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
15099 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
15100 (asan_global_struct): Use pointer_sized_int_node instead
15101 calling build_nonstandard_integer_type.
15102 (initialize_sanitizer_builtins): Likewise.
15103 (asan_finish_file): Likewise.
15104 * gcc.c: Document %{%:function(args):X}.
15105 (static_spec_functions): Add sanitize.
15106 (handle_spec_function): Add retval_nonnull argument and if non-NULL,
15107 store funcval != NULL there.
15108 (do_spec_1): Adjust handle_spec_function caller.
15109 (handle_braces): Allow %:function(args) as condition.
15110 (sanitize_spec_function): New function.
15111 (ADD_STATIC_LIBUBSAN_LIBS): Define.
15112 (LIBUBSAN_SPEC): Likewise.
15113 (LIBUBSAN_EARLY_SPEC): Likewise.
15114 (SANITIZER_SPEC): Handle libubsan.
15115 (SANITIZER_EARLY_SPEC): Likewise.
15116 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
15117 instead of fsanitize=address.
15118 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
15119 instead of fsanitize=address*.
15120 * builtins.c: Include ubsan.h.
15121 (fold_builtin_0): Instrument __builtin_unreachable.
15122 * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
15123 instead of flag_asan.
15124 * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
15125 (pointer_sized_int_node): Define.
15126 * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
15128 2013-08-30 Mike Stump <mikestump@comcast.net>
15130 * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
15133 2013-08-29 Jan Hubicka <jh@suse.cz>
15135 * cgraph.c (cgraph_function_body_availability): Handle weakref
15137 * passes.def: Remove pass_fixup_cfg.
15138 * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
15139 track when we need to remove functions.
15140 (gate_ipa_inline): Execute inlining always; add comment why.
15141 (pass_data_ipa_inline): Remove TODO_remove_functions.
15142 * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
15143 do not produce summaries.
15144 * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
15145 (symtab_nonoverwritable_alias): Assert we are not called on weakref.
15146 * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
15147 constant pool and vtable.
15149 2013-08-30 Tejas Belagod <tejas.belagod@arm.com>
15151 * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
15152 New arm_neon.h's internal macros to specify 64-bit constants.
15153 Avoid using stdint.h's macros.
15155 2013-08-30 Joern Rennecke <joern.rennecke@embecosm.com>
15157 * recog.c (verify_changes): Verify that changes[i].old is non-zero
15158 before applying REG_P.
15160 2013-08-30 Jakub Jelinek <jakub@redhat.com>
15162 PR tree-optimization/58277
15163 * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
15164 after seeing too many stmts with vdef in between dombb and current
15165 bb, invalidate everything.
15167 2013-08-30 Richard Biener <rguenther@suse.de>
15169 * fold-const.c (fold_single_bit_test): Fix overflow test.
15171 2013-08-30 Eric Botcazou <ebotcazou@adacore.com>
15173 * function.c (assign_parm_setup_reg): For a parameter passed by pointer
15174 and which can live in a register, always retrieve the value on entry.
15175 * var-tracking.c (add_stores): Treat the copy on entry for a parameter
15176 passed by invisible reference specially.
15177 (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
15178 (vt_add_function_parameter): Correctly deal with a parameter passed by
15179 invisible reference.
15181 2013-08-30 Jan Hubicka <jh@suse.cz>
15183 * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
15185 2013-08-30 Richard Biener <rguenther@suse.de>
15187 PR tree-optimization/58228
15188 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
15189 allow invariant loads in nested loop vectorization.
15191 2013-08-30 Richard Biener <rguenther@suse.de>
15193 PR tree-optimization/58223
15194 * tree-loop-distribution.c (has_anti_dependence): Rename to ...
15195 (has_anti_or_output_dependence): ... this and adjust to also
15196 look for output dependences.
15197 (mark_nodes_having_upstream_mem_writes): Adjust.
15198 (rdg_flag_uses): Likewise.
15200 2013-08-30 Richard Biener <rguenther@suse.de>
15202 PR tree-optimization/58010
15203 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
15204 assert that we have a loop-closed PHI.
15206 2013-08-29 Jan Hubicka <jh@suse.cz>
15208 * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
15209 * cgraph.c (cgraph_release_function_body): Free decl_in_state.
15210 * lto-section-in.c (lto_free_function_in_decl_state): New function.
15211 (lto_free_function_in_decl_state_for_node): New function.
15213 2013-08-29 Xinliang David Li <davidxl@google.com>
15215 * loop-unroll.c (report_unroll_peel): Minor message change.
15216 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
15217 Emit alignment peeling message with default -fopt-info.
15218 (vect_loop_versioning): Emit loop version info message.
15219 * tree-vectorizer.c (vectorize_loops): Minor message change.
15220 (execute_vect_slp): Ditto.
15222 2013-08-29 Eric Botcazou <ebotcazou@adacore.com>
15224 * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
15225 of the clone from the DECL_NAME of the original function.
15227 2013-08-29 Oleg Endo <olegendo@gcc.gnu.org>
15229 * passes.c (register_pass): Add overload.
15230 * tree-pass.h (register_pass): Forward declare it. Add comment.
15232 2013-08-29 Jan Hubicka <jh@suse.cz>
15234 * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
15235 DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
15236 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
15237 DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
15238 (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
15239 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
15240 Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
15241 (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
15243 2013-08-29 Teresa Johnson <tejohnson@google.com>
15245 * dumpfile.c (dump_loc): Output column number.
15246 * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
15247 * doc/invoke.texi: Document optall -fopt-info flag.
15248 * profile.c (read_profile_edge_counts): Use new dump framework.
15249 (compute_branch_probabilities): Ditto.
15250 * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
15251 when pass not in any opt group.
15252 * pass_manager.h (pass_manager::get_pass_profile): New method.
15253 * value-prof.c (check_counter): Use new dump framework.
15254 (check_ic_target): Ditto.
15255 * coverage.c (get_coverage_counts): Ditto.
15256 (coverage_init): Setup new dump framework.
15258 2013-08-29 Richard Biener <rguenther@suse.de>
15260 PR tree-optimization/58246
15261 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
15262 handle the dominance check inside a basic-block.
15264 2013-08-29 Richard Biener <rguenther@suse.de>
15266 PR middle-end/57287
15267 * tree-ssa-copy.c (may_propagate_copy): Allow propagating
15268 of default defs that appear in abnormal PHI nodes.
15270 2013-08-29 Richard Biener <rguenther@suse.de>
15272 PR tree-optimization/57685
15273 * tree-vrp.c (register_edge_assert_for_1): Recurse only for
15274 single-use operands to avoid exponential complexity.
15276 2013-08-28 Dehao Chen <dehao@google.com>
15278 * ipa-inline.c (edge_badness): Fix integer underflow.
15280 2013-08-28 Uros Bizjak <ubizjak@gmail.com>
15282 * gtm-builtins.def (_ITM_free): Declare leaf.
15284 2013-08-28 Jakub Jelinek <jakub@redhat.com>
15287 * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
15288 (*tls_local_dynamic_base_64_largepic): Likewise.
15289 (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
15290 Remove predicate from call operand.
15291 * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
15292 return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
15294 2013-08-28 Jeff Law <law@redhat.com>
15296 * tree-ssa-threadedge.c (thread_around_empty_block): Remove
15297 checks for the number of predecessors and successors allowed.
15298 * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
15299 which require copying a joiner block if there is a request which
15300 is a subpath that requires no joiner block copying.
15302 2013-08-28 Jan Hubicka <jh@suse.cz>
15304 * lto-streamer-out.c (DFS_write_tree_body): Drop
15305 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
15306 (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
15307 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
15308 * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
15309 Do not read DECL_ERROR_ISSUED.
15310 (unpack_ts_decl_with_vis_value_fields): Do not read
15312 (lto_input_ts_binfo_tree_pointers): Do not read
15313 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
15314 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
15315 write DECL_ERROR_ISSUED..
15316 (pack_ts_decl_with_vis_value_fields): Do not write
15318 (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
15319 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
15320 * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
15321 * tree.h (tree_decl_common): Update comment.
15322 (DECL_ERROR_ISSUED): Remove.
15324 2013-08-28 Jakub Jelinek <jakub@redhat.com>
15326 PR middle-end/58257
15327 * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
15329 2013-08-28 Jan Hubicka <jh@suse.cz>
15331 * builtins.def (free): Declare leaf.
15333 2013-08-27 David Malcolm <dmalcolm@redhat.com>
15335 * gdbhooks.py: New.
15336 * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
15337 * configure: Regenerate.
15339 2013-08-27 Martin Jambor <mjambor@suse.cz>
15341 * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
15342 (ipa_ancestor_jf_data): Likewise.
15343 (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
15344 (ipa_get_jf_pass_through_type_preserved): New function.
15345 (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
15346 (ipa_get_jf_ancestor_type_preserved): New function.
15347 * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
15348 (ipa_get_jf_ancestor_result): Likewise.
15349 (propagate_vals_accross_pass_through): Use
15350 ipa_get_jf_pass_through_result to do all the value mappings.
15351 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
15352 type_preserved flag.
15353 (ipa_set_jf_cst_copy): New function.
15354 (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
15355 (ipa_set_jf_arith_pass_through): Likewise.
15356 (ipa_set_ancestor_jf): Likewise.
15357 (compute_complex_assign_jump_func): Set type_preserved instead of
15359 (ipa_compute_jump_functions_for_edge): Likewise.
15360 (combine_known_type_and_ancestor_jfs): Honor type_preserved.
15361 (update_jump_functions_after_inlining): Update type_preserved.
15362 Explicitely create jump functions when combining one with pass_through.
15363 (ipa_write_jump_function): Stream the type_preserved flags.
15364 (ipa_read_jump_function): Likewise.
15366 2013-08-27 Jakub Jelinek <jakub@redhat.com>
15367 Aldy Hernandez <aldyh@redhat.com>
15369 * Makefile.in (omp-low.o): Depend on $(TARGET_H).
15370 * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
15371 * function.h (struct function): Add has_force_vect_loops and
15373 * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
15374 * gimple.c (gimple_build_omp_critical): Add KIND argument and
15376 * gimple.def: Update CLAUSES comments.
15377 * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
15378 (gimple_build_omp_for): Add argument to prototype.
15379 (gimple_omp_for_kind): New.
15380 (gimple_omp_for_set_kind): New.
15381 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
15382 GOVD_DATA_SHARE_CLASS.
15383 (enum omp_region_type): Add ORT_SIMD.
15384 (gimple_add_tmp_var): Handle ORT_SIMD.
15385 (gimplify_var_or_parm_decl): Same.
15386 (is_gimple_stmt): Same.
15387 (omp_firstprivatize_variable): Same.
15388 (omp_add_variable): Only use splay_tree_insert if lookup failed.
15389 (omp_notice_variable): Handle ORT_SIMD.
15390 (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
15391 (omp_check_private): Handle ORT_SIMD.
15392 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
15393 OMP_CLAUSE_SAFELEN.
15394 (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
15395 Handle OMP_CLAUSE_LASTPRIVATE.
15396 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
15397 OMP_CLAUSE_SAFELEN.
15398 (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
15399 (gimplify_expr): Handle OMP_SIMD.
15400 * internal-fn.c (expand_GOMP_SIMD_LANE): New.
15401 (expand_GOMP_SIMD_VF): New.
15402 (expand_GOMP_SIMD_LAST_LANE): New.
15403 * internal-fn.def (GOMP_SIMD_LANE): New.
15404 (GOMP_SIMD_VF): New.
15405 (GOMP_SIMD_LAST_LANE): New.
15406 * omp-low.c: Include target.h.
15407 (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
15408 OMP_CLAUSE_SAFELEN.
15409 (check_omp_nesting_restrictions): Same.
15411 (lower_rec_simd_input_clauses): New.
15412 (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
15414 (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
15415 GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
15416 (expand_omp_build_assign): New.
15417 (expand_omp_for_init_counts): New.
15418 (expand_omp_for_init_vars): New.
15419 (extract_omp_for_update_vars): New.
15420 (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
15421 and rewrite accordingly.
15422 (expand_omp_simd): New.
15423 (expand_omp_for): Use expand_omp_simd.
15424 (lower_omp_for_lastprivate): Unshare vinit when appropriate.
15425 (lower_omp_for): Do not lower the body.
15426 * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
15427 in their own loops.
15428 * tree-flow.h (find_omp_clause): Remove prototype.
15429 * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
15430 forcing vectorization of the loop, or if flag_tree_vectorize.
15431 (gate_tree_if_conversion): Similarly.
15432 * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
15433 gimple_build_omp_for.
15434 (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
15435 * tree-parloops (create_parallel_loop): Pass kind argument to
15436 gimple_build_omp_for.
15437 * tree-pretty-print.c (dump_omp_clause): Add cases for
15438 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
15439 OMP_CLAUSE__SIMDUID_.
15440 (dump_generic_node): Handle OMP_SIMD.
15441 * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
15442 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
15443 unroll OMP_SIMD loops here.
15444 * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
15445 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
15447 (vect_analyze_data_refs): Handle simd loops.
15448 * tree-vect-loop.c (vectorizable_live_operation): Handle
15450 * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
15451 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
15452 (vectorizable_load): Same.
15453 * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
15454 (struct simduid_to_vf): New.
15455 (simduid_to_vf::hash): New.
15456 (simduid_to-vf::equal): New.
15457 (struct simd_array_to_simduid): New.
15458 (simd_array_to_simduid::hash): New.
15459 (simd_array_to_simduid::equal): New.
15460 (adjust_simduid_builtins): New.
15461 (struct note_simd_array_uses_struct): New.
15462 (note_simd_array_uses_cb): New.
15463 (note_simd_array_uses): New.
15464 (vectorize_loops): Handle simd hints and adjust simd builtins
15466 * tree-vectorizer.h (struct _stmt_vec_info): Add
15467 simd_lane_access_p field.
15468 (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
15469 * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
15470 OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
15471 (omp_clause_code_name): Same.
15472 (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
15473 OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
15474 * tree.def (OMP_SIMD): New entry.
15475 * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
15476 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
15477 (OMP_CLAUSE_DECL): Adjust range for new clauses.
15478 (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
15479 (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
15480 (OMP_CLAUSE_LINEAR_STEP): New.
15481 (OMP_CLAUSE_SAFELEN_EXPR): New.
15482 (OMP_CLAUSE__SIMDUID__DECL): New.
15483 (find_omp_clause): New prototype.
15485 2013-08-27 H.J. Lu <hongjiu.lu@intel.com>
15487 * config/i386/driver-i386.c (host_detect_local_cpu): Update
15488 Haswell processor detection.
15490 2013-08-27 Christian Widmer <shadow@umbrox.de>
15493 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
15494 of Ivy Bridge and Haswell processors. Assume core-avx2 for unknown
15495 AVX2 capable processors.
15497 2013-08-27 Tejas Belagod <tejas.belagod@arm.com>
15499 * config/aarch64/arm_neon.h: Replace all inline asm implementations
15500 of vget_low_* with implementations in terms of other intrinsics.
15502 2013-08-27 Marc Glisse <marc.glisse@inria.fr>
15504 PR middle-end/57219
15505 * doc/extend.texi (__builtin_isinf_sign): Restrict the return
15506 values to -1, 0 and 1.
15508 2013-08-27 Vidya Praveen <vidyapraveen@arm.com>
15510 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
15511 UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
15512 (<optab><mode>3_insn): Remove.
15513 (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
15514 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
15515 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
15516 (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
15517 (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
15518 (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
15519 (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
15520 (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
15521 (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
15522 (ror<mode>3_insn): Likewise.
15523 * config/aarch64/predicates.md (aarch64_simd_register): New.
15525 2013-08-27 Richard Biener <rguenther@suse.de>
15527 PR tree-optimization/57521
15528 * tree-if-conv.c (if_convertible_bb_p): Verify that at least
15529 one edge is non-critical.
15530 (find_phi_replacement_condition): Make sure to use a non-critical
15531 edge. Cleanup and remove old bug workarounds.
15532 (bb_postdominates_preds): Remove.
15533 (if_convertible_loop_p_1): Do not compute post-dominators.
15534 (combine_blocks): Do not free post-dominators.
15535 (main_tree_if_conversion): Likewise.
15536 (pass_data_if_conversion): Add TODO_verify_ssa.
15538 2013-08-27 DJ Delorie <dj@redhat.com>
15540 * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
15542 2013-08-27 Yufeng Zhang <yufeng.zhang@arm.com>
15544 * function.c (assign_parm_find_data_types): Set passed_mode and
15545 nominal_mode to the TYPE_MODE of nominal_type for the built
15546 pointer type in case of the struct-pass-by-reference.
15548 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
15550 * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
15551 (UINT16_TYPE): Change default to "unsigned int".
15553 * config/avr/avr.opt (mfract-convert-truncate): New option.
15554 * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
15555 is set, round negative fractional integers according to n1169
15556 when converting to integer types.
15558 2013-08-26 Jan Hubicka <jh@suse.cz>
15560 * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
15561 methods can not be called indirectly when their address is not taken.
15563 2013-08-26 Jan Hubicka <jh@suse.cz>
15565 * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
15568 2013-08-26 Jan Hubicka <jh@suse.cz>
15570 * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
15573 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
15575 * reload.c (find_valid_class): Allow classes that do not include
15576 FIRST_PSEUDO_REGISTER - 1.
15578 2013-08-26 Jan Hubicka <jh@suse.cz>
15580 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
15581 fix edge count/frequency when speculation failed; fix type check
15582 for the direct call.
15584 2013-08-26 Jan Hubicka <jh@suse.cz>
15586 * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
15588 2013-08-26 Jan Hubicka <jh@suse.cz>
15590 * ipa-inline-transform.c (inline_transform): Be ready for basic block
15591 to be changed by edge redirection.
15593 2013-08-26 Jan Hubicka <jh@suse.cz>
15595 * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
15596 formating; add sanity check.
15597 (cgraph_resolve_speculation): Add FIXME about scaling profiles.
15598 (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
15599 * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
15600 (resolve_noninline_speculation): Update callee keys, too.
15602 2013-08-26 Jan Hubicka <jh@suse.cz>
15604 * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
15605 (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
15607 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
15609 * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
15612 2013-08-26 Uros Bizjak <ubizjak@gmail.com>
15614 * config/i386/i386.c (ix86_debug_options): Remove prototype.
15615 (x86_64_elf_select_section): Ditto.
15616 (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
15618 (ix86_pass_by_reference): Ditto.
15619 (output_set_got): Ditto.
15620 (ix86_unary_operator_ok): Ditto.
15621 (ix86_expand_builtin): Ditto.
15623 2013-08-23 Jan Hubicka <jh@suse.cz>
15625 * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
15627 2013-08-23 Jan Hubicka <jh@suse.cz>
15629 * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
15630 (tree_decl_with_vis): Add FINAL field.
15632 2013-08-23 Jeff Law <law@redhat.com>
15634 * tree-ssa-pre.c (do_regular_insertion): Include the expression in
15635 the debugging dump when the expression is fully redundant.
15637 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
15639 * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
15640 * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
15641 * pretty-print.c (pp_formatted_text_data): Likewise.
15642 (pp_write_text_to_stream): Likewise.
15643 (pp_write_text_as_dot_label_to_stream): Likewise.
15644 (pp_append_r): Likewise.
15645 (pp_format): Likewise.
15646 (pp_flush): Likewise.
15647 (pp_clear_output_area): Likewise.
15648 (pp_append_text): Likewise.
15649 (pp_formatted_text): Likewise.
15650 (pp_remaining_character_count_for_line): Likewise.
15651 (pp_newline): Likewise.
15652 (pp_character): Likewise.
15653 (output_buffer::~output_buffer): Define.
15654 (pretty_printer::~pretty_printer): Destruct output buffer.
15655 * pretty-print.h (output_buffer::~output_buffer): Declare.
15656 (pretty_printer::~pretty_printer): Declare virtual.
15658 2013-08-24 Marc Glisse <marc.glisse@inria.fr>
15661 * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
15662 HOST_WIDE_INT_M1U): New macros.
15663 * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
15664 fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
15665 unsigned -1 for lshift.
15666 * cse.c (cse_insn): Likewise.
15667 * double-int.c (rshift_double, lshift_double): Likewise.
15668 * builtins.c (fold_builtin_bitop): Likewise.
15669 * combine.c (force_to_mode): Likewise.
15670 * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
15671 * simplify-rtx.c (simplify_const_unary_operation,
15672 simplify_const_binary_operation): Likewise.
15673 * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
15674 check_va_list_escapes): Likewise.
15675 * rtlanal.c (nonzero_bits1): Likewise.
15676 * expmed.c (expand_smod_pow2): Likewise.
15677 * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
15679 2013-08-23 Jan Hubicka <jh@suse.cz>
15681 * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
15682 as having address taken.
15684 2013-08-23 Jan Hubicka <jh@suse.cz>
15686 * ipa-utils.h (method_class_type): Declare.
15687 * ipa-devirt.c (method_class_type): Export.
15689 * cgraphunit.c (analyze_functions): Do basic devirtualization;
15690 do not walk base classes of anonymous types.
15692 2013-08-23 Kaz Kojima <kkojima@gcc.gnu.org>
15694 PR rtl-optimization/58220
15695 PR regression/58221
15696 * final.c (reemit_insn_block_notes): Use NEXT_INSN to
15697 handle SEQUENCE insns properly.
15699 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
15701 * pretty-print.h (pp_newline_and_flush): Declare. Remove macro
15703 (pp_newline_and_indent): Likewise.
15704 (pp_separate_with): Likewise.
15705 * pretty-print.c (pp_newline_and_flush): Define.
15706 (pp_newline_and_indent): Likewise.
15707 (pp_separate_with): Likewise.
15709 2013-08-23 Jakub Jelinek <jakub@redhat.com>
15712 * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
15713 * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
15715 2013-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
15717 * config/i386/predicates.md (ext_sse_reg_operand): New.
15718 * config/i386/i386.md (*movti_internal): Use
15719 predicate to determine if EVEX is needed.
15720 (*movsi_internal): Ditto.
15721 (*movdf_internal): Ditto.
15722 (*movsf_internal): Ditto.
15723 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
15725 2013-08-23 Jakub Jelinek <jakub@redhat.com>
15727 PR tree-optimization/58209
15728 * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
15729 (find_tail_calls): Give up for pointer result types if m is non-NULL.
15730 (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
15731 emit POINTER_PLUS_EXPR.
15732 (create_tailcall_accumulator): For pointer result type accumulate in
15735 2013-08-22 Paolo Carlini <paolo.carlini@oracle.com>
15737 * configure.ac: Add backslashes missing from the last change.
15738 * configure: Regenerate.
15740 2013-08-22 Jan Hubicka <jh@susue.cz>
15742 * ipa.c (function_and_variable_visibility): First remember function
15743 was global and then make it local.
15745 2013-08-22 Julian Brown <julian@codesourcery.com>
15747 * configure.ac: Add aarch64 to list of arches which use "nop" in
15749 * configure: Regenerate.
15751 2013-08-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15753 * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
15754 gnu_libc_has_function.
15755 * config/s390/tpf.h: Likewise.
15757 2013-08-22 Jan Hubicka <jh@susue.cz>
15759 * timevar.c (validate_phases): Add cast.
15761 2013-08-22 Jan Hubicka <jh@susue.cz>
15763 * timevar.c (validate_phases): Use size_t for memory.
15764 * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
15766 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
15768 * pretty-print.h (output_buffer::output_buffer): Declare.
15769 (pretty_printer::pretty_printer): Likewise.
15770 (pp_construct): Remove.
15771 * pretty-print.c (output_buffer::output_buffer): Define.
15772 (pretty_printer::pretty_printer): Rename from pp_construct. Simplify.
15773 * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
15774 (print_gimple_expr): Likewise.
15775 (print_gimple_seq): Likewise.
15776 (gimple_dump_bb): Likewise.
15777 * sched-vis.c (dump_value_slim): Likewise.
15778 (dump_insn_slim): Likewise.
15779 (dump_rtl_slim): Likewise.
15780 (str_pattern_slim): Likewise.
15781 * tree-mudflap.c (mf_varname_tree): Likewise.
15782 * graph.c (print_graph_cfg): Likewise.
15783 (start_graph_dump): Likewise.
15784 * tree-pretty-print.c (maybe_init_pretty_print): Likewise. Use
15786 * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
15787 pretty printer initialization.
15788 * coretypes.h (diagnostic_context): Remove superflous type alias
15790 (pretty_printer): Likewise. Declare directly as a class.
15791 (pretty_print_info): Remove declaration as class.
15792 * asan.c (asan_emit_stack_protection): Remove call to pp_construct
15793 and pp_clear_output_area.
15794 (asan_add_global): Likewise.
15796 2013-08-22 Jan Hubicka <jh@suse.cz>
15798 * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
15799 * ipa-utils.h (update_type_inheritance_graph): Declare.
15800 (possible_polymorphic_call_target_p): Declare.
15801 (possible_polymorphic_call_target_p): New.
15802 * ipa-devirt.c: Update toplevel comments.
15803 (cached_polymorphic_call_targets): Move up.
15804 (odr_type_d): Move ID down.
15805 (polymorphic_type_binfo_p): Update comment.
15806 (odr_hasher::remove): Likewise;
15807 (get_odr_type): Set anonymous_namespace.
15808 (dump_odr_type): Dump it.
15809 (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
15810 (maybe_record_node): Record node in cached_polymorphic_call_targets.
15811 (record_binfo): Add comment.
15812 (free_polymorphic_call_targets_hash): Do not ICE when cache is not
15814 (devirt_node_removal_hook): Do not iCE when cache is freed.
15815 (possible_polymorphic_call_target_p): New predicate.
15816 (update_type_inheritance_graph): New function.
15818 2013-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
15819 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15820 Sergey Lega <sergey.s.lega@intel.com>
15821 Anna Tikhonova <anna.tikhonova@intel.com>
15822 Ilya Tocar <ilya.tocar@intel.com>
15823 Andrey Turetskiy <andrey.turetskiy@intel.com>
15824 Ilya Verbin <ilya.verbin@intel.com>
15825 Kirill Yukhin <kirill.yukhin@intel.com>
15826 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15828 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
15829 (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
15830 (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
15831 (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
15832 (OPTION_MASK_ISA_AVX2_UNSET): Update.
15833 (OPTION_MASK_ISA_AVX512F_UNSET): New.
15834 (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
15835 (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
15836 (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
15837 (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
15838 OPT_mavx512pf, OPT_mavx512er cases.
15839 * config/i386/constraints.md (v): New constraint.
15840 (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
15841 * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
15842 (bit_AVX512CD): New.
15843 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
15844 AVX512F, AVX512ER, AVX512PF, AVX512CD features.
15845 * config/i386/i386-c.c (ix86_target_macros_internal):
15846 Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
15848 * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
15849 (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
15850 * config/i386/i386.c (regclass_map, dbx_register_map)
15851 (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
15852 (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
15853 (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
15854 -mavx512pf options.
15855 (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
15856 PTA_AVX512PF, PTA_AVX512CD. Handle -mavx512f, -mavx512er, -mavx512cd,
15857 -mavx512pf options. Fix formatting.
15858 (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
15859 targets. Squash EVEX_SSE_REGS if AVX512F is disabled.
15860 (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
15861 -mavx512cd, -mavx512pf options.
15862 (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
15863 (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
15864 (ix86_preferred_output_reload_class): Replace SSE_REGS with
15866 (ix86_hard_regno_mode_ok): Support 512-bit registers.
15867 (ix86_set_reg_reg_cost): Ditto.
15868 (x86_order_regs_for_local_alloc): Ditto.
15869 (MAX_VECT_LEN): Extend to 64-byte.
15870 (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
15871 * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
15872 (TARGET_AVX512ER, TARGET_AVX512CD): New.
15873 (BIGGEST_ALIGNMENT): Extend to 512-bits.
15874 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
15875 (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
15876 (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
15877 (SSE_REG_MODE_P): Support new modes.
15878 (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
15879 (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
15880 (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
15881 (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
15882 (REG_CLASS_CONTENTS): Add new registers.
15883 (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
15884 (EXT_REX_SSE_REGNO_P): New.
15885 (HI_REGISTER_NAMES): Add new registers.
15886 * config/i386/i386.md: Define constants for new registers.
15887 (mode): Add new 512-bit modes.
15888 (prefix): Support evex prefix.
15889 (isa): Support avx512f, noavx512f, fma_avx512f.
15890 (ssemodesuffix): Add new 512-bit modes.
15892 (*movxi_internal_avx512f): Ditto.
15893 (*movdi_internal): Replace constraint "x" with the new constraint "v".
15895 (*movsi_internal): Likewise.
15896 (*movdf_internal): Likewise.
15897 (*movsf_internal): Likewise.
15898 (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
15899 (<code><mode>3): Likewise.
15900 * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
15902 * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
15903 with the new constraint "v".
15904 * config/i386/sse.md (*mov<mode>_internal): Support new registers and
15906 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
15907 with the new constraint "v".
15908 (<sse2>_loaddqu<avxsizesuffix>): Likewise.
15909 (<sse2>_storedqu<avxsizesuffix>): Likewise.
15910 (*<plusminus_insn><mode>3): Likewise.
15911 (<sse>_vm<plusminus_insn><mode>3): Likewise.
15912 (*mul<mode>3): Likewise.
15913 (<sse>_vmmul<mode>3): Likewise.
15914 (<sse>_div<mode>3): Likewise.
15915 (<sse>_vmdiv<mode>3): Likewise.
15916 (<sse>_sqrt<mode>2): Likewise.
15917 (<sse>_vmsqrt<mode>2): Likewise.
15918 (*<code><mode>3_finite): Likewise.
15919 (*<code><mode>3) <smaxmin>: Likewise.
15920 (<sse>_vm<code><mode>3): Likewise.
15921 (*<code><mode>3) <any_logic>: Likewise.
15922 (*fma_fmadd_<mode>): Likewise.
15923 (*fma_fmsub_<mode>): Likewise.
15924 (*fma_fnmadd_<mode>): Likewise.
15925 (*fma_fnmsub_<mode>): Likewise.
15926 (*fma_fmaddsub_<mode>): Likewise.
15927 (*fma_fmsubadd_<mode>): Likewise.
15928 (*fmai_fmadd_<mode>): Likewise.
15929 (*fmai_fmsub_<mode>): Likewise.
15930 (*fmai_fnmadd_<mode>): Likewise.
15931 (*fmai_fnmsub_<mode>): Likewise.
15932 (sse_cvtsi2ss): Likewise.
15933 (sse_cvtsi2ssq): Likewise.
15934 (sse_cvtss2si): Likewise.
15935 (sse_cvtss2si_2): Likewise.
15936 (sse_cvtss2siq): Likewise.
15937 (sse_cvtss2siq_2): Likewise.
15938 (sse_cvttss2si): Likewise.
15939 (sse_cvtss2siq_2): Likewise.
15940 (float<sseintvecmodelower><mode>2): Likewise.
15941 (sse2_cvtsd2si_2): Likewise.
15942 (sse2_cvtsd2siq_2): Likewise.
15943 (*<plusminus_insn><mode>3): Likewise.
15944 (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
15945 (*<sse4_1_avx2>_mul<mode>3): Likewise.
15946 (ashr<mode>3): Likewise.
15947 (<shift_insn><mode>3): Likewise.
15948 (avx2_<code><mode>3): Likewise.
15949 (*avx2_<code><mode>3): Likewise.
15950 (*andnot<mode>3): Likewise.
15951 (*<code><mode>3) <any_logic>: Likewise.
15952 (abs<mode>2): Likewise.
15953 (avx2_permvar<mode>): Likewise.
15954 (avx2_perm<mode>_1): Likewise.
15955 (*avx_vpermilp<mode>): Likewise.
15956 (avx_vpermilvar<mode>3): Likewise.
15957 (avx2_ashrv<mode>): Likewise.
15958 (avx2_<shift_insn>v<mode>): Likewise.
15959 * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
15961 * doc/rtl.texi: Document XImode.
15963 2013-08-21 Jeff Law <law@redhat.com>
15965 * tree-flow.h (register_jump_thread): Pass vector of edges
15966 instead of each important edge.
15967 * tree-ssa-threadedge.c (thread_across_edge): Build the jump
15968 thread path into a vector and pass that to register_jump_thread.
15969 * tree-ssa-threadupdate.c (register_jump_thread): Conver the
15970 passed in edge vector to the current 3-edge form.
15973 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
15975 * dce.c (fini_dce): Call df_analyze again just in case
15976 delete_unmarked_insns removed anything.
15978 2013-08-21 Joern Rennecke <joern.rennecke@embecosm.com>
15980 * reload.h (struct reg_equivs): Rename to ..
15981 (struct reg_equivs_s): .. this.
15983 2013-08-20 Martin Liska <marxin.liska@gmail.com>
15985 * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
15987 2013-08-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15989 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
15991 2013-08-21 Jeff Law <law@redhat.com>
15993 * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
15994 simplify assignments too. If the RHS collapses to a singleton
15995 range, then return the value for the range.
15997 2013-08-21 Kirill Yukhin <kirill.yukhin@intel.com>
15999 * config/i386/sse.md (V16): Rename to...
16001 (mov<mode>): Update iterator name.
16002 (*mov<mode>_internal): Ditto.
16003 (push<mode>1): Ditto.
16004 (movmisalign<mode>): Ditto.
16006 2013-08-20 Jan Hubicka <jh@suse.cz>
16009 * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
16010 entry for direct edges.
16011 (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
16013 2013-08-20 David Malcolm <dmalcolm@redhat.com>
16015 Revert my last two changes, r201865 and r201864:
16018 2013-08-20 David Malcolm <dmalcolm@redhat.com>
16020 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
16021 instances can own GC refs.
16023 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
16024 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
16025 (gcc::context::gt_pch_nx): Likewise.
16026 (gcc::context::gt_pch_nx): Likewise.
16027 * ggc.h (gt_ggc_mx <T>): New.
16028 (gt_pch_nx_with_op <T>): New.
16029 (gt_pch_nx <T>): New.
16030 * passes.c (opt_pass::gt_ggc_mx): New.
16031 (opt_pass::gt_pch_nx): New.
16032 (opt_pass::gt_pch_nx_with_op): New.
16033 (pass_manager::gt_ggc_mx): New.
16034 (pass_manager::gt_pch_nx): New.
16035 (pass_manager::gt_pch_nx_with_op): New.
16036 (pass_manager::operator new): Use
16037 ggc_internal_cleared_alloc_stat rather than xcalloc.
16038 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
16039 (pass_manager::gt_ggc_mx): New.
16040 (pass_manager::gt_pch_nx): New.
16041 (pass_manager::gt_pch_nx_with_op): New.
16042 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
16043 (opt_pass::operator new): New.
16044 (opt_pass::gt_ggc_mx): New.
16045 (opt_pass::gt_pch_nx): New.
16046 (opt_pass::gt_pch_nx_with_op): New.
16049 2013-08-20 David Malcolm <dmalcolm@redhat.com>
16051 * Makefile.in (GTFILES): Add context.h.
16052 * context.c (gcc::context::operator new): New.
16053 (gcc::context::gt_ggc_mx): New.
16054 (gcc::context::gt_pch_nx): New.
16055 (gcc::context::gt_pch_nx): New.
16056 * context.h (gcc::context): Add GTY((user)) marking.
16057 (gcc::context::operator new): New.
16058 (gcc::context::gt_ggc_mx): New.
16059 (gcc::context::gt_pch_nx): New.
16060 (gcc::context::gt_pch_nx): New.
16061 (g): Add GTY marking.
16062 (gt_ggc_mx (gcc::context *)): New.
16063 (gt_pch_nx (gcc::context *)): New.
16064 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
16065 void *cookie)): New.
16066 * gengtype.c (open_base_files) <ifiles>: Add context.h.
16068 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
16070 * dce.c (fini_dce): Call df_analyze again just in case
16071 delete_unmarked_insns removed anything.
16073 2013-08-20 Teresa Johnson <tejohnson@google.com>
16075 PR rtl-optimizations/57451
16076 * final.c (reemit_insn_block_notes): Prevent lexical blocks
16077 from crossing split section boundaries.
16079 2013-08-20 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
16081 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
16082 * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
16083 with MULTLIB_DEFAULTS.
16085 2013-08-20 Nick Clifton <nickc@redhat.com>
16087 * target.def (narrow_volatile_bitfield): Note that the default
16088 value is false, not !TARGET_STRICT_ALIGN.
16089 * doc/tm.texi: Regenerate.
16091 2013-08-20 Pavel Chupin <pavel.v.chupin@intel.com>
16093 Fix LIB_SPEC for systems without libpthread.
16095 * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
16096 * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
16098 * config/i386/linux-common.h: Likewise.
16099 * config/mips/linux-common.h: Likewise.
16101 2013-08-20 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
16103 * tree-ssa-ccp.c (get_default_value): Remove redundant condition
16106 2013-08-20 David Malcolm <dmalcolm@redhat.com>
16108 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
16109 instances can own GC refs.
16111 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
16112 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
16113 (gcc::context::gt_pch_nx): Likewise.
16114 (gcc::context::gt_pch_nx): Likewise.
16115 * ggc.h (gt_ggc_mx <T>): New.
16116 (gt_pch_nx_with_op <T>): New.
16117 (gt_pch_nx <T>): New.
16118 * passes.c (opt_pass::gt_ggc_mx): New.
16119 (opt_pass::gt_pch_nx): New.
16120 (opt_pass::gt_pch_nx_with_op): New.
16121 (pass_manager::gt_ggc_mx): New.
16122 (pass_manager::gt_pch_nx): New.
16123 (pass_manager::gt_pch_nx_with_op): New.
16124 (pass_manager::operator new): Use
16125 ggc_internal_cleared_alloc_stat rather than xcalloc.
16126 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
16127 (pass_manager::gt_ggc_mx): New.
16128 (pass_manager::gt_pch_nx): New.
16129 (pass_manager::gt_pch_nx_with_op): New.
16130 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
16131 (opt_pass::operator new): New.
16132 (opt_pass::gt_ggc_mx): New.
16133 (opt_pass::gt_pch_nx): New.
16134 (opt_pass::gt_pch_nx_with_op): New.
16136 2013-08-20 David Malcolm <dmalcolm@redhat.com>
16138 * Makefile.in (GTFILES): Add context.h.
16139 * context.c (gcc::context::operator new): New.
16140 (gcc::context::gt_ggc_mx): New.
16141 (gcc::context::gt_pch_nx): New.
16142 (gcc::context::gt_pch_nx): New.
16143 * context.h (gcc::context): Add GTY((user)) marking.
16144 (gcc::context::operator new): New.
16145 (gcc::context::gt_ggc_mx): New.
16146 (gcc::context::gt_pch_nx): New.
16147 (gcc::context::gt_pch_nx): New.
16148 (g): Add GTY marking.
16149 (gt_ggc_mx (gcc::context *)): New.
16150 (gt_pch_nx (gcc::context *)): New.
16151 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
16152 void *cookie)): New.
16153 * gengtype.c (open_base_files) <ifiles>: Add context.h.
16155 2013-08-20 Alan Modra <amodra@gmail.com>
16158 * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
16159 (rs6000_emit_epilogue): Likewise.
16161 2013-08-19 Dehao Chen <dehao@google.com>
16163 * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
16165 2013-08-19 Peter Bergner <bergner@vnet.ibm.com>
16166 Jakub Jelinek <jakub@redhat.com>
16168 * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
16169 (BUILT_IN_FABSD64): Likewise.
16170 (BUILT_IN_FABSD128): Likewise.
16171 * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
16172 (fold_builtin_1): Likewise.
16173 * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
16174 destination and source operands.
16175 (*abstd2_fpr): Likewise.
16176 (*nabstd2_fpr): Likewise.
16178 2013-08-19 Richard Sandiford <rdsandiford@googlemail.com>
16180 * config/mips/mips.c (mips_adjust_insn_length): Add checks for
16183 2013-08-19 Aldy Hernandez <aldyh@redhat.com>
16185 * doc/invoke.texi (-fcilkplus): Clarify that implementation is
16188 2013-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
16190 * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
16191 * builtins.c (default_libc_has_function): New.
16192 (gnu_libc_has_function): Ditto.
16193 (no_c99_libc_has_function): Ditto.
16194 (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
16195 instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
16196 (fold_builtin_sincos): Likewise.
16197 (fold_builtin_cexp): Likewise.
16198 * builtins.def (DEF_C94_BUILTIN): Likewise.
16199 (DEF_C99_BUILTIN): Likewise.
16200 (DEF_C99_C90RES_BUILTIN): Likewise.
16201 (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
16202 definitions to using this define.
16203 * config/darwin-protos.h (darwin_libc_has_function): New.
16204 * config/darwin.c (darwin_libc_has_function): Ditto.
16205 * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
16206 TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
16207 * config/darwin.h: Ditto.
16208 * config/elfos.h: Ditto.
16209 * config/freebsd.h: Ditto.
16210 * config/i386/cygming.h: Ditto.
16211 * config/i386/djgpp.h: Ditto.
16212 * config/i386/i386-interix.h: Ditto.
16213 * config/microblaze/microblaze.h: Ditto.
16214 * config/mmix/mmix.h: Ditto.
16215 * config/gnu-user.h: Ditto.
16216 * config/ia64/hpux.h: Ditto.
16217 * config/pa/pa-hpux.h: Ditto.
16218 * config/pdp11/pdp11.h: Ditto.
16219 * config/picochip/picochip.h: Ditto.
16220 * config/linux.h: Ditto.
16221 * config/netbsd.h: Ditto.
16222 * config/openbsd.h: Ditto.
16223 * config/rs6000/aix43.h: Ditto.
16224 * config/rs6000/aix51.h: Ditto.
16225 * config/rs6000/aix52.h: Ditto.
16226 * config/rs6000/aix53.h: Ditto.
16227 * config/rs6000/aix61.h: Ditto.
16228 * config/rs6000/darwin.h: Ditto.
16229 * config/rs6000/linux.h: Ditto.
16230 * config/rs6000/linux64.h: Ditto.
16231 * config/s390/tpf.h: Ditto.
16232 * config/sol2-10.h: Ditto.
16233 * config/sol2.h: Ditto.
16234 * config/vms/vms.h: Ditto.
16235 * config/vxworks.h: Ditto.
16236 * config/linux-android.c (linux_android_libc_has_function):
16237 New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
16238 * config/linux-protos.h (linux_android_libc_has_function):
16240 * config/i386/i386.c (ix86_libc_has_function): New.
16241 * config/i386/i386-protos.h
16242 (ix86_libc_has_function): New declaration.
16243 * config/i386/i386.md
16244 ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
16245 ("isinf<mode>2): Likewise.
16246 * convert.c (convert_to_integer): Using new target hook
16247 TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
16248 TARGET_C99_FUNCTIONS.
16249 * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
16250 * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
16251 * coretypes.h (function_class): New enum for different
16252 classes of functions.
16253 * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
16254 * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
16255 (TARGET_HAS_SINCOS): Likewise.
16256 (TARGET_LIBC_HAS_FUNCTION): New.
16257 * doc/tm.texi: Regenerated.
16258 * targhooks.h (default_libc_has_function): New declaration.
16259 (no_c99_libc_has_function): Ditto.
16260 (gnu_libc_has_function): Ditto.
16261 * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
16262 and TARGET_HAS_SINCOS.
16264 2013-08-18 Jan Hubicka <jh@suse.cz>
16266 * Makeifle-in (ipa-devirt.o): New.
16267 (GTFILES): Add ipa-utils.h and ipa-devirt.c
16268 * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
16269 (analyze_functions): Look into possible targets of polymorphic call.
16270 * dumpfile.c (dump_files): Add type-inheritance dump.
16271 * dumpfile.h (TDI_inheritance): New.
16272 * ipa-devirt.c: New file.
16273 * ipa-utils.h (odr_type_d): Forward declare.
16274 (odr_type): New type.
16275 (build_type_inheritance_graph): Declare.
16276 (possible_polymorphic_call_targets): Declare and introduce inline
16277 variant when only edge is pased.
16278 (dump_possible_polymorphic_call_targets): Likewise.
16279 * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
16280 * tree.c (type_in_anonymous_namespace_p): Break out from ...
16281 (types_same_for_odr): ... here.
16282 * tree.h (type_in_anonymous_namespace_p): Declare.
16284 2013-08-18 Jakub Jelinek <jakub@redhat.com>
16286 PR tree-optimization/58006
16287 * tree-parloops.c (take_address_of): Don't ICE if get_name
16289 (eliminate_local_variables_stmt): Remove clobber stmts.
16291 2013-08-18 Eric Botcazou <ebotcazou@adacore.com>
16293 * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
16294 error message is issued for an alias to undefined symbol.
16296 2013-08-18 Jan Hubicka <jh@suse.cz>
16298 * cgraph.c (cgraph_create_indirect_edge): Discover
16299 polymorphic calls and record basic info into indirect_info.
16300 * gimple-fold.c (gimple_fold_call): When doing BINFO based
16301 devirtualization, ignore objc function calls.
16302 * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
16303 call with no parm index info.
16304 * ipa-prop.c (ipa_analyze_call_uses): Likewise.
16305 * tree.c (virtual_method_call_p): New function.
16306 * tree.h (virtual_method_call_p): Declare.
16308 2013-08-16 Jan Hubicka <jh@suse.cz>
16310 PR middle-end/58179
16311 * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
16313 2013-08-16 David Edelsohn <dje.gcc@gmail.com>
16315 * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
16318 2013-08-16 David Malcolm <dmalcolm@redhat.com>
16320 * gengtype.c (type_for_name): Add special-case support for
16321 locating types within the "gcc::" namespace.
16322 (open_base_files): Emit a "using namespace gcc" directive.
16324 2013-08-16 Michael Meissner <meissner@linux.vnet.ibm.com>
16327 * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
16328 memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
16330 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
16331 array instead of each individual operand as a separate argument.
16332 (emit_fusion_gpr_load): Likewise.
16333 (expand_fusion_gpr_load): Add new function declaration.
16335 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
16336 signature to have the operands passed as an array, instead of as
16337 separate arguments. Allow ZERO_EXTEND to be in the memory
16338 address, and also SIGN_EXTEND if -mpower8-fusion-sign. Do not
16339 depend on the register live/dead flags when peepholes are run.
16340 (expand_fusion_gpr_load): New function to be called from the
16341 peephole2 pass, to change the register that addis sets to be the
16343 (emit_fusion_gpr_load): Change the calling signature to have the
16344 operands passed as an array, instead of as separate arguments.
16345 Allow ZERO_EXTEND to be in the memory address, and also
16346 SIGN_EXTEND if -mpower8-fusion-sign.
16348 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
16349 unspec enumeration.
16350 (power8 fusion peephole/peephole2): Rework the fusion peepholes to
16351 adjust the register addis loads up in the peephole2 pass. Do not
16352 depend on the register live/dead state when the peephole pass is done.
16354 2013-08-16 David Malcolm <dmalcolm@redhat.com>
16356 * gengtype.c (create_user_defined_type): Ensure that the kind
16357 is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
16358 declaration is seen before the GTY((user)) marking.
16360 2013-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
16363 * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
16365 2013-08-16 Jan Hubicka <jh@suse.cz>
16367 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
16368 arugment expected_type.
16369 (gimple_fold_call): Use it.
16370 * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
16371 * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
16372 * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
16373 (try_make_edge_direct_virtual_call): Likewise.
16374 * tree.c (obj_type_ref_class): New.
16375 * tree.h (obj_type_ref_class): Use it.
16377 2013-08-16 Gabriel Dos Reis <gdr@integrable-solutions.net>
16379 * sched-vis.c (rtl_slim_pp_initialized): Remove.
16380 (rtl_slim_pp): Likewise.
16381 (init_rtl_slim_pretty_print): Likewise.
16382 (dump_value_slim): Don't call it. Use local pretty printer.
16383 (dump_insn_slim): Likewise.
16384 (dump_rtl_slim): Likewise.
16385 (str_pattern_slim): Likewise.
16386 * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
16389 2013-08-16 Jakub Jelinek <jakub@redhat.com>
16391 PR tree-optimization/58164
16392 * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
16393 walk gimple_goto_dest of GIMPLE_GOTO.
16395 PR tree-optimization/58165
16396 * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
16397 bi_call must be the last stmt in a bb, don't split_block, instead
16398 use fallthru edge from it and give up if there is none.
16399 Release conds vector when returning early.
16401 2013-08-14 Xinliang David Li <davidxl@google.com>
16403 * config/i386/i386.c (ix86_option_override_internal):
16404 Remove unused variable and field.
16406 2013-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16409 * doc/invoke.texi: Add documentation of mcompat-align-parm option.
16410 * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
16411 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
16412 and Linux, correct BLKmode alignment when 128-bit alignment is
16413 required and compatibility flag is not set.
16414 (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
16415 for zero-size arguments when compatibility flag is not set.
16417 2013-08-14 Jakub Jelinek <jakub@redhat.com>
16419 PR tree-optimization/58145
16420 * tree-sra.c (build_ref_for_offset): If prev_base has
16421 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
16423 2013-08-14 Xinliang David Li <davidxl@google.com>
16425 * config/i386/i386.c (ix86_option_override_internal):
16426 Fix uninitialized variable error.
16428 2013-08-14 Xinliang David Li <davidxl@google.com>
16430 * config/i386/i386.opt: Define two new options.
16431 * config/i386/x86-tune.def: Add arch selector field in macros.
16432 * config/i386/i386.h: Adjust macro definition.
16433 * config/i386/i386.c (ix86_option_override_internal):
16435 (parse_mtune_ctrl_str): New function.
16436 (set_ix86_tune_features): New function.
16437 (ix86_function_specific_restore): Call the new helper function.
16439 2013-08-14 Andrey Belevantsev <abel@ispras.ru>
16441 PR rtl-optimization/57662
16442 * sel-sched.c (code_motion_process_successors): When the current insn
16443 is removed after the recursive traversal, break from the loop.
16444 Add comments and debug printouts.
16446 2013-08-14 Jakub Jelinek <jakub@redhat.com>
16447 Alexandre Oliva <aoliva@redhat.com>
16450 * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
16451 and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
16452 there also UNSPEC_PLTOFF.
16454 2013-08-14 Marek Polacek <polacek@redhat.com>
16456 * ipa-inline-analysis.c (add_clause): Avoid shifting integer
16457 NUM_CONDITIONS bit positions.
16459 2013-08-13 Cary Coutant <ccoutant@google.com>
16461 * dwarf2out.c (CHECKSUM_BLOCK): New macro.
16462 (attr_checksum): Hash vector contents instead of pointer.
16463 (attr_checksum_ordered): Likewise.
16465 2013-08-13 Uros Bizjak <ubizjak@gmail.com>
16467 * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
16468 when Pmode != word_mode. Add length_address attribute.
16469 (sse3_monitor_<mode>): Merge from sse3_monitor and
16470 sse3_monitor64_<mode> insn patterns. Emit addr32 prefix when
16471 Pmode != word_mode. Update insn length attribute.
16472 * config/i386/i386.c (ix86_option_override_internal): Update
16473 ix86_gen_monitor selection for merged sse3_monitor insn.
16475 2013-08-13 Julian Brown <julian@codesourcery.com>
16477 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
16478 perform invalid legitimization on greater-than-word-size modes for
16479 TARGET_E500_DOUBLE.
16481 2013-08-13 Vladimir Makarov <vmakarov@redhat.com>
16483 * ira.c (setup_class_translate_array): Use aclass instead of cl
16484 for classes not fully covered by allocno classes.
16486 2013-08-13 Jakub Jelinek <jakub@redhat.com>
16488 PR tree-optimization/57661
16489 * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
16490 * tree-inline.c (tree_function_versioning): Initialize it.
16491 (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
16492 if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
16493 that is not being copied.
16496 * asan.c (instrument_strlen_call): Fix typo in comment.
16497 Use char * type even for the lhs of POINTER_PLUS_EXPR.
16499 2013-08-13 Steve Ellcey <sellcey@mips.com>
16501 * config/mips/mips.md (prefetch): Use lw instead of ld on
16502 loongson in 32bit mode.
16504 2013-08-13 Nick Clifton <nickc@redhat.com>
16506 * config.gcc: (avr-linux): Allow for tmake_file not being empty.
16508 2013-08-13 Jan Hubicka <jh@suse.cz>
16510 * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
16511 introduced edge; fix typo in sanity check.
16512 (cgraph_resolve_speculation): Export; improve diagnostic.
16513 (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
16514 speculation at type mismatch.
16515 * cgraph.h (cgraph_turn_edge_to_speculative): Update.
16516 (cgraph_resolve_speculation): Declare.
16517 (symtab_can_be_discarded): New function.
16518 * value-prof.c (gimple_ic_transform): Remove actual transform code.
16519 * ipa-inline-transform.c (speculation_removed): New global var.
16520 (clone_inlined_nodes): See if speculation can be removed.
16521 (inline_call): If speculations was removed, we growths may not match.
16522 * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
16523 (speculation_useful_p): New function.
16524 (resolve_noninline_speculation): New function.
16525 (inline_small_functions): Resolve useless speculations.
16526 * ipa-inline.h (speculation_useful_p): Declare
16527 * ipa.c (can_replace_by_local_alias): Simplify.
16528 (ipa_profile): Produce speculative calls in non-lto, too;
16529 add simple cost model; produce local aliases.
16531 2013-08-13 David Malcolm <dmalcolm@redhat.com>
16533 * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
16536 2013-08-12 Paolo Carlini <paolo.carlini@oracle.com>
16538 * config/i386/i386.c (ix86_function_versions): Use error + inform.
16540 2013-08-12 Uros Bizjak <ubizjak@gmail.com>
16542 * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
16543 iterator instead of X87MODEF.
16545 2013-08-12 Perez Read <netfirewall@gmail.com>
16548 * config/i386/i386.md (*movabs<mode>_1): Add <ptrsize> PTR before
16549 operand 0 for intel asm alternative.
16550 (*movabs<mode>_2): Ditto for operand 1.
16552 2013-08-12 James Greenhalgh <james.greenhalgh@arm.com>
16554 * config/aarch64/arm_none.h
16555 (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
16557 2013-08-12 Nick Clifton <nickc@redhat.com>
16559 * config.gcc (m32r-linux): Allow for tmake_file not being empty.
16561 2013-08-12 Yuri Rumyantsev <ysrumyan@gmail.com>
16563 * config/i386/i386.md (floatunssi<mode>2 expand): Add new
16564 expand for QI/HImode operand to produce more effictive code for
16565 unsigned char(short) --> float(double) conversion.
16567 2013-08-12 Alexander Monakov <amonakov@ispras.ru>
16569 * doc/invoke.texi: Mention that -ftls-model does not force the final
16572 2013-08-12 Marek Polacek <polacek@redhat.com>
16573 Marc Glisse <marc.glisse@inria.fr>
16575 PR tree-optimization/57980
16576 * tree-tailcall.c (process_assignment): Call build_minus_one_cst
16577 when creating -1 constant.
16579 2013-08-10 Jan Hubicka <jh@suse.cz>
16581 Workaround binutils PR14342.
16582 * tree-profile.c (init_ic_make_global_vars): Add LTO path.
16583 (gimple_init_edge_profiler): Likewise.
16584 (gimple_gen_ic_func_profiler): Likewise.
16586 2013-08-09 Jan Hubicka <jh@suse.cz>
16588 * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
16590 2013-08-09 Xinliang David Li <davidxl@google.com>
16592 * config/i386/stringop.def: New file.
16593 * config/i386/stringop.opt: New file.
16594 * config/i386/i386-opts.h: Include stringopt.def.
16595 * config/i386/i386.opt: Include stringopt.opt.
16596 * config/i386/i386.c (ix86_option_override_internal):
16597 Override default size based stringop inline strategies with options.
16598 * config/i386/i386.c (ix86_parse_stringop_strategy_string):
16601 2013-08-09 Jan Hubicka <jh@suse.cz>
16603 * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
16605 2013-08-09 Jan Hubicka <jh@suse.cz>
16607 * cgraph.c (cgraph_resolve_speculation): Cut frequency to
16609 (dump_cgraph_node): Dump profile-id.
16610 * cgraph.h (cgraph_indirect_call_info): Add common_target_id
16611 and common_target_probability.
16612 * lto-cgraph.c (lto_output_edge): Stream common targets.
16613 (lto_output_node): Stream profile ids.
16614 (input_node): Stream profile ids.
16615 (input_edge): Stream common targets.
16616 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
16617 * ipa.c: Include value-prof.h
16618 (ipa_profile_generate_summary): Turn indirect call statement histograms
16619 into common targets.
16620 (ipa_profile): Turn common targets into speculative edges.
16622 2013-08-09 Jan Hubicka <jh@suse.cz>
16624 * cgraph.h (cgraph_node): Add profile_id.
16625 * value-prof.c (cgraph_node_map): Turn into pointer_map.
16626 (init_node_map): Rewrite to handle hashes increas of incremental IDs.
16627 (del_node_map): Update.
16628 (find_func_by_funcdef_no): Replace by ...
16629 (find_func_by_profile_id): ... this one.
16630 (gimple_ic_transform): Do not remove useful histograms when
16631 speculation is not done; dump info when indirect call removal
16633 * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
16634 * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
16635 (__gcov_indirect_call_profiler_v2): .. this one.
16636 * profile.h (init_node_map): Update.
16637 * coverage.c (coverage_compute_profile_id): New function.
16638 * coverage.h (coverage_compute_profile_id): Declare.
16639 * tree-profile.c (init_ic_make_global_vars): Make
16640 __gcov_indirect_call_callee and __gcov_indirect_call_counters global.
16641 (gimple_init_edge_profiler): Update prototype of
16642 __gcov_indirect_call_profiler.
16643 (gimple_gen_ic_func_profiler): Simplify.
16644 (tree_profiling): Use init_node_map
16646 2013-08-09 Jan Hubicka <jh@suse.cz>
16648 * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
16649 non-speculative refs.
16650 * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
16651 (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
16652 (cgraph_set_call_stmt): Likewise.
16653 (cgraph_create_edge_1): Fix release checking compilatoin;
16654 clear lto_stmt_uid.
16655 (cgraph_free_edge): Free indirect info.
16656 (cgraph_turn_edge_to_speculative): New function.
16657 (cgraph_speculative_call_info): New function.
16658 (cgraph_make_edge_direct): Return direct edge; handle speculation.
16659 (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
16660 (dump_cgraph_node): Dump speculation.
16661 (verify_edge_count_and_frequency): Accept speculative edges.
16662 (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
16663 (verify_cgraph_node): Handle speculation.
16664 * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
16665 (cgraph_set_call_stmt): Update prototype.
16666 (cgraph_make_edge_direct): Update prototype.
16667 (cgraph_speculative_call_info): Declare.
16668 * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
16669 to change; update call of ipa_find_references.
16670 * ipa-ref.c (ipa_record_reference): Fix return value; clear
16671 lto_stmt_uid and speculative flags.
16672 (ipa_dump_references): Dump speculation.
16673 (ipa_clone_references): Clone speculative flag.
16674 (ipa_clone_referring): Likewise.
16675 (ipa_clone_ref): New function.
16676 (ipa_find_reference): Look into lto_stmt_uids
16677 (ipa_clear_stmts_in_references): Do not clear speculative calls.
16678 * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
16679 (ipa_find_reference): Update declaration.
16680 (ipa_clone_ref): Declare.
16681 * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
16682 stream speculative flag.
16683 (lto_output_ref): Stream statements uids and speculation.
16684 (input_ref): Likewise.
16685 (input_edge): Stream speuclation.
16686 * cgraphclones.c (cgraph_clone_edge): Clone speculation.
16687 (cgraph_set_call_stmt_including_clones): Handle speculation.
16688 * ipa-inline.c (heap_edge_removal_hook): New function.
16689 (inline_small_functions): Register it.
16690 * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
16691 also initialize refs.
16692 * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
16694 (try_make_edge_direct_simple_call): Likewise.
16695 (try_make_edge_direct_simple_call): Likewise.
16696 (update_indirect_edges_after_inlining): Likewise.
16697 (remove_described_reference): Look proper lto_stmt_uid.
16698 (propagate_controlled_uses): Likewise.
16699 (propagate_controlled_uses): Liekwise.
16700 * tree-inline.c (copy_bb): Copy speculative edges.
16701 (redirect_all_calls): New function.
16702 (copy_cfg_body): Do redirection after loop info is updated.
16703 (delete_unreachable_blocks_update_callgraph): Updadte speculation.
16705 2013-08-09 Jan Hubicka <jh@suse.cz>
16707 * lto-streamer-out.c (output_function): Renumber PHIs.
16708 * lto-streamer-in.c (input_function): Likewise.
16710 2013-08-09 James Greenhalgh <james.greenhalgh@arm.com>
16712 * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
16713 (get_lane_unsigned): Likewise.
16714 (dup_lane_scalar): Likewise.
16715 (get_lane): enable for VALL.
16716 * config/aarch64/aarch64-simd.md
16717 (aarch64_dup_lane_scalar<mode>): Remove.
16718 (aarch64_get_lane_signed<mode>): Likewise.
16719 (aarch64_get_lane_unsigned<mode>): Likewise.
16720 (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
16721 (aarch64_get_lane_zero_extendsi<mode>): Likewise.
16722 (aarch64_get_lane<mode>): Enable for all vector modes.
16723 (aarch64_get_lanedi): Remove misleading constraints.
16724 * config/aarch64/arm_neon.h
16725 (__aarch64_vget_lane_any): Define.
16726 (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
16727 (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
16728 (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
16729 * config/aarch64/iterators.md (VDQQH): New.
16730 (VDQQHS): Likewise.
16731 (vwcore): Likewise.
16733 2013-08-09 Eric Botcazou <ebotcazou@adacore.com>
16735 * configure.ac: Add GAS check for LEON instructions on SPARC.
16736 * configure: Regenerate.
16737 * config.in: Likewise.
16738 * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
16740 * config/sparc/sparc.opt (LEON, LEON3): New masks.
16741 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
16743 (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
16744 (AS_LEON_FLAG): New macro.
16745 * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
16746 and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
16747 Deal with LEON and LEON3 for the memory model.
16748 * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
16749 (atomic_compare_and_swap<mode>_1): Likewise.
16750 (*atomic_compare_and_swap<mode>_1): Likewise.
16752 2013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16754 * config/arm/neon.md (vcond): Fix floating-point vector
16755 comparisons against 0.
16757 2013-08-08 Vladimir Makarov <vmakarov@redhat.com>
16759 * lra-constraints.c (emit_spill_move): Remove assert.
16760 (process_alt_operands): Add more debugging
16761 output. Increase reject for spilling into memory. Decrease
16762 reject for reloading scratch.
16763 (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
16765 2013-08-08 Steve Ellcey <sellcey@mips.com>
16767 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
16768 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
16769 micromips incompatible. Add nan2008.
16770 (MULTILIB_DIRNAMES): Add nan2008.
16771 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
16772 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
16773 and micromips incompatible. Add nan2008.
16774 (MULTILIB_DIRNAMES): Add nan2008.
16775 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
16777 2013-08-08 Richard Sandiford <rdsandiford@googlemail.com>
16779 PR rtl-optimization/58079
16780 * combine.c (combine_simplify_rtx): Avoid using SUBST if
16781 simplify_comparison has widened a comparison with an integer.
16783 2013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16785 * config/arm/neon.md (movmisalign<mode>): Disable when we
16786 don't allow unaligned accesses.
16787 (*movmisalign<mode>_neon_store): Likewise.
16788 (*movmisalign<mode>_neon_load): Likewise.
16789 (*movmisalign<mode>_neon_store): Likewise.
16790 (*movmisalign<mode>_neon_load): Likewise.
16792 2013-08-08 Jan Hubicka <jh@suse.cz>
16794 * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
16795 (make_pass_rebuild_cgraph_edges): Also clear references.
16796 * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
16797 * ipa-inline-transform.c (inline_transform): Remove all references
16799 * cgraphunit.c (expand_function): Remove all references after
16801 * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
16802 (ipa_find_reference): Rewrite to iterator.
16803 (remove_stmt_references): Likewise.
16804 (ipa_clear_stmts_in_references): New function.
16805 * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
16806 * cgraphclones.c (cgraph_materialize_all_clones): Remove or
16808 * ipa-split.c (split_function): Remove references in split function.
16810 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
16813 * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
16814 (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
16816 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
16819 * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
16820 suggested mode for the assignment isn't compatible with the
16821 registers required.
16823 2013-08-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
16826 * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
16828 2013-08-07 Xinliang David Li <davidxl@google.com>
16830 * config/i386/i386.opt: New option -mtune-ctrl=.
16831 * config/i386/x86-tune.def: New file.
16832 * config/i386/i386.h: include x86-tune.def.
16833 * config/i386/i386.c (ix86_option_override_internal):
16834 Parsing -mtune-ctrl= option and set tune features.
16836 2013-08-07 Oleg Endo <olegendo@gcc.gnu.org>
16839 * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
16840 (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
16843 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
16845 * rtl.h (update_alignments): Declare.
16846 * final.c (grow_label_align): New function extracted from...
16847 (shorten_branches): ...here. Call it.
16848 (update_alignments): New function.
16849 * reorg.c (sibling_labels): New variable.
16850 (get_label_before): Add SIBLING parameter. If it is non-zero, push
16851 the new label along with it onto the sibling_labels vector.
16852 (fill_simple_delay_slots): Adjust call to get_label_before.
16853 (fill_slots_from_thread): Likewise.
16854 (relax_delay_slots): Likewise.
16855 (make_return_insns): Likewise.
16856 (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
16858 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
16860 * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
16861 document its semantics.
16862 (diagnostic_report_diagnostic): Adjust accordingly.
16864 2013-08-07 David Malcolm <dmalcolm@redhat.com>
16866 * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
16867 (sparc_option_override): ...and port to new C++ pass API.
16868 * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
16870 2013-08-07 Peter Bergner <bergner@vnet.ibm.com>
16872 * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
16874 2013-08-06 Caroline Tice <cmtice@google.com>
16876 * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
16877 (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
16878 * tree-pass.h: Add pass_vtable_verify.
16879 * varasm.c (assemble_variable): Add code to properly set the comdat
16880 section and name for the .vtable_map_vars section.
16881 (assemble_vtyv_preinit_initializer): New function.
16882 (default_sectin_type_flags): Make sure .vtable_map_vars section has
16884 * output.h: Add function decl for assemble_vtv_preinit_initializer.
16885 * vtable-verify.c: New file.
16886 * vtable-verify.h: New file.
16887 * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
16888 initialiation levels.
16889 * timevar.def (TV_VTABLE_VERIFICATION): New definition.
16890 * passes.def: Insert pass_vtable_verify.
16891 * aclocal.m4: Reorder includes.
16892 * doc/invoke.texi: Document the -fvtable-verify=, -fvtv-debug, and
16893 -fvtv-counts options.
16894 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
16895 as appropriate, if -fvtable-verify=... is used.
16896 (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
16897 -fvtable-verify=... is used.
16898 * Makefile.in (OBJS): Add vtable-verify.o to list.
16899 (vtable-verify.o): Add new build rule.
16900 (GTFILES): Add vtable-verify.c to list.
16901 * common.opt (fvtable-verify=): New flag.
16902 (vtv_priority): Values for fvtable-verify= flag.
16903 (fvtv-counts): New flag.
16904 (fvtv-debug): New flag.
16905 * tree.h (save_vtable_map_decl): New extern function decl.
16907 2013-08-07 David Malcolm <dmalcolm@redhat.com>
16909 * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
16910 (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
16911 (pass_data_rl78_devirt): ...new pass_data instance and...
16912 (make_pass_rl78_devirt): ...new function.
16913 (rl78_asm_file_start): Port pass registration to new C++ API.
16915 2013-08-07 David Malcolm <dmalcolm@redhat.com>
16917 * coretypes.h (rtl_opt_pass): Add.
16918 (gcc::context): Add.
16919 * config/epiphany/epiphany.c (pass_mode_switch_use): New.
16920 (epiphany_init): Port to new C++ pass API.
16921 (epiphany_optimize_mode_switching): Likewise.
16922 * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
16923 (pass_manager::get_pass_mode_switching): New.
16924 (pass_manager::get_pass_peephole2): New.
16925 * mode-switching.c (pass_mode_switching): Add clone method.
16926 * recog.c (pass_peephole2): Add clone method.
16927 (pass_split_all_insns): Add clone method.
16929 2013-08-06 David Malcolm <dmalcolm@redhat.com>
16931 * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
16932 (mips_option_override): ...here, porting to new C++ API for passes.
16934 2013-08-06 Jan Hubicka <jh@suse.cz>
16936 * cgraph.c (cgraph_get_body): New function based on lto.c
16938 * cgraph.h (cgraph_get_body): Declare.
16939 * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
16941 * cgraphunit.c (expand_function): Get body prior expanding.
16942 * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
16943 * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
16945 * passes.c (do_per_function_toporder): Get body.
16946 * tree-inline.c (expand_call_inline): Get body prior inlining it.
16947 * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
16949 2013-08-06 Martin Jambor <mjambor@suse.cz>
16952 * cgraphunit.c (cgraph_finalize_function): Assert that nested function
16953 is not re-finalized. Rename second parameter to no_collect.
16955 2013-08-06 Martin Jambor <mjambor@suse.cz>
16957 PR middle-end/58041
16958 * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
16959 MEM_REF has proper alignment information.
16961 2013-08-05 Oleg Endo <olegendo@gcc.gnu.org>
16964 * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
16966 * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
16967 rtx (*) (rtx, ...) with insn_gen_fn.
16968 * genoutput.c (output_insn_data): Cast gen_? function pointers to
16969 insn_gen_fn::stored_funcptr. Add initializer braces.
16971 2013-08-05 David Malcolm <dmalcolm@redhat.com>
16973 Rewrite how instances of passes are cloned to remove assumptions
16974 about their sizes (thus allowing pass subclasses to have
16975 additional data fields, albeit non-GC-managed ones at this point).
16977 * passes.c (make_pass_instance): Now that passes have clone
16978 methods, rewrite this function to eliminate XNEW and memcpy
16979 calls that used hardcoded sizes. Since this function no longer
16980 creates pass instances, rename it to...
16981 (add_pass_instance): ...this. Document the old way that passes were
16982 numbered and flagged, and rework this function to continue using it.
16983 (next_pass_1): Add an initial_pass argument for use by
16985 (position_pass): When adding multiple instances of a pass, use
16986 the pass's clone method, rather than relying on the XNEW/memcpy
16987 within the former make_pass_instance (now add_pass_instance).
16988 (pass_manager::pass_manager): When invoking next_pass_1, also supply
16989 the initial instance of the current pass within the pass manager.
16991 2013-08-05 David Malcolm <dmalcolm@redhat.com>
16993 This is the automated part of the conversion of passes from C
16994 structs to C++ classes.
16996 Patch autogenerated by refactor_passes.py from
16997 https://github.com/davidmalcolm/gcc-refactoring-scripts
16998 revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
17000 * asan.c (pass_asan): Convert from a global struct to a subclass of
17001 gimple_opt_pass along with...
17002 (pass_data_asan): ...new pass_data instance and...
17003 (make_pass_asan): ...new function.
17004 (pass_asan_O0): Convert from a global struct to a subclass of
17005 gimple_opt_pass along with...
17006 (pass_data_asan_O0): ...new pass_data instance and...
17007 (make_pass_asan_O0): ...new function.
17008 * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
17009 subclass of rtl_opt_pass along with...
17010 (pass_data_inc_dec): ...new pass_data instance and...
17011 (make_pass_inc_dec): ...new function.
17012 * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
17013 a subclass of rtl_opt_pass along with...
17014 (pass_data_reorder_blocks): ...new pass_data instance and...
17015 (make_pass_reorder_blocks): ...new function.
17016 (pass_duplicate_computed_gotos): Convert from a global struct to a
17017 subclass of rtl_opt_pass along with...
17018 (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
17019 (make_pass_duplicate_computed_gotos): ...new function.
17020 (pass_partition_blocks): Convert from a global struct to a subclass of
17021 rtl_opt_pass along with...
17022 (pass_data_partition_blocks): ...new pass_data instance and...
17023 (make_pass_partition_blocks): ...new function.
17024 * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
17025 struct to a subclass of rtl_opt_pass along with...
17026 (pass_data_branch_target_load_optimize1): ...new pass_data instance
17028 (make_pass_branch_target_load_optimize1): ...new function.
17029 (pass_branch_target_load_optimize2): Convert from a global struct to a
17030 subclass of rtl_opt_pass along with...
17031 (pass_data_branch_target_load_optimize2): ...new pass_data instance
17033 (make_pass_branch_target_load_optimize2): ...new function.
17034 * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
17035 of rtl_opt_pass along with...
17036 (pass_data_jump): ...new pass_data instance and...
17037 (make_pass_jump): ...new function.
17038 (pass_jump2): Convert from a global struct to a subclass of
17039 rtl_opt_pass along with...
17040 (pass_data_jump2): ...new pass_data instance and...
17041 (make_pass_jump2): ...new function.
17042 * cfgexpand.c (pass_expand): Convert from a global struct to a
17043 subclass of rtl_opt_pass along with...
17044 (pass_data_expand): ...new pass_data instance and...
17045 (make_pass_expand): ...new function.
17046 * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
17047 of rtl_opt_pass along with...
17048 (pass_data_free_cfg): ...new pass_data instance and...
17049 (make_pass_free_cfg): ...new function.
17050 (pass_into_cfg_layout_mode): Convert from a global struct to a
17051 subclass of rtl_opt_pass along with...
17052 (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
17053 (make_pass_into_cfg_layout_mode): ...new function.
17054 (pass_outof_cfg_layout_mode): Convert from a global struct to a
17055 subclass of rtl_opt_pass along with...
17056 (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
17057 (make_pass_outof_cfg_layout_mode): ...new function.
17058 * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
17059 struct to a subclass of gimple_opt_pass along with...
17060 (pass_data_build_cgraph_edges): ...new pass_data instance and...
17061 (make_pass_build_cgraph_edges): ...new function.
17062 (pass_rebuild_cgraph_edges): Convert from a global struct to a
17063 subclass of gimple_opt_pass along with...
17064 (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
17065 (make_pass_rebuild_cgraph_edges): ...new function.
17066 (pass_remove_cgraph_callee_edges): Convert from a global struct to a
17067 subclass of gimple_opt_pass along with...
17068 (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
17070 (make_pass_remove_cgraph_callee_edges): ...new function.
17071 * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
17072 struct to a subclass of rtl_opt_pass along with...
17073 (pass_data_stack_adjustments): ...new pass_data instance and...
17074 (make_pass_stack_adjustments): ...new function.
17075 * combine.c (pass_combine): Convert from a global struct to a subclass
17076 of rtl_opt_pass along with...
17077 (pass_data_combine): ...new pass_data instance and...
17078 (make_pass_combine): ...new function.
17079 * compare-elim.c (pass_compare_elim_after_reload): Convert from a
17080 global struct to a subclass of rtl_opt_pass along with...
17081 (pass_data_compare_elim_after_reload): ...new pass_data instance
17083 (make_pass_compare_elim_after_reload): ...new function.
17084 * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
17085 of rtl_opt_pass along with...
17086 (pass_data_rtl_cprop): ...new pass_data instance and...
17087 (make_pass_rtl_cprop): ...new function.
17088 * cse.c (pass_cse): Convert from a global struct to a subclass of
17089 rtl_opt_pass along with...
17090 (pass_data_cse): ...new pass_data instance and...
17091 (make_pass_cse): ...new function.
17092 (pass_cse2): Convert from a global struct to a subclass of
17093 rtl_opt_pass along with...
17094 (pass_data_cse2): ...new pass_data instance and...
17095 (make_pass_cse2): ...new function.
17096 (pass_cse_after_global_opts): Convert from a global struct to a
17097 subclass of rtl_opt_pass along with...
17098 (pass_data_cse_after_global_opts): ...new pass_data instance and...
17099 (make_pass_cse_after_global_opts): ...new function.
17100 * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
17101 of rtl_opt_pass along with...
17102 (pass_data_ud_rtl_dce): ...new pass_data instance and...
17103 (make_pass_ud_rtl_dce): ...new function.
17104 (pass_fast_rtl_dce): Convert from a global struct to a subclass of
17105 rtl_opt_pass along with...
17106 (pass_data_fast_rtl_dce): ...new pass_data instance and...
17107 (make_pass_fast_rtl_dce): ...new function.
17108 * df-core.c (pass_df_initialize_opt): Convert from a global struct to
17109 a subclass of rtl_opt_pass along with...
17110 (pass_data_df_initialize_opt): ...new pass_data instance and...
17111 (make_pass_df_initialize_opt): ...new function.
17112 (pass_df_initialize_no_opt): Convert from a global struct to a
17113 subclass of rtl_opt_pass along with...
17114 (pass_data_df_initialize_no_opt): ...new pass_data instance and...
17115 (make_pass_df_initialize_no_opt): ...new function.
17116 (pass_df_finish): Convert from a global struct to a subclass of
17117 rtl_opt_pass along with...
17118 (pass_data_df_finish): ...new pass_data instance and...
17119 (make_pass_df_finish): ...new function.
17120 * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
17121 rtl_opt_pass along with...
17122 (pass_data_rtl_dse1): ...new pass_data instance and...
17123 (make_pass_rtl_dse1): ...new function.
17124 (pass_rtl_dse2): Convert from a global struct to a subclass of
17125 rtl_opt_pass along with...
17126 (pass_data_rtl_dse2): ...new pass_data instance and...
17127 (make_pass_rtl_dse2): ...new function.
17128 * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
17129 subclass of rtl_opt_pass along with...
17130 (pass_data_dwarf2_frame): ...new pass_data instance and...
17131 (make_pass_dwarf2_frame): ...new function.
17132 * except.c (pass_set_nothrow_function_flags): Convert from a global
17133 struct to a subclass of rtl_opt_pass along with...
17134 (pass_data_set_nothrow_function_flags): ...new pass_data instance
17136 (make_pass_set_nothrow_function_flags): ...new function.
17137 (pass_convert_to_eh_region_ranges): Convert from a global struct to a
17138 subclass of rtl_opt_pass along with...
17139 (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
17141 (make_pass_convert_to_eh_region_ranges): ...new function.
17142 * final.c (pass_compute_alignments): Convert from a global struct to a
17143 subclass of rtl_opt_pass along with...
17144 (pass_data_compute_alignments): ...new pass_data instance and...
17145 (make_pass_compute_alignments): ...new function.
17146 (pass_final): Convert from a global struct to a subclass of
17147 rtl_opt_pass along with...
17148 (pass_data_final): ...new pass_data instance and...
17149 (make_pass_final): ...new function.
17150 (pass_shorten_branches): Convert from a global struct to a subclass of
17151 rtl_opt_pass along with...
17152 (pass_data_shorten_branches): ...new pass_data instance and...
17153 (make_pass_shorten_branches): ...new function.
17154 (pass_clean_state): Convert from a global struct to a subclass of
17155 rtl_opt_pass along with...
17156 (pass_data_clean_state): ...new pass_data instance and...
17157 (make_pass_clean_state): ...new function.
17158 * function.c (pass_instantiate_virtual_regs): Convert from a global
17159 struct to a subclass of rtl_opt_pass along with...
17160 (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
17161 (make_pass_instantiate_virtual_regs): ...new function.
17162 (pass_leaf_regs): Convert from a global struct to a subclass of
17163 rtl_opt_pass along with...
17164 (pass_data_leaf_regs): ...new pass_data instance and...
17165 (make_pass_leaf_regs): ...new function.
17166 (pass_thread_prologue_and_epilogue): Convert from a global struct to a
17167 subclass of rtl_opt_pass along with...
17168 (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
17170 (make_pass_thread_prologue_and_epilogue): ...new function.
17171 (pass_match_asm_constraints): Convert from a global struct to a
17172 subclass of rtl_opt_pass along with...
17173 (pass_data_match_asm_constraints): ...new pass_data instance and...
17174 (make_pass_match_asm_constraints): ...new function.
17175 * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
17176 subclass of rtl_opt_pass along with...
17177 (pass_data_rtl_fwprop): ...new pass_data instance and...
17178 (make_pass_rtl_fwprop): ...new function.
17179 (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
17180 rtl_opt_pass along with...
17181 (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
17182 (make_pass_rtl_fwprop_addr): ...new function.
17183 * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
17184 rtl_opt_pass along with...
17185 (pass_data_rtl_pre): ...new pass_data instance and...
17186 (make_pass_rtl_pre): ...new function.
17187 (pass_rtl_hoist): Convert from a global struct to a subclass of
17188 rtl_opt_pass along with...
17189 (pass_data_rtl_hoist): ...new pass_data instance and...
17190 (make_pass_rtl_hoist): ...new function.
17191 * gimple-low.c (pass_lower_cf): Convert from a global struct to a
17192 subclass of gimple_opt_pass along with...
17193 (pass_data_lower_cf): ...new pass_data instance and...
17194 (make_pass_lower_cf): ...new function.
17195 * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
17196 from a global struct to a subclass of gimple_opt_pass along with...
17197 (pass_data_strength_reduction): ...new pass_data instance and...
17198 (make_pass_strength_reduction): ...new function.
17199 * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
17200 of rtl_opt_pass along with...
17201 (pass_data_rtl_ifcvt): ...new pass_data instance and...
17202 (make_pass_rtl_ifcvt): ...new function.
17203 (pass_if_after_combine): Convert from a global struct to a subclass of
17204 rtl_opt_pass along with...
17205 (pass_data_if_after_combine): ...new pass_data instance and...
17206 (make_pass_if_after_combine): ...new function.
17207 (pass_if_after_reload): Convert from a global struct to a subclass of
17208 rtl_opt_pass along with...
17209 (pass_data_if_after_reload): ...new pass_data instance and...
17210 (make_pass_if_after_reload): ...new function.
17211 * init-regs.c (pass_initialize_regs): Convert from a global struct to
17212 a subclass of rtl_opt_pass along with...
17213 (pass_data_initialize_regs): ...new pass_data instance and...
17214 (make_pass_initialize_regs): ...new function.
17215 * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
17216 of ipa_opt_pass_d along with...
17217 (pass_data_ipa_cp): ...new pass_data instance and...
17218 (make_pass_ipa_cp): ...new function.
17219 * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
17220 global struct to a subclass of gimple_opt_pass along with...
17221 (pass_data_inline_parameters): ...new pass_data instance and...
17222 (make_pass_inline_parameters): ...new function.
17223 * ipa-inline.c (pass_early_inline): Convert from a global struct to a
17224 subclass of gimple_opt_pass along with...
17225 (pass_data_early_inline): ...new pass_data instance and...
17226 (make_pass_early_inline): ...new function.
17227 (pass_ipa_inline): Convert from a global struct to a subclass of
17228 ipa_opt_pass_d along with...
17229 (pass_data_ipa_inline): ...new pass_data instance and...
17230 (make_pass_ipa_inline): ...new function.
17231 * ipa-pure-const.c (pass_local_pure_const): Convert from a global
17232 struct to a subclass of gimple_opt_pass along with...
17233 (pass_data_local_pure_const): ...new pass_data instance and...
17234 (make_pass_local_pure_const): ...new function.
17235 (pass_ipa_pure_const): Convert from a global struct to a subclass of
17236 ipa_opt_pass_d along with...
17237 (pass_data_ipa_pure_const): ...new pass_data instance and...
17238 (make_pass_ipa_pure_const): ...new function.
17239 * ipa-reference.c (pass_ipa_reference): Convert from a global struct
17240 to a subclass of ipa_opt_pass_d along with...
17241 (pass_data_ipa_reference): ...new pass_data instance and...
17242 (make_pass_ipa_reference): ...new function.
17243 * ipa-split.c (pass_split_functions): Convert from a global struct to
17244 a subclass of gimple_opt_pass along with...
17245 (pass_data_split_functions): ...new pass_data instance and...
17246 (make_pass_split_functions): ...new function.
17247 (pass_feedback_split_functions): Convert from a global struct to a
17248 subclass of gimple_opt_pass along with...
17249 (pass_data_feedback_split_functions): ...new pass_data instance and...
17250 (make_pass_feedback_split_functions): ...new function.
17251 * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
17252 global struct to a subclass of simple_ipa_opt_pass along with...
17253 (pass_data_ipa_function_and_variable_visibility): ...new pass_data
17255 (make_pass_ipa_function_and_variable_visibility): ...new function.
17256 (pass_ipa_free_inline_summary): Convert from a global struct to a
17257 subclass of simple_ipa_opt_pass along with...
17258 (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
17259 (make_pass_ipa_free_inline_summary): ...new function.
17260 (pass_ipa_whole_program_visibility): Convert from a global struct to a
17261 subclass of ipa_opt_pass_d along with...
17262 (pass_data_ipa_whole_program_visibility): ...new pass_data instance
17264 (make_pass_ipa_whole_program_visibility): ...new function.
17265 (pass_ipa_profile): Convert from a global struct to a subclass of
17266 ipa_opt_pass_d along with...
17267 (pass_data_ipa_profile): ...new pass_data instance and...
17268 (make_pass_ipa_profile): ...new function.
17269 (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
17270 ipa_opt_pass_d along with...
17271 (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
17272 (make_pass_ipa_cdtor_merge): ...new function.
17273 * ira.c (pass_ira): Convert from a global struct to a subclass of
17274 rtl_opt_pass along with...
17275 (pass_data_ira): ...new pass_data instance and...
17276 (make_pass_ira): ...new function.
17277 (pass_reload): Convert from a global struct to a subclass of
17278 rtl_opt_pass along with...
17279 (pass_data_reload): ...new pass_data instance and...
17280 (make_pass_reload): ...new function.
17281 * jump.c (pass_cleanup_barriers): Convert from a global struct to a
17282 subclass of rtl_opt_pass along with...
17283 (pass_data_cleanup_barriers): ...new pass_data instance and...
17284 (make_pass_cleanup_barriers): ...new function.
17285 * loop-init.c (pass_loop2): Convert from a global struct to a subclass
17286 of rtl_opt_pass along with...
17287 (pass_data_loop2): ...new pass_data instance and...
17288 (make_pass_loop2): ...new function.
17289 (pass_rtl_loop_init): Convert from a global struct to a subclass of
17290 rtl_opt_pass along with...
17291 (pass_data_rtl_loop_init): ...new pass_data instance and...
17292 (make_pass_rtl_loop_init): ...new function.
17293 (pass_rtl_loop_done): Convert from a global struct to a subclass of
17294 rtl_opt_pass along with...
17295 (pass_data_rtl_loop_done): ...new pass_data instance and...
17296 (make_pass_rtl_loop_done): ...new function.
17297 (pass_rtl_move_loop_invariants): Convert from a global struct to a
17298 subclass of rtl_opt_pass along with...
17299 (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
17300 (make_pass_rtl_move_loop_invariants): ...new function.
17301 (pass_rtl_unswitch): Convert from a global struct to a subclass of
17302 rtl_opt_pass along with...
17303 (pass_data_rtl_unswitch): ...new pass_data instance and...
17304 (make_pass_rtl_unswitch): ...new function.
17305 (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
17306 subclass of rtl_opt_pass along with...
17307 (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
17309 (make_pass_rtl_unroll_and_peel_loops): ...new function.
17310 (pass_rtl_doloop): Convert from a global struct to a subclass of
17311 rtl_opt_pass along with...
17312 (pass_data_rtl_doloop): ...new pass_data instance and...
17313 (make_pass_rtl_doloop): ...new function.
17314 * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
17315 a subclass of rtl_opt_pass along with...
17316 (pass_data_lower_subreg): ...new pass_data instance and...
17317 (make_pass_lower_subreg): ...new function.
17318 (pass_lower_subreg2): Convert from a global struct to a subclass of
17319 rtl_opt_pass along with...
17320 (pass_data_lower_subreg2): ...new pass_data instance and...
17321 (make_pass_lower_subreg2): ...new function.
17322 * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
17323 struct to a subclass of ipa_opt_pass_d along with...
17324 (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
17325 (make_pass_ipa_lto_gimple_out): ...new function.
17326 (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
17327 of ipa_opt_pass_d along with...
17328 (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
17329 (make_pass_ipa_lto_finish_out): ...new function.
17330 * mode-switching.c (pass_mode_switching): Convert from a global struct
17331 to a subclass of rtl_opt_pass along with...
17332 (pass_data_mode_switching): ...new pass_data instance and...
17333 (make_pass_mode_switching): ...new function.
17334 * modulo-sched.c (pass_sms): Convert from a global struct to a
17335 subclass of rtl_opt_pass along with...
17336 (pass_data_sms): ...new pass_data instance and...
17337 (make_pass_sms): ...new function.
17338 * omp-low.c (pass_expand_omp): Convert from a global struct to a
17339 subclass of gimple_opt_pass along with...
17340 (pass_data_expand_omp): ...new pass_data instance and...
17341 (make_pass_expand_omp): ...new function.
17342 (pass_lower_omp): Convert from a global struct to a subclass of
17343 gimple_opt_pass along with...
17344 (pass_data_lower_omp): ...new pass_data instance and...
17345 (make_pass_lower_omp): ...new function.
17346 (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
17347 of gimple_opt_pass along with...
17348 (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
17349 (make_pass_diagnose_omp_blocks): ...new function.
17350 * passes.c (pass_early_local_passes): Convert from a global struct to
17351 a subclass of simple_ipa_opt_pass along with...
17352 (pass_data_early_local_passes): ...new pass_data instance and...
17353 (make_pass_early_local_passes): ...new function.
17354 (pass_all_early_optimizations): Convert from a global struct to a
17355 subclass of gimple_opt_pass along with...
17356 (pass_data_all_early_optimizations): ...new pass_data instance and...
17357 (make_pass_all_early_optimizations): ...new function.
17358 (pass_all_optimizations): Convert from a global struct to a subclass
17359 of gimple_opt_pass along with...
17360 (pass_data_all_optimizations): ...new pass_data instance and...
17361 (make_pass_all_optimizations): ...new function.
17362 (pass_all_optimizations_g): Convert from a global struct to a subclass
17363 of gimple_opt_pass along with...
17364 (pass_data_all_optimizations_g): ...new pass_data instance and...
17365 (make_pass_all_optimizations_g): ...new function.
17366 (pass_rest_of_compilation): Convert from a global struct to a subclass
17367 of rtl_opt_pass along with...
17368 (pass_data_rest_of_compilation): ...new pass_data instance and...
17369 (make_pass_rest_of_compilation): ...new function.
17370 (pass_postreload): Convert from a global struct to a subclass of
17371 rtl_opt_pass along with...
17372 (pass_data_postreload): ...new pass_data instance and...
17373 (make_pass_postreload): ...new function.
17374 * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
17375 subclass of rtl_opt_pass along with...
17376 (pass_data_gcse2): ...new pass_data instance and...
17377 (make_pass_gcse2): ...new function.
17378 * postreload.c (pass_postreload_cse): Convert from a global struct to
17379 a subclass of rtl_opt_pass along with...
17380 (pass_data_postreload_cse): ...new pass_data instance and...
17381 (make_pass_postreload_cse): ...new function.
17382 * predict.c (pass_profile): Convert from a global struct to a subclass
17383 of gimple_opt_pass along with...
17384 (pass_data_profile): ...new pass_data instance and...
17385 (make_pass_profile): ...new function.
17386 (pass_strip_predict_hints): Convert from a global struct to a subclass
17387 of gimple_opt_pass along with...
17388 (pass_data_strip_predict_hints): ...new pass_data instance and...
17389 (make_pass_strip_predict_hints): ...new function.
17390 * recog.c (pass_peephole2): Convert from a global struct to a subclass
17391 of rtl_opt_pass along with...
17392 (pass_data_peephole2): ...new pass_data instance and...
17393 (make_pass_peephole2): ...new function.
17394 (pass_split_all_insns): Convert from a global struct to a subclass of
17395 rtl_opt_pass along with...
17396 (pass_data_split_all_insns): ...new pass_data instance and...
17397 (make_pass_split_all_insns): ...new function.
17398 (pass_split_after_reload): Convert from a global struct to a subclass
17399 of rtl_opt_pass along with...
17400 (pass_data_split_after_reload): ...new pass_data instance and...
17401 (make_pass_split_after_reload): ...new function.
17402 (pass_split_before_regstack): Convert from a global struct to a
17403 subclass of rtl_opt_pass along with...
17404 (pass_data_split_before_regstack): ...new pass_data instance and...
17405 (make_pass_split_before_regstack): ...new function.
17406 (pass_split_before_sched2): Convert from a global struct to a subclass
17407 of rtl_opt_pass along with...
17408 (pass_data_split_before_sched2): ...new pass_data instance and...
17409 (make_pass_split_before_sched2): ...new function.
17410 (pass_split_for_shorten_branches): Convert from a global struct to a
17411 subclass of rtl_opt_pass along with...
17412 (pass_data_split_for_shorten_branches): ...new pass_data instance
17414 (make_pass_split_for_shorten_branches): ...new function.
17415 * ree.c (pass_ree): Convert from a global struct to a subclass of
17416 rtl_opt_pass along with...
17417 (pass_data_ree): ...new pass_data instance and...
17418 (make_pass_ree): ...new function.
17419 * reg-stack.c (pass_stack_regs): Convert from a global struct to a
17420 subclass of rtl_opt_pass along with...
17421 (pass_data_stack_regs): ...new pass_data instance and...
17422 (make_pass_stack_regs): ...new function.
17423 (pass_stack_regs_run): Convert from a global struct to a subclass of
17424 rtl_opt_pass along with...
17425 (pass_data_stack_regs_run): ...new pass_data instance and...
17426 (make_pass_stack_regs_run): ...new function.
17427 * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
17428 subclass of rtl_opt_pass along with...
17429 (pass_data_cprop_hardreg): ...new pass_data instance and...
17430 (make_pass_cprop_hardreg): ...new function.
17431 * reginfo.c (pass_reginfo_init): Convert from a global struct to a
17432 subclass of rtl_opt_pass along with...
17433 (pass_data_reginfo_init): ...new pass_data instance and...
17434 (make_pass_reginfo_init): ...new function.
17435 * regmove.c (pass_regmove): Convert from a global struct to a subclass
17436 of rtl_opt_pass along with...
17437 (pass_data_regmove): ...new pass_data instance and...
17438 (make_pass_regmove): ...new function.
17439 * regrename.c (pass_regrename): Convert from a global struct to a
17440 subclass of rtl_opt_pass along with...
17441 (pass_data_regrename): ...new pass_data instance and...
17442 (make_pass_regrename): ...new function.
17443 * reorg.c (pass_delay_slots): Convert from a global struct to a
17444 subclass of rtl_opt_pass along with...
17445 (pass_data_delay_slots): ...new pass_data instance and...
17446 (make_pass_delay_slots): ...new function.
17447 (pass_machine_reorg): Convert from a global struct to a subclass of
17448 rtl_opt_pass along with...
17449 (pass_data_machine_reorg): ...new pass_data instance and...
17450 (make_pass_machine_reorg): ...new function.
17451 * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
17452 of rtl_opt_pass along with...
17453 (pass_data_sched): ...new pass_data instance and...
17454 (make_pass_sched): ...new function.
17455 (pass_sched2): Convert from a global struct to a subclass of
17456 rtl_opt_pass along with...
17457 (pass_data_sched2): ...new pass_data instance and...
17458 (make_pass_sched2): ...new function.
17459 * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
17460 to a subclass of rtl_opt_pass along with...
17461 (pass_data_stack_ptr_mod): ...new pass_data instance and...
17462 (make_pass_stack_ptr_mod): ...new function.
17463 * store-motion.c (pass_rtl_store_motion): Convert from a global struct
17464 to a subclass of rtl_opt_pass along with...
17465 (pass_data_rtl_store_motion): ...new pass_data instance and...
17466 (make_pass_rtl_store_motion): ...new function.
17467 * tracer.c (pass_tracer): Convert from a global struct to a subclass
17468 of gimple_opt_pass along with...
17469 (pass_data_tracer): ...new pass_data instance and...
17470 (make_pass_tracer): ...new function.
17471 * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
17472 to a subclass of gimple_opt_pass along with...
17473 (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
17474 (make_pass_diagnose_tm_blocks): ...new function.
17475 (pass_lower_tm): Convert from a global struct to a subclass of
17476 gimple_opt_pass along with...
17477 (pass_data_lower_tm): ...new pass_data instance and...
17478 (make_pass_lower_tm): ...new function.
17479 (pass_tm_init): Convert from a global struct to a subclass of
17480 gimple_opt_pass along with...
17481 (pass_data_tm_init): ...new pass_data instance and...
17482 (make_pass_tm_init): ...new function.
17483 (pass_tm_mark): Convert from a global struct to a subclass of
17484 gimple_opt_pass along with...
17485 (pass_data_tm_mark): ...new pass_data instance and...
17486 (make_pass_tm_mark): ...new function.
17487 (pass_tm_edges): Convert from a global struct to a subclass of
17488 gimple_opt_pass along with...
17489 (pass_data_tm_edges): ...new pass_data instance and...
17490 (make_pass_tm_edges): ...new function.
17491 (pass_tm_memopt): Convert from a global struct to a subclass of
17492 gimple_opt_pass along with...
17493 (pass_data_tm_memopt): ...new pass_data instance and...
17494 (make_pass_tm_memopt): ...new function.
17495 (pass_ipa_tm): Convert from a global struct to a subclass of
17496 simple_ipa_opt_pass along with...
17497 (pass_data_ipa_tm): ...new pass_data instance and...
17498 (make_pass_ipa_tm): ...new function.
17499 * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
17500 subclass of gimple_opt_pass along with...
17501 (pass_data_call_cdce): ...new pass_data instance and...
17502 (make_pass_call_cdce): ...new function.
17503 * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
17504 subclass of gimple_opt_pass along with...
17505 (pass_data_build_cfg): ...new pass_data instance and...
17506 (make_pass_build_cfg): ...new function.
17507 (pass_split_crit_edges): Convert from a global struct to a subclass of
17508 gimple_opt_pass along with...
17509 (pass_data_split_crit_edges): ...new pass_data instance and...
17510 (make_pass_split_crit_edges): ...new function.
17511 (pass_warn_function_return): Convert from a global struct to a
17512 subclass of gimple_opt_pass along with...
17513 (pass_data_warn_function_return): ...new pass_data instance and...
17514 (make_pass_warn_function_return): ...new function.
17515 (pass_warn_function_noreturn): Convert from a global struct to a
17516 subclass of gimple_opt_pass along with...
17517 (pass_data_warn_function_noreturn): ...new pass_data instance and...
17518 (make_pass_warn_function_noreturn): ...new function.
17519 (pass_warn_unused_result): Convert from a global struct to a subclass
17520 of gimple_opt_pass along with...
17521 (pass_data_warn_unused_result): ...new pass_data instance and...
17522 (make_pass_warn_unused_result): ...new function.
17523 * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
17524 a subclass of gimple_opt_pass along with...
17525 (pass_data_merge_phi): ...new pass_data instance and...
17526 (make_pass_merge_phi): ...new function.
17527 * tree-complex.c (pass_lower_complex): Convert from a global struct to
17528 a subclass of gimple_opt_pass along with...
17529 (pass_data_lower_complex): ...new pass_data instance and...
17530 (make_pass_lower_complex): ...new function.
17531 (pass_lower_complex_O0): Convert from a global struct to a subclass of
17532 gimple_opt_pass along with...
17533 (pass_data_lower_complex_O0): ...new pass_data instance and...
17534 (make_pass_lower_complex_O0): ...new function.
17535 * tree-eh.c (pass_lower_eh): Convert from a global struct to a
17536 subclass of gimple_opt_pass along with...
17537 (pass_data_lower_eh): ...new pass_data instance and...
17538 (make_pass_lower_eh): ...new function.
17539 (pass_refactor_eh): Convert from a global struct to a subclass of
17540 gimple_opt_pass along with...
17541 (pass_data_refactor_eh): ...new pass_data instance and...
17542 (make_pass_refactor_eh): ...new function.
17543 (pass_lower_resx): Convert from a global struct to a subclass of
17544 gimple_opt_pass along with...
17545 (pass_data_lower_resx): ...new pass_data instance and...
17546 (make_pass_lower_resx): ...new function.
17547 (pass_lower_eh_dispatch): Convert from a global struct to a subclass
17548 of gimple_opt_pass along with...
17549 (pass_data_lower_eh_dispatch): ...new pass_data instance and...
17550 (make_pass_lower_eh_dispatch): ...new function.
17551 (pass_cleanup_eh): Convert from a global struct to a subclass of
17552 gimple_opt_pass along with...
17553 (pass_data_cleanup_eh): ...new pass_data instance and...
17554 (make_pass_cleanup_eh): ...new function.
17555 * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
17556 to a subclass of simple_ipa_opt_pass along with...
17557 (pass_data_ipa_lower_emutls): ...new pass_data instance and...
17558 (make_pass_ipa_lower_emutls): ...new function.
17559 * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
17560 a subclass of gimple_opt_pass along with...
17561 (pass_data_if_conversion): ...new pass_data instance and...
17562 (make_pass_if_conversion): ...new function.
17563 * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
17564 subclass of gimple_opt_pass along with...
17565 (pass_data_build_ssa): ...new pass_data instance and...
17566 (make_pass_build_ssa): ...new function.
17567 * tree-loop-distribution.c (pass_loop_distribution): Convert from a
17568 global struct to a subclass of gimple_opt_pass along with...
17569 (pass_data_loop_distribution): ...new pass_data instance and...
17570 (make_pass_loop_distribution): ...new function.
17571 * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
17572 subclass of gimple_opt_pass along with...
17573 (pass_data_mudflap_1): ...new pass_data instance and...
17574 (make_pass_mudflap_1): ...new function.
17575 (pass_mudflap_2): Convert from a global struct to a subclass of
17576 gimple_opt_pass along with...
17577 (pass_data_mudflap_2): ...new pass_data instance and...
17578 (make_pass_mudflap_2): ...new function.
17579 * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
17580 subclass of gimple_opt_pass along with...
17581 (pass_data_mudflap_1): ...new pass_data instance and...
17582 (make_pass_mudflap_1): ...new function.
17583 (pass_mudflap_2): Convert from a global struct to a subclass of
17584 gimple_opt_pass along with...
17585 (pass_data_mudflap_2): ...new pass_data instance and...
17586 (make_pass_mudflap_2): ...new function.
17587 * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
17588 gimple_opt_pass along with...
17589 (pass_data_nrv): ...new pass_data instance and...
17590 (make_pass_nrv): ...new function.
17591 (pass_return_slot): Convert from a global struct to a subclass of
17592 gimple_opt_pass along with...
17593 (pass_data_return_slot): ...new pass_data instance and...
17594 (make_pass_return_slot): ...new function.
17595 * tree-object-size.c (pass_object_sizes): Convert from a global struct
17596 to a subclass of gimple_opt_pass along with...
17597 (pass_data_object_sizes): ...new pass_data instance and...
17598 (make_pass_object_sizes): ...new function.
17599 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
17600 global struct to a subclass of gimple_opt_pass along with...
17601 (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
17603 (make_pass_cleanup_cfg_post_optimizing): ...new function.
17604 (pass_fixup_cfg): Convert from a global struct to a subclass of
17605 gimple_opt_pass along with...
17606 (pass_data_fixup_cfg): ...new pass_data instance and...
17607 (make_pass_fixup_cfg): ...new function.
17608 * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
17609 (make_pass_mudflap_1): ...new function.
17610 (pass_mudflap_2): Replace declaration with that of...
17611 (make_pass_mudflap_2): ...new function.
17612 (pass_asan): Replace declaration with that of...
17613 (make_pass_asan): ...new function.
17614 (pass_asan_O0): Replace declaration with that of...
17615 (make_pass_asan_O0): ...new function.
17616 (pass_tsan): Replace declaration with that of...
17617 (make_pass_tsan): ...new function.
17618 (pass_tsan_O0): Replace declaration with that of...
17619 (make_pass_tsan_O0): ...new function.
17620 (pass_lower_cf): Replace declaration with that of...
17621 (make_pass_lower_cf): ...new function.
17622 (pass_refactor_eh): Replace declaration with that of...
17623 (make_pass_refactor_eh): ...new function.
17624 (pass_lower_eh): Replace declaration with that of...
17625 (make_pass_lower_eh): ...new function.
17626 (pass_lower_eh_dispatch): Replace declaration with that of...
17627 (make_pass_lower_eh_dispatch): ...new function.
17628 (pass_lower_resx): Replace declaration with that of...
17629 (make_pass_lower_resx): ...new function.
17630 (pass_build_cfg): Replace declaration with that of...
17631 (make_pass_build_cfg): ...new function.
17632 (pass_early_tree_profile): Replace declaration with that of...
17633 (make_pass_early_tree_profile): ...new function.
17634 (pass_cleanup_eh): Replace declaration with that of...
17635 (make_pass_cleanup_eh): ...new function.
17636 (pass_sra): Replace declaration with that of...
17637 (make_pass_sra): ...new function.
17638 (pass_sra_early): Replace declaration with that of...
17639 (make_pass_sra_early): ...new function.
17640 (pass_early_ipa_sra): Replace declaration with that of...
17641 (make_pass_early_ipa_sra): ...new function.
17642 (pass_tail_recursion): Replace declaration with that of...
17643 (make_pass_tail_recursion): ...new function.
17644 (pass_tail_calls): Replace declaration with that of...
17645 (make_pass_tail_calls): ...new function.
17646 (pass_tree_loop): Replace declaration with that of...
17647 (make_pass_tree_loop): ...new function.
17648 (pass_tree_loop_init): Replace declaration with that of...
17649 (make_pass_tree_loop_init): ...new function.
17650 (pass_lim): Replace declaration with that of...
17651 (make_pass_lim): ...new function.
17652 (pass_tree_unswitch): Replace declaration with that of...
17653 (make_pass_tree_unswitch): ...new function.
17654 (pass_predcom): Replace declaration with that of...
17655 (make_pass_predcom): ...new function.
17656 (pass_iv_canon): Replace declaration with that of...
17657 (make_pass_iv_canon): ...new function.
17658 (pass_scev_cprop): Replace declaration with that of...
17659 (make_pass_scev_cprop): ...new function.
17660 (pass_empty_loop): Replace declaration with that of...
17661 (make_pass_empty_loop): ...new function.
17662 (pass_record_bounds): Replace declaration with that of...
17663 (make_pass_record_bounds): ...new function.
17664 (pass_graphite): Replace declaration with that of...
17665 (make_pass_graphite): ...new function.
17666 (pass_graphite_transforms): Replace declaration with that of...
17667 (make_pass_graphite_transforms): ...new function.
17668 (pass_if_conversion): Replace declaration with that of...
17669 (make_pass_if_conversion): ...new function.
17670 (pass_loop_distribution): Replace declaration with that of...
17671 (make_pass_loop_distribution): ...new function.
17672 (pass_vectorize): Replace declaration with that of...
17673 (make_pass_vectorize): ...new function.
17674 (pass_slp_vectorize): Replace declaration with that of...
17675 (make_pass_slp_vectorize): ...new function.
17676 (pass_complete_unroll): Replace declaration with that of...
17677 (make_pass_complete_unroll): ...new function.
17678 (pass_complete_unrolli): Replace declaration with that of...
17679 (make_pass_complete_unrolli): ...new function.
17680 (pass_parallelize_loops): Replace declaration with that of...
17681 (make_pass_parallelize_loops): ...new function.
17682 (pass_loop_prefetch): Replace declaration with that of...
17683 (make_pass_loop_prefetch): ...new function.
17684 (pass_iv_optimize): Replace declaration with that of...
17685 (make_pass_iv_optimize): ...new function.
17686 (pass_tree_loop_done): Replace declaration with that of...
17687 (make_pass_tree_loop_done): ...new function.
17688 (pass_ch): Replace declaration with that of...
17689 (make_pass_ch): ...new function.
17690 (pass_ccp): Replace declaration with that of...
17691 (make_pass_ccp): ...new function.
17692 (pass_phi_only_cprop): Replace declaration with that of...
17693 (make_pass_phi_only_cprop): ...new function.
17694 (pass_build_ssa): Replace declaration with that of...
17695 (make_pass_build_ssa): ...new function.
17696 (pass_build_alias): Replace declaration with that of...
17697 (make_pass_build_alias): ...new function.
17698 (pass_build_ealias): Replace declaration with that of...
17699 (make_pass_build_ealias): ...new function.
17700 (pass_dominator): Replace declaration with that of...
17701 (make_pass_dominator): ...new function.
17702 (pass_dce): Replace declaration with that of...
17703 (make_pass_dce): ...new function.
17704 (pass_dce_loop): Replace declaration with that of...
17705 (make_pass_dce_loop): ...new function.
17706 (pass_cd_dce): Replace declaration with that of...
17707 (make_pass_cd_dce): ...new function.
17708 (pass_call_cdce): Replace declaration with that of...
17709 (make_pass_call_cdce): ...new function.
17710 (pass_merge_phi): Replace declaration with that of...
17711 (make_pass_merge_phi): ...new function.
17712 (pass_split_crit_edges): Replace declaration with that of...
17713 (make_pass_split_crit_edges): ...new function.
17714 (pass_pre): Replace declaration with that of...
17715 (make_pass_pre): ...new function.
17716 (pass_profile): Replace declaration with that of...
17717 (make_pass_profile): ...new function.
17718 (pass_strip_predict_hints): Replace declaration with that of...
17719 (make_pass_strip_predict_hints): ...new function.
17720 (pass_lower_complex_O0): Replace declaration with that of...
17721 (make_pass_lower_complex_O0): ...new function.
17722 (pass_lower_complex): Replace declaration with that of...
17723 (make_pass_lower_complex): ...new function.
17724 (pass_lower_vector): Replace declaration with that of...
17725 (make_pass_lower_vector): ...new function.
17726 (pass_lower_vector_ssa): Replace declaration with that of...
17727 (make_pass_lower_vector_ssa): ...new function.
17728 (pass_lower_omp): Replace declaration with that of...
17729 (make_pass_lower_omp): ...new function.
17730 (pass_diagnose_omp_blocks): Replace declaration with that of...
17731 (make_pass_diagnose_omp_blocks): ...new function.
17732 (pass_expand_omp): Replace declaration with that of...
17733 (make_pass_expand_omp): ...new function.
17734 (pass_expand_omp_ssa): Replace declaration with that of...
17735 (make_pass_expand_omp_ssa): ...new function.
17736 (pass_object_sizes): Replace declaration with that of...
17737 (make_pass_object_sizes): ...new function.
17738 (pass_strlen): Replace declaration with that of...
17739 (make_pass_strlen): ...new function.
17740 (pass_fold_builtins): Replace declaration with that of...
17741 (make_pass_fold_builtins): ...new function.
17742 (pass_stdarg): Replace declaration with that of...
17743 (make_pass_stdarg): ...new function.
17744 (pass_early_warn_uninitialized): Replace declaration with that of...
17745 (make_pass_early_warn_uninitialized): ...new function.
17746 (pass_late_warn_uninitialized): Replace declaration with that of...
17747 (make_pass_late_warn_uninitialized): ...new function.
17748 (pass_cse_reciprocals): Replace declaration with that of...
17749 (make_pass_cse_reciprocals): ...new function.
17750 (pass_cse_sincos): Replace declaration with that of...
17751 (make_pass_cse_sincos): ...new function.
17752 (pass_optimize_bswap): Replace declaration with that of...
17753 (make_pass_optimize_bswap): ...new function.
17754 (pass_optimize_widening_mul): Replace declaration with that of...
17755 (make_pass_optimize_widening_mul): ...new function.
17756 (pass_warn_function_return): Replace declaration with that of...
17757 (make_pass_warn_function_return): ...new function.
17758 (pass_warn_function_noreturn): Replace declaration with that of...
17759 (make_pass_warn_function_noreturn): ...new function.
17760 (pass_cselim): Replace declaration with that of...
17761 (make_pass_cselim): ...new function.
17762 (pass_phiopt): Replace declaration with that of...
17763 (make_pass_phiopt): ...new function.
17764 (pass_forwprop): Replace declaration with that of...
17765 (make_pass_forwprop): ...new function.
17766 (pass_phiprop): Replace declaration with that of...
17767 (make_pass_phiprop): ...new function.
17768 (pass_tree_ifcombine): Replace declaration with that of...
17769 (make_pass_tree_ifcombine): ...new function.
17770 (pass_dse): Replace declaration with that of...
17771 (make_pass_dse): ...new function.
17772 (pass_nrv): Replace declaration with that of...
17773 (make_pass_nrv): ...new function.
17774 (pass_rename_ssa_copies): Replace declaration with that of...
17775 (make_pass_rename_ssa_copies): ...new function.
17776 (pass_sink_code): Replace declaration with that of...
17777 (make_pass_sink_code): ...new function.
17778 (pass_fre): Replace declaration with that of...
17779 (make_pass_fre): ...new function.
17780 (pass_check_data_deps): Replace declaration with that of...
17781 (make_pass_check_data_deps): ...new function.
17782 (pass_copy_prop): Replace declaration with that of...
17783 (make_pass_copy_prop): ...new function.
17784 (pass_vrp): Replace declaration with that of...
17785 (make_pass_vrp): ...new function.
17786 (pass_uncprop): Replace declaration with that of...
17787 (make_pass_uncprop): ...new function.
17788 (pass_return_slot): Replace declaration with that of...
17789 (make_pass_return_slot): ...new function.
17790 (pass_reassoc): Replace declaration with that of...
17791 (make_pass_reassoc): ...new function.
17792 (pass_rebuild_cgraph_edges): Replace declaration with that of...
17793 (make_pass_rebuild_cgraph_edges): ...new function.
17794 (pass_remove_cgraph_callee_edges): Replace declaration with that of...
17795 (make_pass_remove_cgraph_callee_edges): ...new function.
17796 (pass_build_cgraph_edges): Replace declaration with that of...
17797 (make_pass_build_cgraph_edges): ...new function.
17798 (pass_local_pure_const): Replace declaration with that of...
17799 (make_pass_local_pure_const): ...new function.
17800 (pass_tracer): Replace declaration with that of...
17801 (make_pass_tracer): ...new function.
17802 (pass_warn_unused_result): Replace declaration with that of...
17803 (make_pass_warn_unused_result): ...new function.
17804 (pass_diagnose_tm_blocks): Replace declaration with that of...
17805 (make_pass_diagnose_tm_blocks): ...new function.
17806 (pass_lower_tm): Replace declaration with that of...
17807 (make_pass_lower_tm): ...new function.
17808 (pass_tm_init): Replace declaration with that of...
17809 (make_pass_tm_init): ...new function.
17810 (pass_tm_mark): Replace declaration with that of...
17811 (make_pass_tm_mark): ...new function.
17812 (pass_tm_memopt): Replace declaration with that of...
17813 (make_pass_tm_memopt): ...new function.
17814 (pass_tm_edges): Replace declaration with that of...
17815 (make_pass_tm_edges): ...new function.
17816 (pass_split_functions): Replace declaration with that of...
17817 (make_pass_split_functions): ...new function.
17818 (pass_feedback_split_functions): Replace declaration with that of...
17819 (make_pass_feedback_split_functions): ...new function.
17820 (pass_strength_reduction): Replace declaration with that of...
17821 (make_pass_strength_reduction): ...new function.
17822 (pass_ipa_lower_emutls): Replace declaration with that of...
17823 (make_pass_ipa_lower_emutls): ...new function.
17824 (pass_ipa_function_and_variable_visibility): Replace declaration with
17826 (make_pass_ipa_function_and_variable_visibility): ...new function.
17827 (pass_ipa_tree_profile): Replace declaration with that of...
17828 (make_pass_ipa_tree_profile): ...new function.
17829 (pass_early_local_passes): Replace declaration with that of...
17830 (make_pass_early_local_passes): ...new function.
17831 (pass_ipa_whole_program_visibility): Replace declaration with that
17833 (make_pass_ipa_whole_program_visibility): ...new function.
17834 (pass_ipa_lto_gimple_out): Replace declaration with that of...
17835 (make_pass_ipa_lto_gimple_out): ...new function.
17836 (pass_ipa_increase_alignment): Replace declaration with that of...
17837 (make_pass_ipa_increase_alignment): ...new function.
17838 (pass_ipa_inline): Replace declaration with that of...
17839 (make_pass_ipa_inline): ...new function.
17840 (pass_ipa_free_lang_data): Replace declaration with that of...
17841 (make_pass_ipa_free_lang_data): ...new function.
17842 (pass_ipa_free_inline_summary): Replace declaration with that of...
17843 (make_pass_ipa_free_inline_summary): ...new function.
17844 (pass_ipa_cp): Replace declaration with that of...
17845 (make_pass_ipa_cp): ...new function.
17846 (pass_ipa_reference): Replace declaration with that of...
17847 (make_pass_ipa_reference): ...new function.
17848 (pass_ipa_pure_const): Replace declaration with that of...
17849 (make_pass_ipa_pure_const): ...new function.
17850 (pass_ipa_pta): Replace declaration with that of...
17851 (make_pass_ipa_pta): ...new function.
17852 (pass_ipa_lto_finish_out): Replace declaration with that of...
17853 (make_pass_ipa_lto_finish_out): ...new function.
17854 (pass_ipa_tm): Replace declaration with that of...
17855 (make_pass_ipa_tm): ...new function.
17856 (pass_ipa_profile): Replace declaration with that of...
17857 (make_pass_ipa_profile): ...new function.
17858 (pass_ipa_cdtor_merge): Replace declaration with that of...
17859 (make_pass_ipa_cdtor_merge): ...new function.
17860 (pass_cleanup_cfg_post_optimizing): Replace declaration with that
17862 (make_pass_cleanup_cfg_post_optimizing): ...new function.
17863 (pass_init_datastructures): Replace declaration with that of...
17864 (make_pass_init_datastructures): ...new function.
17865 (pass_fixup_cfg): Replace declaration with that of...
17866 (make_pass_fixup_cfg): ...new function.
17867 (pass_expand): Replace declaration with that of...
17868 (make_pass_expand): ...new function.
17869 (pass_instantiate_virtual_regs): Replace declaration with that of...
17870 (make_pass_instantiate_virtual_regs): ...new function.
17871 (pass_rtl_fwprop): Replace declaration with that of...
17872 (make_pass_rtl_fwprop): ...new function.
17873 (pass_rtl_fwprop_addr): Replace declaration with that of...
17874 (make_pass_rtl_fwprop_addr): ...new function.
17875 (pass_jump): Replace declaration with that of...
17876 (make_pass_jump): ...new function.
17877 (pass_jump2): Replace declaration with that of...
17878 (make_pass_jump2): ...new function.
17879 (pass_lower_subreg): Replace declaration with that of...
17880 (make_pass_lower_subreg): ...new function.
17881 (pass_cse): Replace declaration with that of...
17882 (make_pass_cse): ...new function.
17883 (pass_fast_rtl_dce): Replace declaration with that of...
17884 (make_pass_fast_rtl_dce): ...new function.
17885 (pass_ud_rtl_dce): Replace declaration with that of...
17886 (make_pass_ud_rtl_dce): ...new function.
17887 (pass_rtl_dce): Replace declaration with that of...
17888 (make_pass_rtl_dce): ...new function.
17889 (pass_rtl_dse1): Replace declaration with that of...
17890 (make_pass_rtl_dse1): ...new function.
17891 (pass_rtl_dse2): Replace declaration with that of...
17892 (make_pass_rtl_dse2): ...new function.
17893 (pass_rtl_dse3): Replace declaration with that of...
17894 (make_pass_rtl_dse3): ...new function.
17895 (pass_rtl_cprop): Replace declaration with that of...
17896 (make_pass_rtl_cprop): ...new function.
17897 (pass_rtl_pre): Replace declaration with that of...
17898 (make_pass_rtl_pre): ...new function.
17899 (pass_rtl_hoist): Replace declaration with that of...
17900 (make_pass_rtl_hoist): ...new function.
17901 (pass_rtl_store_motion): Replace declaration with that of...
17902 (make_pass_rtl_store_motion): ...new function.
17903 (pass_cse_after_global_opts): Replace declaration with that of...
17904 (make_pass_cse_after_global_opts): ...new function.
17905 (pass_rtl_ifcvt): Replace declaration with that of...
17906 (make_pass_rtl_ifcvt): ...new function.
17907 (pass_into_cfg_layout_mode): Replace declaration with that of...
17908 (make_pass_into_cfg_layout_mode): ...new function.
17909 (pass_outof_cfg_layout_mode): Replace declaration with that of...
17910 (make_pass_outof_cfg_layout_mode): ...new function.
17911 (pass_loop2): Replace declaration with that of...
17912 (make_pass_loop2): ...new function.
17913 (pass_rtl_loop_init): Replace declaration with that of...
17914 (make_pass_rtl_loop_init): ...new function.
17915 (pass_rtl_move_loop_invariants): Replace declaration with that of...
17916 (make_pass_rtl_move_loop_invariants): ...new function.
17917 (pass_rtl_unswitch): Replace declaration with that of...
17918 (make_pass_rtl_unswitch): ...new function.
17919 (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
17920 (make_pass_rtl_unroll_and_peel_loops): ...new function.
17921 (pass_rtl_doloop): Replace declaration with that of...
17922 (make_pass_rtl_doloop): ...new function.
17923 (pass_rtl_loop_done): Replace declaration with that of...
17924 (make_pass_rtl_loop_done): ...new function.
17925 (pass_web): Replace declaration with that of...
17926 (make_pass_web): ...new function.
17927 (pass_cse2): Replace declaration with that of...
17928 (make_pass_cse2): ...new function.
17929 (pass_df_initialize_opt): Replace declaration with that of...
17930 (make_pass_df_initialize_opt): ...new function.
17931 (pass_df_initialize_no_opt): Replace declaration with that of...
17932 (make_pass_df_initialize_no_opt): ...new function.
17933 (pass_reginfo_init): Replace declaration with that of...
17934 (make_pass_reginfo_init): ...new function.
17935 (pass_inc_dec): Replace declaration with that of...
17936 (make_pass_inc_dec): ...new function.
17937 (pass_stack_ptr_mod): Replace declaration with that of...
17938 (make_pass_stack_ptr_mod): ...new function.
17939 (pass_initialize_regs): Replace declaration with that of...
17940 (make_pass_initialize_regs): ...new function.
17941 (pass_combine): Replace declaration with that of...
17942 (make_pass_combine): ...new function.
17943 (pass_if_after_combine): Replace declaration with that of...
17944 (make_pass_if_after_combine): ...new function.
17945 (pass_ree): Replace declaration with that of...
17946 (make_pass_ree): ...new function.
17947 (pass_partition_blocks): Replace declaration with that of...
17948 (make_pass_partition_blocks): ...new function.
17949 (pass_match_asm_constraints): Replace declaration with that of...
17950 (make_pass_match_asm_constraints): ...new function.
17951 (pass_regmove): Replace declaration with that of...
17952 (make_pass_regmove): ...new function.
17953 (pass_split_all_insns): Replace declaration with that of...
17954 (make_pass_split_all_insns): ...new function.
17955 (pass_fast_rtl_byte_dce): Replace declaration with that of...
17956 (make_pass_fast_rtl_byte_dce): ...new function.
17957 (pass_lower_subreg2): Replace declaration with that of...
17958 (make_pass_lower_subreg2): ...new function.
17959 (pass_mode_switching): Replace declaration with that of...
17960 (make_pass_mode_switching): ...new function.
17961 (pass_sms): Replace declaration with that of...
17962 (make_pass_sms): ...new function.
17963 (pass_sched): Replace declaration with that of...
17964 (make_pass_sched): ...new function.
17965 (pass_ira): Replace declaration with that of...
17966 (make_pass_ira): ...new function.
17967 (pass_reload): Replace declaration with that of...
17968 (make_pass_reload): ...new function.
17969 (pass_clean_state): Replace declaration with that of...
17970 (make_pass_clean_state): ...new function.
17971 (pass_branch_prob): Replace declaration with that of...
17972 (make_pass_branch_prob): ...new function.
17973 (pass_value_profile_transformations): Replace declaration with that
17975 (make_pass_value_profile_transformations): ...new function.
17976 (pass_postreload_cse): Replace declaration with that of...
17977 (make_pass_postreload_cse): ...new function.
17978 (pass_gcse2): Replace declaration with that of...
17979 (make_pass_gcse2): ...new function.
17980 (pass_split_after_reload): Replace declaration with that of...
17981 (make_pass_split_after_reload): ...new function.
17982 (pass_branch_target_load_optimize1): Replace declaration with that
17984 (make_pass_branch_target_load_optimize1): ...new function.
17985 (pass_thread_prologue_and_epilogue): Replace declaration with that
17987 (make_pass_thread_prologue_and_epilogue): ...new function.
17988 (pass_stack_adjustments): Replace declaration with that of...
17989 (make_pass_stack_adjustments): ...new function.
17990 (pass_peephole2): Replace declaration with that of...
17991 (make_pass_peephole2): ...new function.
17992 (pass_if_after_reload): Replace declaration with that of...
17993 (make_pass_if_after_reload): ...new function.
17994 (pass_regrename): Replace declaration with that of...
17995 (make_pass_regrename): ...new function.
17996 (pass_cprop_hardreg): Replace declaration with that of...
17997 (make_pass_cprop_hardreg): ...new function.
17998 (pass_reorder_blocks): Replace declaration with that of...
17999 (make_pass_reorder_blocks): ...new function.
18000 (pass_branch_target_load_optimize2): Replace declaration with that
18002 (make_pass_branch_target_load_optimize2): ...new function.
18003 (pass_leaf_regs): Replace declaration with that of...
18004 (make_pass_leaf_regs): ...new function.
18005 (pass_split_before_sched2): Replace declaration with that of...
18006 (make_pass_split_before_sched2): ...new function.
18007 (pass_compare_elim_after_reload): Replace declaration with that of...
18008 (make_pass_compare_elim_after_reload): ...new function.
18009 (pass_sched2): Replace declaration with that of...
18010 (make_pass_sched2): ...new function.
18011 (pass_stack_regs): Replace declaration with that of...
18012 (make_pass_stack_regs): ...new function.
18013 (pass_stack_regs_run): Replace declaration with that of...
18014 (make_pass_stack_regs_run): ...new function.
18015 (pass_df_finish): Replace declaration with that of...
18016 (make_pass_df_finish): ...new function.
18017 (pass_compute_alignments): Replace declaration with that of...
18018 (make_pass_compute_alignments): ...new function.
18019 (pass_duplicate_computed_gotos): Replace declaration with that of...
18020 (make_pass_duplicate_computed_gotos): ...new function.
18021 (pass_variable_tracking): Replace declaration with that of...
18022 (make_pass_variable_tracking): ...new function.
18023 (pass_free_cfg): Replace declaration with that of...
18024 (make_pass_free_cfg): ...new function.
18025 (pass_machine_reorg): Replace declaration with that of...
18026 (make_pass_machine_reorg): ...new function.
18027 (pass_cleanup_barriers): Replace declaration with that of...
18028 (make_pass_cleanup_barriers): ...new function.
18029 (pass_delay_slots): Replace declaration with that of...
18030 (make_pass_delay_slots): ...new function.
18031 (pass_split_for_shorten_branches): Replace declaration with that of...
18032 (make_pass_split_for_shorten_branches): ...new function.
18033 (pass_split_before_regstack): Replace declaration with that of...
18034 (make_pass_split_before_regstack): ...new function.
18035 (pass_convert_to_eh_region_ranges): Replace declaration with that
18037 (make_pass_convert_to_eh_region_ranges): ...new function.
18038 (pass_shorten_branches): Replace declaration with that of...
18039 (make_pass_shorten_branches): ...new function.
18040 (pass_set_nothrow_function_flags): Replace declaration with that of...
18041 (make_pass_set_nothrow_function_flags): ...new function.
18042 (pass_dwarf2_frame): Replace declaration with that of...
18043 (make_pass_dwarf2_frame): ...new function.
18044 (pass_final): Replace declaration with that of...
18045 (make_pass_final): ...new function.
18046 (pass_rtl_seqabstr): Replace declaration with that of...
18047 (make_pass_rtl_seqabstr): ...new function.
18048 (pass_release_ssa_names): Replace declaration with that of...
18049 (make_pass_release_ssa_names): ...new function.
18050 (pass_early_inline): Replace declaration with that of...
18051 (make_pass_early_inline): ...new function.
18052 (pass_inline_parameters): Replace declaration with that of...
18053 (make_pass_inline_parameters): ...new function.
18054 (pass_update_address_taken): Replace declaration with that of...
18055 (make_pass_update_address_taken): ...new function.
18056 (pass_convert_switch): Replace declaration with that of...
18057 (make_pass_convert_switch): ...new function.
18058 * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
18059 to a subclass of simple_ipa_opt_pass along with...
18060 (pass_data_ipa_tree_profile): ...new pass_data instance and...
18061 (make_pass_ipa_tree_profile): ...new function.
18062 * tree-sra.c (pass_sra_early): Convert from a global struct to a
18063 subclass of gimple_opt_pass along with...
18064 (pass_data_sra_early): ...new pass_data instance and...
18065 (make_pass_sra_early): ...new function.
18066 (pass_sra): Convert from a global struct to a subclass of
18067 gimple_opt_pass along with...
18068 (pass_data_sra): ...new pass_data instance and...
18069 (make_pass_sra): ...new function.
18070 (pass_early_ipa_sra): Convert from a global struct to a subclass of
18071 gimple_opt_pass along with...
18072 (pass_data_early_ipa_sra): ...new pass_data instance and...
18073 (make_pass_early_ipa_sra): ...new function.
18074 * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
18075 subclass of gimple_opt_pass along with...
18076 (pass_data_ccp): ...new pass_data instance and...
18077 (make_pass_ccp): ...new function.
18078 (pass_fold_builtins): Convert from a global struct to a subclass of
18079 gimple_opt_pass along with...
18080 (pass_data_fold_builtins): ...new pass_data instance and...
18081 (make_pass_fold_builtins): ...new function.
18082 * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
18083 subclass of gimple_opt_pass along with...
18084 (pass_data_copy_prop): ...new pass_data instance and...
18085 (make_pass_copy_prop): ...new function.
18086 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
18087 global struct to a subclass of gimple_opt_pass along with...
18088 (pass_data_rename_ssa_copies): ...new pass_data instance and...
18089 (make_pass_rename_ssa_copies): ...new function.
18090 * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
18091 subclass of gimple_opt_pass along with...
18092 (pass_data_dce): ...new pass_data instance and...
18093 (make_pass_dce): ...new function.
18094 (pass_dce_loop): Convert from a global struct to a subclass of
18095 gimple_opt_pass along with...
18096 (pass_data_dce_loop): ...new pass_data instance and...
18097 (make_pass_dce_loop): ...new function.
18098 (pass_cd_dce): Convert from a global struct to a subclass of
18099 gimple_opt_pass along with...
18100 (pass_data_cd_dce): ...new pass_data instance and...
18101 (make_pass_cd_dce): ...new function.
18102 * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
18103 subclass of gimple_opt_pass along with...
18104 (pass_data_dominator): ...new pass_data instance and...
18105 (make_pass_dominator): ...new function.
18106 (pass_phi_only_cprop): Convert from a global struct to a subclass of
18107 gimple_opt_pass along with...
18108 (pass_data_phi_only_cprop): ...new pass_data instance and...
18109 (make_pass_phi_only_cprop): ...new function.
18110 * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
18111 subclass of gimple_opt_pass along with...
18112 (pass_data_dse): ...new pass_data instance and...
18113 (make_pass_dse): ...new function.
18114 * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
18115 a subclass of gimple_opt_pass along with...
18116 (pass_data_forwprop): ...new pass_data instance and...
18117 (make_pass_forwprop): ...new function.
18118 * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
18119 struct to a subclass of gimple_opt_pass along with...
18120 (pass_data_tree_ifcombine): ...new pass_data instance and...
18121 (make_pass_tree_ifcombine): ...new function.
18122 * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
18123 subclass of gimple_opt_pass along with...
18124 (pass_data_ch): ...new pass_data instance and...
18125 (make_pass_ch): ...new function.
18126 * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
18127 subclass of gimple_opt_pass along with...
18128 (pass_data_tree_loop): ...new pass_data instance and...
18129 (make_pass_tree_loop): ...new function.
18130 (pass_tree_loop_init): Convert from a global struct to a subclass of
18131 gimple_opt_pass along with...
18132 (pass_data_tree_loop_init): ...new pass_data instance and...
18133 (make_pass_tree_loop_init): ...new function.
18134 (pass_lim): Convert from a global struct to a subclass of
18135 gimple_opt_pass along with...
18136 (pass_data_lim): ...new pass_data instance and...
18137 (make_pass_lim): ...new function.
18138 (pass_tree_unswitch): Convert from a global struct to a subclass of
18139 gimple_opt_pass along with...
18140 (pass_data_tree_unswitch): ...new pass_data instance and...
18141 (make_pass_tree_unswitch): ...new function.
18142 (pass_predcom): Convert from a global struct to a subclass of
18143 gimple_opt_pass along with...
18144 (pass_data_predcom): ...new pass_data instance and...
18145 (make_pass_predcom): ...new function.
18146 (pass_vectorize): Convert from a global struct to a subclass of
18147 gimple_opt_pass along with...
18148 (pass_data_vectorize): ...new pass_data instance and...
18149 (make_pass_vectorize): ...new function.
18150 (pass_graphite): Convert from a global struct to a subclass of
18151 gimple_opt_pass along with...
18152 (pass_data_graphite): ...new pass_data instance and...
18153 (make_pass_graphite): ...new function.
18154 (pass_graphite_transforms): Convert from a global struct to a subclass
18155 of gimple_opt_pass along with...
18156 (pass_data_graphite_transforms): ...new pass_data instance and...
18157 (make_pass_graphite_transforms): ...new function.
18158 (pass_check_data_deps): Convert from a global struct to a subclass of
18159 gimple_opt_pass along with...
18160 (pass_data_check_data_deps): ...new pass_data instance and...
18161 (make_pass_check_data_deps): ...new function.
18162 (pass_iv_canon): Convert from a global struct to a subclass of
18163 gimple_opt_pass along with...
18164 (pass_data_iv_canon): ...new pass_data instance and...
18165 (make_pass_iv_canon): ...new function.
18166 (pass_scev_cprop): Convert from a global struct to a subclass of
18167 gimple_opt_pass along with...
18168 (pass_data_scev_cprop): ...new pass_data instance and...
18169 (make_pass_scev_cprop): ...new function.
18170 (pass_record_bounds): Convert from a global struct to a subclass of
18171 gimple_opt_pass along with...
18172 (pass_data_record_bounds): ...new pass_data instance and...
18173 (make_pass_record_bounds): ...new function.
18174 (pass_complete_unroll): Convert from a global struct to a subclass of
18175 gimple_opt_pass along with...
18176 (pass_data_complete_unroll): ...new pass_data instance and...
18177 (make_pass_complete_unroll): ...new function.
18178 (pass_complete_unrolli): Convert from a global struct to a subclass of
18179 gimple_opt_pass along with...
18180 (pass_data_complete_unrolli): ...new pass_data instance and...
18181 (make_pass_complete_unrolli): ...new function.
18182 (pass_parallelize_loops): Convert from a global struct to a subclass
18183 of gimple_opt_pass along with...
18184 (pass_data_parallelize_loops): ...new pass_data instance and...
18185 (make_pass_parallelize_loops): ...new function.
18186 (pass_loop_prefetch): Convert from a global struct to a subclass of
18187 gimple_opt_pass along with...
18188 (pass_data_loop_prefetch): ...new pass_data instance and...
18189 (make_pass_loop_prefetch): ...new function.
18190 (pass_iv_optimize): Convert from a global struct to a subclass of
18191 gimple_opt_pass along with...
18192 (pass_data_iv_optimize): ...new pass_data instance and...
18193 (make_pass_iv_optimize): ...new function.
18194 (pass_tree_loop_done): Convert from a global struct to a subclass of
18195 gimple_opt_pass along with...
18196 (pass_data_tree_loop_done): ...new pass_data instance and...
18197 (make_pass_tree_loop_done): ...new function.
18198 * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
18199 struct to a subclass of gimple_opt_pass along with...
18200 (pass_data_cse_reciprocals): ...new pass_data instance and...
18201 (make_pass_cse_reciprocals): ...new function.
18202 (pass_cse_sincos): Convert from a global struct to a subclass of
18203 gimple_opt_pass along with...
18204 (pass_data_cse_sincos): ...new pass_data instance and...
18205 (make_pass_cse_sincos): ...new function.
18206 (pass_optimize_bswap): Convert from a global struct to a subclass of
18207 gimple_opt_pass along with...
18208 (pass_data_optimize_bswap): ...new pass_data instance and...
18209 (make_pass_optimize_bswap): ...new function.
18210 (pass_optimize_widening_mul): Convert from a global struct to a
18211 subclass of gimple_opt_pass along with...
18212 (pass_data_optimize_widening_mul): ...new pass_data instance and...
18213 (make_pass_optimize_widening_mul): ...new function.
18214 * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
18215 subclass of gimple_opt_pass along with...
18216 (pass_data_phiopt): ...new pass_data instance and...
18217 (make_pass_phiopt): ...new function.
18218 (pass_cselim): Convert from a global struct to a subclass of
18219 gimple_opt_pass along with...
18220 (pass_data_cselim): ...new pass_data instance and...
18221 (make_pass_cselim): ...new function.
18222 * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
18223 subclass of gimple_opt_pass along with...
18224 (pass_data_phiprop): ...new pass_data instance and...
18225 (make_pass_phiprop): ...new function.
18226 * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
18227 subclass of gimple_opt_pass along with...
18228 (pass_data_pre): ...new pass_data instance and...
18229 (make_pass_pre): ...new function.
18230 (pass_fre): Convert from a global struct to a subclass of
18231 gimple_opt_pass along with...
18232 (pass_data_fre): ...new pass_data instance and...
18233 (make_pass_fre): ...new function.
18234 * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
18235 subclass of gimple_opt_pass along with...
18236 (pass_data_reassoc): ...new pass_data instance and...
18237 (make_pass_reassoc): ...new function.
18238 * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
18239 subclass of gimple_opt_pass along with...
18240 (pass_data_sink_code): ...new pass_data instance and...
18241 (make_pass_sink_code): ...new function.
18242 * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
18243 subclass of gimple_opt_pass along with...
18244 (pass_data_strlen): ...new pass_data instance and...
18245 (make_pass_strlen): ...new function.
18246 * tree-ssa-structalias.c (pass_build_alias): Convert from a global
18247 struct to a subclass of gimple_opt_pass along with...
18248 (pass_data_build_alias): ...new pass_data instance and...
18249 (make_pass_build_alias): ...new function.
18250 (pass_build_ealias): Convert from a global struct to a subclass of
18251 gimple_opt_pass along with...
18252 (pass_data_build_ealias): ...new pass_data instance and...
18253 (make_pass_build_ealias): ...new function.
18254 (pass_ipa_pta): Convert from a global struct to a subclass of
18255 simple_ipa_opt_pass along with...
18256 (pass_data_ipa_pta): ...new pass_data instance and...
18257 (make_pass_ipa_pta): ...new function.
18258 * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
18259 subclass of gimple_opt_pass along with...
18260 (pass_data_uncprop): ...new pass_data instance and...
18261 (make_pass_uncprop): ...new function.
18262 * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
18263 global struct to a subclass of gimple_opt_pass along with...
18264 (pass_data_late_warn_uninitialized): ...new pass_data instance and...
18265 (make_pass_late_warn_uninitialized): ...new function.
18266 * tree-ssa.c (pass_init_datastructures): Convert from a global struct
18267 to a subclass of gimple_opt_pass along with...
18268 (pass_data_init_datastructures): ...new pass_data instance and...
18269 (make_pass_init_datastructures): ...new function.
18270 (pass_early_warn_uninitialized): Convert from a global struct to a
18271 subclass of gimple_opt_pass along with...
18272 (pass_data_early_warn_uninitialized): ...new pass_data instance and...
18273 (make_pass_early_warn_uninitialized): ...new function.
18274 (pass_update_address_taken): Convert from a global struct to a
18275 subclass of gimple_opt_pass along with...
18276 (pass_data_update_address_taken): ...new pass_data instance and...
18277 (make_pass_update_address_taken): ...new function.
18278 * tree-ssanames.c (pass_release_ssa_names): Convert from a global
18279 struct to a subclass of gimple_opt_pass along with...
18280 (pass_data_release_ssa_names): ...new pass_data instance and...
18281 (make_pass_release_ssa_names): ...new function.
18282 * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
18283 subclass of gimple_opt_pass along with...
18284 (pass_data_stdarg): ...new pass_data instance and...
18285 (make_pass_stdarg): ...new function.
18286 * tree-switch-conversion.c (pass_convert_switch): Convert from a
18287 global struct to a subclass of gimple_opt_pass along with...
18288 (pass_data_convert_switch): ...new pass_data instance and...
18289 (make_pass_convert_switch): ...new function.
18290 * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
18291 to a subclass of gimple_opt_pass along with...
18292 (pass_data_tail_recursion): ...new pass_data instance and...
18293 (make_pass_tail_recursion): ...new function.
18294 (pass_tail_calls): Convert from a global struct to a subclass of
18295 gimple_opt_pass along with...
18296 (pass_data_tail_calls): ...new pass_data instance and...
18297 (make_pass_tail_calls): ...new function.
18298 * tree-vect-generic.c (pass_lower_vector): Convert from a global
18299 struct to a subclass of gimple_opt_pass along with...
18300 (pass_data_lower_vector): ...new pass_data instance and...
18301 (make_pass_lower_vector): ...new function.
18302 (pass_lower_vector_ssa): Convert from a global struct to a subclass of
18303 gimple_opt_pass along with...
18304 (pass_data_lower_vector_ssa): ...new pass_data instance and...
18305 (make_pass_lower_vector_ssa): ...new function.
18306 * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
18307 to a subclass of gimple_opt_pass along with...
18308 (pass_data_slp_vectorize): ...new pass_data instance and...
18309 (make_pass_slp_vectorize): ...new function.
18310 (pass_ipa_increase_alignment): Convert from a global struct to a
18311 subclass of simple_ipa_opt_pass along with...
18312 (pass_data_ipa_increase_alignment): ...new pass_data instance and...
18313 (make_pass_ipa_increase_alignment): ...new function.
18314 * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
18315 gimple_opt_pass along with...
18316 (pass_data_vrp): ...new pass_data instance and...
18317 (make_pass_vrp): ...new function.
18318 * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
18319 subclass of simple_ipa_opt_pass along with...
18320 (pass_data_ipa_free_lang_data): ...new pass_data instance and...
18321 (make_pass_ipa_free_lang_data): ...new function.
18322 * tsan.c (pass_tsan): Convert from a global struct to a subclass of
18323 gimple_opt_pass along with...
18324 (pass_data_tsan): ...new pass_data instance and...
18325 (make_pass_tsan): ...new function.
18326 (pass_tsan_O0): Convert from a global struct to a subclass of
18327 gimple_opt_pass along with...
18328 (pass_data_tsan_O0): ...new pass_data instance and...
18329 (make_pass_tsan_O0): ...new function.
18330 * var-tracking.c (pass_variable_tracking): Convert from a global
18331 struct to a subclass of rtl_opt_pass along with...
18332 (pass_data_variable_tracking): ...new pass_data instance and...
18333 (make_pass_variable_tracking): ...new function.
18334 * web.c (pass_web): Convert from a global struct to a subclass of
18335 rtl_opt_pass along with...
18336 (pass_data_web): ...new pass_data instance and...
18337 (make_pass_web): ...new function.
18338 * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
18339 declaration with that of...
18340 (make_pass_mode_switch_use): ...new function.
18341 (pass_resolve_sw_modes): Replace declaration with that of...
18342 (make_pass_resolve_sw_modes): ...new function.
18343 * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
18344 from a global struct to a subclass of rtl_opt_pass along with...
18345 (pass_data_mode_switch_use): ...new pass_data instance and...
18346 (make_pass_mode_switch_use): ...new function.
18347 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
18348 from a global struct to a subclass of rtl_opt_pass along with...
18349 (pass_data_resolve_sw_modes): ...new pass_data instance and...
18350 (make_pass_resolve_sw_modes): ...new function.
18351 * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
18352 struct to a subclass of rtl_opt_pass along with...
18353 (pass_data_insert_vzeroupper): ...new pass_data instance and...
18354 (make_pass_insert_vzeroupper): ...new function.
18355 * config/sparc/sparc.c (pass_work_around_errata): Convert from a
18356 global struct to a subclass of rtl_opt_pass along with...
18357 (pass_data_work_around_errata): ...new pass_data instance and...
18358 (make_pass_work_around_errata): ...new function.
18359 * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
18360 struct to a subclass of rtl_opt_pass along with...
18361 (pass_data_mips_machine_reorg2): ...new pass_data instance and...
18362 (make_pass_mips_machine_reorg2): ...new function.
18364 2013-08-05 David Malcolm <dmalcolm@redhat.com>
18366 * passes.c (pass_manager::operator new): New.
18368 2013-08-05 David Malcolm <dmalcolm@redhat.com>
18370 Handwritten part of conversion of passes to C++ classes.
18372 * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
18373 (toplev.o): Add dep on PASS_MANAGER_H.
18374 * cgraphunit.c (cgraph_process_new_functions): Rework invocation
18375 of early local pases to reflect this moving from a global to a
18376 member of gcc::pass_manager.
18377 (cgraph_add_new_function): Likewise.
18378 * lto-cgraph.c (lto_output_node): Update for conversion of
18379 struct ipa_opt_pass_d to a C++ subclass of opt_pass.
18380 * passes.c (opt_pass::clone): New.
18381 (opt_pass::gate): New.
18382 (opt_pass::execute): New.
18383 (opt_pass::opt_pass): New.
18384 (pass_manager::execute_early_local_passes): New.
18385 (pass_manager::execute_pass_mode_switching): new.
18386 (finish_optimization_passes): Convert to...
18387 (pass_manager::finish_optimization_passes): ...this.
18388 (finish_optimization_passes): Update for conversion of passes to
18390 (register_dump_files_1): Use has_gate since we cannot portably
18391 check a vtable entry against NULL.
18392 (dump_one_pass): Likewise.
18393 (ipa_write_summaries_2): Likewise.
18394 (ipa_write_optimization_summaries_1): Likewise.
18395 (ipa_read_summaries_1): Likewise.
18396 (ipa_read_optimization_summaries_1): Likewise.
18397 (execute_ipa_stmt_fixups): Likewise.
18398 (pass_manager::pass_manager): Rewrite pass-creation, invoking
18399 pass-creation functions rather than wiring up globals, and
18400 storing the results in fields of pass_manager generated using
18401 pass-instances.def.
18402 (pass_manager::dump_profile_report): Update for conversion of
18403 passes to C++ classes.
18404 (pass_manager::execute_ipa_summary_passes): Likewise.
18405 (execute_one_ipa_transform_pass): Likewise.
18406 (execute_one_pass): Use has_gate and has_execute since we cannot
18407 portably check a vtable entry against NULL.
18408 * pass_manager.h (pass_manager::finish_optimization_passes): New.
18409 (pass_manager): Use pass-instances.def to add fields for the
18410 various pass instances.
18411 * toplev.c (finalize): Update for move of
18412 finish_optimization_passes to a method of gcc::pass_manager.
18413 * toplev.h (finish_optimization_passes): Move to method of class
18415 * tree-pass.h (struct pass_data): New.
18416 (opt_pass): Convert to C++ class, make it a subclass of pass_data.
18417 (opt_pass::gate): Convert to virtual function.
18418 (opt_pass::~opt_pass): New.
18419 (opt_pass::clone): New.
18420 (opt_pass::execute): Convert to virtual function.
18421 (opt_pass::opt_pass): New.
18422 (opt_pass::ctxt_): new.
18423 (gimple_opt_pass): Convert to subclass of opt_pass.
18424 (gimple_opt_pass::gimple_opt_pass): New.
18425 (rtl_opt_pass): Convert to subclass of opt_pass.
18426 (rtl_opt_pass::rtl_opt_pass): New.
18427 (ipa_opt_pass_d): Convert to subclass of opt_pass.
18428 (ipa_opt_pass_d::ipa_opt_pass_d): New.
18429 (simple_ipa_opt_pass): Convert to subclass of opt_pass.
18430 (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
18431 * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
18432 invocation of pass_mode_switching to reflect this moving from a
18433 global to a member of gcc::pass_manager.
18434 (ix86_option_override): Rework how pass_insert_vzeroupper is
18435 added to the pass_manager to reflect autogenerated changes.
18436 * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
18438 2013-08-05 Richard Earnshaw <rearnsha@arm.com>
18440 PR rtl-optimization/57708
18441 * recog.c (peep2_find_free_register): Validate all regs in a
18444 2013-08-05 Jan Hubicka <jh@suse.cz>
18447 * cgraph.c (verify_cgraph_node): Accept local flags from other
18449 * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
18450 (function_and_variable_visibility): Likewise.
18451 * trans-mem.c (ipa_tm_create_version): TM versions are not local.
18453 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
18455 * graph.c (init_graph_slim_pretty_print): Remove.
18456 (print_graph_cfg): Do not call it. Use local pretty printer.
18457 (start_graph_dump): Likewise.
18459 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
18461 * gimple-pretty-print.c (buffer): Remove.
18462 (initialized): Likewise.
18463 (maybe_init_pretty_print): Likewise.
18464 (print_gimple_stmt): Do not call it. Use non-static local
18465 pretty_printer variable.
18466 (print_gimple_expr): Likewise.
18467 (print_gimple_seq): Likewise.
18468 (gimple_dump_bb): Likewise.
18470 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
18472 * asan.c (asan_pp): Remove.
18473 (asan_pp_initialized): Likewise.
18474 (asan_pp_initialize): Likewise.
18475 (asan_pp_string): Take a pretty_printer parameter. Adjust callers.
18476 (asan_emit_stack_protection): Tidy. Use local pretty printer.
18477 (asan_add_global): Likewise.
18479 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
18481 * pretty-print.h (pp_base): Remove. Adjust dependent macros.
18482 * diagnostic.h (diagnostic_flush_buffer): Adjust.
18483 * pretty-print.c (pp_formatted_text_data): Likewise.
18484 (pp_indent): Rename from pp_base_indent.
18485 (pp_format): Rename from pp_base_format.
18486 (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
18487 (pp_format_verbatim): Rename from pp_base_format_verbatim.
18488 (pp_flush): Rename from pp_base_flush.
18489 (pp_set_line_maximum_length): Rename from
18490 pp_base_set_line_maximum_length.
18491 (pp_clear_output_area): Rename from pp_base_clear_output_area.
18492 (pp_set_prefix): Rename from pp_base_set_prefix.
18493 (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
18494 (pp_emit_prefix): Rename from pp_base_emit_prefix.
18495 (pp_append_text): Rename from pp_base_append_text.
18496 (pp_formatted_text): Rename from pp_base_formatted_text.
18497 (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
18498 (pp_remaining_character_count_for_line): Rename from
18499 pp_base_remaining_character_count_for_line.
18500 (pp_newline): Rename from pp_base_newline.
18501 (pp_character): Rename from pp_base_character.
18502 (pp_string): Rename from pp_base_string.
18503 (pp_maybe_space): Rename from pp_base_maybe_space.
18504 * asan.c (asan_pp_string): Adjust.
18505 (asan_emit_stack_protection): Likewise.
18506 (asan_add_global): Likewise.
18507 * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
18508 * tree-mudflap.c (mf_varname_tree): Likewise.
18509 * tree-pretty-print.c (pp_tree_identifier): Rename from
18510 pp_base_tree_identifier.
18511 * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
18512 Declare as function.
18514 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
18516 * pretty-print.h (pp_bar_bar): New.
18517 (pp_ampersand_ampersand): Likewise.
18518 (pp_less_equal): Likewise.
18519 (pp_greater_equal): Likewise.
18520 * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
18521 printer functions instead of pp_string or operators and punctuators.
18522 (dump_gimple_call): Likewise.
18523 (dump_gimple_omp_for): Likewise.
18524 (dump_gimple_transaction): Likewise.
18525 (dump_gimple_phi): Likewise.
18526 (pp_gimple_stmt_1): Likewise.
18527 * sched-vis.c (print_insn): Likewise.
18528 * tree-mudflap.c (mf_varname_tree): Likewise.
18529 * tree-pretty-print.c (dump_block_node): Likewise.
18530 (dump_generic_node): Likewise.
18532 2013-08-02 Jan Hubicka <jh@suse.cz>
18534 * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
18536 * lto-streamer-out.c (tree_is_indexable): Results decls and
18537 parm decls are not indexable.
18538 (DFS_write_tree_body): Do not follow args and results.
18539 (hash_tree): Likewise.
18540 (output_functions): Rearrange so struct function is needed
18541 only when real body is output; be able to also ouptut abstract
18542 functions; output DECL_ARGUMENTS and DECL_RESULT.
18543 (lto_output): When not in WPA, ale store abstract functions.
18544 (write_symbol): Do not care about RESULT_DECL.
18545 (output_symbol_p): Handle correctly sbtract decls.
18546 * lto-streamer-in.c (input_function): Rearrange so struct
18547 function can be NULL at entry; allow streaming of
18548 functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
18549 * ipa.c (symtab_remove_unreachable_nodes): Silence confused
18550 sanity check during LTO.
18551 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
18552 RESULT_DECl and DECL_ARGUMENTS.
18553 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
18556 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
18558 * pretty-print.h (pp_underscore): New.
18560 * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
18561 printer functions instead of pp_character.
18562 (dump_binary_rhs): Likewise.
18563 (dump_ternary_rhs): Likewise.
18564 (dump_gimple_call_args): Likewise.
18565 (pp_points_to_solution): Likewise.
18566 (dump_gimple_call): Likewise.
18567 (dump_gimple_switch): Likewise.
18568 (dump_gimple_cond): Likewise.
18569 (dump_gimple_bind): Likewise.
18570 (dump_gimple_try): Likewise.
18571 (dump_gimple_omp_for): Likewise.
18572 (dump_gimple_omp_continue): Likewise.
18573 (dump_gimple_omp_single): Likewise.
18574 (dump_gimple_omp_sections): Likewise.
18575 (dump_gimple_omp_block): Likewise.
18576 (dump_gimple_omp_critical): Likewise.
18577 (dump_gimple_transaction): Likewise.
18578 (dump_gimple_asm): Likewise.
18579 (dump_gimple_phi): Likewise.
18580 (dump_gimple_omp_parallel): Likewise.
18581 (dump_gimple_omp_task): Likewise.
18582 (dump_gimple_omp_atomic_load): Likewise.
18583 (dump_gimple_omp_atomic_store): Likewise.
18584 (dump_gimple_mem_ops): Likewise.
18585 (pp_gimple_stmt_1): Likewise.
18586 (pp_cfg_jump): Likewise.
18587 (dump_implicit_edges): Likewise.
18588 (gimple_dump_bb_for_graph): Likewise.
18589 * graph.c (draw_cfg_node): Likewise.
18590 * langhooks.c (lhd_print_error_function): Likewise.
18591 * sched-vis.c (print_exp): Likewise.
18592 (print_value): Likewise.
18593 (print_pattern): Likewise.
18594 (print_insn): Likewise.
18595 (rtl_dump_bb_for_graph): Likewise.
18596 * tree-pretty-print.c (dump_function_declaration): Likewise.
18597 (dump_array_domain): Likewise.
18598 (dump_omp_clause): Likewise.
18599 (dump_location): Likewise.
18600 (dump_generic_node): Likewise.
18601 (print_struct_decl): Likewise.
18602 * diagnostic.c (diagnostic_show_locus): Use pp_space.
18604 2013-08-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
18606 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
18607 candidate table when replacing a candidate statement.
18608 (replace_rhs_if_not_dup): Likewise.
18609 (replace_one_candidate): Likewise.
18611 2013-08-02 Jan Hubicka <jh@suse.cz>
18612 Martin Liska <marxin.liska@gmail.com>
18614 * cgraphunit.c (add_new_function): Fix logic when adding from
18616 (assemble_thunk): Rename to ...
18617 (expand_thunk); .. this one; export; get it working with
18618 general functions; make produced gimple valid.
18619 * cgraph.h (expand_thunk): Declare.
18621 2013-08-02 Jan Hubicka <jh@suse.cz>
18623 * ipa-cp.c (gather_context_independent_values): Use
18624 ipa_get_param_move_cost.
18625 (get_replacement_map): Remove PARAM; move parameter folding
18627 (create_specialized_node): Update.
18628 * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
18629 assert that we have gimple body; update move_cost.
18630 (count_formal_params): Assert that we have gimple body.
18631 (ipa_dump_param): New function.
18632 (ipa_alloc_node_params): Break out from ...
18633 (ipa_initialize_node_params): ... here.
18634 (ipa_get_vector_of_formal_parms): ICE when used in WPA.
18635 (ipa_write_node_info): Stream move costs.
18636 (ipa_read_node_info): Read move costs.
18637 (ipa_update_after_lto_read): Do not recompute node params.
18638 * ipa-prop.h (ipa_param_descriptor): Add move_cost.
18639 (ipa_get_param): Check we are not in WPA.
18640 (ipa_get_param_move_cost): New.
18641 * tree-inline.c (tree_function_versioning): Fold replacement as needed.
18642 * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
18643 parm numbers to be present.
18645 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
18647 PR rtl-optimization/58048
18648 * lra-constraints.c (process_alt_operands): Don't check asm
18649 operand on register.
18651 2013-08-02 Eric Botcazou <ebotcazou@adacore.com>
18653 * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
18654 the implied StoreLoad barrier for atomic operations if before.
18656 2013-08-02 Jan Hubicka <jh@suse.cz>
18657 Martin Liska <marxin.liska@gmail.com>
18659 * cgraph.c (cgraph_function_body_availability): Do not check
18661 * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
18662 symtab_node_availability): Declare.
18663 * ipa.c (can_replace_by_local_alias): New.
18664 (function_and_variable_visibility): Use it.
18665 * symtab.c (symtab_for_node_and_aliases,
18666 symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
18668 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
18670 PR rtl-optimization/57963
18671 * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
18672 (lra_constraints): Use them.
18674 2013-08-02 Sofiane Naci <sofiane.naci@arm.com>
18676 * config/arm/types.md (define_attr "type"): Add "load_acq"
18678 * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
18680 (cortex_a53_store1): Likewise.
18682 2013-08-01 Jan Hubicka <jh@suse.cz>
18684 * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
18685 partitions are not needed.
18687 2013-08-01 Uros Bizjak <ubizjak@gmail.com>
18689 * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
18690 * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
18691 MAYBE_NON_Q_CLASS_P where appropriate.
18693 2013-08-01 Jan Hubicka <jh@suse.cz>
18695 * cgraph.h (release_function_body): Declare.
18696 * tree.c (free_lang_data_in_decl): Free, parameters and return values
18697 of unused delcarations.
18699 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18701 * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
18702 RTL form when subtracting a constant.
18704 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18706 * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
18707 Generate canonical plus rtx with negated immediate instead of minus
18709 * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
18711 2013-08-01 Jan Hubicka <jh@suse.cz>
18713 * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
18714 (cgraph_release_function_body): Likewise.
18715 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
18716 * cgraph.h (cgrpah_node): Rename abstract_and_needed
18717 to used_as_abstract_origin.
18718 * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
18719 symbols used as abstract origins.
18720 * cgraphunit.c (analyze_functions): Update.
18721 * ipa.c (symtab_remove_unreachable_nodes): Recompute
18722 used_as_abstract_origin.
18723 * tree-inline.c (tree_function_versioning): Update
18724 used_as_abstract_origin; be ready for DECL_RESULT and
18725 DECL_ARGUMENTS to be NULL.
18727 * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
18728 for abstract functions.
18729 * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
18732 2013-08-01 Jan Hubicka <jh@suse.cz>
18734 * profile.c (compute_value_histograms): Fix thinko.
18736 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
18738 * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs. Add
18739 aarch-common-protos.h to extra_headers.
18740 (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
18741 * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
18742 * config/aarch64/t-aarch64 (aarch-common.o): Define.
18744 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
18746 * config/aarch64/aarch64.md (define_attr "type"): Delete.
18747 Include "../arm/types.md". Define "type" attribute for all patterns.
18748 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
18751 2013-07-31 Michael Meissner <meissner@linux.vnet.ibm.com>
18753 * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
18754 to support power8 load fusion.
18755 (fusion_gpr_mem_load): Likewise.
18757 * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
18759 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
18760 declarations for power8 load fusion.
18761 (emit_fusion_gpr_load): Likewise.
18763 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
18764 tuning for power8, turn on fusion mode by default. Turn on sign
18765 extending fusion mode if normal fusion mode is on, and we are at
18767 (fusion_gpr_load_p): New function, return true if we can fuse an
18768 addis instruction with a dependent load to a GPR.
18769 (emit_fusion_gpr_load): Emit the instructions for power8 load
18772 * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
18773 (VSX load fusion peepholes): New peepholes to fuse together an
18774 addi instruction with a VSX load instruction.
18776 * config/rs6000/rs6000.md (GPR load fusion peepholes): New
18777 peepholes to fuse an addis instruction with a load to a GPR base
18778 register. If we are supporting sign extending fusions, convert
18779 sign extending loads to zero extending loads and add an explicit
18782 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
18784 * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs. Add
18785 aarch-common-protos.h to extra_headers.
18786 (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
18787 * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
18788 (arm_early_store_addr_dep): Likewise.
18789 (arm_no_early_alu_shift_dep): Likewise.
18790 (arm_no_early_alu_shift_value_dep): Likewise.
18791 (arm_no_early_mul_dep): Likewise.
18792 (arm_no_early_store_addr_dep): Likewise.
18793 (arm_mac_accumulator_is_mul_result): Likewise.
18794 (arm_mac_accumulator_is_result): Likewise.
18795 * config/arm/aarch-common.c: ... here. New file.
18796 * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
18798 (arm_early_store_addr_dep): Likewise.
18799 (arm_no_early_alu_shift_dep): Likewise.
18800 (arm_no_early_alu_shift_value_dep): Likewise.
18801 (arm_no_early_mul_dep): Likewise.
18802 (arm_no_early_store_addr_dep): Likewise.
18803 (arm_mac_accumulator_is_mul_result): Likewise.
18804 (arm_mac_accumulator_is_result): Likewise.
18805 * config/arm/aarch-common-protos.h: ... here. New file.
18806 * config/arm/t-arm (aarch-common.o): Define.
18808 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
18810 * config/arm/arm.md: Include new file "types.md".
18811 (define_attr "type"): Move from here to ...
18812 (define_attr "mul32"): Likewise.
18813 (define_attr "mul64"): Likewise.
18814 * config/arm/types.md: ... here. New file.
18816 2013-07-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
18818 * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
18819 * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
18821 2013-07-31 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18823 * gen-pass-instances.awk: Fix offset of substr().
18825 2013-07-31 David Malcolm <dmalcolm@redhat.com>
18827 * Makefile.in (pass-instances.def): New.
18828 (passes.o): Replace dependency on passes.def with one on
18831 * gen-pass-instances.awk: New.
18833 * passes.c (pass_manager::pass_manager): Use pass-instances.def
18834 rather than passes.def, updating local definition of NEXT_PASS
18835 macro to add an extra NUM parameter (currently unused).
18837 2013-07-30 David Malcolm <dmalcolm@redhat.com>
18839 * Makefile.in (PASS_MANAGER_H): New.
18840 (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
18841 (passes.o): Likewise.
18842 (statistics.o): Likewise.
18843 (cgraphunit.o): Likewise.
18844 (context.o): Depend on PASS_MANAGER_H.
18846 * pass_manager.h: New.
18848 * cgraphunit.c (cgraph_add_new_function): Update for moves
18849 of globals to fields of pass_manager.
18850 (analyze_function): Likewise.
18851 (expand_function): Likewise.
18852 (ipa_passes): Likewise.
18853 (compile): Likewise.
18855 * context.c (context::context): New.
18856 * context.h (context::context): New.
18857 (context::get_passes): New.
18858 (context::passes_): New.
18860 * lto-cgraph.c (input_node): Update for moves of globals to
18861 fields of pass_manager.
18863 * passes.c (all_passes): Remove, in favor of a field of the
18864 same name within the new class pass_manager.
18865 (all_small_ipa_passes): Likewise.
18866 (all_lowering_passes): Likewise.
18867 (all_regular_ipa_passes): Likewise.
18868 (all_late_ipa_passes): Likewise.
18869 (all_lto_gen_passes): Likewise.
18870 (passes_by_id): Likewise.
18871 (passes_by_id_size): Likewise.
18872 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
18873 the new class pass_manager.
18874 (set_pass_for_id): Convert to...
18875 (pass_manager::set_pass_for_id): ...method.
18876 (get_pass_for_id): Convert to...
18877 (pass_manager::get_pass_for_id): ...method.
18878 (register_one_dump_file): Move body of implementation into...
18879 (pass_manager::register_one_dump_file): ...here.
18880 (register_dump_files_1): Convert to...
18881 (pass_manager::register_dump_files_1): ...method.
18882 (register_dump_files): Convert to...
18883 (pass_manager::register_dump_files): ...method.
18884 (create_pass_tab): Update for moves of globals to fields of
18886 (dump_passes): Move body of implementation into...
18887 (pass_manager::dump_passes): ...here.
18888 (register_pass): Move body of implementation into...
18889 (pass_manager::register_pass): ...here.
18890 (init_optimization_passes): Convert into...
18891 (pass_manager::pass_manager): ...constructor for new
18892 pass_manager class, and initialize the pass_lists array.
18893 (check_profile_consistency): Update for moves of globals to
18894 fields of pass_manager.
18895 (dump_profile_report): Move body of implementation into...
18896 (pass_manager::dump_profile_report): ...here.
18897 (ipa_write_summaries_1): Update for moves of pass lists from
18898 being globals to fields of pass_manager.
18899 (ipa_write_optimization_summaries): Likewise.
18900 (ipa_read_summaries): Likewise.
18901 (ipa_read_optimization_summaries): Likewise.
18902 (execute_all_ipa_stmt_fixups): Likewise.
18904 * statistics.c (statistics_fini): Update for moves of globals to
18905 fields of pass_manager.
18907 * toplev.c (general_init): Replace call to
18908 init_optimization_passes with construction of the pass_manager
18911 * tree-pass.h (all_passes): Remove, in favor of a field of the
18912 same name within the new class pass_manager.
18913 (all_small_ipa_passes): Likewise.
18914 (all_lowering_passes): Likewise.
18915 (all_regular_ipa_passes): Likewise.
18916 (all_lto_gen_passes): Likewise.
18917 (all_late_ipa_passes): Likewise.
18918 (passes_by_id): Likewise.
18919 (passes_by_id_size): Likewise.
18920 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
18921 the new class pass_manager.
18922 (get_pass_for_id): Remove.
18924 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
18926 * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
18929 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
18931 * arm.md (mulhi3): New expand pattern.
18933 2013-07-30 Jan Hubicka <jh@suse.cz>
18934 Martin Liska <marxin.liska@gmail.com>
18936 * profile.c (compute_value_histograms): Do not ICE when
18937 there is mismatch only on some counters.
18939 2013-07-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18941 PR rtl-optimization/57637
18942 * function.c (move_insn_for_shrink_wrap): Also check the
18943 GEN set of the LIVE problem for the liveness analysis
18944 if it exists, otherwise give up.
18946 2013-07-29 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
18948 PR tree-optimization/57993
18949 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
18950 replaced statement in the candidate table.
18951 (phi_add_costs): Return infinite cost when the hidden basis does
18952 not dominate all phis on which the candidate is dependent.
18953 (replace_one_candidate): Record replaced statement in the
18956 2013-07-29 Joern Rennecke <joern.rennecke@embecosm.com>
18958 * config/epiphany/epiphany.md (*isub_i+2): New peephole.
18959 (ashlv2si3): New expander.
18960 (*ashlv2si3_i): New define_insn_and_split.
18961 * predicates.md (float_operation): Allow patterns with three
18962 basic sub-patterns.
18964 PR rtl-optimization/58021
18965 * mode-switching.c (create_pre_exit): Always split off preceding
18966 insns if we are not at the basic block head.
18968 2013-07-29 Maciej W. Rozycki <macro@codesourcery.com>
18970 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
18971 (UCLIBC_DYNAMIC_LINKER): New macro.
18972 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
18974 (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
18975 (UCLIBC_DYNAMIC_LINKER32): Undefine macro first. Handle
18977 (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
18978 (UCLIBC_DYNAMIC_LINKERN32): Likewise.
18979 * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
18980 for SF and DF modes. Use ieee_quad_format for TF mode.
18981 * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
18982 * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
18983 (mips_option_override): Handle `-mnan=legacy'.
18984 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
18985 `-mabs=2008' and `-mnan=2008'.
18986 (OPTION_DEFAULT_SPECS): Add "nan" default.
18987 (ASM_SPEC): Handle `-mnan='.
18988 [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
18989 * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
18990 comment accordingly.
18991 (neg<mode>2): Likewise.
18992 * config/mips/mips.opt (mabs, mnan): New options.
18993 * doc/install.texi (Configuration): Document `--with-nan=' option.
18994 * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
18996 (MIPS Options): Document them.
18997 * config.gcc <mips*-*-*>: Handle `--with-nan='.
18998 * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
18999 * configure: Regenerate.
19000 * config.in: Regenerate.
19002 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
19004 * config/i386/i386.md (float post-reload splitters): Do not check
19005 for subregs of SSE registers.
19007 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
19008 H.J. Lu <hongjiu.lu@intel.com>
19012 * config/i386/i386.md (post-reload splitter
19013 to avoid partial SSE reg dependency stalls): New pattern.
19015 2013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
19017 * config/s390/s390.md ("movcc"): Swap load and store instructions.
19019 2013-07-27 Joern Rennecke <joern.rennecke@embecosm.com>
19021 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
19022 Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
19024 2013-07-26 Cary Coutant <ccoutant@google.com>
19026 * dwarf2out.c (die_checksum_ordered): Don't include template
19027 instantiations in signature.
19028 (is_template_parameter): New function.
19029 (is_template_instantiation): New function.
19030 (generate_skeleton_bottom_up): Don't include template instantiations
19032 (generate_skeleton): Likewise.
19033 (break_out_comdat_types): Move recursive call to break out nested
19035 (prune_unused_types_mark_generic_parms_dies): Call
19036 is_template_parameter.
19038 2013-07-26 Ian Bolton <ian.bolton@arm.com>
19040 * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
19041 uses vector registers.
19042 * config/aarch64/iterators.md: Add attributes rtn and vas.
19044 2013-07-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19045 Richard Earnshaw <richard.earnshaw@arm.com>
19047 * combine.c (simplify_comparison): Re-canonicalize operands
19049 * config/arm/arm.md (movcond_addsi): New splitter.
19051 2013-07-25 Sterling Augustine <saugustine@google.com>
19053 * dwarf2out.c (size_of_pubnames): Move code to...
19054 (include_pubname_in_output): ...here. New.
19055 (want_pubnames): Rearrange.
19056 (output_pubnames): Call include_pubname_in_output. Move assertion.
19058 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
19060 * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
19062 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
19065 * doc/extend.texi: Remove obsolete builtins. Fix
19066 typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
19068 2013-07-25 Jan Hubicka <jh@suse.cz>
19070 * cgraph.c (release_function_body): Break out from ...
19071 (cgraph_release_function_body): ... this one; also release DECL_RESULT
19072 and DECL_ARGUMENTS.
19073 * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
19074 old_tree in the map.
19075 (create_specialized_node): Update.
19076 * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
19078 * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
19079 DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
19080 * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
19081 * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
19084 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19086 * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
19087 addsi3_carryin_alt2_<optab>): Correct output template.
19089 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19091 * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
19092 Adjust for arm_restrict_it.
19093 Remove trailing whitespace.
19095 2013-07-25  Mark Kettenis  <kettenis@openbsd.org>
19097 * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
19098 libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
19100 * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
19102 2013-07-25 Vladimir Makarov <vmakarov@redhat.com>
19104 PR rtl-optimization/57960
19105 * lra-constraints.c (process_alt_operands): Use the right mode
19106 when checking strict_low.
19108 2013-07-25 Jan Hubicka <jh@suse.cz>
19110 * lto-symtab.c (lto_cgraph_replace_node): Release function body.
19111 * cgraph.c (cgraph_remove_node): Do not release function body
19112 when in cgraph streaming.
19113 * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
19114 in other partitions are not considered reachable; fix handling of
19117 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19119 * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
19121 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19126 * config/arm/arm.md ("*sibcall_insn): Replace use of
19127 Ss with US. Adjust output for v5 and v4t.
19128 (*sibcall_value_insn): Likewise and loosen predicate on operand0.
19130 * config/arm/constraints.md ("Ss"): Rename to US.
19132 2013-07-25 Terry Guo <terry.guo@arm.com>
19134 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
19135 shift_add/shift_sub0/shift_sub1 RTXs.
19137 2013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
19138 Anton Blanchard <anton@au1.ibm.com>
19140 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
19141 (altivec_vpks<VI_char>ss): Likewise.
19142 (altivec_vpks<VI_char>us): Likewise.
19143 (altivec_vpku<VI_char>us): Likewise.
19144 (altivec_vpku<VI_char>um): Likewise.
19146 2013-07-24 David Malcolm <dmalcolm@redhat.com>
19148 Introduce context class.
19150 * Makefile.in (CONTEXT_H): New.
19151 (OBJS): Add context.o.
19152 (toplev.o): Add CONTEXT_H to dependencies.
19155 * toplev.c (general_init): Create the singleton gcc::context instance.
19161 2013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
19163 PR rtl-optimization/57968
19164 * mode-switching.c (create_pre_exit): Allow instructions that
19165 don't set a return register to need a non-exit mode.
19167 2013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
19168 Anton Blanchard <anton@au1.ibm.com>
19170 * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
19171 operands to vperm for little endian.
19172 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
19173 of lvsl to create the control mask for a vperm for little endian.
19175 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19176 Anton Blanchard <anton@au1.ibm.com>
19178 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
19179 two operands for little-endian.
19181 2013-07-23 Steve Ellcey <sellcey@mips.com>
19183 * config/mips/mips.c (mips_case_values_threshold): New.
19184 (TARGET_CASE_VALUES_THRESHOLD): Define.
19186 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19187 Anton Blanchard <anton@au1.ibm.com>
19189 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
19190 selection of field for vector splat in little endian mode.
19192 2013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
19194 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
19195 expanders to rs6000.md.
19196 (ior<mode>3): Likewise.
19197 (and<mode>3): Likewise.
19198 (one_cmpl<mode>2): Likewise.
19199 (nor<mode>3): Likewise.
19200 (andc<mode>3): Likewise.
19201 (eqv<mode>3): Likewise.
19202 (nand<mode>3): Likewise.
19203 (orc<mode>3): Likewise.
19205 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
19208 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
19209 to split multi-word logical operations.
19210 (rs6000_split_logical_di): Likewise.
19211 (rs6000_split_logical): Likewise.
19213 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
19214 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
19215 and allow TImode operations in 32-bit.
19216 (vsx_and<mode>3_64bit): Likewise.
19217 (vsx_ior<mode>3_32bit): Likewise.
19218 (vsx_ior<mode>3_64bit): Likewise.
19219 (vsx_xor<mode>3_32bit): Likewise.
19220 (vsx_xor<mode>3_64bit): Likewise.
19221 (vsx_one_cmpl<mode>2_32bit): Likewise.
19222 (vsx_one_cmpl<mode>2_64bit): Likewise.
19223 (vsx_nor<mode>3_32bit): Likewise.
19224 (vsx_nor<mode>3_64bit): Likewise.
19225 (vsx_andc<mode>3_32bit): Likewise.
19226 (vsx_andc<mode>3_64bit): Likewise.
19227 (vsx_eqv<mode>3_32bit): Likewise.
19228 (vsx_eqv<mode>3_64bit): Likewise.
19229 (vsx_nand<mode>3_32bit): Likewise.
19230 (vsx_nand<mode>3_64bit): Likewise.
19231 (vsx_orc<mode>3_32bit): Likewise.
19232 (vsx_orc<mode>3_64bit): Likewise.
19234 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
19235 logical types in GPRs.
19237 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
19238 logical insns to rs6000.md, and allow TImode operations in
19240 (altivec_ior<mode>3): Likewise.
19241 (altivec_xor<mode>3): Likewise.
19242 (altivec_one_cmpl<mode>2): Likewise.
19243 (altivec_nor<mode>3): Likewise.
19244 (altivec_andc<mode>3): Likewise.
19246 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
19247 attributes for moving the 128-bit logical operations into
19249 (BOOL_REGS_OUTPUT): Likewise.
19250 (BOOL_REGS_OP1): Likewise.
19251 (BOOL_REGS_OP2): Likewise.
19252 (BOOL_REGS_UNARY): Likewise.
19253 (BOOL_REGS_AND_CR0): Likewise.
19254 (one_cmpl<mode>2): Add support for DI logical operations on
19255 32-bit, splitting the operations to 32-bit.
19256 (anddi3): Likewise.
19257 (iordi3): Likewise.
19258 (xordi3): Likewise.
19259 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
19260 changes to combine the 32/64-bit code, allow logical operations on
19261 TI mode in 32-bit, and to use similar match_operator patterns like
19262 scalar mode uses. Combine the Altivec and VSX code for logical
19263 operations, and move it here.
19264 (ior<mode>3, 128-bit types): Likewise.
19265 (xor<mode>3, 128-bit types): Likewise.
19266 (one_cmpl<mode>3, 128-bit types): Likewise.
19267 (nor<mode>3, 128-bit types): Likewise.
19268 (andc<mode>3, 128-bit types): Likewise.
19269 (eqv<mode>3, 128-bit types): Likewise.
19270 (nand<mode>3, 128-bit types): Likewise.
19271 (orc<mode>3, 128-bit types): Likewise.
19272 (and<mode>3_internal): Likewise.
19273 (bool<mode>3_internal): Likewise.
19274 (boolc<mode>3_internal1): Likewise.
19275 (boolc<mode>3_internal2): Likewise.
19276 (boolcc<mode>3_internal1): Likewise.
19277 (boolcc<mode>3_internal2): Likewise.
19278 (eqv<mode>3_internal1): Likewise.
19279 (eqv<mode>3_internal2): Likewise.
19280 (one_cmpl1<mode>3_internal): Likewise.
19282 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
19284 * config/microblaze/microblaze.c (microblaze_expand_prologue):
19285 Rename flag_stack_usage to flag_stack_usage_info.
19287 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
19289 * config/microblaze/sync.md: New file.
19290 * config/microblaze/microblaze.md: Include sync.md
19291 * config/microblaze/microblaze.c: Add print_operand 'y'.
19292 * config/microblaze/constraints.md: Add memory_contraint
19293 'Q' which is a single register.
19295 2013-07-23 Eric Botcazou <ebotcazou@adacore.com>
19297 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
19299 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
19301 * reload.c (find_reloads): Exit loop once we find this operand
19302 cannot be reloaded somehow for this alternative.
19304 * reload.c (find_reloads): Exit loop once we find a hard register.
19306 * rtlanal.c (computed_jump_p): Exit loop once we find label
19309 * i386.c (ix86_pad_returns): Exit loop after setting replace.
19311 * cfgloopmanip.c (remove_path): Exit loop after setting
19314 * gensupport.c (subst_dup): Avoid loop if code is not
19315 MATCH_DUP nor MATCH_OP_DUP.
19317 2013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
19319 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
19321 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
19323 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
19324 true for SP_REGNUM if mode == ptr_mode.
19325 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
19326 with value R0_REGNUM + 31.
19328 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
19330 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
19331 pad pointer-typed argument downward.
19333 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
19335 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
19336 and __ILP32__ when the ILP32 model is in use.
19338 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
19340 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
19341 (aarch64_load_symref_appropriately): In the case of
19342 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
19343 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
19344 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
19345 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
19346 if 'mode' doesn't equal to 'ptr_mode'.
19347 (aarch64_output_mi_thunk): Add an assertion on the alignment of
19348 'vcall_offset'; change to call aarch64_emit_move differently depending
19349 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
19350 to calculate the upper bound of 'vcall_offset'.
19351 (aarch64_cannot_force_const_mem): Change to also return true if
19353 (aarch64_legitimize_reload_address): In the case of large
19354 displacements, add new local variable 'xmode' and an assertion
19355 based on it; change to use 'xmode' to generate the new rtx and
19357 (aarch64_asm_trampoline_template): Change to generate the template
19358 differently depending on TARGET_ILP32 or not; change to use
19359 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
19360 (aarch64_trampoline_size): Removed.
19361 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
19362 and replace immediate literals with it. Change to use 'ptr_mode'
19363 instead of 'DImode' and call convert_memory_address if the mode
19364 of 'fnaddr' doesn't equal to 'ptr_mode'.
19365 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
19367 (aarch64_elf_asm_destructor): Likewise.
19368 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
19369 on TARGET_ILP32 instead of aarch64_trampoline_size.
19370 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
19371 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
19372 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
19373 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
19374 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
19375 (storewb_pair<GPI:mode>_<P:mode>): ... this.
19376 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
19377 depending on the value of 'mode'.
19378 (add_losym_<mode>): New.
19379 (ldr_got_small_<mode>): New, based on ldr_got_small.
19380 (ldr_got_small): Remove.
19381 (ldr_got_small_sidi): New.
19382 * config/aarch64/iterators.md (P): New.
19383 (PTR): Change to 'ptr_mode' in the condition.
19385 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
19387 * config.gcc (aarch64*-*-*): Support --with-abi.
19388 (aarch64*-*-elf): Support --with-multilib-list.
19389 (aarch64*-*-linux*): Likewise.
19390 (supported_defaults): Add abi to aarch64*-*-*.
19391 * configure.ac: Mention AArch64 for --with-multilib-list.
19392 * configure: Re-generated.
19393 * config/aarch64/biarchilp32.h: New file.
19394 * config/aarch64/biarchlp64.h: New file.
19395 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
19397 (MULTILIB_DEFAULTS): Ditto.
19398 (DRIVER_SELF_SPECS): Ditto.
19399 (ASM_SPEC): Update to also substitute -mabi.
19400 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
19401 file whose name depends on -mabi= and -mbig-endian.
19402 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
19404 (POINTER_SIZE): New define.
19405 (POINTERS_EXTEND_UNSIGNED): Ditto.
19406 (enum aarch64_abi_type): New enumeration tag.
19407 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
19408 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
19409 (TARGET_ILP32): New define.
19410 * config/aarch64/aarch64.opt (mabi): New.
19411 (aarch64_abi): New.
19412 (ilp32, lp64): New values for -mabi.
19413 * config/aarch64/t-aarch64 (comma): New define.
19414 (MULTILIB_OPTIONS): Ditto.
19415 (MULTILIB_DIRNAMES): Ditto.
19416 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
19417 * doc/invoke.texi: Document -mabi for AArch64.
19419 2013-07-23 Georg-Johann Lay <avr@gjlay.de>
19421 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
19423 2013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
19424 Anton Blanchard <anton@au1.ibm.com>
19426 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
19427 endianness when selecting field to splat.
19429 2013-07-22 Eric Christopher <echristo@gmail.com>
19431 * dwarf2out.c (die_odr_checksum): New function to use
19432 CHECKSUM_ macros and ULEB128 for DIE tag.
19433 (generate_type_signature): Use.
19435 2013-07-22 Eric Botcazou <ebotcazou@adacore.com>
19437 * config.gcc (sparc*-*-*): Accept leon3 processor.
19438 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
19439 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
19440 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
19441 * config/sparc/sparc.opt (enum processor_type): Add leon3.
19442 (mfix-ut699): Adjust comment.
19443 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
19444 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
19445 (CPP_CPU_SPEC): Likewise.
19446 (ASM_CPU_SPEC): Likewise.
19447 * config/sparc/sparc.c (leon3_cost): New constant.
19448 (sparc_option_override): Add leon3 support.
19449 (mem_ref): New function.
19450 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
19451 (sparc_do_work_around_errata): Look into the instruction in the delay
19452 slot and adjust accordingly. Add fix for the data cache nullify issues
19453 of the UT699. Change insertion position for the NOP.
19454 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
19455 (leon3_load): New reservation.
19456 (leon_store): Bump latency to 2.
19457 (grfpu): New automaton.
19458 (grfpu_alu): New unit.
19459 (grfpu_ds): Likewise.
19460 (leon_fp_alu): Adjust.
19461 (leon_fp_mult): Delete.
19462 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
19463 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
19464 * config/sparc/sparc.md (cpu): Add leon3.
19465 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
19466 (swapsi): Likewise.
19467 (atomic_test_and_set): Likewise.
19468 (ldstub): Likewise.
19470 2013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
19472 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
19473 default for R5900 targets.
19474 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
19475 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
19476 * config/mips/mips.c (mips_option_override): Report an error for
19477 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
19478 for -march=r5900 -mhard-float.
19480 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
19482 * df-problems.c (can_move_insns_across): Exit loop once we
19483 find a non-fixed, non-global register.
19485 * ipa-pure-const.c (propagate_nothrow): Exit loop after
19488 * omega.c (omega_eliminate_red): Break after setting red_found.
19489 (omega_problem_has_red_equations): Similarly after setting found.
19490 (omega_query_variable): Similarly after setting coupled.
19492 2013-07-22 Marek Polacek <polacek@redhat.com>
19494 * gimplify.c: Don't include gimple.h twice.
19496 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19498 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
19499 instead of TARGET_THUMB1.
19500 (Pz): New constraint.
19501 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
19503 (compare_negsi_si): Likewise.
19504 (compare_addsi2_op0): Likewise.
19505 (compare_addsi2_op1): Likewise.
19506 (addsi3_carryin_<optab>): Likewise.
19507 (addsi3_carryin_alt2_<optab>): Likewise.
19508 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
19509 for arm_restrict_it.
19510 (subsi3_carryin): Likewise.
19511 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
19512 (minmax_arithsi): Disable for arm_restrict_it.
19513 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
19514 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
19515 (satsi_<SAT:code>_shift): Likewise.
19516 (arm_shiftsi3): Add alternative for 16-bit encoding.
19517 (arm32_movhf): Disable for arm_restrict_it.
19518 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
19519 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
19521 2013-07-22 Sofiane Naci <sofiane.naci@arm.com>
19523 * config/arm/arm.md (attribute "insn"): Delete.
19524 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
19525 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
19526 (not_shiftsi): Update for attribute change.
19527 (not_shiftsi_compare0): Likewise.
19528 (not_shiftsi_compare0_scratch): Likewise.
19529 (arm_one_cmplsi2): Likewise.
19530 (thumb1_one_cmplsi2): Likewise.
19531 (notsi_compare0): Likewise.
19532 (notsi_compare0_scratch): Likewise.
19533 (thumb1_movdi_insn): Likewise.
19534 (arm_movsi_insn): Likewise.
19535 (movhi_insn_arch4): Likewise.
19536 (movhi_bytes): Likewise.
19537 (arm_movqi_insn): Likewise.
19538 (thumb1_movqi_insn): Likewise.
19539 (arm32_movhf): Likewise.
19540 (thumb1_movhf): Likewise.
19541 (arm_movsf_soft_insn): Likewise.
19542 (thumb1_movsf_insn): Likewise.
19543 (thumb_movdf_insn): Likewise.
19544 (movsicc_insn): Likewise.
19545 (movsfcc_soft_insn): Likewise.
19546 (and_scc): Likewise.
19547 (cond_move): Likewise.
19548 (if_move_not): Likewise.
19549 (if_not_move): Likewise.
19550 (if_shift_move): Likewise.
19551 (if_move_shift): Likewise.
19552 (if_shift_shift): Likewise.
19553 (if_not_arith): Likewise.
19554 (if_arith_not): Likewise.
19555 (cond_move_not): Likewise.
19556 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
19557 (neon_mov<mode>): Likewise.
19558 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
19559 (thumb2_movsi_vfp): Likewise.
19560 (movsf_vfp): Likewise.
19561 (thumb2_movsf_vfp): Likewise.
19562 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
19564 (cortexa7_older_only): Likewise.
19565 (cortexa7_younger): Likewise.
19566 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
19567 (1020alu_shift_op): Likewise.
19568 (1020alu_shift_reg_op): Likewise.
19569 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
19570 (alu_shift_op): Likewise.
19571 (alu_shift_reg_op): Likewise.
19572 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
19573 (11_alu_shift_op): Likewise.
19574 (11_alu_shift_reg_op): Likewise.
19575 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
19576 (9_alu_shift_reg_op): Likewise.
19577 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
19579 (cortex_a15_alu_shift): Likewise.
19580 (cortex_a15_alu_shift_reg): Likewise.
19581 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
19582 (cortex_a5_alu_shift): Likewise.
19583 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
19585 (cortex_a53_alu_shift): Likewise.
19586 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
19588 (cortex_a7_alu_reg): Likewise.
19589 (cortex_a7_alu_shift): Likewise.
19590 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
19591 (cortex_a8_alu_shift): Likewise.
19592 (cortex_a8_alu_shift_reg): Likewise.
19593 (cortex_a8_mov): Likewise.
19594 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
19595 (cortex_a9_dp_shift): Likewise.
19596 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
19597 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
19598 (cortex_r4_mov): Likewise.
19599 (cortex_r4_alu_shift): Likewise.
19600 (cortex_r4_alu_shift_reg): Likewise.
19601 * config/arm/fa526.md (526_alu_op): Update for attribute change.
19602 (526_alu_shift_op): Likewise.
19603 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
19604 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
19605 (626te_alu_shift_op): Likewise.
19606 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
19607 (726te_alu_op): Likewise.
19608 (726te_alu_shift_op): Likewise.
19609 (726te_alu_shift_reg_op): Likewise.
19610 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
19611 (mp626_alu_shift_op): Likewise.
19612 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
19613 (pj4_alu_e1_conds): Likewise.
19614 (pj4_alu): Likewise.
19615 (pj4_alu_conds): Likewise.
19616 (pj4_shift): Likewise.
19617 (pj4_shift_conds): Likewise.
19618 (pj4_alu_shift): Likewise.
19619 (pj4_alu_shift_conds): Likewise.
19621 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19623 * config/arm/predicates.md (shiftable_operator_strict_it):
19625 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
19626 Disable cond_exec version for arm_restrict_it.
19627 (thumb2_smaxsi3): Convert to generate cond_exec.
19628 (thumb2_sminsi3): Likewise.
19629 (thumb32_umaxsi3): Likewise.
19630 (thumb2_uminsi3): Likewise.
19631 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
19632 (thumb2_neg_abssi2): Likewise.
19633 (thumb2_mov_scc): Add alternative for 16-bit encoding.
19634 (thumb2_movsicc_insn): Adjust alternatives.
19635 (thumb2_mov_negscc): Disable for arm_restrict_it.
19636 (thumb2_mov_negscc_strict_it): New pattern.
19637 (thumb2_mov_notscc_strict_it): New pattern.
19638 (thumb2_mov_notscc): Disable for arm_restrict_it.
19639 (thumb2_ior_scc): Likewise.
19640 (thumb2_ior_scc_strict_it): New pattern.
19641 (thumb2_cond_move): Adjust for arm_restrict_it.
19642 (thumb2_cond_arith): Disable for arm_restrict_it.
19643 (thumb2_cond_arith_strict_it): New pattern.
19644 (thumb2_cond_sub): Adjust for arm_restrict_it.
19645 (thumb2_movcond): Likewise.
19646 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
19647 (thumb2_zero_extendhisi2_v6): Likewise.
19648 (thumb2_zero_extendqisi2_v6): Likewise.
19649 (orsi_notsi_si): Likewise.
19650 (orsi_not_shiftsi_si): Likewise.
19652 2013-07-22 Georg-Johann Lay <avr@gjlay.de>
19654 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
19655 instruction sequence is 1 byte shorter.
19657 2013-07-22 Uros Bizjak <ubizjak@gmail.com>
19659 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
19660 it is not needed after split.
19662 2013-07-20 Iain Sandoe <iain@codesourcery.com>
19665 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
19666 second label for nonlocal goto receivers. Don't output pic base labels
19667 unless we're producing PIC; mark that action unreachable().
19668 (ix86_save_reg): If the function contains a nonlocal label, save the
19670 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
19671 * config/darwin.c (emitted_pic_label_num): New GTY.
19672 (update_pic_label_number_if_needed): New.
19673 (machopic_output_function_base_name): Adjust for nonlocal receiver
19675 (machopic_should_output_picbase_label): New.
19676 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
19677 (nonlocal_goto_receiver): New insn and split.
19679 2013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
19681 * config/aarch64/aarch64-builtins.c
19682 (aarch64_fold_builtin): Fold abs in all modes.
19683 * config/aarch64/aarch64-simd-builtins.def
19684 (abs): Enable for all modes.
19685 * config/aarch64/arm_neon.h
19686 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
19687 (vabs_f64): Add missing intrinsic.
19689 2013-07-19 Ian Bolton <ian.bolton@arm.com>
19691 * config/aarch64/arm_neon.h (vabs_s64): New function
19693 2013-07-19 Georg-Johann Lay <avr@gjlay.de>
19696 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
19697 * config/avr/avr.md (adjust_len): Add `round'.
19698 * config/avr/avr-protos.h (avr_out_round): New prototype.
19699 (avr_out_plus): Add `out_label' argument.
19700 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
19701 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
19702 Handle the case where `insn' is just a pattern.
19703 (avr_out_bitop): Handle the case where `insn' is just a pattern.
19704 (avr_out_round): New function.
19705 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
19707 2013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
19709 * config/microblaze/microblaze.c (microblaze_expand_prologue):
19710 Add check for flag_stack_usage to handle -fstack-usage support
19712 2013-07-18 Pat Haugen <pthaugen@us.ibm.com>
19714 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
19715 interaction for new Power8 flags and VSX.
19717 2013-07-18 Sriraman Tallam <tmsriram@google.com>
19719 PR middle-end/57698
19720 * tree-inline.c (expand_call_inline): Emit errors during
19721 early_inlining only if optimization is not turned on.
19723 2013-07-18 David Malcolm <dmalcolm@redhat.com>
19727 * passes.c (init_optimization_passes): Move the construction of
19728 the pass hierarchy into a new passes.def file.
19730 * Makefile.in (passes.o): Add dependency on passes.def.
19732 2013-07-18 David Malcolm <dmalcolm@redhat.com>
19734 * passes.c (init_optimization_passes): Introduce macros for
19735 constructing the tree of passes (INSERT_PASSES_AFTER,
19736 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
19737 TERMINATE_PASS_LIST).
19739 2013-07-18 Vladimir Makarov <vmakarov@redhat.com>
19740 Wei Mi <wmi@google.com>
19742 PR rtl-optimization/57878
19743 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
19745 (reload_pseudo_compare_func): Check nregs first for reload
19748 2013-07-18 David Malcolm <dmalcolm@redhat.com>
19750 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
19752 2013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
19754 * read-rtl.c (validate_const_int): Once an invalid character is
19755 seen, quit the loop.
19757 * gengtype.c (write_roots): Similarly once we find the "deletable"
19758 or "if_marked" option.
19760 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
19762 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
19763 "xtab" and "sat". Move value "clz" from here to ...
19764 (attriubte "type"): ... here.
19765 (satsi_<SAT:code>): Delete "insn" attribute.
19766 (satsi_<SAT:code>_shift): Likewise.
19767 (arm_zero_extendqisi2addsi): Likewise.
19768 (arm_extendqisi2addsi): Likewise.
19769 (clzsi2): Update for attribute changes.
19770 (rbitsi2): Likewise.
19771 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
19773 (arm_usatsihi): Likewise.
19774 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
19776 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
19778 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
19779 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
19780 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
19781 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
19782 in alphabetical order.
19783 (attribute "core_cycles"): Update for attribute changes.
19784 (arm_addsi3): Likewise.
19785 (addsi3_compare0): Likewise.
19786 (addsi3_compare0_scratch): Likewise.
19787 (addsi3_compare_op1): Likewise.
19788 (addsi3_compare_op2): Likewise.
19789 (compare_addsi2_op0): Likewise.
19790 (compare_addsi2_op1): Likewise.
19791 (addsi3_carryin_shift_<optab>): Likewise.
19792 (subsi3_carryin_shift): Likewise.
19793 (rsbsi3_carryin_shift): Likewise.
19794 (arm_subsi3_insn): Likewise.
19795 (subsi3_compare0): Likewise.
19796 (subsi3_compare): Likewise.
19797 (arm_andsi3_insn): Likewise.
19798 (thumb1_andsi3_insn): Likewise.
19799 (andsi3_compare0): Likewise.
19800 (andsi3_compare0_scratch): Likewise.
19801 (zeroextractsi_compare0_scratch
19802 (andsi_not_shiftsi_si): Likewise.
19803 (iorsi3_insn): Likewise.
19804 (iorsi3_compare0): Likewise.
19805 (iorsi3_compare0_scratch): Likewise.
19806 (arm_xorsi3): Likewise.
19807 (thumb1_xorsi3_insn): Likewise.
19808 (xorsi3_compare0): Likewise.
19809 (xorsi3_compare0_scratch): Likewise.
19810 (satsi_<SAT:code>_shift): Likewise.
19812 (arm_shiftsi3): Likewise.
19813 (shiftsi3_compare0): Likewise.
19814 (not_shiftsi): Likewise.
19815 (not_shiftsi_compare0): Likewise.
19816 (not_shiftsi_compare0_scratch): Likewise.
19817 (arm_one_cmplsi2): Likewise.
19818 (thumb_one_complsi2): Likewise.
19819 (notsi_compare0): Likewise.
19820 (notsi_compare0_scratch): Likewise.
19821 (thumb1_zero_extendhisi2): Likewise.
19822 (arm_zero_extendhisi2): Likewise.
19823 (arm_zero_extendhisi2_v6): Likewise.
19824 (arm_zero_extendhisi2addsi): Likewise.
19825 (thumb1_zero_extendqisi2): Likewise.
19826 (thumb1_zero_extendqisi2_v6): Likewise.
19827 (arm_zero_extendqisi2): Likewise.
19828 (arm_zero_extendqisi2_v6): Likewise.
19829 (arm_zero_extendqisi2addsi): Likewise.
19830 (thumb1_extendhisi2): Likewise.
19831 (arm_extendhisi2): Likewise.
19832 (arm_extendhisi2_v6): Likewise.
19833 (arm_extendqisi): Likewise.
19834 (arm_extendqisi_v6): Likewise.
19835 (arm_extendqisi2addsi): Likewise.
19836 (thumb1_extendqisi2): Likewise.
19837 (thumb1_movdi_insn): Likewise.
19838 (arm_movsi_insn): Likewise.
19839 (movsi_compare0): Likewise.
19840 (movhi_insn_arch4): Likewise.
19841 (movhi_bytes): Likewise.
19842 (arm_movqi_insn): Likewise.
19843 (thumb1_movqi_insn): Likewise.
19844 (arm32_movhf): Likewise.
19845 (thumb1_movhf): Likewise.
19846 (arm_movsf_soft_insn): Likewise.
19847 (thumb1_movsf_insn): Likewise.
19848 (movdf_soft_insn): Likewise.
19849 (thumb_movdf_insn): Likewise.
19850 (arm_cmpsi_insn): Likewise.
19851 (cmpsi_shiftsi): Likewise.
19852 (cmpsi_shiftsi_swp): Likewise.
19853 (arm_cmpsi_negshiftsi_si): Likewise.
19854 (movsicc_insn): Likewise.
19855 (movsfcc_soft_insn): Likewise.
19856 (arith_shiftsi): Likewise.
19857 (arith_shiftsi_compare0
19858 (arith_shiftsi_compare0_scratch
19859 (sub_shiftsi): Likewise.
19860 (sub_shiftsi_compare0
19861 (sub_shiftsi_compare0_scratch
19862 (and_scc): Likewise.
19863 (cond_move): Likewise.
19864 (if_plus_move): Likewise.
19865 (if_move_plus): Likewise.
19866 (if_move_not): Likewise.
19867 (if_not_move): Likewise.
19868 (if_shift_move): Likewise.
19869 (if_move_shift): Likewise.
19870 (if_shift_shift): Likewise.
19871 (if_not_arith): Likewise.
19872 (if_arith_not): Likewise.
19873 (cond_move_not): Likewise.
19874 (thumb1_ashlsi3): Set type attribute.
19875 (thumb1_ashrsi3): Likewise.
19876 (thumb1_lshrsi3): Likewise.
19877 (thumb1_rotrsi3): Likewise.
19878 (shiftsi3_compare0_scratch): Likewise.
19879 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
19880 (neon_mov<mode>): Likewise.
19881 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
19883 (thumb2_movsi_insn): Likewise.
19884 (thumb2_cmpsi_neg_shiftsi): Likewise.
19885 (thumb2_extendqisi_v6): Likewise.
19886 (thumb2_zero_extendhisi2_v6): Likewise.
19887 (thumb2_zero_extendqisi2_v6): Likewise.
19888 (thumb2_shiftsi3_short): Likewise.
19889 (thumb2_addsi3_compare0_scratch): Likewise.
19890 (orsi_not_shiftsi_si): Likewise.
19891 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
19892 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
19894 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
19895 (1020alu_shift_op): Likewise.
19896 (1020alu_shift_reg_op): Likewise.
19897 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
19898 (alu_shift_op): Likewise.
19899 (alu_shift_reg_op): Likewise.
19900 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
19901 (11_alu_shift_op): Likewise.
19902 (11_alu_shift_reg_op): Likewise.
19903 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
19904 (9_alu_shift_reg_op): Likewise.
19905 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
19907 (cortex_a15_alu_shift): Likewise.
19908 (cortex_a15_alu_shift_reg): Likewise.
19909 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
19911 (cortex_a5_alu_shift): Likewise.
19912 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
19914 (cortex_a53_alu_shift): Likewise.
19915 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
19917 (cortex_a7_alu_reg): Likewise.
19918 (cortex_a7_alu_shift): Likewise.
19919 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
19921 (cortex_a8_alu_shift): Likewise.
19922 (cortex_a8_alu_shift_reg): Likewise.
19923 (cortex_a8_mov): Likewise.
19924 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
19925 (cortex_a9_dp_shift): Likewise.
19926 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
19928 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
19930 (cortex_r4_mov): Likewise.
19931 (cortex_r4_alu_shift): Likewise.
19932 (cortex_r4_alu_shift_reg): Likewise.
19933 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
19934 (526_alu_shift_op): Likewise.
19935 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
19936 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
19937 (626te_alu_shift_op): Likewise.
19938 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
19939 (726te_alu_op): Likewise.
19940 (726te_alu_shift_op): Likewise.
19941 (726te_alu_shift_reg_op): Likewise.
19942 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
19943 (mp626_alu_shift_op): Likewise.
19944 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
19945 (pj4_alu_e1_conds): Likewise.
19946 (pj4_alu): Likewise.
19947 (pj4_alu_conds): Likewise.
19948 (pj4_shift): Likewise.
19949 (pj4_shift_conds): Likewise.
19950 (pj4_alu_shift): Likewise.
19951 (pj4_alu_shift_conds): Likewise.
19952 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
19954 (cortexa7_older_only): Likewise.
19955 (cortexa7_younger): Likewise.
19957 2013-07-18 David Malcolm <dmalcolm@redhat.com>
19959 * ipa-pure-const.c (generate_summary): Rename to...
19960 (pure_const_generate_summary): ... this.
19962 2013-07-17 Iain Sandoe <iain@codesourcery.com>
19964 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
19966 2013-07-17 Yvan Roux <yvan.roux@linaro.org>
19969 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
19972 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19974 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
19975 enabled without -march=zEC12.
19976 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
19979 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
19981 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
19982 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
19983 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
19984 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
19985 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
19986 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
19987 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
19989 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
19990 and ISA_HAS_NMADD3_NMSUB3.
19991 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
19992 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
19993 (nmsub4<mode>, nmsub3<mode>): Likewise.
19994 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
19996 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
19998 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
19999 TARGET_MIPS5400 checking.
20001 2013-07-16 Jakub Jelinek <jakub@redhat.com>
20002 Peter Bergner <bergner@vnet.ibm.com>
20004 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
20005 registers in the comment.
20006 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
20007 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
20008 rather than FIRST_PSEUDO_REGISTERS.
20010 2013-07-16 Peter Bergner <bergner@vnet.ibm.com>
20012 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
20013 enable extra ISA flags with TARGET_HTM.
20015 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
20017 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
20020 2013-07-15 Cong Hou <congh@google.com>
20022 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
20023 in compare function for sorting.
20025 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
20027 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
20028 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
20029 * config/rs6000/rs6000.opt: Add -mhtm option.
20030 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
20031 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
20032 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
20033 __HTM__ if the HTM instructions are available.
20034 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
20035 htm_spr_reg_operand): New define_predicates.
20036 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
20037 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
20039 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
20040 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
20041 HTM builtin functions.
20042 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
20043 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
20044 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
20045 (rs6000_builtin_mask_calculate): Likewise.
20046 (rs6000_option_override_internal): Likewise.
20047 (bdesc_htm): Add new HTM builtin support.
20048 (htm_spr_num): New function.
20049 (htm_spr_regno): Likewise.
20050 (rs6000_htm_spr_icode): Likewise.
20051 (htm_expand_builtin): Likewise.
20052 (htm_init_builtins): Likewise.
20053 (rs6000_expand_builtin): Add support for HTM builtin functions.
20054 (rs6000_init_builtins): Likewise.
20055 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
20057 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
20058 (TARGET_HTM, MASK_HTM): Define macros.
20059 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
20060 (FIXED_REGISTERS): Likewise.
20061 (CALL_USED_REGISTERS): Likewise.
20062 (CALL_REALLY_USED_REGISTERS): Likewise.
20063 (REG_ALLOC_ORDER): Likewise.
20064 (enum reg_class): Likewise.
20065 (REG_CLASS_NAMES): Likewise.
20066 (REG_CLASS_CONTENTS): Likewise.
20067 (REGISTER_NAMES): Likewise.
20068 (ADDITIONAL_REGISTER_NAMES): Likewise.
20069 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
20070 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
20071 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
20072 * config/rs6000/htm.md: New file.
20073 * config/rs6000/htmintrin.h: New file.
20074 * config/rs6000/htmxlintrin.h: New file.
20076 2013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
20078 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
20079 Define SYMBOL_TINY_GOT, update comment.
20080 * config/aarch64/aarch64.c
20081 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
20082 (aarch64_expand_mov_immediate): Likewise.
20083 (aarch64_print_operand): Likewise.
20084 (aarch64_classify_symbol): Likewise.
20085 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
20086 (ldr_got_tiny): Define.
20088 2013-07-13 Tobias Grosser <tobias@grosser.es>
20090 PR tree-optimization/54094
20091 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
20092 scheduling dimension for the parallelism check from the polyhedral
20093 information in the AST.
20094 * graphite-dependences.c (carries_deps): Do not assume the schedule is
20097 2013-07-13 Jason Merrill <jason@redhat.com>
20099 * print-tree.c (debug_vec_tree): Use debug_raw.
20100 (debug_raw (vec<tree, va_gc> &)): New.
20101 (debug_raw (vec<tree, va_gc> *)): New.
20102 * tree.h: Declare them.
20104 2013-07-13 Bin Cheng <bin.cheng@arm.com>
20106 * ifcvt.c (ifcvt_after_combine): New static variable.
20107 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
20109 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
20110 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
20111 rest_of_handle_if_after_reload): Pass new argument for if_convert.
20113 2013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
20115 * config/mips/mips.c (mips_expand_call): Remove empty statement.
20117 2013-07-12 Michael Matz <matz@suse.de>
20119 PR middle-end/55771
20120 * convert.c (convert_to_real): Reject non-float inner types.
20122 2013-07-12 Tejas Belagod <tejas.belagod@arm.com>
20124 * config/aarch64/aarch64-protos.h
20125 (aarch64_simd_immediate_valid_for_move): Remove.
20126 * config/aarch64/aarch64.c (simd_immediate_info): New member.
20127 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
20129 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
20131 2013-07-11 Steve Ellcey <sellcey@mips.com>
20133 * config/mips/mips.c (mips_conditional_register_usage): Do not
20134 use t[0-7] registers in MIPS16 mode when optimizing for size.
20136 2013-07-11 Sriraman Tallam <tmsriram@google.com>
20138 * config/i386/i386.c (dispatch_function_versions): Fix array
20139 indexing of function_version_info to match actual_versions.
20141 2013-07-11 Teresa Johnson <tejohnson@google.com>
20143 * vec.h (struct va_gc): Move release out-of-line.
20144 (va_gc::release): Call ggc_free on released vec.
20146 2013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20148 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
20149 Require GOT register as additional operand in UNSPEC.
20150 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
20151 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
20152 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
20153 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
20154 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
20155 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
20156 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
20158 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
20161 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
20162 name seen by assembler/linker rather if available.
20164 2013-07-11 Andreas Schwab <schwab@suse.de>
20166 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
20168 2013-07-10 Vladimir Makarov <vmakarov@redhat.com>
20170 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
20172 2013-07-10 Joseph Myers <joseph@codesourcery.com>
20174 * doc/tm.texi.in: Move hook documentation to ....
20175 * target.def: ... here.
20177 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
20178 text on @hook line.
20179 * doc/tm.texi: Regenerate.
20181 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
20184 * doc/invoke.texi: Document -Wconditionally-supported.
20186 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
20189 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
20192 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
20195 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
20196 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
20197 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
20198 Remove duplicate devices.
20199 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
20200 * config/avr/t-multilib: Regenerate.
20201 * config/avr/avr-tables.opt: Regenerate.
20202 * doc/avr-mmcu.texi: Regenerate.
20204 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
20207 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
20209 2013-07-10 Graham Stott <graham.stott@btinternet.com>
20211 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
20212 the cost of MULT when optimizing for size.
20214 2013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20216 * config/cr16/cr16-protos.h: Don't include target.h.
20218 2013-07-09 Joseph Myers <joseph@codesourcery.com>
20220 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
20221 adjust register size for TDmode and TFmode for VSX registers.
20223 2013-07-08 Kai Tietz <ktietz@redhat.com>
20226 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
20227 hook_bool_const_tree_true.
20229 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20231 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
20232 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
20233 * config/s390/s390.md: Define FPR*_REGNUM constants.
20234 Fix FPR2_REGNUM constant (18 -> 17).
20235 ("*trunc<BFP:mode><DFP_ALL:mode>2")
20236 ("*trunc<DFP_ALL:mode><BFP:mode>2")
20237 ("trunc<BFP:mode><DFP_ALL:mode>2")
20238 ("trunc<DFP_ALL:mode><BFP:mode>2")
20239 ("*extend<BFP:mode><DFP_ALL:mode>2")
20240 ("*extend<DFP_ALL:mode><BFP:mode>2")
20241 ("extend<BFP:mode><DFP_ALL:mode>2")
20242 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
20245 2013-07-08 Graham Stott <graham.stott@btinternet.com>
20247 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
20249 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20251 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
20252 and cfun_fpr_bit_p to cfun_fpr_save_p.
20253 (s390_frame_area, s390_register_info, s390_frame_info)
20254 (s390_emit_prologue, s390_emit_epilogue)
20255 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
20257 * config/s390/s390.h: Define *_REGNUM macros for floating point
20260 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
20262 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
20264 2013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
20266 PR rtl-optimization/57786
20267 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
20268 and break out of the loop when it is set to false.
20270 2013-07-08 Jakub Jelinek <jakub@redhat.com>
20273 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
20274 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
20275 (const_int 63)) 0)).
20276 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
20277 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
20278 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
20280 PR rtl-optimization/57829
20281 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
20282 mask bits outside of mode are just sign-extension from mode to HWI.
20284 2013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
20286 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
20287 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
20288 adjust_address instead of change_address to keep info about alignment.
20289 (emit_strmov): Remove.
20290 (emit_memmov): New function.
20291 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
20292 (expand_movmem_epilogue): Likewise and return updated rtx for
20294 (expand_constant_movmem_prologue): Likewise and return updated rtx for
20295 destination and source.
20296 (decide_alignment): Refactor, handle vector_loop.
20297 (ix86_expand_movmem): Likewise.
20298 (ix86_expand_setmem): Likewise.
20299 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
20301 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
20303 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
20304 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
20306 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
20308 * config/i386/sse.md (sse_movlhps): Change alternative 3
20309 of operand 2 to "m".
20311 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
20314 * config/i386/sse.md (iptr): New mode attribute.
20315 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
20316 (<sse>_vm<plusminus_insn><mode>3): Ditto.
20317 (<sse>_vmmul<mode>3): Ditto.
20318 (<sse>_vmdiv<mode>3): Ditto.
20319 (sse_vmrcpv4sf2): Ditto.
20320 (<sse>_vmsqrt<mode>2): Ditto.
20321 (sse_vmrsqrtv4sf2): Ditto.
20322 (<sse>_vm<code><mode>3): Ditto.
20323 (avx_vmcmp<mode>3): Ditto.
20324 (<sse>_vmmaskcmp<mode>3): Ditto.
20325 (<sse>_comi): Ditto.
20326 (<sse>_ucomi): Ditto.
20327 (*xop_vmfrcz_<mode>): Ditto.
20328 (*fmai_fmadd_<mode>): Ditto.
20329 (*fmai_fmsub_<mode>): Ditto.
20330 (*fmai_fnmadd_<mode>): Ditto.
20331 (*fmai_fnmsub_<mode>): Ditto.
20332 (*fma4i_vmfmadd_<mode>): Ditto.
20333 (*fma4i_vmfmsub_<mode>): Ditto.
20334 (*fma4i_vmfnmadd_<mode>): Ditto.
20335 (*fma4i_vmfnmsub_<mode>): Ditto.
20336 (*xop_vmfrcz_<mode>): Ditto.
20337 (sse_cvtps2pi): Ditto.
20338 (sse_cvttps2pi): Ditto.
20339 (sse_cvtss2si): Ditto.
20340 (sse_cvtss2si_2): Ditto.
20341 (sse_cvtss2siq_2): Ditto.
20342 (sse_cvttss2si): Ditto.
20343 (sse_cvttss2siq): Ditto.
20344 (sse_cvtsd2si): Ditto.
20345 (sse_cvtsd2si_2): Ditto.
20346 (sse_cvtsd2siq_2): Ditto.
20347 (sse_cvttsd2si): Ditto.
20348 (sse_cvttsd2siq): Ditto.
20349 (sse_cvtsd2ss): Ditto.
20350 (sse_cvtss2sd): Ditto.
20351 (avx2_pbroadcast<mode>): Ditto.
20352 (avx2_pbroadcast<mode>_1): Ditto.
20353 (*avx_vperm_broadcast_v4sf): Ditto.
20355 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
20356 (sse_movlhps): Ditto.
20357 (sse_storehps): Ditto.
20358 (sse_loadhps): Ditto.
20359 (sse_storelps): Ditto.
20360 (sse_loadlps): Ditto.
20361 (*vec_concatv4sf): Ditto.
20362 (*vec_interleave_highv2df): Ditto.
20363 (*vec_interleave_lowv2df): Ditto.
20364 (*vec_extractv2df_1_sse): Ditto.
20365 (*vec_extractv2df_0_sse): Ditto.
20366 (sse2_storelpd): Ditto.
20367 (sse2_loadlpd): Ditto.
20368 (sse2_movsd): Ditto.
20369 (*vec_concatv4si): Ditto.
20370 (vec_concatv2di): Ditto.
20372 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
20373 for Intel asm dialect.
20374 (mmx_punpcklwd): Ditto.
20375 (mmx_punpckldq): Ditto.
20377 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
20378 for intel assembler dialect.
20380 2013-07-06 Jakub Jelinek <jakub@redhat.com>
20383 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
20384 for BUILT_IN_C{LZ,LRSB}*.
20385 * tree.h (CASE_INT_FN): Add FN##IMAX case.
20386 * tree-vrp.c (extract_range_basic): Handle
20387 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
20388 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
20389 fall thru to code calling set_value*.
20390 * builtins.c (expand_builtin): Remove *IMAX cases.
20391 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
20392 if width is bigger than 2*HWI.
20394 2013-07-05 Vladimir Makarov <vmakarov@redhat.com>
20396 PR rtl-optimization/55342
20397 * lra-int.h (lra_subreg_reload_pseudos): New.
20398 * lra.c: Add undoing optional reloads to the block diagram.
20399 (lra_subreg_reload_pseudos): New.
20400 (lra_optional_reload_pseudos): Change comments.
20401 (lra): Init and clear lra_subreg_reload_pseudos. Clear
20402 lra_optional_reload_pseudos after undo transformations.
20403 * lra-assigns.c (pseudo_prefix_title): New.
20404 (lra_setup_reg_renumber): Use it.
20405 (spill_for): Ditto. Check subreg reload pseudos too.
20406 (assign_by_spills): Consider subreg reload pseudos too.
20407 * lra-constraints.c (simplify_operand_subreg): Use
20408 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
20409 (curr_insn_transform): Recognize and do optional reloads.
20410 (undo_optional_reloads): New.
20411 (lra_undo_inheritance): Call undo_optional_reloads.
20413 2013-07-05 Thomas Quinot <quinot@adacore.com>
20415 * tree-complex.c (expand_complex_operations_1): Fix typo.
20417 2013-07-04 Tejas Belagod <tejas.belagod@arm.com>
20419 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
20420 (tune_params): New member 'const vec_costs'.
20421 * config/aarch64/aarch64.c (generic_vector_cost): New.
20422 (generic_tunings): New member 'generic_vector_cost'.
20423 (aarch64_builtin_vectorization_cost): New.
20424 (aarch64_add_stmt_cost): New.
20425 (TARGET_VECTORIZE_ADD_STMT_COST): New.
20426 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
20428 2013-07-03 Jakub Jelinek <jakub@redhat.com>
20431 * config/i386/predicates.md (vsib_address_operand): Disallow
20432 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
20434 2013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
20436 PR middle-end/55030
20437 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
20438 expand_builtin_setjmp_receiver.
20439 (expand_label): Adjust, call expand_builtin_setjmp_receiver
20440 with NULL for the label parameter.
20441 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
20442 the frame-pointer. Adjust comments.
20443 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
20444 only if LABEL is non-NULL.
20446 2013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
20448 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
20449 (ARM_ABI_AAPCS64): Ditto.
20451 (ARM_DEFAULT_ABI): Ditto.
20453 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
20455 * config/aarch64/aarch64-builtins.c
20456 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
20457 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
20459 * config/aarch64/aarch64-simd.md
20460 (aarch64_ld1<VALL:mode>): New.
20461 (aarch64_st1<VALL:mode>): Likewise.
20462 * config/aarch64/arm_neon.h
20463 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
20465 2013-07-02 Sriraman Tallam <tmsriram@google.com>
20467 * config/i386/i386.c (gate_insert_vzeroupper): Check if
20469 (ix86_option_override_internal):Turn on all -mavx target flags by
20470 default as they are dependent on AVX anyway.
20472 2013-07-02 Cary Coutant <ccoutant@google.com>
20474 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
20475 deterministic hash.
20476 (loc_checksum_ordered): Likewise.
20477 (hash_loc_operands): Remove inline keyword.
20479 2013-07-02 Jakub Jelinek <jakub@redhat.com>
20481 PR tree-optimization/57741
20482 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
20483 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
20484 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
20485 Allow REAL_CST step_exprs if flag_associative_math.
20486 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
20488 2013-07-02 Ian Bolton <ian.bolton@arm.com>
20490 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
20492 2013-07-02 Ian Bolton <ian.bolton@arm.com>
20494 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
20496 2013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20498 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
20500 (iorsi3_insn): Likewise.
20501 (arm_xorsi3): Likewise.
20503 2013-07-01 Sofiane Naci <sofiane.naci@arm.com>
20505 * arm.md (attribute "wtype"): Delete. Move attribute values from here
20507 (attribute "type"): ... here, and prefix with "wmmx_".
20508 (attribute "core_cycles"): Update for attribute changes.
20509 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
20510 (tbcstv4hi): Likewise.
20511 (tbcstv2si): Likewise.
20512 (iwmmxt_iordi3): Likewise.
20513 (iwmmxt_xordi3): Likewise.
20514 (iwmmxt_anddi3): Likewise.
20515 (iwmmxt_nanddi3): Likewise.
20516 (iwmmxt_arm_movdi): Likewise.
20517 (iwmmxt_movsi_insn): Likewise.
20518 (mov<mode>_internal): Likewise.
20519 (and<mode>3_iwmmxt): Likewise.
20520 (ior<mode>3_iwmmxt): Likewise.
20521 (xor<mode>3_iwmmxt): Likewise.
20522 (add<mode>3_iwmmxt): Likewise.
20523 (ssaddv8qi3): Likewise.
20524 (ssaddv4hi3): Likewise.
20525 (ssaddv2si3): Likewise.
20526 (usaddv8qi3): Likewise.
20527 (usaddv4hi3): Likewise.
20528 (usaddv2si3): Likewise.
20529 (sub<mode>3_iwmmxt): Likewise.
20530 (sssubv8qi3): Likewise.
20531 (sssubv4hi3): Likewise.
20532 (sssubv2si3): Likewise.
20533 (ussubv8qi3): Likewise.
20534 (ussubv4hi3): Likewise.
20535 (ussubv2si3): Likewise.
20536 (mulv4hi3_iwmmxt): Likewise.
20537 (smulv4hi3_highpart): Likewise.
20538 (umulv4hi3_highpart): Likewise.
20539 (iwmmxt_wmacs): Likewise.
20540 (iwmmxt_wmacsz): Likewise.
20541 (iwmmxt_wmacu): Likewise.
20542 (iwmmxt_wmacuz): Likewise.
20543 (iwmmxt_clrdi): Likewise.
20544 (iwmmxt_clrv8qi): Likewise.
20545 (iwmmxt_clr4hi): Likewise.
20546 (iwmmxt_clr2si): Likewise.
20547 (iwmmxt_uavgrndv8qi3): Likewise.
20548 (iwmmxt_uavgrndv4hi3): Likewise.
20549 (iwmmxt_uavgv8qi3): Likewise.
20550 (iwmmxt_uavgv4hi3): Likewise.
20551 (iwmmxt_tinsrb): Likewise.
20552 (iwmmxt_tinsrh): Likewise.
20553 (iwmmxt_tinsrw): Likewise.
20554 (iwmmxt_textrmub): Likewise.
20555 (iwmmxt_textrmsb): Likewise.
20556 (iwmmxt_textrmuh): Likewise.
20557 (iwmmxt_textrmsh): Likewise.
20558 (iwmmxt_textrmw): Likewise.
20559 (iwmxxt_wshufh): Likewise.
20560 (eqv8qi3): Likewise.
20561 (eqv4hi3): Likewise.
20562 (eqv2si3): Likewise.
20563 (gtuv8qi3): Likewise.
20564 (gtuv4hi3): Likewise.
20565 (gtuv2si3): Likewise.
20566 (gtv8qi3): Likewise.
20567 (gtv4hi3): Likewise.
20568 (gtv2si3): Likewise.
20569 (smax<mode>3_iwmmxt): Likewise.
20570 (umax<mode>3_iwmmxt): Likewise.
20571 (smin<mode>3_iwmmxt): Likewise.
20572 (umin<mode>3_iwmmxt): Likewise.
20573 (iwmmxt_wpackhss): Likewise.
20574 (iwmmxt_wpackwss): Likewise.
20575 (iwmmxt_wpackdss): Likewise.
20576 (iwmmxt_wpackhus): Likewise.
20577 (iwmmxt_wpackwus): Likewise.
20578 (iwmmxt_wpackdus): Likewise.
20579 (iwmmxt_wunpckihb): Likewise.
20580 (iwmmxt_wunpckihh): Likewise.
20581 (iwmmxt_wunpckihw): Likewise.
20582 (iwmmxt_wunpckilb): Likewise.
20583 (iwmmxt_wunpckilh): Likewise.
20584 (iwmmxt_wunpckilw): Likewise.
20585 (iwmmxt_wunpckehub): Likewise.
20586 (iwmmxt_wunpckehuh): Likewise.
20587 (iwmmxt_wunpckehuw): Likewise.
20588 (iwmmxt_wunpckehsb): Likewise.
20589 (iwmmxt_wunpckehsh): Likewise.
20590 (iwmmxt_wunpckehsw): Likewise.
20591 (iwmmxt_wunpckelub): Likewise.
20592 (iwmmxt_wunpckeluh): Likewise.
20593 (iwmmxt_wunpckeluw): Likewise.
20594 (iwmmxt_wunpckelsb): Likewise.
20595 (iwmmxt_wunpckelsh): Likewise.
20596 (iwmmxt_wunpckelsw): Likewise.
20597 (ror<mode>3): Likewise.
20598 (ashr<mode>3_iwmmxt): Likewise.
20599 (lshr<mode>3_iwmmxt): Likewise.
20600 (ashl<mode>3_iwmmxt): Likewise.
20601 (ror<mode>3_di): Likewise.
20602 (ashr<mode>3_di): Likewise.
20603 (lshr<mode>3_di): Likewise.
20604 (ashl<mode>3_di): Likewise.
20605 (iwmmxt_wmadds): Likewise.
20606 (iwmmxt_wmaddu): Likewise.
20607 (iwmmxt_tmia): Likewise.
20608 (iwmmxt_tmiaph): Likewise.
20609 (iwmmxt_tmiabb): Likewise.
20610 (iwmmxt_tmiatb): Likewise.
20611 (iwmmxt_tmiabt): Likewise.
20612 (iwmmxt_tmiatt): Likewise.
20613 (iwmmxt_tmovmskb): Likewise.
20614 (iwmmxt_tmovmskh): Likewise.
20615 (iwmmxt_tmovmskw): Likewise.
20616 (iwmmxt_waccb): Likewise.
20617 (iwmmxt_wacch): Likewise.
20618 (iwmmxt_waccw): Likewise.
20619 (iwmmxt_waligni): Likewise.
20620 (iwmmxt_walignr): Likewise.
20621 (iwmmxt_walignr0): Likewise.
20622 (iwmmxt_walignr1): Likewise.
20623 (iwmmxt_walignr2): Likewise.
20624 (iwmmxt_walignr3): Likewise.
20625 (iwmmxt_wsadb): Likewise.
20626 (iwmmxt_wsadh): Likewise.
20627 (iwmmxt_wsadbz): Likewise.
20628 (iwmmxt_wsadhz): Likewise.
20629 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
20630 (iwmmxt_wabsdiffb): Likewise.
20631 (iwmmxt_wabsdiffh): Likewise.
20632 (iwmmxt_wabsdiffw): Likewise.
20633 (iwmmxt_waddsubhx): Likewise
20634 (iwmmxt_wsubaddhx): Likewise.
20635 (addc<mode>3): Likewise.
20636 (iwmmxt_avg4): Likewise.
20637 (iwmmxt_avg4r): Likewise.
20638 (iwmmxt_wmaddsx): Likewise.
20639 (iwmmxt_wmaddux): Likewise.
20640 (iwmmxt_wmaddsn): Likewise.
20641 (iwmmxt_wmaddun): Likewise.
20642 (iwmmxt_wmulwsm): Likewise.
20643 (iwmmxt_wmulwum): Likewise.
20644 (iwmmxt_wmulsmr): Likewise.
20645 (iwmmxt_wmulumr): Likewise.
20646 (iwmmxt_wmulwsmr): Likewise.
20647 (iwmmxt_wmulwumr): Likewise.
20648 (iwmmxt_wmulwl): Likewise.
20649 (iwmmxt_wqmulm): Likewise.
20650 (iwmmxt_wqmulwm): Likewise.
20651 (iwmmxt_wqmulmr): Likewise.
20652 (iwmmxt_wqmulwmr): Likewise.
20653 (iwmmxt_waddbhusm): Likewise.
20654 (iwmmxt_waddbhusl): Likewise.
20655 (iwmmxt_wqmiabb): Likewise.
20656 (iwmmxt_wqmiabt): Likewise.
20657 (iwmmxt_wqmiatb): Likewise.
20658 (iwmmxt_wqmiatt): Likewise.
20659 (iwmmxt_wqmiabbn): Likewise.
20660 (iwmmxt_wqmiabtn): Likewise.
20661 (iwmmxt_wqmiatbn): Likewise.
20662 (iwmmxt_wqmiattn): Likewise.
20663 (iwmmxt_wmiabb): Likewise.
20664 (iwmmxt_wmiabt): Likewise.
20665 (iwmmxt_wmiatb): Likewise.
20666 (iwmmxt_wmiatt): Likewise.
20667 (iwmmxt_wmiabbn): Likewise.
20668 (iwmmxt_wmiabtn): Likewise.
20669 (iwmmxt_wmiatbn): Likewise.
20670 (iwmmxt_wmiattn): Likewise.
20671 (iwmmxt_wmiawbb): Likewise.
20672 (iwmmxt_wmiawbt): Likewise.
20673 (iwmmxt_wmiawtb): Likewise.
20674 (iwmmxt_wmiawtt): Likewise.
20675 (iwmmxt_wmiawbbn): Likewise.
20676 (iwmmxt_wmiawbtn): Likewise.
20677 (iwmmxt_wmiawtbn): Likewise.
20678 (iwmmxt_wmiawttn): Likewise.
20679 (iwmmxt_wmerge): Likewise.
20680 (iwmmxt_tandc<mode>3): Likewise.
20681 (iwmmxt_torc<mode>3): Likewise.
20682 (iwmmxt_torvsc<mode>3): Likewise.
20683 (iwmmxt_textrc<mode>3): Likewise.
20684 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
20685 (wmmxt_pack): Likewise.
20686 (wmmxt_mult_c1): Likewise.
20687 (wmmxt_mult_c2): Likewise.
20688 (wmmxt_alu_c1): Likewise.
20689 (wmmxt_alu_c2): Likewise.
20690 (wmmxt_alu_c3): Likewise.
20691 (wmmxt_transfer_c1): Likewise.
20692 (wmmxt_transfer_c2): Likewise.
20693 (wmmxt_transfer_c3): Likewise.
20694 (marvell_f_iwmmxt_wstr): Likewise.
20695 (marvell_f_iwmmxt_wldr): Likewise.
20697 2013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
20699 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
20701 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
20704 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
20705 * lra-constraints.c (need_for_split_p): Check call used hard regs
20706 living through calls.
20708 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
20709 call used regs for call insn.
20711 2013-06-28 Jakub Jelinek <jakub@redhat.com>
20714 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
20715 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
20717 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
20719 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
20721 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
20723 * lra-constraints.c (need_for_split_p): Check call used hard regs
20724 living through calls.
20726 2013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
20729 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
20730 to tie with any other modes. Eliminate Altivec vector mode tests,
20731 since these are a subset of ALTIVEC or VSX vector modes. Simplify
20732 code, to return 0 if testing MODE2 for a condition, if we've
20733 already tested MODE1 for the same condition.
20735 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
20737 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
20740 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
20742 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
20743 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
20745 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
20747 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
20749 (aarch64_symbolic_constant_p): Remove.
20750 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
20751 static. Fix line length and white space.
20752 (aarch64_symbolic_constant_p): Remove.
20753 * config/aarch64/predicates.md (aarch64_valid_symref):
20754 Use aarch64_classify_symbol_expression.
20756 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20758 * config/arm/constraints.md (Ts): New constraint.
20759 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
20761 (compare_scc): Use "Ts" constraint for operand 0.
20762 (ior_scc_scc): Likewise.
20763 (and_scc_scc): Likewise.
20764 (and_scc_scc_nodom): Likewise.
20765 (ior_scc_scc_cmp): Likewise for operand 7.
20766 (and_scc_scc_cmp): Likewise.
20767 * config/arm/thumb2.md (thumb2_movsi_insn):
20768 Add alternatives for 16-bit encodings.
20769 (thumb2_movhi_insn): Likewise.
20770 (thumb2_movsicc_insn): Likewise.
20771 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
20772 (thumb2_negscc): Use "Ts" constraint.
20773 Move mvn instruction outside cond_exec block.
20774 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
20775 for 16-bit encodings.
20777 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20779 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
20781 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
20782 (mulsi3subsi): Likewise.
20783 (mulsidi3adddi): Likewise.
20784 (mulsidi3_v6): Likewise.
20785 (umulsidi3_v6): Likewise.
20786 (umulsidi3adddi_v6): Likewise.
20787 (smulsi3_highpart_v6): Likewise.
20788 (umulsi3_highpart_v6): Likewise.
20789 (mulhisi3tb): Likewise.
20790 (mulhisi3bt): Likewise.
20791 (mulhisi3tt): Likewise.
20792 (maddhisi4): Likewise.
20793 (maddhisi4tb): Likewise.
20794 (maddhisi4tt): Likewise.
20795 (maddhidi4): Likewise.
20796 (maddhidi4tb): Likewise.
20797 (maddhidi4tt): Likewise.
20798 (zeroextractsi_compare0_scratch): Likewise.
20799 (insv_zero): Likewise.
20800 (insv_t2): Likewise.
20801 (anddi_notzesidi_di): Likewise.
20802 (anddi_notsesidi_di): Likewise.
20803 (andsi_notsi_si): Likewise.
20804 (iordi_zesidi_di): Likewise.
20805 (xordi_zesidi_di): Likewise.
20806 (andsi_iorsi3_notsi): Likewise.
20807 (smax_0): Likewise.
20808 (smax_m1): Likewise.
20809 (smin_0): Likewise.
20810 (not_shiftsi): Likewise.
20811 (unaligned_loadsi): Likewise.
20812 (unaligned_loadhis): Likewise.
20813 (unaligned_loadhiu): Likewise.
20814 (unaligned_storesi): Likewise.
20815 (unaligned_storehi): Likewise.
20816 (extv_reg): Likewise.
20817 (extzv_t2): Likewise.
20818 (divsi3): Likewise.
20819 (udivsi3): Likewise.
20820 (arm_zero_extendhisi2addsi): Likewise.
20821 (arm_zero_extendqisi2addsi): Likewise.
20822 (compareqi_eq0): Likewise.
20823 (arm_extendhisi2_v6): Likewise.
20824 (arm_extendqisi2addsi): Likewise.
20825 (arm_movt): Likewise.
20826 (thumb2_ldrd): Likewise.
20827 (thumb2_ldrd_base): Likewise.
20828 (thumb2_ldrd_base_neg): Likewise.
20829 (thumb2_strd): Likewise.
20830 (thumb2_strd_base): Likewise.
20831 (thumb2_strd_base_neg): Likewise.
20832 (arm_negsi2): Add alternative for 16-bit encoding.
20833 (arm_one_cmplsi2): Likewise.
20835 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20837 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
20838 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
20839 (movdfcc): Likewise.
20840 * config/arm/vfp.md (*thumb2_movsf_vfp):
20841 Disable predication for arm_restrict_it.
20842 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
20843 (*thumb2_movdfcc_vfp): Likewise.
20844 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
20845 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
20846 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
20847 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
20848 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
20849 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
20850 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
20851 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
20852 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
20853 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
20854 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
20855 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
20856 Disable predication for arm_restrict_it.
20858 2013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
20860 * config/i386/bmiintrin.h (_bextr_u32): New.
20861 (_bextr_u64): Ditto.
20863 2013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
20865 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
20866 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
20867 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
20868 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
20869 * config/mips/n32-elf.h: ...this new file.
20871 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
20874 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
20875 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
20877 2013-06-27 Catherine Moore <clm@codesourcery.com>
20879 * config/mips/mips-tables.opt: Regenerate.
20880 * config/mips/mips-cpus.def: Add m14ke and m14kec.
20881 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
20882 * doc/invoke.texi: Add -m14kc.
20884 2013-06-27 Jakub Jelinek <jakub@redhat.com>
20887 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
20888 constraints of operand 1 and 2.
20891 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
20892 to match RTL canonicalization. Swap predicates and
20893 constraints of operand 1 and 2.
20895 2013-06-27 Vladimir Makarov <vmakarov@redhat.com>
20897 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
20898 Process OP_INOUT regs for splitting too.
20900 2013-06-27 Jakub Jelinek <jakub@redhat.com>
20902 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
20903 decl before the loop, initialize to NULL.
20904 (vectorizable_load): Initialize ptr_incr to NULL.
20906 2013-06-27 Martin Jambor <mjambor@suse.cz>
20909 * ipa-ref.h (ipa_maybe_record_reference): Declare.
20910 * ipa-ref.c (ipa_maybe_record_reference): New function.
20911 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
20912 * ipa-cp.c (create_specialized_node): Record potential references from
20914 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
20916 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
20918 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
20919 parameter 'mode' of type 'enum machine_mode mode'; change to pass
20920 'mode' to force_reg.
20921 (aarch64_add_offset): Update calls to aarch64_force_temporary.
20922 (aarch64_expand_mov_immediate): Likewise.
20924 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
20926 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
20927 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
20929 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20931 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
20932 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
20933 (struct machine_function): Add tbegin_p.
20934 (s390_canonicalize_comparison): Fold CC mode compares to
20935 conditional jump if possible.
20936 (s390_emit_jump): Return the emitted jump.
20937 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
20938 Handle CCRAWmode compares.
20939 (s390_option_override): Default to -mhtm if available.
20940 (s390_reg_clobbered_rtx): Handle floating point regs as well.
20941 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
20942 FPRs instead of df_regs_ever_live_p.
20943 (s390_optimize_nonescaping_tx): New function.
20944 (s390_init_frame_layout): Extend clobbered_regs array to cover
20946 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
20947 (s390_expand_tbegin): New function.
20948 (enum s390_builtin): New enum definition.
20949 (code_for_builtin): New array definition.
20950 (s390_init_builtins): New function.
20951 (s390_expand_builtin): New function.
20952 (TARGET_INIT_BUILTINS): Define.
20953 (TARGET_EXPAND_BUILTIN): Define.
20954 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
20955 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
20956 (s390_alc_comparison): Likewise.
20957 * config/s390/s390-modes.def: Add CCRAWmode.
20958 * config/s390/s390.h (processor_flags): Add PF_TX.
20959 (TARGET_CPU_HTM): Define macro.
20960 (TARGET_HTM): Define macro.
20961 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
20962 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
20963 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
20964 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
20965 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
20966 (TBEGIN_MASK, TBEGINC_MASK): New constants.
20967 ("*cc_to_int"): Move up.
20968 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
20969 constants other than 0.
20970 ("*ccraw_to_int"): New insn and splitter definition.
20971 ("tbegin", "tbegin_nofloat", "tbegin_retry")
20972 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
20973 ("tx_assist"): New expander.
20974 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
20975 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
20976 * config/s390/s390.opt: Add -mhtm option.
20977 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
20978 * config/s390/htmxlintrin.h: New file.
20979 * config/s390/htmintrin.h: New file.
20980 * config/s390/s390intrin.h: New file.
20981 * doc/extend.texi: Document htm builtins.
20982 * config.gcc: Add the new header files to extra_headers.
20984 2013-06-26 Thomas Schwinge <thomas@codesourcery.com>
20986 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
20987 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
20989 2013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
20990 Pat Haugen <pthaugen@us.ibm.com>
20991 Peter Bergner <bergner@vnet.ibm.com>
20993 * config/rs6000/power8.md: New.
20994 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
20995 setting for power8 entry.
20996 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
20997 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
20998 test for Power4/Power5 only.
20999 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
21001 (force_new_group): Adjust comment.
21002 * config/rs6000/rs6000.md: Include power8.md.
21004 2013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
21006 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
21007 * config/arm/arm-protos.h (arm_max_conditional_execute): New
21009 (tune_params): Update comment.
21010 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
21011 (arm_max_conditional_execute): New function.
21012 (thumb2_final_prescan_insn): Use max_insn_skipped and
21013 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
21015 2013-06-25 Jakub Jelinek <jakub@redhat.com>
21017 PR tree-optimization/57705
21018 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
21019 SSA_NAME step, provided that it is not defined inside the loop.
21020 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
21021 (get_initial_def_for_induction): Handle SSA_NAME IV step.
21023 2013-06-25 Martin Jambor <mjambor@suse.cz>
21025 PR middle-end/57670
21026 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
21027 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
21029 (ipa_note_param_call): Initialize member_ptr flag.
21030 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
21031 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
21032 (ipa_write_indirect_edge_info): Stream member_ptr flag.
21033 (ipa_read_indirect_edge_info): Likewise.
21035 2013-06-25 Richard Biener <rguenther@suse.de>
21037 PR middle-end/56977
21038 * passes.c (init_optimization_passes): Move pass_fold_builtins
21039 and pass_dce earlier with -Og.
21041 2013-06-25 Eric Botcazou <ebotcazou@adacore.com>
21043 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
21044 <BIT_FIELD_REF>: Remove trailing TAB.
21045 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
21048 2013-06-24 Martin Jambor <mjambor@suse.cz>
21050 PR tree-optimization/57358
21051 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
21052 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
21053 (ipa_analyze_params_uses): Generate pessimistic info when true.
21055 2013-06-24 Martin Jambor <mjambor@suse.cz>
21057 PR tree-optimization/57539
21058 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
21059 global.inlined_to of the new node to it. All callers changed.
21060 * ipa-inline-transform.c (clone_inlined_nodes): New variable
21061 inlining_into, pass it to cgraph_clone_node.
21062 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
21063 ipa_free_edge_args_substructures.
21064 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
21065 rdesc linked list. Do not assert rdesc edges have inlined caller.
21066 Assert we have found an rdesc in the rdesc list.
21068 2013-06-24 Richard Biener <rguenther@suse.de>
21070 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
21071 (pointer_set_lookup): Declare.
21072 (class pointer_map): New template class implementing a
21073 generic pointer to T map.
21074 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
21075 pointer_map<T>::contains, pointer_map<T>::insert,
21076 pointer_map<T>::traverse): New functions.
21077 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
21078 (pointer_set_lookup): New function.
21079 (pointer_set_contains): Use pointer_set_lookup.
21080 (pointer_set_insert): Likewise.
21081 (insert_aux): Remove.
21082 (struct pointer_map_t): Embed a pointer_set_t.
21083 (pointer_map_create): Adjust.
21084 (pointer_map_destroy): Likewise.
21085 (pointer_map_contains): Likewise.
21086 (pointer_map_insert): Likewise.
21087 (pointer_map_traverse): Likewise.
21088 * tree-streamer.h (struct streamer_tree_cache_d): Use a
21089 pointer_map<unsigned> instead of a pointer_map_t.
21090 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
21091 (streamer_tree_cache_lookup): Likewise.
21092 (streamer_tree_cache_create): Likewise.
21093 (streamer_tree_cache_delete): Likewise.
21094 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
21095 pointer_map<unsigned> instead of a pointer_map_t.
21096 (lto_init_tree_ref_encoder): Adjust.
21097 (lto_destroy_tree_ref_encoder): Likewise.
21098 * lto-section-out.c (lto_output_decl_index): Likewise.
21099 (lto_record_function_out_decl_state): Likewise.
21100 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
21102 2013-06-24 Richard Biener <rguenther@suse.de>
21104 PR tree-optimization/57488
21105 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
21107 2013-06-24 Alan Modra <amodra@gmail.com>
21109 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
21110 (gen_easy_altivec_constant): Likewise.
21111 * config/rs6000/predicates.md (easy_vector_constant_add_self,
21112 easy_vector_constant_msb): Likewise.
21114 2013-06-23 Jakub Jelinek <jakub@redhat.com>
21117 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
21118 add missing return true.
21120 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
21123 * config/sh/predicates.md (general_extend_operand): Invoke
21124 general_movsrc_operand for memory operands.
21125 (general_movsrc_operand): Allow reg+reg addressing, do not use
21126 general_operand for memory operands.
21128 2013-06-23 Sriraman Tallam <tmsriram@google.com>
21130 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
21131 when current target options does not apply.
21132 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
21133 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
21134 * config/i386/bmiintrin.h: Pass appropriate target
21135 attributes to header.
21136 * config/i386/mmintrin.h: Ditto.
21137 * config/i386/nmmintrin.h: Ditto.
21138 * config/i386/avx2intrin.h: Ditto.
21139 * config/i386/fxsrintrin.h: Ditto.
21140 * config/i386/tbmintrin.h: Ditto.
21141 * config/i386/xsaveintrin.h: Ditto.
21142 * config/i386/f16cintrin.h: Ditto.
21143 * config/i386/xtestintrin.h: Ditto.
21144 * config/i386/xsaveoptintrin.h: Ditto.
21145 * config/i386/bmi2intrin.h: Ditto.
21146 * config/i386/lzcntintrin.h: Ditto.
21147 * config/i386/smmintrin.h: Ditto.
21148 * config/i386/wmmintrin.h: Ditto.
21149 * config/i386/x86intrin.h: Remove all header include guards.
21150 * config/i386/prfchwintrin.h: Ditto.
21151 * config/i386/pmmintrin.h: Ditto.
21152 * config/i386/tmmintrin.h: Ditto.
21153 * config/i386/xmmintrin.h: Ditto.
21154 * config/i386/popcntintrin.h: Ditto.
21155 * config/i386/rdseedintrin.h: Ditto.
21156 * config/i386/ammintrin.h: Ditto.
21157 * config/i386/emmintrin.h: Ditto.
21158 * config/i386/immintrin.h: Remove all header include guards.
21159 * config/i386/fma4intrin.h: Ditto.
21160 * config/i386/lwpintrin.h: Ditto.
21161 * config/i386/xopintrin.h: Ditto.
21162 * config/i386/ia32intrin.h: Ditto.
21163 * config/i386/avxintrin.h: Ditto.
21164 * config/i386/rtmintrin.h: Ditto.
21165 * config/i386/fmaintrin.h: Ditto.
21166 * config/i386/mm3dnow.h: Ditto.
21168 2013-06-22 Sriraman Tallam <tmsriram@google.com>
21170 * common/config/i386/i386-common.c: Handle LZCNT.
21172 2013-06-22 Andi Kleen <ak@linux.intel.com>
21174 * doc/extend.texi: Use __atomic_store_n instead of
21175 __atomic_store in HLE example.
21177 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
21179 * config/sh/sh.c: Remove <cstdlib> workaround.
21181 2013-06-21 Andi Kleen <ak@linux.intel.com>
21183 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
21185 2013-06-21 Andi Kleen <ak@linux.intel.com>
21187 * doc/extend.texi: Document that __atomic_clear and
21188 __atomic_test_and_set should only be used with bool.
21190 2013-06-20 Jan Hubicka <jh@suse.cz>
21192 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
21193 types_same_for_odr.
21194 * tree.c (decls_same_for_odr): New function.
21195 (same_for_edr): New function.
21196 (types_same_for_odr): New function.
21197 (get_binfo_at_offset): Use it.
21198 * tree.h (types_same_for_odr): Declare.
21200 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
21201 Jason Merrill <jason@redhat.com>
21203 * system.h: Include <cstdlib> as well as <stdlib.h>.
21205 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
21208 * config/i386/i386.c (construct_container): Report error if
21209 long double is used with disabled x87 float returns.
21211 2013-06-20 Jan Hubicka <jh@suse.cz>
21213 * lto-cgraph.c (input_symtab): Do not set cgraph state.
21215 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
21217 PR rtl-optimization/57425
21218 PR rtl-optimization/57569
21219 * alias.c (write_dependence_p): Remove parameters mem_mode and
21220 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
21221 Changed all callers.
21222 (canon_anti_dependence): Get comments and semantics in sync.
21223 Add parameter mem_canonicalized. Changed all callers.
21224 * rtl.h (canon_anti_dependence): Update prototype.
21226 2013-06-20 Richard Biener <rguenther@suse.de>
21228 * data-streamer-in.c (streamer_read_uhwi): Optimize single
21229 byte case, inline streamer_read_uchar and defer section
21232 2013-06-20 Richard Biener <rguenther@suse.de>
21234 PR tree-optimization/57584
21235 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
21236 SSA names into the expanded expression that take part in
21237 abnormal coalescing.
21239 2013-06-19 Sharad Singhai <singhai@google.com>
21241 * gcov.c (print_usage): Handle new option.
21242 (process_args): Ditto.
21243 (get_gcov_intermediate_filename): New function.
21244 (output_intermediate_file): New function.
21245 (output_gcov_file): New function
21246 (generate_results): Handle new option.
21247 (release_function): Relase demangled name.
21248 (read_graph_file): Handle demangled name.
21249 (output_lines): Ditto.
21250 * doc/gcov.texi: Document gcov intermediate format.
21252 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
21255 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
21256 (lra_emit_add): Use the functions. Add comment about Y as an
21259 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
21262 * collect2.c (collect_atexit): New.
21263 (collect_exit): Delete.
21264 (main): Register collect_atexit with atexit.
21265 (collect_wait): Change collect_exit to exit.
21267 * collect2.h (collect_exit): Delete.
21268 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
21270 2013-06-19 Wei Mi <wmi@google.com>
21272 PR rtl-optimization/57518
21273 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
21274 if regno is used in paradoxical subreg.
21275 (update_equiv_regs): Check pdx_subregs[regno] before
21276 set a reg to be equivalent with a mem.
21278 2013-06-19 Matthias Klose <doko@ubuntu.com>
21281 * file-find.h (find_a_file): Add a mode parameter.
21282 * file-find.c (find_a_file): Likewise.
21283 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
21284 with X_OK for the executables.
21285 * collect2.c (main): Call find_a_file with X_OK.
21287 2013-06-19 Steve Ellcey <sellcey@mips.com>
21290 * config/mips/mips.md (casesi_internal_mips16_<mode>):
21291 Use NEXT_INSN instead of next_real_insn.
21293 2013-06-19 Jan Hubicka <jh@suse.cz>
21295 * cgraph.h (const_value_known_p): Replace by ...
21296 (ctor_for_folding): .. this one.
21297 * cgraphunit.c (process_function_and_variable_attributes): Use it.
21298 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
21299 * expr.c (expand_expr_real_1): Likewise.
21300 (string_constant): Likewise.
21301 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
21302 * ipa.c (process_references): Likewise.
21303 (symtab_remove_unreachable_nodes): Likewise.
21304 * ipa-inline-analysis.c (param_change_prob): Likewise.
21305 * gimple-fold.c (canonicalize_constructor_val): Likewise.
21306 (get_base_constructor): Likwise.
21307 * varpool.c (varpool_remove_node): Likewise.
21308 (varpool_remove_initializer): LIkewise.
21309 (dump_varpool_node): LIkwise.
21310 (const_value_known_p): Rewrite to ...
21311 (ctor_for_folding): ... this one.
21313 2013-06-19 Jakub Jelinek <jakub@redhat.com>
21316 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
21317 PERSONALITY in $PATH derived prefixes.
21319 2013-06-19 Jeff Law <law@redhat.com>
21321 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
21324 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
21325 (simplify_bitwise_binary): Use it to simpify certain binary ops on
21328 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
21330 * config/arm/vfp.md: Move VFP instruction classification documentation
21332 * config/arm/arm.md: ... here. Update instruction classification
21335 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
21337 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
21338 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
21339 pattern. Use more efficient sequences on ARMv5 and Thumb2.
21341 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
21344 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
21345 with NEXT_INSN. Use tablejump_p to check for jump table data
21348 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
21351 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
21352 that now in C++ the value is correct per the C++ standards.
21354 2013-06-19 Richard Biener <rguenther@suse.de>
21356 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
21357 for global context.
21359 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21362 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21365 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
21366 with next_active_insn.
21368 2013-06-18 Sriraman Tallam <tmsriram@google.com>
21370 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
21371 functions are inlined during failures to flag an error.
21372 * tree-inline.c (expand_call_inline): Allow the error to be flagged
21373 in early inline pass.
21375 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
21377 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
21380 2013-06-18 Julian Brown <julian@codesourcery.com>
21382 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
21383 Permit virtual register pre-reload if !strict.
21384 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
21386 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
21388 * config/arm/neon.md (movmisalign<mode>): Use
21389 neon_perm_struct_or_reg_operand instead of
21390 neon_struct_or_register_operand.
21391 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
21392 neon_permissive_struct_operand instead of neon_struct_operand.
21393 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
21394 neon_vector_mem_operand.
21395 * config/arm/predicates.md (neon_struct_operand): Adjust call to
21396 neon_vector_mem_operand.
21397 (neon_permissive_struct_operand): New.
21398 (neon_struct_or_register_operand): Rename to...
21399 (neon_perm_struct_or_reg_operand): This. Adjust call to
21400 neon_vector_mem_operand.
21402 2013-06-18 Richard Biener <rguenther@suse.de>
21404 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
21405 * lto-streamer.h: Include pointer-set.h.
21406 (struct lto_decl_slot): Remove.
21407 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
21408 Remove next_index entry.
21409 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
21410 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
21411 (lto_init_tree_ref_encoder): Adjust.
21412 (lto_destroy_tree_ref_encoder): Likewise.
21413 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
21414 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
21415 (lto_output_decl_index): Adjust.
21416 (lto_new_out_decl_state): Likewise.
21417 (lto_record_function_out_decl_state): Likewise.
21418 * lto-streamer-out.c (copy_function): Likewise.
21420 2013-06-18 Richard Biener <rguenther@suse.de>
21422 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
21423 * cgraphunit.c: Include cfgloop.h.
21424 (init_lowered_empty_function): Initialize the loop tree.
21425 (assemble_thunk): Insert new BBs into loops.
21427 2013-06-18 Richard Biener <rguenther@suse.de>
21429 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
21430 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
21431 the map from cache entry to cache index optional.
21432 (streamer_tree_cache_replace_tree): Adjust accordingly.
21433 (streamer_tree_cache_append): Likewise.
21434 (streamer_tree_cache_delete): Likewise.
21435 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
21436 streamer cache map from cache entry to cache index.
21437 * lto-streamer-out.c (create_output_block): Adjust.
21439 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
21441 * config/arm/arm.md (attribute "insn"): Move multiplication and
21442 division attributes to...
21443 (attribute "type"): ... here. Remove mult.
21444 (attribute "mul32"): New attribute.
21445 (attribute "mul64"): Add umaal.
21446 (*arm_mulsi3): Update attributes.
21447 (*arm_mulsi3_v6): Likewise.
21448 (*thumb_mulsi3): Likewise.
21449 (*thumb_mulsi3_v6): Likewise.
21450 (*mulsi3_compare0): Likewise.
21451 (*mulsi3_compare0_v6): Likewise.
21452 (*mulsi_compare0_scratch): Likewise.
21453 (*mulsi_compare0_scratch_v6): Likewise.
21454 (*mulsi3addsi): Likewise.
21455 (*mulsi3addsi_v6): Likewise.
21456 (*mulsi3addsi_compare0): Likewise.
21457 (*mulsi3addsi_compare0_v6): Likewise.
21458 (*mulsi3addsi_compare0_scratch): Likewise.
21459 (*mulsi3addsi_compare0_scratch_v6): Likewise.
21460 (*mulsi3subsi): Likewise.
21461 (*mulsidi3adddi): Likewise.
21462 (*mulsi3addsi_v6): Likewise.
21463 (*mulsidi3adddi_v6): Likewise.
21464 (*mulsidi3_nov6): Likewise.
21465 (*mulsidi3_v6): Likewise.
21466 (*umulsidi3_nov6): Likewise.
21467 (*umulsidi3_v6): Likewise.
21468 (*umulsidi3adddi): Likewise.
21469 (*umulsidi3adddi_v6): Likewise.
21470 (*smulsi3_highpart_nov6): Likewise.
21471 (*smulsi3_highpart_v6): Likewise.
21472 (*umulsi3_highpart_nov6): Likewise.
21473 (*umulsi3_highpart_v6): Likewise.
21474 (mulhisi3): Likewise.
21475 (*mulhisi3tb): Likewise.
21476 (*mulhisi3bt): Likewise.
21477 (*mulhisi3tt): Likewise.
21478 (maddhisi4): Likewise.
21479 (*maddhisi4tb): Likewise.
21480 (*maddhisi4tt): Likewise.
21481 (maddhidi4): Likewise.
21482 (*maddhidi4tb): Likewise.
21483 (*maddhidi4tt): Likewise.
21484 (divsi3): Likewise.
21485 (udivsi3): Likewise.
21486 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
21487 (thumb2_mulsi_short_compare0): Likewise.
21488 (thumb2_mulsi_short_compare0_scratch): Likewise.
21489 * config/arm/arm1020e.md (1020mult1): Update attribute change.
21490 (1020mult2): Likewise.
21491 (1020mult3): Likewise.
21492 (1020mult4): Likewise.
21493 (1020mult5): Likewise.
21494 (1020mult6): Likewise.
21495 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
21497 (cortex_a15_mult64): Likewise.
21498 (cortex_a15_sdiv): Likewise.
21499 (cortex_a15_udiv): Likewise.
21500 * config/arm/arm1026ejs.md (mult1): Update attribute change.
21506 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
21507 (pj4_ir_div): Likewise.
21508 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
21509 (11_mult2): Likewise.
21510 (11_mult3): Likewise.
21511 (11_mult4): Likewise.
21512 (11_mult5): Likewise.
21513 (11_mult6): Likewise.
21514 (11_mult7): Likewise.
21515 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
21516 (cortex_a8_mla): Likewise.
21517 (cortex_a8_mull): Likewise.
21518 (cortex_a8_smulwy): Likewise.
21519 (cortex_a8_smlald): Likewise.
21520 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
21521 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
21522 (cortex_r4_mul_3): Likewise.
21523 (cortex_r4_mla_4): Likewise.
21524 (cortex_r4_mla_3): Likewise.
21525 (cortex_r4_smlald): Likewise.
21526 (cortex_r4_mull): Likewise.
21527 (cortex_r4_sdiv): Likewise.
21528 (cortex_r4_udiv): Likewise.
21529 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
21530 (cortex_a7_idiv): Likewise.
21531 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
21532 (9_mult2): Likewise.
21533 (9_mult3): Likewise.
21534 (9_mult4): Likewise.
21535 (9_mult5): Likewise.
21536 (9_mult6): Likewise.
21537 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
21538 (cortex_a53_sdiv): Likewise.
21539 (cortex_a53_udiv): Likewise.
21540 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
21541 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
21542 (mp626_mult2): Likewise.
21543 (mp626_mult3): Likewise.
21544 (mp626_mult4): Likewise.
21545 * config/arm/fa526.md (526_mult1): Update attribute change.
21546 (526_mult2): Likewise.
21547 * config/arm/arm-generic.md (mult): Update attribute change.
21548 (mult_ldsched_strongarm): Likewise.
21549 (mult_ldsched): Likewise.
21550 (multi_cycle): Likewise.
21551 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
21552 * config/arm/fa606te.md (606te_mult1): Update attribute change.
21553 (606te_mult2): Likewise.
21554 (606te_mult3): Likewise.
21555 (606te_mult4): Likewise.
21556 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
21557 (cortex_a9_mac16): Likewise.
21558 (cortex_a9_multiply): Likewise.
21559 (cortex_a9_mac): Likewise.
21560 (cortex_a9_multiply_long): Likewise.
21561 * config/arm/fa626te.md (626te_mult1): Update attribute change.
21562 (626te_mult2): Likewise.
21563 (626te_mult3): Likewise.
21564 (626te_mult4): Likewise.
21566 2013-06-18 Richard Biener <rguenther@suse.de>
21569 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
21571 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21574 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
21575 with next_active_insn.
21577 2013-06-18 Alan Modra <amodra@gmail.com>
21579 * config/rs6000/rs6000.h (enum data_align): New.
21580 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
21581 (DATA_ABI_ALIGNMENT): Define.
21582 (CONSTANT_ALIGNMENT): Correct comment.
21583 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
21584 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
21586 2013-06-17 David Malcolm <dmalcolm@redhat.com>
21588 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
21589 ATTRIBUTE_UNUSED marking.
21591 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
21593 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
21594 alternative and update.
21595 (aarch64_dup_lanedi): Delete.
21596 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
21597 * config/aarch64/aarch64-simd-builtins.def: Update.
21599 2013-06-17 Richard Biener <rguenther@suse.de>
21601 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
21602 (lto_input_scc): Declare.
21603 (lto_input_tree_1): Likewise.
21604 (struct lto_stats_d): Add num_tree_bodies_output and
21605 num_pickle_refs_output.
21606 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
21607 (lto_read_tree_1): Split out from ...
21608 (lto_read_tree): ... this.
21609 (lto_input_scc): New function.
21610 (lto_input_tree_1): Split out from ...
21611 (lto_input_tree): ... this. Handle LTO_tree_scc.
21612 (lto_data_in_create): Create the streamer cache without hashes.
21613 * lto-streamer-out.c (create_output_block): Create the streamer
21614 cache with hashes when not doing WPA.
21615 (lto_write_tree_1): Split out from ...
21616 (lto_write_tree): ... this.
21617 (get_symbol_initial_value): New function.
21618 (lto_output_tree_1): Split out from ...
21619 (lto_output_tree): ... this. Write trees as series of SCCs
21620 using a DFS walk via DFS_write_tree.
21621 (struct sccs, struct scc_entry): New types.
21622 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
21623 (DFS_write_tree_body): New function.
21624 (DFS_write_tree): Likewise.
21625 (hash_tree): Likewise.
21626 (scc_entry_compare): Likewise.
21627 (hash_scc): Likewise.
21628 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
21629 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
21630 TREE_CHAIN as regular reference.
21631 (streamer_read_integer_cst): Remove.
21632 (streamer_get_pickled_tree): Adjust.
21633 * tree-streamer-out.c (streamer_write_chain): Disable streaming
21634 of DECL_EXTERNALs in BLOCK_VARS for now.
21635 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
21637 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
21638 Add hash value argument and record that if hashes are recorded
21640 (streamer_tree_cache_insert_1): Adjust.
21641 (streamer_tree_cache_insert): Likewise.
21642 (streamer_tree_cache_insert_at): Rename to ...
21643 (streamer_tree_cache_replace_tree): ... this and adjust.
21644 (streamer_tree_cache_append): Adjust.
21645 (record_common_node): Likewise.
21646 (streamer_tree_cache_create): Add argument whether to
21647 record hash values together with trees.
21648 (streamer_tree_cache_delete): Adjust.
21649 * tree-streamer.h (struct streamer_tree_cache_d): Add
21651 (streamer_read_integer_cst): Remove.
21652 (streamer_tree_cache_insert): Adjust.
21653 (streamer_tree_cache_append): Likewise.
21654 (streamer_tree_cache_insert_at): Rename to ...
21655 (streamer_tree_cache_replace_tree): ... this and adjust.
21656 (streamer_tree_cache_create): Add argument whether to record hashes.
21657 (streamer_tree_cache_get): Rename to ...
21658 (streamer_tree_cache_get_tree): ... this.
21659 (streamer_tree_cache_get_hash): New function.
21660 * tree.c (cache_integer_cst): New function.
21661 * tree.h (cache_integer_cst): Declare.
21662 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
21663 * lto-symtab.c (lto_varpool_replace_node): Only release
21664 DECL_INITIAL of non-prevailing decls.
21665 * varpool.c (varpool_remove_initializer): Do not release
21666 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
21668 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
21670 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
21671 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
21672 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
21673 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
21674 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
21675 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
21676 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
21677 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
21678 instead of TARGET_64BIT.
21679 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
21680 Require ISA_HAS_<D>DIV.
21682 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
21684 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
21685 (mips*-*-linux*): Move default with_llsc setting to where other
21687 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
21689 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
21690 Likewise. Remove default with_tune setting. Move default float
21691 setting to its own block. Handle with_llsc in the same block as above.
21693 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
21695 PR rtl-optimization/57425
21696 PR rtl-optimization/57569
21697 * alias.c (write_dependence_p): Add new parameters mem_mode,
21698 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
21699 Changed all callers.
21700 (canon_anti_dependence): New function.
21701 * cse.c (check_dependence): Use canon_anti_dependence.
21702 * cselib.c (cselib_invalidate_mem): Likewise.
21703 * rtl.h (canon_anti_dependence): Declare.
21705 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
21707 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
21708 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
21709 ".set mips3" for 64-bit targets.
21711 2013-06-15 Dehao Chen <dehao@google.com>
21713 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
21714 * gimple-low.c (gimple_check_call_matching_types): Likewise.
21715 (gimple_check_call_args): Likewise.
21716 * value-prof.c (check_ic_target): Likewise.
21717 * ipa-inline.c (early_inliner): Likewise.
21718 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
21719 * cgraph.c (cgraph_create_edge_1): Likewise.
21720 (cgraph_make_edge_direct): Likewise.
21722 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
21725 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
21726 rs6000_output_move_128bit to handle emitting quad memory
21727 operations. Set attribute length to 8 bytes.
21729 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
21731 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
21733 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
21734 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
21735 (aarch64_<su>mlsl<mode>): Likewise.
21737 2013-06-14 Mike Stump <mikestump@comcast.net>
21739 * Makefile.in (TARGET_H): Add insn-codes.h.
21741 2013-06-14 Alan Modra <amodra@gmail.com>
21743 PR middle-end/57134
21744 PR middle-end/57586
21745 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
21746 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
21747 bitfield expansion when EXPAND_MEMORY.
21748 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
21750 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
21752 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
21753 test for clearing quad memory on 32-bit later.
21755 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
21757 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
21758 (fold_negate_expr): Likewise.
21759 (fold_real_zero_addition_p): Handle vectors.
21760 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
21762 2013-06-14 Alan Modra <amodra@gmail.com>
21764 * varasm.c (force_const_mem): Revert 2013-06-07 change.
21766 2013-06-13 Jan Hubicka <jh@suse.cz>
21768 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
21769 Local comdats are not externally visible.
21770 * symtab.c (dump_symtab_base): Dump externally visible.
21771 (verify_symtab_base): Verify back links in the symtab hash.
21773 2013-06-13 Bin Cheng <bin.cheng@arm.com>
21775 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
21776 CONVERT_EXPR as equal nodes.
21778 2013-06-13 Bin Cheng <bin.cheng@arm.com>
21780 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
21782 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
21784 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
21785 Generalize to complex and vector.
21786 * tree.c (build_all_ones_cst): New function.
21787 * tree.h (build_all_ones_cst): Declare it.
21789 2013-06-13 Alan Modra <amodra@gmail.com>
21791 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
21792 * config/rs6000/rs6000.md (signbittf2): New insn.
21793 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
21794 (abstf2_internal, cmptf_internal2): Likewise.
21795 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
21797 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
21798 Pat Haugen <pthaugen@us.ibm.com>
21799 Peter Bergner <bergner@vnet.ibm.com>
21801 * config/rs6000/rs6000.c (emit_load_locked): Add support for
21802 power8 byte, half-word, and quad-word atomic instructions.
21803 (emit_store_conditional): Likewise.
21804 (rs6000_expand_atomic_compare_and_swap): Likewise.
21805 (rs6000_expand_atomic_op): Likewise.
21807 * config/rs6000/sync.md (larx): Add new modes for power8.
21809 (AINT): New mode iterator to include TImode as well as normal
21810 integer modes on power8.
21811 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
21812 that VSX registers are not considered. Use AINT mode iterator
21813 instead of INT1 to allow inclusion of quad word atomic operations
21815 (load_locked<mode>): Likewise.
21816 (store_conditional<mode>): Likewise.
21817 (atomic_compare_and_swap<mode>): Likewise.
21818 (atomic_exchange<mode>): Likewise.
21819 (atomic_nand<mode>): Likewise.
21820 (atomic_fetch_<fetchop_name><mode>): Likewise.
21821 (atomic_nand_fetch<mode>): Likewise.
21822 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
21824 (ATOMIC): On power8, add QImode, HImode modes.
21825 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
21826 modes that promote to SImode.
21827 (load_lockedti): Convert TImode arguments to PTImode, so that we
21828 get a guaranteed even/odd register pair.
21829 (load_lockedpti): Likewise.
21830 (store_conditionalti): Likewise.
21831 (store_conditionalpti): Likewise.
21833 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
21834 atomic load/store instructions.
21837 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
21839 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
21841 (insn_count): New attribute, with most cases extracted from...
21842 (length): ...here. Redefine most cases in terms of insn_count.
21843 (single_insn): Delete.
21844 (can_delay): Use insn_count to check for single instructions.
21845 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
21846 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
21847 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
21848 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
21849 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
21850 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
21851 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
21852 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
21853 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
21854 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
21855 rather than "length".
21856 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
21857 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
21858 Use "insn_count" rather than "length".
21859 * config/mips/mips-dsp.md
21860 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
21861 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
21864 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
21866 PR tree-optimization/57361
21867 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
21869 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
21871 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
21873 (aarch64_simd_combine<mode>): New instruction expansion.
21874 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
21875 function prototype.
21876 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
21877 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
21879 2013-06-12 Jan Hubicka <jh@suse.cz>
21881 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
21882 decl has when in streaming stage.
21883 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
21884 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
21886 2013-06-12 Roland Stigge <stigge@antcom.de>
21889 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
21891 2013-06-12 Jakub Jelinek <jakub@redhat.com>
21893 PR tree-optimization/57537
21894 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
21895 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
21897 2013-06-12 Richard Biener <rguenther@suse.de>
21899 * data-streamer.h (streamer_write_char_stream): CSE
21900 obs->current_pointer.
21901 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
21902 streamer_write_char_stream manually and optimize the resulting loop.
21903 (streamer_write_hwi_stream): Likewise.
21905 2013-06-12 Jan Hubicka <jh@suse.cz>
21907 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
21908 * cgraph.h (varpool_create_empty_node): Declare.
21909 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
21911 * symtab.c (symtab_unregister_node): Be lax about missin entries
21913 (symtab_get_node): Update comment.
21914 * varpool.c (varpool_create_empty_node): Break out from ...
21915 (varpool_node_for_decl): ... here.
21916 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
21918 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
21920 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
21921 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
21922 part. Use straight-line flow at the end.
21923 <COMPONENT_REF>: Remove superfluous else.
21924 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
21926 2013-06-12 Jakub Jelinek <jakub@redhat.com>
21929 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
21930 target hook even for !TREE_PUBLIC decls. If no resolution info
21931 is available, return false for common and external decls.
21933 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
21935 * config/rl78/constraints.md (U): New constraint.
21936 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
21939 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
21942 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
21943 to allow returning address to AT_PLATFORM name.
21945 2013-06-11 Jan Hubicka <jh@suse.cz>
21947 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
21948 * cgraph.h (symtab_node_base): Add weakref flag.
21949 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
21950 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
21951 (output_weakrefs): Use weakref flag.
21952 * fold-const.c (simple_operand_p): Handle WEAK.
21953 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
21954 * ipa.c (varpool_externally_visible_p): Drop weakref.
21955 (function_and_variable_visibility): Update comment; fix weakref
21956 sanity checks; do not clear DECL_WEAK on them.
21957 * lto-cgraph.c (lto_output_node): update.
21958 (lto_output_varpool_node): Update.
21959 (input_overwrite_node): Update.
21960 (input_node): Update.
21961 (input_varpool_node): Update.
21962 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
21963 (lto_symtab_merge_symbols): Add sanity check.
21964 (lto_symtab_prevailing_decl): Do not special case weakrefs.
21965 * passes.c (rest_of_decl_compilation): Set static flag, too.
21966 * symtab.c (dump_symtab_base): Dump weakref.
21967 (verify_symtab_base): Sanity check weakrefs.
21968 (symtab_make_decl_local): Remove duplicated code.
21969 (symtab_alias_ultimate_target): Simplify.
21970 * varpool.c (varpool_create_variable_alias): Set weakref flag.
21972 2013-06-11 Tom de Vries <tom@codesourcery.com>
21974 * genautomata.c (gen_regexp_sequence): Handle els_num == -1. Handle
21975 sequence_vect == NULL.
21977 2013-06-11 DJ Delorie <dj@redhat.com>
21979 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
21980 (rl78_unwind_word_mode): New.
21982 2013-06-11 David Malcolm <dmalcolm@redhat.com>
21984 * final.c (debug_prefix_maps): Make static.
21986 2013-06-11 David Malcolm <dmalcolm@redhat.com>
21988 * function.c (initial_trampoline): Remove stray copy.
21990 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
21992 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
21994 2013-06-11 Martin Jambor <mjambor@suse.cz>
21996 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
21997 within bounds at the beginning of the function.
21999 2013-06-11 Alan Modra <amodra@gmail.com>
22001 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
22003 (get_named_section): Don't NULL !DECL_P decl.
22005 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
22007 * doc/invoke.texi (core-avx2): Document.
22009 (atom): Updated with MOVBE.
22011 2013-06-11 Richard Biener <rguenther@suse.de>
22013 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
22015 2013-06-11 Anton Blanchard <anton@samba.org>
22017 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
22018 correct shift value in little-endian mode.
22020 2013-06-11 Jakub Jelinek <jakub@redhat.com>
22023 * varasm.c (get_variable_align): Move #endif to the right place.
22025 2013-06-10 Cary Coutant <ccoutant@google.com>
22027 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
22028 for hash so that hash table traversal order is deterministic.
22030 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
22031 Pat Haugen <pthaugen@us.ibm.com>
22032 Peter Bergner <bergner@vnet.ibm.com>
22034 * config/rs6000/vector.md (GPR move splitter): Do not split moves
22035 of vectors in GPRS if they are direct moves or quad word load or
22038 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
22040 (direct_move_p): Likewise.
22041 (quad_load_store_p): Likewise.
22043 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
22044 classes into bins based on the physical register type.
22045 (reg_class_to_reg_type): Likewise.
22046 (IS_STD_REG_TYPE): Likewise.
22047 (IS_FP_VECT_REG_TYPE): Likewise.
22048 (reload_fpr_gpr): Arrays to determine what insn to use if we can
22049 use direct move instructions.
22050 (reload_gpr_vsx): Likewise.
22051 (reload_vsx_gpr): Likewise.
22052 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
22053 information that is a simplification of register classes. Also
22054 precalculate direct move reload helpers.
22055 (direct_move_p): New function to return true if the operation can
22056 be done as a direct move instruciton.
22057 (quad_load_store_p): New function to return true if the operation
22058 is a quad memory operation.
22059 (rs6000_legitimize_address): If quad memory, only allow register
22060 indirect for TImode addresses.
22061 (rs6000_legitimate_address_p): Likewise.
22062 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
22063 (rs6000_reload_register_type): Likewise.
22064 (register_to_reg_type): Return register type.
22065 (rs6000_secondary_reload_simple_move): New helper function for
22066 secondary reload and secondary memory needed to identify anything
22067 that is a simple move, and does not need reloading.
22068 (rs6000_secondary_reload_direct_move): New helper function for
22069 secondary reload to identify cases that can be done with several
22070 instructions via the direct move instructions.
22071 (rs6000_secondary_reload_move): New helper function for secondary
22072 reload to identify moves between register types that can be done.
22073 (rs6000_secondary_reload): Add support for quad memory operations
22074 and for direct move.
22075 (rs6000_secondary_memory_needed): Likewise.
22076 (rs6000_debug_secondary_memory_needed): Change argument names.
22077 (rs6000_output_move_128bit): New function to return the move to
22078 use for 128-bit moves, including knowing about the various
22079 limitations of quad memory operations.
22081 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
22082 memory operations. call rs6000_output_move_128bit for the actual
22083 instruciton(s) to generate.
22084 (vsx_movti_64bit): Likewise.
22086 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
22087 (UNSPEC_P8V_MTVSRWZ): Likewise.
22088 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
22089 (UNSPEC_P8V_MTVSRD): Likewise.
22090 (UNSPEC_P8V_XXPERMDI): Likewise.
22091 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
22092 (UNSPEC_FUSION_GPR): Likewise.
22093 (FMOVE128_GPR): New iterator for direct move.
22094 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
22095 (f32_sv): Likewise.
22096 (f32_dm): Likewise.
22097 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
22098 loads and direct move instructions.
22099 (zero_extendsidi2_lfiwzx): Likewise.
22100 (extendsidi2_lfiwax): Likewise.
22101 (extendsidi2_nocell): Likewise.
22102 (floatsi<mode>2_lfiwax): Likewise.
22103 (lfiwax): Likewise.
22104 (floatunssi<mode>2_lfiwzx): Likewise.
22105 (lfiwzx): Likewise.
22106 (fix_trunc<mode>_stfiwx): Likewise.
22107 (fixuns_trunc<mode>_stfiwx): Likewise.
22108 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
22109 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
22110 (parity<mode>2_cmpb): Set length/type attr.
22111 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
22112 for 'mr.' to fast_compare.
22113 (bpermd_<mode>): Change type attr to popcnt.
22114 (p8_fmrgow_<mode>): New insns for power8 direct move support.
22115 (p8_mtvsrwz_1): Likewise.
22116 (p8_mtvsrwz_2): Likewise.
22117 (reload_fpr_from_gpr<mode>): Likewise.
22118 (p8_mtvsrd_1): Likewise.
22119 (p8_mtvsrd_2): Likewise.
22120 (p8_xxpermdi_<mode>): Likewise.
22121 (reload_vsx_from_gpr<mode>): Likewise.
22122 (reload_vsx_from_gprsf): Likewise.
22123 (p8_mfvsrd_3_<mode>): LIkewise.
22124 (reload_gpr_from_vsx<mode>): Likewise.
22125 (reload_gpr_from_vsxsf): Likewise.
22126 (p8_mfvsrd_4_disf): Likewise.
22127 (multi-word GPR splits): Do not split direct moves or quad memory
22130 2013-06-10 David Malcolm <dmalcolm@redhat.com>
22132 * tree-into-ssa.c (interesting_blocks): Make static.
22134 2013-06-10 Jakub Jelinek <jakub@redhat.com>
22137 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
22138 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
22139 Use DATA_ABI_ALIGNMENT for that case instead if defined.
22140 (get_variable_align): New function.
22141 (get_variable_section, emit_bss, emit_common,
22142 assemble_variable_contents, place_block_symbol): Use
22143 get_variable_align instead of DECL_ALIGN.
22144 (assemble_noswitch_variable): Add align argument, use it
22145 instead of DECL_ALIGN.
22146 (assemble_variable): Adjust caller. Use get_variable_align
22147 instead of DECL_ALIGN.
22148 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
22150 (DATA_ABI_ALIGNMENT): Define.
22151 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
22152 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
22153 opt is false, only return the psABI mandated alignment increase.
22154 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
22155 (DATA_ABI_ALIGNMENT): ... this.
22156 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
22157 (DATA_ABI_ALIGNMENT): ... this.
22158 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
22159 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
22160 (DATA_ABI_ALIGNMENT): ... this.
22161 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
22162 * doc/tm.texi: Regenerated.
22164 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
22166 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
22167 cmp_code to construct REG_EQUAL note.
22169 2013-06-09 Jakub Jelinek <jakub@redhat.com>
22172 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
22173 that operands[2] doesn't overlap with operands[0].
22175 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
22176 Jan Hubicka <jh@suse.cz>
22178 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
22179 hack to mark symbols as used.
22181 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
22183 PR rtl-optimization/57559
22184 * lra-constraints.c (process_alt_operands): Don't discourage
22185 memory with known offset for offsetable memory constraint.
22186 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
22188 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
22190 * varasm.c (struct oc_local_state): Reorder fields.
22191 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
22192 and adjust accordingly.
22193 (output_constructor): Reorder initialization code and adjust call to
22194 output_constructor_bitfield.
22196 2013-06-07 Jan Hubicka <jh@suse.cz>
22198 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
22200 2013-06-07 David Malcolm <dmalcolm@redhat.com>
22202 * tree-object-size.c (unknown): Make const.
22204 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22206 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
22207 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
22208 for last alternative in the cpu_facility attribute.
22210 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22213 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
22214 (xordi3): Change operand 2 constraint to arm_xordi_operand.
22215 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
22216 * config/arm/constraints.md (Dg): New constraint.
22217 * config/arm/neon.md (xordi3_neon): Remove.
22218 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
22219 * config/arm/predicates.md (arm_xordi_operand): New predicate.
22221 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22223 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
22224 Clean up alternatives.
22226 2013-06-07 Alan Modra <amodra@gmail.com>
22228 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
22231 2013-06-07 Alan Modra <amodra@gmail.com>
22233 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
22235 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22237 * config/arm/constraints.md (Df): New constraint.
22238 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
22239 Correct length attribute for last two alternatives.
22241 2013-06-07 Alan Modra <amodra@gmail.com>
22243 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
22244 override user -mfp-in-toc.
22245 (offsettable_ok_by_alignment): Consider just the current access
22246 rather than the whole object, unless BLKmode. Handle
22247 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
22248 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
22249 for -mcmodel=medium.
22250 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
22251 override user -mfp-in-toc or -msum-in-toc. Default to
22252 -mno-fp-in-toc for -mcmodel=medium.
22254 2013-06-06 DJ Delorie <dj@redhat.com>
22256 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
22257 TARGET_VALID_POINTER_MODE.
22259 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
22260 Pat Haugen <pthaugen@us.ibm.com>
22261 Peter Bergner <bergner@vnet.ibm.com>
22263 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
22264 Document new power8 builtins.
22266 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
22267 condition code register, to allow 128-bit logical operations to be
22268 done in the VSX or GPR registers.
22269 (nor<mode>3): Use the canonical form for nor.
22270 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
22271 vclz*, and vpopcnt* vector instructions.
22272 (nand<mode>3): Likewise.
22273 (orc<mode>3): Likewise.
22274 (clz<mode>2): LIkewise.
22275 (popcount<mode>2): Likewise.
22277 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
22278 that only the GPRs are recognized.
22280 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
22281 support for new power8 builtins.
22283 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
22285 (xscvdpspn): Likewise.
22291 (vpopcnt): Likewise.
22292 (vpopcntb): Likewise.
22293 (vpopcnth): Likewise.
22294 (vpopcntw): Likewise.
22295 (vpopcntd): Likewise.
22297 (vmrgew): Likewise.
22298 (vmrgow): Likewise.
22300 (eqv_v16qi3): Likewise.
22301 (eqv_v8hi3): Likewise.
22302 (eqv_v4si3): Likewise.
22303 (eqv_v2di3): Likewise.
22304 (eqv_v4sf3): Likewise.
22305 (eqv_v2df3): Likewise.
22307 (nand_v16qi3): Likewise.
22308 (nand_v8hi3): Likewise.
22309 (nand_v4si3): Likewise.
22310 (nand_v2di3): Likewise.
22311 (nand_v4sf3): Likewise.
22312 (nand_v2df3): Likewise.
22314 (orc_v16qi3): Likewise.
22315 (orc_v8hi3): Likewise.
22316 (orc_v4si3): Likewise.
22317 (orc_v2di3): Likewise.
22318 (orc_v4sf3): Likewise.
22319 (orc_v2df3): Likewise.
22321 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
22322 allow power8 quad mode in 64-bit.
22323 (rs6000_builtin_vectorized_function): Add support to vectorize
22324 ISA 2.07 count leading zeros, population count builtins.
22325 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
22326 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
22327 (builtin_function_type): Add vgbbd builtin function which takes an
22329 (altivec_expand_vec_perm_const): Add support for new power8 merge
22332 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
22333 that does not include TImdoe for use with 32-bit.
22334 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
22336 (UNSPEC_VSX_CVDPSPN): Likewise.
22337 (vsx_xscvdpspn): Likewise.
22338 (vsx_xscvspdpn): Likewise.
22339 (vsx_xscvdpspn_scalar): Likewise.
22340 (vsx_xscvspdpn_directmove): Likewise.
22341 (vsx_and<mode>3): Split logical operations into 32-bit and
22342 64-bit. Add support to do logical operations on TImode as well as
22343 VSX vector types. Allow logical operations to be done in either
22344 VSX registers or in general purpose registers in 64-bit mode. Add
22345 splitters if GPRs were used. For AND, add clobber of CCmode to
22346 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
22348 (vsx_and<mode>3_32bit): Likewise.
22349 (vsx_and<mode>3_64bit): Likewise.
22350 (vsx_ior<mode>3): Likewise.
22351 (vsx_ior<mode>3_32bit): Likewise.
22352 (vsx_ior<mode>3_64bit): Likewise.
22353 (vsx_xor<mode>3): Likewise.
22354 (vsx_xor<mode>3_32bit): Likewise.
22355 (vsx_xor<mode>3_64bit): Likewise.
22356 (vsx_one_cmpl<mode>2): Likewise.
22357 (vsx_one_cmpl<mode>2_32bit): Likewise.
22358 (vsx_one_cmpl<mode>2_64bit): Likewise.
22359 (vsx_nor<mode>3): Likewise.
22360 (vsx_nor<mode>3_32bit): Likewise.
22361 (vsx_nor<mode>3_64bit): Likewise.
22362 (vsx_andc<mode>3): Likewise.
22363 (vsx_andc<mode>3_32bit): Likewise.
22364 (vsx_andc<mode>3_64bit): Likewise.
22365 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
22366 and xxlorc instructions.
22367 (vsx_eqv<mode>3_64bit): Likewise.
22368 (vsx_nand<mode>3_32bit): Likewise.
22369 (vsx_nand<mode>3_64bit): Likewise.
22370 (vsx_orc<mode>3_32bit): Likewise.
22371 (vsx_orc<mode>3_64bit): Likewise.
22373 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
22375 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
22377 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
22378 (p8_vmrgow): Likewise.
22379 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
22380 GPRs to be split under VSX.
22381 (p8v_clz<mode>2): Add power8 count leading zero support.
22382 (p8v_popcount<mode>2): Add power8 population count support.
22383 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
22386 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
22389 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
22391 (vec_nand): Likewise.
22392 (vec_vclz): Likewise.
22393 (vec_vclzb): Likewise.
22394 (vec_vclzd): Likewise.
22395 (vec_vclzh): Likewise.
22396 (vec_vclzw): Likewise.
22397 (vec_vgbbd): Likewise.
22398 (vec_vmrgew): Likewise.
22399 (vec_vmrgow): Likewise.
22400 (vec_vpopcnt): Likewise.
22401 (vec_vpopcntb): Likewise.
22402 (vec_vpopcntd): Likewise.
22403 (vec_vpopcnth): Likewise.
22404 (vec_vpopcntw): Likewise.
22406 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
22408 PR rtl-optimization/57468
22409 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
22412 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
22414 PR rtl-optimization/57459
22415 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
22416 type when setting live regs.
22418 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
22420 * config/s390/s390.opt (mlra): New option.
22421 * config/s390/s390.c (s390_decompose_address): Check displacement
22422 for all registers for LRA.
22423 (s390_secondary_reload): Don't used secondary reloads for LRA.
22424 (s390_lra_p): New function.
22425 (TARGET_LRA_P): Define.
22426 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
22427 of attribute cpu_facility to zarch for the last alternative.
22428 (*cmpmem_short): Ditto.
22430 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
22432 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
22433 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
22434 (arm_expand_prologue): Likewise.
22436 2013-06-06 Teresa Johnson <tejohnson@google.com>
22439 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
22440 as this is now done by redirect_edge_and_branch_force.
22441 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
22442 barriers, and fix interaction with splitting.
22443 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
22444 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
22445 reflect changes made in the routine.
22446 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
22447 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
22448 since this is called in cfglayout mode, and replace partition fixup
22449 with assert as that is now done by force_nonfallthru_and_redirect.
22450 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
22451 already be marked with region crossing note.
22452 (insert_section_boundary_note): Make non-static, gate on flag
22453 has_bb_partition, rewrite to also check for multiple partitions.
22454 (rest_of_handle_reorder_blocks): Remove call to
22455 insert_section_boundary_note, now done later during free_cfg.
22456 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
22457 * bb-reorder.h (insert_section_boundary_note): Declare.
22458 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
22459 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
22460 invoke insert_section_boundary_note.
22461 (try_redirect_by_replacing_jump): Remove unnecessary
22462 check for region crossing note.
22463 (fixup_partition_crossing): New function.
22464 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
22465 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
22466 in non-cfglayout mode.
22467 (force_nonfallthru_and_redirect): Fixup partition boundaries,
22468 remove old code that tried to do this. Emit barrier correctly
22469 when we are in cfglayout mode.
22470 (last_bb_in_partition): New function.
22471 (rtl_split_edge): Correctly fixup partition boundaries.
22472 (commit_one_edge_insertion): Remove old code that tried to
22473 fixup region crossing edge since this is now handled in
22474 split_block, and set up insertion point correctly since
22475 block may now end in a jump.
22476 (verify_hot_cold_block_grouping): Guard against checking when not in
22477 linearized RTL mode.
22478 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
22480 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
22481 rtl_verify_flow_info, so not called in cfglayout mode.
22482 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
22483 (fixup_reorder_chain): Remove old code that attempted to fixup region
22484 crossing note as this is now handled in force_nonfallthru_and_redirect.
22485 (duplicate_insn_chain): Don't duplicate switch section notes.
22486 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
22488 * basic-block.h (emit_barrier_after_bb): Declare.
22490 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22492 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
22493 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
22494 arm_usatsihi): Adjust alternatives for arm_restrict_it.
22496 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22498 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
22500 * config/arm/ldmstm.md: Regenerate.
22502 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22504 * config/arm/sync.md (atomic_loaddi_1):
22505 Disable predication for arm_restrict_it.
22506 (arm_load_exclusive<mode>): Likewise.
22507 (arm_load_exclusivesi): Likewise.
22508 (arm_load_exclusivedi): Likewise.
22509 (arm_load_acquire_exclusive<mode>): Likewise.
22510 (arm_load_acquire_exclusivesi): Likewise.
22511 (arm_load_acquire_exclusivedi): Likewise.
22512 (arm_store_exclusive<mode>): Likewise.
22513 (arm_store_exclusive<mode>): Likewise.
22514 (arm_store_release_exclusivedi): Likewise.
22515 (arm_store_release_exclusive<mode>): Likewise.
22517 2013-06-06 Richard Biener <rguenther@suse.de>
22519 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
22521 (lto_tag_is_tree_code_p): Adjust.
22522 (lto_tag_is_gimple_code_p): Likewise.
22523 (lto_gimple_code_to_tag): Likewise.
22524 (lto_tag_to_gimple_code): Likewise.
22525 (lto_tree_code_to_tag): Likewise.
22526 (lto_tag_to_tree_code): Likewise.
22527 * data-streamer.h (streamer_write_hwi_in_range): Use
22528 uhwi streaming to stream the normalized range.
22529 (streamer_read_hwi_in_range): Likewise.
22531 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22533 * config/arm/arm.md (enabled_for_depr_it): New attribute.
22534 (predicable_short_it): Likewise.
22535 (predicated): Likewise.
22536 (enabled): Handle above.
22537 (define_cond_exec): Set predicated attribute to yes.
22539 2013-06-05 Mike Stump <mikestump@comcast.net>
22541 * gdbinit.in (__FUNCTION__): Add.
22543 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
22545 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
22546 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
22548 2013-06-05 Jan Hubicka <jh@suse.cz>
22550 * varasm.c (mark_decl_referenced): Revert the removal until targets
22553 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
22555 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
22556 instead of mark_decl_referenced.
22558 2013-06-05 Jan Hubicka <jh@suse.cz>
22560 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
22561 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
22562 and symtab_used_from_object_file_p.
22563 (cgraph_make_node_local_1): Clear forced_by_abi.
22564 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
22565 * cgraph.h (symtab_node_base): Add forced_by_abi.
22566 (decide_is_variable_needed): Remove.
22567 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
22568 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
22569 (decide_is_symbol_needed): ... this one; handle symbols in general;
22570 always analyze virtuals; honnor forced_by_abi.
22571 (cgraph_finalize_function): Update.
22572 (varpool_finalize_decl): Update.
22573 (symbol_defined_and_needed): Remove.
22574 (analyze_functions): Update.
22575 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
22576 output_refs, input_overwrite_node): Handle forced_by_abi.
22577 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
22578 (address_taken_from_non_vtable_p): ... this one.
22579 (comdat_can_be_unshared_p_1): New function.
22580 (cgraph_comdat_can_be_unshared_p): Rename to ...
22581 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
22582 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
22583 (function_and_variable_visibility): Clear forced_by_abi as needed.
22584 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
22585 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
22586 * symtab.c (dump_symtab_base): Dump forced_by_abi.
22587 * varpool.c (decide_is_variable_needed): Remove.
22589 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22591 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
22592 (arm_option_override): Override arm_restrict_it where appropriate.
22593 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
22594 * config/arm/arm.opt (mrestrict-it): New command-line option.
22595 * doc/invoke.texi: Document -mrestrict-it.
22597 2013-06-05 David Malcolm <dmalcolm@redhat.com>
22599 * tsan.c (tsan_atomic_table): Make const.
22601 2013-06-05 Richard Biener <rguenther@suse.de>
22603 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
22604 index associated with the tree we are supposed to replace.
22605 * tree-streamer-out.c (pack_ts_base_value_fields): Output
22606 TREE_ASM_WRITTEN as zero for everything but SSA names.
22608 2013-06-05 David Malcolm <dmalcolm@redhat.com>
22610 * tree-ssa-structalias.c (call_stmt_vars): Make static.
22612 2013-06-04 Jan Hubicka <jh@suse.cz>
22614 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
22615 (input_node, input_varpool_node): Handle correctly external same
22617 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
22618 nodes at ltrans stage.
22620 2013-06-04 Jan Hubicka <jh@suse.cz>
22622 * ipa-inline.c (update_caller_keys): Fix availability test.
22623 (update_callee_keys): Likewise.
22624 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
22625 to follow ELF standard.
22627 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
22629 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
22630 (mips64r5900el-*-elf*): New configurations.
22631 * config/mips/mips-cpus.def (r5900): New processor.
22632 * config/mips/mips-tables.opt: Regenerate.
22633 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
22634 (mips_issue_rate): Handle PROCESSOR_R5900.
22635 (mips_reorg_process_insns): Force reorder mode for the R5900.
22636 * config/mips/mips.h (TARGET_MIPS5900): Define.
22637 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
22639 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
22641 * config/mips/mips.md (processor): Add r5900.
22642 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
22644 2013-06-04 Ian Bolton <ian.bolton@arm.com>
22646 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
22647 into function to generate MOVI instruction.
22648 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
22649 (aarch64_preferred_simd_mode): Turn into wrapper.
22650 (aarch64_output_scalar_simd_mov_immediate): New function.
22651 * config/aarch64/aarch64-protos.h: Add prototype for above.
22653 2013-06-04 Ian Bolton <ian.bolton@arm.com>
22655 * config/aarch64/aarch64.c (simd_immediate_info): Remove
22656 element_char member.
22657 (sizetochar): Return signed char.
22658 (aarch64_simd_valid_immediate): Remove elchar and other
22659 unnecessary variables.
22660 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
22661 Calculate element_char as required.
22662 * config/aarch64/aarch64-protos.h: Update and move prototype
22663 for aarch64_output_simd_mov_immediate.
22664 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
22667 2013-06-04 Ian Bolton <ian.bolton@arm.com>
22669 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
22670 information completed by aarch64_simd_valid_immediate.
22671 (aarch64_legitimate_constant_p): Update arguments.
22672 (aarch64_simd_valid_immediate): Work with struct rather than many
22674 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
22675 (aarch64_simd_make_constant): Update arguments.
22676 (aarch64_output_simd_mov_immediate): Work with struct rather than
22677 many pointers. Output immediate directly rather than as operand.
22678 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
22680 * config/aarch64/constraints.md (Dn): Update arguments.
22682 2013-06-04 Ian Bolton <ian.bolton@arm.com>
22684 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
22686 (aarch64_simd_immediate_valid_for_move): Remove.
22687 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
22688 (aarch64_simd_make_constant): Update call.
22689 (aarch64_output_simd_mov_immediate): Update call.
22690 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
22692 * config/aarch64/constraints.md (Dn): Update call.
22694 2013-06-04 Ian Bolton <ian.bolton@arm.com>
22696 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
22697 return type to bool for prototype.
22698 (aarch64_legitimate_constant_p): Check for true instead of not -1.
22699 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
22700 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
22702 2013-06-04 Catherine Moore <clm@codesourcery.com>
22704 * config/mips/mips.opt (meva): New.
22705 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
22706 (ASM_SPEC): Handle -meva.
22707 * doc/invoke.texi (meva): Document.
22709 2013-06-04 Alan Modra <amodra@gmail.com>
22711 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
22714 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22716 * rtl.def: Add extra fourth optional field to define_cond_exec.
22717 * gensupport.c (process_one_cond_exec): Process attributes from
22719 * doc/md.texi: Document fourth field in define_cond_exec.
22721 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
22723 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
22724 out the processing order as in store_bit_field_1.
22726 2013-06-04 Jan Hubicka <jh@suse.cz>
22728 PR middle-end/57500
22729 * cgraphunit.c (cgraph_process_same_body_aliases): Create
22730 non-VAR_DECL node if it does not exist yet.
22732 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
22734 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
22735 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
22736 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
22737 target_cpu_default setting.
22739 2013-06-03 Teresa Johnson <tejohnson@google.com>
22741 * dumpfile.c (opt_info_switch_p): Change -fopt-info
22742 default to -fopt-info=optimized instead of all.
22743 * doc/invoke.texi: Ditto.
22744 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
22745 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
22746 (execute_vect_slp): Emit BB vectorization success under
22747 MSG_OPTIMIZED_LOCATIONS.
22748 * tree-vect-slp.c (vect_slp_transform_bb): Change
22749 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
22750 * tree-vect-loop.c (vect_transform_loop): Ditto.
22752 2013-06-03 Jason Merrill <jason@redhat.com>
22755 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
22756 Use TARGET_EXPR for C++.
22758 2013-06-03 Jakub Jelinek <jakub@redhat.com>
22760 PR rtl-optimization/57268
22761 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
22762 if DEBUG_INSN_P (insn).
22765 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
22767 PR rtl-optimization/57268
22768 * sched-deps.c (sched_analyze_2): Flush dependence lists if
22769 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
22771 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
22773 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
22774 (ix86_avoid_lea_for_addr): Likewise.
22775 (exact_dependency_1): Likewise.
22776 (ix86_adjust_cost): Likewise.
22777 (swap_top_of_ready_list): Fix formatting and !reload_completed check
22779 (do_reorder_for_imul): Fix typo, formatting and
22780 !reload_completed check removed.
22781 (ix86_sched_reorder): Fix typo and formatting.
22782 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
22785 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
22787 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
22789 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
22791 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
22792 <STRING_CST>: Likewise.
22793 <VECTOR_CST>: Likewise.
22795 2013-06-01 Janus Weil <janus@gcc.gnu.org>
22796 Mikael Morin <mikael@gcc.gnu.org>
22798 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
22799 * config.in: Regenerated.
22800 * configure: Regenerated.
22802 2013-06-01 Jan Hubicka <jh@suse.cz>
22804 PR middle-end/57366
22805 * cgraphunit.c (compile): When weakref is not supported,
22806 set up transparent aliases before final output pass.
22807 * varasm.c (assemble_alias): Do not try to do it here.
22809 2013-06-01 Jan Hubicka <jh@suse.cz>
22811 PR middle-end/57467
22812 * passes.c (for_per_function): Skip unanalyzed functions.
22814 2013-06-01 Jan Hubicka <jh@suse.cz>
22816 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
22817 (lto_symtab_merge_symbols_1): ... this one.
22818 (lto_symtab_merge_cgraph_nodes): Rename to ...
22819 (lto_symtab_merge_symbols): ... this one; simplify.
22820 * cgraph.c (same_body_aliases_done): Rename to ...
22821 (cpp_implicit_aliases_done): ... this one.
22822 (cgraph_create_function_alias): Update.
22823 (cgraph_same_body_alias): Update.
22824 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
22825 (verify_edge_corresponds_to_fndecl): Simplify.
22826 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
22827 (cgraph_node): Remove same_body_alias.
22828 (varpool_node): Remove alias_of and extra_name_alias.
22829 (same_body_aliases_done): Rename to ..
22830 (cpp_implicit_aliases_done): ... this one.
22831 (symtab_alias_ultimate_target): Add default parameter.
22832 (symtab_resolve_alias): New function.
22833 (fixup_same_cpp_alias_visibility): Declare.
22834 (cgraph_function_node): Add default parameter.
22835 (cgraph_node_asm_name): Likewise.
22836 (cgraph_function_or_thunk_node): Add default parameter; do
22837 not ICE when it is NULL.
22838 (varpool_variable_node): Likewise.
22839 * tree-emutls.c (create_emultls_var): Update.
22840 (ipa_lower_emutls): Update.
22841 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
22842 (cgraph_reset_node): Reset alias info.
22843 (cgraph_finalize_function): Update.
22844 (fixup_same_cpp_alias_visibility): Move to symtab.c.
22845 (analyze_function): Simplify.
22846 (cgraph_process_same_body_aliases): Simplify.
22847 (analyze_functions): Fixup same body aliases.
22848 (handle_alias_pairs): Simplify.
22849 (assemble_thunk): Update.
22850 (assemble_thunks_and_aliases): Update.
22851 (output_weakrefs): Rewrite.
22852 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
22853 (lto_output_varpool_node): Likewise.
22854 (compute_ltrans_boundary): Remve assert.
22855 (get_alias_symbol): New functoin.
22856 (input_node): Rewrite alias handling.
22857 (input_varpool_node): Likewise.
22858 * ipa-pure-const.c (propagate_pure_const): Fix formating.
22859 * ipa.c (process_references): Handle weakrefs correctly.
22860 (symtab_remove_unreachable_nodes): Likewise.
22861 * trans-mem.c (get_cg_data): Update.
22862 (ipa_tm_create_version_alias): Update.
22863 (ipa_tm_execute): Update.
22864 * symtab.c (dump_symtab_base): Dump aliases.
22865 (verify_symtab_base): Verify aliases.
22866 (symtab_node_availability): New function.
22867 (symtab_alias_ultimate_target): Simplify.
22868 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
22869 handle all the fixup cases.
22870 (symtab_resolve_alias): New function.
22871 * passes.c (ipa_write_summaries): Handle weakrefs.
22872 * varpool.c (varpool_analyze_node): Simplify.
22873 (assemble_aliases): Update.
22874 (varpool_create_variable_alias): Simplify.
22875 (varpool_extra_name_alias): Simplify.
22876 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
22877 (lto_symtab_merge_symbols): ... this one.
22879 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
22882 PR rtl-optimization/57268
22883 * sched-deps.c (sched_analyze_2): Flush dependence lists if
22884 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
22886 2013-06-01 Tobias Burnus <burnus@net-b.de>
22888 Partially reverted:
22889 2013-05-31 Tobias Burnus <burnus@net-b.de>
22891 PR middle-end/57073
22892 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
22895 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
22897 PR rtl-optimization/57268
22898 * sched-deps.c (sched_analyze_2): Flush dependence lists if
22899 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
22901 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
22903 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
22904 unordered comparison operators when -fno-trapping-math is in effect
22906 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
22907 and implement unordered comparison operators properly on the e500.
22909 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
22911 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
22912 for constant scalar integers.
22913 (simplify_relational_operation_1): Likewise.
22915 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
22917 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
22918 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
22921 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
22922 Igor Zamyatin <igor.zamyatin@intel.com>
22924 Silvermont (SLM) architecture performance tuning.
22925 * config/i386/i386.h (enum ix86_tune_indices): Add
22926 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
22927 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
22929 * config/i386/i386.c (initial_ix86_tune_features)
22930 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
22931 (ix86_lea_outperforms): Handle Silvermont tuning.
22932 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
22934 (ix86_use_lea_for_mov): Likewise.
22935 (ix86_avoid_lea_for_addr): Likewise.
22936 (ix86_lea_for_add_ok): Likewise.
22937 (exact_dependency_1): New function.
22938 (exact_store_load_dependency): Likewise.
22939 (ix86_adjust_cost): Handle Silvermont tuning.
22940 (do_reoder_for_imul): Likewise.
22941 (swap_top_of_ready_list): New function.
22942 (ix86_sched_reorder): Changed to handle Silvermont tuning.
22944 * config/i386/i386.md (peepholes that split memory operand in fp
22947 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
22949 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
22950 Remove un-necessary braces.
22952 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
22954 * config/aarch64/aarch64.c (aarch64_classify_symbol):
22955 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
22957 2013-05-31 Tobias Burnus <burnus@net-b.de>
22959 PR middle-end/57073
22960 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
22962 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22965 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
22966 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
22967 * config/arm/neon.md (iordi3_neon): Remove.
22968 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
22969 * config/arm/predicates.md (imm_for_neon_logic_operand):
22970 Move to earlier in the file.
22971 (neon_logic_op2): Likewise.
22972 (arm_iordi_operand_neon): New predicate.
22974 2013-05-31 Richard Biener <rguenther@suse.de>
22976 PR tree-optimization/57478
22977 PR tree-optimization/57453
22978 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
22981 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
22983 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
22984 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
22986 2013-05-30 Tobias Burnus <burnus@net-b.de>
22987 Thomas Koenig <tkoenig@gcc.gnu.org>
22989 PR middle-end/57073
22990 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
22991 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
22993 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
22995 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
22997 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
22999 * target.def (register_usage_leveling_p): New hook.
23000 * targhooks.c (default_register_usage_leveling_p): New.
23001 * targhooks.h (default_register_usage_leveling_p): New prototype.
23002 * lra-assigns.c (register_usage_leveling_p): Use the hook.
23003 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
23004 * doc/tm.texi: Update.
23005 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
23007 2013-05-30 Ian Bolton <ian.bolton@arm.com>
23009 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
23010 (*insv_reg<mode>): New define_insn.
23012 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
23014 PR rtl-optimization/57439
23015 * postreload.c (move2add_valid_value_p): Check that we have
23016 a zero subreg_regno_offset when accessing the register in
23017 the requested mode.
23019 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
23020 Igor Zamyatin <igor.zamyatin@intel.com>
23022 Silvermont (SLM) architecture pipeline model, tuning and
23024 * config.gcc: Add slm config options and target.
23026 * config/i386/slm.md: New.
23028 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
23030 * config/i386/i386-c.c (ix86_target_macros_internal): New case
23032 (ix86_target_macros_internal): Likewise.
23034 * config/i386/i386.c (slm_cost): New cost.
23035 (m_SLM): New macro flag.
23036 (initial_ix86_tune_features): Set m_SLM.
23037 (x86_accumulate_outgoing_args): Likewise.
23038 (x86_arch_always_fancy_math_387): Likewise.
23039 (processor_target_table): Add slm cost.
23040 (cpu_names): Add slm cpu name.
23041 (x86_option_override_internal): Set SLM ISA.
23042 (ix86_issue_rate): New case PROCESSOR_SLM.
23043 (ia32_multipass_dfa_lookahead): Likewise.
23044 (fold_builtin_cpu): Add slm.
23046 * config/i386/i386.h (TARGET_SLM): New target macro.
23047 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
23048 (processor_type): Add PROCESSOR_SLM.
23050 * config/i386/i386.md (cpu): Add new value "slm".
23051 (slm.md): Include slm.md.
23053 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
23054 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23056 * config/arm/arm-protos.h: Add and update function protos.
23057 * config/arm/arm.c (use_simple_return_p): New added.
23058 (thumb2_expand_return): Check simple_return flag.
23059 * config/arm/arm.md: Add simple_return and conditional simple_return.
23060 * config/arm/iterators.md: Add iterator for return and simple_return.
23062 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23064 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
23065 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
23066 (arm_emit_vfp_multi_reg_pop): Likewise.
23067 (thumb2_emit_ldrd_pop): Likewise.
23068 (arm_expand_epilogue): Add misc REG_CFA notes.
23069 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
23071 2013-05-29 Lawrence Crowl <crowl@google.com>
23073 * config/arm/t-arm: Update for below.
23075 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
23076 Change type to hash_table. Update dependent calls and types.
23078 * config/i386/t-cygming: Update for below.
23080 * config/i386/t-interix: Update for below.
23082 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
23083 Change type to hash_table. Update dependent calls and types.
23084 (i386_find_on_wrapper_list::wrappers): Likewise.
23086 * config/ia64/t-ia64: Update for below.
23088 * config/ia64/ia64.c (bundle_state_table):
23089 Change type to hash_table. Update dependent calls and types.
23091 * config/mips/mips.c (mips_reorg_process_insns::htab):
23092 Change type to hash_table. Update dependent calls and types.
23094 * config/sol2.c (solaris_comdat_htab):
23095 Change type to hash_table. Update dependent calls and types.
23097 * config/t-sol2: Update for above.
23099 2013-05-29 Teresa Johnson <tejohnson@google.com>
23101 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
23102 functions are not yet marked as defined.
23104 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
23105 Pat Haugen <pthaugen@us.ibm.com>
23106 Peter Bergner <bergner@vnet.ibm.com>
23108 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
23112 (vrotl<mode>3): Likewise.
23113 (vashl<mode>3): Likewise.
23114 (vlshr<mode>3): Likewise.
23115 (vashr<mode>3): Likewise.
23117 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
23118 support for power8 V2DI builtins.
23120 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
23121 power8 V2DI builtins.
23122 (vupkhsw): Likewise.
23123 (vupklsw): Likewise.
23124 (vaddudm): Likewise.
23125 (vminsd): Likewise.
23126 (vmaxsd): Likewise.
23127 (vminud): Likewise.
23128 (vmaxud): Likewise.
23129 (vpkudum): Likewise.
23130 (vpksdss): Likewise.
23131 (vpkudus): Likewise.
23132 (vpksdus): Likewise.
23137 (vsubudm): Likewise.
23138 (vcmpequd): Likewise.
23139 (vcmpgtsd): Likewise.
23140 (vcmpgtud): Likewise.
23141 (vcmpequd_p): Likewise.
23142 (vcmpgtsd_p): Likewise.
23143 (vcmpgtud_p): Likewise.
23144 (vupkhsw): Likewise.
23145 (vupklsw): Likewise.
23146 (vaddudm): Likewise.
23147 (vmaxsd): Likewise.
23148 (vmaxud): Likewise.
23149 (vminsd): Likewise.
23150 (vminud): Likewise.
23151 (vpksdss): Likewise.
23152 (vpksdus): Likewise.
23153 (vpkudum): Likewise.
23154 (vpkudus): Likewise.
23159 (vsubudm): Likewise.
23161 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
23162 support for power8 V2DI instructions.
23164 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
23165 power8 V2DI instructions. Combine pack and unpack insns to use an
23166 iterator for each mode. Check whether a particular mode supports
23167 Altivec instructions instead of just checking TARGET_ALTIVEC.
23168 (UNSPEC_VPKUWUM): Likewise.
23169 (UNSPEC_VPKSHSS): Likewise.
23170 (UNSPEC_VPKSWSS): Likewise.
23171 (UNSPEC_VPKUHUS): Likewise.
23172 (UNSPEC_VPKSHUS): Likewise.
23173 (UNSPEC_VPKUWUS): Likewise.
23174 (UNSPEC_VPKSWUS): Likewise.
23175 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
23176 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
23177 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
23178 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
23179 (UNSPEC_VUPKHSB): Likewise.
23180 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
23181 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
23182 (UNSPEC_VUPKHSH): Likewise.
23183 (UNSPEC_VUPKLSB): Likewise.
23184 (UNSPEC_VUPKLSH): Likewise.
23186 (VI_char): Likewise.
23187 (VI_scalar): Likewise.
23188 (VI_unit): Likewise.
23190 (VP_small): Likewise.
23191 (VP_small_lc): Likewise.
23192 (VU_char): Likewise.
23193 (add<mode>3): Likewise.
23194 (altivec_vaddcuw): Likewise.
23195 (altivec_vaddu<VI_char>s): Likewise.
23196 (altivec_vadds<VI_char>s): Likewise.
23197 (sub<mode>3): Likewise.
23198 (altivec_vsubcuw): Likewise.
23199 (altivec_vsubu<VI_char>s): Likewise.
23200 (altivec_vsubs<VI_char>s): Likewise.
23201 (altivec_vavgs<VI_char>): Likewise.
23202 (altivec_vcmpbfp): Likewise.
23203 (altivec_eq<mode>): Likewise.
23204 (altivec_gt<mode>): Likewise.
23205 (altivec_gtu<mode>): Likewise.
23206 (umax<mode>3): Likewise.
23207 (smax<mode>3): Likewise.
23208 (umin<mode>3): Likewise.
23209 (smin<mode>3): Likewise.
23210 (altivec_vpkuhum): Likewise.
23211 (altivec_vpkuwum): Likewise.
23212 (altivec_vpkshss): Likewise.
23213 (altivec_vpkswss): Likewise.
23214 (altivec_vpkuhus): Likewise.
23215 (altivec_vpkshus): Likewise.
23216 (altivec_vpkuwus): Likewise.
23217 (altivec_vpkswus): Likewise.
23218 (altivec_vpks<VI_char>ss): Likewise.
23219 (altivec_vpks<VI_char>us): Likewise.
23220 (altivec_vpku<VI_char>us): Likewise.
23221 (altivec_vpku<VI_char>um): Likewise.
23222 (altivec_vrl<VI_char>): Likewise.
23223 (altivec_vsl<VI_char>): Likewise.
23224 (altivec_vsr<VI_char>): Likewise.
23225 (altivec_vsra<VI_char>): Likewise.
23226 (altivec_vsldoi_<mode>): Likewise.
23227 (altivec_vupkhsb): Likewise.
23228 (altivec_vupkhs<VU_char>): Likewise.
23229 (altivec_vupkls<VU_char>): Likewise.
23230 (altivec_vupkhsh): Likewise.
23231 (altivec_vupklsb): Likewise.
23232 (altivec_vupklsh): Likewise.
23233 (altivec_vcmpequ<VI_char>_p): Likewise.
23234 (altivec_vcmpgts<VI_char>_p): Likewise.
23235 (altivec_vcmpgtu<VI_char>_p): Likewise.
23236 (abs<mode>2): Likewise.
23237 (vec_unpacks_hi_v16qi): Likewise.
23238 (vec_unpacks_hi_v8hi): Likewise.
23239 (vec_unpacks_lo_v16qi): Likewise.
23240 (vec_unpacks_hi_<VP_small_lc>): Likewise.
23241 (vec_unpacks_lo_v8hi): Likewise.
23242 (vec_unpacks_lo_<VP_small_lc>): Likewise.
23243 (vec_pack_trunc_v8h): Likewise.
23244 (vec_pack_trunc_v4si): Likewise.
23245 (vec_pack_trunc_<mode>): Likewise.
23247 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
23249 (vec_vmaxsd): Likewise.
23250 (vec_vmaxud): Likewise.
23251 (vec_vminsd): Likewise.
23252 (vec_vminud): Likewise.
23253 (vec_vpksdss): Likewise.
23254 (vec_vpksdus): Likewise.
23255 (vec_vpkudum): Likewise.
23256 (vec_vpkudus): Likewise.
23257 (vec_vrld): Likewise.
23258 (vec_vsld): Likewise.
23259 (vec_vsrad): Likewise.
23260 (vec_vsrd): Likewise.
23261 (vec_vsubudm): Likewise.
23262 (vec_vupkhsw): Likewise.
23263 (vec_vupklsw): Likewise.
23265 2013-05-29 Jan Hubicka <jh@suse.cz>
23267 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
23268 flags; reorder rest of fields in more consistent way.
23269 (varpool_node): Remove analyzed, finalized and alias.
23270 (cgraph_ndoe): Likewise.
23271 (symtab_alias_ultimate_target): New function.
23272 (cgraph_function_node): Move offline.
23273 (cgraph_reset_node): Declare.
23274 (cgraph_comdat_can_be_unshared_p): Remove.
23275 (varpool_remove_initializer): Declare.
23276 (varpool_first_defined_variable, varpool_next_defined_variable
23277 cgraph_first_defined_function, cgraph_next_defined_function): Update.
23278 (cgraph_function_with_gimple_body_p): Update.
23279 (varpool_all_refs_explicit_p): Update.
23280 (symtab_alias_target): New function.
23281 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
23282 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
23283 (cgraph_function_or_thunk_node): Simplify using
23284 symtab_alias_ultimate_target.
23285 (varpool_variable_node): Likewise.
23286 * cgraph.c (cgraph_create_function_alias): Update.
23287 (cgraph_add_thunk): Update.
23288 (cgraph_remove_node): Update.
23289 (dump_cgraph_node): Do not dump removed flags.
23290 (cgraph_function_body_availability): Update.
23291 (cgraph_propagate_frequency): Update.
23292 (verify_cgraph_node): Check sanity of local flag.
23293 (cgraph_function_node): Move here from cgraph.h; revamp for
23294 cgraph_function_or_thunk_node.
23295 * lto-symtab.c (lto_varpool_replace_node): Update.
23296 (lto_symtab_resolve_can_prevail_p): Update.
23297 (lto_symtab_merge_cgraph_nodes): Update.
23298 * ipa-cp.c (determine_versionability, initialize_node_lattices,
23299 propagate_constants_accross_call, devirtualization_time_bonus,
23300 ipcp_propagate_stage): Update.
23301 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
23302 * ipa-inline-transform.c (clone_inlined_nodes,
23303 preserve_function_body_p): Update.
23304 * ipa-reference.c (propagate): Update.
23305 (write_node_summary_p): Update.
23306 * toplev.c (wrapup_global_declaration_2): Update.
23307 * cgraphunit.c (cgraph_analyze_function): Rename to ...
23308 (analyze_function) ... this one.
23309 (cgraph_process_new_functions): Update.
23310 (cgraph_reset_node): Export.
23311 (cgraph_finalize_function): Update.
23312 (cgraph_add_new_function): Update.
23313 (process_function_and_variable_attributes): Update.
23314 (varpool_finalize_decl): Update.
23315 (symbol_finalized): Remove.
23316 (symbol_finalized_and_needed): Rename to ...
23317 (symbol_defined_and_needed): ... update.
23318 (cgraph_analyze_functions): Update.
23319 (handle_alias_pairs): Update.
23320 (mark_functions_to_output): Update.
23321 (assemble_thunk): Update.
23322 (output_in_order): Update.
23323 (output_weakrefs): Update.
23324 (finalize_compilation_unit): Update.
23325 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
23326 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
23327 input_node, input_varpool_node): Update.
23328 * dbxout.c (dbxout_expand_expr): Update.
23329 * cgraphclones.c (cgraph_clone_node): Update.
23330 (cgraph_copy_node_for_versioning): Update.
23331 (cgraph_materialize_clone): Update.
23332 (cgraph_materialize_all_clones): Update.
23333 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
23334 propagate_pure_const, propagate_nothrow): Update.
23335 * lto-streamer-out.c (lto_output, write_symbol): Update.
23336 * ipa-utils.c (ipa_reverse_postorder): Update.
23337 * ipa-inline.c (can_inline_edge_p): Update.
23338 (update_caller_keys, ipa_inline): Update.
23339 * dwarf2out.c (reference_to_unused,
23340 premark_types_used_by_global_vars_helper): Update.
23341 * tree-eh.c (tree_could_trap_p): Update.
23342 * ipa-split.c (consider_split, execute_split_functions): Update.
23343 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
23344 has_addr_references_p): Update; move ahead in file for better
23346 (process_references): Simplify.
23347 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
23348 bodies are removed.
23349 (cgraph_comdat_can_be_unshared_p): Make static.
23350 (cgraph_externally_visible_p): Update.
23351 (varpool_externally_visible_p): Update.
23352 (function_and_variable_visibility): Update.
23353 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
23354 ipa_tm_mark_force_output_node): Update.
23355 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
23356 estimate_edge_devirt_benefit, inline_generate_summary,
23357 inline_write_summary): Update.
23358 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
23359 * ipa-prop.c (ipa_compute_jump_functions): Update.
23360 (ipa_print_node_params, ipa_prop_read_section,
23361 ipa_update_after_lto_read, read_replacements_section): Update.
23362 * varasm.c (mark_decl_referenced): Update.
23363 (assemble_alias, dump_tm_clone_pairs): Update.
23364 * tree-inline.c (copy_bb): Update.
23365 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
23367 * symtab.c (dump_symtab_base): Print new flags.
23368 (verify_symtab_base): Verify new flags.
23369 (symtab_alias_ultimate_target): New function.
23370 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
23371 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
23373 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
23375 * i386.c (ix86_get_function_versions_dispatcher,
23376 ix86_generate_version_dispatcher_body): Update.
23377 (fold_builtin_cpu): Use varpool_add_new_variable.
23378 * varpool.c (varpool_remove_initializer): Break out from ...
23379 (varpool_remove_node): ... this one.
23380 (dump_varpool_node, varpool_node_for_asm,
23381 cgraph_variable_initializer_availability, varpool_analyze_node,
23382 varpool_assemble_decl, varpool_remove_unreferenced_decls,
23383 varpool_finalize_named_section_flags, varpool_create_variable_alias):
23386 2013-05-29 Jan Hubicka <jh@suse.cz>
23388 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
23390 2013-05-29 Easwaran Raman <eraman@google.com>
23392 PR tree-optimization/57442
23393 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
23394 when control exits the main loop.
23396 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
23398 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
23400 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
23401 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
23402 * rx/t-rx: Add rx100 under multi library matches option for nofpu
23405 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23407 PR tree-optimization/57441
23408 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
23409 Don't limit size of incr_vec to number of candidates.
23411 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
23413 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
23414 and mips16 directories.
23415 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
23416 (MULTILIB_DIRNAMES): Ditto.
23417 (MULTILIB_EXCEPTIONS): Add new exceptions.
23418 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
23419 (MULTILIB_DIRNAMES): Ditto.
23420 (MULTILIB_EXCEPTIONS): Add new exceptions.
23422 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
23423 Marcus Shawcroft <marcus.shawcroft@arm.com>
23425 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
23426 SYMBOL_TINY_ABSOLUTE.
23427 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
23428 SYMBOL_TINY_ABSOLUTE.
23429 (aarch64_expand_mov_immediate): Likewise.
23430 (aarch64_classify_symbol): Likewise.
23431 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
23432 Permit SYMBOL_TINY_ABSOLUTE.
23433 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
23435 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
23436 Marcus Shawcroft <marcus.shawcroft@arm.com>
23438 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
23439 Refactor if/switch. Replace gcc_assert with if.
23441 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
23443 * config/i386/i386.c (initial_ix86_tune_features): Enable
23444 FP Reassociation for AMD bdver1 and bdver2.
23446 2013-05-29 Martin Jambor <mjambor@suse.cz>
23448 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
23449 and IMAGPART_EXPR do not occur within other handled_components.
23451 2013-05-29 Richard Biener <rguenther@suse.de>
23453 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
23454 access on whether the use is in the BB we currently try to
23456 (vect_bb_vectorization_profitable_p): Pass the BB we currently
23457 vectorize to vect_bb_slp_scalar_cost.
23459 2013-05-29 Richard Biener <rguenther@suse.de>
23461 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
23462 computing scalar cost offsetted by stmts that are kept live
23464 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
23465 for computation of scalar cost.
23467 2013-05-28 Steve Ellcey <sellcey@mips.com>
23469 * config/mips/mips-cpus.def (mips32r2): Change processor type.
23471 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
23473 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
23474 array notation built-in reduction functions.
23475 * doc/passes.texi (Passes): Added documentation about changes done
23477 * doc/invoke.texi (C Dialect Options): Added documentation about
23478 the -fcilkplus flag.
23479 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
23480 (BUILTINS_DEF): Depend on cilkplus.def.
23481 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
23482 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
23483 * cilkplus.def: New file.
23485 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
23487 PR rtl-optimization/57439
23488 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
23490 2013-05-28 Easwaran Raman <eraman@google.com>
23492 PR tree-optimization/57337
23493 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
23494 (find_insert_point): Correctly identify the insertion point
23495 when two statements with the same UID is compared.
23497 2013-05-28 Richard Biener <rguenther@suse.de>
23499 PR tree-optimization/56787
23500 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
23501 from the list of data references.
23502 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
23504 (vect_analyze_loop_operations): Likewise.
23505 (vect_transform_loop): Remove clobbers.
23507 2013-05-28 Martin Jambor <mjambor@suse.cz>
23509 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
23510 and REALPART_EXPRs have scalar type.
23512 2013-05-28 Richard Biener <rguenther@suse.de>
23514 PR tree-optimization/57411
23515 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
23517 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
23518 virtual operand propagation.
23520 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
23522 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
23523 destination register for bmasksi_vis.
23524 (vector_init_bshuffle): Likewise.
23525 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
23527 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
23529 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
23530 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
23531 mode if the instruction isn't available in the original mode.
23532 * config/sparc/sparc.opt (mfix-ut699): New option.
23533 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
23534 (divdf3): Turn into expander.
23535 (divdf3_nofix): New insn.
23536 (divdf3_fix): Likewise.
23537 (divsf3): Disable if -mfix-ut699.
23538 (sqrtdf2): Turn into expander.
23539 (sqrtdf2_nofix): New insn.
23540 (sqrtdf2_fix): Likewise.
23541 (sqrtsf2): Disable if -mfix-ut699.
23543 2013-05-27 Richard Biener <rguenther@suse.de>
23545 PR middle-end/57412
23546 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
23547 block for the new loop.
23549 2013-05-27 Richard Biener <rguenther@suse.de>
23551 PR tree-optimization/57343
23552 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
23553 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
23554 (number_of_iterations_cond): Do not build the folded tree.
23556 2013-05-27 Richard Biener <rguenther@suse.de>
23559 PR middle-end/57381
23560 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
23561 OEP_CONSTANT_ADDRESS_OF retained.
23563 PR tree-optimization/57417
23564 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
23565 for unchanged base.
23566 (set_ssa_val_to): Compare addresses using
23567 get_addr_base_and_unit_offset.
23569 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
23571 PR rtl-optimization/56833
23572 * postreload.c (move2add_record_mode): New function.
23573 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
23574 (move2add_use_add2_insn): Use move2add_record_sym_value.
23575 (move2add_use_add3_insn): Likewise.
23576 (reload_cse_move2add): Use move2add_valid_value_p and
23577 move2add_record_mode. Invalidate call-clobbered and REG_INC
23578 affected regs by setting reg_mode to VOIDmode.
23579 (move2add_note_store): Don't pretend the inside of a SUBREG is
23580 the actual destination. Invalidate single/leading registers by
23581 setting reg_mode to VOIDmode.
23582 Use move2add_record_sym_value, move2add_valid_value_p and
23583 move2add_record_mode.
23585 2013-05-27 Richard Biener <rguenther@suse.de>
23587 PR tree-optimization/57396
23588 * tree-affine.c (double_int_constant_multiple_p): Properly
23589 return false for val == 0 and div != 0.
23591 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
23593 * config/mips/mips.h: Use #elif in preprocessor conditions.
23595 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
23598 * config/mips/constraints.md (kl): New constraint.
23599 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
23600 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
23601 constraint for operand 0. Split after CSE for MIPS16. Emit a move
23602 from LO for MIPS16.
23603 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
23605 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
23608 * config/mips/mips.c (mips_can_inline_p): New function.
23609 (TARGET_CAN_INLINE_P): Define.
23611 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
23613 * sched-int.h (ds_t, dw_t): Make unsigned int.
23614 Fix documentation that describes how all the ds_t bits are used.
23615 Reserve the last bit for delayed-branch scheduling.
23616 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
23617 (BITS_PER_DEP_WEAK): Fix definition and documentation.
23618 (gen_dep_weak_1): Remove prototype.
23619 * sched-deps.c (get_dep_weak_1): Make static.
23620 * target.def (speculate_insn, needs_block_p, gen_spec_check,
23621 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
23622 * doc/tm.texi: Regenerate.
23623 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
23625 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
23628 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
23630 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
23631 Sandra Loosemore <sandra@codesourcery.com>
23633 * config.gcc (powerpc-*): Allow native for with-cpu.
23635 2013-05-24 Jeff Law <law@redhat.com>
23637 PR tree-optimization/57124
23638 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
23639 conversion feeding a condition if the range has an overflow
23640 if -fstrict-overflow. Add warnings for when we do make the
23643 2013-05-24 Dehao Chen <dehao@google.com>
23645 * tree-cfg.c (locus_discrim_map): Fix the typo.
23646 (locus_discrim_hasher): Likewise.
23647 (locus_discrim_hasher::hash): Likewise.
23648 (locus_discrim_hasher::equal): Likewise.
23650 2013-05-24 Martin Jambor <mjambor@suse.cz>
23652 PR tree-optimization/57294
23653 * cgraph.h (ipa_record_stmt_references): Declare.
23654 * cgraphbuild.c (ipa_record_stmt_references): New function.
23655 (build_cgraph_edges): Use ipa_record_stmt_references.
23656 (rebuild_cgraph_edges): Likewise.
23657 (cgraph_rebuild_references): Likewise.
23658 * ipa-prop.c (ipa_modify_call_arguments): Discard references
23659 associated with the old statement and build references from the
23660 newly built statements.
23661 * ipa-ref.c (ipa_remove_stmt_references): New function.
23662 * ipa-ref.h (ipa_remove_stmt_references): Declare.
23664 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
23666 * lra-constraints.c (emit_spill_move): Use smaller mode for
23668 (check_and_process_move): Consider mem-reg moves for secondary
23670 (curr_insn_transform): Don't lose insns emitted before for
23671 secondary memory moves.
23672 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
23673 reg set up in the current insn.
23675 2013-05-24 Dehao Chen <dehao@google.com>
23677 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
23679 (locus_descrim_hasher::equal): Likewise.
23680 (build_gimple_cfg): New discriminator assignment algorithm.
23681 (make_edges): Likewise.
23682 (next_discriminator_for_locus): Likewise.
23683 (same_line_p): Likewise.
23684 (assign_discriminators): Likewise.
23685 (make_cond_expr_edges): Likewise.
23686 (make_gimple_switch_edges): Likewise.
23687 (make_goto_expr_edges): Likewise.
23688 (make_gimple_asm_edges): Likewise.
23690 2013-05-24 Ian Bolton <ian.bolton@arm.com>
23692 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
23693 X format specifier to only display bottom 16 bits.
23694 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
23695 immediate to match for operand 2, since it will be masked.
23697 2013-05-24 Richard Biener <rguenther@suse.de>
23699 PR tree-optimization/57287
23700 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
23701 all SSA names that occur in abnormal PHIs.
23703 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
23706 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
23707 that index is not negative.
23709 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
23711 PR rtl-optimization/55177
23712 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
23713 (simplify_byte_swapping_operation): New.
23714 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
23715 (simplify_relational_operation_1): Deal with BSWAP.
23717 2013-05-23 Richard Henderson <rth@redhat.com>
23720 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
23721 (ix86_reorg): Call it.
23723 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
23726 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
23727 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
23728 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
23730 2013-05-23 Christian Bruel <christian.bruel@st.com>
23733 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
23735 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
23736 Marcus Shawcroft <marcus.shawcroft@arm.com>
23738 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
23739 * config/aarch64/constraints.md (Usa): Remove.
23740 * doc/md.texi (AArch64 Usa): Remove.
23742 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
23743 Marcus Shawcroft <marcus.shawcroft@arm.com>
23745 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
23746 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
23747 * config/aarch64/predicates.md (aarch64_const_address): Remove.
23748 (aarch64_mov_operand): Use aarch64_mov_operand_p.
23750 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
23752 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
23753 instruction (AdvSIMD).
23754 * config/aarch64/aarch64-builtins.c
23755 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
23756 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
23758 2013-05-23 Martin Jambor <mjambor@suse.cz>
23760 PR middle-end/57347
23761 * tree.h (contains_bitfld_component_ref_p): Declare.
23762 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
23763 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
23765 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
23766 not access a bit-field. Assert all final offsets are byte-aligned.
23768 2013-05-23 Richard Biener <rguenther@suse.de>
23770 PR tree-optimization/57380
23771 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
23772 least one invariant or re-used load.
23773 * passes.c (init_optimization_passes): Move pass_phiprop before
23776 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
23778 * config/aarch64/aarch64-simd.md
23779 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
23781 2013-05-23 Richard Biener <rguenther@suse.de>
23783 PR middle-end/57381
23784 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
23785 OEP_CONSTANT_ADDRESS_OF retained.
23787 2013-05-23 Jakub Jelinek <jakub@redhat.com>
23789 PR middle-end/57344
23790 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
23791 don't lower unit. Handle unit not being always BITS_PER_WORD.
23793 2013-05-23 Richard Biener <rguenther@suse.de>
23795 PR rtl-optimization/57341
23796 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
23797 instead of true_dependence.
23799 2013-05-22 David Malcolm <dmalcolm@redhat.com>
23801 * bb-reorder.c (branch_threshold): Make const.
23802 (exec_threshold): Ditto.
23804 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
23805 Pat Haugen <pthaugen@us.ibm.com>
23806 Peter Bergner <bergner@vnet.ibm.com>
23808 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
23809 documentation for the power8 crypto builtins.
23811 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
23813 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
23814 macros for defining power8 builtin functions.
23815 (BU_P8V_AV_2): Likewise.
23816 (BU_P8V_AV_P): Likewise.
23817 (BU_P8V_VSX_1): Likewise.
23818 (BU_P8V_OVERLOAD_1): Likewise.
23819 (BU_P8V_OVERLOAD_2): Likewise.
23820 (BU_CRYPTO_1): Likewise.
23821 (BU_CRYPTO_2): Likewise.
23822 (BU_CRYPTO_3): Likewise.
23823 (BU_CRYPTO_OVERLOAD_1): Likewise.
23824 (BU_CRYPTO_OVERLOAD_2): Likewise.
23825 (XSCVSPDP): Fix typo, point to the correct instruction.
23826 (VCIPHER): Add power8 crypto builtins.
23827 (VCIPHERLAST): Likewise.
23828 (VNCIPHER): Likewise.
23829 (VNCIPHERLAST): Likewise.
23830 (VPMSUMB): Likewise.
23831 (VPMSUMH): Likewise.
23832 (VPMSUMW): Likewise.
23833 (VPERMXOR_V2DI): Likewise.
23834 (VPERMXOR_V4SI: Likewise.
23835 (VPERMXOR_V8HI: Likewise.
23836 (VPERMXOR_V16QI: Likewise.
23837 (VSHASIGMAW): Likewise.
23838 (VSHASIGMAD): Likewise.
23839 (VPMSUM): Likewise.
23840 (VPERMXOR): Likewise.
23841 (VSHASIGMA): Likewise.
23843 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
23844 __CRYPTO__ if the crypto instructions are available.
23845 (altivec_overloaded_builtins): Add support for overloaded power8
23848 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
23849 support for power8 crypto builtins.
23850 (builtin_function_type): Likewise.
23851 (altivec_init_builtins): Add support for builtins that take vector
23852 long long (V2DI) arguments.
23854 * config/rs6000/crypto.md: New file, define power8 crypto
23857 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
23858 Pat Haugen <pthaugen@us.ibm.com>
23859 Peter Bergner <bergner@vnet.ibm.com>
23861 * doc/invoke.texi (Option Summary): Add power8 options.
23862 (RS/6000 and PowerPC Options): Likewise.
23864 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
23865 constraints.md instead of rs6000.h. Reorder w* constraints. Add
23866 wm, wn, wr documentation.
23868 * config/rs6000/constraints.md (wm): New constraint for VSX
23869 registers if direct move instructions are enabled.
23870 (wn): New constraint for no registers.
23871 (wq): New constraint for quad word even GPR registers.
23872 (wr): New constraint if 64-bit instructions are enabled.
23873 (wv): New constraint if power8 vector instructions are enabled.
23874 (wQ): New constraint for quad word memory locations.
23876 * config/rs6000/predicates.md (const_0_to_15_operand): New
23877 constraint for 0..15 for crypto instructions.
23878 (gpc_reg_operand): If VSX allow registers in VSX registers as well
23879 as GPR and floating point registers.
23880 (int_reg_operand): New predicate to match only GPR registers.
23881 (base_reg_operand): New predicate to match base registers.
23882 (quad_int_reg_operand): New predicate to match even GPR registers
23883 for quad memory operations.
23884 (vsx_reg_or_cint_operand): New predicate to allow vector logical
23885 operations in both GPR and VSX registers.
23886 (quad_memory_operand): New predicate for quad memory operations.
23887 (reg_or_indexed_operand): New predicate for direct move support.
23889 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
23890 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
23891 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
23892 (POWERPC_MASKS): Add power8 options.
23893 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
23896 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
23897 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
23899 * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
23900 (-mpower8-fusion): New power8 options.
23901 (-mpower8-fusion-sign): Likewise.
23902 (-mpower8-vector): Likewise.
23903 (-mcrypto): Likewise.
23904 (-mdirect-move): Likewise.
23905 (-mquad-memory): Likewise.
23907 * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
23908 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
23910 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
23911 (rs6000_debug_vector_unit): Add p8_vector.
23912 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
23913 definitions. Also print fusion state.
23914 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
23915 (rs6000_builtin_mask_calculate): Add power8 builtin support.
23916 (rs6000_option_override_internal): Add support for power8.
23917 (rs6000_common_init_builtins): Add debugging for skipped builtins
23918 if -mdebug=builtin.
23919 (rs6000_adjust_cost): Add power8 support.
23920 (rs6000_issue_rate): Likewise.
23921 (insn_must_be_first_in_group): Likewise.
23922 (insn_must_be_last_in_group): Likewise.
23923 (force_new_group): Likewise.
23924 (rs6000_register_move_cost): Likewise.
23925 (rs6000_opt_masks): Likewise.
23927 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
23928 power8 capable assembler, default to power7 options.
23929 (TARGET_DIRECT_MOVE): Likewise.
23930 (TARGET_CRYPTO): Likewise.
23931 (TARGET_P8_VECTOR): Likewise.
23932 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
23933 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
23934 (VECTOR_MEM_P8_VECTOR_P): Likewise.
23935 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
23936 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
23937 (TARGET_XSCVDPSPN): Likewise.
23938 (TARGET_XSCVSPDPN): Likewsie.
23939 (TARGET_SYNC_HI_QI): Likewise.
23940 (TARGET_SYNC_TI): Likewise.
23941 (MASK_CRYPTO): Likewise.
23942 (MASK_DIRECT_MOVE): Likewise.
23943 (MASK_P8_FUSION): Likewise.
23944 (MASK_P8_VECTOR): Likewise.
23945 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
23946 temporary used by some of the direct move instructions to get two FP
23947 temporary registers does not force creation of a stack frame.
23948 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
23949 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
23950 that any VSX registers are tieable, even if they are also an
23951 Altivec vector mode.
23952 (r6000_reg_class_enum): Add wm, wr, wv constraints.
23953 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
23954 (RS6000_BTM_CRYPTO): Likewise.
23955 (RS6000_BTM_COMMON): Likewise.
23957 * config/rs6000/rs6000.md (cpu attribute): Add power8.
23958 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
23959 (enum rs6000_vector): Add power8 vector support.
23961 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23965 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
23966 (any_sibcall_could_use_r3): this and handle indirect calls.
23967 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
23969 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23971 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
23973 2013-05-22 Richard Biener <rguenther@suse.de>
23975 PR middle-end/57349
23976 * profile.c (branch_prob): Do not split blocks that are
23977 abnormally receiving from ECF_RETURNS_TWICE functions.
23979 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23981 * recog.c (offsettable_address_addr_space_p): Fix calculation of
23982 address mode. Move pointer mode initialization to the same place.
23984 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
23986 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
23987 while it has any effect.
23989 2013-05-21 Easwaran Raman <eraman@google.com>
23991 PR tree-optimization/57322
23992 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
23993 UID of the statement added to the BB to be 1.
23995 2013-05-21 Jakub Jelinek <jakub@redhat.com>
23997 PR tree-optimization/57331
23998 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
23999 of conversion from pointer type to integral type with integer.
24001 2013-05-21 Martin Jambor <mjambor@suse.cz>
24004 * ipa-prop.c (ipa_read_node_info): Process param_used and
24005 controlled_uses in the same order as when writing.
24007 2013-05-21 Magnus Granberg <baldrick@free.fr>
24010 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
24012 2013-05-21 Richard Biener <rguenther@suse.de>
24014 PR tree-optimization/57318
24015 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
24016 estimate stmts with side-effects as likely eliminated.
24018 2013-05-21 Richard Biener <rguenther@suse.de>
24020 PR tree-optimization/57330
24021 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
24022 preserve the call stmts fntype.
24024 2013-05-21 Richard Biener <rguenther@suse.de>
24026 PR tree-optimization/57303
24027 * tree-ssa-sink.c (statement_sink_location): Improve killing
24028 stmt detection and properly handle self-assignments.
24030 2013-05-21 Christian Bruel <christian.bruel@st.com>
24032 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
24033 spanning registers. LEAF_REG_REMAP is supported only for contiguous
24034 registers. Set register size out of the PARALLEL loop.
24036 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
24039 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
24040 (*fmasf4, *fmasf4_media): New insns.
24042 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
24044 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
24045 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
24046 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
24047 (mips_idiv_insns): Update the comments to say that the returned
24048 instruction counts are in units of BASE_INSN_LENGTH.
24049 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
24050 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
24051 using 2 rather than 4 as the length of indirect MIPS16 and
24052 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
24053 length of a NOP. Don't divide MIPS16 lengths by 2.
24054 (mips16_split_long_branches): Assume a branch is long if the
24055 length is greater than 4 rather than 8.
24056 * config/mips/mips.md (length): Give MIPS16 lengths directly,
24057 rather than multiplying them by 2. Multiply instruction counts
24058 by BASE_INSN_LENGTH rather than 4.
24059 (*jump_mips16, tls_get_tp_mips16_<mode>)
24060 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
24062 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
24064 * config/mips/mips.md (extended_mips16): Remove branch case.
24065 (length): Remove duplicated extended_mips16 test.
24067 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
24069 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
24071 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
24073 * recog.h (Recog_data): Rename to...
24074 (recog_data_d): ...this.
24075 (recog_data): Update accordingly.
24076 * recog.c (recog_data): Likewise.
24077 * reload.c (save_recog_data): Likewise.
24078 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
24079 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
24081 2013-05-17 Julian Brown <julian@codesourcery.com>
24083 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
24084 found in a REG_EQUAL note, invalidate it.
24086 2013-05-17 Easwaran Raman <eraman@google.com>
24088 * tree-ssa-reassoc.c (find_insert_point): New function.
24089 (insert_stmt_after): Likewise.
24090 (get_def_stmt): Likewise.
24091 (ensure_ops_are_available): Likewise.
24092 (not_dominated_by): Likewise.
24093 (rewrite_expr_tree): Do not move statements beyond what is
24094 necessary. Remove call to swap_ops_for_binary_stmt...
24095 (reassociate_bb): ... and move it here.
24096 (build_and_add_sum): Assign UIDs for new statements.
24097 (linearize_expr): Likewise.
24098 (do_reassoc): Renumber gimple statement UIDs.
24100 2013-05-17 Jan Hubicka <jh@suse.cz>
24102 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
24104 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
24105 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
24107 (output_weakrefs): Update.
24109 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
24110 Martin Jambor <mjambor@suse.cz>
24112 PR middle-end/57276
24113 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
24114 value that corresponds to the given aggval is found in values vector.
24116 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
24118 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
24119 sse, sse2, sse3, ssse3 and sse4a flags to options.
24121 2013-05-17 David Malcolm <dmalcolm@redhat.com>
24123 * gengtype-state.c: (s_expr_writer): New class, to handle
24124 prettifying of output layout of s-expressions.
24125 (state_writer): New class, to write out gtype.state.
24126 (state_written_type_count): Move this variable into member data of
24128 (s_expr_writer::s_expr_writer): New code: constructor for new class
24129 (state_writer::state_writer(): ditto
24130 (s_expr_writer::write_new_line): New function
24131 (s_expr_writer::write_any_indent): ditto
24132 (s_expr_writer::begin_s_expr): ditto
24133 (s_expr_writer::end_s_expr): ditto
24134 (write_state_fileloc): convert to method of state_writer...
24135 (state_writer:: write_state_fileloc): ...and use methods of
24136 s_expr_writer to write indentation into the gtype.state output file
24137 to visually represent the hierarchical structure of the list
24139 (write_state_fields): ditto, renaming to...
24140 (state_writer::write_state_fields)
24141 (write_state_a_string): ditto, renaming to...
24142 (state_writer::write_state_a_string)
24143 (write_state_string_option): ditto, renaming to...
24144 (state_writer::write_state_string_option)
24145 (write_state_type_option): ditto, renaming to...
24146 (state_writer::write_state_type_option)
24147 (write_state_nested_option): ditto, renaming to...
24148 (state_writer::write_state_nested_option)
24149 (write_state_option): ditto, renaming to...
24150 (state_writer::write_state_option)
24151 (write_state_options): ditto, renaming to...
24152 (state_writer::write_state_options)
24153 (write_state_lang_bitmap): ditto, renaming to...
24154 (state_writer::write_state_lang_bitmap)
24155 (write_state_version): ditto, renaming to...
24156 (state_writer::write_state_version)
24157 (write_state_scalar_type): ditto, renaming to...
24158 (state_writer::write_state_scalar_type)
24159 (write_state_string_type): ditto, renaming to...
24160 (state_writer::write_state_string_type)
24161 (write_state_undefined_type): ditto, renaming to...
24162 (state_writer::write_state_undefined_type)
24163 (write_state_struct_union_type): ditto, renaming to...
24164 (state_writer::write_state_struct_union_type)
24165 (write_state_struct_type): ditto, renaming to...
24166 (state_writer::write_state_struct_type)
24167 (write_state_user_struct_type): ditto, renaming to...
24168 (state_writer::write_state_user_struct_type)
24169 (write_state_lang_struct_type): ditto, renaming to...
24170 (state_writer::write_state_lang_struct_type)
24171 (write_state_param_struct_type): ditto, renaming to...
24172 (state_writer::write_state_param_struct_type)
24173 (write_state_pointer_type): ditto, renaming to...
24174 (state_writer::write_state_pointer_type)
24175 (write_state_array_type): ditto, renaming to...
24176 (state_writer::write_state_array_type)
24177 (write_state_gc_used): ditto, renaming to...
24178 (state_writer::write_state_gc_used)
24179 (write_state_common_type_content): ditto, renaming to...
24180 (state_writer::write_state_common_type_content)
24181 (write_state_type): ditto, renaming to...
24182 (state_writer::write_state_type)
24183 (write_state_pair_list): ditto, renaming to...
24184 (state_writer::write_state_pair_list)
24185 (write_state_pair): ditto, renaming to...
24186 (state_writer::write_state_pair)
24187 (write_state_typedefs): ditto, renaming to...
24188 (state_writer::write_state_typedefs)
24189 (write_state_structures): ditto, renaming to...
24190 (state_writer::write_state_structures)
24191 (write_state_param_structs): ditto, renaming to...
24192 (state_writer::write_state_param_structs)
24193 (write_state_variables): ditto, renaming to...
24194 (state_writer::write_state_variables)
24195 (write_state_srcdir): ditto, renaming to...
24196 (state_writer::write_state_srcdir)
24197 (write_state_files_list): ditto, renaming to...
24198 (state_writer::write_state_files_list)
24199 (write_state_languages): ditto, renaming to...
24200 (state_writer::write_state_languages)
24201 (write_state): create a state_writer instance and use it when
24202 writing out the state file
24204 2013-05-17 Mike Stump <mikestump@comcast.net>
24206 PR rtl-optimization/57304
24207 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
24208 accessing DF_REF_REAL_LOC.
24210 2013-05-17 Jakub Jelinek <jakub@redhat.com>
24212 PR rtl-optimization/57281
24213 PR rtl-optimization/57300
24214 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
24215 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
24216 what the other splitter did if the registers are dead.
24218 2013-05-17 Richard Biener <rguenther@suse.de>
24220 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
24223 2013-05-17 Jakub Jelinek <jakub@redhat.com>
24225 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
24228 2013-05-17 Marek Polacek <polacek@redhat.com>
24230 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
24231 length when doing non-zero store of storing '\0' to '\0'.
24233 2013-05-17 Jakub Jelinek <jakub@redhat.com>
24235 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
24236 vect_external_def oprnd1 with loop_vinfo, try to emit
24237 optional cast, negation and and stmts on the loop preheader
24238 edge instead of into the pattern def seq.
24240 PR tree-optimization/57051
24241 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
24242 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
24244 2013-05-16 Nick Clifton <nickc@redhat.com>
24246 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
24247 (rl78_is_naked_func): New function.
24248 (rl78_expand_prologue): Skip prologue generation for naked functions.
24249 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
24250 * doc/extend.texi (naked): Add RL78 to the list of processors
24251 that supports this attribute.
24253 2013-05-16 Jeff Law <law@redhat.com>
24255 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
24257 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
24259 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
24260 cache parameters using detect_caches_amd also for CYRIX,
24261 NSC and TM2 signatures.
24263 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
24264 Dzianis Kahanovich <mahatma@eu.by>
24268 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
24269 VIA/Centaur processors and determine their cache parameters
24270 using detect_caches_amd.
24272 2013-05-16 Teresa Johnson <tejohnson@google.com>
24274 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
24275 (rtl_verify_edges): New function.
24276 (rtl_verify_bb_insns): Ditto.
24277 (rtl_verify_bb_pointers): Ditto.
24278 (rtl_verify_bb_insn_chain): Ditto.
24279 (rtl_verify_fallthru): Ditto.
24280 (rtl_verify_bb_layout): Ditto.
24281 (rtl_verify_flow_info_1): Outline checks into new functions.
24282 (rtl_verify_flow_info): Ditto.
24284 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
24286 * cfghooks.c (copy_bbs): Add update_dominance argument.
24287 * cfghooks.h (copy_bbs): Update prototype.
24288 * tree-cfg.c (gimple_duplicate_sese_region):
24289 Add update_dominance argument.
24290 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
24291 * tree-ssa-loop-ch.c (copy_loop_headers): Update
24292 gimple_duplicate_sese_region call.
24293 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
24294 Update copy_bbs call.
24295 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
24296 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
24298 2013-05-16 Jakub Jelinek <jakub@redhat.com>
24300 * tree-vectorizer.h (NUM_PATTERNS): Increment.
24301 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
24302 vect_recog_rotate_pattern.
24303 (vect_recog_rotate_pattern): New function.
24305 2013-05-16 Jason Merrill <jason@redhat.com>
24307 * Makefile.in (LLINKER): New variable.
24308 (mostlyclean): Remove link mutex.
24309 * configure.ac: Handle --enable-link-mutex.
24310 * lock-and-run.sh: New script.
24312 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24315 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
24318 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24320 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
24322 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
24324 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
24325 * config/arm/arm.c (next_consecutive_mem): New function.
24326 (gen_movmem_ldrd_strd): Likewise.
24327 * config/arm/arm.md (movmemqi): Update condition and code.
24328 (unaligned_loaddi, unaligned_storedi): New patterns.
24330 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24332 * config.gcc: Obsolete *-*-solaris2.9*.
24333 * doc/install.texi (Specific, *-*-solaris2*): Document it.
24335 2013-05-16 Richard Biener <rguenther@suse.de>
24337 * passes.c (init_optimization_passes): Move pass_parallelize_loops
24338 earlier, after GRAPHITE transforms and IV canonicalization.
24340 2013-05-16 Jakub Jelinek <jakub@redhat.com>
24342 * omp-low.c (extract_omp_for_data): For collapsed loops,
24343 if at least one of the loops is known at compile time to
24344 iterate zero times, set count to 0.
24345 (expand_omp_regimplify_p): New function.
24346 (expand_omp_for_generic): For collapsed loops, if at least
24347 one of the loops isn't known to iterate at least once,
24348 add runtime check with setting count to 0.
24349 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
24350 For unsigned types if it isn't known at compile time that
24351 the loop will iterate at least once, add runtime check to bypass
24352 the whole loop if initial condition isn't true.
24354 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
24356 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
24358 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
24360 PR middle-end/57286
24361 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
24362 transformations to avoid an infinite loop.
24364 2013-05-16 Marek Polacek <polacek@redhat.com>
24366 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
24368 2013-05-15 Leif Ekblad <leif@rdos.net>
24370 * config/i386/i386.c (ix86_decompose_address): Use
24371 DEFAULT_TLS_SEG_REG to access TLS segment register.
24372 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
24373 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
24374 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
24376 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
24379 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
24380 sibling calls to functions that would normally be lazily bound,
24381 unless $gp is call-clobbered.
24383 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
24385 * config/i386/i386.c (ix86_option_override_internal): Update
24386 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
24387 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
24388 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
24389 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
24391 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
24393 2013-05-15 Andreas Schwab <schwab@suse.de>
24395 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
24396 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
24399 2013-05-15 Teresa Johnson <tejohnson@google.com>
24401 * loop-unroll.c (report_unroll_peel): Check decision before
24402 emitting unroll/peel message.
24404 2013-05-15 Teresa Johnson <tejohnson@google.com>
24406 * function.h (has_bb_partition): New rtl_data flag.
24407 (bb_reorder_complete): Ditto.
24408 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
24409 instead of flag_reorder_blocks_and_partition.
24410 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
24411 with some enhancements.
24412 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
24413 * bb-reorder.c (connect_traces): Check for has_bb_partition
24414 instead of flag_reorder_blocks_and_partition.
24415 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
24416 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
24417 verify_hot_cold_block_grouping.
24418 (partition_hot_cold_basic_blocks): Set has_bb_partition.
24420 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24423 * config/arm/predicates.md (call_insn_operand): New predicate.
24424 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
24425 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
24426 if insn is not a tail call.
24427 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
24429 * config/arm/arm.h (enum reg_class): New caller save register class.
24430 (REG_CLASS_NAMES): Likewise.
24431 (REG_CLASS_CONTENTS): Likewise.
24432 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
24435 2013-05-15 Richard Biener <rguenther@suse.de>
24437 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
24438 of MSG_OPTIMIZED_LOCATIONS.
24439 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
24440 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
24442 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
24443 of MSG_OPTIMIZED_LOCATIONS.
24444 (execute_vect_slp): Likewise.
24445 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
24446 (vect_create_cond_for_alias_checks): Likewise.
24447 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
24448 (vect_recog_widen_mult_pattern): Likewise.
24449 (vect_recog_widen_sum_pattern): Likewise.
24450 (vect_recog_over_widening_pattern): Likewise.
24451 (vect_recog_widen_shift_pattern): Likewise.
24452 (vect_recog_vector_vector_shift_pattern): Likewise.
24453 (vect_recog_divmod_pattern): Likewise.
24454 (vect_recog_mixed_size_cond_pattern): Likewise.
24455 (vect_recog_bool_pattern): Likewise.
24456 (vect_pattern_recog_1): Likewise.
24458 2013-05-15 Martin Jambor <mjambor@suse.cz>
24460 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
24461 non-functions to builtin_unreachable.
24462 * ipa-inline-transform.c (inline_call): Do not assert estimates were
24463 correct when new direct edges were discovered.
24465 2013-05-15 Martin Jambor <mjambor@suse.cz>
24467 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
24468 header, print symbol order instead of node uid, print more information
24469 about indirect edge targets.
24470 (ipa_make_edge_direct_to_target): Print symbol order instead of node
24472 (ipa_make_edge_direct_to_target): Likewise.
24473 (remove_described_reference): Likewise.
24474 (propagate_controlled_uses): Likewise.
24475 (ipa_print_node_params): Also print symbol order.
24476 (ipcp_transform_function): Print symbol order instead of node uids.
24477 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
24478 (cgraph_get_create_real_symbol_node): Likewise.
24479 * ipa-cp.c (print_lattice): Likewise.
24480 (print_all_lattices): Likewise.
24481 (determine_versionability): Likewise.
24482 (initialize_node_lattices): Likewise.
24483 (estimate_local_effects): Likewise.
24484 (update_profiling_info): Likewise.
24485 (create_specialized_node): Likewise.
24486 (perhaps_add_new_callers): Likewise.
24487 (decide_about_value): Likewise.
24488 (decide_whether_version_node): Likewise.
24489 (identify_dead_nodes): Likewise.
24490 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
24491 (dump_inline_summary): Likewise.
24492 (estimate_node_size_and_time): Likewise.
24493 (inline_analyze_function): Likewise.
24494 * ipa-inline.c (report_inline_failed_reason): Likewise.
24495 (want_early_inline_function_p): Likewise.
24496 (edge_badness): Likewise.
24497 (update_edge_key): Likewise.
24498 (inline_small_functions): Likewise. Add dumping of order to two other
24500 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
24501 instead of node uids.
24502 (propagate_pure_const): Likewise.
24503 (propagate_pure_const): Likewise.
24504 * ipa-utils.c (dump_cgraph_node_set): Likewise.
24505 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
24506 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
24508 * tree-pretty-print.c (dump_function_header): Likewise.
24509 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
24510 Print symbol order instead of node uids.
24512 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24514 * config/s390/s390.c (s390_register_move_cost): Don't impose the
24515 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
24517 2013-05-15 Richard Biener <rguenther@suse.de>
24519 PR tree-optimization/57275
24520 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
24521 return value for fail to do runtime alias checks for gather loads.
24523 2013-05-15 Jan Hubicka <jh@suse.cz>
24527 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
24528 weakrefs are not external.
24529 (lto_symtab_merge_decls): Fix thinko when dealing with
24530 non-lto_symtab decls.
24531 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
24532 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
24533 * varpool.c (dump_varpool_node): Dump more flags.
24535 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
24537 * config/i386/i386.c (processor_alias_table): Add instruction
24538 FSGSBASE for AMD bdver3 architecture.
24540 2013-05-14 Jakub Jelinek <jakub@redhat.com>
24542 * tree.c (warn_deprecated_use): Print file:line using locus color.
24543 * diagnostic.c (diagnostic_report_current_module): Print file:line
24544 and file:line:column using locus color.
24546 2013-05-14 Mike Stump <mikestump@comcast.net>
24548 * gdbinit.in: Add __null.
24550 2013-05-14 Mike Stump <mikestump@comcast.net>
24552 * recog.h: Rename struct recog_data to Recog_data.
24553 * recog.c: Likewise.
24554 * reload.c (can_reload_into): Likewise.
24555 * config/picochip/picochip.c: Likewise.
24557 2013-05-14 Mike Stump <mikestump@comcast.net>
24559 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
24561 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
24563 * resource.h (struct resources): Remove unch_memory member.
24564 (CLEAR_RESOURCE): Don't clear unch_memory.
24565 * resource.c (mark_referenced_resources): Don't set it.
24566 (mark_set_resources): Likewise.
24567 (mark_target_live_regs): Don't clear it.
24568 (init_resource_info): Likewise.
24569 * reorg.c (resource_conflicts_p): Don't compare it.
24570 (redundant_insn): Don't set it.
24572 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
24574 * emit-rtl.c (next_label): Remove unused function.
24575 (skip_consecutive_labels, link_cc0_insns): Move to ...
24576 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
24577 only place where these functions are used, and make them static.
24579 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
24581 * fold-const.c (fold_negate_expr): Handle vectors.
24582 (fold_truth_not_expr): Make it static.
24583 (fold_invert_truthvalue): New static function.
24584 (invert_truthvalue_loc): Handle vectors. Do not call
24585 fold_truth_not_expr directly.
24586 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
24587 <TRUTH_NOT_EXPR>: Do not cast to boolean.
24588 (fold_comparison): Handle vector constants.
24589 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
24590 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
24591 * tree.h (fold_truth_not_expr): Remove declaration.
24593 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
24595 * config/aarch64/aarch64-simd.md
24596 (aarch64_vcond_internal<mode>): Rename to...
24597 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
24598 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
24599 float modes. Clarify all iterator modes.
24600 (vcond<mode><mode>): Use new name for vcond expanders.
24601 (vcond<v_cmp_result><mode>): Likewise.
24602 (vcondu<mode><mode>: Likewise.
24603 * config/aarch64/iterators.md (VDQF_COND): New.
24605 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
24608 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
24609 variable for the shift amount. Check that we shift by non-negative
24612 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
24615 * config/arm/arm.h (EPILOGUE_USES): Only return true
24616 for LR_REGNUM after epilogue_completed.
24618 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
24620 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
24621 is error_mark_node.
24623 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24626 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
24627 and Solaris 11+/x86 with gld.
24628 * configure: Regenerate.
24630 2013-05-14 Jakub Jelinek <jakub@redhat.com>
24632 * expmed.c (expand_shift_1): Canonicalize rotates by
24633 constant bitsize / 2 to bitsize - 1.
24634 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
24635 case ROTATERT>: Likewise.
24638 2013-05-10 Jakub Jelinek <jakub@redhat.com>
24640 * config/i386/i386.md (rotateinv): New code attr.
24641 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
24642 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
24643 roll $31, %eax, etc.
24645 2013-05-14 Richard Biener <rguenther@suse.de>
24647 PR middle-end/57235
24648 * tree-eh.c (sink_clobbers): Give up for successors with
24649 multiple predecessors and no virtual uses.
24651 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
24653 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
24654 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
24656 2013-05-14 Jakub Jelinek <jakub@redhat.com>
24658 PR middle-end/57251
24659 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
24660 the case when both op0 and op1 have VOIDmode.
24662 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
24664 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
24665 in multiply-accumulate mode.
24667 2013-05-13 Guozhi Wei <carrot@google.com>
24669 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
24671 2013-05-13 Kai Tietz <ktietz@redhat.com>
24674 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
24675 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
24676 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
24677 * config/i386/i386.c (ix86_option_override_internal): Likewise.
24678 (ix86_expand_prologue): Likewise.
24679 (ix86_expand_split_stack_prologue): Likewise.
24680 (legitimate_pic_address_disp_p): Likewise.
24681 (legitimize_pic_address): Likewise.
24682 (legitimize_tls_address): Likewise.
24683 (legitimize_pe_coff_symbol): Likewise.
24684 (output_pic_addr_const): Likewise.
24685 (construct_plt_address): Likewise.
24686 (ix86_expand_call): Likewise.
24687 (x86_output_mi_thunk): Likewise.
24688 (x86_function_profiler): Likewise.
24690 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
24692 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
24693 similar switch cases.
24694 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
24695 (aarch64_simd_mov_to_<mode>low): Delete.
24696 (aarch64_simd_mov_to_<mode>high): Delete.
24697 (move_lo_quad_<mode>): Add w<-r alternative.
24698 (aarch64_simd_move_hi_quad_<mode>): Likewise.
24699 (aarch64_simd_mov_from_*): Update type attribute.
24700 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
24703 2013-05-13 Jan Hubicka <jh@suse.cz>
24705 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
24706 * config/i386/i386.c (ix86_compute_frame_layout,
24707 ix86_expand_epilogue, emit_i387_cw_initialization,
24708 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
24709 ix86_local_alignment): Fix use of size/speed predicates.
24711 2013-05-13 Jakub Jelinek <jakub@redhat.com>
24713 PR tree-optimization/45216
24714 PR tree-optimization/57157
24715 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
24716 the (-Y) & (B - 1) variant if OP is |.
24717 * expmed.c (expand_shift_1): For rotations by const0_rtx just
24718 return shifted. Use (-op1) & (prec - 1) as other_amount
24719 instead of prec - op1.
24721 2013-05-13 Martin Jambor <mjambor@suse.cz>
24723 PR middle-end/42371
24724 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
24725 (ipa_constant_data): New type.
24726 (ipa_jump_func): Use ipa_constant_data to hold information about
24727 constant jump functions.
24728 (ipa_get_jf_constant): Adjust to jump function type changes.
24729 (ipa_get_jf_constant_rdesc): New function.
24730 (ipa_param_descriptor): New field controlled_uses.
24731 (ipa_get_controlled_uses): New function.
24732 (ipa_set_controlled_uses): Likewise.
24733 * ipa-ref.h (ipa_find_reference): Declare.
24734 * ipa-prop.c (ipa_cst_ref_desc): New type.
24735 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
24737 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
24738 New parameter cs. Adjust all callers.
24739 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
24740 (remove_described_reference): New function.
24741 (jfunc_rdesc_usable): Likewise.
24742 (try_make_edge_direct_simple_call): Decrement controlled use count,
24743 attempt to remove reference if it hits zero.
24744 (combine_controlled_uses_counters): New function.
24745 (propagate_controlled_uses): Likewise.
24746 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
24747 (ipa_edge_duplication_hook): Duplicate reference descriptions.
24748 (ipa_print_node_params): Print described use counter.
24749 (ipa_write_jump_function): Adjust to jump function type changes.
24750 (ipa_read_jump_function): New parameter CS, pass it to
24751 ipa_set_jf_constant. Adjust caller.
24752 (ipa_write_node_info): Stream controlled use count
24753 (ipa_read_node_info): Likewise.
24754 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
24756 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
24757 count. Remove cloning-added reference if it reaches zero.
24758 * ipa-ref.c (ipa_find_reference): New function.
24760 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
24762 * config/i386/i386.c (processor_target_table): Modified default
24763 alignment values for AMD BD and BT architectures.
24765 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
24767 * tree-vect-generic.c (uniform_vector_p): Move ...
24768 * tree.c (uniform_vector_p): ... here.
24769 * tree.h (uniform_vector_p): Declare it.
24770 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
24773 2013-05-13 Jakub Jelinek <jakub@redhat.com>
24775 PR tree-optimization/57230
24776 * tree-ssa-strlen.c (handle_char_store): Record length for
24777 array store from STRING_CST.
24779 PR tree-optimization/57230
24780 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
24783 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
24785 * config/epiphany/epiphany.c (epiphany_init): Check size of
24786 NUM_MODES_FOR_MODE_SWITCHING.
24787 (epiphany_expand_prologue):
24788 Remove CONFIG_REGNUM initial value handling code.
24789 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
24790 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
24791 (emit_set_fp_mode, epiphany_mode_after): Likewise.
24792 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
24793 Don't return 1 for FP_MODE_NONE.
24794 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
24795 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
24796 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
24797 * config/epiphany/epiphany.md (save_config): New pattern.
24799 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
24801 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
24803 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
24805 * config/i386/i386.md (memory): Handle sseishft1.
24806 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
24807 (*vec_extractv2di_1): Ditto.
24809 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
24811 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
24814 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
24816 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
24817 Add mthumb/march=armv7-a multilib.
24818 Add mthumb/march=armv7-r multilib.
24819 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
24821 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
24823 * config/v850/t-rtems: Add more multilibs.
24825 2013-05-10 Richard Biener <rguenther@suse.de>
24827 PR tree-optimization/57214
24828 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
24829 not propagate from SSA names that occur in abnormal PHI nodes.
24831 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
24833 * stor-layout.c (element_precision): New function.
24834 * machmode.h (element_precision): Declare it.
24835 * tree.c (build_minus_one_cst): New function.
24836 (element_precision): Likewise.
24837 * tree.h (build_minus_one_cst): Declare new function.
24838 (element_precision): Likewise.
24839 * fold-const.c (operand_equal_p): Use element_precision.
24840 (fold_binary_loc): Handle vector types.
24841 * convert.c (convert_to_integer): Use element_precision.
24842 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
24845 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
24847 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
24848 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
24849 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
24850 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
24851 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
24852 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
24853 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
24854 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
24855 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
24856 (Uuw8): New constraints.
24857 (Usb4): Move into alphabetical order.
24858 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
24859 (sd8_operand, ub8_operand, uw8_operand): New predicates.
24860 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
24861 previously unnamed patterns.
24862 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
24863 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
24864 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
24865 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
24866 of set_attr_alternative/if_then_else. Use extended_mips16 instead
24867 of specific lengths.
24869 2013-05-10 Jakub Jelinek <jakub@redhat.com>
24871 * config/i386/i386.md (rotateinv): New code attr.
24872 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
24873 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
24874 roll $31, %eax, etc.
24876 PR tree-optimization/45216
24877 PR tree-optimization/57157
24878 * tree-ssa-forwprop.c (simplify_rotate): New function.
24879 (ssa_forward_propagate_and_combine): Call it.
24881 2013-05-10 Richard Biener <rguenther@suse.de>
24883 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
24884 disable peeling when we version for aliasing.
24885 (vector_alignment_reachable_p): Honor explicit user alignment.
24886 (vect_supportable_dr_alignment): Likewise.
24887 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
24888 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
24889 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
24890 then peeling to arrange for the cost-model check to come first.
24892 2013-05-10 Alan Modra <amodra@gmail.com>
24894 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
24895 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
24896 * configure: Regenerate.
24898 2013-05-10 Alan Modra <amodra@gmail.com>
24901 * varasm.c (default_elf_select_section): Move !DECL_P check..
24902 (get_named_section): ..to here before calling get_section_name.
24904 (default_section_type_flags): Add DECL_P check.
24905 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
24906 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
24908 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
24910 * config/epiphany/epiphany.c (epiphany_expand_prologue):
24911 When using gen_stack_adjust_str with a register offset, add a
24912 REG_FRAME_RELATED_EXPR note.
24914 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
24916 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
24917 (*vec_extractv4si_zext_mem): Ditto.
24918 (*vec_extractv2di): Add 0->x and x->x alternatives.
24919 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
24920 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
24922 2013-05-09 Jason Merrill <jason@redhat.com>
24924 N3639 C++1y VLA support
24925 * gimplify.c (gimplify_vla_decl): Don't touch an existing
24928 * tree.c (build_constructor_va): New.
24929 * tree.h: Declare it.
24931 2013-05-09 Martin Jambor <mjambor@suse.cz>
24934 * gimple-fold.c (canonicalize_constructor_val): Call
24935 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
24937 2013-05-09 Jan Hubicka <jh@suse.cz>
24938 Richard Biener <rguenther@suse.de>
24941 * symtab.c (symtab_make_decl_local): Do not add private names.
24943 2013-05-09 Jan Hubicka <jh@suse.cz>
24946 * symtab.c (insert_to_assembler_name_hash): Handle clones.
24947 (unlink_from_assembler_name_hash): Likewise.
24948 (symtab_prevail_in_asm_name_hash, symtab_register_node,
24949 symtab_unregister_node, symtab_initialize_asm_name_hash,
24950 change_decl_assembler_name): Update.
24952 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
24954 * config/aarch64/aarch64.md: New movtf split.
24955 (*movtf_aarch64): Update.
24956 (aarch64_movdi_tilow): Handle TF modes and rename to
24957 aarch64_movdi_<mode>low.
24958 (aarch64_movdi_tihigh): Handle TF modes and rename to
24959 aarch64_movdi_<mode>high
24960 (aarch64_movtihigh_di): Handle TF modes and rename to
24961 aarch64_mov<mode>high_di
24962 (aarch64_movtilow_di): Handle TF modes and rename to
24963 aarch64_mov<mode>low_di
24964 (aarch64_movtilow_tilow): Remove spurious whitespace.
24965 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
24967 (aarch64_print_operand): Update.
24969 2013-05-09 Alan Modra <amodra@gmail.com>
24971 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
24973 * configure: Regenerate.
24975 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
24977 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
24978 splitter preparation statements.
24979 * config/i386/sse.md (*vec_extract* splitters): Ditto.
24980 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
24983 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24985 * gimple-ssa-strength-reduction.c (count_candidates): Change
24986 return value to int.
24987 (analyze_candidates_and_replace): Change type of length to int.
24989 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
24991 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
24992 (*vec_extract<mode>): Use VI12_128 mode iterator.
24993 (*vec_extract<mode>_mem): Ditto.
24994 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
24997 2013-05-08 Diego Novillo <dnovillo@google.com>
25002 2012-08-17 Diego Novillo <dnovillo@google.com>
25005 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
25006 * config.in: Regenerate.
25007 * configure: Regenerate.
25008 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
25010 2013-05-08 Jan Hubicka <jh@suse.cz>
25013 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
25014 * cgraph.h (symtab_node_base): Add unique_name.
25015 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
25016 input_overwrite_node, input_varpool_node): Stream unique_name.
25017 * cgraphclones.c (cgraph_create_virtual_clone,
25018 cgraph_function_versioning): Set unique_name.
25019 * ipa.c (function_and_variable_visibility): Set unique_name.
25021 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25023 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
25024 (alloc_cand_and_find_basis): Restrict conditional candidate
25025 processing to CAND_MULTs.
25027 2013-05-08 Jan Hubicka <jh@suse.cz>
25030 lto-symtab.c (lto_symtab_symbol_p): New function.
25031 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
25032 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
25033 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
25034 Skip static symbols.
25036 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
25038 PR tree-optimization/57200
25039 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
25040 Only call inform if the preceding warning_at returns true.
25042 2013-05-07 Han Shen <shenhan@google.com>
25044 * cfgexpand.c (record_or_union_type_has_array_p): New function.
25045 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
25046 * common.opt (fstack-protector-strong): New option.
25047 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
25048 * doc/invoke.texi (Optimization Options): Document
25049 "-fstack-protector-strong".
25050 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
25052 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
25054 * config/mips/mips.c (mips_machine_reorg2): Return 0.
25056 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
25058 * ira.c (update_equiv_regs): Add insn having equiv memory even if
25059 it is not lhs of the insn.
25060 (setup_reg_equiv): Remove insn having equiv memory which it is not
25062 * lra-constraints.c (process_address): Try to improve generation
25063 code for address base + disp.
25064 (lra_constraints): Make correct the code for checking insn setting
25065 up backward equivalence. Remove insn only if it is in the init
25067 * lra-eliminations.c (update_reg_eliminate): Change return value.
25068 (lra_eliminate): Use the result.
25070 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
25072 * config/i386/sse.md (ssescalarnummask): New mode attribute.
25073 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
25074 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
25075 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
25076 register target operands.
25077 (*vec_extractv8hi_sse2): New pattern.
25078 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
25079 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
25080 (*vec_extract<mode>_mem): New insn and split pattern.
25082 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
25084 * config/arm/arm.c (arm_asan_shadow_offset): New function.
25085 (TARGET_ASAN_SHADOW_OFFSET): Define.
25086 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
25087 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
25089 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25091 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
25092 (incr_vec_index): Return -1 if increment not found.
25093 (create_add_on_incoming_edge): Assert if increment not found.
25094 (record_increment): Limit number of increments recorded.
25095 (all_phi_incrs_profitable): Return false if an increment not found.
25096 (replace_profitable_candidates): Don't process increments that were
25098 (analyze_candidates_and_replace): Limit size of incr_vec.
25100 2013-05-07 Richard Biener <rguenther@suse.de>
25102 * calls.c (special_function_p): setjmp-like functions are leaf.
25103 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
25104 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
25106 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
25108 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
25109 (aarch64_simd_mov<mode>): New expander.
25110 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
25111 (aarch64_simd_mov_to_<mode>high): Likewise.
25112 (aarch64_simd_mov_from_<mode>low): Likewise.
25113 (aarch64_simd_mov_from_<mode>high): Likewise.
25114 (aarch64_dup_lane<mode>): Update.
25115 (aarch64_dup_lanedi): New instruction pattern.
25116 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
25117 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
25119 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25121 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
25122 (replace_mult_candidate): Remove unnecessary argument; remove
25123 unnecessary parameter from call to introduce_cast_before_cand.
25124 (replace_unconditional_candidate): Remove unnecessary parameter
25125 from call to replace_mult_candidate.
25126 (replace_conditional_candidate): Likewise.
25127 (insert_initializers): Use make_temp_ssa_name.
25128 (introduce_cast_before_cand): Remove unnecessary argument; use
25129 make_temp_ssa_name.
25130 (replace_one_candidate): Remove unnecessary argument; remove
25131 unnecessary parameter from calls to introduce_cast_before_cand.
25132 (replace_profitable_candidates): Remove unnecessary parameters
25133 from calls to replace_one_candidate.
25135 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25137 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
25138 phi def as possibly hiding a basis for a CAND_ADD whose operands
25139 have been commuted in the analysis.
25140 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
25142 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
25144 * config/aarch64/aarch64.md
25145 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
25146 shift value between 0-4.
25148 2013-05-07 Richard Biener <rguenther@suse.de>
25150 * double-int.h (rshift): New overload.
25151 * double-int.c (rshift): New function.
25152 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
25153 (create_reference_ops_from_ref): Remove.
25154 (vn_reference_insert): Use shared ops for constructing the
25155 reference and copy it.
25157 2013-05-07 Richard Biener <rguenther@suse.de>
25159 PR middle-end/57190
25160 * tree-eh.c (sink_clobbers): Properly propagate
25161 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
25163 2013-05-07 Jakub Jelinek <jakub@redhat.com>
25165 PR tree-optimization/57149
25166 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
25167 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
25168 collect_phi_def_edges, execute_late_warn_uninitialized): Use
25169 uninit_undefined_value_p instead of ssa_undefined_value_p.
25172 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
25173 for modifier == EXPAND_INITIALIZER.
25175 2013-05-07 Anton Blanchard <anton@samba.org>
25177 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
25178 for powerpc64 little endian.
25179 * configure: Regenerate.
25181 2013-05-06 Graham Stott <grahams@btinternet.com>
25183 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
25184 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
25185 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
25186 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
25188 2013-05-06 Graham Stott <grahams@btinternet.com>
25190 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
25191 codes which allow non-lvalues.
25193 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
25195 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
25196 components are all 1s.
25197 (integer_minus_onep): New function.
25198 * tree.h (integer_minus_onep): Declare it.
25199 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
25200 integer_minus_onep instead of integer_all_onesp.
25202 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25205 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
25206 variations of these patterns.
25208 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
25210 * config/i386/i386.md (isa): Add x64_sse4 member.
25211 (enabled): Handle x64_sse4.
25212 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
25213 instruction for 64bit SSE4_1 targets. Update insn attributes.
25214 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
25215 instruction for SSE4_1 targets. Update insn attributes.
25216 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
25217 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
25218 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
25220 (*vec_extractv4si): Rename from *sse4_1_pextrd.
25221 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
25222 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
25224 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25227 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
25229 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
25231 * final.c (do_assembler_dialects): Don't handle curly braces and
25232 vertical bar escaped by % as dialect delimiters.
25233 (output_asm_insn): Print curly braces and vertical bar if escaped
25234 by % and ASSEMBLER_DIALECT defined.
25235 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
25236 * doc/tm.texi: Regenerated.
25238 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
25240 * config/mips/mips.c: Include tree-pass.h.
25241 (mips_reorg): Split in pre- and post-dbr_schedule parts.
25242 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
25243 (pass_mips_machine_reorg2): New machine specific pass.
25244 (insert_pass_mips_machine_reorg2): New pass plugin definition.
25245 (mips_option_override): Register the new pass.
25246 * rtl.h (cleanup_barriers): Remove prototype.
25247 (dbr_schedule): Likewise.
25248 * jump.c (cleanup_barriers): Make static.
25249 * reorg.c (dbr_schedule): Likewise.
25251 2013-05-06 Richard Biener <rguenther@suse.de>
25253 PR tree-optimization/57185
25254 * tree-parloops.c (add_field_for_reduction): Handle anonymous
25255 SSA names properly.
25257 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
25260 * config/i386/i386.c (add_parameter_dependencies): Add dependence
25261 between "first_arg" and "insn", not "last" and "insn".
25263 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25265 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
25266 (find_candidates_in_block): Re-enable slsr_process_phi.
25267 (create_phi_basis): Fix double counting of candidate adjustment.
25269 2013-05-06 Richard Biener <rguenther@suse.de>
25271 PR middle-end/57147
25272 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
25273 the edge is also fallthru, preserve it and just clear the
25275 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
25276 also complex, preserve that and just clear the fallthru flag.
25277 * tree-inline.c (update_ssa_across_abnormal_edges): Also
25278 update virtual operands.
25280 2013-05-06 Alan Modra <amodra@gmail.com>
25282 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
25283 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
25284 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
25285 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
25286 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
25287 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
25289 2013-05-06 Alan Modra <amodra@gmail.com>
25291 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
25292 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
25293 (DEFAULT_ASM_ENDIAN): Define.
25294 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
25295 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
25296 Update -K PIC clause from sysv4.h.
25297 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
25298 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
25300 2013-05-06 Alan Modra <amodra@gmail.com>
25302 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
25303 twice for little-endian.
25304 (ashrdi3_no_power, ashrdi3): Support little-endian.
25306 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25309 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
25310 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
25312 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
25313 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
25314 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
25317 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
25318 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25320 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
25321 * config/pa/pa.opt: Make mbig-switch a no-op.
25322 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
25323 (CASE_VECTOR_MODE): Always return SImode.
25324 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
25325 for the !TARGET_BIG_SWITCH case.
25326 * config/pa/pa-linux.h: Likewise.
25327 * config/pa/pa-openbsd.h: Likewise.
25328 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
25329 * config/pa/pa.md (short_jump): Remove define_insn.
25330 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
25331 (casesi0): Remove define_insn.
25332 (type): Remove btable_branch.
25333 (pa_combine_type): Likewise.
25334 (in_nullified_branch_delay): Likewise.
25335 (in_call_delay): Likewise.
25336 (define_delay): Likewise.
25337 (define_insn_reservation "Z3"): Likewise.
25338 (define_insn_reservation "Z4"): Likewise.
25339 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
25340 (pa_adjust_insn_length): Remove adjustment for btable branches.
25341 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
25344 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
25346 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
25347 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
25348 Add m->r,x alternatives.
25349 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
25350 splitters using SWI48x mode iterator.
25351 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
25352 TARGET_64BIT. Add m->x alternative.
25353 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
25354 Add o->x alternative. Enable for TARGET_SSE.
25355 (sse_storeq): Remove expander.
25356 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
25357 with memory input operand.
25358 (*vec_extractv2di_1 splitter): New.
25359 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
25360 * config/i386/i386.md (ssevecmodelower): New mode attribute.
25362 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
25364 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
25365 (INT_LOWPART): Delete.
25366 (extract_MB): Adjust.
25367 (extract_ME): Adjust.
25368 (print_operand): Adjust.
25370 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
25372 * config/rs6000/predicates.md (reg_or_add_cint_operand,
25373 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
25374 (reg_or_logical_cint_operand, easy_fp_constant,
25375 logical_const_operand): Delete "CONST_DOUBLE" case.
25376 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
25377 "HOST_BITS_PER_WIDE_INT == 64" test.
25378 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
25379 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
25380 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
25381 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
25383 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
25384 CONST_DOUBLE DImode/VOIDmode case.
25385 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
25386 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
25387 CONST_DOUBLE VOIDmode case.
25388 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
25389 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
25390 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
25391 Delete CONST_DOUBLE case.
25392 (splitters for mov FMOVE64 const_double): Delete
25393 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
25394 "HOST_BITS_PER_WIDE_INT >= 64" test.
25395 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
25397 (mov DI const_double): Delete.
25399 2013-05-04 Jakub Jelinek <jakub@redhat.com>
25401 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
25402 on op shows all bits zero in mode of a lowpart subreg, return zero.
25404 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
25407 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
25408 to save TFmode registers and DImode to save TImode registers for
25409 caller save operations.
25410 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
25411 mark being partially clobbered since they only use the first
25414 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
25415 and TDmode only use the upper 64-bits of each VSX register.
25417 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25419 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
25420 (find_candidates_in_block): Disable slsr_process_phi.
25422 2013-05-03 Guozhi Wei <carrot@google.com>
25424 * coverage.c (coverage_obj_init): Move the construction of gcov
25426 (build_init_ctor): ... here.
25428 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25430 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
25431 (slsr_cand_d): Redefine def_phi.
25432 (stride_status, phi_adjust_status, count_phis_status): New enums.
25433 (find_phi_def): New.
25434 (find_basis_for_base_expr): New.
25435 (find_basis_for_candidate): Handle hidden bases.
25436 (alloc_cand_and_find_basis): Handle phi candidates.
25437 (slsr_process_phi): New.
25438 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
25439 (create_mul_imm_cand): Likewise.
25440 (create_add_ssa_cand): Exclude phi base candidates.
25441 (create_add_imm_cand): Likewise.
25442 (slsr_process_cast): Likewise.
25443 (slsr_process_copy): Likewise.
25444 (find_candidates_in_block): Handle phi candidates.
25445 (dump_candidate): Likewise.
25446 (unconditional_cands): Delete.
25447 (unconditional_cands_with_known_stride_p): Delete.
25448 (phi_dependent_cand_p): New.
25449 (cand_increment): Handle phi-dependent candidates.
25450 (replace_dependent): Delete.
25451 (replace_mult_candidate): New.
25452 (replace_unconditional_candidate): New.
25453 (incr_vec_index): Move to avoid forward reference.
25454 (create_add_on_incoming_edge): New.
25455 (create_phi_basis): New.
25456 (replace_dependents): Delete.
25457 (replace_conditional_candidate): New.
25458 (phi_add_costs): New.
25459 (replace_uncond_cands_and_profitable_phis): New.
25460 (record_increment): Handle phi adjustments.
25461 (record_phi_increments): New.
25462 (record_increments): Handle phi adjustments.
25463 (phi_incr_cost): New.
25464 (lowest_cost_path): Handle phis.
25465 (total_savings): Likewise.
25466 (analyze_increments): Likewise.
25467 (ncd_with_phi): New.
25468 (ncd_of_cand_and_phis): New.
25469 (nearest_common_dominator_for_cands): Handle phi increments.
25470 (all_phi_incrs_profitable): New.
25471 (replace_profitable_candidates): Handle phi-dependent candidates.
25472 (analyze_candidates_and_replace): Likewise.
25474 2013-05-03 Teresa Johnson <tejohnson@google.com>
25477 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
25478 do not exceed REG_BR_PROB_BASE.
25480 2013-05-03 Jeff Law <law@redhat.com>
25482 PR tree-optimization/57144
25483 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
25484 operand of the condition will bit into the new type when eliminating
25485 a cast feeding a condition.
25487 2013-05-03 Jakub Jelinek <jakub@redhat.com>
25489 PR rtl-optimization/57130
25490 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
25491 of COMPARE as in_code to the recursive call if needed.
25493 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
25495 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
25496 (enabled): Handle new members.
25497 * config/i386/sse.md (*vec_concatv2si): Merge from
25498 *vec_concatv2si_sse2 and vec_concatv2si_sse.
25499 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
25501 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
25503 PR tree-optimization/57027
25504 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
25505 for fnms opportunity, check we got the prerequisite kind
25506 of tree / gimple before using accessor functions.
25508 2013-05-03 Richard Biener <rguenther@suse.de>
25510 * double-int.h (lshift): New overload without precision
25511 and arith argument.
25512 (operator *=, operator +=, operator -=): Move ...
25513 * double-int.c (operator *=, operator +=, operator -=): ... here
25514 and implement more efficiently.
25515 (mul_double_with_sign): Remove.
25516 (lshift_double): Adjust to take unsinged shift argument, push
25517 dispatching code to callers.
25518 (mul_double_wide_with_sign): Add early out for callers that
25519 are not interested in high parts or overflow.
25520 (lshift): New function.
25521 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
25522 dispatch code here.
25523 (lrotate, rrotate): Use logical shifts.
25524 * expr.c (get_inner_reference): Use lshift.
25525 * fixed-value.c (do_fixed_divide): Likewise.
25526 * tree-dfa.c (get_ref_base_and_extent): Likewise.
25527 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
25528 (indirect_refs_may_alias_p): Likewise.
25529 (stmt_kills_ref_p_1): Likewise.
25531 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
25533 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
25535 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
25537 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
25538 scalar form of FABD instruction.
25540 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
25542 * lra-constraints.c (process_alt_operands): Add checking alt
25543 number to choose the best alternative.
25545 2013-05-02 Richard Biener <rguenther@suse.de>
25547 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
25548 bitmap and its handling.
25549 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
25551 2013-05-02 Richard Biener <rguenther@suse.de>
25553 PR middle-end/57140
25554 * tree-inline.c (copy_loops): Properly handle removed loops.
25555 (copy_cfg_body): Mark destination loops for fixup if source
25556 loops needed fixup.
25558 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
25561 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
25562 generating simple_return for naked functions.
25564 2013-05-02 Martin Jambor <mjambor@suse.cz>
25566 PR middle-end/56988
25567 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
25568 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
25570 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
25571 ipa_agg_replacement_value structures.
25572 (known_aggs_to_agg_replacement_list): Likewise.
25573 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
25574 (read_agg_replacement_chain): Likewise.
25575 (ipcp_transform_function): Also check that by_ref flags match.
25577 2013-05-02 Richard Biener <rguenther@suse.de>
25579 * graphds.h (struct graph): Add obstack member.
25580 * graphds.c (new_graph): Initialize obstack and allocate
25582 (add_edge): Allocate edge from the obstack.
25583 (free_graph): Free the obstack instead of all edges and vertices.
25585 2013-05-02 Teresa Johnson <tejohnson@google.com>
25587 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
25589 * cfg.c (update_bb_profile_for_threading): Ditto.
25590 * tree-inline.c (copy_bb): Ditto.
25591 (copy_edges_for_bb): Ditto.
25592 (initialize_cfun): Ditto.
25593 (copy_cfg_body): Ditto.
25594 (expand_call_inline): Ditto.
25595 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
25596 (estimate_node_size_and_time): Ditto.
25597 (inline_merge_summary): Ditto.
25598 * cgraphclones.c (cgraph_clone_edge): Ditto.
25599 (cgraph_clone_node): Ditto.
25600 * sched-rgn.c (compute_dom_prob_ps): Ditto.
25601 (compute_trg_info): Ditto.
25603 2013-05-02 Ian Bolton <ian.bolton@arm.com>
25605 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
25606 S reg when fp attribute set.
25607 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
25609 2013-05-02 Ian Bolton <ian.bolton@arm.com>
25611 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
25613 (*and_one_cmplsi3_compare0_uxtw): Likewise.
25614 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
25615 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
25617 2013-05-02 Richard Biener <rguenther@suse.de>
25619 * tree-scalar-evolution.c (scev_info_hasher): Remove.
25620 (struct instantiate_cache_entry): New type.
25621 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
25622 (struct instantiate_cache_type): New type.
25623 (set_instantiated_value, get_instantiated_value): Remove.
25624 (get_instantiated_value_entry): New function.
25625 (instantiate_scev_name): Use the new cache and adjust.
25626 (instantiate_scev_poly): Adjust.
25627 (instantiate_scev_binary): Likewise.
25628 (instantiate_array_ref): Likewise.
25629 (instantiate_scev_convert): Likewise.
25630 (instantiate_scev_not): Likewise.
25631 (instantiate_scev_3): Likewise.
25632 (instantiate_scev_2): Likewise.
25633 (instantiate_scev_r): Likewise.
25634 (instantiate_scev): Likewise.
25635 (resolve_mixers): Likewise.
25637 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
25640 * lra-constraints.c (best_small_class_operands_num): Remove.
25641 (process_alt_operands): Remove small_class_operands_num. Take
25642 small classes operands into losers and only if the operand is not
25643 matched. Modify debugging output.
25644 (curr_insn_transform): Remove best_small_class_operands_num.
25647 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
25649 * config/aarch64/aarch64-builtins.c
25650 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
25651 * config/aarch64/aarch64-simd-builtins.def
25652 (reduc_splus_): Add new modes.
25653 (reduc_uplus_): New.
25654 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
25655 (reduc_uplus_v4sf): Likewise.
25656 (reduc_splus_v4sf): Likewise.
25657 (aarch64_addv<mode>): Likewise.
25658 (reduc_uplus_<mode>): Likewise.
25659 (reduc_splus_<mode>): Likewise.
25660 (aarch64_addvv2di): Likewise.
25661 (reduc_uplus_v2di): Likewise.
25662 (reduc_splus_v2di): Likewise.
25663 (aarch64_addvv2si): Likewise.
25664 (reduc_uplus_v2si): Likewise.
25665 (reduc_splus_v2si): Likewise.
25666 (reduc_<sur>plus_<mode>): New.
25667 (reduc_<sur>plus_v2di): Likewise.
25668 (reduc_<sur>plus_v2si): Likewise.
25669 (reduc_<sur>plus_v4sf): Likewise.
25670 (aarch64_addpv4sf): Likewise.
25671 * config/aarch64/arm_neon.h
25672 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
25673 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
25674 add UNSPEC_SADDV, UNSPEC_UADDV.
25676 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
25678 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
25680 * config/aarch64/arm_neon.h
25681 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
25683 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
25685 * config/aarch64/aarch64-builtins
25686 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
25688 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
25690 * config/aarch64/aarch64-simd-builtins.def
25691 (reduc_smax_): New.
25692 (reduc_smin_): Likewise.
25693 (reduc_umax_): Likewise.
25694 (reduc_umin_): Likewise.
25695 (reduc_smax_nan_): Likewise.
25696 (reduc_smin_nan_): Likewise.
25699 (smax): Update for V2SF, V4SF and V2DF modes.
25702 (smin_nan): Likewise.
25703 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
25704 (<su><maxmin><mode>3): ...This, refactor.
25705 (s<maxmin><mode>3): New.
25706 (<maxmin_uns><mode>3): Likewise.
25707 (reduc_<maxmin_uns>_<mode>): Refactor.
25708 (reduc_<maxmin_uns>_v4sf): Likewise.
25709 (reduc_<maxmin_uns>_v2si): Likewise.
25710 (aarch64_<fmaxmin><mode>: Remove.
25711 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
25713 (vmin<q>_f<32,64>): Likewise.
25714 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
25716 (su): Add mappings for smax, smin, umax, umin.
25718 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
25719 (FMAXMIN): Rename as...
25720 (FMAXMIN_UNS): ...This.
25722 (fmaxminv): Likewise.
25723 (fmaxmin): Likewise.
25725 (maxmin_uns_op): Likewise.
25727 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
25729 * config/aarch64/arm_neon.h
25730 (vac<ge, gt><sd>_f<32, 64>): Rename to...
25731 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
25732 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
25734 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
25736 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
25737 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
25739 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
25741 * config/aarch64/aarch64-simd.md
25742 (vcond<mode>_internal): Handle special cases for constant masks.
25743 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
25744 (vcondu<mode><mode>): Likewise.
25745 (vcond<v_cmp_result><mode>): New.
25747 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
25749 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
25750 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
25751 * config/aarch64/aarch64-simd-builtins.def
25752 (cmeq): Update to BUILTIN_VALLDI.
25757 * config/aarch64/arm_neon.h
25758 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
25759 to builtins or C as appropriate.
25761 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
25763 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
25765 (cmhi): Rename to...
25767 * config/aarch64/aarch64-simd.md
25768 (simd_mode): Add SF.
25769 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
25770 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
25771 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
25772 (cstore<mode>_neg): ...This.
25773 * config/aarch64/iterators.md
25775 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
25776 (COMPARISONS): New.
25777 (UCOMPARISONS): Likewise.
25778 (optab): Add missing comparisons.
25784 (VCMP_S): Likewise.
25785 (VCMP_U): Likewise.
25786 (V_cmp_result): Add DF, SF modes.
25787 (v_cmp_result): Likewise.
25789 (vmtype): Likewise.
25790 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
25792 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
25794 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
25795 define_insn to define_insn_and_split.
25796 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
25797 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
25798 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
25799 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
25800 (thumb2_negscc): Likewise.
25802 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
25804 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
25806 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
25808 * config/arm/thumb2.md: Remove trailing whitespaces.
25810 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
25812 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
25813 Use gen_int_mode rather than GEN_INT.
25815 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
25817 * value-prof.c (stream_in_histogram_value): Remove the strayed
25820 2013-04-30 Richard Biener <rguenther@suse.de>
25822 PR middle-end/57122
25823 * cfghooks.c (split_edge): Properly check for the loop latch edge.
25825 2013-04-30 Richard Biener <rguenther@suse.de>
25827 PR middle-end/57107
25828 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
25830 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
25832 PR rtl-optimization/56957
25833 PR rtl-optimization/57105
25834 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
25835 variable. Use just INSN_UID for determining whether an insn
25836 should be only disconnected from the insn stream.
25837 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
25839 2013-04-30 Jakub Jelinek <jakub@redhat.com>
25841 PR tree-optimization/57104
25842 * tsan.c (instrument_expr): Don't instrument accesses to
25843 DECL_HARD_REGISTER VAR_DECLs.
25845 2013-04-30 Richard Biener <rguenther@suse.de>
25847 * function.h (loops_for_fn): New inline function.
25848 (set_loops_for_fn): Likewise.
25849 * cfgloop.h (place_new_loop): Add struct function parameter.
25850 (get_loop): Likewise.
25851 (get_loops): Likewise.
25852 (number_of_loops): Likewise.
25853 (fel_next): Adjust.
25854 (fel_init): Likewise.
25855 * cfg.c (get_loop_copy): Adjust.
25856 * cfgloop.c (flow_loops_dump): Likewise.
25857 (record_loop_exits): Likewise.
25858 (verify_loop_structure): Likewise.
25859 * cfgloopanal.c (mark_irreducible_loops): Likewise.
25860 (estimate_reg_pressure_cost): Likewise.
25861 (mark_loop_exit_edges): Likewise.
25862 * cfgloopmanip.c (place_new_loop): Likewise.
25863 (add_loop): Likewise.
25864 (duplicate_loop): Likewise.
25865 * graph.c (draw_cfg_nodes): Likewise.
25866 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
25867 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
25868 (extract_affine_chrec): Likewise.
25869 (build_scop_iteration_domain): Likewise.
25870 * graphite.c (graphite_initialize): Likewise.
25871 * ira-build.c (create_loop_tree_nodes): Likewise.
25872 (more_one_region_p): Likewise.
25873 (rebuild_regno_allocno_maps): Likewise.
25874 (mark_loops_for_removal): Likewise.
25875 (mark_all_loops_for_removal): Likewise.
25876 (remove_unnecessary_regions): Likewise.
25877 (ira_build): Likewise.
25878 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
25879 * loop-init.c (fix_loop_structure): Likewise.
25880 (gate_rtl_move_loop_invariants): Likewise.
25881 (gate_rtl_unswitch): Likewise.
25882 (gate_rtl_unroll_and_peel_loops): Likewise.
25883 (rtl_doloop): Likewise.
25884 * lto-streamer-in.c (input_cfg): Likewise.
25885 * lto-streamer-out.c (output_cfg): Likewise.
25886 * modulo-sched.c (sms_schedule): Likewise.
25887 * predict.c (tree_estimate_probability): Likewise.
25888 (tree_estimate_probability_driver): Likewise.
25889 (estimate_loops): Likewise.
25890 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
25891 (move_sese_region_to_fn): Likewise.
25892 (debug_loop_num): Likewise.
25893 * tree-chrec.c (chrec_evaluate): Likewise.
25894 (hide_evolution_in_other_loops_than_loop): Likewise.
25895 (chrec_component_in_loop_num): Likewise.
25896 (reset_evolution_in_loop): Likewise.
25897 (evolution_function_is_invariant_rec_p): Likewise.
25898 * tree-if-conv.c (main_tree_if_conversion): Likewise.
25899 * tree-inline.c (copy_loops): Likewise.
25900 (copy_cfg_body): Likewise.
25901 (tree_function_versioning): Likewise.
25902 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
25903 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
25905 (add_to_evolution_1): Likewise.
25906 (scev_const_prop): Likewise.
25907 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
25908 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
25909 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
25910 (tree_ssa_lim_initialize): Likewise.
25911 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
25912 (verify_loop_closed_ssa): Likewise.
25913 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
25914 (tree_ssa_loop_im): Likewise.
25915 (tree_ssa_loop_unswitch): Likewise.
25916 (tree_vectorize): Likewise.
25917 (check_data_deps): Likewise.
25918 (tree_ssa_loop_ivcanon): Likewise.
25919 (tree_ssa_loop_bounds): Likewise.
25920 (tree_complete_unroll): Likewise.
25921 (tree_complete_unroll_inner): Likewise.
25922 (tree_parallelize_loops): Likewise.
25923 (tree_ssa_loop_prefetch): Likewise.
25924 (tree_ssa_loop_ivopts): Likewise.
25925 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
25926 * tree-vectorizer.c (vectorize_loops): Likewise.
25928 2013-04-29 Mike Frysinger <vapier@gentoo.org>
25930 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
25931 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
25932 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
25933 with EABI_LINK_SPEC.
25935 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
25938 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
25941 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
25944 * lra-constraints.c (process_alt_operands): Discourage a bit more
25945 using memory for pseudos. Print cost dump for alternatives.
25946 Modify cost values for conflicts with early clobbers.
25947 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
25949 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
25952 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
25954 2013-04-29 Ian Bolton <ian.bolton@arm.com>
25956 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
25957 from/to S register.
25958 (movdi_aarch64): Support LDR/STR from/to D register.
25960 2013-04-29 Ian Bolton <ian.bolton@arm.com>
25962 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
25963 or higher by default.
25965 2013-04-29 Richard Biener <rguenther@suse.de>
25967 PR middle-end/57075
25968 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
25969 even if not adding abnormal edges for calls that can make
25972 2013-04-29 Richard Biener <rguenther@suse.de>
25974 PR middle-end/57103
25975 * tree-cfg.c (move_stmt_op): Fix condition under which to update
25977 (move_stmt_r): Remove redundant checking.
25979 2013-04-29 Teresa Johnson <tejohnson@google.com>
25982 * basic-block.h (apply_scale): New function.
25983 (apply_probability): Use apply_scale.
25984 * gimple-streamer-in.c (input_bb): Ditto.
25985 * lto-streamer-in.c (input_cfg): Ditto.
25986 * lto-cgraph.c (merge_profile_summaries): Ditto.
25987 * tree-optimize.c (execute_fixup_cfg): Ditto.
25988 * tree-inline.c (copy_bb): Update comment to use apply_scale.
25989 (copy_edges_for_bb): Ditto.
25990 (copy_cfg_body): Ditto.
25992 2013-04-29 Tom de Vries <tom@codesourcery.com>
25994 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
25995 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
25996 (tail_merge_optimize): Handle current_loops == NULL.
25998 2013-04-26 Jeff Law <law@redhat.com>
26000 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
26001 (simplify_cond_using_ranges): Generalize code to simplify
26002 COND_EXPRs where one argument is a constant and the other
26003 is an SSA_NAME created by an integral type conversion.
26005 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26007 * config/arm/arm.md (store_minmaxsi): Use only when
26008 optimize_insn_for_size_p.
26010 2013-04-29 Christian Bruel <christian.bruel@st.com>
26013 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
26015 2013-04-29 Richard Biener <rguenther@suse.de>
26017 PR middle-end/57089
26018 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
26019 loop tree make sure to schedule a fixup for the child as well.
26020 (expand_omp_for_generic): Properly add loops.
26021 (expand_omp_for_static_nochunk): Likewise.
26022 (expand_omp_for_static_chunk): Likewise.
26023 (expand_omp_for): For the degenerate case fixup loops.
26024 (expand_omp_sections): Fix default bb placement in loops.
26025 (expand_omp_atomic_pipeline): Properly add loops.
26027 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26029 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
26031 2013-04-29 Tom de Vries <tom@codesourcery.com>
26033 * tree-ssa-tail-merge.c: Update header comment.
26035 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
26037 * config/aarch64/arm_neon.h
26038 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
26039 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
26040 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
26041 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
26042 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
26043 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
26044 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
26045 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
26047 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
26049 * config/aarch64/aarch64-simd.md
26050 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
26051 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
26052 fix_trunc, fixuns_trunc.
26053 (ftrunc<VDQF:mode>2): New.
26054 * config/aarch64/iterators.md (optab): Add fix, fixuns.
26055 (fix_trunc_optab): New.
26057 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
26059 * config/aarch64/aarch64-builtins.c
26060 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
26061 iceilf, lround, iroundf.
26063 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
26066 * config/i386/i386.h (enum ix86_tune_indices)
26067 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
26068 New, split from X86_TUNE_INTER_UNIT_MOVES.
26069 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
26070 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
26071 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
26072 (TARGET_INTER_UNIT_MOVES): Remove.
26073 * config/i386/i386.c (initial_ix86_tune_features): Update.
26074 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
26075 (ix86_expand_convert_uns_didf_sse): Use
26076 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
26077 (ix86_expand_vector_init_one_nonzero): Ditto.
26078 (ix86_expand_vector_init_interleave): Ditto.
26079 (inline_secondary_memory_needed): Return true for moves from SSE class
26080 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
26081 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
26082 * config/i386/constraints.md (Yi, Ym): Depend on
26083 TARGET_INTER_UNIT_MOVES_TO_VEC.
26084 (Yj, Yn): New constraints.
26085 * config/i386/i386.md (*movdi_internal): Change constraints of
26086 operand 1 from Yi to Yj and from Ym to Yn.
26087 (*movsi_internal): Ditto.
26088 (*movdf_internal): Ditto.
26089 (*movsf_internal): Ditto.
26090 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
26091 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
26092 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
26093 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
26094 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
26095 * config/i386/sse.md (movdi_to_sse): Ditto.
26096 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
26097 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
26098 TARGET_INTER_UNIT_MOVES.
26099 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
26100 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
26101 instead of TARGET_INTER_UNIT_MOVES.
26102 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
26103 operand 1 from Yi to Yj and from Ym to Yn.
26105 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
26107 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
26108 (float_truncate_hi_): Likewise.
26109 (float_extend_lo_): Likewise.
26110 (float_truncate_lo_): Likewise.
26111 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
26112 (aarch64_float_extend_lo_v2df): Likewise.
26113 (vec_unpacks_hi_v4sf): Likewise.
26114 (aarch64_float_truncate_lo_v2sf): Likewise.
26115 (aarch64_float_truncate_hi_v4sf): Likewise.
26116 (vec_pack_trunc_v2df): Likewise.
26117 (vec_pack_trunc_df): Likewise.
26119 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
26121 * config/aarch64/aarch64-builtins.c
26122 (aarch64_fold_builtin): Fold float conversions.
26123 * config/aarch64/aarch64-simd-builtins.def
26124 (floatv2si, floatv4si, floatv2di): New.
26125 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
26126 * config/aarch64/aarch64-simd.md
26127 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
26128 * config/aarch64/iterators.md (FLOATUORS): New.
26129 (optab): Add float, floatuns.
26130 (su_optab): Likewise.
26132 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
26134 * config/aarch64/aarch64-builtins.c
26135 (aarch64_builtin_vectorized_function): Use new names for
26137 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
26138 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
26139 (fcvtzu): Split as...
26140 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
26141 (fcvtas): Split as...
26142 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
26143 (fcvtau): Split as...
26144 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
26145 (fcvtps): Split as...
26146 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
26147 (fcvtpu): Split as...
26148 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
26149 (fcvtms): Split as...
26150 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
26151 (fcvtmu): Split as...
26152 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
26153 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
26154 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
26155 (lfrintnusf, lfrintnudf): Likewise.
26156 * config/aarch64/aarch64-simd.md
26157 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
26159 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
26160 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
26161 (fcvt_pattern): Likewise.
26163 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
26165 * config/aarch64/aarch64-simd.md
26166 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
26167 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
26169 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
26171 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
26172 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
26173 (vrnd<a,m,n,p>_f32): Implement using builtins.
26174 (vrnd<i,x><q>_f<32, 64>): New.
26176 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
26178 * config/aarch64/aarch64-builtins.c
26179 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
26180 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
26181 (frintz): Rename to...
26183 (frintp): Rename to...
26185 (frintm): Rename to...
26187 (frinti): Rename to...
26188 (nearbyint): ...this.
26189 (frintx): Rename to...
26191 (frinta): Rename to...
26193 * config/aarch64/aarch64-simd.md
26194 (aarch64_frint<frint_suffix><mode>): Delete.
26195 (<frint_pattern><mode>2): Convert to insn.
26196 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
26197 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
26198 (frint_pattern): Likewise.
26199 (frint_suffix): Likewise.
26201 2013-04-29 Richard Biener <rguenther@suse.de>
26203 PR tree-optimization/57081
26204 * loop-init.c: Include tree-flow.h.
26205 (loop_optimizer_finalize): Free number of iteration estimates.
26206 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
26208 2013-04-29 Jakub Jelinek <jakub@redhat.com>
26210 PR tree-optimization/57083
26211 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
26212 non-singleton shift count range, zero extend low_bound for uns case.
26214 * config/i386/predicates.md (general_vector_operand): New predicate.
26215 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
26216 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
26217 if they aren't nonimmediate operands. If their original values
26218 satisfy const_vector_equal_evenodd_p, don't shift them.
26219 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
26220 predicates. For the SSE4.1 case force operands[{1,2}] into registers
26221 if not nonimmediate_operand.
26222 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
26223 instead of register_operand.
26224 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
26226 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
26228 * stor-layout.c (finalize_size_functions): Allocate a structure and
26229 reset cfun before dumping the functions.
26231 2013-04-27 Jakub Jelinek <jakub@redhat.com>
26233 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
26236 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
26237 use xop_pmacsdqh if uns_p.
26238 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
26239 the immediate rotate count.
26241 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
26243 * rtl.h (struct rtx_def): Add comment for field jump.
26244 (LRA_SUBREG_P): New macro.
26245 * recog.c (register_operand): Check LRA_SUBREG_P.
26246 * lra.c (lra): Add note at the end of RTL code. Align non-empty
26248 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
26249 (lra_final_code_change): Skip subreg change for operators.
26250 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
26251 if there are no operand changes.
26252 * lra-constraints.c (curr_insn_set): New.
26253 (match_reload): Set LRA_SUBREG_P.
26254 (emit_spill_move): Ditto.
26255 (check_and_process_move): Use curr_insn_set. Process only single
26256 set insns. Don't initialize sec_mem_p and change_p.
26257 (simplify_operand_subreg): Use LRA_SUBREG_P.
26258 (reg_in_class_p): New function.
26259 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
26260 of #ifdef. Add code to remove cycling.
26261 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
26262 non-null disp. Reload inner instead of disp when base and index
26263 are null. Try to put lo_sum into register.
26264 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
26265 (check_and_process_move): Move code for move cost check to
26266 simple_move_p. Remove equiv_substitution.
26267 (simple_move_p): New function.
26268 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
26269 curr_insn_set. Call check_and_process_move only for single set
26270 insns. Use the new function. Move call of check_and_process_move
26271 after operand equiv substitution and address process.
26273 2013-04-26 Jakub Jelinek <jakub@redhat.com>
26276 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
26277 with nonlocal goto receivers or returns twice calls, ignore
26278 unininitialized values from abnormal edges to nl goto receiver
26279 or returns twice call.
26281 2013-04-26 Jakub Jelinek <jakub@redhat.com>
26283 PR tree-optimization/57051
26284 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
26285 and VEC_RSHIFT_EXPR if shift count is a multiple of element
26288 2013-04-26 Richard Biener <rguenther@suse.de>
26290 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
26291 (expand_omp_taskreg): Likewise. Mark loops for fixup.
26292 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
26293 (fixup_loop_arrays_after_move): New function.
26294 (move_sese_region_to_fn): Properly outline the loop tree parts
26295 of the SESE region.
26297 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
26299 * config/i386/i386.md (type, unit): Fix long lines.
26301 2013-04-26 Richard Biener <rguenther@suse.de>
26303 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
26304 (lto-streamer-out.o): Likewise.
26305 * cfgloop.c (init_loops_structure): Export, add struct function
26306 argument and adjust.
26307 (flow_loops_find): Adjust.
26308 * cfgloop.h (enum loop_estimation): Add EST_LAST.
26309 (init_loops_structure): Declare.
26310 * lto-streamer-in.c: Include cfgloop.h.
26311 (input_cfg): Input the loop tree.
26312 * lto-streamer-out.c: Include cfgloop.h.
26313 (output_cfg): Output the loop tree.
26314 (output_struct_function_base): Do not drop PROP_loops.
26316 2013-03-26 Richard Biener <rguenther@suse.de>
26318 * tree-cfg.c (execute_build_cfg): Build the loop tree.
26319 (pass_build_cfg): Provide PROP_loops.
26320 (move_sese_region_to_fn): Remove loops that are outlined into fn
26322 * tree-inline.c: Include cfgloop.h.
26323 (initialize_cfun): Do not drop PROP_loops.
26324 (copy_loops): New function.
26325 (copy_cfg_body): Copy loop structure.
26326 (tree_function_versioning): Initialize destination loop tree.
26327 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
26328 (pass_parallelize_loops): Do IL verification.
26329 * loop-init.c (loop_optimizer_init): Fixup loops if required.
26330 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
26331 the CFG make sure we fixup loops as well.
26332 * tree-ssa-tail-merge.c: Include cfgloop.h.
26333 (replace_block_by): When merging loop latches mark loops for fixup.
26334 * lto-streamer-out.c (output_struct_function_base): Drop
26335 PROP_loops for now.
26336 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
26337 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
26338 * ipa-split.c: Include cfgloop.h.
26339 (split_function): Add the new return block to the loop tree root.
26340 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
26341 whether we have removed the forwarder block.
26342 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
26343 * cfgloop.h (place_new_loop): Declare.
26344 * cfgloopmanip.c (place_new_loop): Export.
26345 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
26346 (tree-switch-conversion.o): Likewise.
26347 (tree-complex.o): Likewise.
26348 (tree-inline.o): Likewise.
26349 (tree-ssa-tailmerge.o): Likewise.
26350 (ipa-split.o): Likewise.
26351 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
26352 (tree-ssa-copy.o): Likewise.
26353 * tree-switch-conversion.c: Include cfgloop.h
26354 (process_switch): If we emit a bit-test cascade, schedule loops
26356 * tree-complex.c: Include cfgloop.h.
26357 (expand_complex_div_wide): Properly add new basic-blocks to loops.
26358 * asan.c: Include cfgloop.h.
26359 (create_cond_insert_point): Properly add new basic-blocks to
26360 loops, schedule loop fixup.
26361 * cfgloop.c (verify_loop_structure): Check that looks are not
26363 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
26365 (expand_omp_for_generic): Likewise.
26366 (expand_omp_sections): Likewise.
26367 (expand_omp_atomic_pipeline): Schedule loops for fixup.
26368 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
26369 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
26370 is initialized, not when loops are present.
26371 * tree-parloops.c (parallelize_loops): Remove checking here.
26372 * passes.c (init_optimization_passes): Schedule a copy-propagation
26373 pass before complete unrolling of inner loops.
26375 2013-04-26 Jakub Jelinek <jakub@redhat.com>
26377 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
26378 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
26379 (colorize_init): Add argument to _WIN32 version.
26380 * toplev.c: Include diagnostic-color.h.
26381 (process_options): Default to -fdiagnostics-color=auto if
26382 GCC_COLORS env var is in the environment.
26383 * common.opt (fdiagnostics-color=): Add Var and Init.
26384 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
26385 env var is in the environment, the default is auto rather than never.
26387 * diagnostic.h (file_name_as_prefix): Add context argument.
26388 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
26389 the string as locus.
26390 * langhooks.c (lhd_print_error_function): Adjust caller.
26392 2013-04-25 Lawrence Crowl <crowl@google.com>
26394 * var-tracking.c (shared_hash_def::htab):
26395 Change type to hash_table. Update dependent calls and types.
26397 2013-04-25 Lawrence Crowl <crowl@google.com>
26399 * Makefile.in: Update as needed below.
26401 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
26402 Move declaration to after the type's method definitons.
26404 * attribs.c (htab_t scoped_attributes::attribute_hash):
26405 Change type to hash_table. Update dependent calls and types.
26407 * bitmap.c (htab_t bitmap_desc_hash):
26408 Change type to hash_table. Update dependent calls and types.
26410 * cselib.c (htab_t cselib_hash_table):
26411 Change type to hash_table. Update dependent calls and types.
26413 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
26414 (hash_string_slot_node): Move implementation into lto-streamer.h
26415 struct string_slot_hasher.
26416 (eq_string_slot_node): Likewise.
26418 * data-streamer-out.c: Update output_block::string_hash_table
26419 dependent calls and types.
26421 * dwarf2cfi.c (htab_t trace_index):
26422 Change type to hash_table. Update dependent calls and types.
26424 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
26425 Change type to hash_table. Update dependent calls and types.
26426 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
26427 (htab_t optimize_external_refs::map): Likewise.
26428 (htab_t output_comp_unit::extern_map): Likewise.
26429 (htab_t output_comdat_type_unit::extern_map): Likewise.
26430 (htab_t output_macinfo::macinfo_htab): Likewise.
26431 (htab_t optimize_location_lists::htab): Likewise.
26432 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
26434 * except.c (htab_t ehspec_hash_type):
26435 Change type to hash_table. Update dependent calls and types.
26436 (assign_filter_values::ttypes): Likewise.
26437 (assign_filter_values::ehspec): Likewise.
26438 (sjlj_assign_call_site_values::ar_hash): Likewise.
26439 (convert_to_eh_region_ranges::ar_hash): Likewise.
26441 * gcse.c (htab_t pre_ldst_table):
26442 Change type to hash_table. Update dependent calls and types.
26444 * ggc-common.c (htab_t saving_htab):
26445 Change type to hash_table. Update dependent calls and types.
26446 (htab_t loc_hash): Likewise.
26447 (htab_t ptr_hash): Likewise.
26448 (call_count): Rename ggc_call_count.
26449 (call_alloc): Rename ggc_call_alloc.
26450 (loc_descriptor): Rename make_loc_descriptor.
26451 (add_statistics): Rename ggc_add_statistics.
26453 * ggc-common.c (saving_htab):
26454 Change type to hash_table. Update dependent calls and types.
26456 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
26457 (push_gimplify_context): Likewise.
26458 (pop_gimplify_context): Likewise.
26459 (struct gimple_temp_hash_elt): Added.
26460 (struct gimplify_hasher): Likewise.
26461 (struct gimplify_ctx.temp_htab):
26462 Change type to hash_table. Update dependent calls and types.
26464 * gimple-fold.c: Include gimplify-ctx.h.
26466 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
26467 Change type to hash_table. Update dependent calls and types.
26468 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
26469 avoid potential global name collision.
26471 * gimplify.c: Include gimplify-ctx.h.
26472 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
26473 (htab_t gimplify_ctx::temp_htab):
26474 Update dependent calls and types for new type hash_table.
26475 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
26476 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
26478 * gimplify-ctx.h: New.
26479 (struct gimple_temp_hash_elt): Move from gimplify.c.
26480 (class gimplify_hasher): New.
26481 (struct gimplify_ctx): Move from gimple.h.
26482 (htab_t gimplify_ctx::temp_htab):
26483 Change type to hash_table. Update dependent calls and types.
26485 * graphite-clast-to-gimple.c: Include graphite-htab.h.
26486 (htab_t ivs_params::newivs_index):
26487 Change type to hash_table. Update dependent calls and types.
26488 (htab_t ivs_params::params_index): Likewise.
26489 (htab_t print_generated_program::params_index): Likewise.
26490 (htab_t gloog::newivs_index): Likewise.
26491 (htab_t gloog::params_index): Likewise.
26493 * graphite.c: Include graphite-htab.h.
26494 4htab_t graphite_transform_loops::bb_pbb_mapping):
26495 Change type to hash_table. Update dependent calls and types.
26497 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
26498 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
26499 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
26501 * graphite-dependences.c: Include graphite-htab.h.
26502 (loop_is_parallel_p): Change hash table type of parameter.
26504 * graphite-htab.h: New.
26505 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
26506 (extern find_pbb_via_hash): Move from graphite-poly.h.
26507 (extern loop_is_parallel_p): Move from graphite-poly.h.
26508 (extern get_loop_body_pbbs): Move from graphite-poly.h.
26510 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
26511 (extern loop_is_parallel_p): Move to graphite-htab.h.
26512 (extern get_loop_body_pbbs): Move to graphite-htab.h.
26514 * haifa-sched.c (htab_t delay_htab):
26515 Change type to hash_table. Update dependent calls and types.
26516 (htab_t delay_htab_i2): Likewise.
26518 * ira-color.c (htab_t allocno_hard_regs_htab):
26519 Change type to hash_table. Update dependent calls and types.
26521 * ira-costs.c (htab_t cost_classes_htab):
26522 Change type to hash_table. Update dependent calls and types.
26524 * loop-invariant.c (htab_t merge_identical_invariants::eq):
26525 Change type to hash_table. Update dependent calls and types.
26527 * loop-iv.c (htab_t bivs):
26528 Change type to hash_table. Update dependent calls and types.
26530 * loop-unroll.c (htab_t opt_info::insns_to_split):
26531 Change type to hash_table. Update dependent calls and types.
26532 (htab_t opt_info::insns_with_var_to_expand): Likewise.
26534 * lto-streamer.h (struct string_slot): Move from data-streamer.h
26535 (struct string_slot_hasher): New.
26536 (htab_t output_block::string_hash_table):
26537 Change type to hash_table. Update dependent calls and types.
26539 * lto-streamer-in.c (freeing_string_slot_hasher): New.
26540 (htab_t file_name_hash_table):
26541 Change type to hash_table. Update dependent calls and types.
26543 * lto-streamer-out.c: Update output_block::string_hash_table dependent
26546 * lto-streamer.c (htab_t tree_htab):
26547 Change type to hash_table. Update dependent calls and types.
26549 * omp-low.c: Include gimplify-ctx.h.
26551 * passes.c (htab_t name_to_pass_map):
26552 Change type to hash_table. Update dependent calls and types.
26553 (pass_traverse): Rename to passes_pass_traverse.
26555 * plugin.c (htab_t event_tab):
26556 Change type to hash_table. Update dependent calls and types.
26558 * postreload-gcse.c (htab_t expr_table):
26559 Change type to hash_table. Update dependent calls and types.
26560 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
26562 * sese.c (debug_rename_map_1): Make extern.
26563 (htab_t copy_bb_and_scalar_dependences::rename_map):
26564 Change type to hash_table. Update dependent calls and types.
26566 * sese.h (extern debug_rename_map): Move to .c file.
26568 * store-motion.c (htab_t store_motion_mems_table):
26569 Change type to hash_table. Update dependent calls and types.
26571 * trans-mem.c (htab_t tm_new_mem_hash):
26572 Change type to hash_table. Update dependent calls and types.
26574 * tree-browser.c (htab_t TB_up_ht):
26575 Change type to hash_table. Update dependent calls and types.
26577 * tree-cfg.c (htab_t discriminator_per_locus):
26578 Change type to hash_table. Update dependent calls and types.
26580 * tree-complex.c: Include tree-hasher.h
26581 (htab_t complex_variable_components):
26582 Change type to hash_table. Update dependent calls and types.
26584 * tree-eh.c (htab_t finally_tree):
26585 Change type to hash_table. Update dependent calls and types.
26587 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
26588 struct int_tree_hasher.
26589 (extern int_tree_map_eq): Likewise.
26590 (uid_decl_map_hash): Removed.
26591 (extern decl_tree_map_eq): Likewise.
26593 * tree-hasher.h: New.
26594 (struct int_tree_hasher): New.
26595 (typedef int_tree_htab_type): New.
26597 * tree-inline.c: Include gimplify-ctx.h.
26599 * tree-mudflap.c: Include gimplify-ctx.h.
26601 * tree-parloops.c: Include tree-hasher.h.
26602 (htab_t eliminate_local_variables_stmt::decl_address):
26603 Change type to hash_table. Update dependent calls and types.
26604 (htab_t separate_decls_in_region::decl_copies): Likewise.
26606 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
26607 Change type to hash_table. Update dependent calls and types.
26609 * tree-sra.c (candidates):
26610 Change type to hash_table. Update dependent calls and types.
26612 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
26614 (int_tree_map_hash): Likewise.
26616 * tree-ssa-dom.c (htab_t avail_exprs):
26617 Change type to hash_table. Update dependent calls and types.
26619 * tree-ssa-live.c (var_map_base_init::tree_to_index):
26620 Change type to hash_table. Update dependent calls and types.
26622 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
26623 Change type to hash_table. Update dependent calls and types.
26625 * tree-ssa-phiopt.c (seen_ssa_names):
26626 Change type to hash_table. Update dependent calls and types.
26628 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
26629 Change type to hash_table. Update dependent calls and types.
26631 * tree-ssa-uncprop.c (equiv):
26632 Change type to hash_table. Update dependent calls and types.
26634 2013-04-25 Jakub Jelinek <jakub@redhat.com>
26636 PR rtl-optimization/57003
26637 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
26638 call note_stores with kill_clobbered_value callback again after
26639 killing regs_invalidated_by_call.
26641 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
26643 * config/aarch64/aarch64-simd.md
26644 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
26645 (aarch64_simd_bsl<mode>): Likewise.
26646 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
26648 2013-04-25 Marek Polacek <polacek@redhat.com>
26650 PR tree-optimization/57066
26651 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
26653 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
26655 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
26657 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
26659 * config/aarch64/aarch64-builtins.c
26660 (aarch64_fold_builtin): New.
26661 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
26662 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
26663 * config/aarch64/aarch64-simd-builtins.def (abs): New.
26664 * config/aarch64/arm_neon.h
26665 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
26667 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
26668 Tejas Belagod <tejas.belagod@arm.com>
26670 * config/aarch64/aarch64-builtins.c
26671 (aarch64_gimple_fold_builtin): New.
26672 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
26673 * config/aarch64/aarch64-simd-builtins.def (addv): New.
26674 * config/aarch64/aarch64-simd.md (addpv4sf): New.
26675 (addvv4sf): Update.
26676 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
26678 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
26680 * config/aarch64/aarch64.md
26681 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
26683 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
26685 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
26686 (*ngcsi_uxtw): New pattern.
26688 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26689 Julian Brown <julian@codesourcery.com>
26691 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
26692 (TB_DREG): Add T_V4HF.
26693 (v4hf_UP): New macro.
26694 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
26695 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
26696 Handle initialisation of V4HF. Adjust initialisation of reinterpret
26698 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
26699 (arm_vector_mode_supported_p): Handle V4HF.
26700 (arm_mangle_map): Handle V4HFmode.
26701 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
26702 * config/arm/arm_neon_builtins.def: Add entries for
26703 vcvtv4hfv4sf, vcvtv4sfv4hf.
26704 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
26705 (neon_vcvtv4hfv4sf): Likewise.
26706 * config/arm/neon-gen.ml: Handle half-precision floating point
26708 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
26709 * config/arm/arm_neon.h: Regenerate.
26710 * config/arm/neon.ml (type elts): Add F16.
26711 (type vectype): Add T_float16x4, T_floatHF.
26712 (type vecmode): Add V4HF.
26713 (type features): Add Requires_FP_bit feature.
26714 (elt_width): Handle F16.
26715 (elt_class): Likewise.
26716 (elt_of_class_width): Likewise.
26717 (mode_of_elt): Refactor.
26718 (type_for_elt): Handle F16, fix error messages.
26719 (vectype_size): Handle T_float16x4.
26720 (vcvt_sh): New function.
26721 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
26722 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
26723 (string_of_mode): Handle V4HF.
26724 * doc/arm-neon-intrinsics.texi: Regenerate.
26726 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
26728 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
26729 format specifier in 'X' case.
26731 2013-04-25 Alan Modra <amodra@gmail.com>
26734 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
26735 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
26736 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
26737 Repeat for many other rotate/shift and mask patterns using subregs.
26738 Name lshiftrt insns.
26739 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
26740 on WORDS_BIG_ENDIAN.
26742 2013-04-25 Alan Modra <amodra@gmail.com>
26744 * config.gcc: Support little-endian powerpc-linux targets.
26745 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
26746 (LINK_OS_LINUX_SPEC): Define.
26747 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
26748 Preserve MASK_LITTLE_ENDIAN.
26749 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
26750 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
26751 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
26752 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
26753 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
26754 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
26755 Correct fp word order for little-endian. Don't shift toc entries
26756 smaller than a word for little-endian.
26757 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
26758 (bswapdi2 splits): Correct low-part subreg for little-endian.
26759 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
26760 low/high where such is correct only for be.
26761 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
26762 little-endian for -mcall-aixdesc.
26764 2013-04-25 Alan Modra <amodra@gmail.com>
26766 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
26767 replace_equiv_address_nv.
26769 2013-04-25 Alan Modra <amodra@gmail.com>
26771 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
26773 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
26776 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
26777 * rtl.h (struct rtx_def): ...
26779 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
26781 PR rtl-optimizations/57046
26782 * lra-constraints (split_reg): Set up lra_risky_transformations_p
26783 for multi-reg splits.
26785 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
26787 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
26789 2013-04-24 Sterling Augustine <saugustine@google.com>
26791 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
26792 (comp_dir_string, debug_str_dwo_section): New.
26793 (DEBUG_STR_DWO_SECTION): Rename to ...
26794 (DEBUG_DWO_STR_SECTION): ... this.
26795 (DEBUG_NORM_STR_SECTION): Delete.
26796 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
26797 (DEBUG_STR_DWO_SECTION_FLAGS): New.
26798 (find_AT_string): Move most logic to ...
26799 (find_AT_string_in_table): ... here. New.
26800 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
26801 add_skeleton_AT_string. Delete logic.
26802 (output_skeleton_debug_sections): Remove call to
26803 add_top_level_skeleton_die_attrs.
26804 (add_comp_dir_attribute): Move logic to comp_dir_string.
26805 (dwarf2out_init): Initialize debug_str_dwo_section.
26806 (output_indirect_string): Call find_string_form.
26807 (output_indirect_strings): Rewrite.
26808 (prune_unused_types): Empty skeleton_debug_str_hash.
26809 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
26810 (dwarf2out_finish): Call output_indirect_strings.
26812 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
26814 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
26816 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
26818 * rtl.h (struct rtx_def): Add comment for field jump.
26819 (LRA_SUBREG_P): New macro.
26820 * recog.c (register_operand): Check LRA_SUBREG_P.
26821 * lra.c (lra): Add note at the end of RTL code. Align non-empty
26823 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
26824 (lra_final_code_change): Skip subreg change for operators.
26825 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
26826 if there are no operand changes.
26827 * lra-constraints.c (curr_insn_set): New.
26828 (match_reload): Set LRA_SUBREG_P.
26829 (emit_spill_move): Ditto.
26830 (check_and_process_move): Use curr_insn_set. Process only single
26831 set insns. Don't initialize sec_mem_p and change_p.
26832 (simplify_operand_subreg): Use LRA_SUBREG_P.
26833 (reg_in_class_p): New function.
26834 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
26835 of #ifdef. Add code to remove cycling.
26836 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
26837 non-null disp. Reload inner instead of disp when base and index
26838 are null. Try to put lo_sum into register.
26839 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
26840 (check_and_process_move): Move code for move cost check to
26841 simple_move_p. Remove equiv_substitution.
26842 (simple_move_p): New function.
26843 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
26844 curr_insn_set. Call check_and_process_move only for single set
26845 insns. Use the new function. Move call of check_and_process_move
26846 after operand equiv substitution and address process.
26848 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
26850 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
26851 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
26852 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
26854 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
26856 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
26858 2013-04-24 Marek Polacek <polacek@redhat.com>
26860 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
26861 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
26862 (select_loops_exit_conditions): Likewise.
26863 (number_of_iterations_for_all_loops): Likewise.
26864 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
26865 (scev_analysis): Likewise.
26867 2013-04-02 Catherine Moore <clm@codesourcery.com>
26868 Chao-ying Fu <fu@mips.com>
26870 * config/mips/micromips.md (jraddiusp): New pattern.
26871 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
26872 instruction if possible.
26874 2013-04-24 Alan Modra <amodra@gmail.com>
26876 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
26878 2013-04-24 Julian Brown <julian@codesourcery.com>
26879 Chung-Lin Tang <cltang@codesourcery.com>
26881 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
26882 dependency behavior in enumeration type DIE generation. Add TODO note
26883 to comments about future DW_FORM_sdata/udata re-work of related code.
26885 2013-04-23 Lawrence Crowl <crowl@google.com>
26887 * Makefile.in: Update as needed below.
26889 * hash-table.h (class hash_table):
26890 Correct many methods with parameter types compare_type to the correct
26891 value_type. (Correct code was unlikely to notice the change.)
26892 (hash_table::elements_with_deleted) New.
26893 (class hashtable::iterator): New.
26894 (hashtable::begin()): New.
26895 (hashtable::end()): New.
26896 (FOR_EACH_HASH_TABLE_ELEMENT): New.
26898 * statistics.c (statistics_hashes):
26899 Change type to hash_table. Update dependent calls and types.
26901 * tree-into-ssa.c (var_infos):
26902 Change type to hash_table. Update dependent calls and types.
26904 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
26905 Change type to hash_table. Update dependent calls and types.
26907 * tree-ssa-loop-im.c (struct mem_ref.refs):
26908 Change type to hash_table. Update dependent calls and types.
26910 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
26911 Change type to hash_table. Update dependent calls and types.
26913 * tree-ssa-sccvn.c (vn_tables_s::nary):
26914 Change type to hash_table. Update dependent calls and types.
26915 (vn_tables_s::phis): Likewise.
26916 (vn_tables_s::references): Likewise.
26918 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
26919 (vn_reference_eq): Update parameter and return types.
26921 * tree-ssa-structalias.c (pointer_equiv_class_table):
26922 Change type to hash_table. Update dependent calls and types.
26923 (location_equiv_class_table): Likewise.
26925 * tree-vect-data-refs.c: Consequential changes for making
26926 peeling a hash_table.
26928 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
26929 (destroy_loop_vec_info): Dependent hash_table update.
26931 * tree-vectorizer.h (peeling_htab):
26932 Change type to hash_table. Update dependent calls and types.
26934 2013-04-23 Shiva Chen <shiva0217@gmail.com>
26936 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
26937 to check the register content is equal or not.
26938 * lra-constraints.c (match_reload): Use lra_assign_reg_val
26939 to assign register content record.
26940 * lra-eliminations.c (update_reg_eliminate): Use
26941 lra_update_reg_val_offset to update register content offset.
26942 * lra-int.h (struct lra_reg): Add offset member.
26943 (lra_reg_val_equal_p): New static inline function.
26944 (lra_update_reg_val_offset): New static inline function.
26945 (lra_assign_reg_val): New static inline function.
26946 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
26947 to assign register content record.
26948 (initialize_lra_reg_info_element): Initial offset to zero.
26950 2013-04-23 Catherine Moore <clm@codesourcery.com>
26952 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
26953 operands. Record compression.
26955 2013-04-23 Xinliang David Li <davidxl@google.com>
26957 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
26959 2013-04-23 Richard Biener <rguenther@suse.de>
26961 PR middle-end/57036
26962 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
26963 parameter, only add abnormal goto edges from the copied body
26964 if the call could perform abnormal gotos.
26965 (copy_cfg_body): Adjust.
26967 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
26969 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
26971 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
26973 * coretypes.h (gimple_stmt_iterator): Add struct to make
26976 2013-04-23 Richard Biener <rguenther@suse.de>
26978 PR tree-optimization/57026
26979 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
26980 from SSA names occuring in abnormal PHI nodes.
26982 2013-04-22 Andi Kleen <ak@linux.intel.com>
26984 * lto/lto.c (print_lto_report_1): Fix LTO report names.
26986 2013-04-22 Andi Kleen <ak@linux.intel.com>
26988 * lto/lto.c (print_lto_report_1): Declare early.
26989 (read_cgraph_and_symbols): Call print_lto_report_1 early.
26991 2013-04-22 Andi Kleen <ak@linux.intel.com>
26993 * common.opt (-flto-report-wpa): Add.
26994 * doc/invoke.texi (-flto-report-wpa): Add.
26995 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
26998 2013-04-22 Xinliang David Li <davidxl@google.com>
27000 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
27001 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
27002 * Makefile.in: New dependency
27004 David Daney <ddaney.cavm@gmail.com>
27006 * configure.ac (gcc_cv_as_micromips_support): Use the
27007 --fatal-warnings option.
27008 * configure: Regenerate.
27010 2013-04-22 Marek Polacek <polacek@redhat.com>
27013 * tsan.c (instrument_expr): Don't instrument expression
27014 in case its size is zero.
27016 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
27020 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
27022 * config/alpha/alpha.c (TARGET_LRA_P): New define.
27024 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
27026 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
27027 (gimple_stmt_iterator): New typedef.
27028 * gimple.h (gimple_stmt_iterator): Rename to...
27029 (gimple_stmt_iterator_d): ... This.
27030 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
27031 trees be valid for GIMPLE and GENERIC.
27032 (TARGET_GIMPLE_FOLD_BUILTIN): New.
27033 * gimple-fold.c (gimple_fold_call): Call target hook
27034 gimple_fold_builtin.
27035 * hooks.c (hook_bool_gsiptr_false): New.
27036 * hooks.h (hook_bool_gsiptr_false): New.
27037 * target.def (fold_stmt): New.
27038 * doc/tm.texi: Regenerate.
27040 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
27043 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
27044 a set sp if no stack realignment.
27046 2013-04-22 Nick Clifton <nickc@redhat.com>
27048 * config.gcc (tilegx-linux): Extend extra_objs rather than
27050 (tilepro-linux): Likewise.
27052 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
27054 * config/aarch64/aarch64-builtins.c
27056 (CF0, CF1, CF2, CF3, CF4, CF10): New.
27057 (VAR<1-12>): Add MAP parameter.
27058 (BUILTIN_*): Likewise.
27059 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
27060 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
27061 (aarch64_ushl_n<mode>): Likewise.
27062 (aarch64_sshr_n<mode>): Likewise.
27063 (aarch64_ushr_n<mode>): Likewise.
27064 (aarch64_<maxmin><mode>): Likewise.
27065 (aarch64_sqrt<mode>): Likewise.
27066 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
27067 (vshr<q>_n_*): Likewise.
27069 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
27071 * config/aarch64/aarch64-builtins.c
27072 (aarch64_simd_builtin_type_mode): Handle SF types.
27074 (BUILTIN_GPF): Define.
27075 (aarch64_init_simd_builtins): Handle SF types.
27076 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
27077 (frecps): Likewise.
27078 (frecpx): Likewise.
27079 * config/aarch64/aarch64-simd.md
27080 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
27081 (aarch64_frecpe<mode>): New.
27082 (aarch64_frecps<mode>): Likewise.
27083 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
27084 (v8type): Add frecp<esx>.
27085 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
27086 (aarch64_frecps<mode>): Likewise.
27087 * config/aarch64/iterators.md (FRECP): New.
27088 (frecp_suffix): Likewise.
27089 * config/aarch64/arm_neon.h
27090 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
27092 2013-04-22 Christian Bruel <christian.bruel@st.com>
27095 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
27096 (REG_CLASS_NAMES): Idem.
27097 (REG_CLASS_CONTENTS): Idem.
27098 (REGCLASS_HAS_FP_REG): Idem.
27099 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
27100 (sh_conditional_register_usage): Idem.
27102 2013-04-21 Jeff Law <law@redhat.com>
27104 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
27105 (ssa_forward_propagate_and_combine): Use it.
27107 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
27109 * lra.c: Update the flow chart diagram.
27111 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
27113 PR rtl-optimization/56847
27114 * lra-constraints.c (process_alt_operands): Discourage alternative
27115 with non-matche doffsettable memory constraint fro memory with
27118 2013-04-19 Richard Biener <rguenther@suse.de>
27120 PR tree-optimization/56982
27121 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
27123 * gimplify.c (gimplify_call_expr): Notice special calls.
27124 (gimplify_modify_expr): Likewise.
27125 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
27126 abnormal control flow receivers.
27127 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
27128 in the same way as cfun->has_nonlocal_labels.
27129 (gimple_purge_dead_abnormal_call_edges): Likewise.
27130 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
27131 receivers start a basic-block.
27133 2013-04-19 Richard Biener <rguenther@suse.de>
27135 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
27137 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
27138 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
27139 (SLP_TREE_LOAD_PERMUTATION): Add.
27140 (vect_transform_slp_perm_load): Adjust prototype.
27141 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
27142 (vect_free_slp_instance): Likewise.
27143 (vect_create_new_slp_node): Likewise.
27144 (vect_supported_slp_permutation_p): Remove.
27145 (vect_slp_rearrange_stmts): Adjust.
27146 (vect_supported_load_permutation_p): Likewise. Inline
27147 vect_supported_slp_permutation_p here.
27148 (vect_analyze_slp_instance): Compute load permutations per
27149 slp node instead of per instance.
27150 (vect_get_slp_defs): Adjust.
27151 (vect_transform_slp_perm_load): Likewise.
27152 (vect_schedule_slp_instance): Remove redundant code.
27153 (vect_schedule_slp): Remove hack for PR56270, add it ...
27154 * tree-vect-stmts.c (vectorizable_load): ... here, do not
27155 CSE loads for SLP. Adjust.
27157 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
27159 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
27160 spelling in two comments.
27162 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
27165 * config/arm/arm.c (load_multiple_sequence): Require SP
27166 as base register for loads if SP is in the register list.
27168 2013-04-19 Martin Jambor <mjambor@suse.cz>
27170 PR tree-optimization/56718
27171 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
27172 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
27173 and made public. Adjusted all callers.
27174 (ipa_intraprocedural_devirtualization): New function.
27175 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
27176 (ipa_intraprocedural_devirtualization): Likewise.
27177 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
27179 2013-04-19 Richard Biener <rguenther@suse.de>
27181 PR tree-optimization/57000
27182 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
27184 2013-04-19 Terry Guo <terry.guo@arm.com>
27186 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
27188 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
27189 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
27190 (cortex_m4_fmacs): Use new reservations.
27191 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
27193 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
27195 PR rtl-optimization/56999
27196 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
27198 (lra_coalesce): Remove split_origin_bitmap and related code.
27199 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
27200 ranges if necessary.
27202 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
27204 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
27206 (ix86_expand_call): Remove clobbered_registers array and use
27207 x86_64_ms_sysv_extra_clobbered_registers instead.
27208 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
27210 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
27212 * config/i386/i386.md (*call_rex64_ms_sysv): Use
27213 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
27214 (*call_value_rex64_ms_sysv): Ditto.
27216 2013-04-18 Cary Coutant <ccoutant@google.com>
27218 * dwarf2out.c (output_pubnames): Check die_perennial_p of
27219 parent instead of die_mark.
27221 2013-04-18 Diego Novillo <dnovillo@google.com>
27223 * gimple.c (create_gimple_tmp): New.
27224 (get_expr_type): New.
27225 (build_assign): New.
27226 (build_type_cast): New.
27227 * gimple.h (enum ssa_mode): Define.
27228 (gimple_seq_set_location): New.
27229 * asan.c (build_check_stmt): Change some gimple_build_* calls
27230 to use build_assign and build_type_cast.
27232 2013-04-18 Richard Biener <rguenther@suse.de>
27234 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
27235 handle negative step. Remove redundant checks.
27236 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
27237 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
27238 for negative step and grouped loads fail to vectorize.
27240 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
27242 * emit-rtl.c (reset_insn_used_flags): New function.
27243 (reset_all_used_flags): Use it.
27244 (verify_insn_sharing): New function.
27245 (verify_rtl_sharing): Fix verification for SEQUENCEs.
27247 2013-04-18 Jakub Jelinek <jakub@redhat.com>
27249 PR tree-optimization/56984
27250 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
27251 and (x >> M) >= N don't register any assertion if N << M is the
27254 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
27256 * lower-subreg.c (resolve_simple_move): If called self-recursive,
27257 do not delete_insn insns that have not yet been emitted, only
27258 unlink them with remove_insn.
27259 * df-scan.c (df_insn_delete): Revert r197492.
27261 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
27263 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
27264 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
27266 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
27268 * config/arm/arm.md (movsicc_insn): Convert define_insn into
27269 define_insn_and_split.
27270 (and_scc,ior_scc,negscc): Likewise.
27271 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
27273 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
27275 * config/arm/arm.c (use_return_insn): Return 0 for targets that
27276 can benefit from using a sequence of LDRD instructions in epilogue
27277 instead of a single LDM instruction.
27279 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
27282 * doc/extend.texi: Fix typo.
27284 2013-04-17 Richard Biener <rguenther@suse.de>
27286 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
27287 (vect_build_slp_tree): ... here.
27288 (vect_build_slp_tree_1): Compute which stmts of the SLP group
27289 match. Remove special-casing of mismatched complex loads.
27290 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
27291 re-try the match with swapped commutative operands.
27292 (vect_supported_load_permutation_p): Remove special-casing of
27293 mismatched complex loads.
27294 (vect_analyze_slp_instance): Adjust.
27296 2013-04-17 Richard Biener <rguenther@suse.de>
27298 PR rtl-optimization/56921
27299 * cfgloop.h (struct loop): Add simple_loop_desc member.
27300 (struct niter_desc): Mark with GTY(()).
27301 (simple_loop_desc): Do not use aux field but simple_loop_desc.
27302 * loop-iv.c (get_simple_loop_desc): Likewise.
27303 (free_simple_loop_desc): Likewise.
27306 2013-04-16 Richard Biener <rguenther@suse.de>
27308 PR rtl-optimization/56921
27309 * loop-init.c (pass_rtl_move_loop_invariants): Add
27310 TODO_do_not_ggc_collect to todo_flags_finish.
27311 (pass_rtl_unswitch): Same.
27312 (pass_rtl_unroll_and_peel_loops): Same.
27313 (pass_rtl_doloop): Same.
27315 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
27317 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
27318 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
27319 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
27321 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
27322 * tree-streamer.c (record_common_node): Adjust reference in comment.
27324 2013-04-17 Terry Guo <terry.guo@arm.com>
27326 * config/arm/cortex-m4.md: Add a new bypass.
27328 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
27330 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
27332 (*subs_<optab><mode>_multp2): New pattern.
27333 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
27334 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
27336 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
27338 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
27339 (*subs_mul_imm_<mode>): New pattern.
27341 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
27344 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
27345 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
27346 (vsx_movti_32bit): Change j->wa to O->wa.
27348 2013-04-16 Richard Biener <rguenther@suse.de>
27350 PR rtl-optimization/56921
27351 * loop-init.c (pass_rtl_move_loop_invariants): Add
27352 TODO_do_not_ggc_collect to todo_flags_finish.
27353 (pass_rtl_unswitch): Same.
27354 (pass_rtl_unroll_and_peel_loops): Same.
27355 (pass_rtl_doloop): Same.
27357 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
27359 * config/arm/arm.c (emit_multi_reg_push): New declaration
27360 for an existing function.
27361 (arm_emit_strd_push): New function.
27362 (arm_expand_prologue): Used here.
27363 (arm_emit_ldrd_pop): New function.
27364 (arm_expand_epilogue): Used here.
27365 (arm_get_frame_offsets): Update condition.
27366 (arm_emit_multi_reg_pop): Add a special case for load of a single
27367 register with writeback.
27369 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
27371 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
27374 2013-04-16 Richard Biener <rguenther@suse.de>
27376 PR tree-optimization/56756
27377 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
27378 (first_mem_ref_loc): New.
27379 (execute_sm): Place the load temporarily before a previous
27380 access instead of in the latch edge to ensure its SSA dependencies
27381 are defined at points dominating the load.
27383 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
27385 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
27386 correct fix by moving header and footer insn to the footer of
27387 the merged basic block. Clear BB_END of the merged-away block.
27389 PR middle-end/43631
27390 * emit-rtl.c (make_note_raw): New function.
27391 (link_insn_into_chain): New static inline function.
27392 (add_insn): Use it.
27393 (add_insn_before, add_insn_after): Factor insn chain linking code...
27394 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
27395 using link_insn_into_chain.
27396 (note_outside_basic_block_p): New helper function for emit_note_after
27397 and emit_note_before.
27398 (emit_note_after): Use nobb variant of add_insn_after if the note
27399 should not be contained in a basic block.
27400 (emit_note_before): Use nobb variant of add_insn_before if the note
27401 should not be contained in a basic block.
27402 (emit_note_copy): Use make_note_raw.
27403 (emit_note): Likewise.
27404 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
27405 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
27406 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
27407 the moved barrier the tail of the basic block it follows.
27408 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
27410 2013-04-15 Jakub Jelinek <jakub@redhat.com>
27412 PR tree-optimization/56962
27413 * gimple-ssa-strength-reduction.c (record_increment): Only set
27414 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
27415 either rhs1 or rhs2 is equal to c->base_expr.
27417 2013-04-15 Richard Biener <rguenther@suse.de>
27419 PR tree-optimization/56933
27420 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
27422 (GROUP_READ_WRITE_DEPENDENCE): Remove.
27423 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
27424 * tree-vect-data-refs.c (vect_analyze_group_access): Move
27425 dependence check ...
27426 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
27428 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
27429 GROUP_READ_WRITE_DEPENDENCE.
27431 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27433 * emit-rtl.c (reset_all_used_flags): New function.
27434 (verify_rtl_sharing): Call reset_all_used_flags before and after
27435 performing the checks.
27437 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27439 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
27440 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
27441 * config/arm/constraints.md (De): New constraint.
27442 * config/arm/neon.md (anddi3_neon): Delete.
27443 (neon_vand<mode>): Expand to standard anddi3 pattern.
27444 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
27445 Move earlier in the file.
27446 (neon_inv_logic_op2): Likewise.
27447 (arm_anddi_operand_neon): New predicate.
27449 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27451 * configure.ac (gcc_cv_ld_as_needed): Set
27452 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
27453 Use -z ignore, -z record on *-*-solaris2*.
27454 (HAVE_LD_AS_NEEDED): Update comment.
27455 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
27456 * configure: Regenerate.
27457 * config.in: Regenerate.
27458 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
27459 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
27460 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
27461 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
27462 equivalents. Fix markup.
27463 * doc/tm.texi: Regenerate.
27465 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
27467 * config/i386/i386.opt: New option mstack-protector-guard=.
27468 * config/i386/i386-opts.h: Add enum stack_protector_guard.
27469 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
27470 TARGET_SSP_TLS_GUARD.
27471 * config/i386/i386.c (ix86_option_override_internal): Set
27472 ix86_stack_protector_guard.
27473 * config/i386/i386.md (stack_protect_set): Enable for
27474 TARGET_SSP_TLS_GUARD only.
27475 (stack_protect_set_<mode>): Ditto.
27476 (stack_protect_test): Ditto.
27477 (stack_protect_test_<mode>): Ditto.
27478 * doc/invoke.texi (i386 Option): Document.
27480 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
27483 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
27484 (S_MODES): Set H_MODE bit.
27485 (SF_MODES): Set only S_MODE and SF_MODE bits.
27486 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
27487 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
27488 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
27489 <MODE_FLOAT>: Likewise.
27491 2013-04-15 Joey Ye <joey.ye@arm.com>
27493 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
27495 2013-04-15 Joey Ye <joey.ye@arm.com>
27497 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
27499 (thumb_far_jump_used_p): Count instruction size and set
27502 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
27504 * reorg.c (fill_simple_delay_slots): Reindent block of code.
27505 * resource.c (mark_target_live_regs): Reformat conditional block.
27507 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
27509 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
27510 notes, they are emitted only just before final.
27511 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
27513 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
27515 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
27516 * cfgrtl.c (delete_insn): Call it here instead.
27517 * lra-spills.c (lra_final_code_change): Use delete_insn.
27518 * haifa-sched.c (sched_remove_insn): Likewise.
27519 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
27520 returning to the nop pool.
27521 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
27522 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
27524 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
27526 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
27527 * doc/tm.texi: Regenerated.
27529 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
27531 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
27534 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
27536 * df-core.c (df_find_def): Compare register numbers.
27537 (df_find_use): Likewise.
27539 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
27542 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
27543 lra_in_progress for return.
27545 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
27547 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
27548 define_insn into define_insn_and_split and emit movsicc patterns.
27550 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
27552 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
27554 2013-04-12 Richard Biener <rguenther@suse.de>
27556 * tree-pass.h (TODO_do_not_ggc_collect): New.
27557 * passes.c (execute_one_ipa_transform_pass): Honor
27558 TODO_do_not_ggc_collect.
27559 (execute_one_pass): Likewise.
27562 2013-04-10 Richard Biener <rguenther@suse.de>
27564 * passes.c (init_optimization_passes): Remove reload pass.
27565 * ira.c (do_reload): Merge into ...
27567 (rest_of_handle_reload): Remove.
27568 (pass_reload): Likewise.
27569 * config/i386/i386.c (ix86_option_override): Refer to ira instead
27570 of reload for vzeroupper pass placement.
27572 2013-04-12 Jakub Jelinek <jakub@redhat.com>
27574 PR tree-optimization/56918
27575 PR tree-optimization/56920
27576 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
27577 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
27578 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
27579 use wide_mul_with_sign method.
27581 2013-04-12 Richard Biener <rguenther@suse.de>
27583 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
27584 not be considered a gimple constant.
27586 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
27588 * fold-const.c (const_binop): Handle vector shifts by a scalar.
27589 (fold_binary_loc): Call const_binop also for mixed vector-scalar
27592 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
27593 Jakub Jelinek <jakub@redhat.com>
27595 * opts.c: Include diagnostic-color.h.
27596 (common_handle_option): Handle OPT_fdiagnostics_color_.
27597 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
27598 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
27599 (diagnostic-color.o): New.
27600 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
27601 (diagnostic_color_rule): New enum.
27602 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
27603 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
27604 the location string.
27605 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
27606 either NULL, or color kind.
27607 * diagnostic-color.c: New file.
27608 * diagnostic-color.h: New file.
27609 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
27611 * doc/invoke.texi (-fdiagnostics-color): Document.
27612 * pretty-print.h (pp_show_color): Define.
27613 (struct pretty_print_info): Add show_color field.
27614 * diagnostic.c: Include diagnostic-color.h.
27615 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
27616 macros. Colorize error:, warning: etc. strings and also the location
27618 (diagnostic_show_locus): Colorize the caret line.
27619 * pretty-print.c: Include diagnostic-color.h.
27620 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
27621 inside of %< %> quotes or quoted through q format modifier.
27623 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27625 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
27627 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
27629 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
27630 code in CC_NZ mode.
27631 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
27634 2013-04-11 Marek Polacek <polacek@redhat.com>
27636 PR tree-optimization/48184
27637 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
27639 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
27641 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
27642 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
27643 (skip_simple_arithmetic): Tidy up.
27644 * tree.h (skip_simple_constant_arithmetic): Declare.
27646 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
27648 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
27650 2013-04-11 Richard Biener <rguenther@suse.de>
27652 * tree-vect-loop.c (get_initial_def_for_induction): Properly
27653 generate vector constants.
27655 2013-04-11 Richard Biener <rguenther@suse.de>
27657 PR tree-optimization/56878
27658 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
27659 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
27661 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
27662 Prefer to align the DR with the most invariant base address.
27664 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
27666 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
27669 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
27671 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
27672 floating-point vector comparisons against 0.
27674 2013-04-11 Jakub Jelinek <jakub@redhat.com>
27676 PR tree-optimization/56899
27677 * fold-const.c (extract_muldiv_1): Apply distributive law
27678 only if TYPE_OVERFLOW_WRAPS (ctype).
27680 2013-04-11 Bin Cheng <bin.cheng@arm.com>
27683 * ira-costs.c (scan_one_insn): Check whether the source rtx of
27684 loading has side effect.
27686 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
27688 * config/sparc/sparc.c: Include tree-pass.h.
27689 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
27690 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
27691 head of file. Change return type. Split off gate function.
27692 (sparc_gate_work_around_errata): New function.
27693 (pass_work_around_errata): New pass definition.
27694 (insert_pass_work_around_errata) New pass insert definition to
27695 insert pass_work_around_errata just after delayed-branch scheduling.
27696 (sparc_option_override): Insert the pass.
27697 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
27699 2013-04-10 David S. Miller <davem@davemloft.net>
27701 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
27702 or -mcpu=hypersparc.
27704 * target.def (cstore_mode): New hook.
27705 * target.h: Include insn-codes.h
27706 * targhooks.c: Likewise.
27707 (default_cstore_mode): New function.
27708 * targhooks.h: Declare it.
27709 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
27710 * doc/tm.texi: Rebuild.
27711 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
27712 target hook, rather than inspecting the insn_data.
27713 * config/sparc/sparc.c (sparc_cstore_mode): New function.
27714 (TARGET_CSTORE_MODE): Redefine.
27715 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
27717 * config/sparc/predicates.md (cstore_result_operand): New special
27719 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
27720 Use it for operand 0.
27721 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
27722 (*snesi_special): Likewise.
27723 (*snesi_zero): Likewise.
27724 (*seqsi_zero): Likewise.
27725 (*sltu_insn): Likewise.
27726 (*sgeu_insn): Likewise.
27727 (*seqdi_special): Make operand 0 and comparison operation be of
27729 (*snedi_special): Likewise.
27730 (*snedi_special_vis3): Likewise.
27731 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
27732 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
27733 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
27734 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
27735 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
27736 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
27737 (*sltu_extend_sp64): Likewise.
27738 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
27739 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
27740 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
27741 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
27742 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
27744 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
27746 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
27747 (aarch64_start_file): Use the new function.
27749 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
27750 Jason Merrill <jason@redhat.com>
27752 * common.opt: Add -gdwarf.
27753 * opts.c (common_handle_option): Handle it.
27754 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
27756 2013-04-10 Richard Biener <rguenther@suse.de>
27758 * passes.c (execute_todo): Do not call ggc_collect conditional here.
27759 (execute_one_ipa_transform_pass): But unconditionally here.
27760 (execute_one_pass): And here.
27761 (init_optimization_passes): Remove reload pass.
27762 * tree-pass.h (TODO_ggc_collect): Remove.
27763 (pass_reload): Likewise.
27764 * ira.c (do_reload): Merge into ...
27766 (rest_of_handle_reload): Remove.
27767 (pass_reload): Likewise.
27768 * config/i386/i386.c (ix86_option_override): Refer to ira instead
27769 of reload for vzeroupper pass placement.
27770 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
27771 and todo_flags_finish of all passes.
27773 2013-04-10 Richard Biener <rguenther@suse.de>
27775 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
27776 first_const_oprnd field, rename first_def_type to first_op_type.
27777 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
27778 (vect_get_and_check_slp_defs): Always use the type of the
27779 operand. Allow mixed vect_external_def, vect_constant_def types.
27780 (vect_get_constant_vectors): Handle mixed vect_external_def,
27781 vect_constant_def types.
27783 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
27785 PR tree-optimization/55524
27786 * tree-ssa-math-opts.c
27787 (convert_mult_to_fma): Don't use an fms construct
27788 when we don't have an fms operation, but fnma, and it looks
27789 likely that we'll be able to use the latter.
27791 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
27793 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
27795 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
27796 inline fail caused by overwritable functions.
27798 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
27800 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
27801 unnecessary bits in the constant power of two case.
27803 2013-04-10 Richard Biener <rguenther@suse.de>
27805 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
27806 broken code swapping operands.
27807 (vect_build_slp_tree): Do not compute load permutations here.
27808 (vect_analyze_slp_instance): Compute load permutations here,
27809 after building the SLP tree.
27811 2013-04-09 Christian Bruel <christian.bruel@st.com>
27813 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
27814 of next/prev_real_insn.
27816 2013-04-09 Jan Hubicka <jh@suse.cz>
27818 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
27819 Drop aliased parameter.
27820 (function_and_variable_visibility): Do not handle alias pairs.
27821 * cgraph.c (varpool_externally_visible_p): Update prototype.
27822 * varpool.c (varpool_add_new_variable): Update.
27824 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27826 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
27828 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
27830 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
27832 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
27834 2013-04-09 Marek Polacek <polacek@redhat.com>
27836 PR tree-optimization/48762
27837 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
27839 2013-04-09 Richard Biener <rguenther@suse.de>
27841 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
27843 (vect_build_slp_tree): Likewise.
27844 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
27845 calculating the cost of a SLP instance.
27846 (vect_analyze_slp_instance): Use it from here, after building
27849 2013-04-09 Jakub Jelinek <jakub@redhat.com>
27851 PR middle-end/56883
27852 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
27853 expand_omp_for_static_chunk): Use simple_p = true in
27854 force_gimple_operand_gsi calls when assigning to addressable decls.
27856 2013-04-09 Jeff Law <law@redhat.com>
27858 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
27859 when the boolean was created by converting a wider object which
27860 had a boolean range.
27862 2013-04-09 Richard Biener <rguenther@suse.de>
27864 * tree-vectorizer.h (slp_void_p): Remove.
27865 (slp_tree): Typedef before _slp_tree declaration.
27866 (struct _slp_tree): Use a vector of slp_tree as children.
27867 (vect_get_place_in_interleaving_chain): Remove.
27868 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
27870 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
27872 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
27873 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
27874 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
27875 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
27876 Use slp_node instead of slp_void_p and adjust.
27878 2013-04-09 Richard Biener <rguenther@suse.de>
27880 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
27881 work that is not necessary.
27883 2013-04-09 Jakub Jelinek <jakub@redhat.com>
27885 PR tree-optimization/56854
27886 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
27887 forward into clobber stmts if it would change MEM_REF lhs into
27890 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
27892 * tree.c (type_hash_lookup, type_hash_add): Make static.
27893 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
27895 2013-04-09 Richard Biener <rguenther@suse.de>
27897 * tree.h (unsave_expr_now): Remove.
27898 * tree-inline.c (mark_local_for_remap_r): Remove.
27899 (unsave_expr_1): Likewise.
27900 (unsave_r): Likewise.
27901 (unsave_expr_now): Likewise.
27902 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
27903 (propagate_tree_value): Likewise.
27905 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
27907 * doc/rtl.texi (sequence): Rewrite documentation to match the
27908 current use of SEQUENCE rtl objects.
27909 * rtl.def (SEQUENCE): Likewise.
27911 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
27912 Update documentation.
27913 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
27914 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
27916 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
27918 2013-04-08 Teresa Johnson <tejohnson@google.com>
27920 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
27921 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
27923 (estimate_edge_size_and_time): Add comment to suggest using rounding
27925 (estimate_node_size_and_time): Ditto.
27926 (remap_edge_change_prob): Use helper rounding divide methods.
27927 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
27928 (gimple_mod_pow2_value_transform): Ditto.
27929 (gimple_mod_subtract_transform): Ditto.
27930 (gimple_ic_transform): Ditto.
27931 (gimple_stringops_transform): Ditto.
27932 * stmt.c (conditional_probability): Ditto.
27933 (emit_case_dispatch_table): Ditto.
27934 * lto-cgraph.c (merge_profile_summaries): Ditto.
27935 * tree-optimize.c (execute_fixup_cfg): Ditto.
27936 * cfgcleanup.c (try_forward_edges): Ditto.
27937 * cfgloopmanip.c (scale_loop_profile): Ditto.
27939 (duplicate_loop_to_header_edge): Ditto.
27940 (lv_adjust_loop_entry_edge): Ditto.
27941 * tree-vect-loop.c (vect_transform_loop): Ditto.
27942 * profile.c (compute_branch_probabilities): Ditto.
27943 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
27944 * lto-streamer-in.c (input_cfg): Ditto.
27945 * gimple-streamer-in.c (input_bb): Ditto.
27946 * ipa-cp.c (update_profiling_info): Ditto.
27947 (update_specialized_profile): Ditto.
27948 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
27949 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
27951 * sched-rgn.c (compute_dom_prob_ps): Ditto.
27952 (compute_trg_info): Ditto.
27953 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
27954 (purge_dead_edges): Ditto.
27955 * loop-unswitch.c (unswitch_loop): Ditto.
27956 * cgraphclones.c (cgraph_clone_edge): Ditto.
27957 (cgraph_clone_node): Ditto.
27958 * tree-inline.c (copy_bb): Ditto.
27959 (copy_edges_for_bb): Ditto.
27960 (initialize_cfun): Ditto.
27961 (copy_cfg_body): Ditto.
27962 (expand_call_inline): Ditto.
27964 2013-04-08 Kai Tietz <ktietz@redhat.com>
27966 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
27967 TARGET_CYGWIN64 by TARGET_64BIT.
27969 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
27971 * config/epiphany/epiphany.md (GPR_1): New constant.
27972 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
27973 * config/epiphany/epiphany.c (gen_compare_reg):
27974 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
27975 is already in place.
27976 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
27977 Don't require being called during rtl expansion; If y operlaps r0,
27979 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
27980 (epiphany_expand_epilogue): Likewise.
27982 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
27983 Don't use CC_FPmode for ORDERED / UNORDERED.
27984 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
27986 * config/epiphany/constraints.md (CnL): New constraint.
27987 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
27988 * config/epiphany/predicates.md (add_operand): Allow 1024.
27990 * config/epiphany/epiphany.md (logical_op): New code iterator.
27991 (op_mnc): New code attribute.
27992 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
27993 (mov_f+1, mov_f+2): New peephole2 patterns.
27995 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
27996 (cstoresi4): Also allow re-use of zero result when doing a NE
27997 comparison to a non-zero operand.
27998 Use (clobber (scratch)) for first insn if the gpr output is not needed.
28000 * config/epiphany/epiphany.md (<insn_opname>v2si3):
28001 Use gen_addsi3_i / gen_subsi3_i.
28003 2013-04-08 Jakub Jelinek <jakub@redhat.com>
28007 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
28008 contain anything but clobbers, at most one __builtin_stack_restore,
28009 optionally debug stmts and final resx, and if it has at least one
28010 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
28011 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
28012 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
28013 which isn't defaut definition, remove them.
28014 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
28015 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
28016 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
28017 with MEM_REF LHS with SSA_NAME address.
28019 2013-04-08 Jeff Law <law@redhat.com>
28021 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
28023 2013-04-08 Richard Biener <rguenther@suse.de>
28025 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
28027 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
28028 determined vector type.
28029 (vect_analyze_data_refs): Likewise.
28030 (vect_get_new_vect_var): Adjust.
28031 (vect_create_destination_var): Preserve SSA name versions.
28032 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
28033 not dump anything here.
28035 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
28037 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
28038 Add member lr_slot_known.
28039 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
28041 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
28042 Remove code that sets lr_slot_offset according to what a previous
28043 version of epiphany_emit_save_restore used to do.
28044 (epiphany_emit_save_restore): When doing an lr save or restore,
28045 set/verify lr_slot_known and lr_slot_offset.
28047 2013-04-08 Xinyu Qi <xyqi@marvell.com>
28050 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
28053 2013-04-08 Richard Biener <rguenther@suse.de>
28055 * alias.c (find_base_term): Fix thinko in previous change.
28057 2013-04-08 Jakub Jelinek <jakub@redhat.com>
28059 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
28060 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
28061 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
28062 if possible to compute val.
28063 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
28064 For QImode integers don't require anything about precision. Use
28065 const_with_all_bytes_same to find out if the constant doesn't have
28066 repeated bytes in it.
28068 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28070 * config/s390/s390.c (s390_expand_insv): Only accept insertions
28073 2013-04-08 Marek Polacek <polacek@redhat.com>
28075 PR rtl-optimization/48182
28076 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
28079 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28082 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
28083 nuses, make sure we have a label.
28085 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28088 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
28089 (rs6000_emit_swdiv_low_precision): Remove.
28090 (rs6000_emit_swdiv): Rewrite to handle between one and four
28091 iterations of Newton-Raphson generally; modify required number of
28092 iterations for some cases.
28093 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
28095 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
28097 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
28098 set-but-unused variable.
28100 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
28101 basic blocks of released function bodies garbage-collectable.
28103 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
28104 (struct rtl_opt_pass): Add TODO_df_finish.
28106 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
28108 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
28110 * config/arm/constraints.md (q): New constraint.
28111 * config/arm/ldrdstrd.md: New file.
28112 * config/arm/arm.md (ldrdstrd.md) New include.
28113 (arm_movdi): Use "q" instead of "r" constraint
28114 for double-word memory access.
28115 (movdf_soft_insn): Likewise.
28116 * config/arm/vfp.md (movdi_vfp): Likewise.
28117 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
28118 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
28119 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
28120 (mem_ok_for_ldrd_strd): Likewise.
28121 (output_move_double): Update assertion.
28123 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
28125 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
28127 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
28129 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
28130 define_insn_and_split.
28131 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
28133 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
28135 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
28136 define_insn_and_split.
28137 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
28138 (shiftsi3_compare): New pattern.
28139 (rrx): New pattern.
28140 * config/arm/unspecs.md (UNSPEC_RRX): New.
28142 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
28144 * config/arm/arm.md (negdi_extendsidi): New pattern.
28145 (negdi_zero_extendsidi): Likewise.
28147 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
28149 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
28150 define_insn_and_split.
28151 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
28152 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
28154 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
28156 * config/arm/arm.md (arm_subdi3): Convert define_insn into
28157 define_insn_and_split.
28158 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
28159 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
28161 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
28163 * config/arm/arm.md (subsi3_carryin): New pattern.
28164 (subsi3_carryin_const): Likewise.
28165 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
28166 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
28168 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
28170 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
28172 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
28174 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
28175 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
28177 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28179 * config/arm/arm.c (arm_expand_builtin): Change fcode
28180 type to unsigned int.
28182 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28184 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
28186 2013-04-04 Ian Lance Taylor <iant@google.com>
28188 * doc/standards.texi (Standards): The Go frontend supports the Go 1
28191 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
28193 PR middle-end/56729
28194 * df-scan.c (df_insn_delete): Disable failing assert.
28196 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28198 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
28199 New function prototype.
28200 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
28201 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
28202 (arm_builtin_vectorized_function): New function.
28204 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28206 * config/arm/arm_neon_builtins.def: New file.
28207 * config/arm/arm.c (neon_builtin_data): Move contents to
28208 arm_neon_builtins.def.
28209 (enum arm_builtins): Include neon builtin definitions.
28210 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
28211 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
28213 2013-04-04 Marek Polacek <polacek@redhat.com>
28215 PR tree-optimization/48186
28216 * predict.c (maybe_hot_frequency_p): Return false if
28217 HOT_BB_FREQUENCY_FRACTION is 0.
28218 (cgraph_maybe_hot_edge_p): Likewise.
28220 2013-04-04 Richard Biener <rguenther@suse.de>
28222 PR tree-optimization/56826
28223 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
28226 2013-04-04 Richard Biener <rguenther@suse.de>
28228 PR tree-optimization/56213
28229 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
28230 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
28232 2013-04-04 Richard Biener <rguenther@suse.de>
28234 PR tree-optimization/56837
28235 * tree-loop-distribution.c (classify_partition): For non-zero
28236 values require that the value has the same precision as its
28237 mode to be useful as memset value.
28239 2013-04-03 Nick Clifton <nickc@redhat.com>
28241 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
28242 (fmssf4): Use fmsf.s on E3V5 architectures.
28243 (fnmasf4): Use fnmaf.s on E3V5 architectures.
28244 (fnmssf4): Use fnmsf.s on E3V5 architectures.
28246 2013-04-03 Jeff Law <law@redhat.com>
28248 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
28249 (lra-eliminations.o): Likewise.
28251 2013-04-03 Teresa Johnson <tejohnson@google.com>
28253 * gcov-io.c (compute_working_sets): Moved most of body of old
28254 compute_working_sets here from profile.c.
28255 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
28256 (gcov_working_set_t): Moved typedef here from basic-block.h
28257 (compute_working_set): Declare.
28258 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
28259 (get_working_sets): Renamed from compute_working_set,
28260 replace most of body with call to new compute_working_sets.
28261 (get_exec_counts): Replace call to compute_working_sets
28262 to get_working_sets.
28263 * profile.h (get_working_sets): Renamed from compute_working_set.
28264 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
28265 to get_working_sets.
28266 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
28267 * gcov-dump.c (dump_working_sets): New function.
28269 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
28271 * hwint.c (sext_hwi, zext_hwi): New functions.
28272 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
28273 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
28274 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
28275 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
28276 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
28277 (sext_hwi, zext_hwi): New functions.
28279 2013-04-03 Jeff Law <law@redhat.com>
28281 PR tree-optimization/56799
28282 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
28283 back test for widening conversion erroneously dropped in prior change.
28285 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28288 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
28289 instead of next_real_insn.
28291 2013-04-03 Marek Polacek <polacek@redhat.com>
28294 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
28296 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28299 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
28301 (thumb1_output_casesi): Likewise.
28302 (thumb2_output_casesi): Likewise.
28304 2013-04-03 Richard Biener <rguenther@suse.de>
28306 PR tree-optimization/56817
28307 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
28309 (tree_unroll_loops_completely_1): ... new function to manually
28310 walk the loop tree, properly defering outer loops of unrolled
28311 loops to later iterations.
28313 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
28315 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
28316 (vectorizable_load): Likewise.
28317 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
28318 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
28320 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
28322 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
28325 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28327 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
28329 2013-04-03 Bin Cheng <bin.cheng@arm.com>
28331 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
28333 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
28335 PR tree-optimization/56790
28336 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
28339 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
28341 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
28343 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
28344 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
28347 2013-04-03 Jakub Jelinek <jakub@redhat.com>
28350 * tree.h (force_folding_builtin_constant_p): New decl.
28351 * builtins.c (force_folding_builtin_constant_p): New variable.
28352 (fold_builtin_constant_p): Fold immediately also if
28353 force_folding_builtin_constant_p.
28355 2013-04-03 Richard Biener <rguenther@suse.de>
28357 PR tree-optimization/56812
28358 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
28359 DRs of the same interleaving chain are independent.
28361 2013-04-02 Jason Merrill <jason@redhat.com>
28363 * gdbinit.in (pbb): Use debug fn.
28365 2013-04-02 Lawrence Crowl <crowl@google.com>
28367 * sese.h (struct ivtype_map_elt_s): Remove unused.
28368 (extern debug_ivtype_map): Remove unused.
28369 (extern eq_ivtype_map_elts): Remove unused.
28370 * sese.c (debug_ivtype_map): Removed unused.
28371 (debug_ivtype_map_1): Removed unused.
28372 (debug_ivtype_elt): Remove unused.
28373 (eq_ivtype_map_elts): Remove unused.
28375 2013-04-02 Kai Tietz <ktietz@redhat.com>
28378 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
28379 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
28380 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
28382 (legitimize_pe_coff_symbol): Likewise.
28383 (is_imported_p): New helper-function.
28384 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
28385 for Windows x64 targets.
28386 (ix86_expand_prologue): Optimize for pe-coff targets.
28387 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
28388 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
28389 medium/large code-model.
28390 (legitimize_pic_address): Likewise.
28391 (legitimize_tls_address): Likewise.
28392 (ix86_expand_call): Likewise.
28393 (x86_output_mi_thunk): Likewise.
28394 (get_dllimport_decl): Add new beimport argument.
28395 (construct_plt_address): Don't assert for x64 pe-coff targets.
28396 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
28398 (SYMBOL_FLAG_STUBVAR): New macro.
28399 (SYMBOL_REF_STUBVAR_P): Likewise.
28400 * config/i386/winnt.c (stub_list): New structure.
28401 (stub_head): New local variable.
28402 (i386_pe_record_stub): New function.
28403 (i386_pe_file_end): Emit refptr-stubs.
28405 2013-04-02 Jakub Jelinek <jakub@redhat.com>
28407 PR rtl-optimization/56745
28408 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
28409 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
28412 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
28413 and both of them are MEM_REFs, just compare first argument for
28414 equality and attempt to deal even with differing offsets.
28417 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
28418 of gimple_clobber_p to be MEM_REF.
28419 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
28420 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
28421 after gimplification.
28422 * asan.c (get_mem_ref_of_assignment): Don't instrument
28423 gimple_clobber_p stmts.
28424 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
28425 gimple_clobber_p stmt if they have MEM_REF lhs and
28426 are dead because of another gimple_clobber_p stmt.
28427 * tree-ssa-live.c (clear_unused_block_pointer): Treat
28428 gimple_clobber_p stmts like debug stmts.
28429 (remove_unused_locals): Remove clobbers with MEM_REF lhs
28430 that refer to unused VAR_DECLs or uninitialized values.
28431 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
28432 gimple_clobber_p stmts if they refer to removed parameters.
28433 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
28436 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
28438 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
28439 using SWI48 mode attribute.
28441 2013-04-02 Wei Mi <wmi@google.com>
28443 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
28444 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
28445 *<rotate_insn><mode>3_mask in i386.md.
28447 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
28449 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
28451 2013-04-02 Richard Biener <rguenther@suse.de>
28453 PR tree-optimization/56778
28454 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
28455 Runtime alias tests are not supported for gather loads.
28456 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
28457 stmts referenced from SSA operands before updating SSA form.
28459 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
28460 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28462 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
28463 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
28464 * config/arm/cortex-a53.md: New file.
28465 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
28466 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
28467 * config/arm/arm.c (arm_issue_rate): Likewise.
28468 * config/arm/arm-tune.md: Regenerate
28469 * config/arm/arm-tables.opt: Regenerate.
28470 * config/arm/arm-cores.def: Add cortex-a53.
28472 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
28474 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
28477 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
28479 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
28480 scalar load/store operations using B/H registers.
28481 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
28483 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
28485 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
28487 * config/aarch64/aarch64.c
28488 (aarch64_simd_scalar_immediate_valid_for_move): New.
28489 * config/aarch64/aarch64-protos.h
28490 (aarch64_simd_scalar_immediate_valid_for_move): New.
28491 * config/aarch64/constraints.md (Dh, Dq): New.
28492 * config/aarch64/iterators.md (hq): New.
28494 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
28496 * reorg.c (get_branch_condition): Deal with conditional returns.
28497 (fill_simple_delay_slots): Remove dead code dealing with jumps.
28499 2013-04-01 Wei Mi <wmi@google.com>
28501 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
28502 Truncate operand 2 using %b asm operand modifier.
28503 (*<shift_insn><mode>3_mask): Ditto.
28504 (*<rotate_insn><mode>3_mask): Ditto.
28506 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
28508 PR middle-end/56798
28509 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
28511 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
28513 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
28515 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
28517 2013-03-30 Lawrence Crowl <crowl@google.com>
28519 * dse.c (clear_alias_sets): Remove never set.
28520 (disqualified_clear_alias_sets): Remove never set.
28521 (clear_alias_mode_pool): Remove never set.
28522 (dse_step0): Remove condition that is never true.
28523 (canon_address): Remove condition that is never true.
28524 (dse_step7): Remove condition that is never true.
28525 (rest_of_handle_dse): Remove condition that is never true.
28526 (rest_of_handle_dse::did_global): Remove never read from above.
28527 (dse_step2_spill): Remove never called from above.
28528 (dse_step5_spill): Remove never called from above.
28530 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
28532 * doc/md.texi (Standard Names) <casesi>: Update documentation for
28533 JUMP_TABLE_DATA changes.
28534 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
28535 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
28536 (Insns) <jump_table_data>: New entry.
28537 * doc/tm.texi: Regenerate.
28539 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
28541 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
28542 for table jump at the end of a basic block using tablejump_p.
28543 * targhooks.c (default_invalid_within_doloop): Likewise.
28544 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
28545 target hook implementation that is identical to the default hook.
28546 (rs6000_invalid_within_doloop): Remove.
28548 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
28549 unused variable from tablejump_p call.
28551 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
28552 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
28553 (INSN_DELETED_P): Likewise.
28554 (emit_jump_table_data): New prototype.
28555 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
28556 after 4th as unused.
28557 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
28558 * sched-vis.c (print_insn): Likewise.
28559 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
28560 insn for compatibility with back ends that use next_active_insn to
28561 identify jump table data.
28562 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
28563 (remove_insn): Likewise.
28564 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
28566 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
28567 (emit_jump_table_data): New function.
28569 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
28570 basic block, a JUMP_TABLE_DATA never is.
28571 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
28572 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
28573 off from code handling real insns.
28574 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
28575 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
28576 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
28577 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
28578 is not a NONDEBUG_INSN_P.
28579 * ira-costs.c (scan_one_insn): Likewise.
28580 * jump.c (mark_all_labels): Likewise.
28581 (mark_jump_label_1): Likewise.
28582 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
28583 * lra.c (get_insn_freq): Expect all insns reaching here to be in
28585 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
28586 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
28587 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
28588 JUMP_TABLE_DATA_P insns.
28589 (calculate_elim_costs_all_insns): Likewise.
28590 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
28591 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
28592 (delete_output_reload): Code style fixups.
28593 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
28594 insn flags on this non-insn.
28595 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
28596 as scheduling barriers, for pre-change compatibility.
28597 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
28598 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
28600 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
28601 redundant JUMP_TABLE_DATA_P test.
28602 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
28603 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
28604 (frv_for_each_packet): Likewise.
28605 * config/i386/i386.c (min_insn_size): Likewise.
28606 (ix86_avoid_jump_mispredicts): Likewise.
28607 * config/m32r/m32r.c (m32r_is_insn): Likewise.
28608 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
28609 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
28610 (mips16_insn_length): Robustify.
28611 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
28612 (mips16_split_long_branches): Likewise.
28613 * config/pa/pa.c (pa_combine_instructions): Likewise.
28614 * config/rs6000/rs6000.c (get_next_active_insn): Treat
28615 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
28616 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
28617 as contributing to pool range lengths.
28618 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
28619 Remove redundant JUMP_TABLE_DATA_P test.
28620 (sh_loop_align): Likewise.
28621 (split_branches): Likewise.
28622 (sh_insn_length_adjustment): Likewise.
28623 * config/spu/spu.c (get_branch_target): Likewise.
28625 2013-03-29 Jan Hubicka <jh@suse.cz>
28627 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
28628 gcov streaming; stream hot bb threshold to ltrans.
28629 * predict.c (get_hot_bb_threshold): Break out from ....
28630 (maybe_hot_count_p): ... here.
28631 (set_hot_bb_threshold): New function.
28632 * lto-section-in.c (lto_section_name): Add profile.
28633 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
28634 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
28635 and data-streamer.h
28636 (histogram_entry): New structure.
28637 (histogram, histogram_pool): New global vars.
28638 (histogram_hash): New structure.
28639 (histogram_hash::hash): New method.
28640 (histogram_hash::equal): Likewise.
28641 (account_time_size): New function.
28642 (cmp_counts): New function.
28643 (dump_histogram): New function.
28644 (ipa_profile_generate_summary): New function.
28645 (ipa_profile_write_summary): New function.
28646 (ipa_profile_read_summary): New function.
28647 (ipa_profile): Decide on threshold.
28648 (pass_ipa_profile): Add ipa_profile_write_summary and
28649 ipa_profile_read_summary.
28650 * Makefile.in (ipa.o): Update dependencies.
28651 * lto-streamer.h (LTO_section_ipa_profile): New section.
28653 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
28655 * tree.h (VAR_P): New.
28657 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
28660 * doc/invoke.texi ([-fwhole-program]): Fix typo.
28662 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
28664 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
28665 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
28666 (control_flow_insn_p): Likewise.
28667 * cfgrtl.c (duplicate_insn_chain): Likewise.
28668 * final.c (get_attr_length_1): Likewise.
28669 (shorten_branches): Likewise.
28670 (final_scan_insn): Likewise.
28671 * function.c (instantiate_virtual_regs): Likewise.
28672 * gcse.c (insert_insn_end_basic_block): Likewise.
28673 * ira-costs.c (scan_one_insn): Likewise.
28674 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
28675 * lra.c (check_rtl): Likewise.
28676 * reload1.c (elimination_costs_in_insn): Likewise.
28677 * reorg.c (follow_jumps): Likewise.
28679 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
28680 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
28681 (thumb_far_jump_used_p): Likewise.
28682 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
28683 (workaround_speculation): Likewise.
28684 (add_sched_insns_for_speculation): Likewise.
28685 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
28686 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
28687 (frv_for_each_packet): Likewise.
28688 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
28689 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
28690 (final_emit_insn_group_barriers): Likewise.
28691 * config/m32r/m32r.c (m32r_is_insn): Likewise.
28692 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
28693 (mips16_insn_length): Likewise.
28694 * config/pa/pa.c (pa_reorg): Likewise.
28695 (pa_combine_instructions): Likewise.
28696 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
28697 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
28698 (sh_reorg): Likewise.
28699 (split_branches): Likewise.
28700 * config/spu/spu.c (get_branch_target): Likewise.
28702 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
28705 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
28707 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
28708 Fix declaration name.
28710 2013-03-28 Lawrence Crowl <crowl@google.com>
28712 * graphds.h (struct graph.indicies): Remove unused.
28713 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
28714 (SCOP_ORIGINAL_PDDRS): Remove unused.
28715 * sese.h (extern insert_loop_close_phis): Removed unused.
28716 (extern insert_guard_phis): Removed unused.
28717 (extern ivtype_map_elt_info): Removed unused.
28718 (new_ivtype_map_elt): Removed unused.
28719 * sese.c (ivtype_map_elt_info): Removed unused.
28721 2013-03-28 Lawrence Crowl <crowl@google.com>
28723 * Makefile.in: Add several missing include dependences.
28725 (test-dump.o): New. This object is not added to any executable,
28726 but is present for ad-hoc testing.
28728 (debug (const bitmap_head_def &)): New.
28729 (debug (const bitmap_head_def *)): New.
28731 (extern debug (const bitmap_head_def &)): New.
28732 (extern debug (const bitmap_head_def *)): New.
28734 (debug (edge_def &)): New.
28735 (debug (edge_def *)): New.
28737 (debug (basic_block_def &)): New.
28738 (debug (basic_block_def *)): New.
28740 (dump_node (const_tree, int, FILE *)): Correct source file.
28742 (debug (die_struct &)): New.
28743 (debug (die_struct *)): New.
28745 (extern debug (die_struct &)): New.
28746 (extern debug (die_struct *)): New.
28747 * gimple-pretty-print.c
28748 (debug (gimple_statement_d &)): New.
28749 (debug (gimple_statement_d *)): New.
28750 * gimple-pretty-print.h
28751 (extern debug (gimple_statement_d &)): New.
28752 (extern debug (gimple_statement_d *)): New.
28754 (debug (ira_allocno_copy &)): New.
28755 (debug (ira_allocno_copy *)): New.
28756 (debug (ira_allocno &)): New.
28757 (debug (ira_allocno *)): New.
28759 (extern debug (ira_allocno_copy &)): New.
28760 (extern debug (ira_allocno_copy *)): New.
28761 (extern debug (ira_allocno &)): New.
28762 (extern debug (ira_allocno *)): New.
28764 (debug (live_range &)): New.
28765 (debug (live_range *)): New.
28767 (debug (lra_live_range &)): New.
28768 (debug (lra_live_range *)): New.
28770 (debug (lra_live_range &)): New.
28771 (debug (lra_live_range *)): New.
28773 (debug (omega_pb_d &)): New.
28774 (debug (omega_pb_d *)): New.
28776 (extern debug (omega_pb_d &)): New.
28777 (extern debug (omega_pb_d *)): New.
28779 (debug (const rtx_def &)): New.
28780 (debug (const rtx_def *)): New.
28782 (debug_tree (tree): Move within file.
28783 (debug_raw (const tree_node &)): New.
28784 (debug_raw (const tree_node *)): New.
28785 (dump_tree_via_hooks (const tree_node *, int)): New.
28786 (debug (const tree_node &)): New.
28787 (debug (const tree_node *)): New.
28788 (debug_verbose (const tree_node &)): New.
28789 (debug_verbose (const tree_node *)): New.
28790 (debug_head (const tree_node &)): New.
28791 (debug_head (const tree_node *)): New.
28792 (debug_body (const tree_node &)): New.
28793 (debug_body (const tree_node *)): New.
28794 (debug_vec_tree (tree): Move and reimplement in terms of dump.
28795 (debug (vec<tree, va_gc> &)): New.
28796 (debug (vec<tree, va_gc> *)): New.
28798 (extern debug (const rtx_def &)): New.
28799 (extern debug (const rtx_def *)): New.
28801 (debug_raw (simple_bitmap_def &)): New.
28802 (debug_raw (simple_bitmap_def *)): New.
28803 (debug (simple_bitmap_def &)): New.
28804 (debug (simple_bitmap_def *)): New.
28806 (extern debug (simple_bitmap_def &)): New.
28807 (extern debug (simple_bitmap_def *)): New.
28808 (extern debug_raw (simple_bitmap_def &)): New.
28809 (extern debug_raw (simple_bitmap_def *)): New.
28811 (debug (vinsn_def &)): New.
28812 (debug (vinsn_def *)): New.
28813 (debug_verbose (vinsn_def &)): New.
28814 (debug_verbose (vinsn_def *)): New.
28815 (debug (expr_def &)): New.
28816 (debug (expr_def *)): New.
28817 (debug_verbose (expr_def &)): New.
28818 (debug_verbose (expr_def *)): New.
28819 (debug (vec<rtx> &)): New.
28820 (debug (vec<rtx> *)): New.
28822 (extern debug (vinsn_def &)): New.
28823 (extern debug (vinsn_def *)): New.
28824 (extern debug_verbose (vinsn_def &)): New.
28825 (extern debug_verbose (vinsn_def *)): New.
28826 (extern debug (expr_def &)): New.
28827 (extern debug (expr_def *)): New.
28828 (extern debug_verbose (expr_def &)): New.
28829 (extern debug_verbose (expr_def *)): New.
28830 (extern debug (vec<rtx> &)): New.
28831 (extern debug (vec<rtx> *)): New.
28833 (_list_iter_cond_expr): Make inline instead of static.
28835 (debug (sreal &)): New.
28836 (debug (sreal *)): New.
28838 (extern debug (sreal &)): New.
28839 (extern debug (sreal *)): New.
28841 (extern debug_raw (const tree_node &)): New.
28842 (extern debug_raw (const tree_node *)): New.
28843 (extern debug (const tree_node &)): New.
28844 (extern debug (const tree_node *)): New.
28845 (extern debug_verbose (const tree_node &)): New.
28846 (extern debug_verbose (const tree_node *)): New.
28847 (extern debug_head (const tree_node &)): New.
28848 (extern debug_head (const tree_node *)): New.
28849 (extern debug_body (const tree_node &)): New.
28850 (extern debug_body (const tree_node *)): New.
28851 (extern debug (vec<tree, va_gc> &)): New.
28852 (extern debug (vec<tree, va_gc> *)): New.
28854 (debug (struct loop &)): New.
28855 (debug (struct loop *)): New.
28856 (debug_verbose (struct loop &)): New.
28857 (debug_verbose (struct loop *)): New.
28858 * tree-dump.c: Add header dependence.
28860 (extern debug (struct loop &)): New.
28861 (extern debug (struct loop *)): New.
28862 (extern debug_verbose (struct loop &)): New.
28863 (extern debug_verbose (struct loop *)): New.
28865 (debug (data_reference &)): New.
28866 (debug (data_reference *)): New.
28867 (debug (vec<data_reference_p> &)): New.
28868 (debug (vec<data_reference_p> *)): New.
28869 (debug (vec<ddr_p> &)): New.
28870 (debug (vec<ddr_p> *)): New.
28872 (extern debug (data_reference &)): New.
28873 (extern debug (data_reference *)): New.
28874 (extern debug (vec<data_reference_p> &)): New.
28875 (extern debug (vec<data_reference_p> *)): New.
28876 (extern debug (vec<ddr_p> &)): New.
28877 (extern debug (vec<ddr_p> *)): New.
28879 (debug (pt_solution &)): New.
28880 (debug (pt_solution *)): New.
28882 (extern debug (pt_solution &)): New.
28883 (extern debug (pt_solution *)): New.
28885 (debug (_var_map &)): New.
28886 (debug (_var_map *)): New.
28887 (debug (tree_live_info_d &)): New.
28888 (debug (tree_live_info_d *)): New.
28890 (extern debug (_var_map &)): New.
28891 (extern debug (_var_map *)): New.
28892 (extern debug (tree_live_info_d &)): New.
28893 (extern debug (tree_live_info_d *)): New.
28895 2013-03-28 Jan Hubicka <jh@suse.cz>
28897 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
28899 2013-03-28 Ian Bolton <ian.bolton@arm.com>
28901 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
28902 record only when desired or required.
28904 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
28906 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
28907 *vec_extractv2di_1_rex64. Use x64 isa attribute.
28909 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
28911 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
28912 (*andsi3_compare0_uxtw): New pattern.
28913 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
28914 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
28916 2013-03-28 Jan Hubicka <jh@suse.cz>
28918 * data-streamer-in.c (streamer_read_gcov_count): New function.
28919 * gimple-streamer-out.c: Include value-prof.h.
28920 (output_gimple_stmt): Output histogram.
28921 (output_bb): Use streamer_write_gcov_count.
28922 * value-prof.c: Include data-streamer.h
28923 (dump_histogram_value): Add HIST_TYPE_MAX.
28924 (stream_out_histogram_value): New function.
28925 (stream_in_histogram_value): New function.
28926 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
28927 (stream_out_histogram_value, stream_in_histogram_value): Declare.
28928 * data-streamer-out.c (streamer_write_gcov_count): New function.
28929 (streamer_write_gcov_count_stream): New function.
28930 * lto-cgraph.c (lto_output_edge): Update counter streaming.
28931 (lto_output_node): Likewise.
28932 (input_node, input_edge): Likewise.
28933 * lto-streamer-out.c (output_cfg): Update streaming.
28934 * lto-streamer-in.c (input_cfg): Likewise.
28935 * data-streamer.h (streamer_write_gcov_count,
28936 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
28937 * gimple-streamer-in.c: Include value-prof.h
28938 (input_gimple_stmt): Input histograms.
28939 (input_bb): Update profile streaming.
28941 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
28943 * genmodes.c (emit_max_int): New function.
28944 (emit_insn_modes_h): Added call to emit_max_function.
28945 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
28947 * machmode.def: Fixed comment.
28949 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
28951 * combine.c (try_combine): Removed useless assert.
28952 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
28954 2013-03-28 Marek Polacek <polacek@redhat.com>
28955 Richard Biener <rguenther@suse.de>
28957 PR tree-optimization/56695
28958 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
28959 build signed result of a vector comparison.
28960 * tree-cfg.c (verify_gimple_comparison): Check that a result
28961 of a vector comparison has signed type.
28963 2013-03-28 Richard Biener <rguenther@suse.de>
28965 PR tree-optimization/37021
28966 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
28967 do not restrict gaps between groups.
28968 * tree-vect-stmts.c (vectorizable_load): Properly account for
28969 a gap between groups.
28971 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
28973 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
28974 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
28977 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
28979 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
28980 * doc/extend.texi (Named Address Spaces): Ditto.
28981 (Variable Attributes): Ditto.
28983 2013-03-27 Kai Tietz <ktietz@redhat.com>
28985 * config.build: Add support for cygwin x64 target.
28986 * config.gcc: Likewise.
28987 * config.host: Likewise.
28988 * configure.ac: Likewise
28989 * configure: Regenerated.
28991 2013-03-27 Kai Tietz <ktietz@redhat.com>
28993 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
28994 * config/i386/t-cygwin-w64: New file.
28995 * config/i386/cygwin-w64.h: New file.
28996 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
28997 and add support for x64-cygwin target.
28998 (CPP_SPEC): Likewise.
28999 (CXX_WRAP_SPEC_LIST): Undefine before define.
29000 (LIBGCJ_SONAME): Use 15 as version.
29002 2013-03-27 Richard Biener <rguenther@suse.de>
29004 PR tree-optimization/56716
29005 * tree-ssa-structalias.c (perform_var_substitution): Adjust
29006 dumping for ref nodes.
29008 2013-03-27 Martin Jambor <mjambor@suse.cz>
29010 PR tree-optimization/55334
29011 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
29012 restricted pointers to arrays.
29014 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
29016 * Makefile.in (.SUFFIXES): Add .cc.
29017 (.c.o): Apply same recipe for implicit rule .cc.o.
29019 2013-03-27 Richard Biener <rguenther@suse.de>
29021 PR tree-optimization/37021
29022 * tree-vect-data-refs.c (vect_check_strided_load): Allow
29023 REALPART/IMAGPART_EXPRs around the supported refs.
29024 * tree-ssa-structalias.c (find_func_aliases): Assume that
29025 floating-point values are not used to transfer pointers.
29027 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
29029 * target.def (TARGET_HAS_IFUNC_P): New target hook.
29030 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
29031 * doc/tm.texi: Regenerate.
29032 * targhooks.h (default_has_ifunc_p): New.
29033 * targhooks.c (default_has_ifunc_p): Ditto.
29034 * config/linux-protos.h: New file.
29035 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
29036 hook for linux which disables support of indirect functions in android.
29037 * config/linux-android.c: New file.
29038 * config/t-linux-android.c: Ditto.
29039 * config.gcc: Added new object file linux-android.o.
29040 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
29041 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
29042 * varasm.c (do_assemble_alias): Likewise.
29043 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
29044 doesn't support indirect functions.
29045 * configure: Regenerate.
29047 2013-03-27 Bin Cheng <bin.cheng@arm.com>
29050 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
29051 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
29054 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29056 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
29058 2013-03-27 Terry Guo <terry.guo@arm.com>
29060 * config/arm/arm-cores.def: Added core cortex-r7.
29061 * config/arm/arm-tune.md: Regenerated.
29062 * config/arm/arm-tables.opt: Regenerated.
29063 * doc/invoke.texi: Added entry for core cortex-r7.
29065 2013-03-27 Walter Lee <walt@tilera.com>
29067 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
29068 double-decrement of next_scratch_regno.
29070 2013-03-27 Walter Lee <walt@tilera.com>
29072 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
29074 (insn_v1mulus): Ditto.
29075 (insn_v2muls): Ditto.
29077 2013-03-27 Walter Lee <walt@tilera.com>
29079 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
29080 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
29082 2013-03-27 Walter Lee <walt@tilera.com>
29084 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
29085 (*sibcall_value): Ditto.
29087 2013-03-27 Walter Lee <walt@tilera.com>
29089 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
29090 (insn_mnz_v8qi): ... this ...
29091 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
29093 (insn_v<n>mnz): Replaced by ...
29094 (insn_v1mnz): ... this ...
29095 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
29097 (insn_mz_<mode>): Replaced by ...
29098 (insn_mz_v8qi): ... this ...
29099 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
29101 (insn_v<n>mz): Replaced by ...
29102 (insn_v1mz): ... this ...
29103 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
29106 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
29108 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
29110 2013-03-26 Roland McGrath <mcgrathr@google.com>
29112 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
29113 than fprintf with a non-constant, non-format string.
29115 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
29117 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
29118 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
29119 operand 0 predicate.
29120 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
29121 attribute. Use general_x64nomem_operand as operand 1 predicate.
29122 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
29123 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
29124 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
29125 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
29126 (mov<mode>_insv_1): Remove expander. Merge insn with
29127 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
29128 Use general_x64nomem_operand as operand 1 predicate.
29129 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
29130 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
29131 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
29132 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
29133 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
29134 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
29135 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
29136 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
29137 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
29138 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
29139 (general_x64nomem_operand): Ditto.
29141 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
29143 * config/rtems.opt: Add -pthread option.
29145 2013-03-26 Richard Biener <rguenther@suse.de>
29147 * alias.c (find_base_term): Avoid redundant and not used recursion.
29148 (base_alias_check): Get the initial base term from the caller.
29149 (true_dependence_1): Compute and pass base terms to base_alias_check.
29150 (write_dependence_p): Likewise.
29151 (may_alias_p): Likewise.
29153 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
29155 * config/aarch64/aarch64.c (aarch64_classify_address): Support
29156 PC-relative load in SI modes and above only.
29158 2013-03-26 Xinyu Qi <xyqi@marvell.com>
29160 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
29161 * config/arm/iwmmxt.md (WCGR0): Update.
29162 (WCGR1, WCGR2, WCGR3): Likewise.
29164 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
29166 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
29167 Use x64 and nox64 isa attributes.
29169 2013-03-26 Richard Biener <rguenther@suse.de>
29171 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
29172 alignment computations and rely on get_object_alignment_1
29173 for the !TYPE_P case.
29174 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
29176 2013-03-26 Walter Lee <walt@tilera.com>
29178 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
29179 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
29181 2013-03-25 Jeff Law <law@redhat.com>
29183 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
29184 check for INTEGRAL_TYPE_P that was missing due to checking in
29185 wrong version of prior patch.
29187 2013-03-25 Walter Lee <walt@tilera.com>
29189 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
29190 TILEGX_INSN_SHUFFLEBYTES1.
29191 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
29193 (tilegx_builtins): Ditto.
29194 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
29196 2013-03-25 Walter Lee <walt@tilera.com>
29198 * config/tilegx/tilegx.md (floatsisf2): New pattern.
29199 (floatunssisf2): New pattern.
29200 (floatsidf2): New pattern.
29201 (floatunssidf2): New pattern.
29203 2013-03-25 Walter Lee <walt@tilera.com>
29205 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
29206 tests for constraint J, K, N, P.
29208 2013-03-25 Walter Lee <walt@tilera.com>
29210 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
29211 Use indirect/pcrel encoding.
29212 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
29215 2013-03-25 Steve Ellcey <sellcey@mips.com>
29217 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
29218 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
29219 * config/mips/mips.c (mips_option_override): Set IMADD default.
29220 * config/mips/mips.h (PTF_AVOID_IMADD): New.
29221 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
29222 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
29223 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
29224 * doc/invoke.texi (-mimadd/-mno-imadd): New.
29226 2013-03-25 Jeff Law <law@redhat.com>
29228 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
29229 slightly to avoid creating and folding useless trees. Simplify
29230 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
29232 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
29234 * config/i386/i386.md (*zero_extendsidi2): Merge with
29235 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
29236 * config/i386/predicates.md (x86_64_zext_operand): Rename from
29237 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
29238 targets. Clarify comment.
29240 2013-03-25 Martin Jambor <mjambor@suse.cz>
29242 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
29243 pass-through jump functions differently.
29244 (ipa_read_jump_function): Likewise. Also use setter functions to set
29247 2013-03-25 Martin Jambor <mjambor@suse.cz>
29249 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
29250 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
29252 (ipa_get_indirect_edge_target): New function.
29253 (devirtualization_time_bonus): New parameter known_aggs, pass it to
29254 ipa_get_indirect_edge_target. Update all callers.
29255 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
29256 ipa_get_indirect_edge_target_1 instead of calling
29257 ipa_get_indirect_edge_target.
29258 (create_specialized_node): Pass aggvlas to
29259 ipcp_discover_new_direct_edges.
29261 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29263 * config/arm/arm.md (f_sels, f_seld): New types.
29264 (*cmov<mode>): New pattern.
29265 * config/arm/predicates.md (arm_vsel_comparison_operator): New
29268 2013-03-25 Kai Tietz <ktietz@redhat.com>
29270 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
29271 POSIX-printf for mingw-hosted builds.
29273 2013-03-25 Richard Biener <rguenther@suse.de>
29275 PR middle-end/56694
29276 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
29277 must-not-throw stmt location.
29279 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29281 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
29282 Emit load-acquire versions when acq is true.
29283 (arm_emit_store_exclusive): Add rel parameter.
29284 Emit store-release versions when rel is true.
29285 (arm_split_compare_and_swap): Use acquire-release instructions
29287 of barriers when appropriate.
29288 (arm_split_atomic_op): Likewise.
29289 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
29290 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
29291 (VUNSPEC_SLX): Likewise.
29292 (VUNSPEC_LDA): Likewise.
29293 (VUNSPEC_STL): Likewise.
29294 * config/arm/sync.md (atomic_load<mode>): New pattern.
29295 (atomic_store<mode>): Likewise.
29296 (arm_load_acquire_exclusive<mode>): Likewise.
29297 (arm_load_acquire_exclusivesi): Likewise.
29298 (arm_load_acquire_exclusivedi): Likewise.
29299 (arm_store_release_exclusive<mode>): Likewise.
29301 2013-03-25 Catherine Moore <clm@codesourcery.com>
29303 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
29304 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
29305 * config/mip/predicates.md (lwsp_swsp_operand,
29306 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
29307 sb16_operand, db4_operand, db7_operand, ib3_operand,
29308 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
29309 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
29310 andi16_operand): New predicates.
29311 * config/mips/mips.md (compression): New attribute.
29312 (enabled): New attribute.
29313 (length): Consider compression in computing length.
29314 (shift_compression): New code attribute.
29315 (*add<mode>3): New operands. Record compression.
29316 (sub<mode>3): Likewise.
29317 (one_cmpl<mode>2): Likewise.
29318 (*and<mode>3): Likewise.
29319 (*ior<mode>3): Likewise.
29320 (unnamed pattern for xor): Likewise.
29321 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
29322 (*<optab><mode>3): Likewise.
29323 (*mov<mode>_internal: Likewise.
29324 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
29325 (mips_unsigned_immediate_p): New.
29326 (umips_lwsp_swsp_address_p): New.
29327 (m16_based_address_p): New.
29328 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
29329 (mips_unsigned_immediate_p): New prototype.
29330 (lwsp_swsp_address_p): New prototype.
29331 (m16_based_address_p): New prototype.
29332 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
29333 (mips_signed_immediate_p): New function.
29334 (m16_based_address_p): New function.
29335 (lwsp_swsp_address_p): New function.
29336 (mips_print_operand_punctuation): Recognize short delay slot insns
29337 for microMIPS.add<mode>3"
29339 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29342 * config/arm/iterators.md (v_cmp_result): New mode attribute.
29343 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
29345 2013-03-25 Richard Biener <rguenther@suse.de>
29347 PR tree-optimization/56689
29348 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
29351 2013-03-25 Richard Biener <rguenther@suse.de>
29353 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
29355 (memory_references): Likewise.
29356 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
29357 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
29358 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
29359 (gather_mem_refs_in_loops): Fold into ...
29360 (analyze_memory_references): ... this. Move initialization
29361 to tree_ssa_lim_initialize.
29362 (fill_always_executed_in): Rename to ...
29363 (fill_always_executed_in_1): ... this.
29364 (fill_always_executed_in): Move contains_call computation to
29365 this new function from ...
29366 (tree_ssa_lim_initialize): ... here.
29367 (tree_ssa_lim): Call fill_always_executed_in.
29369 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
29371 * postreload.c (reload_combine): Fix code detecting returns.
29373 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
29375 * function.c (emit_use_return_register_into_block): On cc0 targets,
29376 do not emit the sequence between cc0 setter and user.
29378 2013-03-25 Kai Tietz <ktietz@redhat.com>
29380 * config/i386/predicates.md (local_symbolic_operand): Interpret
29381 dll-imported symbols as none-local.
29383 2013-03-25 Richard Biener <rguenther@suse.de>
29385 * tree-ssa-loop-im.c (struct depend): Remove.
29386 (struct lim_aux_data): Make depends a vec of gimples.
29387 (free_lim_aux_data): Adjust.
29388 (add_dependency): Likewise.
29389 (set_level): Likewise.
29391 2013-03-25 Richard Biener <rguenther@suse.de>
29393 PR middle-end/56434
29394 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
29395 the pointer returned by calls with ECF_MALLOC set.
29397 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
29399 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
29401 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
29403 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
29404 using MMXMODE mode iterator.
29405 (*move<mode>_internal): Merge with *movv2sf_internal and
29406 *movv2sf_internal_rex64 using MMXMODE mode iterator.
29408 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
29410 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
29411 (record_last_mem_set_info): Likewise.
29413 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
29414 of XNEWVEC followed by memset.
29415 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
29417 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
29419 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
29420 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
29421 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
29422 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
29423 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
29424 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
29425 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
29426 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
29427 BARRIER_P instead of GET_CODE.
29429 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
29431 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
29432 inaccuracy in the probing code.
29434 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
29435 (ctrapdi4): Likewise.
29437 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
29439 * calls.c (expand_call): Add missing guard to code handling return
29440 of non-BLKmode structures in MSB.
29441 * function.c (expand_function_end): Likewise.
29443 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
29445 * combine.c (try_combine): Adjust comment. Do not add the set of
29446 insn #0 if the destination indirectly is set or dies in insn #2.
29447 Tidy up code to distribute a new note.
29449 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
29451 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
29452 also for alternatives 16 and 17.
29454 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
29456 * config/i386/sse.md (*mov<mode>_internal): Merge with
29457 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
29458 Emit insn template depending on type attribute. Use
29459 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
29460 movd instead of movq mnemonic for interunit moves. Rewrite mode
29461 attribute calculation. Remove unit attribute calculation.
29462 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
29463 Set prefix_data16 attribute for DImode ssemov types.
29464 Use Ym instead of y for SSE-MMX conversion alternatives.
29465 Reorder operand constraints.
29467 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
29469 * df.h (df_insn_delete): Adjust prototype.
29470 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
29471 and let it decide whether mark the basic block dirty.
29472 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
29473 * df-scan.c (df_insn_info_delete): New helper function, split
29474 off from df_insn_delete.
29475 (df_scan_free_bb_info): Use it.
29476 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
29478 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
29479 that the insn is actually an insn and it has a non-NULL basic block.
29480 Do not mark basic block dirty if only deleting a DEBUG_INSN.
29482 2013-03-22 Richard Biener <rguenther@suse.de>
29484 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
29486 (mem_ref_alloc): Do not allocate them.
29487 (refs_independent_p): Do not query or maintain a cache.
29489 2013-03-22 Richard Biener <rguenther@suse.de>
29491 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
29492 (gather_mem_refs_in_loops): Do not compute it.
29493 (analyze_memory_references): Do not allocate it.
29494 (tree_ssa_lim_finalize): Do not free it.
29495 (for_all_locs_in_loop): Do not query all_refs_in_loop.
29497 2013-03-22 Richard Biener <rguenther@suse.de>
29499 * is-a.h (as_a): Use gcc_checking_assert.
29501 2013-03-22 Ian Bolton <ian.bolton@arm.com>
29503 * config/aarch64/aarch64.c (aarch64_print_operand): New
29504 format specifier for printing a constant in hex.
29505 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
29506 format specifier for printing second operand.
29508 2013-03-22 Richard Biener <rguenther@suse.de>
29510 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
29512 (gather_mem_refs_in_loops): Perform store accumulation here.
29513 (create_vop_ref_mapping_loop): Remove.
29514 (create_vop_ref_mapping): Likewise.
29515 (analyze_memory_references): Initialize refs_stored_in_loop.
29516 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
29517 (record_indep_loop): Remove.
29518 (record_dep_loop): New function.
29519 (ref_indep_loop_p_1): Adjust to only walk over references
29520 in the loop, not its subloops.
29521 (ref_indep_loop_p): Rename to ...
29522 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
29523 maintaining a more fine-grained cache.
29524 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
29525 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
29527 2013-03-22 Richard Biener <rguenther@suse.de>
29529 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
29530 (struct mem_ref): Make accesses_in_loop a vec of a vec of
29531 aggregate mem_ref_loc.
29532 (free_mem_ref_locs): Inline into ...
29533 (memref_free): ... this and adjust.
29534 (mem_ref_alloc): Adjust.
29535 (mem_ref_locs_alloc): Remove.
29536 (record_mem_ref_loc): Adjust.
29537 (get_all_locs_in_loop): Rewrite into ...
29538 (for_all_locs_in_loop): ... this iterator.
29539 (rewrite_mem_ref_loc): New functor.
29540 (rewrite_mem_refs): Use for_all_locs_in_loop.
29541 (sm_set_flag_if_changed): New functor.
29542 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
29543 (ref_always_accessed): New functor.
29544 (ref_always_accessed_p): Use for_all_locs_in_loop.
29546 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
29548 * tree-pass.h (PROP_gimple_lvec): New.
29549 * passes.c (dump_properties): Handle PROP_gimple_lvec.
29550 (init_optimization_passes): Move pass_lower_vector.
29551 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
29553 (pass_lower_vector): Provide PROP_gimple_lvec.
29554 (pass_lower_vector_ssa): Likewise.
29555 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
29557 2013-03-21 Mark Wielaard <mjw@redhat.com>
29559 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
29561 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
29563 * config/i386/i386.md (*movdi_internal): Disparage slightly
29564 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
29565 conversion alternatives.
29567 2013-03-21 Jakub Jelinek <jakub@redhat.com>
29569 PR middle-end/48087
29570 * diagnostic.def (DK_WERROR): New kind.
29571 * diagnostic.h (werrorcount): Define.
29572 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
29573 promoted to DK_ERROR, increment DK_WERROR counter instead of
29575 * toplev.c (toplev_main): Call print_ignored_options even if
29576 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
29577 even if just werrorcount is non-zero.
29580 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
29582 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
29583 (string_cst_pool_decl): New function.
29584 (optimize_one_addr_into_implicit_ptr): New function.
29585 (resolve_addr_in_expr): Optimize DWARF location expression
29586 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
29587 which doesn't live in memory, but has DW_AT_location or
29588 DW_AT_const_value, or refers to a string literal, into
29589 DW_OP_GNU_implicit_pointer.
29590 (optimize_location_into_implicit_ptr): New function.
29591 (resolve_addr): If removing DW_AT_location of a variable because
29592 it was DW_OP_addr of address of the variable, but the variable doesn't
29593 live in memory, try to emit const value attribute for the initializer.
29595 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
29597 * tree.h (VECTOR_TYPE_P): New macro.
29598 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
29599 TYPE_MODE): Use it.
29600 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
29601 VEC_COND_EXPR cannot be lvalues.
29602 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
29604 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
29606 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
29607 Restrict the transformation to equal modes.
29609 2013-03-21 Richard Biener <rguenther@suse.de>
29611 PR tree-optimization/39326
29612 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
29613 (MEM_ANALYZABLE): Adjust.
29614 (record_mem_ref_loc): Move bitmap ops ...
29615 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
29616 unanalyzable refs, do not record locations for it.
29617 (analyze_memory_references): Allocate ref zero as shared
29619 (refs_independent_p): Do not test for unanalyzed mems here.
29620 (ref_indep_loop_p_1): Special-case disambiguation against
29621 the unanalyzed ref.
29622 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
29624 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
29626 * config/arm/arm-protos.h (tune_params): Add
29627 prefer_neon_for_64bits field.
29628 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
29629 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
29630 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
29631 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
29632 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
29633 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
29634 (arm_option_override): Handle -mneon-for-64bits new option.
29635 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
29636 (prefer_neon_for_64bits): Declare new variable.
29637 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
29638 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
29639 (arch_enabled): Handle new arch types. Remove support for onlya8
29641 (one_cmpldi2): Use new arch names.
29642 (zero_extend<mode>di2, extend<mode>di2): Ditto.
29643 * config/arm/arm.opt (mneon-for-64bits): Add option.
29644 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
29645 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
29646 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
29648 * doc/invoke.texi (-mneon-for-64bits): Document.
29650 2013-03-21 Richard Biener <rguenther@suse.de>
29652 PR tree-optimization/39326
29653 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
29654 (sort_bbs_in_loop_postorder_cmp): New function.
29655 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
29657 2013-03-21 Richard Biener <rguenther@suse.de>
29659 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
29660 (vect_insert_into_interleaving_chain): Likewise.
29661 (vect_drs_dependent_in_basic_block): Inline ...
29662 (vect_slp_analyze_data_ref_dependence): ... here. New function,
29664 (vect_analyze_data_ref_dependence): ... here. Simplify.
29665 (vect_check_interleaving): Simplify.
29666 (vect_analyze_data_ref_dependences): Likewise. Split out ...
29667 (vect_slp_analyze_data_ref_dependences): ... this new function.
29668 (dr_group_sort_cmp): New function.
29669 (vect_analyze_data_ref_accesses): Compute data-reference groups
29670 here instead of in vect_analyze_data_ref_dependence. Use
29671 a more efficient algorithm.
29672 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
29673 vect_slp_analyze_data_ref_dependences. Call
29674 vect_analyze_data_ref_accesses earlier.
29675 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
29676 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
29677 (vect_slp_analyze_data_ref_dependences): New prototype.
29679 2013-03-21 Richard Biener <rguenther@suse.de>
29681 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
29682 ref is stored in the loop.
29683 (find_refs_for_sm): Walk only over all stores.
29684 (store_motion_loop): Allocate from lim_bitmap_obstack.
29685 (store_motion): Likewise.
29687 2013-03-21 Richard Biener <rguenther@suse.de>
29689 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
29690 Update virtual SSA form.
29692 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29694 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
29695 * configure: Regenerate.
29696 * config.in: Regenerate.
29697 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
29698 if !HAVE_LD_EH_FRAME_CIEV3.
29700 2013-03-21 Richard Biener <rguenther@suse.de>
29702 * tree-cfg.c (verify_expr_no_block): New function.
29703 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
29704 nor DECL_VALUE_EXPR have locations with associated blocks.
29705 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
29706 (clear_unused_block_pointer): Remove code dealing with
29707 blocks in DECL_DEBUG_EXPR locations.
29709 2013-03-21 Richard Biener <rguenther@suse.de>
29711 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
29712 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
29713 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
29714 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
29715 instead of DECL_DEBUG_EXPR_IS_FROM.
29716 * gimplify.c (gimplify_modify_expr): Likewise.
29717 * tree-cfg.c (verify_expr_location_1): Likewise.
29718 * tree-complex.c (create_one_component_var): Likewise.
29719 * tree-sra.c (create_access_replacement): Likewise.
29720 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
29721 (clear_unused_block_pointer): Likewise.
29722 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
29723 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
29724 * var-tracking.c (var_debug_decl): Likewise.
29725 (track_expr_p): Likewise.
29726 * tree-inline.c (add_local_variables): Likewise. Set
29727 DECL_HAS_DEBUG_EXPR_P after copying it.
29728 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
29729 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
29731 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
29734 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
29735 * configure: Regenerate.
29736 * config.in: Regenerate.
29737 * config/i386/i386.md (*movdf_internal): Use
29738 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
29739 movd instead of movq mnemonic for interunit moves.
29740 (*movdi_internal): Ditto.
29742 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29744 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
29745 (abd<mode>_3): New pattern.
29746 (aba<mode>_3): New pattern.
29747 (fabd<mode>_3): New pattern.
29749 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29751 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
29752 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
29753 occurrence of REGISTER_PREFIX as its empty string.
29755 2013-03-20 Jeff Law <law@redhat.com>
29757 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
29758 addititional equivalences for equality comparisons between an SSA_NAME
29759 and a constant where the SSA_NAME was set from a widening conversion.
29761 2013-03-20 Walter Lee <walt@tilera.com>
29763 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
29765 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
29767 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
29768 depending on type attribute.
29769 (*movti_internal): Ditto.
29770 (*movtf_internal): Ditto.
29771 (*movxf_internal): Ditto.
29772 (*movdf_internal): Ditto.
29773 (*movsf_internal): Ditto.
29775 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
29777 * config/i386/i386.md (*movti_internal): Set prefix attribute to
29778 maybe_vex for sselog1 and ssemov types.
29779 (*movdi_internal): Reorder operand constraints.
29780 (*movsi_internal): Ditto. Set prefix attribute to
29781 maybe_vex for sselog1 and ssemov types.
29782 (*movtf_internal): Set prefix attribute to maybe_vex
29783 for sselog1 and ssemov types.
29784 (*movdf_internal): Ditto. Set prefix_data16 attribute for
29785 DImode ssemov types. Reorder operand constraints.
29786 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
29787 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
29788 attribute for SImode ssemov types. Reorder operand constraints.
29790 2013-03-20 Martin Jambor <mjambor@suse.cz>
29792 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
29793 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
29795 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
29797 * config/rs6000/predicates.md (indexed_address, update_address_mem
29798 update_indexed_address_mem): New predicates.
29799 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
29800 attribute for load/store instructions.
29801 * config/rs6000/dfp.md (movsd_store): Likewise.
29802 (movsd_load): Likewise.
29803 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
29804 (unnamed HI->DI extend define_insn): Likewise.
29805 (unnamed SI->DI extend define_insn): Likewise.
29806 (unnamed QI->SI extend define_insn): Likewise.
29807 (unnamed QI->HI extend define_insn): Likewise.
29808 (unnamed HI->SI extend define_insn): Likewise.
29809 (unnamed HI->SI extend define_insn): Likewise.
29810 (extendsfdf2_fpr): Likewise.
29811 (movsi_internal1): Likewise.
29812 (movsi_internal1_single): Likewise.
29813 (movhi_internal): Likewise.
29814 (movqi_internal): Likewise.
29815 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
29816 attribute for load/store instructions.
29817 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
29819 (mov<mode>_softfloat): Likewise.
29820 (mov<mode>_hardfloat32): Likewise.
29821 (mov<mode>_hardfloat64): Likewise.
29822 (mov<mode>_softfloat64): Likewise.
29823 (movdi_internal32): Likewise.
29824 (movdi_internal64): Likewise.
29825 (probe_stack_<mode>): Likewise.
29827 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
29829 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
29830 floating point, and decimal floating point to reload iterator.
29832 * config/rs6000/constraints.md (wl constraint): New constraints to
29833 return FLOAT_REGS if certain options are used to reduce the number
29834 of separate patterns that exist in the file.
29835 (wx constraint): Likewise.
29836 (wz constraint): Likewise.
29838 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
29839 -mdebug=reg, print wg, wl, wx, and wz constraints.
29840 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
29841 Initialize the reload functions for 64-bit binary/decimal floating
29843 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
29844 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
29845 create the buffer on the stack to overcome not having a 32-bit
29847 (rs6000_emit_move): Likewise.
29848 (rs6000_secondary_memory_needed_rtx): Likewise.
29849 (rs6000_alloc_sdmode_stack_slot): Likewise.
29850 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
29851 via xxlxor, just like DFmode 0.0.
29853 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
29854 define as 1 if we are running on a power7 or newer.
29855 (enum r6000_reg_class_enum): Add new constraints.
29857 * config/rs6000/dfp.md (movsd): Delete, combine with binary
29858 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
29859 with other moves by using conditional constraits (wg). Use LFIWZX
29860 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
29861 (movsd splitter): Likewise.
29862 (movsd_hardfloat): Likewise.
29863 (movsd_softfloat): Likewise.
29865 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
29866 binary and decimal floating point moves.
29867 (fmove_ok): New attributes to combine binary and decimal floating
29868 point moves, and to combine power6x (mfpgpr) moves along normal
29870 (real_value_to_target): Likewise.
29871 (f32_lr): Likewise.
29872 (f32_lm): Likewise.
29873 (f32_li): Likewise.
29874 (f32_sr): Likewise.
29875 (f32_sm): Likewise.
29876 (f32_si): Likewise.
29877 (movsf): Combine binary and decimal floating point moves. Combine
29878 power6x (mfpgpr) moves with other moves by using conditional
29879 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
29880 (mov<mode> for SFmode/SDmode); Likewise.
29881 (SFmode/SDmode splitters): Likewise.
29882 (movsf_hardfloat): Likewise.
29883 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
29884 (movsf_softfloat): Likewise.
29885 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
29887 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
29888 wx and wz constraints.
29890 * config/rs6000/constraints.md (wg constraint): New constraint to
29891 return FLOAT_REGS if -mmfpgpr (power6x) was used.
29893 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
29896 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
29897 -mdebug=reg, print wg, wl, wx, and wz constraints.
29898 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
29899 Initialize the reload functions for 64-bit binary/decimal floating
29901 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
29902 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
29903 create the buffer on the stack to overcome not having a 32-bit
29905 (rs6000_emit_move): Likewise.
29906 (rs6000_secondary_memory_needed_rtx): Likewise.
29907 (rs6000_alloc_sdmode_stack_slot): Likewise.
29908 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
29909 via xxlxor, just like DFmode 0.0.
29911 * config/rs6000/dfp.md (movdd): Delete, combine with binary
29912 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
29913 with other moves by using conditional constraits (wg). Use LFIWZX
29914 and STFIWX for loading SDmode on power7.
29915 (movdd splitters): Likewise.
29916 (movdd_hardfloat32): Likewise.
29917 (movdd_softfloat32): Likewise.
29918 (movdd_hardfloat64_mfpgpr): Likewise.
29919 (movdd_hardfloat64): Likewise.
29920 (movdd_softfloat64): Likewise.
29922 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
29923 64-bit binary and decimal floating point moves.
29924 (FMOVE64X): Likewise.
29925 (movdf): Combine 64-bit binary and decimal floating point moves.
29926 Combine power6x (mfpgpr) moves with other moves by using
29927 conditional constraits (wg).
29928 (mov<mode> for DFmode/DDmode): Likewise.
29929 (DFmode/DDmode splitters): Likewise.
29930 (movdf_hardfloat32): Likewise.
29931 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
29932 (movdf_softfloat32): Likewise.
29933 (movdf_hardfloat64_mfpgpr): Likewise.
29934 (movdf_hardfloat64): Likewise.
29935 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
29936 (movdf_softfloat64): Likewise.
29937 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
29938 (reload_<mode>_load): Move to later in the file so they aren't in
29939 the middle of the floating point move insns.
29940 (reload_<mode>_store): Likewise.
29942 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
29945 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
29946 constraint if -mdebug=reg.
29947 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
29948 Enable using dd reload support if needed.
29950 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
29951 binary and decimal floating point moves in rs6000.md.
29952 (movtd_internal): Likewise.
29954 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
29955 decimal floating point moves.
29957 (movtf_internal): Likewise.
29958 (mov<mode>_internal, TDmode/TFmode): Likewise.
29959 (movtf_softfloat): Likewise.
29960 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
29962 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
29963 movdi_internal64, using wg constraint for move direct operations.
29964 (movdi_internal64): Likewise.
29966 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
29967 MODES_TIEABLE_P for selected modes. Print the numerical value of
29968 the various virtual registers. Use GPR/FPR first/last values,
29969 instead of hard coding the register numbers. Print which modes
29970 have reload functions registered.
29971 (rs6000_option_override_internal): If -mdebug=reg, trace the options
29972 settings before/after setting cpu, target and subtarget settings.
29973 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
29974 and for secondary reload failures in rs6000_secondary_reload_inner.
29975 (rs6000_secondary_reload_fail): Likewise.
29976 (rs6000_secondary_reload_inner): Likewise.
29978 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
29979 macros for first/last GPR and FPR registers.
29980 (LAST_GPR_REGNO): Likewise.
29981 (FIRST_FPR_REGNO): Likewise.
29982 (LAST_FPR_REGNO): Likewise.
29984 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
29985 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
29986 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
29987 (vcond<mode><mode>): Likewise.
29988 (vcondu<mode><mode>): Likewise.
29989 (vector_gtu<mode>): Likewise.
29990 (vector_gte<mode>): Likewise.
29991 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
29992 to prevent the compiler from converting DImode operations to TImode.
29993 (ior<mode>3): Likewise.
29994 (and<mode>3): Likewise.
29995 (one_cmpl<mode>2): Likewise.
29996 (nor<mode>3): Likewise.
29997 (andc<mode>3): Likewise.
29999 * config/rs6000/constraints.md (wt constraint): New constraint
30000 that returns VSX_REGS if TImode is allowed in VSX registers.
30002 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
30003 constant under VSX.
30005 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
30006 similar to TImode, but it is restricted to being in the GPRs.
30008 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
30009 TImode to occupy a single VSX register.
30011 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
30012 -mvsx-timode for power7/power8.
30013 (power7 cpu): Likewise.
30014 (power8 cpu): Likewise.
30016 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
30017 sure that TFmode/TDmode take up two registers if they are ever
30018 allowed in the upper VSX registers.
30019 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
30021 (rs6000_init_hard_regno_mode_ok): Likewise.
30022 (rs6000_debug_reg_global): Add debugging for PTImode and wt
30023 constraint. Print if LRA is turned on.
30024 (rs6000_option_override_internal): Give an error if -mvsx-timode
30025 and VSX is not enabled.
30026 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
30027 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
30028 to reg+offset addressing. Use PTImode when checking offset
30029 addresses for validity.
30030 (reg_offset_addressing_ok_p): Likewise.
30031 (rs6000_legitimate_offset_address_p): Likewise.
30032 (rs6000_legitimize_address): Likewise.
30033 (rs6000_legitimize_reload_address): Likewise.
30034 (rs6000_legitimate_address_p): Likewise.
30035 (rs6000_eliminate_indexed_memrefs): Likewise.
30036 (rs6000_emit_move): Likewise.
30037 (rs6000_secondary_reload): Likewise.
30038 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
30039 reloads to fpr registers to continue to use reg+offset addressing,
30040 but 64-bit reloads to altivec registers need reg+reg addressing.
30041 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
30042 it. Treat LO_SUM like a PLUS operation.
30043 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
30044 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
30045 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
30046 registers to share a register with a smaller sized type, since VSX
30047 puts scalars in the upper 64-bits.
30048 (print_operand): Add support for PTImode.
30049 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
30050 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
30051 registers, but don't have arithmetic support.
30052 (rs6000_memory_move_cost): Add test for VSX.
30053 (rs6000_opt_masks): Add -mvsx-timode.
30055 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
30058 (VSr): Use wt constraint for TImode.
30059 (VSv): Drop TImode support.
30060 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
30061 (vsx_movti_64bit): Likewise.
30062 (vsx_movti_32bit): Likewise.
30063 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
30064 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
30065 one '?' on the appropriate output constraint. Do not allow TImode
30066 logical operations on 32-bit systems.
30067 (vsx_ior<mode>3): Likewise.
30068 (vsx_xor<mode>3): Likewise.
30069 (vsx_one_cmpl<mode>2): Likewise.
30070 (vsx_nor<mode>3): Likewise.
30071 (vsx_andc<mode>3): Likewise.
30072 (vsx_concat_<mode>): Likewise.
30073 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
30075 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
30076 OPTION_MASK_VSX_TIMODE.
30077 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
30078 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
30080 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
30081 (TI2 iterator): New iterator for TImode, PTImode.
30082 (wd mode attribute): Add values for vector types.
30083 (movti_string): Replace TI move operations with operations for TImode
30084 and PTImode. Add support for TImode being allowed in VSX registers.
30085 (mov<mode>_string, TImode/PTImode): Likewise.
30086 (movti_ppc64): Likewise.
30087 (mov<mode>_ppc64, TImode/PTImode): Likewise.
30088 (TI mode splitters): Likewise.
30090 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
30093 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
30095 PR tree-optimization/56355
30096 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
30097 Also handle integers with undefined overflow.
30099 2013-03-20 Catherine Moore <clm@codesourcery.com>
30100 Maciej W. Rozycki <macro@codesourcery.com>
30101 Tom de Vries <tom@codesourcery.com>
30102 Nathan Sidwell <nathan@codesourcery.com>
30103 Iain Sandoe <iain@codesourcery.com>
30104 Nathan Froyd <froydnj@codesourcery.com>
30105 Chao-ying Fu <fu@mips.com>
30107 * doc/extend.texi: (micromips, nomicromips, nocompression):
30108 Document new function attributes.
30109 * doc/invoke.texi (minterlink-compressed, mmicromips,
30110 m14k, m14ke, m14kec): Document new options.
30111 (minterlink-mips16): Update documentation.
30112 * doc/md.texi (ZC, ZD): Document new constraints.
30113 * configure.ac (gcc_cv_as_micromips): Check if linker
30114 supports the .set micromips directive.
30115 * configure: Regenerate.
30116 * config.in: Regenerate.
30117 * config/mips/mips-tables.opt: Regenerate.
30118 * config/mips/micromips.md: New file.
30119 * constraints.md (ZC, ZD): New constraints.
30120 * config/mips/predicates.md (movep_src_register): New predicate.
30121 (movep_src_operand): New predicate.
30122 (non_volatile_mem_operand): New predicate.
30123 * config/mips/mips.md (multimem): New type.
30124 (length): Differentiate between 17-bit and 18-bit branch offsets.
30125 (MOVEP1, MOVEP2): New mode iterator.
30126 (mov_<load>l): Use ZC constraint.
30127 (mov_<load>r): Likewise.
30128 (mov_<store>l): Likewise.
30129 (mov_<store>r): Likewise.
30130 (*branch_equality<mode>_inverted): Add microMIPS support.
30131 (*branch_equality<mode>): Likewise.
30132 (*jump_absolute): Likewise.
30133 (indirect_jump_<mode>): Likewise.
30134 (tablejump_<mode>): Likewise.
30135 (<optab>_internal): Likewise.
30136 (sibcall_internal): Likewise.
30137 (sibcall_value_internal): Likewise.
30138 (prefetch): Use constraint ZD.
30139 * config/mips/mips.opt (minterlink-compressed): New option.
30140 (minterlink-mips16): Now an alias for minterlink-compressed.
30141 (mmicromips): New option.
30142 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
30143 (compare_and_swap_12): Likewise.
30144 (sync_add<mode>): Likewise.
30145 (sync_<optab>_12): Likewise.
30146 (sync_old_<optab>_12): Likewise.
30147 (sync_new_<optab>_12): Likewise.
30148 (sync_nand_12): Likewise.
30149 (sync_old_nand_12): Likewise.
30150 (sync_new_nand_12): Likewise.
30151 (sync_sub<mode>): Likewise.
30152 (sync_old_add<mode>): Likewise.
30153 (sync_old_sub<mode>): Likewise.
30154 (sync_new_add<mode>): Likewise.
30155 (sync_new_sub<mode>): Likewise.
30156 (sync_<optab><mode>): Likewise.
30157 (sync_old_<optab><mode>): Likewise.
30158 (sync_new_<optab><mode>): Likewise.
30159 (sync_nand<mode>): Likewise.
30160 (sync_old_nand<mode>): Likewise.
30161 (sync_new_nand<mode>): Likewise.
30162 (sync_lock_test_and_set<mode>): Likewise.
30163 (test_and_set_12): Likewise.
30164 (atomic_compare_and_swap<mode>): Likewise.
30165 (atomic_exchange<mode>_llsc): Likewise.
30166 (atomic_fetch_add<mode>_llsc): Likewise.
30167 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
30168 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
30169 (umips_save_restore_pattern_p): Likewise.
30170 (umips_load_store_pair_p): Likewise.
30171 (umips_output_load_store_pair): Likewise.
30172 (umips_movep_target_p): Likewise.
30173 (umips_12bit_offset_address_p): Likewise.
30174 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
30175 (mips_base_mips16): Rename this...
30176 (mips_base_compression_flags): ...to this. Update all uses.
30177 (mips_attribute_table): Add micromips, nomicromips and nocompression.
30178 (mips_mips16_decl_p): Delete.
30179 (mips_nomips16_decl_p): Delete.
30180 (mips_get_compress_on_flags): New function.
30181 (mips_get_compress_off_flags): New function.
30182 (mips_get_compress_mode): New function.
30183 (mips_get_compress_on_name): New function.
30184 (mips_get_compress_off_name): New function.
30185 (mips_insert_attributes): Support multiple compression types.
30186 (mips_merge_decl_attributes): Likewise.
30187 (umips_12bit_offset_address_p): New function.
30188 (mips_start_function_definition): Emit .set micromips directive.
30189 (mips_call_may_need_jalx_p): New function.
30190 (mips_function_ok_for_sibcall): Add microMIPS support.
30191 (mips_print_operand_punctuation): Support short delay slots and
30193 (umips_swm_mask, umips_swm_encoding): New.
30194 (umips_build_save_restore): New function.
30195 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
30196 (was_mips16_p): Remove.
30197 (old_compression_mode): New.
30198 (mips_set_compression_mode): New function.
30199 (mips_set_current_function): Add microMIPS support.
30200 (mips_option_override): Likewise.
30201 (umips_save_restore_pattern_p): New function.
30202 (umips_output_save_restore): New function.
30203 (umips_load_store_pair_p_1): New function.
30204 (umips_load_store_pair_p): New function.
30205 (umips_output_load_store_pair_1): New function.
30206 (umips_output_load_store_pair): New function.
30207 (umips_movep_target_p) New function.
30208 (mips_prepare_pch_save): Add microMIPS support.
30209 * config/mips/mips.h (TARGET_COMPRESSION): New.
30210 (TARGET_CPU_CPP_BUILTINS): Update macro
30211 to use new compression flags and to support microMIPS.
30212 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
30213 (MIPS_ARCH_FLOAT_SPEC): Likewise.
30214 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
30215 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
30216 (ASM_SPEC): Support mmicromips and mno-micromips.
30217 (M16STORE_REG_P): New macro.
30218 (MIPS_CALL): Support TARGET_MICROMIPS.
30219 (MICROMIPS_J): New macro.
30220 (mips_base_mips16): Rename this...
30221 (mips_base_compression_flags): ...to this.
30222 (UMIPS_12BIT_OFFSET_P): New macro.
30223 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
30224 (MULTILIB_DIRNAMES): Likewise.
30225 2013-03-20 Richard Biener <rguenther@suse.de>
30227 PR tree-optimization/56661
30228 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
30229 the result does not have to be distinct.
30231 2013-03-20 Richard Biener <rguenther@suse.de>
30233 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
30236 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30237 Steven Bosscher <steven@gcc.gnu.org>
30239 PR rtl-optimization/56605
30240 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
30242 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
30245 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
30246 that require movd instead of movq.
30248 2013-03-20 Richard Biener <rguenther@suse.de>
30250 * tree-ssa-structalias.c (struct variable_info): Add pointer
30251 to the first field of an aggregate with sub-vars. Make
30252 this and the pointer to the next subfield its ID.
30253 (vi_next): New function.
30254 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
30255 storedanything_id, integer_id): Increment by one.
30256 (new_var_info, get_call_vi, lookup_call_clobber_vi,
30257 get_call_clobber_vi): Adjust.
30258 (solution_set_expand): Simplify and speedup.
30259 (solution_set_add): Inline into ...
30260 (set_union_with_increment): ... this. Adjust accordingly.
30261 (do_sd_constraint): Likewise.
30262 (do_ds_constraint): Likewise.
30263 (do_complex_constraint): Simplify.
30264 (build_pred_graph): Adjust.
30265 (solve_graph): Likewise. Simplify and speedup.
30266 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
30267 get_constraint_for_component_ref, get_constraint_for_1,
30268 first_vi_for_offset, first_or_preceding_vi_for_offset,
30269 create_function_info_for, create_variable_info_for_1,
30270 create_variable_info_for, intra_create_variable_infos): Adjust.
30271 (init_base_vars): Push NULL for ID zero.
30272 (compute_points_to_sets): Adjust.
30274 2013-03-20 Richard Biener <rguenther@suse.de>
30276 * cfgloop.c (verify_loop_structure): Streamline and avoid
30277 ICEing on corrupt loop tree.
30278 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
30281 2013-03-20 Richard Biener <rguenther@suse.de>
30283 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
30284 check whether an SSA update is needed.
30286 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
30288 * config/mips/constraints.md (T): Rename to...
30292 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
30293 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
30295 2013-03-19 Ian Bolton <ian.bolton@arm.com>
30297 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
30298 (*subsi3_carryin_uxtw): Likewise.
30300 2013-03-19 Ian Bolton <ian.bolton@arm.com>
30302 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
30303 (*rorsi3_insn_uxtw): Likewise.
30305 2013-03-19 Ian Bolton <ian.bolton@arm.com>
30307 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
30308 (*extrsi5_insn_uxtw): Likewise.
30310 2013-03-19 Richard Biener <rguenther@suse.de>
30312 PR tree-optimization/56273
30313 * passes.c (init_optimization_passes): Move second VRP after DOM.
30315 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
30317 * config/i386/i386.md (*movti_internal): Merge from
30318 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
30319 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
30320 nox64 isa attributes.
30322 2013-03-18 Richard Biener <rguenther@suse.de>
30324 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
30326 (merge_node_constraints): Likewise.
30327 (build_succ_graph): Likewise.
30328 (valid_graph_edge): Inline into single caller.
30329 (unify_nodes): Likewise. Use bitmap_set_bit return value
30331 (scc_visit): Fix formatting and variable use.
30332 (do_sd_constraint): Use gcc_checking_assert.
30333 (do_ds_constraint): Likewise.
30334 (do_complex_constraint): Likewise.
30335 (condense_visit): Likewise. Cleanup.
30336 (dump_pred_graph): New function.
30337 (perform_var_substitution): Dump the pred-graph before
30338 variable substitution.
30339 (find_equivalent_node): Use gcc_checking_assert.
30340 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
30342 2013-03-18 Richard Biener <rguenther@suse.de>
30344 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
30345 Remove cond_expr_stmt_list argument and do not gimplify the
30347 (vect_loop_versioning): Adjust.
30348 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
30349 Cleanup to use less temporaries.
30350 (vect_create_data_ref_ptr): Cleanup.
30352 2013-03-18 Jakub Jelinek <jakub@redhat.com>
30354 PR tree-optimization/56635
30355 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
30356 require types_compatible_p types.
30358 2013-03-18 Nick Clifton <nickc@redhat.com>
30360 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
30361 spurious backslash.
30363 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
30364 Add missing line to comment describing function.
30366 2013-03-18 Richard Biener <rguenther@suse.de>
30368 PR tree-optimization/56210
30369 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
30370 Handle string / character search functions.
30371 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
30373 2013-03-18 Richard Biener <rguenther@suse.de>
30375 PR middle-end/56483
30376 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
30377 and implement properly.
30378 * gimple.h (gimple_cond_single_var_p): Remove.
30380 2013-03-18 Richard Biener <rguenther@suse.de>
30382 * tree-data-ref.h (find_data_references_in_loop): Declare.
30383 * tree-data-ref.c (get_references_in_stmt): Use a stack
30384 vector pre-allocated in the callers.
30385 (find_data_references_in_stmt): Adjust.
30386 (graphite_find_data_references_in_stmt): Likewise.
30387 (create_rdg_vertices): Likewise.
30388 (find_data_references_in_loop): Export.
30389 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
30390 Compute dependences here...
30391 (vect_analyze_data_refs): ...not here. When we encounter
30392 a non-vectorizable data reference in basic-block vectorization
30393 truncate the data reference vector. Do not bother to
30394 fixup data-dependence information for gather loads.
30395 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
30396 of data references, as reported.
30398 2013-03-18 Richard Biener <rguenther@suse.de>
30400 PR tree-optimization/3713
30401 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
30402 has_constants and expr.
30403 (stmt_has_constants): Properly valueize SSA names when deciding
30404 whether the stmt has constants.
30406 2013-03-18 Richard Biener <rguenther@suse.de>
30408 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
30409 whole function when there is nothing to do.
30410 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
30411 * tree-vectorizer.c (vectorize_loops): Update virtual and
30412 loop-closed SSA once.
30413 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
30415 2013-03-18 Richard Biener <rguenther@suse.de>
30417 PR middle-end/56113
30418 * domwalk.c (bb_postorder): New global static.
30419 (cmp_bb_postorder): New function.
30420 (walk_dominator_tree): Replace scheme imposing an order for
30421 visiting dominator sons by one sorting them at the time they
30422 are pushed on the stack.
30424 2013-03-18 Richard Biener <rguenther@suse.de>
30426 PR tree-optimization/39326
30427 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
30428 (struct mem_ref): Replace mem member with ao_ref typed member.
30429 (MEM_ANALYZABLE): Adjust.
30430 (memref_eq): Likewise.
30431 (mem_ref_alloc): Likewise.
30432 (gather_mem_refs_stmt): Likewise.
30433 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
30434 (execute_sm_if_changed_flag_set): Adjust.
30435 (execute_sm): Likewise.
30436 (ref_always_accessed_p): Likewise.
30437 (refs_independent_p): Likewise.
30438 (can_sm_ref_p): Likewise.
30440 2013-03-18 Jakub Jelinek <jakub@redhat.com>
30443 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
30444 return 1 even for !unsignedp.
30446 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
30448 * config/i386/i386.md (isa): Add x64 and nox64.
30449 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
30450 (*pushtf): Enable *roF alternative for x64 isa only.
30451 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
30452 mode attribute of integer alternatives to DImode for TARGET_64BIT.
30453 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
30454 (*movtf_internal): Merge from *movtf_internal_rex64 and
30455 *movtf_internal_sse. Use x64 and nox64 isa attributes.
30456 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
30457 nox64 isa attributes.
30458 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
30459 nox64 isa attributes.
30460 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
30462 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
30464 * config/alpha/alpha.c (TARGET_LRA_P): New define.
30466 2013-03-17 Jakub Jelinek <jakub@redhat.com>
30469 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
30470 class names. Remove trailing comma after "ALL_REGS".
30472 2013-03-16 Jan Hubicka <jh@suse.cz>
30474 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
30475 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
30476 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
30477 of cgraph_get_create_node.
30478 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
30480 2013-03-16 Jason Merrill <jason@redhat.com>
30483 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
30484 with DW_AT_default_value.
30486 2013-03-16 Jakub Jelinek <jakub@redhat.com>
30488 * BASE-VER: Set to 4.9.0.
30490 2013-03-14 Andi Kleen <ak@linux.intel.com>
30493 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
30494 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
30495 Document _x* TSX intrinsics.
30497 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
30498 David Holsgrove <david.holsgrove@xilinx.com>
30500 * configure.ac: Add MicroBlaze TLS support detection.
30501 * configure: Regenerate.
30502 * config/microblaze/microblaze-protos.h
30503 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
30504 symbol_mentioned_p, label_mentioned_p): Add prototypes.
30505 * config/microblaze/microblaze.c (microblaze_address_type): Add
30506 ADDRESS_TLS and tls_reloc address types.
30507 (microblaze_address_info): Add tls_reloc.
30508 (TARGET_HAVE_TLS): Define.
30509 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
30510 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
30511 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
30512 load_tls_operand, microblaze_call_tls_get_addr,
30513 microblaze_legitimize_tls_address): New functions.
30514 (microblaze_classify_unspec): Handle UNSPEC_TLS.
30515 (get_base_reg): Use microblaze_tls_symbol_p.
30516 (microblaze_classify_address): Handle TLS.
30517 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
30518 label_mentioned_p and microblaze_tls_referenced_p.
30519 (microblaze_legitimize_address): Handle TLS.
30520 (microblaze_address_insns): Handle ADDRESS_TLS.
30521 (pic_address_needs_scratch): Handle TLS.
30522 (print_operand_address): Handle TLS.
30523 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
30524 (microblaze_expand_move): Handle TLS.
30525 (microblaze_legitimate_constant_p): Check
30526 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
30527 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
30528 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
30529 (PIC_OFFSET_TABLE_REGNUM): Set.
30530 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
30531 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
30532 (addsi3, movsi_internal2, movdf_internal): Update constraints
30533 * config/microblaze/predicates.md (arith_plus_operand): Define
30534 (move_operand): Redefine as move_src_operand,
30535 check microblaze_tls_referenced_p.
30537 2013-03-14 Ian Bolton <ian.bolton@arm.com>
30539 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
30540 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
30542 2013-03-14 Ian Bolton <ian.bolton@arm.com>
30544 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
30547 2013-03-14 Jakub Jelinek <jakub@redhat.com>
30549 PR tree-optimization/53265
30550 * common.opt (Waggressive-loop-optimizations): New option.
30551 * tree-ssa-loop-niter.c: Include tree-pass.h.
30552 (do_warn_aggressive_loop_optimizations): New function.
30553 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
30554 if number_of_latch_executions returned constant.
30555 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
30556 early. If number_of_latch_executions returned constant, set
30557 nb_iterations_upper_bound back to it.
30558 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
30560 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
30561 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
30563 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
30564 (MULTILIB_OSDIRNAMES): Set.
30565 * genmultilib: If defaultosdirname doesn't start with :: , set
30566 defaultosdirname2 instead, clear it and emit two . multilib_raw
30567 entries instead of just one.
30569 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
30571 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
30572 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
30573 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
30574 (SUBTARGET_OVERRIDE_OPTIONS): New.
30576 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
30579 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
30580 (musermode): Convert to Var(TARGET_USERMODE).
30581 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
30582 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
30583 * config/sh/sh.c (sh_option_override): Use
30584 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
30585 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
30587 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
30589 (udivsi3_i4_single, divsi3_i4_single): Use
30590 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
30592 2013-03-13 Dave Korn <dave.korn.cygwin@gmail.com>
30594 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
30597 2013-03-13 Richard Biener <rguenther@suse.de>
30599 PR tree-optimization/56608
30600 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
30601 calls when vectorizing basic-blocks.
30603 2013-03-13 Jakub Jelinek <jakub@redhat.com>
30606 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
30609 2013-03-12 Jakub Jelinek <jakub@redhat.com>
30611 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
30613 2013-03-11 Jan Hubicka <jh@suse.cz>
30616 * lto-streamer-out.c (output_symbol_p): Skip references from
30617 constructors of external variables.
30619 2013-03-11 Jan Hubicka <jh@suse.cz>
30621 PR middle-end/56571
30622 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
30624 * emit-rtl.c (verify_rtx_sharing): Likewise.
30625 (copy_insn_1): Likewise.
30626 * rtl.c (copy_rtx): Likewise.
30628 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
30631 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
30632 output_operand_lossage message.
30634 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
30637 * arm.c (shift_op): Validate RTL pattern on the fly.
30638 (arm_print_operand, case 'S'): Don't use shift_operator to validate
30641 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30644 * config/pa/pa.md (call_value): Check for calls to powf and direct to
30645 new call patterns that clobber %fr12.
30646 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
30647 split and postreload patterns.
30648 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
30649 registers %fr12 and %fr12R as call used.
30651 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
30653 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
30654 (canon_address, record_store, replace_read, check_mem_read_rtx,
30655 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
30656 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
30657 rest_of_handle_dse): Likewise.
30659 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
30661 PR middle-end/56524
30662 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
30664 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
30665 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
30666 (save_optabs_if_changed): Replace with...
30667 (init_tree_optimization_optabs): ...this.
30668 * optabs.c (save_optabs_if_changed): Rename to...
30669 (init_tree_optimization_optabs): ...this. Take the optimization node
30670 as argument. Do nothing if the base optabs are already correct.
30671 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
30672 to recompute optabs.
30673 * function.h (function): Remove optabs field.
30674 * function.c (invoke_set_current_function_hook): Call
30675 init_tree_optimization_optabs. Use the result to initialize
30678 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
30680 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
30681 if GTMA_HAS_NO_INSTRUMENTATION.
30682 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
30683 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
30684 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
30685 * gimple-pretty-print.c (dump_gimple_transaction): Handle
30686 GTMA_HAS_NO_INSTRUMENTATION.
30688 2013-03-08 Jakub Jelinek <jakub@redhat.com>
30690 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
30693 2013-03-08 Marek Polacek <polacek@redhat.com>
30694 Jakub Jelinek <jakub@redhat.com>
30696 PR tree-optimization/56478
30697 * predict.c (is_comparison_with_loop_invariant_p): Change the
30698 type of loop_step to tree.
30699 (predict_loops): Adjust.
30700 (predict_iv_comparison): Perform the computations on double_ints.
30702 2013-03-08 Richard Biener <rguenther@suse.de>
30704 PR tree-optimization/56570
30705 * tree-cfg.c (verify_expr_location_1): Verify locations for
30707 * tree-sra.c (create_access_replacement): Strip locations
30708 from DECL_DEBUG_EXPRs.
30710 2013-03-08 Richard Biener <rguenther@suse.de>
30712 * tree-inline.c (expand_call_inline): Do not associate
30713 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
30714 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
30716 2013-03-08 Richard Biener <rguenther@suse.de>
30718 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
30719 or block changes with -Og. Fix for location / block encoding
30720 changes and PHI arguments with locations.
30722 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
30724 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
30726 (struct output_info): Likewise.
30727 (register_overhead): Remove bad gcc_assert.
30728 (bitmap_find_bit): If there is only a single bitmap element, do not
30729 count a miss as a search.
30730 (print_statistics): Update for counter type changes.
30731 (dump_bitmap_statistics): Likewise. Print headers such that they
30732 are properly lined up with the printed counters.
30734 2013-03-07 Jakub Jelinek <jakub@redhat.com>
30736 PR tree-optimization/56559
30737 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
30738 check that it has only a single use.
30740 2013-03-07 Richard Biener <rguenther@suse.de>
30742 * doc/invoke.texi (fwhole-program): Discourage use in combination
30745 2013-03-06 Jakub Jelinek <jakub@redhat.com>
30747 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
30749 PR tree-optimization/56539
30750 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
30751 instead of GSI_CONTINUE_LINKING as last argument to
30752 force_gimple_operand_gsi. Adjust function comment.
30754 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
30757 PR middle-end/56548
30758 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
30759 promoted mode, convert the result back to the original mode.
30761 2013-03-06 Richard Biener <rguenther@suse.de>
30763 PR middle-end/56294
30764 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
30765 (insert_updated_phi_nodes_compare_uids): New function.
30766 (update_ssa): Sort symbols_to_rename after UID before
30767 traversing it to insert PHI nodes.
30769 2013-03-06 Richard Biener <rguenther@suse.de>
30771 PR middle-end/50494
30772 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
30773 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
30776 2013-02-13 Richard Biener <rguenther@suse.de>
30779 * varasm.c (output_constant_def_1): Get the decl representing
30780 the constant as argument.
30781 (output_constant_def): Wrap output_constant_def_1.
30782 (make_decl_rtl): Use output_constant_def_1 with the decl
30783 representing the constant.
30784 (build_constant_desc): Optionally re-use a decl already
30785 representing the constant.
30786 (tree_output_constant_def): Adjust.
30788 2013-03-06 Joey Ye <joey.ye@arm.com>
30791 * gcc.c (convert_white_space): New function.
30792 (main): Handles white space in function name.
30794 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
30797 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
30798 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
30799 to SH_DIV_CALL_TABLE for TARGET_SH2.
30800 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
30802 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
30803 call-table options.
30805 2013-03-05 Sterling Augustine <saugustine@google.com>
30806 Cary Coutant <ccoutant@google.com>
30809 * dwarf2out.c (resolve_addr): Don't call
30810 remove_loc_list_addr_table_entries a second time for the same
30813 2013-03-05 Jakub Jelinek <jakub@redhat.com>
30816 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
30817 (avoid_complex_debug_insns): New function.
30818 (expand_debug_locations): Call it.
30820 PR rtl-optimization/56484
30821 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
30822 lifetimes of hard registers on small register class machines.
30824 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
30826 * config/microblaze/microblaze-protos.h: Rename
30827 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
30828 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
30830 (microblaze_fast_interrupt_function_p): New function.
30831 (microblaze_is_interrupt_handler): Rename to
30832 microblaze_is_interrupt_variant and add fast_interrupt check.
30833 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
30834 (save_restore_insns): Likewise.
30835 (compute_frame_size): Likewise.
30836 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
30837 (microblaze_globalize_label): Likewise.
30838 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
30839 * config/microblaze/microblaze.md: Use wrapper
30840 microblaze_is_interrupt_variant.
30842 2013-03-05 Kai Tietz <ktietz@redhat.com>
30844 * sdbout.c (sdbout_one_type): Switch to current function's section
30845 supporting cold/hot.
30847 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
30849 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
30852 2013-03-05 Jakub Jelinek <jakub@redhat.com>
30854 PR middle-end/56461
30855 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
30856 if VALGRIND_GET_VBITS is defined, temporarily make object
30857 memory all defined, and restore previous valgrind addressability
30858 and definability afterwards. Free this_object at the end.
30860 PR middle-end/56461
30861 * lra.c (lra): Call lra_clear_live_ranges if live_p,
30862 right before calling lra_create_live_ranges, also call it
30863 when clearing live_p. Only call lra_clear_live_ranges
30864 at the end if live_p.
30866 PR middle-end/56461
30867 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
30869 2013-03-05 Richard Biener <rguenther@suse.de>
30871 PR tree-optimization/56521
30872 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
30875 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
30878 * except.h (remove_unreachable_eh_regions): New prototype.
30879 * except.c (remove_eh_handler_splicer): New function, split out
30880 of remove_eh_handler.
30881 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
30882 warning about running it on many EH regions one at a time.
30883 (remove_unreachable_eh_regions_worker): New function, walk the
30884 EH tree in depth-first order and remove non-marked regions.
30885 (remove_unreachable_eh_regions): New function.
30886 * tree-eh.c (mark_reachable_handlers): New function, split out
30887 from remove_unreachable_handlers.
30888 (remove_unreachable_handlers): Use mark_reachable_handlers and
30889 remove_unreachable_eh_regions.
30890 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
30891 and remove_unreachable_eh_regions.
30893 2013-03-05 Richard Biener <rguenther@suse.de>
30895 PR middle-end/56525
30896 * loop-init.c (fix_loop_structure): Remove loops in two stages,
30897 not freeing them until the end.
30899 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30901 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
30903 2013-03-05 Richard Biener <rguenther@suse.de>
30905 PR tree-optimization/56270
30906 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
30907 of loads after scheduling an SLP instance.
30909 2013-03-05 Jakub Jelinek <jakub@redhat.com>
30911 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
30913 (check_gcc_parallelize): Run guality.exp as a separate job from
30914 vect.exp with unsorted.exp and $(dg_target_exps) separately from
30915 struct-layout-1.exp with stackalign.exp.
30917 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
30919 PR middle-end/56461
30920 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
30921 load_index sbitmap even if some bit in it isn't set.
30923 PR middle-end/56461
30924 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
30925 (discover_iteration_bound_by_body_walk): Change queues to
30926 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
30927 spelling in comment. Call safe_push on queues[bound_index] directly.
30928 Release queues[queue_index] in every iteration unconditionally.
30929 Release bounds vector.
30931 PR middle-end/56461
30932 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
30933 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
30934 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
30937 2013-03-05 Richard Biener <rguenther@suse.de>
30940 * tree-inline.c (remap_blocks_to_null): New function.
30941 (expand_call_inline): When expanding a call stmt without
30942 an associated block inline remap all callee blocks to NULL.
30944 2013-03-05 Jakub Jelinek <jakub@redhat.com>
30946 PR rtl-optimization/56494
30947 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
30948 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
30949 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
30951 PR middle-end/56461
30952 * sel-sched-ir.c (free_sched_pools): Release
30953 succs_info_pool.stack[succs_info_pool.max_top] vectors too
30954 if succs_info_pool.max_top isn't -1.
30957 * opts.c (opts_obstack, opts_concat): Moved to...
30958 * opts-common.c (opts_obstack, opts_concat): ... here.
30960 2013-03-04 Jakub Jelinek <jakub@redhat.com>
30962 PR middle-end/56461
30963 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
30965 2013-03-04 Martin Jambor <mjambor@suse.cz>
30967 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
30968 all appropriate places.
30970 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
30972 PR tree-optimization/56424
30973 * ipa-split.c (split_function): Do not set the RSO flag if result is
30974 not by reference and its type is a register type.
30976 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
30978 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
30979 (microblaze_legitimate_pic_operand): Likewise
30980 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
30981 new function microblaze_legitimate_pic_operand
30982 * config/microblaze/microblaze-protos.h
30983 (microblaze_legitimate_pic_operand): Declare.
30985 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
30987 * config/microblaze/predicates.md (call_insn_simple_operand):
30988 New predicate for supported rtx code types.
30989 * config/microblaze/microblaze.md (call_internal1): Use
30990 call_insn_simple_operand predicate.
30992 2013-03-04 Jakub Jelinek <jakub@redhat.com>
30994 PR middle-end/56461
30995 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
30996 partitions.ordered_remove.
30998 PR middle-end/56461
30999 * tree-vect-stmts.c (vectorizable_conversion): Don't call
31000 vec_oprnds0.create (1) for modifier == NONE.
31002 PR middle-end/56461
31003 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
31004 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
31005 vec_oprnds1 right before pushing anything to it for
31008 PR middle-end/56461
31009 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
31010 set nbbs to 0 instead of having separate code path.
31011 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
31012 instead of false as last argument if returning NULL.
31014 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
31016 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
31017 the attribute is now called "target" instead of "option".
31018 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
31019 * doc/tm.texi.in (Target Attributes): Likewise document the correct
31020 attribute/pragma name for TARGET_OPTION_VALID_P and
31021 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
31022 * doc/tm.texi: Regenerated.
31024 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
31026 * config/microblaze/microblaze.c:
31027 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
31028 * config/microblaze/microblaze.h: Add -mxl-reorder to
31030 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
31031 instructions emitted if TARGET_REORDER.
31032 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
31033 or 0 for -m/-mno case, but initialises as 2 to detect default use case
31036 2013-03-01 Xinliang David Li <davidxl@google.com>
31038 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
31041 2013-03-01 Jakub Jelinek <jakub@redhat.com>
31043 PR middle-end/56461
31044 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
31045 vector even when returning true. Fix up function comment formatting.
31047 PR middle-end/56461
31048 * ira-build.c (ira_loop_nodes_count): New variable.
31049 (create_loop_tree_nodes): Initialize it.
31050 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
31052 PR middle-end/56461
31053 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
31054 method on dr_chain and result_chain.
31055 * tree-vect-stmts.c (vectorizable_store): Only call
31056 result_chain.create if j == 0.
31058 PR middle-end/56461
31059 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
31060 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
31061 before overwriting it.
31063 2013-03-01 Tobias Burnus <burnus@net-b.de>
31065 * doc/extended.texi (C Extensions): Change order in @menu
31067 (Other MIPS Built-in Functions): Move last MIPS entry before
31068 "picoChip Built-in Functions".
31069 (SH Built-in Functions): Move after RX Built-in Functions.
31070 * doc/gcc.texi (Introduction): Change order in @menu
31072 * doc/md.texi (Constraints): Ditto.
31073 * gty.texi (Type Information): Ditto.
31074 (User-provided marking routines for template types): Make
31076 * doc/invoke.texi (AArch64 Options): Move before
31077 "Adapteva Epiphany Options".
31079 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
31080 Jakub Jelinek <jakub@redhat.com>
31083 * asan.c (gate_asan): Lookup no_sanitize_address instead of
31084 no_address_safety_analysis attribute.
31085 * doc/extend.texi (no_address_safety_attribute): Rename to
31086 no_sanitize_address attribute, mention no_address_safety_analysis
31087 attribute as deprecated alias.
31089 2013-02-28 Jakub Jelinek <jakub@redhat.com>
31091 PR middle-end/56461
31092 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
31093 type to vec<vec<tree> > *.
31094 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
31095 to be vec<tree> instead of vec<tree> *, set vec_defs
31096 to vNULL and call vec_defs.create (number_of_vects), adjust other
31098 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
31099 vectorizable_condition): Adjust vect_get_slp_defs callers.
31101 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
31103 * config/aarch64/aarch64.c
31104 (aarch64_float_const_representable): Remove unused variable.
31106 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
31108 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
31110 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
31112 * config/aarch64/aarch64-builtins.c
31113 (aarch64_init_simd_builtins): Make static.
31115 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
31117 * config/aarch64/aarch64.c
31118 (aarch64_simd_make_constant): Make static.
31120 2013-02-28 Martin Jambor <mjambor@suse.cz>
31122 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
31123 with no initialization to the RHS of debug statements.
31125 2013-02-28 Martin Jambor <mjambor@suse.cz>
31127 PR tree-optimization/56294
31128 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
31130 (get_access_replacement): Do not call create_access_replacement.
31131 Assert a replacement exists.
31132 (get_repl_default_def_ssa_name): Create the replacement declaration
31135 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31137 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
31138 final_end_function.
31140 2013-02-28 Marek Polacek <polacek@redhat.com>
31142 PR rtl-optimization/56466
31143 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
31144 if we're changing a loop.
31145 (peel_loops_completely): Likewise.
31147 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
31150 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
31152 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
31155 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
31156 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
31157 INTX_FTYPE_FX, FX_FTYPE_INTX.
31158 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
31160 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
31162 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
31163 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
31164 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
31165 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
31166 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
31167 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
31168 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
31169 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
31170 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
31171 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
31172 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
31173 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
31174 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
31175 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
31176 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
31177 (avrxmega6): Increase max flash segments from 5 to 6.
31178 * config/avr/t-multilib: Regenerate.
31179 * config/avr/avr-tables.opt: Regenerate.
31180 * doc/avr-mmcu.texi: Regenerate.
31182 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
31184 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
31185 (avr_device_to_arch): Rename to avr_device_to_ld.
31186 (avr_device_to_as): New prototype.
31187 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
31188 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
31189 * config/avr/driver-avr.c (avr_device_to_as): New.
31190 (avr_device_to_arch): Rename to avr_device_to_ld.
31192 2013-02-27 Jakub Jelinek <jakub@redhat.com>
31194 PR middle-end/56461
31195 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
31196 method on dr_chain and result_chain.
31198 PR middle-end/56461
31199 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
31200 pointer_set_destroy on not_executed_last_iteration.
31202 PR middle-end/56461
31203 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
31205 PR middle-end/56461
31206 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
31207 FOR_EACH_DEFINED_FUNCTION when freeing state.
31209 PR middle-end/56461
31210 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
31212 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
31215 PR middle-end/56461
31216 * ipa-cp.c (decide_whether_version_node): Call vec_free on
31217 known_aggs[i].items and release known_aggs vector.
31219 PR middle-end/56461
31220 * ipa-reference.c (propagate): Free node_info even for alias nodes.
31222 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
31224 * config/microblaze/microblaze.c (microblaze_emit_compare):
31225 Use xor for EQ/NE comparisions.
31226 * config/microblaze/microblaze.md (cstoresf4): Add constraints
31227 (cbranchsf4): Adjust operator to comparison_operator.
31229 2013-02-27 Jakub Jelinek <jakub@redhat.com>
31231 PR middle-end/56461
31232 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
31234 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
31235 vec_safe_push, always update *slot.
31236 (redirect_edge_var_map_clear): Use vec_free.
31237 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
31238 (free_var_map_entry): Use vec_free.
31239 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
31240 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
31242 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
31244 PR middle-end/45472
31245 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
31246 when the may_trap_p bit of the exprs being merged differs.
31247 Reorder tests for speculativeness in the logical and operator.
31249 2013-02-27 Jakub Jelinek <jakub@redhat.com>
31251 * incpath.c (add_standard_paths): Use reconcat instead of concat
31252 where appropriate and avoid leaking memory.
31254 * opts.h: Include obstack.h.
31255 (opts_concat): New prototype.
31256 (opts_obstack): New declaration.
31257 * opts.c (opts_concat): New function.
31258 (opts_obstack): New variable.
31259 (init_options_struct): Call gcc_init_obstack on opts_obstack.
31260 (finish_options): Use opts_concat instead of concat
31261 and XOBNEWVEC instead of XNEWVEC.
31262 * opts-common.c (generate_canonical_option, decode_cmdline_option,
31263 generate_option): Likewise.
31264 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
31265 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
31268 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
31269 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
31271 2013-02-26 Jakub Jelinek <jakub@redhat.com>
31273 PR middle-end/56461
31274 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
31276 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
31278 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
31279 (arm_block_move_unaligned_straight): Likewise.
31280 (arm_adjust_block_mem): Likewise.
31282 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
31285 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
31286 temp, cond and label.
31287 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
31290 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
31291 * config/c6x/c6x.h (dbx_register_map): Update declaration.
31294 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
31295 of prologue/epilogue functions.
31298 * config/tilegx/tilegx.c (tilegx_expand_prologue):
31299 Remove unused variable cfa_offset.
31300 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
31303 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
31304 type promotion to unsigned.
31307 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
31308 for HOST_WIDE_INT of 32 bit / same size as int.
31309 (arm_block_move_unaligned_straight): Likewise.
31310 (arm_adjust_block_mem): Likewise.
31313 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
31316 2013-02-26 Marek Polacek <polacek@redhat.com>
31318 PR tree-optimization/56426
31319 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
31321 2013-02-26 Richard Biener <rguenther@suse.de>
31324 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
31325 unused variable loops.
31327 2013-02-26 Jakub Jelinek <jakub@redhat.com>
31329 PR tree-optimization/56448
31330 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
31331 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
31332 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
31333 later operands of the references, or even first operand for
31334 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
31336 PR tree-optimization/56443
31337 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
31338 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
31339 to type_for_mode langhook.
31341 2013-02-25 Matt Turner <mattst88@gmail.com>
31343 * doc/invoke.texi: Document r4700.
31345 2013-02-25 Richard Biener <rguenther@suse.de>
31347 PR tree-optimization/56175
31348 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
31350 (simplify_bitwise_binary): ... here. Also guard the conversion
31351 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
31353 2013-02-25 Catherine Moore <clm@codesourcery.com>
31356 2013-02-24 Catherine Moore <clm@codesourcery.com>
31357 Maciej W. Rozycki <macro@codesourcery.com>
31358 Tom de Vries <tom@codesourcery.com>
31359 Nathan Sidwell <nathan@codesourcery.com>
31360 Iain Sandoe <iain@codesourcery.com>
31361 Nathan Froyd <froydnj@codesourcery.com>
31362 Chao-ying Fu <fu@mips.com>
31364 * doc/extend.texi: (micromips, nomicromips, nocompression):
31365 Document new function attributes.
31366 * doc/invoke.texi (minterlink-compressed, mmicromips,
31367 m14k, m14ke, m14kec): Document new options.
31368 (minterlink-mips16): Update documentation.
31369 * doc/md.texi (ZC, ZD): Document new constraints.
31370 * configure.ac (gcc_cv_as_micromips): Check if linker
31371 supports the .set micromips directive.
31372 * configure: Regenerate.
31373 * config.in: Regenerate.
31374 * config/mips/mips-tables.opt: Regenerate.
31375 * config/mips/micromips.md: New file.
31376 * constraints.md (ZC, AD): New constraints.
31377 * config/mips/predicates.md (movep_src_register): New predicate.
31378 (movep_src_operand): New predicate.
31379 (non_volatile_mem_operand): New predicate.
31380 * config/mips/mips.md (multimem): New type.
31381 (length): Differentiate between 17-bit and 18-bit branch offsets.
31382 (MOVEP1, MOVEP2): New mode iterator.
31383 (mov_<load>l): Use ZC constraint.
31384 (mov_<load>r): Likewise.
31385 (mov_<store>l): Likewise.
31386 (mov_<store>r): Likewise.
31387 (*branch_equality<mode>_inverted): Add microMIPS support.
31388 (*branch_equality<mode>): Likewise.
31389 (*jump_absolute): Likewise.
31390 (indirect_jump_<mode>): Likewise.
31391 (tablejump_<mode>): Likewise.
31392 (<optab>_internal): Likewise.
31393 (sibcall_internal): Likewise.
31394 (sibcall_value_internal): Likewise.
31395 (prefetch): Use constraint ZD.
31396 * config/mips/mips.opt (minterlink-compressed): New option.
31397 (minterlink-mips16): Now an alias for minterlink-compressed.
31398 (mmicromips): New option.
31399 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
31400 (compare_and_swap_12): Likewise.
31401 (sync_add<mode>): Likewise.
31402 (sync_<optab>_12): Likewise.
31403 (sync_old_<optab>_12): Likewise.
31404 (sync_new_<optab>_12): Likewise.
31405 (sync_nand_12): Likewise.
31406 (sync_old_nand_12): Likewise.
31407 (sync_new_nand_12): Likewise.
31408 (sync_sub<mode>): Likewise.
31409 (sync_old_add<mode>): Likewise.
31410 (sync_old_sub<mode>): Likewise.
31411 (sync_new_add<mode>): Likewise.
31412 (sync_new_sub<mode>): Likewise.
31413 (sync_<optab><mode>): Likewise.
31414 (sync_old_<optab><mode>): Likewise.
31415 (sync_new_<optab><mode>): Likewise.
31416 (sync_nand<mode>): Likewise.
31417 (sync_old_nand<mode>): Likewise.
31418 (sync_new_nand<mode>): Likewise.
31419 (sync_lock_test_and_set<mode>): Likewise.
31420 (test_and_set_12): Likewise.
31421 (atomic_compare_and_swap<mode>): Likewise.
31422 (atomic_exchange<mode>_llsc): Likewise.
31423 (atomic_fetch_add<mode>_llsc): Likewise.
31424 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
31425 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
31426 (umips_save_restore_pattern_p): Likewise.
31427 (umips_load_store_pair_p): Likewise.
31428 (umips_output_load_store_pair): Likewise.
31429 (umips_movep_target_p): Likewise.
31430 (umips_12bit_offset_address_p): Likewise.
31431 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
31432 (mips_base_mips16): Rename this...
31433 (mips_base_compression_flags): ...to this. Update all uses.
31434 (mips_attribute_table): Add micromips, nomicromips and nocompression.
31435 (mips_mips16_decl_p): Delete.
31436 (mips_nomips16_decl_p): Delete.
31437 (mips_get_compress_on_flags): New function.
31438 (mips_get_compress_off_flags): New function.
31439 (mips_get_compress_mode): New function.
31440 (mips_get_compress_on_name): New function.
31441 (mips_get_compress_off_name): New function.
31442 (mips_insert_attributes): Support multiple compression types.
31443 (mips_merge_decl_attributes): Likewise.
31444 (umips_12bit_offset_address_p): New function.
31445 (mips_start_function_definition): Emit .set micromips directive.
31446 (mips_call_may_need_jalx_p): New function.
31447 (mips_function_ok_for_sibcall): Add microMIPS support.
31448 (mips_print_operand_punctuation): Support short delay slots and
31450 (umips_swm_mask, umips_swm_encoding): New.
31451 (umips_build_save_restore): New function.
31452 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
31453 (was_mips16_p): Remove.
31454 (old_compression_mode): New.
31455 (mips_set_compression_mode): New function.
31456 (mips_set_current_function): Add microMIPS support.
31457 (mips_option_override): Likewise.
31458 (umips_save_restore_pattern_p): New function.
31459 (umips_output_save_restore): New function.
31460 (umips_load_store_pair_p_1): New function.
31461 (umips_load_store_pair_p): New function.
31462 (umips_output_load_store_pair_1): New function.
31463 (umips_output_load_store_pair): New function.
31464 (umips_movep_target_p) New function.
31465 (mips_prepare_pch_save): Add microMIPS support.
31466 * config/mips/mips.h (TARGET_COMPRESSION): New.
31467 (TARGET_CPU_CPP_BUILTINS): Update macro
31468 to use new compression flags and to support microMIPS.
31469 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
31470 (MIPS_ARCH_FLOAT_SPEC): Likewise.
31471 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
31472 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
31473 (ASM_SPEC): Support mmicromips and mno-micromips.
31474 (M16STORE_REG_P): New macro.
31475 (MIPS_CALL): Support TARGET_MICROMIPS.
31476 (MICROMIPS_J): New macro.
31477 (mips_base_mips16): Rename this...
31478 (mips_base_compression_flags): ...to this.
31479 (UMIPS_12BIT_OFFSET_P): New macro.
31480 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
31481 (MULTILIB_DIRNAMES): Likewise.
31483 2013-02-25 Tom de Vries <tom@codesourcery.com>
31485 PR rtl-optimization/56131
31486 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
31487 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
31488 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
31490 2013-02-25 Tobias Burnus <burnus@net-b.de>
31492 * doc/invoke.texi (-fsanitize=): Move from optimization
31493 to debugging options.
31495 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
31497 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
31499 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
31500 Alexander Monakov <amonakov@ispras.ru>
31502 PR middle-end/56077
31503 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
31504 flush pending lists also on non-jumps. Adjust comment.
31506 2013-02-24 Catherine Moore <clm@codesourcery.com>
31507 Maciej W. Rozycki <macro@codesourcery.com>
31508 Tom de Vries <tom@codesourcery.com>
31509 Nathan Sidwell <nathan@codesourcery.com>
31510 Iain Sandoe <iain@codesourcery.com>
31511 Nathan Froyd <froydnj@codesourcery.com>
31512 Chao-ying Fu <fu@mips.com>
31514 * doc/extend.texi: (micromips, nomicromips, nocompression):
31515 Document new function attributes.
31516 * doc/invoke.texi (minterlink-compressed, mmicromips,
31517 m14k, m14ke, m14kec): Document new options.
31518 (minterlink-mips16): Update documentation.
31519 * doc/md.texi (ZC, ZD): Document new constraints.
31520 * configure.ac (gcc_cv_as_micromips): Check if linker
31521 supports the .set micromips directive.
31522 * configure: Regenerate.
31523 * config.in: Regenerate.
31524 * config/mips/mips-tables.opt: Regenerate.
31525 * config/mips/micromips.md: New file.
31526 * constraints.md (ZC, AD): New constraints.
31527 * config/mips/predicates.md (movep_src_register): New predicate.
31528 (movep_src_operand): New predicate.
31529 (non_volatile_mem_operand): New predicate.
31530 * config/mips/mips.md (multimem): New type.
31531 (length): Differentiate between 17-bit and 18-bit branch offsets.
31532 (MOVEP1, MOVEP2): New mode iterator.
31533 (mov_<load>l): Use ZC constraint.
31534 (mov_<load>r): Likewise.
31535 (mov_<store>l): Likewise.
31536 (mov_<store>r): Likewise.
31537 (*branch_equality<mode>_inverted): Add microMIPS support.
31538 (*branch_equality<mode>): Likewise.
31539 (*jump_absolute): Likewise.
31540 (indirect_jump_<mode>): Likewise.
31541 (tablejump_<mode>): Likewise.
31542 (<optab>_internal): Likewise.
31543 (sibcall_internal): Likewise.
31544 (sibcall_value_internal): Likewise.
31545 (prefetch): Use constraint ZD.
31546 * config/mips/mips.opt (minterlink-compressed): New option.
31547 (minterlink-mips16): Now an alias for minterlink-compressed.
31548 (mmicromips): New option.
31549 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
31550 (compare_and_swap_12): Likewise.
31551 (sync_add<mode>): Likewise.
31552 (sync_<optab>_12): Likewise.
31553 (sync_old_<optab>_12): Likewise.
31554 (sync_new_<optab>_12): Likewise.
31555 (sync_nand_12): Likewise.
31556 (sync_old_nand_12): Likewise.
31557 (sync_new_nand_12): Likewise.
31558 (sync_sub<mode>): Likewise.
31559 (sync_old_add<mode>): Likewise.
31560 (sync_old_sub<mode>): Likewise.
31561 (sync_new_add<mode>): Likewise.
31562 (sync_new_sub<mode>): Likewise.
31563 (sync_<optab><mode>): Likewise.
31564 (sync_old_<optab><mode>): Likewise.
31565 (sync_new_<optab><mode>): Likewise.
31566 (sync_nand<mode>): Likewise.
31567 (sync_old_nand<mode>): Likewise.
31568 (sync_new_nand<mode>): Likewise.
31569 (sync_lock_test_and_set<mode>): Likewise.
31570 (test_and_set_12): Likewise.
31571 (atomic_compare_and_swap<mode>): Likewise.
31572 (atomic_exchange<mode>_llsc): Likewise.
31573 (atomic_fetch_add<mode>_llsc): Likewise.
31574 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
31575 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
31576 (umips_save_restore_pattern_p): Likewise.
31577 (umips_load_store_pair_p): Likewise.
31578 (umips_output_load_store_pair): Likewise.
31579 (umips_movep_target_p): Likewise.
31580 (umips_12bit_offset_address_p): Likewise.
31581 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
31582 (mips_base_mips16): Rename this...
31583 (mips_base_compression_flags): ...to this. Update all uses.
31584 (mips_attribute_table): Add micromips, nomicromips and nocompression.
31585 (mips_mips16_decl_p): Delete.
31586 (mips_nomips16_decl_p): Delete.
31587 (mips_get_compress_on_flags): New function.
31588 (mips_get_compress_off_flags): New function.
31589 (mips_get_compress_mode): New function.
31590 (mips_get_compress_on_name): New function.
31591 (mips_get_compress_off_name): New function.
31592 (mips_insert_attributes): Support multiple compression types.
31593 (mips_merge_decl_attributes): Likewise.
31594 (umips_12bit_offset_address_p): New function.
31595 (mips_start_function_definition): Emit .set micromips directive.
31596 (mips_call_may_need_jalx_p): New function.
31597 (mips_function_ok_for_sibcall): Add microMIPS support.
31598 (mips_print_operand_punctuation): Support short delay slots and
31600 (umips_swm_mask, umips_swm_encoding): New.
31601 (umips_build_save_restore): New function.
31602 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
31603 (was_mips16_p): Remove.
31604 (old_compression_mode): New.
31605 (mips_set_compression_mode): New function.
31606 (mips_set_current_function): Add microMIPS support.
31607 (mips_option_override): Likewise.
31608 (umips_save_restore_pattern_p): New function.
31609 (umips_output_save_restore): New function.
31610 (umips_load_store_pair_p_1): New function.
31611 (umips_load_store_pair_p): New function.
31612 (umips_output_load_store_pair_1): New function.
31613 (umips_output_load_store_pair): New function.
31614 (umips_movep_target_p) New function.
31615 (mips_prepare_pch_save): Add microMIPS support.
31616 * config/mips/mips.h (TARGET_COMPRESSION): New.
31617 (TARGET_CPU_CPP_BUILTINS): Update macro
31618 to use new compression flags and to support microMIPS.
31619 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
31620 (MIPS_ARCH_FLOAT_SPEC): Likewise.
31621 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
31622 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
31623 (ASM_SPEC): Support mmicromips and mno-micromips.
31624 (M16STORE_REG_P): New macro.
31625 (MIPS_CALL): Support TARGET_MICROMIPS.
31626 (MICROMIPS_J): New macro.
31627 (mips_base_mips16): Rename this...
31628 (mips_base_compression_flags): ...to this.
31629 (UMIPS_12BIT_OFFSET_P): New macro.
31630 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
31631 (MULTILIB_DIRNAMES): Likewise.
31633 2013-02-24 Jakub Jelinek <jakub@redhat.com>
31636 * target-globals.c (save_target_globals): For init_reg_sets and
31637 target_reinit remporarily set this_fn_optabs to this_target_optabs.
31639 2013-02-22 James Greenhalgh <james.greenhalgh@arm.com>
31641 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
31642 * config/aarch64/t-aarch64
31643 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
31645 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
31647 PR inline-asm/56148
31648 * lra-constraints.c (process_alt_operands): Reload operand
31649 conflicting with earlier clobber only if no more other conflicting
31652 2013-02-22 Jakub Jelinek <jakub@redhat.com>
31655 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
31656 if not linking a shared library.
31658 2013-02-22 Seth LaForge <sethml@google.com>
31660 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
31662 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
31664 * config/arm/arm.md (split for extendsidi): Update condition.
31665 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
31666 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
31667 (qhs_zextenddi_cstr): Likewise.
31669 2013-02-21 Jakub Jelinek <jakub@redhat.com>
31671 PR middle-end/56420
31672 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
31673 avoid signed wrapping.
31674 (expand_mult): Handle properly multiplication by
31675 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
31676 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
31677 in the compiler if coeff is HOST_WIDE_INT_MIN.
31678 (expand_divmod): Don't make ext_op1 static, change it's type to
31679 uhwi. Avoid undefined behavior in -INTVAL (op1).
31681 PR rtl-optimization/50339
31682 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
31684 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
31685 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
31686 into splitting_ashiftrt field.
31687 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
31689 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
31692 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
31694 PR middle-end/56108
31695 * trans-mem.c (execute_tm_mark): Do not expand transactions that
31696 are sure to go irrevocable.
31698 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
31700 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
31701 scalars are valid operands.
31703 2013-02-21 Martin Jambor <mjambor@suse.cz>
31705 PR tree-optimization/56310
31706 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
31707 only matching indices and non-negative final offsets.
31708 (intersect_aggregates_with_edge): Pass src_idx to
31709 agg_replacements_to_vector. Pass src_idx insstead of index to
31710 intersect_with_agg_replacements.
31712 2013-02-21 Martin Jambor <mjambor@suse.cz>
31714 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
31715 instead of hard-wired defaults.
31717 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
31719 * doc/invoke.texi (MIPS Options): Update documentation of the
31720 floating-point multiply-accumulate instruction restrictions.
31722 2013-02-21 Kostya Serebryany <kcc@google.com>
31724 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
31725 asan_shadow_offset on x86_64 linux.
31727 2013-02-21 Richard Biener <rguenther@suse.de>
31729 PR tree-optimization/56415
31731 2013-02-11 Richard Biener <rguenther@suse.de>
31733 PR tree-optimization/56273
31734 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
31737 2013-02-21 Jakub Jelinek <jakub@redhat.com>
31740 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
31743 PR inline-asm/56405
31744 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
31745 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
31747 2013-02-20 Jan Hubicka <jh@suse.cz>
31749 PR tree-optimization/56265
31750 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
31751 when target is referenced for first time.
31753 2013-02-20 Richard Biener <rguenther@suse.de>
31755 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
31756 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
31757 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
31758 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
31759 not return anything.
31760 (rename_ssa_copies): Do not remove unused locals.
31761 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
31762 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
31763 * passes.c (execute_function_todo): Do not schedule unused locals
31764 removal if cleanup_tree_cfg did something.
31765 * tree-ssa-live.c (remove_unused_locals): Dump statistics
31766 about the number of removed locals.
31768 2013-02-20 Richard Biener <rguenther@suse.de>
31770 PR tree-optimization/56398
31771 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
31773 2013-02-20 Martin Jambor <mjambor@suse.cz>
31775 PR tree-optimization/55334
31776 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
31777 restricted pointers to arrays.
31779 2013-02-20 Richard Biener <rguenther@suse.de>
31780 Jakub Jelinek <jakub@redhat.com>
31782 PR tree-optimization/56396
31783 * tree-ssa-ccp.c (n_const_val): New static variable.
31784 (get_value): Return NULL for SSA names we don't have a lattice
31786 (ccp_initialize): Initialize n_const_val.
31787 * tree-ssa-copy.c (n_copy_of): New static variable.
31788 (init_copy_prop): Initialize n_copy_of.
31789 (get_value): Return NULL_TREE for SSA names we don't have a
31792 2013-02-20 Martin Jambor <mjambor@suse.cz>
31794 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
31796 2013-02-20 Richard Biener <rguenther@suse.de>
31798 * genpreds.c (write_lookup_constraint): Do not compare first
31799 letter of the constraint again.
31801 2013-02-20 Richard Biener <rguenther@suse.de>
31803 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
31805 (get_use_iv_cost): Terminate hashtable walk when coming across
31808 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
31810 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
31811 reassociation for avx2 targets.
31813 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
31815 * config/microblaze/microblaze.c: microblaze_has_clz = 0
31816 Add version check for v8.10.a to enable microblaze_has_clz
31817 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
31818 version and TARGET_PATTERN_COMPARE check
31819 * config/microblaze/microblaze.md: New clzsi2 instruction
31821 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
31823 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
31824 function before branching.
31826 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
31828 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
31830 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
31832 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
31834 PR middle-end/55889
31835 * sel-sched.c: Include ira.h.
31836 (implicit_clobber_conflict_p): New function.
31837 (moveup_expr): Use it.
31838 * Makefile.in (sel-sched.o): Depend on ira.h.
31840 2013-02-19 Richard Biener <rguenther@suse.de>
31842 PR tree-optimization/56384
31843 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
31844 (vn_hash_type): Split out from ...
31845 (vn_hash_constant_with_type): ... here.
31846 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
31847 (vn_phi_eq): Compare types from vn_phi_s structure.
31848 (vn_phi_lookup): Populate vn_phi_s type.
31849 (vn_phi_insert): Likewise.
31851 2013-02-19 Jakub Jelinek <jakub@redhat.com>
31853 PR tree-optimization/56350
31854 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
31855 if haven't found reduction or nested cycle operand, rather than
31856 asserting we must find it.
31858 PR tree-optimization/56381
31859 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
31862 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
31863 Jakub Jelinek <jakub@redhat.com>
31866 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
31867 (swap_optab_enable): Same.
31868 (init_all_optabs): Use argument instead of global.
31869 * tree.h (struct tree_optimization_option): New field target_optabs.
31870 * expr.h (init_all_optabs): Add argument to prototype.
31871 (TREE_OPTIMIZATION_OPTABS): New.
31872 (save_optabs_if_changed): Protoize.
31873 * optabs.h: Declare this_fn_optabs.
31874 * optabs.c (save_optabs_if_changed): New.
31875 Declare this_fn_optabs.
31876 (init_optabs): Add argument to init_all_optabs() call.
31877 * function.c (invoke_set_current_function_hook): Handle per
31879 * function.h (struct function): New field optabs.
31880 * config/mips/mips.c (mips_set_mips16_mode): Handle when
31881 optimization_current_node has changed.
31882 * target-globals.h (save_target_globals_default_opts): Protoize.
31883 * target-globals.c (save_target_globals_default_opts): New.
31885 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31888 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
31889 registers %fr12 and %fr12R as call used.
31892 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
31893 and HImode, require all displacements to be an integer multiple of
31895 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
31896 only allow QImode and HImode when reload is in progress and strict is
31897 true. Likewise for symbolic addresses. Use base14_operand to check
31898 displacements in REG+BASE addresses.
31900 2013-02-18 Richard Biener <rguenther@suse.de>
31902 PR tree-optimization/56366
31903 * tree-vect-loop.c (get_initial_def_for_induction): Properly
31904 handle sign-conversion of outer-loop initial induction value.
31906 2013-02-18 Richard Biener <rguenther@suse.de>
31908 PR middle-end/56349
31909 * cfghooks.c (merge_blocks): If we merge a latch into another
31910 block adjust references to it.
31911 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
31912 (verify_loop_structure): Verify that a recorded latch is in fact
31915 2013-02-18 Richard Biener <rguenther@suse.de>
31917 PR tree-optimization/56321
31918 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
31919 order SSA name release and virtual operand unlinking.
31921 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
31923 * config/microblaze/microblaze.md (save_stack_block): Define.
31924 (restore_stack_block): Likewise.
31926 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
31928 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
31929 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
31930 * config/microblaze/microblaze.c (microblaze_option_override):
31931 Bail out early for PIC modes when target does not support PIC.
31933 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
31935 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
31936 Replace with a microblaze version.
31937 (microblaze_trampoline_init): Adapt for microblaze.
31938 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
31941 2013-02-16 Jakub Jelinek <jakub@redhat.com>
31942 Dodji Seketeli <dodji@redhat.com>
31945 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
31946 (instrument_mem_region_access): Do not forget to always put
31947 instrumentation of the of 'base' and 'base + len' in a "if (len !=
31948 0) statement, even for cases where either 'base' or 'base + len'
31949 are not instrumented -- because they have been previously
31950 instrumented. Simplify the logic by putting all the statements
31951 instrument 'base + len' inside a sequence, and then insert that
31952 sequence right before the current insertion point. Then, to
31953 instrument 'base + len', just get an iterator on that statement.
31954 And do not forget to update the pointer to iterator the function
31955 received as argument.
31957 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
31959 PR rtl-optimization/56348
31960 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
31962 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
31964 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
31965 (clean_graph_dump_file): Pass base to start_graph_dump.
31967 2013-02-14 Richard Henderson <rth@redhat.com>
31970 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
31972 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
31974 * collect2-aix.h: Define F_LOADONLY.
31976 2013-02-14 Richard Biener <rguenther@suse.de>
31979 * varasm.c (output_constant_def_1): Get the decl representing
31980 the constant as argument.
31981 (output_constant_def): Wrap output_constant_def_1.
31982 (make_decl_rtl): Use output_constant_def_1 with the decl
31983 representing the constant.
31984 (build_constant_desc): Optionally re-use a decl already
31985 representing the constant.
31986 (tree_output_constant_def): Adjust.
31988 2013-02-14 Dodji Seketeli <dodji@redhat.com>
31991 * asan.c (instrument_builtin_call): Really put the length of the
31992 second source argument into src1_len.
31994 2013-02-13 Jakub Jelinek <jakub@redhat.com>
31996 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
31997 argument. If it is false, don't create edge from then_bb to
31999 (insert_if_then_before_iter): Pass true to it.
32000 (build_check_stmt): Pass false to it.
32001 (transform_statements): Flush hash table only on extended basic
32002 block boundaries, rather than at the beginning of every bb.
32003 Don't flush hash table on nonfreeing_call_p calls.
32004 * tree-flow.h (nonfreeing_call_p): New prototype.
32005 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
32007 2013-02-13 David S. Miller <davem@davemloft.net>
32009 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
32011 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
32014 * ira.c (max_regno_before_ira): Move from ...
32016 (fix_reg_equiv_init): Use max_regno_before_ira instead of
32019 2013-02-13 Jakub Jelinek <jakub@redhat.com>
32021 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
32023 2013-02-13 Richard Biener <rguenther@suse.de>
32026 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
32027 globals in MEM_REFs.
32029 2013-02-13 Richard Biener <rguenther@suse.de>
32031 * loop-init.c (loop_optimizer_init): Clear loop state when
32032 re-initializing preserved loops.
32033 * loop-unswitch.c (unswitch_single_loop): Return whether
32034 we unswitched the loop. Do not verify loop state here.
32035 (unswitch_loops): When we unswitched a loop discover new loops.
32037 2013-02-13 Kostya Serebryany <kcc@google.com>
32039 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
32041 * sanitizer.def: Rename __asan_init to __asan_init_v1.
32043 2013-02-12 Dodji Seketeli <dodji@redhat.com>
32045 Avoid instrumenting duplicated memory access in the same basic block
32046 * Makefile.in (asan.o): Add new dependency on hash-table.h
32047 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
32048 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
32049 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
32050 (free_mem_ref_resources, has_mem_ref_been_instrumented)
32051 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
32052 (get_mem_ref_of_assignment): New functions.
32053 (get_mem_refs_of_builtin_call): Extract from
32054 instrument_builtin_call and tweak a little bit to make it fit with
32056 (instrument_builtin_call): Use the new
32057 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
32058 of is_gimple_builtin_call.
32059 (instrument_derefs, instrument_mem_region_access): Insert the
32060 instrumented memory reference into the hash table.
32061 (maybe_instrument_assignment): Renamed instrument_assignment into
32062 this, and change it to advance the iterator when instrumentation
32063 actually happened and return true in that case. This makes it
32064 homogeneous with maybe_instrument_assignment, and thus give a
32065 chance to callers to be more 'regular'.
32066 (transform_statements): Clear the memory reference hash table
32067 whenever we enter a new BB, when we cross a function call, or when
32068 we are done transforming statements. Use
32069 maybe_instrument_assignment instead of instrumentation. No more
32070 need to special case maybe_instrument_assignment and advance the
32071 iterator after calling it; it's now handled just like
32072 maybe_instrument_call. Update comment.
32074 2013-02-13 Richard Biener <rguenther@suse.de>
32076 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
32077 Fix loop discovery code.
32079 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
32081 PR inline-asm/56148
32082 * lra-constraints.c (process_alt_operands): Match early clobber
32083 operand with itself. Check conflicts with earlyclobber only if
32084 the operand is not reloaded. Prefer to reload conflicting operand
32085 if earlyclobber and matching operands are the same.
32087 2013-02-12 Richard Biener <rguenther@suse.de>
32090 * lto-streamer-out.c (write_symbol): Do not output symbols
32091 for hard register variables.
32093 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
32096 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
32097 (umulsidi3_insn, mulsidi3_insn): New insns.
32099 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
32101 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
32102 (struct tune_params): Add vec_costs field.
32103 * config/arm/arm.c (arm_builtin_vectorization_cost)
32104 (arm_add_stmt_cost): New functions.
32105 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
32106 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
32107 (arm_default_vec_cost): New struct of type cpu_vec_costs.
32108 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
32109 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
32110 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
32111 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
32113 2013-02-12 Richard Biener <rguenther@suse.de>
32116 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
32117 decls again if possible.
32119 2013-02-12 Richard Biener <rguenther@suse.de>
32121 PR middle-end/56288
32122 * tree-ssa.c (verify_ssa_name): Fix check, move
32123 SSA_NAME_IN_FREE_LIST check up.
32125 2013-02-12 Jakub Jelinek <jakub@redhat.com>
32126 Steven Bosscher <steven@gcc.gnu.org>
32128 PR rtl-optimization/56151
32129 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
32130 equal to op0 or op1, and last_insn pattern is CODE operation
32131 with MEM dest and one of the operands matches that MEM.
32133 2013-02-11 Sriraman Tallam <tmsriram@google.com>
32135 * doc/extend.texi: Document Function Multiversioning and "default"
32136 parameter string to target attribute.
32137 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
32138 target attribute parameter is "default".
32139 (ix86_compare_version_priority): Remove checks for target attribute.
32140 (ix86_mangle_function_version_assembler_name): Change error to sorry.
32141 Remove check for target attribute equal to NULL. Add assert.
32142 (ix86_generate_version_dispatcher_body): Change error to sorry.
32144 2013-02-11 Iain Sandoe <iain@codesourcery.com>
32145 Jack Howarth <howarth@bromo.med.uc.edu>
32146 Patrick Marlier <patrick.marlier@gmail.com>
32149 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
32150 define ENDFILE_SPEC as TM_DESTRUCTOR.
32151 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
32153 2013-02-11 Alexander Potapenko <glider@google.com>
32154 Jack Howarth <howarth@bromo.med.uc.edu>
32155 Jakub Jelinek <jakub@redhat.com>
32158 * config/darwin.c (cdtor_record): Rename ctor_record.
32159 (sort_cdtor_records): Rename sort_ctor_records.
32160 (finalize_dtors): New routine to sort destructors by
32161 priority before use in assemble_integer.
32162 (machopic_asm_out_destructor): Use finalize_dtors if needed.
32164 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
32166 PR rtl-optimization/56275
32167 * simplify-rtx.c (avoid_constant_pool_reference): Check that
32168 offset is non-negative and less than cmode size before
32169 calling simplify_subreg.
32171 2013-02-11 Richard Biener <rguenther@suse.de>
32173 PR tree-optimization/56264
32174 * cfgloop.h (fix_loop_structure): Adjust prototype.
32175 * loop-init.c (fix_loop_structure): Return the number of
32176 newly discovered loops.
32177 * tree-cfgcleanup.c (repair_loop_structures): When new loops
32178 are discovered, do a full loop-closed SSA rewrite.
32180 2013-02-11 Richard Biener <rguenther@suse.de>
32182 PR tree-optimization/56273
32183 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
32185 (check_array_ref): Fix missing newline in dumps.
32186 (search_for_addr_array): Likewise.
32188 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
32190 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
32192 2013-02-09 Jakub Jelinek <jakub@redhat.com>
32195 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
32197 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
32199 PR rtl-optimization/56246
32200 * lra-constraints.c (simplify_operand_subreg): Try to reuse
32202 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
32203 constraints are satisfied.
32205 2013-02-08 Jeff Law <law@redhat.com>
32208 * emit-rtl.c (reg_is_parm_p): New function.
32209 * regs.h (reg_is_parm_p): New prototype.
32210 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
32211 callee-clobbered registers.
32213 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
32216 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
32217 If there is no implicit builtin declaration, just return NULL.
32219 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
32221 * config/i386/sse.md (FMAMODEM): New mode iterator.
32222 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
32223 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
32225 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
32227 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
32228 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
32229 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
32231 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
32233 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
32234 (microblaze*-*-elf): Likewise.
32235 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
32237 * config/microblaze/microblaze-c.c: Add builtin defines for
32238 _LITTLE_ENDIAN and _BIG_ENDIAN.
32239 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
32240 add to TARGET_DEFAULT flags.
32241 Expand ASM_SPEC and LINK_SPEC.
32242 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
32243 * config/microblaze/microblaze.md: Update extendsidi2 and
32244 movdi_internal instructions to use low-order / high-order reg
32246 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
32247 options and inversemask / mask of LITTLE_ENDIAN.
32248 * config/microblaze/t-microblaze: Expand multilib options to
32249 include mlittle-endian (le) and update exceptions patterns.
32251 2013-02-08 Jakub Jelinek <jakub@redhat.com>
32253 PR rtl-optimization/56195
32254 * lra-constraints.c (get_reload_reg): Don't reuse regs
32255 if they have smaller mode than requested, if they have
32256 wider mode than requested, try to return a SUBREG.
32258 PR tree-optimization/56250
32259 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
32260 if type is unsigned and code isn't MULT_EXPR.
32262 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
32264 PR tree-optimization/56064
32265 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
32266 bits according to mode.
32267 * fixed-value.h (fixed_from_double_int)
32268 (const_fixed_from_double_int): Adjust comments.
32270 2013-02-08 Richard Biener <rguenther@suse.de>
32273 * lto-streamer.h (struct data_in): Remove current_file, current_line
32274 and current_col members.
32275 * lto-streamer-out.c (lto_output_location): Stream changed bits
32276 en-block for efficiency.
32277 * lto-streamer-in.c (clear_line_info): Remove.
32278 (lto_input_location): Cache current file, line and column
32279 globally via local statics. Read changed bits en-block.
32280 (input_function): Do not call clear_line_info.
32281 (lto_read_body): Likewise.
32282 (lto_input_toplevel_asms): Likewise.
32284 2013-02-08 Michael Matz <matz@suse.de>
32286 PR tree-optimization/52448
32287 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
32288 (nt_call_phase): New static.
32289 (add_or_mark_expr): Only mark accesses with newer phase than any
32291 (nonfreeing_call_p): New.
32292 (nt_init_block): Update nt_call_phase, mark blocks as visited.
32293 (nt_fini_block): Keep blocks marked as visited.
32294 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
32296 2013-02-08 Richard Biener <rguenther@suse.de>
32298 * ira.c (ira): Free broken dominator information.
32300 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
32302 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
32304 2013-02-08 Marek Polacek <polacek@redhat.com>
32306 * cfgloop.c (verify_loop_structure): Add more checking of headers.
32308 2013-02-08 Richard Biener <rguenther@suse.de>
32310 PR middle-end/56181
32311 * cfgloop.h (flow_loops_find): Adjust.
32312 (bb_loop_header_p): Declare.
32313 * cfgloop.c (bb_loop_header_p): New function split out from ...
32314 (flow_loops_find): ... here. Adjust function signature,
32315 support incremental loop structure update.
32316 (verify_loop_structure): Cleanup. Verify a loop is a loop.
32317 * cfgloopmanip.c (fix_loop_structure): Move ...
32318 * loop-init.c (fix_loop_structure): ... here.
32319 (apply_loop_flags): Split out from ...
32320 (loop_optimizer_init): ... here.
32321 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
32322 in incremental mode, only remove dead loops here.
32324 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
32327 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
32328 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
32329 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
32330 (*round<mode>3.libgcc): New insns for fixed-modes.
32331 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
32332 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
32333 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
32334 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
32335 implementations. Define to __builtin_avr_absFX,
32336 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
32337 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
32338 __builtin_avr_countlsFX, respectively.
32339 * config/avr/avr-c.c (target.h): Include it.
32340 (enum avr_builtin_id): New enum.
32341 (avr_resolve_overloaded_builtin): New static function.
32342 (avr_register_target_pragmas): Use it to set
32343 targetm.resolve_overloaded_builtin.
32344 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
32345 tree nodes used by DEF_BUILTIN.
32346 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
32347 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
32348 <AVR_BUILTIN_xxBITS>: Same.
32350 2013-02-08 Richard Biener <rguenther@suse.de>
32352 * cfgloop.c (verify_loop_structure): Properly handle
32353 a loop exiting to another loop header.
32354 * ira-int.h (ira_loops): Remove.
32355 * ira.c (ira_loops): Remove.
32356 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
32357 (do_reload): Use loop_optimizer_finalize.
32358 * ira-build.c (create_loop_tree_nodes): Use get_loops and
32359 number_of_loops to access the loop tree.
32360 (more_one_region_p): Likewise.
32361 (finish_loop_tree_nodes): Likewise.
32362 (rebuild_regno_allocno_maps): Likewise.
32363 (mark_loops_for_removal): Likewise.
32364 (mark_all_loops_for_removal): Likewise.
32365 (remove_unnecessary_regions): Likewise.
32366 (ira_build): Likewise.
32367 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
32369 2013-02-08 Richard Biener <rguenther@suse.de>
32371 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
32372 * ipa-pure-const.c (analyze_function): Avoid calling
32373 mark_irreducible_loops twice.
32374 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
32376 2013-02-07 David S. Miller <davem@davemloft.net>
32378 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
32380 * var-tracking.c (vt_add_function_parameter): Test the presence of
32381 HAVE_window_save properly and do not remap argument registers when
32382 we have a leaf function.
32384 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
32387 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
32389 * config/i386/i386.c (ix86_print_operand): Ditto.
32391 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
32393 * lra-constraints.c (process_alt_operands): Fix recently added comment.
32395 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
32397 PR rtl-optimization/56225
32398 * lra-constraints.c (process_alt_operands): Check that reload hard
32399 reg can hold value for strict_low_part.
32401 2013-02-07 Jakub Jelinek <jakub@redhat.com>
32404 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
32405 dwarf2out_end_function.
32406 (in_first_function_p, maybe_at_text_label_p,
32407 first_loclabel_num_not_at_text_label): New variables.
32408 (dwarf2out_var_location): In the first function find out
32409 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
32410 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
32413 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
32415 PR rtl-optimization/56178
32416 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
32417 SUBREG of a register. Tidy up related block of code.
32418 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
32419 note if the source is a register or a SUBREG of a register.
32421 2013-02-07 Jakub Jelinek <jakub@redhat.com>
32424 * config/rs6000/rs6000.md (ptrm): New mode attr.
32425 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
32426 call_value_indirect_aix<pttrsize>,
32427 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
32430 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
32432 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
32433 if -bnortl. Convert to strcmp and strncmp.
32435 2013-02-07 Alan Modra <amodra@gmail.com>
32438 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
32439 addresses won't wrap when offsetting.
32440 (rs6000_secondary_reload): Provide secondary reloads needed for
32441 wrapping LO_SUM addresses.
32443 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
32445 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
32446 MACH, just __MACH__.
32448 2013-02-06 Richard Biener <rguenther@suse.de>
32450 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
32451 instead of calling fix_loop_structure.
32453 2013-02-06 Jakub Jelinek <jakub@redhat.com>
32455 PR middle-end/56217
32456 * omp-low.c (use_pointer_for_field): Return false if
32457 lower_send_shared_vars doesn't generate any copy-out code.
32459 2013-02-06 Tom de Vries <tom@codesourcery.com>
32461 PR rtl-optimization/56131
32462 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
32463 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
32464 of the label is NULL. Add comment.
32466 2013-02-05 Jakub Jelinek <jakub@redhat.com>
32468 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
32471 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
32472 (STATIC_LIBTSAN_LIBS): Likewise.
32473 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
32474 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
32475 is defined, don't add anything else beyond that.
32476 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
32477 (LINK_COMMAND_SPEC): Use them.
32479 PR tree-optimization/56205
32480 * tree-stdarg.c (check_all_va_list_escapes): Return true if
32481 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
32482 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
32484 2013-02-05 Richard Biener <rguenther@suse.de>
32486 PR tree-optimization/53342
32487 PR tree-optimization/53185
32488 * tree-vectorizer.h (vect_check_strided_load): Remove.
32489 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
32490 not disallow peeling for vectorized strided loads.
32491 (vect_check_strided_load): Make static and simplify.
32492 (vect_analyze_data_refs): Adjust.
32493 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
32494 correctly when vectorizing strided loads.
32496 2013-02-05 Richard Biener <rguenther@suse.de>
32498 * doc/install.texi: Refer to ISL, not PPL.
32500 2013-02-05 Jan Hubicka <jh@suse.cz>
32502 PR tree-optimization/55789
32503 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
32505 2013-02-05 Jan Hubicka <jh@suse.cz>
32507 PR tree-optimization/55789
32508 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
32509 the dead call anyway.
32511 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
32514 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
32516 2013-02-04 Alexander Potapenko <glider@google.com>
32517 Jack Howarth <howarth@bromo.med.uc.edu>
32518 Jakub Jelinek <jakub@redhat.com>
32521 * config/darwin.c (sort_ctor_records): Stabilized qsort
32522 on constructor priority by using original position.
32523 (finalize_ctors): New routine to sort constructors by
32524 priority before use in assemble_integer.
32525 (machopic_asm_out_constructor): Use finalize_ctors if needed.
32527 2013-02-04 Jakub Jelinek <jakub@redhat.com>
32530 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
32531 about visibility on artificial decls.
32532 * config/sol2.c (solaris_assemble_visibility): Likewise.
32534 2013-02-04 Kai Tietz <ktietz@redhat.com>
32537 * config/i386/i386.c (function_value_ms_64): Add additional valtype
32538 argument and improve checking of return-argument types for 16-byte
32540 (ix86_function_value_1): Add additional valtype argument on call
32541 of function_value_64.
32542 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
32543 handling infunction_value_64 function.
32545 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
32547 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
32549 2013-02-04 Richard Biener <rguenther@suse.de>
32551 PR tree-optimization/56188
32552 * tree-ssa-structalias.c (label_visit): Consider case with
32553 initially non-empty points-to set.
32554 (perform_var_substitution): Dump node mapping and clean up.
32556 2013-02-04 Richard Guenther <rguenther@suse.de>
32559 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
32560 node prevail as last resort.
32561 (lto_symtab_merge_decls): Remove guard on LTRANS here.
32562 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
32564 2013-02-04 Richard Biener <rguenther@suse.de>
32566 PR tree-optimization/56113
32567 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
32569 (equiv_class_lookup_or_add): ... this.
32570 (label_visit): Adjust and fix error in previous patch.
32571 (perform_var_substitution): Adjust.
32573 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
32575 * config/sh/divtab.c: Fix formatting and comments throughout the file.
32576 * config/sh/sh4-300.md: Likewise.
32577 * config/sh/sh4a.md: Likewise.
32578 * config/sh/constraints.md: Likewise.
32579 * config/sh/sh.md: Likewise.
32580 * config/sh/netbsd-elf.h: Likewise.
32581 * config/sh/predicates.md: Likewise.
32582 * config/sh/sh-protos.h: Likewise.
32583 * config/sh/ushmedia.h: Likewise.
32584 * config/sh/linux.h: Likewise.
32585 * config/sh/sh.c: Likewise.
32586 * config/sh/superh.h: Likewise.
32587 * config/sh/elf.h: Likewise.
32588 * config/sh/sh4.md: Likewise.
32589 * config/sh/sh.h: Likewise.
32591 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32593 * config/pa/constraints.md: Adjust unused letters. Change "T"
32594 constraint to match_test floating_point_store_memory_operand().
32595 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
32596 (base14_operand): New.
32597 (floating_point_store_memory_operand): New.
32598 (integer_store_memory_operand): Revise to use base14_operand and
32599 reg_plus_base_memory_operand.
32600 (move_dest_operand): Allow symbolic_memory_operands.
32601 (symbolic_memory_operand): Check for LO_SOM.
32602 (symbolic_operand): Change default case to break.
32603 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
32604 CONST_DOUBLE values to be reloaded by putting them into memory when
32605 the destination is a floating point register.
32606 (movdf): Remove code to handle CONST_DOUBLE.
32608 (reload_indf_r1): New.
32609 (reload_insf_r1): New.
32610 Consistently use "Q" and "T" constraints with integer and floating
32611 point move instructions, respectively.
32612 (movdi): Remove FAIL.
32613 Change predicate for source operand unamed DImode move from
32614 general_operand to move_src_operand.
32615 (umulsidi3): Change predicate for destination operand to
32617 Likewise for similar unamed patterns.
32618 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
32619 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
32620 (hppa_legitimize_address): Simplify mask calculation.
32621 (pa_emit_move_sequence): Revised handling of secondary reloads from
32622 REG+D addresses for floating point loads and stores. Directly handle
32623 loading CONST0_RTX (mode) to a floating point register.
32624 (pa_secondary_reload): Handle reloading DF and SFmode constant values
32625 to floating point registers. Don't restrict secondary reloads to
32626 floating point registers to integer modes. Revise some comments and
32628 (TARGET_LEGITIMATE_ADDRESS_P): Define.
32629 (pa_legitimate_address_p): New.
32630 (pa_legitimize_reload_address): New.
32631 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
32632 (STRICT_REG_OK_FOR_BASE_P): New.
32633 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
32634 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
32636 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
32637 Andrew Dixie <andrewd@gentrack.com>
32639 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
32642 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
32644 * expmed.c (extract_bit_field_1): Pass the full width of the
32645 structure to get_best_reg_extraction_insn.
32647 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
32650 * configure.ac (use_cxa_atexit): Add AIX.
32651 * configure: Regenerate.
32653 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
32655 2013-02-01 Jakub Jelinek <jakub@redhat.com>
32658 * final.c (need_profile_function): New variable.
32659 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
32660 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
32661 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
32662 notes, targetm.asm_out.function_prologue doesn't emit anything,
32663 HAVE_prologue and profiler should be emitted before prologue,
32664 set need_profile_function instead of emitting it.
32665 (final_scan_insn): If need_profile_function, emit
32666 profile_function on the first NOTE_INSN_BASIC_BLOCK or
32667 NOTE_INSN_FUNCTION_BEG note.
32669 2013-02-01 Richard Henderson <rth@redhat.com>
32671 * config/rs6000/rs6000.md (smulditi3): New.
32674 * config/alpha/alpha.md (umulditi3): New.
32676 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
32678 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
32679 (ASM_OUTPUT_ALIGNED_LOCAL): New.
32681 2013-02-01 Richard Biener <rguenther@suse.de>
32683 PR tree-optimization/56113
32684 * tree-ssa-structalias.c (label_visit): Reduce work for
32685 single-predecessor nodes.
32687 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
32689 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
32690 range isn't testing for zero.
32692 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
32694 PR middle-end/56113
32695 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
32697 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
32698 Nick Clifton <nickc@redhat.com>
32700 * config/v850/constraints.md (Q): Define as a memory constraint.
32701 * config/v850/predicates.md (label_ref_operand): New predicate.
32702 (e3v5_shift_operand): New predicate.
32703 (ior_operator): New predicate.
32704 * config/v850/t-v850: Add e3v5 multilib.
32705 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
32706 (v850_gen_movdi): Prototype.
32707 * config/v850/v850.c: Add support for e3v5 architecture.
32708 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
32710 (construct_save_jarl): Add e3v5 long JARL support.
32711 (v850_adjust_insn_length): New function. Adjust length of call
32712 insns when using e3v5 instructions.
32713 (v850_gen_movdi): New function: Generate instructions to move a
32715 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
32716 (CPP_SPEC): Define __v850e3v5__ as appropriate.
32717 (TARGET_USE_FPU): Enable for e3v5.
32718 (CONST_OK_FOR_W): New macro.
32719 (ADJUST_INSN_LENGTH): Define.
32720 * config/v850/v850.md (UNSPEC_LOOP): Define.
32721 (attr cpu): Add v850e3v5.
32722 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
32723 (movdi): New pattern.
32724 (movdi_internal): New pattern.
32725 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
32726 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
32727 (cstoresf4): Likewise.
32728 (cstoredf4): Likewise.
32729 (insv): New pattern.
32730 (rotlso3_a): New pattern.
32731 (rotlsi3_b): New pattern
32732 (rotlsi3_v850e3v5): New pattern.
32733 (doloop_begin): New pattern.
32734 (fix_loop_counter): New pattern.
32735 (doloop_end): New pattern.
32736 (branch_normal): Add e3v5 long branch support.
32737 (branch_invert): Likewise.
32738 (branch_z_normal): Likewise.
32739 (branch_z_invert): Likewise.
32740 (branch_nz_normal): Likewise.
32741 (branch_nz_invert): Likewise.
32742 (call_internal_short): Add e3v5 register-indirect JARL support.
32743 (call_internal_long): Likewise.
32744 (call_value_internal_short): Likewise.
32745 (call_value_internal_long): Likewise.
32746 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
32747 (mloop): New option.
32748 * config.gcc: Add support for configuring v840e3v5 target.
32749 * doc/invoke.texi: Document new v850 specific command line options.
32751 2013-01-31 Paul Koning <ni1d@arrl.net>
32755 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
32756 children if parent is a class.
32757 (prune_unused_types_prune): Don't add DW_AT_declaration.
32759 2013-01-31 Richard Biener <rguenther@suse.de>
32761 PR tree-optimization/56157
32762 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
32763 match up operand with SLP child.
32765 2013-01-31 Jason Merrill <jason@redhat.com>
32768 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
32769 parameters the first time.
32770 (gen_scheduled_generic_parms_dies): Check completeness here.
32772 2013-01-31 Richard Biener <rguenther@suse.de>
32774 PR middle-end/53073
32775 * common.opt (faggressive-loop-optimizations): New flag,
32776 enabled by default.
32777 * doc/invoke.texi (faggressive-loop-optimizations): Document.
32778 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
32779 infer_loop_bounds_from_undefined by it.
32781 2013-01-31 Richard Biener <rguenther@suse.de>
32783 PR tree-optimization/56150
32784 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
32785 visit virtual operands.
32786 (find_uses_to_rename_bb): Likewise.
32788 2013-01-31 Richard Biener <rguenther@suse.de>
32790 PR tree-optimization/56150
32791 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
32792 mixed store non-store stmts.
32794 2013-01-30 Jakub Jelinek <jakub@redhat.com>
32797 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
32798 LIBASAN_EARLY_SPEC is defined.
32799 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
32800 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
32802 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
32805 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
32806 invalid args instead of ICEing on it.
32807 (ix86_valid_target_attribute_tree): Return error_mark_node if
32808 ix86_valid_target_attribute_inner_p failed.
32809 (ix86_valid_target_attribute_p): Return false only if
32810 ix86_valid_target_attribute_tree returned error_mark_node. Allow
32811 target("default") attribute.
32812 (sorted_attr_string): Change argument from const char * to tree,
32813 merge in all target attribute arguments rather than just one.
32814 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
32815 instead of free. Avoid using strcat.
32816 (ix86_mangle_function_version_assembler_name): Mangle
32817 target("default") as if no target attribute is present. Adjust
32818 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
32819 instead of xmalloc and XDELETEVEC instead of free.
32820 (ix86_function_versions): Don't return true if one of the decls
32821 doesn't have target attribute. If they don't and one of the decls
32822 is DECL_FUNCTION_VERSIONED, report an error. Adjust
32823 sorted_attr_string caller. Use XDELETEVEC instead of free.
32824 (ix86_supports_function_versions): Remove.
32825 (make_name): Fix up formatting.
32826 (make_dispatcher_decl): Remove resolver_name and its initialization.
32827 Avoid leaking memory.
32828 (is_function_default_version): Return true if there is
32829 target("default") attribute rather than no target attribute at all.
32830 (make_resolver_func): Avoid leaking memory.
32831 (ix86_generate_version_dispatcher_body): Likewise.
32832 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
32833 * target.def (supports_function_versions): Remove.
32834 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
32835 * doc/tm.texi: Regenerated.
32837 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
32839 PR rtl-optimization/56144
32840 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
32841 for values with side effects.
32843 2013-01-30 Richard Biener <rguenther@suse.de>
32845 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
32846 (sparseset_pop): Likewise.
32847 * cfganal.c (compute_idf): Likewise. Increase work-stack size
32848 to be able to use quick_push in the worker loop.
32850 2013-01-30 Marek Polacek <polacek@redhat.com>
32852 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
32854 2013-01-30 Richard Biener <rguenther@suse.de>
32857 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
32859 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
32861 PR tree-optimization/56064
32862 * fixed-value.c (fixed_from_double_int): New function.
32863 * fixed-value.h (fixed_from_double_int): New prototype.
32864 (const_fixed_from_double_int): New static inline function.
32865 * fold-const.c (native_interpret_fixed): New static function.
32866 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
32867 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
32868 (native_encode_fixed): New static function.
32869 (native_encode_expr) <FIXED_CST>: Use it.
32870 (native_interpret_int): Move double_int worker code to...
32871 * double-int.c (double_int::from_buffer): ...this new static method.
32872 * double-int.h (double_int::from_buffer): Prototype it.
32874 2013-01-30 Richard Biener <rguenther@suse.de>
32876 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
32877 New pointer-map and obstack.
32878 (init_alias_vars): Allocate pointer-map and obstack.
32879 (delete_points_to_sets): Free them.
32880 (find_what_var_points_to): Cache result.
32881 (find_what_p_points_to): Adjust for changed interface of
32882 find_what_var_points_to.
32883 (compute_points_to_sets): Likewise.
32884 (ipa_pta_execute): Likewise.
32886 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32888 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
32889 * configure: Regenerate.
32890 * config.in: Regenerate.
32891 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
32892 #nobits/#progbits if supported.
32894 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
32897 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
32898 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
32899 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
32901 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
32903 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
32904 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
32906 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
32908 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
32909 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
32911 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
32913 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
32915 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
32916 * config/arm/cortex-a7.md: New bypasses using
32917 arm_mac_accumulator_is_result.
32919 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
32921 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
32922 (cortex_a7_neon_mla): Likewise.
32923 (cortex_a7_fpfmad): New reservation.
32924 (cortex_a7_fpmacs): Use ffmas and update required units.
32925 (cortex_a7_fpmuld): Update required units and latency.
32926 (cortex_a7_fpmacd): Likewise.
32927 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
32928 (cortex_a7_neon). Likewise.
32929 (bypass) Update participating units.
32931 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
32933 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
32934 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
32936 * config/arm/vfp11.md (vfp_farith): Use ffmas.
32937 (vfp_fmul): Use ffmad.
32938 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
32939 (cortex_r4_fmacd): Use ffmad.
32940 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
32941 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
32942 (cortex_a9_fmacd): Use ffmad.
32943 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
32944 (cortex_a8_vfp_macd): Use ffmad.
32945 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
32946 (cortex_a5_fpmacd): Use ffmad.
32947 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
32948 (cortex_a15_vfp_macd): Use ffmad.
32949 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
32951 2013-01-29 Jason Merrill <jason@redhat.com>
32954 * varasm.c (default_assemble_visibility): Don't warn about
32955 visibility on artificial decls.
32957 2013-01-29 Richard Biener <rguenther@suse.de>
32959 PR tree-optimization/56113
32960 * tree-ssa-structalias.c (equiv_class_lookup): Also return
32962 (label_visit): Free duplicate bitmaps and record the leader instead.
32963 (perform_var_substitution): Adjust.
32965 2013-01-29 Richard Biener <rguenther@suse.de>
32967 PR tree-optimization/55270
32968 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
32969 the CFG, schedule loops for fixup.
32971 2013-01-29 Nick Clifton <nickc@redhat.com>
32973 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
32976 2013-01-28 Leif Ekblad <leif@rdos.net>
32978 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
32979 * config/i386/i386.h (TARGET_RDOS): New macro.
32980 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
32981 * config/i386/i386.c (ix86_option_override_internal): For 64bit
32982 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
32983 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
32984 DEFAULT_LARGE_SECTION_THRESHOLD.
32985 * config/i386/i386.md (R14_REG, R15_REG): New constants.
32986 * config/i386/rdos.h: New file.
32987 * config/i386/rdos64.h: New file.
32989 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
32992 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
32995 2013-01-28 Jakub Jelinek <jakub@redhat.com>
32997 PR rtl-optimization/56117
32998 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
32999 call cselib_lookup_from_insn on the MEM before calling
33000 add_insn_mem_dependence.
33002 2013-01-28 Richard Biener <rguenther@suse.de>
33004 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
33005 to a stmt that didn't have one.
33006 (copy_phis_for_bb): Likewise for PHI arguments.
33007 (copy_debug_stmt): Likewise for debug stmts.
33009 2013-01-28 Richard Biener <rguenther@suse.de>
33011 PR tree-optimization/56034
33012 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
33013 (partition_builtin_p): Adjust.
33014 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
33015 it is the last partition.
33016 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
33017 up the vertex for the definition.
33018 (classify_partition): Classify whether a partition is a
33019 PKIND_REDUCTION, thus has uses outside of the loop.
33020 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
33021 Merge all PKIND_REDUCTION partitions into the last partition.
33022 (tree_loop_distribution): Seed partitions from reductions as well.
33024 2013-01-28 Jakub Jelinek <jakub@redhat.com>
33026 PR tree-optimization/56125
33027 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
33028 pow(x,c) into sqrt(x) * powi(x, n/2) or
33029 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
33030 optimizing for size.
33031 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
33032 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
33035 PR tree-optimization/56094
33036 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
33037 to UNKNOWN_LOCATION while gimplifying expr.
33039 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
33042 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
33043 operand 0 in movabs insn template for -masm=intel asm alternative.
33044 (*movabs<mode>_2): Ditto for operand 1.
33046 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
33049 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
33052 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
33054 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
33057 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
33059 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
33060 Undef to avoid warning.
33062 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
33064 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
33065 * configure: Regenerate.
33067 2013-01-25 Jakub Jelinek <jakub@redhat.com>
33069 PR tree-optimization/56098
33070 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
33071 for stmts with volatile ops.
33072 (cond_store_replacement): Don't optimize if assign has volatile ops.
33073 (cond_if_else_store_replacement_1): Don't optimize if either
33074 then_assign or else_assign have volatile ops.
33075 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
33078 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
33080 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
33082 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
33084 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
33085 missing ':' in asm example.
33087 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
33089 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
33090 entries into lane and laneq entries.
33091 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
33092 Remove AdvSIMD scalar modes.
33093 (aarch64_sq<r>dmulh_laneq<mode>): New.
33094 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
33096 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
33097 builtin implementations to relfect changes in RTL in aarch64-simd.md.
33098 * config/aarch64/iterators.md (VCOND): New.
33101 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
33104 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
33105 Add NULL LIBNAME argument to existing definitions.
33106 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
33107 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
33108 * config/avr/avr.c (DEF_BUILTIN): Same.
33109 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
33110 (avr_expand_builtin): Expand to a vanilla call if a libgcc
33111 implementation is available (DECL_ASSEMBLER_NAME is set).
33112 (avr_fold_absfx): New static function.
33113 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
33114 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
33115 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
33116 AVR_BUILTIN_ABSLLK.
33117 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
33118 (abshk, absk, abslk, absllk): Provide as static inline functions.
33120 2013-01-25 Marek Polacek <polacek@redhat.com>
33122 PR tree-optimization/56035
33123 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
33125 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
33127 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
33128 (*movtf_internal_rex64): Add (!o,C) alternative
33129 (*movxf_internal_rex64): Ditto.
33130 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
33132 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
33134 * doc/invoke.texi: fix typo.
33135 * doc/objc.texi: fix typo.
33137 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
33139 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
33140 for the first two alternatives.
33142 2013-01-24 Diego Novillo <dnovillo@google.com>
33144 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
33145 (ggc-zone.o): Remove.
33146 * configure.ac: Remove option --with-gc.
33147 * configure: Re-generate.
33148 * doc/install.texi: Remove documentation for --with-gc.
33149 * gengtype.c (write_enum_defn): Remove. Update all users.
33150 (write_Types_process_field): Remove generation of gt_e_* argument.
33151 (output_type_enum): Remove. Update all users.
33152 (write_enum_defn): Remove. Update all users.
33153 (enum alloc_zone): Remove. Update all users.
33154 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
33155 * ggc-common.c (ggc_splay_alloc): Remove first argument.
33156 Update all callers.
33157 (struct ptr_data): Remove field TYPE. Update all users.
33158 (gt_pch_note_object): Remove argument TYPE. Update all users.
33159 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
33161 * ggc-none.c (ggc_alloc_typed_stat): Remove.
33162 (struct alloc_zone): Remove.
33163 (ggc_internal_alloc_zone_stat): Remove.
33164 (ggc_internal_cleared_alloc_zone_stat): Remove.
33165 * ggc-page.c (ggc_alloc_typed_stat): Remove.
33166 (ggc_pch_count_object): Remove last argument. Update all users.
33167 (ggc_pch_alloc_object): Remove last argument. Update all users.
33168 (struct alloc_zone): Remove.
33169 * ggc-zone.c: Remove.
33170 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
33171 (struct alloc_zone): Remove.
33172 (ggc_alloc_typed_stat): Remove.
33173 (ggc_alloc_typed): Remove.
33174 (ggc_splay_alloc): Remove first argument.
33175 (rtl_zone): Remove. Update all users.
33176 (tree_zone): Remove. Update all users.
33177 (tree_id_zone): Remove. Update all users.
33178 (ggc_internal_zone_alloc_stat): Remove. Update all users.
33179 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
33180 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
33181 * tree-ssanames.c: Remove references to zone allocator in comments.
33183 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
33185 * config/avr/avr.c (avr_out_fract): Make register numbers that
33186 might be outside of source operand signed.
33188 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
33190 * config/i386/constraints.md (Yf): New constraint.
33191 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
33192 of f constraint to conditionaly disable x87 register preferences.
33193 (*movdf_internal): Ditto.
33194 (*movsf_internal): Ditto.
33196 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
33198 PR inline-asm/55934
33199 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
33200 that have operands with impossible constraints.
33201 Add a FIXME for a speed-up opportunity.
33202 * lra-constraints.c (process_alt_operands): Verify that a class
33203 selected from constraints on asms is valid for the operand mode.
33204 (curr_insn_transform): Remove incorrect comment.
33206 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
33208 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
33209 TOC operand is a valid symbol ref in the constant pool.
33211 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
33213 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
33215 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
33218 * config/avr/stdfix.h: New file.
33219 * t-avr (stdfix-gcc.h): New rule to build it.
33220 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
33222 2013-01-23 Kostya Serebryany <kcc@google.com>
33224 * config/darwin.h: remove dependency on
33225 CoreFoundation (asan on Mac OS).
33227 2013-01-23 Jakub Jelinek <jakub@redhat.com>
33230 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
33231 instead of cmpdi_operand for first comparison operand.
33232 Don't assert that comparison operands aren't both constants.
33234 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
33236 * doc/install.texi (Downloading the Source): Update references to
33237 downloading separate components.
33239 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
33241 * doc/extend.texi (__int128): Improve grammar.
33243 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
33246 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
33247 alternative to (o,r).
33248 (*movdi_internal_rex64): Remove (!o,n) alternative.
33249 (DImode immediate->memory splitter): Remove.
33250 (DImode immediate->memory peephole2): Remove.
33251 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
33252 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
33253 alternative to (!o,*r).
33254 (*movtf_internal_sse): New pattern.
33255 (*movxf_internal_rex64): New pattern.
33256 (*movxf_internal): Disable for TARGET_64BIT.
33257 (*movdf_internal_rex64): Remove (!o,F) alternative.
33259 2013-01-22 Jakub Jelinek <jakub@redhat.com>
33261 PR middle-end/56074
33262 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
33263 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
33264 * tree-vect-loop-manip.c (find_loop_location): Also ignore
33265 stmt locations where LOCATION_LOCUS of the stmt location is
33266 UNKNOWN_LOCATION or BUILTINS_LOCATION.
33269 * config/i386/i386.md (UNSPEC_STOS): New.
33270 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
33271 *strsetqi_1): Add UNSPEC_STOS.
33273 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
33276 * doc/invoke.texi: Remove left over -Wsynth example.
33278 2013-01-21 Jakub Jelinek <jakub@redhat.com>
33280 PR tree-optimization/56051
33281 * fold-const.c (fold_binary_loc): Don't fold
33282 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
33283 a narrowing conversion, or widening conversion from signed
33286 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
33288 PR rtl-optimization/56023
33289 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
33290 dependent on debug instruction.
33292 2013-01-21 Martin Jambor <mjambor@suse.cz>
33294 PR middle-end/56022
33295 * function.c (allocate_struct_function): Call
33296 invoke_set_current_function_hook earlier.
33298 2013-01-21 Jakub Jelinek <jakub@redhat.com>
33300 * reload1.c (init_reload): Only initialize reload_obstack
33301 during the first call.
33303 2013-01-21 Marek Polacek <polacek@redhat.com>
33305 * cfgloop.c (verify_loop_structure): Fix up grammar.
33307 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
33309 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
33310 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
33312 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33315 * config/arm/marvell-pj4.md: Update copyright year.
33316 Fix up use of alu to alu_reg and simple_alu_imm.
33318 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
33320 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
33322 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
33325 * lra-constraints.c (curr_insn_transform): Don't reuse original
33326 insn for secondary memory move when memory mode should be different.
33328 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33330 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
33331 atomic_storedi_1): New patterns.
33333 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
33335 btver2 pipeline descriptions.
33336 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
33338 * config/i386/i386.md (btver2_decode): New type attributes.
33339 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
33341 * config/i386/btver2.md: New file describing btver2 pipelines.
33343 2013-01-19 Andrew Pinski <apinski@cavium.com>
33345 PR tree-optimization/52631
33346 * tree-ssa-sccvn (visit_use): Before looking up the original
33347 statement, try looking up the simplified expression.
33349 2013-01-19 Anthony Green <green@moxielogic.com>
33351 * config/moxie/moxie.c (moxie_expand_prologue): Set
33352 current_function_static_stack_size.
33354 2013-01-18 Jakub Jelinek <jakub@redhat.com>
33356 PR tree-optimization/56029
33357 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
33358 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
33360 2013-01-18 Sharad Singhai <singhai@google.com>
33362 PR tree-optimization/55995
33363 * dumpfile.c (dump_loc): Print location only if available.
33364 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
33366 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
33369 * lra-constraints.c (curr_insn_transform): Reuse original insn for
33370 secondary memory move.
33371 (inherit_reload_reg): Use rclass instead of cl for
33372 check_secondary_memory_needed_p.
33374 2013-01-18 Jakub Jelinek <jakub@redhat.com>
33376 PR middle-end/56015
33377 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
33378 the case where writing real complex part of target modifies op1.
33380 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
33382 * config/aarch64/aarch64-simd.md
33383 (aarch64_vcond_internal<mode>): Handle unordered cases.
33384 * config/aarch64/iterators.md (v_cmp_result): New.
33386 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
33387 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33389 * config/arm/marvell-pj4.md: New file.
33390 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
33391 * config/arm/arm.md (generic_sched): Add marvell_pj4.
33392 (generic_vfp): Likewise.
33393 * config/arm/arm-cores.def: Add marvell-pj4.
33394 * config/arm/arm-tune.md: Regenerate.
33395 * config/arm/arm-tables.opt: Regenerate.
33396 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
33397 * doc/invoke.texi: Document marvell-pj4.
33399 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
33401 * config/aarch64/arm_neon.h: Map scalar types to standard types.
33403 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
33408 * var-tracking.c (negative_power_of_two_p): New.
33409 (global_get_addr_cache, local_get_addr_cache): New.
33410 (get_addr_from_global_cache, get_addr_from_local_cache): New.
33411 (vt_canonicalize_addr): Rewrite using the above. Adjust the
33413 (vt_stack_offset_p): Remove.
33414 (vt_canon_true_dep): Always canonicalize loc's address.
33415 (clobber_overlapping_mems): Make sure we have a MEM.
33416 (local_get_addr_clear_given_value): New.
33417 (val_reset): Clear local cached entries.
33418 (compute_bb_dataflow): Create and release the local cache.
33419 Disable duplicate MEMs clobbering.
33420 (emit_notes_in_bb): Clobber MEMs likewise.
33421 (vt_emit_notes): Create and release the local cache.
33422 (vt_initialize, vt_finalize): Create and release the global
33423 cache, respectively.
33424 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
33426 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
33428 PR libmudflap/53359
33429 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
33430 not found in the symtab.
33432 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
33435 PR rtl-optimization/55547
33436 PR rtl-optimization/53827
33439 * alias.c (offset_overlap_p): New, factored out of...
33440 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
33441 the conservative special case for symbolic constants. Don't
33442 adjust zero sizes on alignment.
33444 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
33446 PR rtl-optimization/52573
33447 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
33448 REG_UNUSED for the same register.
33450 2013-01-17 Richard Biener <rguenther@suse.de>
33451 Marek Polacek <polacek@redhat.com>
33453 PR rtl-optimization/55833
33454 * loop-unswitch.c (unswitch_loops): Move loop verification...
33455 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
33456 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
33457 Set it to true when we're removing a loop from hierarchy tree in
33458 an irreducible region.
33459 (fix_bb_placements): Adjust caller.
33460 (fix_loop_placements): Likewise.
33462 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
33464 * config/avr/builtins.def (DEF_BUILTIN): Factor out
33465 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
33466 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
33467 Remove ID. Adjust comments.
33468 * config/avr/avr-c.c (avr_builtin_name): Remove.
33469 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
33470 * config/avr/avr.c (avr_tolower): New static function.
33471 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
33472 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
33473 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
33476 2013-01-17 Jan Hubicka <jh@suse.cz>
33478 PR tree-optimization/55273
33479 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
33481 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
33484 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
33485 store through atomic_store<mode>_1.
33486 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
33488 2013-01-17 Martin Jambor <mjambor@suse.cz>
33490 PR tree-optimizations/55264
33491 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
33492 for virtual methods.
33493 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
33494 virtual methods before inlining is over.
33495 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
33497 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
33500 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
33502 PR rtl-optimization/56005
33503 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
33504 pending reads for prefetch.
33506 2013-01-16 Ian Bolton <ian.bolton@arm.com>
33508 * config/aarch64/aarch64.md
33509 (*cstoresi_neg_uxtw): New pattern.
33510 (*cmovsi_insn_uxtw): New pattern.
33511 (*<optab>si3_uxtw): New pattern.
33512 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
33513 (*<optab>si3_insn_uxtw): New pattern.
33514 (*bswapsi2_uxtw): New pattern.
33516 2013-01-16 Richard Biener <rguenther@suse.de>
33518 * tree-inline.c (tree_function_versioning): Remove set but
33519 never used variable.
33521 2013-01-16 Richard Biener <rguenther@suse.de>
33523 PR tree-optimization/55964
33524 * tree-flow.h (rename_variables_in_loop): Remove.
33525 (rename_variables_in_bb): Likewise.
33526 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
33527 (copy_loop_before): Adjust and delete update-ssa status.
33528 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
33529 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
33530 (rename_variables_in_loop): Remove.
33531 (slpeel_update_phis_for_duplicate_loop): Likewise.
33532 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
33533 use available cfg machinery instead of duplicating it.
33534 Update PHI nodes and perform poor-mans SSA update here.
33535 (slpeel_tree_peel_loop_to_edge): Adjust.
33537 2013-01-16 Richard Biener <rguenther@suse.de>
33539 PR tree-optimization/54767
33540 PR tree-optimization/53465
33541 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
33542 (vrp_visit_phi_node): For PHI arguments coming via backedges
33543 drop all symbolical range information.
33544 (execute_vrp): Compute backedges.
33546 2013-01-16 Richard Biener <rguenther@suse.de>
33548 * doc/install.texi: Update CLooG and ISL requirements to
33551 2013-01-16 Christian Bruel <christian.bruel@st.com>
33554 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
33555 (broken_move): Handle UNSPECV_SP_SWITCH_B.
33556 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
33558 2013-01-16 DJ Delorie <dj@redhat.com>
33560 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
33561 (UNSPECV_SP_SWITCH_E): New.
33562 (sp_switch_1): Change to an unspec.
33563 (sp_switch_2): Change to an unspec. Don't use post-inc when we
33566 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
33568 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
33569 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
33570 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
33571 (expand_mem_thread_fence): Ditto.
33572 (expand_mem_signal_fence): Ditto.
33573 (expand_atomic_load): Ditto.
33574 (expand_atomic_store): Ditto.
33576 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
33578 PR rtl-optimization/55547
33579 PR rtl-optimization/53827
33582 * alias.c (memrefs_conflict_p): Set sizes to negative after
33585 2013-01-15 Jakub Jelinek <jakub@redhat.com>
33588 * function.c (thread_prologue_and_epilogue_insns): Always
33589 add crtl->drap_reg to set_up_by_prologue.set, even if
33590 stack_realign_drap is false.
33592 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
33594 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
33595 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
33596 *call): Fix indention.
33598 2013-01-15 Tom de Vries <tom@codesourcery.com>
33601 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
33604 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
33606 PR rtl-optimization/55153
33607 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
33609 2013-01-15 Martin Jambor <mjambor@suse.cz>
33611 PR tree-optimization/55920
33612 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
33613 accesses as grp_to_be_debug_replaced.
33615 2013-01-15 Jakub Jelinek <jakub@redhat.com>
33617 PR tree-optimization/55920
33618 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
33619 there is non-useless type conversion needed from debug rhs to lhs,
33620 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
33622 2013-01-15 Joseph Myers <joseph@codesourcery.com>
33623 Mikael Pettersson <mikpe@it.uu.se>
33626 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
33628 (ASM_OUTPUT_CASE_LABEL): Remove.
33629 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
33630 * final.c (shorten_branches): Update alignment of labels before
33631 jump tables if CASE_VECTOR_SHORTEN_MODE.
33633 2013-01-15 Richard Biener <rguenther@suse.de>
33636 * system.h: Do not include gmp.h for building host tools.
33638 2013-01-15 Richard Biener <rguenther@suse.de>
33640 PR middle-end/55882
33641 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
33642 account for bitpos when computing alignment.
33644 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
33646 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
33647 (ix86_target_macros_internal): Likewise.
33649 * config/i386/i386.c (m_CORE2I7): Removed.
33650 (m_CORE_HASWELL): New macro.
33651 (m_CORE_ALL): Likewise.
33652 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
33653 (initial_ix86_arch_features): Likewise.
33654 (processor_target_table): Initializations for Core avx2.
33655 (cpu_names): New names "core-avx2".
33656 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
33657 PROCESSOR_CORE_HASWELL.
33658 (ix86_issue_rate): New case.
33659 (ia32_multipass_dfa_lookahead): Likewise.
33660 (ix86_sched_init_global): Likewise.
33662 * config/i386/i386.h (TARGET_HASWELL): New macro.
33663 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
33664 (processor_type): New PROCESSOR_HASWELL.
33666 2013-01-15 Jakub Jelinek <jakub@redhat.com>
33668 PR tree-optimization/55955
33669 * tree-vect-loop.c (vectorizable_reduction): Give up early on
33670 *SHIFT_EXPR and *ROTATE_EXPR codes.
33672 PR tree-optimization/48766
33673 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
33674 -ftrapv disable -fwrapv.
33676 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
33679 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
33680 etc. to 1 and not to __flash.
33681 Use LL suffix for __INT24_MAX__ with -mint8.
33682 Use ULL suffix for __UINT24_MAX__ with -mint8.
33684 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
33686 * config/avr/avr-arch.h
33687 (struct base_arch_s): Use typedef avr_arch_t instead.
33688 (struct arch_info_s): Use typedef avr_arch_info_t instead.
33689 (struct mcu_type_s): Use typedef avr_mcu_t instead.
33690 * config/avr/avr.c: Same.
33691 * config/avr/avr-devices.c: Same.
33692 * config/avr/driver-avr.c: Same.
33693 * config/avr/gen-avr-mmcu-texi.c: Same.
33694 * config/avr/avr-mcus.def: Adjust comment.
33696 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
33698 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
33699 * config/aarch64/iterators.md (VALLDI): New.
33701 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
33702 Andi Kleen <ak@linux.intel.com>
33705 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
33706 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
33709 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
33711 * config/avr/avr-stdint.h: Remove trailing blanks.
33712 * config/avr/avr-log.h: Same.
33713 * config/avr/avr-arch.h: Same.
33714 * config/avr/avr-devices.c: Same.
33715 * config/avr/avr-dimode.md: Same.
33716 * config/avr/predicates.md: Same.
33717 * config/avr/avr-c.c: Same. And fix typo.
33719 * config/avr/avr-protos.h: Same. And:
33720 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
33721 (init_cumulative_args): Rename to avr_init_cumulative_args.
33722 (expand_prologue): Rename to avr_expand_prologue.
33723 (expand_epilogue): Rename to avr_expand_epilogue.
33724 (adjust_insn_length): Rename to avr_adjust_insn_length.
33725 (notice_update_cc): Rename to avr_notice_update_cc.
33726 (final_prescan_insn): Rename to avr_final_prescan_insn.
33727 * config/avr/avr.c: Same.
33728 * config/avr/avr.h: Same.
33729 * config/avr/avr.md: Remove trailing blanks.
33730 (prologue): Use avr_expand_prologue.
33731 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
33733 2013-01-14 Richard Biener <rguenther@suse.de>
33735 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
33736 verify_location, collect_subblocks): New functions.
33737 (verify_gimple_in_cfg): Verify that locations only reference
33738 BLOCKs in the functions BLOCK tree.
33740 2013-01-14 Richard Biener <rguenther@suse.de>
33742 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
33744 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
33746 (insert_out_of_ssa_copy_on_edge): Likewise.
33747 (rewrite_close_phi_out_of_ssa): Likewise.
33748 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
33750 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
33751 propagated constants.
33752 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
33755 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
33757 * config/avr/avr-modes.def: Add GPL copyright notice.
33759 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
33761 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
33762 MEMMODEL_MASK to determine memory model.
33763 (atomic_store<mode>): Ditto from operands[2].
33764 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
33766 2013-01-13 Jakub Jelinek <jakub@redhat.com>
33769 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
33770 (fold_gimple_assign): Don't call unshare_expr here.
33771 (fold_ctor_reference): Call unshare_expr.
33773 2013-01-13 Terry Guo <terry.guo@arm.com>
33775 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
33776 * doc/fragments.texi: Document MULTILIB_REUSE.
33777 * gcc.c (multilib_reuse): New internal spec.
33778 (set_multilib_dir): Also search multilib from multilib_reuse.
33779 * genmultilib (tmpmultilib3): Refactor code.
33780 (tmpmultilib4): Ditto.
33781 (multilib_reuse): New multilib argument.
33783 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
33785 * Makefile.in: Update copyright.
33787 2013-01-12 Tom de Vries <tom@codesourcery.com>
33789 PR middle-end/55890
33790 * calls.c (expand_call): Check if arg_nr is valid.
33792 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
33794 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
33795 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
33796 documentation. Add missing '__' in front of
33797 __builtin_ia32_packssdw256.
33799 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33802 * config/s390/s390.c (s390_preferred_reload_class): Do not return
33803 NO_REGS for larl operands.
33804 (s390_reload_larl_operand): Use s390_load_address instead of
33807 2013-01-11 Richard Biener <rguenther@suse.de>
33809 * tree-cfg.c (verify_node_sharing_1): Split out from ...
33810 (verify_node_sharing): ... here.
33811 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
33813 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
33815 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
33816 Substitute TREECHECKING.
33817 * configure: Regenerate.
33818 * Makefile.in (TREECHECKING): New.
33820 2013-01-11 Richard Guenther <rguenther@suse.de>
33822 PR tree-optimization/44061
33823 * tree-vrp.c (extract_range_basic): Compute zero as
33824 value-range for __builtin_constant_p of function parameters.
33826 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
33828 Update copyright years.
33830 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
33832 PR rtl-optimization/55672
33833 * lra-eliminations.c (mark_not_eliminable): Permit addition with
33834 const to be eliminable.
33836 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
33838 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
33839 * configure: Regenerate.
33841 2013-01-10 Richard Biener <rguenther@suse.de>
33843 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
33845 2013-01-10 Richard Biener <rguenther@suse.de>
33848 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
33849 locations for virtual PHI arguments.
33850 (rewrite_update_phi_arguments): Likewise.
33852 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
33854 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
33857 2013-01-10 Jakub Jelinek <jakub@redhat.com>
33859 PR tree-optimization/55921
33860 * tree-complex.c (expand_complex_asm): New function.
33861 (expand_complex_operations_1): Call it for GIMPLE_ASM.
33863 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33866 * config/s390/s390.c (s390_symref_operand_p)
33867 (s390_loadrelative_operand_p): Merge the two functions.
33868 (s390_check_qrst_address, print_operand_address): Add parameters
33869 to s390_loadrelative_operand_p invokation.
33870 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
33871 (s390_reload_larl_operand, s390_secondary_reload): Use
33872 s390_loadrelative_operand_p instead of s390_symref_operand_p.
33873 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
33875 2013-01-09 Mike Stump <mikestump@comcast.net>
33877 * dse.c (record_store): Remove unnecessary assert.
33879 2013-01-09 Jan Hubicka <jh@suse.cz>
33881 PR tree-optimization/55569
33882 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
33883 * cfgloop.h (scale_loop_profile): Likewise.
33885 2013-01-09 Jan Hubicka <jh@suse.cz>
33888 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
33890 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
33892 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
33894 PR middle-end/55114
33895 * expr.h (maybe_emit_group_store): Declare.
33896 * expr.c (maybe_emit_group_store): New function.
33897 * builtins.c (expand_builtin_int_roundingfn): Call it.
33898 (expand_builtin_int_roundingfn_2): Likewise.
33900 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
33902 PR rtl-optimization/55829
33903 * lra-constraints.c (match_reload): Add code for absent output.
33904 (curr_insn_transform): Add code for reloads of matched inputs
33907 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
33909 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
33910 attribute of movddup insn to DF.
33911 (*vec_interleave_lowv2df): Ditto.
33912 (vec_dupv2df): Ditto.
33914 2013-01-09 Jan Hubicka <jh@suse.cz>
33916 PR tree-optimiation/55875
33917 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
33918 EVERY_ITERATION parameter.
33919 (number_of_iterations_exit): Check if exit is executed every iteration.
33920 (idx_infer_loop_bounds): Similarly here.
33921 (n_of_executions_at_most): Simplify
33922 to only test for cases where statement is dominated by the
33923 particular bound; handle correctly the "postdominance" test.
33924 (scev_probably_wraps_p): Use max loop iterations info
33925 as a global bound first.
33927 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
33928 Nick Clifton <nickc@redhat.com>
33930 * config/v850/v850.md (cbranchsf4): New pattern.
33931 (cstoresf4): New pattern.
33932 (cbranchdf4): New pattern.
33933 (cstoredf4): New pattern.
33934 (movsicc): Disallow floating point comparisons.
33935 (cmpsf_le_insn): Fix order of operators.
33936 (cmpsf_lt_insn): Likewise.
33937 (cmpsf_eq_insn): Likewise.
33938 (cmpdf_le_insn): Likewise.
33939 (cmpdf_lt_insn): Likewise.
33940 (cmpdf_eq_insn): Likewise.
33941 (cmpsf_ge_insn): Use LE comparison.
33942 (cmpdf_ge_insn): Likewise.
33943 (cmpsf_gt_insn): Use LT comparison.
33944 (cmpdf_gt_insn): Likewise.
33945 (cmpsf_ne_insn): Delete pattern.
33946 (cmpdf_ne_insn): Delete pattern.
33947 * config/v850/v850.c (v850_gen_float_compare): Use
33948 gen_cmpdf_eq_insn for NE comparison.
33949 (v850_float_z_comparison_operator)
33950 (v850_float_nz_comparison_operator): Move from here ...
33951 * config/v850/predicates.md: ... to here. Move GT and GE
33952 comparisons into v850_float_z_comparison_operator.
33953 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
33955 (v850_float_nz_comparison_operator): Likewise.
33957 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33959 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
33960 with calls to gen_insvsi/gen_insvdi.
33962 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
33964 * config/i386/i386.c (initial_ix86_tune_features): Set up
33965 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
33967 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
33968 Jakub Jelinek <jakub@redhat.com>
33970 PR tree-optimization/48189
33971 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
33972 If nitercst is 0, don't predict the exit edge.
33974 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
33976 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
33977 in asm_fprintf with reg_names.
33978 (aarch64_print_operand_address): Likewise.
33979 (aarch64_return_addr): Likewise.
33980 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
33982 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33984 * config/pa/pa.h (VAL_U6_BITS_P): Define.
33985 (INT_U6_BITS): Likewise.
33986 * config/pa/predicates.md (uint6_operand): New predicate.
33987 (shift5_operand, shift6_operand): Likewise.
33988 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
33990 (lshrdi3): Use shift6_operand.
33991 (shrpsi4, shrpdi4): New insn patterns.
33992 (extzv): Delete expander.
33993 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
33994 predicates in unamed zero extract patterns. Tighten common constraint.
33995 (extv): Delete expander.
33996 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
33997 predicates in unamed sign extract patterns. Tighten common constraint.
33998 (insv): Delete expander.
33999 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
34000 predicates in unamed insert patterns. Tighten common constraint.
34001 Change uint32_operand predicate to uint6_operand predicate in unamed
34002 DImode pattern to insert constant values of type 1...1xxxx.
34004 2013-01-04 Jan Hubicka <jh@suse.cz>
34006 PR tree-optimization/55823
34007 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
34010 2013-01-08 Jakub Jelinek <jakub@redhat.com>
34011 Uros Bizjak <ubizjak@gmail.com>
34013 PR rtl-optimization/55845
34014 * df-problems.c (can_move_insns_across): Stop scanning at
34015 volatile_insn_p source instruction or give up if
34016 across_from .. across_to range contains any volatile_insn_p
34019 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
34021 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
34022 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
34024 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
34025 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
34027 2013-01-08 Jakub Jelinek <jakub@redhat.com>
34030 * asan.c (asan_clear_shadow): New function.
34031 (asan_emit_stack_protection): Use it.
34033 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
34035 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
34036 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
34037 with tab instead of space.
34039 2013-01-08 Nick Clifton <nickc@redhat.com>
34041 * config/rl78/rl78.c (rl78_expand_prologue): Always select
34042 register bank 0 at the start of an interrupt handler.
34043 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
34046 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
34048 * config/aarch64/aarch64-simd.md
34049 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
34050 (aarch64_simd_bsl): Likewise.
34051 (aarch64_vcond_internal<mode>): Likewise.
34052 (vcond<mode><mode>): Likewise.
34053 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
34054 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
34056 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
34058 * config/aarch64/aarch64-builtins.c
34059 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
34061 2013-01-08 Martin Jambor <mjambor@suse.cz>
34064 * tree-sra.c (analyze_access_subtree): Return true also after
34065 potentially creating a debug-only replacement.
34067 2013-01-08 Jakub Jelinek <jakub@redhat.com>
34069 PR middle-end/55890
34070 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
34072 PR tree-optimization/54120
34073 * tree-vrp.c (range_fits_type_p): Don't allow
34074 src_precision < precision from signed vr to unsigned_p
34075 if vr->min or vr->max is negative.
34076 (simplify_float_conversion_using_ranges): Test can_float_p
34077 against CODE_FOR_nothing.
34079 2013-01-08 Jakub Jelinek <jakub@redhat.com>
34080 Richard Biener <rguenther@suse.de>
34082 PR middle-end/55851
34083 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
34084 types instead of just INTEGER_TYPE types.
34086 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
34088 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
34091 2013-01-07 Steve Ellcey <sellcey@mips.com>
34094 * config/mips/mips.opt: Change mad to mmad to match documentation.
34096 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
34099 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
34100 .progmemx.data now.
34102 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
34105 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
34106 (avr_addrspace_t): Add .section_name field.
34107 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
34109 (avr_addrspace): Same. Initialize .section_name. Remove last
34110 NULL entry. Put __memx into .progmemx.data.
34111 (progmem_section_prefix): Remove.
34112 (avr_asm_init_sections): No need to initialize progmem_section.
34113 (avr_asm_named_section): Use avr_addrspace[].section_name to get
34114 section name prefix.
34115 (avr_asm_select_section): Ditto. And use get_unnamed_section to
34116 retrieve the progmem section.
34117 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
34118 boundary to run over avr_addrspace[].
34119 (avr_register_target_pragmas): Ditto.
34121 2013-01-06 Jakub Jelinek <jakub@redhat.com>
34123 * varasm.c (output_constant_def_contents): For asan_protect_global
34124 protected strings, adjust DECL_ALIGN if needed, before testing for
34126 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
34127 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
34129 (output_object_block): For asan protected decls, emit asan padding
34130 after their contents.
34131 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
34132 (asan_finish_file): Test it here instead.
34134 2013-01-07 Nick Clifton <nickc@redhat.com>
34135 Matthias Klose <doko@debian.org>
34136 Doug Kwan <dougkwan@google.com>
34137 H.J. Lu <hongjiu.lu@intel.com>
34140 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
34142 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
34144 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
34146 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
34148 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
34150 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
34153 * doc/install.texi (Cross-Compiler-Specific Options): Document
34156 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
34158 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
34159 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
34160 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
34161 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
34162 vqmovun_high_s64): Fix source operand number and update copyright.
34164 2013-01-07 Richard Biener <rguenther@suse.de>
34166 PR middle-end/55890
34167 * gimple.h (gimple_call_builtin_p): New overload.
34168 * gimple.c (validate_call): New function.
34169 (gimple_call_builtin_p): Likewise.
34170 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
34171 Use gimple_call_builtin_p.
34172 (find_func_clobbers): Likewise.
34173 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
34174 (strlen_optimize_stmt): Likewise.
34176 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
34178 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
34179 (vld1q_dup_*): Likewise.
34180 (vld1_*): Likewise.
34181 (vld1q_*): Likewise.
34182 (vld1_lane_*): Likewise.
34183 (vld1q_lane_*): Likewise.
34185 2013-01-07 Richard Biener <rguenther@suse.de>
34187 * lto-streamer.h (LTO_minor_version): Bump to 2.
34189 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
34191 * config/aarch64/aarch64-protos.h
34192 (aarch64_const_double_zero_rtx_p): Rename to...
34193 (aarch64_float_const_zero_rtx_p): ...this.
34194 (aarch64_float_const_representable_p): New.
34195 (aarch64_output_simd_mov_immediate): Likewise.
34196 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
34197 move immediate case.
34198 * config/aarch64/aarch64.c
34199 (aarch64_const_double_zero_rtx_p): Rename to...
34200 (aarch64_float_const_zero_rtx_p): ...this.
34201 (aarch64_print_operand): Allow printing of new constants.
34202 (aarch64_valid_floating_const): New.
34203 (aarch64_legitimate_constant_p): Check for valid floating-point
34205 (aarch64_simd_valid_immediate): Likewise.
34206 (aarch64_vect_float_const_representable_p): New.
34207 (aarch64_float_const_representable_p): Likewise.
34208 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
34209 (aarch64_output_simd_mov_immediate): New.
34210 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
34211 (*movdf_aarch64): Likewise.
34212 * config/aarch64/constraints.md (Ufc): New.
34213 (Y): call aarch64_float_const_zero_rtx.
34214 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
34216 2013-01-07 Richard Biener <rguenther@suse.de>
34218 PR tree-optimization/55888
34219 PR tree-optimization/55862
34220 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
34221 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
34222 not if it is contained therein.
34224 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
34226 * config/avr/t-avr: Typo.
34228 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
34231 * config/avr/t-avr: Don't automatically rebuild
34232 $(srcdir)/config/avr/t-multilib
34233 $(srcdir)/config/avr/avr-tables.opt
34234 $(srcdir)/doc/avr-mmcu.texi
34235 (avr-mcus): New phony target to build them on request.
34236 (s-avr-mlib, s-avr-mmcu-texi): Remove.
34237 * avr/avr-mcus.def: Adjust comments.
34239 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
34241 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
34243 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
34245 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
34247 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
34249 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
34251 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
34253 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
34254 to generate profiling.
34255 * config/rs6000/aix64.h (LIB_SPEC): Same.
34257 2013-01-04 Andrew Pinski <apinski@cavium.com>
34259 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
34261 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
34263 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
34265 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
34267 (ix86_expand_move): Ditto.
34268 (ix86_zero_extend_to_Pmode): Ditto.
34269 (ix86_expand_call): Ditto.
34270 (ix86_expand_special_args_builtin): Ditto.
34271 (ix86_expand_builtin): Ditto.
34273 2013-01-04 Richard Biener <rguenther@suse.de>
34275 PR tree-optimization/55862
34276 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
34277 translating them through PHI nodes.
34279 2013-01-04 Martin Jambor <mjambor@suse.cz>
34281 PR tree-optimization/55755
34282 * tree-sra.c (sra_modify_assign): Do not check that an access has no
34283 children when trying to avoid producing a VIEW_CONVERT_EXPR.
34285 2013-01-04 Marek Polacek <polacek@redhat.com>
34287 PR middle-end/55859
34288 * opts.c (default_options_optimization): Clarify error message.
34290 2013-01-04 Richard Biener <rguenther@suse.de>
34292 PR middle-end/55863
34293 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
34296 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34299 * config/pa/pa.md (movsi): Revert previous change.
34300 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
34303 2013-01-03 Richard Henderson <rth@redhat.com>
34305 * config/i386/i386.c (ix86_expand_move): Always assign to op1
34306 after eliminating TLS symbols.
34308 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
34311 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
34312 * graphite-poly.c (debug_gmp_value): Likewise.
34314 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
34317 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
34318 selected code model, define __code_mode_small__, __code_model_medium__,
34319 __code_model_large__, __code_model_32__ or __code_model_kernel__.
34320 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
34321 xchg temporary register with %k. Declare temporary register as
34323 [__x86_64__]: For medium and large code models, preserve %rbx register.
34325 2013-01-03 Richard Biener <rguenther@suse.de>
34327 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
34328 (dump_subscript): Adjust.
34329 (finalize_ddr_dependent): Do not dump redundant info.
34330 (analyze_siv_subscript): Adjust.
34331 (subscript_dependence_tester): Likewise.
34332 (compute_affine_dependence): Likewise.
34334 2013-01-03 Richard Biener <rguenther@suse.de>
34337 2013-01-03 Richard Biener <rguenther@suse.de>
34339 PR tree-optimization/55857
34340 * tree-vect-stmts.c (vectorizable_load): Do not setup
34341 re-alignment for invariant loads.
34343 2013-01-02 Richard Biener <rguenther@suse.de>
34345 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
34346 invariant load do not generate a vector load from the scalar location.
34348 2013-01-03 Richard Biener <rguenther@suse.de>
34350 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
34351 for not vectorizing.
34352 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
34353 not build INDIRECT_REFs, call get_name once only.
34354 (vect_create_data_ref_ptr): Likewise. Dump base object kind
34355 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
34357 2013-01-03 Richard Biener <rguenther@suse.de>
34359 PR tree-optimization/55857
34360 * tree-vect-stmts.c (vectorizable_load): Do not setup
34361 re-alignment for invariant loads.
34363 2013-01-03 Richard Biener <rguenther@suse.de>
34366 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
34367 prefer a built-in decl.
34369 2013-01-03 Jakub Jelinek <jakub@redhat.com>
34371 * gcc.c (process_command): Update copyright notice dates.
34372 * gcov.c (print_version): Likewise.
34373 * gcov-dump.c (print_version): Likewise.
34375 PR rtl-optimization/55838
34376 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
34377 iv0.step, iv1.step and step.
34379 2013-01-03 Jakub Jelinek <jakub@redhat.com>
34380 Marc Glisse <marc.glisse@inria.fr>
34382 PR tree-optimization/55832
34383 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
34384 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
34385 integer_{one,zero}_node.
34387 2013-01-03 Jakub Jelinek <jakub@redhat.com>
34390 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
34391 * var-tracking.c (reverse_op): Don't add reverse ops to
34392 VALUEs that have already
34393 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
34395 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
34397 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
34399 2013-01-02 Teresa Johnson <tejohnson@google.com>
34401 * dumpfile.c (dump_loc): Print filename with location.
34402 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
34403 new location_t parameter to emit complete unroll message with
34404 new dump framework.
34405 (canonicalize_loop_induction_variables): Compute loops location
34406 and pass to try_unroll_loop_completely.
34407 * loop-unroll.c (report_unroll_peel): New function.
34408 (peel_loops_completely): Use new dump format with location
34409 for main dumpfile message, and invoke report_unroll_peel on success.
34410 (decide_unrolling_and_peeling): Ditto.
34411 (decide_peel_once_rolling): Remove old dumpfile message subsumed
34412 by report_unroll_peel.
34413 (decide_peel_completely): Ditto.
34414 (decide_unroll_constant_iterations): Ditto.
34415 (decide_unroll_runtime_iterations): Ditto.
34416 (decide_peel_simple): Ditto.
34417 (decide_unroll_stupid): Ditto.
34418 * cfgloop.c (get_loop_location): New function.
34419 * cfgloop.h (get_loop_location): Declare.
34421 2013-01-02 Sriraman Tallam <tmsriram@google.com>
34423 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
34426 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34428 PR middle-end/55198
34429 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
34430 BLKmode objects when EXPAND_MEMORY is specified.
34432 2013-01-02 Sriraman Tallam <tmsriram@google.com>
34434 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
34436 (fold_builtin_cpu): Do not share cpu model decls across statements.
34438 2013-01-02 Jason Merrill <jason@redhat.com>
34441 * tree.c (build_array_type_1): Revert earlier change.
34443 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
34445 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
34447 * config/aarch64/aarch64-tune.md: Re-generate.
34449 2013-01-02 Richard Biener <rguenther@suse.de>
34451 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
34452 invariant load do not generate a vector load from the scalar location.
34454 2013-01-02 Richard Biener <rguenther@suse.de>
34457 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
34458 * configure: Regenerate.
34460 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
34462 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
34463 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
34464 (expand_builtin_int_roundingfn_2): Keep the original target around
34465 for the fallback case.
34467 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
34469 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
34470 to be clear for sign changes.
34472 2013-01-01 Jan Hubicka <jh@suse.cz>
34474 * ipa-inline-analysis.c: Fix formatting.
34476 2013-01-01 Jakub Jelinek <jakub@redhat.com>
34478 PR tree-optimization/55831
34479 * tree-vect-loop.c (get_initial_def_for_induction): Use
34480 gsi_after_labels instead of gsi_start_bb.
34482 Copyright (C) 2013 Free Software Foundation, Inc.
34484 Copying and distribution of this file, with or without modification,
34485 are permitted in any medium without royalty provided the copyright
34486 notice and this notice are preserved.